cloudsmith-api 1.33.7 → 1.120.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (369) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +5 -5
  3. data/README.md +54 -30
  4. data/build.json +1 -1
  5. data/docs/AlpinePackageUpload.md +5 -3
  6. data/docs/AuditLogApi.md +137 -0
  7. data/docs/ConanPackageUpload.md +5 -3
  8. data/docs/FilesApi.md +13 -6
  9. data/docs/MavenPackageUpload.md +5 -3
  10. data/docs/NamespaceAuditLog.md +23 -0
  11. data/docs/OrganizationGroupSync.md +12 -0
  12. data/docs/OrganizationInvite.md +16 -0
  13. data/docs/OrganizationTeam.md +12 -0
  14. data/docs/OrgsApi.md +713 -0
  15. data/docs/OrgsInvitesCreate.md +12 -0
  16. data/docs/OrgsInvitesExtend.md +11 -0
  17. data/docs/OrgsSamlgroupsyncCreate.md +12 -0
  18. data/docs/OrgsTeamsCreate.md +11 -0
  19. data/docs/OrgsTeamsPartialUpdate.md +11 -0
  20. data/docs/Package.md +5 -3
  21. data/docs/PackageCopy.md +5 -3
  22. data/docs/PackageMove.md +5 -3
  23. data/docs/PackageStatus.md +4 -2
  24. data/docs/PackagesApi.md +65 -0
  25. data/docs/PackagesQuarantine.md +8 -0
  26. data/docs/RawPackageUpload.md +5 -3
  27. data/docs/ReposApi.md +588 -2
  28. data/docs/ReposCreate.md +28 -0
  29. data/docs/ReposGpgCreate.md +9 -0
  30. data/docs/ReposPartialUpdate.md +28 -0
  31. data/docs/ReposRsaCreate.md +9 -0
  32. data/docs/Repository.md +29 -1
  33. data/docs/RepositoryAuditLog.md +20 -0
  34. data/docs/RepositoryCreate.md +59 -0
  35. data/docs/RepositoryGpgKey.md +14 -0
  36. data/docs/RepositoryPrivilegeList.md +8 -0
  37. data/docs/RepositoryRsaKey.md +13 -0
  38. data/docs/RepositoryWebhook.md +3 -3
  39. data/docs/VagrantPackageUpload.md +5 -3
  40. data/docs/WebhooksCreate.md +2 -2
  41. data/docs/WebhooksPartialUpdate.md +2 -2
  42. data/lib/cloudsmith-api/api/audit_log_api.rb +147 -0
  43. data/lib/cloudsmith-api/api/files_api.rb +17 -7
  44. data/lib/cloudsmith-api/api/orgs_api.rb +671 -0
  45. data/lib/cloudsmith-api/api/packages_api.rb +66 -0
  46. data/lib/cloudsmith-api/api/repos_api.rb +569 -3
  47. data/lib/cloudsmith-api/models/alpine_package_upload.rb +58 -4
  48. data/lib/cloudsmith-api/models/conan_package_upload.rb +58 -4
  49. data/lib/cloudsmith-api/models/entitlements_create.rb +46 -0
  50. data/lib/cloudsmith-api/models/entitlements_partial_update.rb +46 -0
  51. data/lib/cloudsmith-api/models/entitlements_refresh.rb +46 -0
  52. data/lib/cloudsmith-api/models/files_abort.rb +34 -0
  53. data/lib/cloudsmith-api/models/files_complete.rb +34 -0
  54. data/lib/cloudsmith-api/models/files_create.rb +34 -0
  55. data/lib/cloudsmith-api/models/files_validate.rb +34 -0
  56. data/lib/cloudsmith-api/models/maven_package_upload.rb +58 -4
  57. data/lib/cloudsmith-api/models/namespace_audit_log.rb +395 -0
  58. data/lib/cloudsmith-api/models/organization_group_sync.rb +240 -0
  59. data/lib/cloudsmith-api/models/organization_invite.rb +299 -0
  60. data/lib/cloudsmith-api/models/organization_membership.rb +46 -0
  61. data/lib/cloudsmith-api/models/organization_team.rb +264 -0
  62. data/lib/cloudsmith-api/models/orgs_invites_create.rb +259 -0
  63. data/lib/cloudsmith-api/models/orgs_invites_extend.rb +249 -0
  64. data/lib/cloudsmith-api/models/orgs_samlgroupsync_create.rb +245 -0
  65. data/lib/cloudsmith-api/models/orgs_teams_create.rb +254 -0
  66. data/lib/cloudsmith-api/models/orgs_teams_partial_update.rb +249 -0
  67. data/lib/cloudsmith-api/models/package.rb +58 -4
  68. data/lib/cloudsmith-api/models/package_copy.rb +58 -4
  69. data/lib/cloudsmith-api/models/package_move.rb +58 -4
  70. data/lib/cloudsmith-api/models/package_status.rb +23 -3
  71. data/lib/cloudsmith-api/models/packages_quarantine.rb +185 -0
  72. data/lib/cloudsmith-api/models/packages_tag.rb +34 -0
  73. data/lib/cloudsmith-api/models/raw_package_upload.rb +58 -4
  74. data/lib/cloudsmith-api/models/repos_create.rb +402 -4
  75. data/lib/cloudsmith-api/models/repos_gpg_create.rb +200 -0
  76. data/lib/cloudsmith-api/models/repos_partial_update.rb +414 -4
  77. data/lib/cloudsmith-api/models/repos_rsa_create.rb +200 -0
  78. data/lib/cloudsmith-api/models/repository.rb +415 -5
  79. data/lib/cloudsmith-api/models/repository_audit_log.rb +355 -0
  80. data/lib/cloudsmith-api/models/repository_create.rb +820 -0
  81. data/lib/cloudsmith-api/models/repository_gpg_key.rb +250 -0
  82. data/lib/cloudsmith-api/models/repository_privilege_list.rb +185 -0
  83. data/lib/cloudsmith-api/models/repository_rsa_key.rb +235 -0
  84. data/lib/cloudsmith-api/models/repository_token.rb +46 -0
  85. data/lib/cloudsmith-api/models/repository_token_refresh.rb +46 -0
  86. data/lib/cloudsmith-api/models/repository_webhook.rb +3 -3
  87. data/lib/cloudsmith-api/models/vagrant_package_upload.rb +58 -4
  88. data/lib/cloudsmith-api/models/vulnerability_scan_results.rb +34 -0
  89. data/lib/cloudsmith-api/models/vulnerability_scan_results_list.rb +34 -0
  90. data/lib/cloudsmith-api/models/webhooks_create.rb +2 -2
  91. data/lib/cloudsmith-api/models/webhooks_partial_update.rb +2 -2
  92. data/lib/cloudsmith-api/version.rb +1 -1
  93. data/lib/cloudsmith-api.rb +18 -0
  94. data/spec/api/audit_log_api_spec.rb +66 -0
  95. data/spec/api/files_api_spec.rb +4 -2
  96. data/spec/api/orgs_api_spec.rb +161 -0
  97. data/spec/api/packages_api_spec.rb +15 -0
  98. data/spec/api/repos_api_spec.rb +133 -1
  99. data/spec/models/alpine_package_upload_spec.rb +16 -0
  100. data/spec/models/conan_package_upload_spec.rb +16 -0
  101. data/spec/models/entitlements_create_spec.rb +8 -0
  102. data/spec/models/entitlements_partial_update_spec.rb +8 -0
  103. data/spec/models/entitlements_refresh_spec.rb +8 -0
  104. data/spec/models/files_abort_spec.rb +4 -0
  105. data/spec/models/files_complete_spec.rb +4 -0
  106. data/spec/models/files_create_spec.rb +4 -0
  107. data/spec/models/files_validate_spec.rb +4 -0
  108. data/spec/models/maven_package_upload_spec.rb +16 -0
  109. data/spec/models/namespace_audit_log_spec.rb +131 -0
  110. data/spec/models/organization_group_sync_spec.rb +65 -0
  111. data/spec/models/organization_invite_spec.rb +93 -0
  112. data/spec/models/organization_membership_spec.rb +8 -0
  113. data/spec/models/organization_team_spec.rb +69 -0
  114. data/spec/models/orgs_invites_create_spec.rb +69 -0
  115. data/spec/models/orgs_invites_extend_spec.rb +63 -0
  116. data/spec/models/orgs_samlgroupsync_create_spec.rb +65 -0
  117. data/spec/models/orgs_teams_create_spec.rb +63 -0
  118. data/spec/models/orgs_teams_partial_update_spec.rb +63 -0
  119. data/spec/models/package_copy_spec.rb +16 -0
  120. data/spec/models/package_move_spec.rb +16 -0
  121. data/spec/models/package_spec.rb +16 -0
  122. data/spec/models/package_status_spec.rb +12 -0
  123. data/spec/models/packages_quarantine_spec.rb +41 -0
  124. data/spec/models/packages_tag_spec.rb +4 -0
  125. data/spec/models/raw_package_upload_spec.rb +16 -0
  126. data/spec/models/repos_create_spec.rb +200 -0
  127. data/spec/models/repos_gpg_create_spec.rb +47 -0
  128. data/spec/models/repos_partial_update_spec.rb +204 -0
  129. data/spec/models/repos_rsa_create_spec.rb +47 -0
  130. data/spec/models/repository_audit_log_spec.rb +113 -0
  131. data/spec/models/repository_create_spec.rb +379 -0
  132. data/spec/models/repository_gpg_key_spec.rb +77 -0
  133. data/spec/models/repository_privilege_list_spec.rb +41 -0
  134. data/spec/models/repository_rsa_key_spec.rb +71 -0
  135. data/spec/models/repository_spec.rb +204 -0
  136. data/spec/models/repository_token_refresh_spec.rb +8 -0
  137. data/spec/models/repository_token_spec.rb +8 -0
  138. data/spec/models/vagrant_package_upload_spec.rb +16 -0
  139. data/spec/models/vulnerability_scan_results_list_spec.rb +4 -0
  140. data/spec/models/vulnerability_scan_results_spec.rb +4 -0
  141. data/vendor/bundle/ruby/2.6.0/bin/htmldiff +3 -3
  142. data/vendor/bundle/ruby/2.6.0/bin/ldiff +3 -3
  143. data/vendor/bundle/ruby/2.6.0/bin/multigem +3 -3
  144. data/vendor/bundle/ruby/2.6.0/bin/multiruby +3 -3
  145. data/vendor/bundle/ruby/2.6.0/bin/rake +2 -0
  146. data/vendor/bundle/ruby/2.6.0/bin/rspec +2 -0
  147. data/vendor/bundle/ruby/2.6.0/bin/unit_diff +3 -3
  148. data/vendor/bundle/ruby/2.6.0/bin/zentest +3 -3
  149. data/vendor/bundle/ruby/2.6.0/cache/json-2.6.2.gem +0 -0
  150. data/vendor/bundle/ruby/2.6.0/cache/public_suffix-4.0.7.gem +0 -0
  151. data/vendor/bundle/ruby/2.6.0/cache/rspec-mocks-3.11.1.gem +0 -0
  152. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/autotest-fsevent-0.2.19/gem_make.out +4 -4
  153. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.15.5/ffi_c.so +0 -0
  154. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.15.5/gem_make.out +5 -5
  155. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.15.5/mkmf.log +9 -9
  156. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/{json-2.6.1 → json-2.6.2}/gem.build_complete +0 -0
  157. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.6.2/gem_make.out +13 -0
  158. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.6.2/json/ext/generator.so +0 -0
  159. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.6.2/json/ext/parser.so +0 -0
  160. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/{json-2.6.1 → json-2.6.2}/mkmf.log +8 -8
  161. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/AbstractMemory.o +0 -0
  162. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/ArrayType.o +0 -0
  163. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Buffer.o +0 -0
  164. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Call.o +0 -0
  165. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/ClosurePool.o +0 -0
  166. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/DynamicLibrary.o +0 -0
  167. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Function.o +0 -0
  168. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/FunctionInfo.o +0 -0
  169. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/LastError.o +0 -0
  170. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/LongDouble.o +0 -0
  171. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Makefile +3 -3
  172. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/MappedType.o +0 -0
  173. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/MemoryPointer.o +0 -0
  174. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/MethodHandle.o +0 -0
  175. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Platform.o +0 -0
  176. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Pointer.o +0 -0
  177. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Struct.o +0 -0
  178. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/StructByValue.o +0 -0
  179. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/StructLayout.o +0 -0
  180. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Thread.o +0 -0
  181. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Type.o +0 -0
  182. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Types.o +0 -0
  183. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Variadic.o +0 -0
  184. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/ffi.o +0 -0
  185. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/ffi_c.so +0 -0
  186. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/lib/ffi_c.so +0 -0
  187. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/CHANGES.md +0 -0
  188. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/LICENSE +0 -0
  189. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/README.md +0 -0
  190. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/VERSION +1 -0
  191. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/ext/json/Makefile +3 -3
  192. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/ext/json/ext/fbuffer/fbuffer.h +0 -0
  193. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/ext/json/ext/generator/.sitearchdir.-.json.-.ext.time +0 -0
  194. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/ext/json/ext/generator/Makefile +3 -3
  195. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/ext/json/ext/generator/depend +0 -0
  196. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/ext/json/ext/generator/extconf.rb +0 -0
  197. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/ext/json/ext/generator/generator.c +0 -0
  198. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/ext/json/ext/generator/generator.h +0 -0
  199. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/ext/json/ext/generator/generator.o +0 -0
  200. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/ext/json/ext/generator/generator.so +0 -0
  201. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/ext/json/ext/parser/.sitearchdir.-.json.-.ext.time +0 -0
  202. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/ext/json/ext/parser/Makefile +3 -3
  203. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/ext/json/ext/parser/depend +0 -0
  204. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/ext/json/ext/parser/extconf.rb +0 -0
  205. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/ext/json/ext/parser/parser.c +9 -0
  206. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/ext/json/ext/parser/parser.h +0 -0
  207. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/ext/json/ext/parser/parser.o +0 -0
  208. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/ext/json/ext/parser/parser.rl +9 -0
  209. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/ext/json/ext/parser/parser.so +0 -0
  210. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/ext/json/extconf.rb +0 -0
  211. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/json.gemspec +0 -0
  212. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/lib/json/add/bigdecimal.rb +0 -0
  213. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/lib/json/add/complex.rb +0 -0
  214. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/lib/json/add/core.rb +0 -0
  215. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/lib/json/add/date.rb +0 -0
  216. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/lib/json/add/date_time.rb +0 -0
  217. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/lib/json/add/exception.rb +0 -0
  218. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/lib/json/add/ostruct.rb +0 -0
  219. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/lib/json/add/range.rb +0 -0
  220. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/lib/json/add/rational.rb +0 -0
  221. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/lib/json/add/regexp.rb +0 -0
  222. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/lib/json/add/set.rb +0 -0
  223. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/lib/json/add/struct.rb +0 -0
  224. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/lib/json/add/symbol.rb +0 -0
  225. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/lib/json/add/time.rb +0 -0
  226. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/lib/json/common.rb +0 -0
  227. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/lib/json/ext/generator.so +0 -0
  228. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/lib/json/ext/parser.so +0 -0
  229. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/lib/json/ext.rb +0 -0
  230. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/lib/json/generic_object.rb +0 -0
  231. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/lib/json/pure/generator.rb +0 -0
  232. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/lib/json/pure/parser.rb +0 -0
  233. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/lib/json/pure.rb +0 -0
  234. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/lib/json/version.rb +1 -1
  235. data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/lib/json.rb +0 -0
  236. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/.github/FUNDING.yml +0 -0
  237. data/vendor/bundle/ruby/2.6.0/gems/public_suffix-4.0.7/.github/dependabot.yml +8 -0
  238. data/vendor/bundle/ruby/2.6.0/gems/public_suffix-4.0.7/.github/workflows/release.yml +16 -0
  239. data/vendor/bundle/ruby/2.6.0/gems/public_suffix-4.0.7/.github/workflows/tests.yml +28 -0
  240. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/.gitignore +0 -0
  241. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/.rubocop.yml +0 -0
  242. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/.rubocop_opinionated.yml +6 -0
  243. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/.yardopts +0 -0
  244. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/2.0-Upgrade.md +0 -0
  245. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/CHANGELOG.md +11 -0
  246. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/Gemfile +0 -1
  247. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/LICENSE.txt +1 -1
  248. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/README.md +12 -2
  249. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/Rakefile +1 -0
  250. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/SECURITY.md +0 -0
  251. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/bin/console +0 -0
  252. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/data/list.txt +1033 -378
  253. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/lib/public_suffix/domain.rb +1 -1
  254. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/lib/public_suffix/errors.rb +1 -1
  255. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/lib/public_suffix/list.rb +3 -3
  256. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/lib/public_suffix/rule.rb +11 -11
  257. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/lib/public_suffix/version.rb +5 -3
  258. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/lib/public_suffix.rb +11 -13
  259. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/public_suffix.gemspec +0 -0
  260. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/test/.empty +0 -0
  261. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/test/acceptance_test.rb +0 -0
  262. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/test/benchmarks/bm_find.rb +0 -0
  263. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/test/benchmarks/bm_find_all.rb +0 -0
  264. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/test/benchmarks/bm_names.rb +0 -0
  265. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/test/benchmarks/bm_select.rb +0 -0
  266. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/test/benchmarks/bm_select_incremental.rb +0 -0
  267. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/test/benchmarks/bm_valid.rb +0 -0
  268. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/test/profilers/domain_profiler.rb +0 -0
  269. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/test/profilers/find_profiler.rb +0 -0
  270. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/test/profilers/find_profiler_jp.rb +0 -0
  271. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/test/profilers/initialization_profiler.rb +0 -0
  272. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/test/profilers/list_profsize.rb +0 -0
  273. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/test/profilers/object_binsize.rb +0 -0
  274. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/test/psl_test.rb +0 -0
  275. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/test/test_helper.rb +0 -8
  276. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/test/tests.txt +0 -0
  277. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/test/unit/domain_test.rb +0 -0
  278. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/test/unit/errors_test.rb +0 -0
  279. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/test/unit/list_test.rb +0 -0
  280. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/test/unit/public_suffix_test.rb +0 -0
  281. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/test/unit/rule_test.rb +0 -0
  282. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/.document +0 -0
  283. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/.yardopts +0 -0
  284. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/Changelog.md +10 -1
  285. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/LICENSE.md +0 -0
  286. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/README.md +0 -0
  287. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/any_instance/chain.rb +0 -0
  288. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/any_instance/error_generator.rb +0 -0
  289. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/any_instance/expect_chain_chain.rb +0 -0
  290. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/any_instance/expectation_chain.rb +0 -0
  291. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/any_instance/message_chains.rb +0 -0
  292. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/any_instance/proxy.rb +0 -0
  293. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/any_instance/recorder.rb +0 -0
  294. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/any_instance/stub_chain.rb +0 -0
  295. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/any_instance/stub_chain_chain.rb +0 -0
  296. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/any_instance.rb +0 -0
  297. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/argument_list_matcher.rb +2 -1
  298. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/argument_matchers.rb +0 -0
  299. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/configuration.rb +0 -0
  300. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/error_generator.rb +0 -0
  301. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/example_methods.rb +0 -0
  302. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/instance_method_stasher.rb +0 -0
  303. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/marshal_extension.rb +0 -0
  304. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/matchers/expectation_customization.rb +0 -0
  305. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/matchers/have_received.rb +0 -0
  306. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/matchers/receive.rb +1 -1
  307. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/matchers/receive_message_chain.rb +0 -0
  308. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/matchers/receive_messages.rb +0 -0
  309. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/message_chain.rb +0 -0
  310. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/message_expectation.rb +13 -3
  311. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/method_double.rb +3 -0
  312. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/method_reference.rb +0 -0
  313. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/minitest_integration.rb +0 -0
  314. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/mutate_const.rb +0 -0
  315. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/object_reference.rb +0 -0
  316. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/order_group.rb +0 -0
  317. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/proxy.rb +6 -0
  318. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/space.rb +0 -0
  319. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/standalone.rb +0 -0
  320. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/syntax.rb +0 -0
  321. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/targets.rb +0 -0
  322. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/test_double.rb +0 -0
  323. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/verifying_double.rb +0 -0
  324. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/verifying_message_expectation.rb +0 -0
  325. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/verifying_proxy.rb +0 -0
  326. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/version.rb +1 -1
  327. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks.rb +0 -0
  328. data/vendor/bundle/ruby/2.6.0/specifications/ZenTest-4.12.1.gemspec +6 -9
  329. data/vendor/bundle/ruby/2.6.0/specifications/addressable-2.8.0.gemspec +6 -9
  330. data/vendor/bundle/ruby/2.6.0/specifications/autotest-4.4.6.gemspec +8 -13
  331. data/vendor/bundle/ruby/2.6.0/specifications/autotest-fsevent-0.2.19.gemspec +8 -13
  332. data/vendor/bundle/ruby/2.6.0/specifications/autotest-growl-0.2.16.gemspec +7 -11
  333. data/vendor/bundle/ruby/2.6.0/specifications/autotest-rails-pure-4.1.2.gemspec +2 -2
  334. data/vendor/bundle/ruby/2.6.0/specifications/crack-0.4.5.gemspec +5 -7
  335. data/vendor/bundle/ruby/2.6.0/specifications/diff-lcs-1.5.0.gemspec +12 -21
  336. data/vendor/bundle/ruby/2.6.0/specifications/ethon-0.15.0.gemspec +5 -7
  337. data/vendor/bundle/ruby/2.6.0/specifications/ffi-1.15.5.gemspec +8 -13
  338. data/vendor/bundle/ruby/2.6.0/specifications/hashdiff-1.0.1.gemspec +9 -15
  339. data/vendor/bundle/ruby/2.6.0/specifications/{json-2.6.1.gemspec → json-2.6.2.gemspec} +0 -0
  340. data/vendor/bundle/ruby/2.6.0/specifications/{public_suffix-4.0.6.gemspec → public_suffix-4.0.7.gemspec} +6 -6
  341. data/vendor/bundle/ruby/2.6.0/specifications/rake-12.3.3.gemspec +9 -15
  342. data/vendor/bundle/ruby/2.6.0/specifications/rexml-3.2.5.gemspec +7 -11
  343. data/vendor/bundle/ruby/2.6.0/specifications/rspec-3.11.0.gemspec +7 -11
  344. data/vendor/bundle/ruby/2.6.0/specifications/rspec-core-3.11.0.gemspec +13 -23
  345. data/vendor/bundle/ruby/2.6.0/specifications/rspec-expectations-3.11.0.gemspec +10 -17
  346. data/vendor/bundle/ruby/2.6.0/specifications/{rspec-mocks-3.11.0.gemspec → rspec-mocks-3.11.1.gemspec} +15 -22
  347. data/vendor/bundle/ruby/2.6.0/specifications/rspec-support-3.11.0.gemspec +6 -9
  348. data/vendor/bundle/ruby/2.6.0/specifications/sys-uname-1.2.2.gemspec +7 -11
  349. data/vendor/bundle/ruby/2.6.0/specifications/typhoeus-1.4.0.gemspec +5 -7
  350. data/vendor/bundle/ruby/2.6.0/specifications/vcr-3.0.3.gemspec +26 -49
  351. data/vendor/bundle/ruby/2.6.0/specifications/webmock-1.24.6.gemspec +19 -35
  352. metadata +246 -175
  353. data/docs/StorageregionsApi.md +0 -112
  354. data/vendor/bundle/ruby/2.6.0/cache/json-2.6.1.gem +0 -0
  355. data/vendor/bundle/ruby/2.6.0/cache/public_suffix-4.0.6.gem +0 -0
  356. data/vendor/bundle/ruby/2.6.0/cache/rspec-mocks-3.11.0.gem +0 -0
  357. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.6.1/gem_make.out +0 -13
  358. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.6.1/json/ext/generator.so +0 -0
  359. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.6.1/json/ext/parser.so +0 -0
  360. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.1/VERSION +0 -1
  361. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.1/ext/json/ext/generator/generator.o +0 -0
  362. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.1/ext/json/ext/generator/generator.so +0 -0
  363. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.1/ext/json/ext/parser/parser.o +0 -0
  364. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.1/ext/json/ext/parser/parser.so +0 -0
  365. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.1/lib/json/ext/generator.so +0 -0
  366. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.1/lib/json/ext/parser.so +0 -0
  367. data/vendor/bundle/ruby/2.6.0/gems/public_suffix-4.0.6/.github/workflows/tests.yml +0 -36
  368. data/vendor/bundle/ruby/2.6.0/gems/public_suffix-4.0.6/.travis.yml +0 -23
  369. data/vendor/bundle/ruby/2.6.0/gems/public_suffix-4.0.6/codecov.yml +0 -12
@@ -0,0 +1,254 @@
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 OrgsTeamsCreate
17
+ # None
18
+ attr_accessor :description
19
+
20
+ # None
21
+ attr_accessor :name
22
+
23
+ # None
24
+ attr_accessor :slug
25
+
26
+ # None
27
+ attr_accessor :visibility
28
+
29
+ class EnumAttributeValidator
30
+ attr_reader :datatype
31
+ attr_reader :allowable_values
32
+
33
+ def initialize(datatype, allowable_values)
34
+ @allowable_values = allowable_values.map do |value|
35
+ case datatype.to_s
36
+ when /Integer/i
37
+ value.to_i
38
+ when /Float/i
39
+ value.to_f
40
+ else
41
+ value
42
+ end
43
+ end
44
+ end
45
+
46
+ def valid?(value)
47
+ !value || allowable_values.include?(value)
48
+ end
49
+ end
50
+
51
+ # Attribute mapping from ruby-style variable name to JSON key.
52
+ def self.attribute_map
53
+ {
54
+ :'description' => :'description',
55
+ :'name' => :'name',
56
+ :'slug' => :'slug',
57
+ :'visibility' => :'visibility'
58
+ }
59
+ end
60
+
61
+ # Attribute type mapping.
62
+ def self.swagger_types
63
+ {
64
+ :'description' => :'String',
65
+ :'name' => :'String',
66
+ :'slug' => :'String',
67
+ :'visibility' => :'String'
68
+ }
69
+ end
70
+
71
+ # Initializes the object
72
+ # @param [Hash] attributes Model attributes in the form of hash
73
+ def initialize(attributes = {})
74
+ return unless attributes.is_a?(Hash)
75
+
76
+ # convert string to symbol for hash key
77
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
78
+
79
+ if attributes.has_key?(:'description')
80
+ self.description = attributes[:'description']
81
+ end
82
+
83
+ if attributes.has_key?(:'name')
84
+ self.name = attributes[:'name']
85
+ end
86
+
87
+ if attributes.has_key?(:'slug')
88
+ self.slug = attributes[:'slug']
89
+ end
90
+
91
+ if attributes.has_key?(:'visibility')
92
+ self.visibility = attributes[:'visibility']
93
+ end
94
+ end
95
+
96
+ # Show invalid properties with the reasons. Usually used together with valid?
97
+ # @return Array for valid properties with the reasons
98
+ def list_invalid_properties
99
+ invalid_properties = Array.new
100
+ if @name.nil?
101
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
102
+ end
103
+
104
+ invalid_properties
105
+ end
106
+
107
+ # Check to see if the all the properties in the model are valid
108
+ # @return true if the model is valid
109
+ def valid?
110
+ return false if @name.nil?
111
+ visibility_validator = EnumAttributeValidator.new('String', ['Visible', 'Hidden'])
112
+ return false unless visibility_validator.valid?(@visibility)
113
+ true
114
+ end
115
+
116
+ # Custom attribute writer method checking allowed values (enum).
117
+ # @param [Object] visibility Object to be assigned
118
+ def visibility=(visibility)
119
+ validator = EnumAttributeValidator.new('String', ['Visible', 'Hidden'])
120
+ unless validator.valid?(visibility)
121
+ fail ArgumentError, 'invalid value for "visibility", must be one of #{validator.allowable_values}.'
122
+ end
123
+ @visibility = visibility
124
+ end
125
+
126
+ # Checks equality by comparing each attribute.
127
+ # @param [Object] Object to be compared
128
+ def ==(o)
129
+ return true if self.equal?(o)
130
+ self.class == o.class &&
131
+ description == o.description &&
132
+ name == o.name &&
133
+ slug == o.slug &&
134
+ visibility == o.visibility
135
+ end
136
+
137
+ # @see the `==` method
138
+ # @param [Object] Object to be compared
139
+ def eql?(o)
140
+ self == o
141
+ end
142
+
143
+ # Calculates hash code according to all attributes.
144
+ # @return [Fixnum] Hash code
145
+ def hash
146
+ [description, name, slug, visibility].hash
147
+ end
148
+
149
+ # Builds the object from hash
150
+ # @param [Hash] attributes Model attributes in the form of hash
151
+ # @return [Object] Returns the model itself
152
+ def build_from_hash(attributes)
153
+ return nil unless attributes.is_a?(Hash)
154
+ self.class.swagger_types.each_pair do |key, type|
155
+ if type =~ /\AArray<(.*)>/i
156
+ # check to ensure the input is an array given that the attribute
157
+ # is documented as an array but the input is not
158
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
159
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
160
+ end
161
+ elsif !attributes[self.class.attribute_map[key]].nil?
162
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
163
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
164
+ end
165
+
166
+ self
167
+ end
168
+
169
+ # Deserializes the data based on type
170
+ # @param string type Data type
171
+ # @param string value Value to be deserialized
172
+ # @return [Object] Deserialized data
173
+ def _deserialize(type, value)
174
+ case type.to_sym
175
+ when :DateTime
176
+ DateTime.parse(value)
177
+ when :Date
178
+ Date.parse(value)
179
+ when :String
180
+ value.to_s
181
+ when :Integer
182
+ value.to_i
183
+ when :Float
184
+ value.to_f
185
+ when :BOOLEAN
186
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
187
+ true
188
+ else
189
+ false
190
+ end
191
+ when :Object
192
+ # generic object (usually a Hash), return directly
193
+ value
194
+ when /\AArray<(?<inner_type>.+)>\z/
195
+ inner_type = Regexp.last_match[:inner_type]
196
+ value.map { |v| _deserialize(inner_type, v) }
197
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
198
+ k_type = Regexp.last_match[:k_type]
199
+ v_type = Regexp.last_match[:v_type]
200
+ {}.tap do |hash|
201
+ value.each do |k, v|
202
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
203
+ end
204
+ end
205
+ else # model
206
+ temp_model = CloudsmithApi.const_get(type).new
207
+ temp_model.build_from_hash(value)
208
+ end
209
+ end
210
+
211
+ # Returns the string representation of the object
212
+ # @return [String] String presentation of the object
213
+ def to_s
214
+ to_hash.to_s
215
+ end
216
+
217
+ # to_body is an alias to to_hash (backward compatibility)
218
+ # @return [Hash] Returns the object in the form of hash
219
+ def to_body
220
+ to_hash
221
+ end
222
+
223
+ # Returns the object in the form of hash
224
+ # @return [Hash] Returns the object in the form of hash
225
+ def to_hash
226
+ hash = {}
227
+ self.class.attribute_map.each_pair do |attr, param|
228
+ value = self.send(attr)
229
+ next if value.nil?
230
+ hash[param] = _to_hash(value)
231
+ end
232
+ hash
233
+ end
234
+
235
+ # Outputs non-array value in the form of hash
236
+ # For object, use to_hash. Otherwise, just return the value
237
+ # @param [Object] value Any valid value
238
+ # @return [Hash] Returns the value in the form of hash
239
+ def _to_hash(value)
240
+ if value.is_a?(Array)
241
+ value.compact.map { |v| _to_hash(v) }
242
+ elsif value.is_a?(Hash)
243
+ {}.tap do |hash|
244
+ value.each { |k, v| hash[k] = _to_hash(v) }
245
+ end
246
+ elsif value.respond_to? :to_hash
247
+ value.to_hash
248
+ else
249
+ value
250
+ end
251
+ end
252
+
253
+ end
254
+ end
@@ -0,0 +1,249 @@
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 OrgsTeamsPartialUpdate
17
+ # None
18
+ attr_accessor :description
19
+
20
+ # None
21
+ attr_accessor :name
22
+
23
+ # None
24
+ attr_accessor :slug
25
+
26
+ # None
27
+ attr_accessor :visibility
28
+
29
+ class EnumAttributeValidator
30
+ attr_reader :datatype
31
+ attr_reader :allowable_values
32
+
33
+ def initialize(datatype, allowable_values)
34
+ @allowable_values = allowable_values.map do |value|
35
+ case datatype.to_s
36
+ when /Integer/i
37
+ value.to_i
38
+ when /Float/i
39
+ value.to_f
40
+ else
41
+ value
42
+ end
43
+ end
44
+ end
45
+
46
+ def valid?(value)
47
+ !value || allowable_values.include?(value)
48
+ end
49
+ end
50
+
51
+ # Attribute mapping from ruby-style variable name to JSON key.
52
+ def self.attribute_map
53
+ {
54
+ :'description' => :'description',
55
+ :'name' => :'name',
56
+ :'slug' => :'slug',
57
+ :'visibility' => :'visibility'
58
+ }
59
+ end
60
+
61
+ # Attribute type mapping.
62
+ def self.swagger_types
63
+ {
64
+ :'description' => :'String',
65
+ :'name' => :'String',
66
+ :'slug' => :'String',
67
+ :'visibility' => :'String'
68
+ }
69
+ end
70
+
71
+ # Initializes the object
72
+ # @param [Hash] attributes Model attributes in the form of hash
73
+ def initialize(attributes = {})
74
+ return unless attributes.is_a?(Hash)
75
+
76
+ # convert string to symbol for hash key
77
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
78
+
79
+ if attributes.has_key?(:'description')
80
+ self.description = attributes[:'description']
81
+ end
82
+
83
+ if attributes.has_key?(:'name')
84
+ self.name = attributes[:'name']
85
+ end
86
+
87
+ if attributes.has_key?(:'slug')
88
+ self.slug = attributes[:'slug']
89
+ end
90
+
91
+ if attributes.has_key?(:'visibility')
92
+ self.visibility = attributes[:'visibility']
93
+ end
94
+ end
95
+
96
+ # Show invalid properties with the reasons. Usually used together with valid?
97
+ # @return Array for valid properties with the reasons
98
+ def list_invalid_properties
99
+ invalid_properties = Array.new
100
+ invalid_properties
101
+ end
102
+
103
+ # Check to see if the all the properties in the model are valid
104
+ # @return true if the model is valid
105
+ def valid?
106
+ visibility_validator = EnumAttributeValidator.new('String', ['Visible', 'Hidden'])
107
+ return false unless visibility_validator.valid?(@visibility)
108
+ true
109
+ end
110
+
111
+ # Custom attribute writer method checking allowed values (enum).
112
+ # @param [Object] visibility Object to be assigned
113
+ def visibility=(visibility)
114
+ validator = EnumAttributeValidator.new('String', ['Visible', 'Hidden'])
115
+ unless validator.valid?(visibility)
116
+ fail ArgumentError, 'invalid value for "visibility", must be one of #{validator.allowable_values}.'
117
+ end
118
+ @visibility = visibility
119
+ end
120
+
121
+ # Checks equality by comparing each attribute.
122
+ # @param [Object] Object to be compared
123
+ def ==(o)
124
+ return true if self.equal?(o)
125
+ self.class == o.class &&
126
+ description == o.description &&
127
+ name == o.name &&
128
+ slug == o.slug &&
129
+ visibility == o.visibility
130
+ end
131
+
132
+ # @see the `==` method
133
+ # @param [Object] Object to be compared
134
+ def eql?(o)
135
+ self == o
136
+ end
137
+
138
+ # Calculates hash code according to all attributes.
139
+ # @return [Fixnum] Hash code
140
+ def hash
141
+ [description, name, slug, visibility].hash
142
+ end
143
+
144
+ # Builds the object from hash
145
+ # @param [Hash] attributes Model attributes in the form of hash
146
+ # @return [Object] Returns the model itself
147
+ def build_from_hash(attributes)
148
+ return nil unless attributes.is_a?(Hash)
149
+ self.class.swagger_types.each_pair do |key, type|
150
+ if type =~ /\AArray<(.*)>/i
151
+ # check to ensure the input is an array given that the attribute
152
+ # is documented as an array but the input is not
153
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
154
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
155
+ end
156
+ elsif !attributes[self.class.attribute_map[key]].nil?
157
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
158
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
159
+ end
160
+
161
+ self
162
+ end
163
+
164
+ # Deserializes the data based on type
165
+ # @param string type Data type
166
+ # @param string value Value to be deserialized
167
+ # @return [Object] Deserialized data
168
+ def _deserialize(type, value)
169
+ case type.to_sym
170
+ when :DateTime
171
+ DateTime.parse(value)
172
+ when :Date
173
+ Date.parse(value)
174
+ when :String
175
+ value.to_s
176
+ when :Integer
177
+ value.to_i
178
+ when :Float
179
+ value.to_f
180
+ when :BOOLEAN
181
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
182
+ true
183
+ else
184
+ false
185
+ end
186
+ when :Object
187
+ # generic object (usually a Hash), return directly
188
+ value
189
+ when /\AArray<(?<inner_type>.+)>\z/
190
+ inner_type = Regexp.last_match[:inner_type]
191
+ value.map { |v| _deserialize(inner_type, v) }
192
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
193
+ k_type = Regexp.last_match[:k_type]
194
+ v_type = Regexp.last_match[:v_type]
195
+ {}.tap do |hash|
196
+ value.each do |k, v|
197
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
198
+ end
199
+ end
200
+ else # model
201
+ temp_model = CloudsmithApi.const_get(type).new
202
+ temp_model.build_from_hash(value)
203
+ end
204
+ end
205
+
206
+ # Returns the string representation of the object
207
+ # @return [String] String presentation of the object
208
+ def to_s
209
+ to_hash.to_s
210
+ end
211
+
212
+ # to_body is an alias to to_hash (backward compatibility)
213
+ # @return [Hash] Returns the object in the form of hash
214
+ def to_body
215
+ to_hash
216
+ end
217
+
218
+ # Returns the object in the form of hash
219
+ # @return [Hash] Returns the object in the form of hash
220
+ def to_hash
221
+ hash = {}
222
+ self.class.attribute_map.each_pair do |attr, param|
223
+ value = self.send(attr)
224
+ next if value.nil?
225
+ hash[param] = _to_hash(value)
226
+ end
227
+ hash
228
+ end
229
+
230
+ # Outputs non-array value in the form of hash
231
+ # For object, use to_hash. Otherwise, just return the value
232
+ # @param [Object] value Any valid value
233
+ # @return [Hash] Returns the value in the form of hash
234
+ def _to_hash(value)
235
+ if value.is_a?(Array)
236
+ value.compact.map { |v| _to_hash(v) }
237
+ elsif value.is_a?(Hash)
238
+ {}.tap do |hash|
239
+ value.each { |k, v| hash[k] = _to_hash(v) }
240
+ end
241
+ elsif value.respond_to? :to_hash
242
+ value.to_hash
243
+ else
244
+ value
245
+ end
246
+ end
247
+
248
+ end
249
+ end
@@ -74,6 +74,12 @@ module CloudsmithApi
74
74
  #
75
75
  attr_accessor :indexed
76
76
 
77
+ #
78
+ attr_accessor :is_downloadable
79
+
80
+ #
81
+ attr_accessor :is_quarantined
82
+
77
83
  #
78
84
  attr_accessor :is_sync_awaiting
79
85
 
@@ -209,6 +215,28 @@ module CloudsmithApi
209
215
  #
210
216
  attr_accessor :vulnerability_scan_results_url
211
217
 
218
+ class EnumAttributeValidator
219
+ attr_reader :datatype
220
+ attr_reader :allowable_values
221
+
222
+ def initialize(datatype, allowable_values)
223
+ @allowable_values = allowable_values.map do |value|
224
+ case datatype.to_s
225
+ when /Integer/i
226
+ value.to_i
227
+ when /Float/i
228
+ value.to_f
229
+ else
230
+ value
231
+ end
232
+ end
233
+ end
234
+
235
+ def valid?(value)
236
+ !value || allowable_values.include?(value)
237
+ end
238
+ end
239
+
212
240
  # Attribute mapping from ruby-style variable name to JSON key.
213
241
  def self.attribute_map
214
242
  {
@@ -232,6 +260,8 @@ module CloudsmithApi
232
260
  :'format_url' => :'format_url',
233
261
  :'identifier_perm' => :'identifier_perm',
234
262
  :'indexed' => :'indexed',
263
+ :'is_downloadable' => :'is_downloadable',
264
+ :'is_quarantined' => :'is_quarantined',
235
265
  :'is_sync_awaiting' => :'is_sync_awaiting',
236
266
  :'is_sync_completed' => :'is_sync_completed',
237
267
  :'is_sync_failed' => :'is_sync_failed',
@@ -303,6 +333,8 @@ module CloudsmithApi
303
333
  :'format_url' => :'String',
304
334
  :'identifier_perm' => :'String',
305
335
  :'indexed' => :'BOOLEAN',
336
+ :'is_downloadable' => :'BOOLEAN',
337
+ :'is_quarantined' => :'BOOLEAN',
306
338
  :'is_sync_awaiting' => :'BOOLEAN',
307
339
  :'is_sync_completed' => :'BOOLEAN',
308
340
  :'is_sync_failed' => :'BOOLEAN',
@@ -313,7 +345,7 @@ module CloudsmithApi
313
345
  :'namespace' => :'String',
314
346
  :'namespace_url' => :'String',
315
347
  :'num_files' => :'Integer',
316
- :'package_type' => :'String',
348
+ :'package_type' => :'Integer',
317
349
  :'release' => :'String',
318
350
  :'repository' => :'String',
319
351
  :'repository_url' => :'String',
@@ -327,10 +359,10 @@ module CloudsmithApi
327
359
  :'size' => :'Integer',
328
360
  :'slug' => :'String',
329
361
  :'slug_perm' => :'String',
330
- :'stage' => :'String',
362
+ :'stage' => :'Integer',
331
363
  :'stage_str' => :'String',
332
364
  :'stage_updated_at' => :'String',
333
- :'status' => :'String',
365
+ :'status' => :'Integer',
334
366
  :'status_reason' => :'String',
335
367
  :'status_str' => :'String',
336
368
  :'status_updated_at' => :'String',
@@ -443,6 +475,14 @@ module CloudsmithApi
443
475
  self.indexed = attributes[:'indexed']
444
476
  end
445
477
 
478
+ if attributes.has_key?(:'is_downloadable')
479
+ self.is_downloadable = attributes[:'is_downloadable']
480
+ end
481
+
482
+ if attributes.has_key?(:'is_quarantined')
483
+ self.is_quarantined = attributes[:'is_quarantined']
484
+ end
485
+
446
486
  if attributes.has_key?(:'is_sync_awaiting')
447
487
  self.is_sync_awaiting = attributes[:'is_sync_awaiting']
448
488
  end
@@ -634,9 +674,21 @@ module CloudsmithApi
634
674
  # Check to see if the all the properties in the model are valid
635
675
  # @return true if the model is valid
636
676
  def valid?
677
+ security_scan_status_validator = EnumAttributeValidator.new('String', ['Awaiting Security Scan', 'Security Scanning in Progress', 'Scan Detected Vulnerabilities', 'Scan Detected No Vulnerabilities', 'Security Scanning Disabled', 'Security Scanning Failed', 'Security Scanning Skipped', 'Security Scanning Not Supported'])
678
+ return false unless security_scan_status_validator.valid?(@security_scan_status)
637
679
  true
638
680
  end
639
681
 
682
+ # Custom attribute writer method checking allowed values (enum).
683
+ # @param [Object] security_scan_status Object to be assigned
684
+ def security_scan_status=(security_scan_status)
685
+ validator = EnumAttributeValidator.new('String', ['Awaiting Security Scan', 'Security Scanning in Progress', 'Scan Detected Vulnerabilities', 'Scan Detected No Vulnerabilities', 'Security Scanning Disabled', 'Security Scanning Failed', 'Security Scanning Skipped', 'Security Scanning Not Supported'])
686
+ unless validator.valid?(security_scan_status)
687
+ fail ArgumentError, 'invalid value for "security_scan_status", must be one of #{validator.allowable_values}.'
688
+ end
689
+ @security_scan_status = security_scan_status
690
+ end
691
+
640
692
  # Checks equality by comparing each attribute.
641
693
  # @param [Object] Object to be compared
642
694
  def ==(o)
@@ -662,6 +714,8 @@ module CloudsmithApi
662
714
  format_url == o.format_url &&
663
715
  identifier_perm == o.identifier_perm &&
664
716
  indexed == o.indexed &&
717
+ is_downloadable == o.is_downloadable &&
718
+ is_quarantined == o.is_quarantined &&
665
719
  is_sync_awaiting == o.is_sync_awaiting &&
666
720
  is_sync_completed == o.is_sync_completed &&
667
721
  is_sync_failed == o.is_sync_failed &&
@@ -718,7 +772,7 @@ module CloudsmithApi
718
772
  # Calculates hash code according to all attributes.
719
773
  # @return [Fixnum] Hash code
720
774
  def hash
721
- [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_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, 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, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash
775
+ [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, 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, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash
722
776
  end
723
777
 
724
778
  # Builds the object from hash