cloudsmith-api 2.0.26 → 2.0.29

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 (272) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +24 -5
  4. data/build.json +1 -1
  5. data/docs/AlpinePackageUpload.md +2 -0
  6. data/docs/CargoPackageUpload.md +2 -0
  7. data/docs/CocoapodsPackageUpload.md +2 -0
  8. data/docs/ComposerPackageUpload.md +2 -0
  9. data/docs/ConanPackageUpload.md +2 -0
  10. data/docs/CondaPackageUpload.md +2 -0
  11. data/docs/ConnectedRepository.md +14 -0
  12. data/docs/ConnectedRepositoryRequest.md +10 -0
  13. data/docs/ConnectedRepositoryRequestPatch.md +10 -0
  14. data/docs/CranPackageUpload.md +2 -0
  15. data/docs/DartPackageUpload.md +2 -0
  16. data/docs/DebPackageUpload.md +2 -0
  17. data/docs/DockerPackageUpload.md +2 -0
  18. data/docs/EntitlementsApi.md +2 -0
  19. data/docs/FormatSupportUpstream.md +1 -0
  20. data/docs/GenericPackageUpload.md +2 -0
  21. data/docs/GoPackageUpload.md +2 -0
  22. data/docs/HelmPackageUpload.md +2 -0
  23. data/docs/HexPackageUpload.md +2 -0
  24. data/docs/HuggingfacePackageUpload.md +2 -0
  25. data/docs/InlineResponse2001.md +1 -1
  26. data/docs/InlineResponse2002.md +8 -0
  27. data/docs/LuarocksPackageUpload.md +2 -0
  28. data/docs/MavenPackageUpload.md +2 -0
  29. data/docs/McpPackageUpload.md +2 -0
  30. data/docs/MemberTeams.md +10 -0
  31. data/docs/NpmPackageUpload.md +2 -0
  32. data/docs/NugetPackageUpload.md +2 -0
  33. data/docs/OrganizationCustomDomainNestedRepo.md +9 -0
  34. data/docs/OrganizationCustomDomains.md +25 -0
  35. data/docs/OrganizationMembership.md +1 -0
  36. data/docs/OrganizationSAMLAuth.md +2 -0
  37. data/docs/OrganizationSAMLAuthRequestPatch.md +2 -0
  38. data/docs/OrgsApi.md +68 -1
  39. data/docs/P2PackageUpload.md +2 -0
  40. data/docs/Package.md +2 -0
  41. data/docs/PackageCopy.md +2 -0
  42. data/docs/PackageMove.md +2 -0
  43. data/docs/PackageQuarantine.md +2 -0
  44. data/docs/PackageResync.md +2 -0
  45. data/docs/PackageStatus.md +1 -0
  46. data/docs/PackageTag.md +2 -0
  47. data/docs/PackagesApi.md +22 -6
  48. data/docs/PythonPackageUpload.md +2 -0
  49. data/docs/RawPackageUpload.md +2 -0
  50. data/docs/RecycleBinApi.md +24 -24
  51. data/docs/ReposApi.md +594 -3
  52. data/docs/Repository.md +2 -0
  53. data/docs/RepositoryCreate.md +2 -0
  54. data/docs/RepositoryCreateRequest.md +1 -0
  55. data/docs/RepositoryEd25519Key.md +14 -0
  56. data/docs/RepositoryEd25519KeyCreate.md +9 -0
  57. data/docs/RepositoryRequestPatch.md +1 -0
  58. data/docs/RpmPackageUpload.md +2 -0
  59. data/docs/RubyPackageUpload.md +2 -0
  60. data/docs/ServiceTeams.md +1 -0
  61. data/docs/SwiftPackageUpload.md +2 -0
  62. data/docs/TerraformPackageUpload.md +2 -0
  63. data/docs/UserApi.md +2 -2
  64. data/docs/VagrantPackageUpload.md +2 -0
  65. data/docs/VsxPackageUpload.md +2 -0
  66. data/lib/cloudsmith-api/api/entitlements_api.rb +3 -0
  67. data/lib/cloudsmith-api/api/orgs_api.rb +63 -0
  68. data/lib/cloudsmith-api/api/packages_api.rb +15 -0
  69. data/lib/cloudsmith-api/api/recycle_bin_api.rb +41 -41
  70. data/lib/cloudsmith-api/api/repos_api.rb +581 -4
  71. data/lib/cloudsmith-api/api/user_api.rb +3 -3
  72. data/lib/cloudsmith-api/models/alpine_package_upload.rb +20 -1
  73. data/lib/cloudsmith-api/models/cargo_package_upload.rb +20 -1
  74. data/lib/cloudsmith-api/models/cargo_upstream.rb +2 -2
  75. data/lib/cloudsmith-api/models/cargo_upstream_request.rb +2 -2
  76. data/lib/cloudsmith-api/models/cargo_upstream_request_patch.rb +2 -2
  77. data/lib/cloudsmith-api/models/cocoapods_package_upload.rb +20 -1
  78. data/lib/cloudsmith-api/models/composer_package_upload.rb +20 -1
  79. data/lib/cloudsmith-api/models/composer_upstream.rb +2 -2
  80. data/lib/cloudsmith-api/models/composer_upstream_request.rb +2 -2
  81. data/lib/cloudsmith-api/models/composer_upstream_request_patch.rb +2 -2
  82. data/lib/cloudsmith-api/models/conan_package_upload.rb +20 -1
  83. data/lib/cloudsmith-api/models/conda_package_upload.rb +20 -1
  84. data/lib/cloudsmith-api/models/conda_upstream.rb +2 -2
  85. data/lib/cloudsmith-api/models/conda_upstream_request.rb +2 -2
  86. data/lib/cloudsmith-api/models/conda_upstream_request_patch.rb +2 -2
  87. data/lib/cloudsmith-api/models/connected_repository.rb +285 -0
  88. data/lib/cloudsmith-api/models/connected_repository_request.rb +211 -0
  89. data/lib/cloudsmith-api/models/connected_repository_request_patch.rb +206 -0
  90. data/lib/cloudsmith-api/models/cran_package_upload.rb +20 -1
  91. data/lib/cloudsmith-api/models/cran_upstream.rb +2 -2
  92. data/lib/cloudsmith-api/models/cran_upstream_request.rb +2 -2
  93. data/lib/cloudsmith-api/models/cran_upstream_request_patch.rb +2 -2
  94. data/lib/cloudsmith-api/models/dart_package_upload.rb +20 -1
  95. data/lib/cloudsmith-api/models/dart_upstream.rb +2 -2
  96. data/lib/cloudsmith-api/models/dart_upstream_request.rb +2 -2
  97. data/lib/cloudsmith-api/models/dart_upstream_request_patch.rb +2 -2
  98. data/lib/cloudsmith-api/models/deb_package_upload.rb +20 -1
  99. data/lib/cloudsmith-api/models/deb_upstream.rb +2 -2
  100. data/lib/cloudsmith-api/models/deb_upstream_request.rb +2 -2
  101. data/lib/cloudsmith-api/models/deb_upstream_request_patch.rb +2 -2
  102. data/lib/cloudsmith-api/models/docker_package_upload.rb +20 -1
  103. data/lib/cloudsmith-api/models/format_support_upstream.rb +16 -1
  104. data/lib/cloudsmith-api/models/generic_package_upload.rb +20 -1
  105. data/lib/cloudsmith-api/models/generic_upstream.rb +2 -2
  106. data/lib/cloudsmith-api/models/generic_upstream_request.rb +2 -2
  107. data/lib/cloudsmith-api/models/generic_upstream_request_patch.rb +2 -2
  108. data/lib/cloudsmith-api/models/go_package_upload.rb +20 -1
  109. data/lib/cloudsmith-api/models/helm_package_upload.rb +20 -1
  110. data/lib/cloudsmith-api/models/helm_upstream.rb +2 -2
  111. data/lib/cloudsmith-api/models/helm_upstream_request.rb +2 -2
  112. data/lib/cloudsmith-api/models/helm_upstream_request_patch.rb +2 -2
  113. data/lib/cloudsmith-api/models/hex_package_upload.rb +20 -1
  114. data/lib/cloudsmith-api/models/hex_upstream.rb +2 -2
  115. data/lib/cloudsmith-api/models/hex_upstream_request.rb +2 -2
  116. data/lib/cloudsmith-api/models/hex_upstream_request_patch.rb +2 -2
  117. data/lib/cloudsmith-api/models/huggingface_package_upload.rb +20 -1
  118. data/lib/cloudsmith-api/models/inline_response_200_1.rb +1 -1
  119. data/lib/cloudsmith-api/models/inline_response_200_2.rb +191 -0
  120. data/lib/cloudsmith-api/models/luarocks_package_upload.rb +20 -1
  121. data/lib/cloudsmith-api/models/maven_package_upload.rb +20 -1
  122. data/lib/cloudsmith-api/models/mcp_package_upload.rb +20 -1
  123. data/lib/cloudsmith-api/models/member_teams.rb +238 -0
  124. data/lib/cloudsmith-api/models/npm_package_upload.rb +20 -1
  125. data/lib/cloudsmith-api/models/npm_upstream.rb +2 -2
  126. data/lib/cloudsmith-api/models/npm_upstream_request.rb +2 -2
  127. data/lib/cloudsmith-api/models/npm_upstream_request_patch.rb +2 -2
  128. data/lib/cloudsmith-api/models/nuget_package_upload.rb +20 -1
  129. data/lib/cloudsmith-api/models/nuget_upstream.rb +2 -2
  130. data/lib/cloudsmith-api/models/nuget_upstream_request.rb +2 -2
  131. data/lib/cloudsmith-api/models/nuget_upstream_request_patch.rb +2 -2
  132. data/lib/cloudsmith-api/models/organization_custom_domain_nested_repo.rb +195 -0
  133. data/lib/cloudsmith-api/models/organization_custom_domains.rb +355 -0
  134. data/lib/cloudsmith-api/models/organization_membership.rb +12 -1
  135. data/lib/cloudsmith-api/models/organization_saml_auth.rb +24 -4
  136. data/lib/cloudsmith-api/models/organization_saml_auth_request_patch.rb +24 -4
  137. data/lib/cloudsmith-api/models/p2_package_upload.rb +20 -1
  138. data/lib/cloudsmith-api/models/package.rb +20 -1
  139. data/lib/cloudsmith-api/models/package_copy.rb +20 -1
  140. data/lib/cloudsmith-api/models/package_move.rb +20 -1
  141. data/lib/cloudsmith-api/models/package_quarantine.rb +20 -1
  142. data/lib/cloudsmith-api/models/package_resync.rb +20 -1
  143. data/lib/cloudsmith-api/models/package_status.rb +10 -1
  144. data/lib/cloudsmith-api/models/package_tag.rb +20 -1
  145. data/lib/cloudsmith-api/models/python_package_upload.rb +20 -1
  146. data/lib/cloudsmith-api/models/python_upstream.rb +2 -2
  147. data/lib/cloudsmith-api/models/python_upstream_request.rb +2 -2
  148. data/lib/cloudsmith-api/models/python_upstream_request_patch.rb +2 -2
  149. data/lib/cloudsmith-api/models/raw_package_upload.rb +20 -1
  150. data/lib/cloudsmith-api/models/repository.rb +21 -1
  151. data/lib/cloudsmith-api/models/repository_create.rb +21 -1
  152. data/lib/cloudsmith-api/models/repository_create_request.rb +11 -1
  153. data/lib/cloudsmith-api/models/repository_ed25519_key.rb +243 -0
  154. data/lib/cloudsmith-api/models/repository_ed25519_key_create.rb +200 -0
  155. data/lib/cloudsmith-api/models/repository_request_patch.rb +11 -1
  156. data/lib/cloudsmith-api/models/rpm_package_upload.rb +20 -1
  157. data/lib/cloudsmith-api/models/ruby_package_upload.rb +20 -1
  158. data/lib/cloudsmith-api/models/service_teams.rb +11 -1
  159. data/lib/cloudsmith-api/models/swift_package_upload.rb +20 -1
  160. data/lib/cloudsmith-api/models/terraform_package_upload.rb +20 -1
  161. data/lib/cloudsmith-api/models/vagrant_package_upload.rb +20 -1
  162. data/lib/cloudsmith-api/models/vsx_package_upload.rb +20 -1
  163. data/lib/cloudsmith-api/version.rb +1 -1
  164. data/lib/cloudsmith-api.rb +9 -0
  165. data/spec/api/entitlements_api_spec.rb +1 -0
  166. data/spec/api/orgs_api_spec.rb +15 -0
  167. data/spec/api/packages_api_spec.rb +5 -0
  168. data/spec/api/recycle_bin_api_spec.rb +12 -12
  169. data/spec/api/repos_api_spec.rb +129 -2
  170. data/spec/api/user_api_spec.rb +1 -1
  171. data/spec/models/alpine_package_upload_spec.rb +12 -0
  172. data/spec/models/cargo_package_upload_spec.rb +12 -0
  173. data/spec/models/cargo_upstream_request_patch_spec.rb +1 -1
  174. data/spec/models/cargo_upstream_request_spec.rb +1 -1
  175. data/spec/models/cargo_upstream_spec.rb +1 -1
  176. data/spec/models/cocoapods_package_upload_spec.rb +12 -0
  177. data/spec/models/composer_package_upload_spec.rb +12 -0
  178. data/spec/models/composer_upstream_request_patch_spec.rb +1 -1
  179. data/spec/models/composer_upstream_request_spec.rb +1 -1
  180. data/spec/models/composer_upstream_spec.rb +1 -1
  181. data/spec/models/conan_package_upload_spec.rb +12 -0
  182. data/spec/models/conda_package_upload_spec.rb +12 -0
  183. data/spec/models/conda_upstream_request_patch_spec.rb +1 -1
  184. data/spec/models/conda_upstream_request_spec.rb +1 -1
  185. data/spec/models/conda_upstream_spec.rb +1 -1
  186. data/spec/models/connected_repository_request_patch_spec.rb +53 -0
  187. data/spec/models/connected_repository_request_spec.rb +53 -0
  188. data/spec/models/connected_repository_spec.rb +81 -0
  189. data/spec/models/cran_package_upload_spec.rb +12 -0
  190. data/spec/models/cran_upstream_request_patch_spec.rb +1 -1
  191. data/spec/models/cran_upstream_request_spec.rb +1 -1
  192. data/spec/models/cran_upstream_spec.rb +1 -1
  193. data/spec/models/dart_package_upload_spec.rb +12 -0
  194. data/spec/models/dart_upstream_request_patch_spec.rb +1 -1
  195. data/spec/models/dart_upstream_request_spec.rb +1 -1
  196. data/spec/models/dart_upstream_spec.rb +1 -1
  197. data/spec/models/deb_package_upload_spec.rb +12 -0
  198. data/spec/models/deb_upstream_request_patch_spec.rb +1 -1
  199. data/spec/models/deb_upstream_request_spec.rb +1 -1
  200. data/spec/models/deb_upstream_spec.rb +1 -1
  201. data/spec/models/docker_package_upload_spec.rb +12 -0
  202. data/spec/models/format_support_upstream_spec.rb +6 -0
  203. data/spec/models/generic_package_upload_spec.rb +12 -0
  204. data/spec/models/generic_upstream_request_patch_spec.rb +1 -1
  205. data/spec/models/generic_upstream_request_spec.rb +1 -1
  206. data/spec/models/generic_upstream_spec.rb +1 -1
  207. data/spec/models/go_package_upload_spec.rb +12 -0
  208. data/spec/models/helm_package_upload_spec.rb +12 -0
  209. data/spec/models/helm_upstream_request_patch_spec.rb +1 -1
  210. data/spec/models/helm_upstream_request_spec.rb +1 -1
  211. data/spec/models/helm_upstream_spec.rb +1 -1
  212. data/spec/models/hex_package_upload_spec.rb +12 -0
  213. data/spec/models/hex_upstream_request_patch_spec.rb +1 -1
  214. data/spec/models/hex_upstream_request_spec.rb +1 -1
  215. data/spec/models/hex_upstream_spec.rb +1 -1
  216. data/spec/models/huggingface_package_upload_spec.rb +12 -0
  217. data/spec/models/inline_response_200_2_spec.rb +41 -0
  218. data/spec/models/luarocks_package_upload_spec.rb +12 -0
  219. data/spec/models/maven_package_upload_spec.rb +12 -0
  220. data/spec/models/mcp_package_upload_spec.rb +12 -0
  221. data/spec/models/member_teams_spec.rb +57 -0
  222. data/spec/models/npm_package_upload_spec.rb +12 -0
  223. data/spec/models/npm_upstream_request_patch_spec.rb +1 -1
  224. data/spec/models/npm_upstream_request_spec.rb +1 -1
  225. data/spec/models/npm_upstream_spec.rb +1 -1
  226. data/spec/models/nuget_package_upload_spec.rb +12 -0
  227. data/spec/models/nuget_upstream_request_patch_spec.rb +1 -1
  228. data/spec/models/nuget_upstream_request_spec.rb +1 -1
  229. data/spec/models/nuget_upstream_spec.rb +1 -1
  230. data/spec/models/organization_custom_domain_nested_repo_spec.rb +47 -0
  231. data/spec/models/organization_custom_domains_spec.rb +143 -0
  232. data/spec/models/organization_membership_spec.rb +6 -0
  233. data/spec/models/organization_saml_auth_request_patch_spec.rb +12 -0
  234. data/spec/models/organization_saml_auth_spec.rb +12 -0
  235. data/spec/models/p2_package_upload_spec.rb +12 -0
  236. data/spec/models/package_copy_spec.rb +12 -0
  237. data/spec/models/package_move_spec.rb +12 -0
  238. data/spec/models/package_quarantine_spec.rb +12 -0
  239. data/spec/models/package_resync_spec.rb +12 -0
  240. data/spec/models/package_spec.rb +12 -0
  241. data/spec/models/package_status_spec.rb +6 -0
  242. data/spec/models/package_tag_spec.rb +12 -0
  243. data/spec/models/python_package_upload_spec.rb +12 -0
  244. data/spec/models/python_upstream_request_patch_spec.rb +1 -1
  245. data/spec/models/python_upstream_request_spec.rb +1 -1
  246. data/spec/models/python_upstream_spec.rb +1 -1
  247. data/spec/models/raw_package_upload_spec.rb +12 -0
  248. data/spec/models/repository_create_request_spec.rb +6 -0
  249. data/spec/models/repository_create_spec.rb +12 -0
  250. data/spec/models/repository_ed25519_key_create_spec.rb +47 -0
  251. data/spec/models/repository_ed25519_key_spec.rb +77 -0
  252. data/spec/models/repository_request_patch_spec.rb +6 -0
  253. data/spec/models/repository_spec.rb +12 -0
  254. data/spec/models/rpm_package_upload_spec.rb +12 -0
  255. data/spec/models/ruby_package_upload_spec.rb +12 -0
  256. data/spec/models/service_teams_spec.rb +6 -0
  257. data/spec/models/swift_package_upload_spec.rb +12 -0
  258. data/spec/models/terraform_package_upload_spec.rb +12 -0
  259. data/spec/models/vagrant_package_upload_spec.rb +12 -0
  260. data/spec/models/vsx_package_upload_spec.rb +12 -0
  261. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/autotest-fsevent-0.3.2/gem_make.out +1 -1
  262. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/bigdecimal-4.1.2/gem_make.out +2 -2
  263. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/bigdecimal-4.1.2/mkmf.log +4 -4
  264. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.17.4/gem_make.out +2 -2
  265. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.17.4/mkmf.log +1 -1
  266. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.7.6/gem_make.out +2 -2
  267. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.7.6/mkmf.log +1 -1
  268. data/vendor/bundle/ruby/2.6.0/gems/bigdecimal-4.1.2/ext/bigdecimal/Makefile +2 -2
  269. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.17.4/ext/ffi_c/Makefile +2 -2
  270. data/vendor/bundle/ruby/2.6.0/gems/json-2.7.6/ext/json/ext/generator/Makefile +2 -2
  271. data/vendor/bundle/ruby/2.6.0/gems/json-2.7.6/ext/json/ext/parser/Makefile +2 -2
  272. metadata +41 -5
@@ -76,6 +76,8 @@ class HexPackageUpload
76
76
 
77
77
  attr_accessor :is_downloadable
78
78
 
79
+ attr_accessor :is_hidden
80
+
79
81
  attr_accessor :is_moveable
80
82
 
81
83
  attr_accessor :is_quarantinable
@@ -112,6 +114,9 @@ class HexPackageUpload
112
114
 
113
115
  attr_accessor :origin_repository_url
114
116
 
117
+ # Whether the package's SPDX license is OSI-approved.
118
+ attr_accessor :osi_approved
119
+
115
120
  # The type of package contents.
116
121
  attr_accessor :package_type
117
122
 
@@ -263,6 +268,7 @@ class HexPackageUpload
263
268
  :'is_copyable' => :'is_copyable',
264
269
  :'is_deleteable' => :'is_deleteable',
265
270
  :'is_downloadable' => :'is_downloadable',
271
+ :'is_hidden' => :'is_hidden',
266
272
  :'is_moveable' => :'is_moveable',
267
273
  :'is_quarantinable' => :'is_quarantinable',
268
274
  :'is_quarantined' => :'is_quarantined',
@@ -280,6 +286,7 @@ class HexPackageUpload
280
286
  :'num_files' => :'num_files',
281
287
  :'origin_repository' => :'origin_repository',
282
288
  :'origin_repository_url' => :'origin_repository_url',
289
+ :'osi_approved' => :'osi_approved',
283
290
  :'package_type' => :'package_type',
284
291
  :'policy_violated' => :'policy_violated',
285
292
  :'raw_license' => :'raw_license',
@@ -353,6 +360,7 @@ class HexPackageUpload
353
360
  :'is_copyable' => :'BOOLEAN',
354
361
  :'is_deleteable' => :'BOOLEAN',
355
362
  :'is_downloadable' => :'BOOLEAN',
363
+ :'is_hidden' => :'BOOLEAN',
356
364
  :'is_moveable' => :'BOOLEAN',
357
365
  :'is_quarantinable' => :'BOOLEAN',
358
366
  :'is_quarantined' => :'BOOLEAN',
@@ -370,6 +378,7 @@ class HexPackageUpload
370
378
  :'num_files' => :'Integer',
371
379
  :'origin_repository' => :'String',
372
380
  :'origin_repository_url' => :'String',
381
+ :'osi_approved' => :'BOOLEAN',
373
382
  :'package_type' => :'Integer',
374
383
  :'policy_violated' => :'BOOLEAN',
375
384
  :'raw_license' => :'String',
@@ -538,6 +547,10 @@ class HexPackageUpload
538
547
  self.is_downloadable = attributes[:'is_downloadable']
539
548
  end
540
549
 
550
+ if attributes.has_key?(:'is_hidden')
551
+ self.is_hidden = attributes[:'is_hidden']
552
+ end
553
+
541
554
  if attributes.has_key?(:'is_moveable')
542
555
  self.is_moveable = attributes[:'is_moveable']
543
556
  end
@@ -606,6 +619,10 @@ class HexPackageUpload
606
619
  self.origin_repository_url = attributes[:'origin_repository_url']
607
620
  end
608
621
 
622
+ if attributes.has_key?(:'osi_approved')
623
+ self.osi_approved = attributes[:'osi_approved']
624
+ end
625
+
609
626
  if attributes.has_key?(:'package_type')
610
627
  self.package_type = attributes[:'package_type']
611
628
  end
@@ -823,6 +840,7 @@ class HexPackageUpload
823
840
  is_copyable == o.is_copyable &&
824
841
  is_deleteable == o.is_deleteable &&
825
842
  is_downloadable == o.is_downloadable &&
843
+ is_hidden == o.is_hidden &&
826
844
  is_moveable == o.is_moveable &&
827
845
  is_quarantinable == o.is_quarantinable &&
828
846
  is_quarantined == o.is_quarantined &&
@@ -840,6 +858,7 @@ class HexPackageUpload
840
858
  num_files == o.num_files &&
841
859
  origin_repository == o.origin_repository &&
842
860
  origin_repository_url == o.origin_repository_url &&
861
+ osi_approved == o.osi_approved &&
843
862
  package_type == o.package_type &&
844
863
  policy_violated == o.policy_violated &&
845
864
  raw_license == o.raw_license &&
@@ -890,7 +909,7 @@ class HexPackageUpload
890
909
  # Calculates hash code according to all attributes.
891
910
  # @return [Fixnum] Hash code
892
911
  def hash
893
- [architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, dependencies_checksum_md5, dependencies_url, description, display_name, distro, distro_version, downloads, epoch, extension, filename, files, format, format_url, freeable_storage, fully_qualified_name, identifier_perm, identifiers, indexed, is_cancellable, is_copyable, is_deleteable, is_downloadable, is_moveable, is_quarantinable, is_quarantined, is_resyncable, is_security_scannable, 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, policy_violated, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash
912
+ [architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, dependencies_checksum_md5, dependencies_url, description, display_name, distro, distro_version, downloads, epoch, extension, filename, files, format, format_url, freeable_storage, fully_qualified_name, identifier_perm, identifiers, indexed, is_cancellable, is_copyable, is_deleteable, is_downloadable, is_hidden, is_moveable, is_quarantinable, is_quarantined, is_resyncable, is_security_scannable, 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, osi_approved, package_type, policy_violated, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash
894
913
  end
895
914
 
896
915
  # Builds the object from hash
@@ -307,7 +307,7 @@ class HexUpstream
307
307
  return false unless auth_mode_validator.valid?(@auth_mode)
308
308
  disable_reason_validator = EnumAttributeValidator.new('String', ['N/A', 'Upstream points to its own repository', 'Missing upstream source', 'RSA key did not verify the upstream\'s APKINDEX signature', 'Upstream was disabled by request of user'])
309
309
  return false unless disable_reason_validator.valid?(@disable_reason)
310
- mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
310
+ mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
311
311
  return false unless mode_validator.valid?(@mode)
312
312
  return false if @name.nil?
313
313
  return false if @upstream_url.nil?
@@ -337,7 +337,7 @@ class HexUpstream
337
337
  # Custom attribute writer method checking allowed values (enum).
338
338
  # @param [Object] mode Object to be assigned
339
339
  def mode=(mode)
340
- validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
340
+ validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
341
341
  unless validator.valid?(mode)
342
342
  fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.'
343
343
  end
@@ -198,7 +198,7 @@ class HexUpstreamRequest
198
198
  def valid?
199
199
  auth_mode_validator = EnumAttributeValidator.new('String', ['None', 'Username and Password'])
200
200
  return false unless auth_mode_validator.valid?(@auth_mode)
201
- mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
201
+ mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
202
202
  return false unless mode_validator.valid?(@mode)
203
203
  return false if @name.nil?
204
204
  return false if @upstream_url.nil?
@@ -218,7 +218,7 @@ class HexUpstreamRequest
218
218
  # Custom attribute writer method checking allowed values (enum).
219
219
  # @param [Object] mode Object to be assigned
220
220
  def mode=(mode)
221
- validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
221
+ validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
222
222
  unless validator.valid?(mode)
223
223
  fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.'
224
224
  end
@@ -190,7 +190,7 @@ class HexUpstreamRequestPatch
190
190
  def valid?
191
191
  auth_mode_validator = EnumAttributeValidator.new('String', ['None', 'Username and Password'])
192
192
  return false unless auth_mode_validator.valid?(@auth_mode)
193
- mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
193
+ mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
194
194
  return false unless mode_validator.valid?(@mode)
195
195
  true
196
196
  end
@@ -208,7 +208,7 @@ class HexUpstreamRequestPatch
208
208
  # Custom attribute writer method checking allowed values (enum).
209
209
  # @param [Object] mode Object to be assigned
210
210
  def mode=(mode)
211
- validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
211
+ validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
212
212
  unless validator.valid?(mode)
213
213
  fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.'
214
214
  end
@@ -76,6 +76,8 @@ class HuggingfacePackageUpload
76
76
 
77
77
  attr_accessor :is_downloadable
78
78
 
79
+ attr_accessor :is_hidden
80
+
79
81
  attr_accessor :is_moveable
80
82
 
81
83
  attr_accessor :is_quarantinable
@@ -112,6 +114,9 @@ class HuggingfacePackageUpload
112
114
 
113
115
  attr_accessor :origin_repository_url
114
116
 
117
+ # Whether the package's SPDX license is OSI-approved.
118
+ attr_accessor :osi_approved
119
+
115
120
  # The type of package contents.
116
121
  attr_accessor :package_type
117
122
 
@@ -263,6 +268,7 @@ class HuggingfacePackageUpload
263
268
  :'is_copyable' => :'is_copyable',
264
269
  :'is_deleteable' => :'is_deleteable',
265
270
  :'is_downloadable' => :'is_downloadable',
271
+ :'is_hidden' => :'is_hidden',
266
272
  :'is_moveable' => :'is_moveable',
267
273
  :'is_quarantinable' => :'is_quarantinable',
268
274
  :'is_quarantined' => :'is_quarantined',
@@ -280,6 +286,7 @@ class HuggingfacePackageUpload
280
286
  :'num_files' => :'num_files',
281
287
  :'origin_repository' => :'origin_repository',
282
288
  :'origin_repository_url' => :'origin_repository_url',
289
+ :'osi_approved' => :'osi_approved',
283
290
  :'package_type' => :'package_type',
284
291
  :'policy_violated' => :'policy_violated',
285
292
  :'raw_license' => :'raw_license',
@@ -353,6 +360,7 @@ class HuggingfacePackageUpload
353
360
  :'is_copyable' => :'BOOLEAN',
354
361
  :'is_deleteable' => :'BOOLEAN',
355
362
  :'is_downloadable' => :'BOOLEAN',
363
+ :'is_hidden' => :'BOOLEAN',
356
364
  :'is_moveable' => :'BOOLEAN',
357
365
  :'is_quarantinable' => :'BOOLEAN',
358
366
  :'is_quarantined' => :'BOOLEAN',
@@ -370,6 +378,7 @@ class HuggingfacePackageUpload
370
378
  :'num_files' => :'Integer',
371
379
  :'origin_repository' => :'String',
372
380
  :'origin_repository_url' => :'String',
381
+ :'osi_approved' => :'BOOLEAN',
373
382
  :'package_type' => :'Integer',
374
383
  :'policy_violated' => :'BOOLEAN',
375
384
  :'raw_license' => :'String',
@@ -538,6 +547,10 @@ class HuggingfacePackageUpload
538
547
  self.is_downloadable = attributes[:'is_downloadable']
539
548
  end
540
549
 
550
+ if attributes.has_key?(:'is_hidden')
551
+ self.is_hidden = attributes[:'is_hidden']
552
+ end
553
+
541
554
  if attributes.has_key?(:'is_moveable')
542
555
  self.is_moveable = attributes[:'is_moveable']
543
556
  end
@@ -606,6 +619,10 @@ class HuggingfacePackageUpload
606
619
  self.origin_repository_url = attributes[:'origin_repository_url']
607
620
  end
608
621
 
622
+ if attributes.has_key?(:'osi_approved')
623
+ self.osi_approved = attributes[:'osi_approved']
624
+ end
625
+
609
626
  if attributes.has_key?(:'package_type')
610
627
  self.package_type = attributes[:'package_type']
611
628
  end
@@ -823,6 +840,7 @@ class HuggingfacePackageUpload
823
840
  is_copyable == o.is_copyable &&
824
841
  is_deleteable == o.is_deleteable &&
825
842
  is_downloadable == o.is_downloadable &&
843
+ is_hidden == o.is_hidden &&
826
844
  is_moveable == o.is_moveable &&
827
845
  is_quarantinable == o.is_quarantinable &&
828
846
  is_quarantined == o.is_quarantined &&
@@ -840,6 +858,7 @@ class HuggingfacePackageUpload
840
858
  num_files == o.num_files &&
841
859
  origin_repository == o.origin_repository &&
842
860
  origin_repository_url == o.origin_repository_url &&
861
+ osi_approved == o.osi_approved &&
843
862
  package_type == o.package_type &&
844
863
  policy_violated == o.policy_violated &&
845
864
  raw_license == o.raw_license &&
@@ -890,7 +909,7 @@ class HuggingfacePackageUpload
890
909
  # Calculates hash code according to all attributes.
891
910
  # @return [Fixnum] Hash code
892
911
  def hash
893
- [architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, dependencies_checksum_md5, dependencies_url, description, display_name, distro, distro_version, downloads, epoch, extension, filename, files, format, format_url, freeable_storage, fully_qualified_name, identifier_perm, identifiers, indexed, is_cancellable, is_copyable, is_deleteable, is_downloadable, is_moveable, is_quarantinable, is_quarantined, is_resyncable, is_security_scannable, 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, policy_violated, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash
912
+ [architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, dependencies_checksum_md5, dependencies_url, description, display_name, distro, distro_version, downloads, epoch, extension, filename, files, format, format_url, freeable_storage, fully_qualified_name, identifier_perm, identifiers, indexed, is_cancellable, is_copyable, is_deleteable, is_downloadable, is_hidden, is_moveable, is_quarantinable, is_quarantined, is_resyncable, is_security_scannable, 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, osi_approved, package_type, policy_violated, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash
894
913
  end
895
914
 
896
915
  # Builds the object from hash
@@ -26,7 +26,7 @@ class InlineResponse2001
26
26
  # Attribute type mapping.
27
27
  def self.swagger_types
28
28
  {
29
- :'results' => :'Array<UserAuthenticationToken>'
29
+ :'results' => :'Array<ConnectedRepository>'
30
30
  }
31
31
  end
32
32
 
@@ -0,0 +1,191 @@
1
+ =begin
2
+ #Cloudsmith API (v1)
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.50
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module CloudsmithApi
16
+ class InlineResponse2002
17
+ attr_accessor :results
18
+
19
+ # Attribute mapping from ruby-style variable name to JSON key.
20
+ def self.attribute_map
21
+ {
22
+ :'results' => :'results'
23
+ }
24
+ end
25
+
26
+ # Attribute type mapping.
27
+ def self.swagger_types
28
+ {
29
+ :'results' => :'Array<UserAuthenticationToken>'
30
+ }
31
+ end
32
+
33
+ # Initializes the object
34
+ # @param [Hash] attributes Model attributes in the form of hash
35
+ def initialize(attributes = {})
36
+ return unless attributes.is_a?(Hash)
37
+
38
+ # convert string to symbol for hash key
39
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
40
+
41
+ if attributes.has_key?(:'results')
42
+ if (value = attributes[:'results']).is_a?(Array)
43
+ self.results = value
44
+ end
45
+ end
46
+ end
47
+
48
+ # Show invalid properties with the reasons. Usually used together with valid?
49
+ # @return Array for valid properties with the reasons
50
+ def list_invalid_properties
51
+ invalid_properties = Array.new
52
+ if @results.nil?
53
+ invalid_properties.push('invalid value for "results", results cannot be nil.')
54
+ end
55
+
56
+ invalid_properties
57
+ end
58
+
59
+ # Check to see if the all the properties in the model are valid
60
+ # @return true if the model is valid
61
+ def valid?
62
+ return false if @results.nil?
63
+ true
64
+ end
65
+
66
+ # Checks equality by comparing each attribute.
67
+ # @param [Object] Object to be compared
68
+ def ==(o)
69
+ return true if self.equal?(o)
70
+ self.class == o.class &&
71
+ results == o.results
72
+ end
73
+
74
+ # @see the `==` method
75
+ # @param [Object] Object to be compared
76
+ def eql?(o)
77
+ self == o
78
+ end
79
+
80
+ # Calculates hash code according to all attributes.
81
+ # @return [Fixnum] Hash code
82
+ def hash
83
+ [results].hash
84
+ end
85
+
86
+ # Builds the object from hash
87
+ # @param [Hash] attributes Model attributes in the form of hash
88
+ # @return [Object] Returns the model itself
89
+ def build_from_hash(attributes)
90
+ return nil unless attributes.is_a?(Hash)
91
+ self.class.swagger_types.each_pair do |key, type|
92
+ if type =~ /\AArray<(.*)>/i
93
+ # check to ensure the input is an array given that the attribute
94
+ # is documented as an array but the input is not
95
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
96
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
97
+ end
98
+ elsif !attributes[self.class.attribute_map[key]].nil?
99
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
100
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
101
+ end
102
+
103
+ self
104
+ end
105
+
106
+ # Deserializes the data based on type
107
+ # @param string type Data type
108
+ # @param string value Value to be deserialized
109
+ # @return [Object] Deserialized data
110
+ def _deserialize(type, value)
111
+ case type.to_sym
112
+ when :DateTime
113
+ DateTime.parse(value)
114
+ when :Date
115
+ Date.parse(value)
116
+ when :String
117
+ value.to_s
118
+ when :Integer
119
+ value.to_i
120
+ when :Float
121
+ value.to_f
122
+ when :BOOLEAN
123
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
124
+ true
125
+ else
126
+ false
127
+ end
128
+ when :Object
129
+ # generic object (usually a Hash), return directly
130
+ value
131
+ when /\AArray<(?<inner_type>.+)>\z/
132
+ inner_type = Regexp.last_match[:inner_type]
133
+ value.map { |v| _deserialize(inner_type, v) }
134
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
135
+ k_type = Regexp.last_match[:k_type]
136
+ v_type = Regexp.last_match[:v_type]
137
+ {}.tap do |hash|
138
+ value.each do |k, v|
139
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
140
+ end
141
+ end
142
+ else # model
143
+ temp_model = CloudsmithApi.const_get(type).new
144
+ temp_model.build_from_hash(value)
145
+ end
146
+ end
147
+
148
+ # Returns the string representation of the object
149
+ # @return [String] String presentation of the object
150
+ def to_s
151
+ to_hash.to_s
152
+ end
153
+
154
+ # to_body is an alias to to_hash (backward compatibility)
155
+ # @return [Hash] Returns the object in the form of hash
156
+ def to_body
157
+ to_hash
158
+ end
159
+
160
+ # Returns the object in the form of hash
161
+ # @return [Hash] Returns the object in the form of hash
162
+ def to_hash
163
+ hash = {}
164
+ self.class.attribute_map.each_pair do |attr, param|
165
+ value = self.send(attr)
166
+ next if value.nil?
167
+ hash[param] = _to_hash(value)
168
+ end
169
+ hash
170
+ end
171
+
172
+ # Outputs non-array value in the form of hash
173
+ # For object, use to_hash. Otherwise, just return the value
174
+ # @param [Object] value Any valid value
175
+ # @return [Hash] Returns the value in the form of hash
176
+ def _to_hash(value)
177
+ if value.is_a?(Array)
178
+ value.compact.map { |v| _to_hash(v) }
179
+ elsif value.is_a?(Hash)
180
+ {}.tap do |hash|
181
+ value.each { |k, v| hash[k] = _to_hash(v) }
182
+ end
183
+ elsif value.respond_to? :to_hash
184
+ value.to_hash
185
+ else
186
+ value
187
+ end
188
+ end
189
+
190
+ end
191
+ end
@@ -76,6 +76,8 @@ class LuarocksPackageUpload
76
76
 
77
77
  attr_accessor :is_downloadable
78
78
 
79
+ attr_accessor :is_hidden
80
+
79
81
  attr_accessor :is_moveable
80
82
 
81
83
  attr_accessor :is_quarantinable
@@ -112,6 +114,9 @@ class LuarocksPackageUpload
112
114
 
113
115
  attr_accessor :origin_repository_url
114
116
 
117
+ # Whether the package's SPDX license is OSI-approved.
118
+ attr_accessor :osi_approved
119
+
115
120
  # The type of package contents.
116
121
  attr_accessor :package_type
117
122
 
@@ -263,6 +268,7 @@ class LuarocksPackageUpload
263
268
  :'is_copyable' => :'is_copyable',
264
269
  :'is_deleteable' => :'is_deleteable',
265
270
  :'is_downloadable' => :'is_downloadable',
271
+ :'is_hidden' => :'is_hidden',
266
272
  :'is_moveable' => :'is_moveable',
267
273
  :'is_quarantinable' => :'is_quarantinable',
268
274
  :'is_quarantined' => :'is_quarantined',
@@ -280,6 +286,7 @@ class LuarocksPackageUpload
280
286
  :'num_files' => :'num_files',
281
287
  :'origin_repository' => :'origin_repository',
282
288
  :'origin_repository_url' => :'origin_repository_url',
289
+ :'osi_approved' => :'osi_approved',
283
290
  :'package_type' => :'package_type',
284
291
  :'policy_violated' => :'policy_violated',
285
292
  :'raw_license' => :'raw_license',
@@ -353,6 +360,7 @@ class LuarocksPackageUpload
353
360
  :'is_copyable' => :'BOOLEAN',
354
361
  :'is_deleteable' => :'BOOLEAN',
355
362
  :'is_downloadable' => :'BOOLEAN',
363
+ :'is_hidden' => :'BOOLEAN',
356
364
  :'is_moveable' => :'BOOLEAN',
357
365
  :'is_quarantinable' => :'BOOLEAN',
358
366
  :'is_quarantined' => :'BOOLEAN',
@@ -370,6 +378,7 @@ class LuarocksPackageUpload
370
378
  :'num_files' => :'Integer',
371
379
  :'origin_repository' => :'String',
372
380
  :'origin_repository_url' => :'String',
381
+ :'osi_approved' => :'BOOLEAN',
373
382
  :'package_type' => :'Integer',
374
383
  :'policy_violated' => :'BOOLEAN',
375
384
  :'raw_license' => :'String',
@@ -538,6 +547,10 @@ class LuarocksPackageUpload
538
547
  self.is_downloadable = attributes[:'is_downloadable']
539
548
  end
540
549
 
550
+ if attributes.has_key?(:'is_hidden')
551
+ self.is_hidden = attributes[:'is_hidden']
552
+ end
553
+
541
554
  if attributes.has_key?(:'is_moveable')
542
555
  self.is_moveable = attributes[:'is_moveable']
543
556
  end
@@ -606,6 +619,10 @@ class LuarocksPackageUpload
606
619
  self.origin_repository_url = attributes[:'origin_repository_url']
607
620
  end
608
621
 
622
+ if attributes.has_key?(:'osi_approved')
623
+ self.osi_approved = attributes[:'osi_approved']
624
+ end
625
+
609
626
  if attributes.has_key?(:'package_type')
610
627
  self.package_type = attributes[:'package_type']
611
628
  end
@@ -823,6 +840,7 @@ class LuarocksPackageUpload
823
840
  is_copyable == o.is_copyable &&
824
841
  is_deleteable == o.is_deleteable &&
825
842
  is_downloadable == o.is_downloadable &&
843
+ is_hidden == o.is_hidden &&
826
844
  is_moveable == o.is_moveable &&
827
845
  is_quarantinable == o.is_quarantinable &&
828
846
  is_quarantined == o.is_quarantined &&
@@ -840,6 +858,7 @@ class LuarocksPackageUpload
840
858
  num_files == o.num_files &&
841
859
  origin_repository == o.origin_repository &&
842
860
  origin_repository_url == o.origin_repository_url &&
861
+ osi_approved == o.osi_approved &&
843
862
  package_type == o.package_type &&
844
863
  policy_violated == o.policy_violated &&
845
864
  raw_license == o.raw_license &&
@@ -890,7 +909,7 @@ class LuarocksPackageUpload
890
909
  # Calculates hash code according to all attributes.
891
910
  # @return [Fixnum] Hash code
892
911
  def hash
893
- [architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, dependencies_checksum_md5, dependencies_url, description, display_name, distro, distro_version, downloads, epoch, extension, filename, files, format, format_url, freeable_storage, fully_qualified_name, identifier_perm, identifiers, indexed, is_cancellable, is_copyable, is_deleteable, is_downloadable, is_moveable, is_quarantinable, is_quarantined, is_resyncable, is_security_scannable, 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, policy_violated, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash
912
+ [architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, dependencies_checksum_md5, dependencies_url, description, display_name, distro, distro_version, downloads, epoch, extension, filename, files, format, format_url, freeable_storage, fully_qualified_name, identifier_perm, identifiers, indexed, is_cancellable, is_copyable, is_deleteable, is_downloadable, is_hidden, is_moveable, is_quarantinable, is_quarantined, is_resyncable, is_security_scannable, 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, osi_approved, package_type, policy_violated, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash
894
913
  end
895
914
 
896
915
  # Builds the object from hash
@@ -82,6 +82,8 @@ class MavenPackageUpload
82
82
 
83
83
  attr_accessor :is_downloadable
84
84
 
85
+ attr_accessor :is_hidden
86
+
85
87
  attr_accessor :is_moveable
86
88
 
87
89
  attr_accessor :is_quarantinable
@@ -118,6 +120,9 @@ class MavenPackageUpload
118
120
 
119
121
  attr_accessor :origin_repository_url
120
122
 
123
+ # Whether the package's SPDX license is OSI-approved.
124
+ attr_accessor :osi_approved
125
+
121
126
  # The type of package contents.
122
127
  attr_accessor :package_type
123
128
 
@@ -278,6 +283,7 @@ class MavenPackageUpload
278
283
  :'is_copyable' => :'is_copyable',
279
284
  :'is_deleteable' => :'is_deleteable',
280
285
  :'is_downloadable' => :'is_downloadable',
286
+ :'is_hidden' => :'is_hidden',
281
287
  :'is_moveable' => :'is_moveable',
282
288
  :'is_quarantinable' => :'is_quarantinable',
283
289
  :'is_quarantined' => :'is_quarantined',
@@ -295,6 +301,7 @@ class MavenPackageUpload
295
301
  :'num_files' => :'num_files',
296
302
  :'origin_repository' => :'origin_repository',
297
303
  :'origin_repository_url' => :'origin_repository_url',
304
+ :'osi_approved' => :'osi_approved',
298
305
  :'package_type' => :'package_type',
299
306
  :'packaging' => :'packaging',
300
307
  :'policy_violated' => :'policy_violated',
@@ -373,6 +380,7 @@ class MavenPackageUpload
373
380
  :'is_copyable' => :'BOOLEAN',
374
381
  :'is_deleteable' => :'BOOLEAN',
375
382
  :'is_downloadable' => :'BOOLEAN',
383
+ :'is_hidden' => :'BOOLEAN',
376
384
  :'is_moveable' => :'BOOLEAN',
377
385
  :'is_quarantinable' => :'BOOLEAN',
378
386
  :'is_quarantined' => :'BOOLEAN',
@@ -390,6 +398,7 @@ class MavenPackageUpload
390
398
  :'num_files' => :'Integer',
391
399
  :'origin_repository' => :'String',
392
400
  :'origin_repository_url' => :'String',
401
+ :'osi_approved' => :'BOOLEAN',
393
402
  :'package_type' => :'Integer',
394
403
  :'packaging' => :'String',
395
404
  :'policy_violated' => :'BOOLEAN',
@@ -569,6 +578,10 @@ class MavenPackageUpload
569
578
  self.is_downloadable = attributes[:'is_downloadable']
570
579
  end
571
580
 
581
+ if attributes.has_key?(:'is_hidden')
582
+ self.is_hidden = attributes[:'is_hidden']
583
+ end
584
+
572
585
  if attributes.has_key?(:'is_moveable')
573
586
  self.is_moveable = attributes[:'is_moveable']
574
587
  end
@@ -637,6 +650,10 @@ class MavenPackageUpload
637
650
  self.origin_repository_url = attributes[:'origin_repository_url']
638
651
  end
639
652
 
653
+ if attributes.has_key?(:'osi_approved')
654
+ self.osi_approved = attributes[:'osi_approved']
655
+ end
656
+
640
657
  if attributes.has_key?(:'package_type')
641
658
  self.package_type = attributes[:'package_type']
642
659
  end
@@ -868,6 +885,7 @@ class MavenPackageUpload
868
885
  is_copyable == o.is_copyable &&
869
886
  is_deleteable == o.is_deleteable &&
870
887
  is_downloadable == o.is_downloadable &&
888
+ is_hidden == o.is_hidden &&
871
889
  is_moveable == o.is_moveable &&
872
890
  is_quarantinable == o.is_quarantinable &&
873
891
  is_quarantined == o.is_quarantined &&
@@ -885,6 +903,7 @@ class MavenPackageUpload
885
903
  num_files == o.num_files &&
886
904
  origin_repository == o.origin_repository &&
887
905
  origin_repository_url == o.origin_repository_url &&
906
+ osi_approved == o.osi_approved &&
888
907
  package_type == o.package_type &&
889
908
  packaging == o.packaging &&
890
909
  policy_violated == o.policy_violated &&
@@ -938,7 +957,7 @@ class MavenPackageUpload
938
957
  # Calculates hash code according to all attributes.
939
958
  # @return [Fixnum] Hash code
940
959
  def hash
941
- [architectures, artifact_id, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, dependencies_checksum_md5, dependencies_url, description, display_name, distro, distro_version, downloads, epoch, extension, filename, files, format, format_url, freeable_storage, fully_qualified_name, group_id, identifier_perm, identifiers, indexed, is_cancellable, is_copyable, is_deleteable, is_downloadable, is_moveable, is_quarantinable, is_quarantined, is_resyncable, is_security_scannable, 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, packaging, policy_violated, raw_license, release, repository, repository_url, sbt_version, scala_version, security_scan_completed_at, security_scan_started_at, security_scan_status, security_scan_status_updated_at, self_html_url, self_url, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash
960
+ [architectures, artifact_id, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, dependencies_checksum_md5, dependencies_url, description, display_name, distro, distro_version, downloads, epoch, extension, filename, files, format, format_url, freeable_storage, fully_qualified_name, group_id, identifier_perm, identifiers, indexed, is_cancellable, is_copyable, is_deleteable, is_downloadable, is_hidden, is_moveable, is_quarantinable, is_quarantined, is_resyncable, is_security_scannable, 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, osi_approved, package_type, packaging, policy_violated, raw_license, release, repository, repository_url, sbt_version, scala_version, security_scan_completed_at, security_scan_started_at, security_scan_status, security_scan_status_updated_at, self_html_url, self_url, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash
942
961
  end
943
962
 
944
963
  # Builds the object from hash