cloudsmith-api 2.0.27 → 2.0.30

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 (387) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +26 -4
  4. data/build.json +1 -1
  5. data/docs/AlpinePackageUpload.md +4 -0
  6. data/docs/AlpinePackageUploadRequest.md +2 -0
  7. data/docs/CargoPackageUpload.md +4 -0
  8. data/docs/CargoPackageUploadRequest.md +2 -0
  9. data/docs/CocoapodsPackageUpload.md +4 -0
  10. data/docs/CocoapodsPackageUploadRequest.md +2 -0
  11. data/docs/ComposerPackageUpload.md +4 -0
  12. data/docs/ComposerPackageUploadRequest.md +2 -0
  13. data/docs/ConanPackageUpload.md +4 -0
  14. data/docs/ConanPackageUploadRequest.md +2 -0
  15. data/docs/CondaPackageUpload.md +4 -0
  16. data/docs/CondaPackageUploadRequest.md +2 -0
  17. data/docs/ConnectedRepository.md +3 -1
  18. data/docs/ConnectedRepositoryRequest.md +1 -1
  19. data/docs/ConnectedRepositoryRequestPatch.md +1 -1
  20. data/docs/CranPackageUpload.md +4 -0
  21. data/docs/CranPackageUploadRequest.md +2 -0
  22. data/docs/DartPackageUpload.md +4 -0
  23. data/docs/DartPackageUploadRequest.md +2 -0
  24. data/docs/DebPackageUpload.md +4 -0
  25. data/docs/DebPackageUploadRequest.md +2 -0
  26. data/docs/DockerPackageUpload.md +4 -0
  27. data/docs/DockerPackageUploadRequest.md +2 -0
  28. data/docs/FormatSupportUpstream.md +1 -0
  29. data/docs/GenericPackageUpload.md +4 -0
  30. data/docs/GenericPackageUploadRequest.md +2 -0
  31. data/docs/GoPackageUpload.md +4 -0
  32. data/docs/GoPackageUploadRequest.md +2 -0
  33. data/docs/HelmPackageUpload.md +4 -0
  34. data/docs/HelmPackageUploadRequest.md +2 -0
  35. data/docs/HexPackageUpload.md +4 -0
  36. data/docs/HexPackageUploadRequest.md +2 -0
  37. data/docs/HuggingfacePackageUpload.md +4 -0
  38. data/docs/HuggingfacePackageUploadRequest.md +2 -0
  39. data/docs/InlineResponse200.md +5 -1
  40. data/docs/InlineResponse2001.md +3 -1
  41. data/docs/InlineResponse2002.md +1 -1
  42. data/docs/InlineResponse2003.md +8 -0
  43. data/docs/InlineResponse2004.md +8 -0
  44. data/docs/LuarocksPackageUpload.md +4 -0
  45. data/docs/LuarocksPackageUploadRequest.md +2 -0
  46. data/docs/MavenPackageUpload.md +4 -0
  47. data/docs/MavenPackageUploadRequest.md +2 -0
  48. data/docs/McpPackageUpload.md +4 -0
  49. data/docs/McpPackageUploadRequest.md +2 -0
  50. data/docs/NixPackageUpload.md +97 -0
  51. data/docs/NixPackageUploadRequest.md +14 -0
  52. data/docs/NixUpstream.md +32 -0
  53. data/docs/NixUpstreamRequest.md +20 -0
  54. data/docs/NixUpstreamRequestPatch.md +20 -0
  55. data/docs/NpmPackageUpload.md +4 -0
  56. data/docs/NpmPackageUploadRequest.md +2 -0
  57. data/docs/NugetPackageUpload.md +4 -0
  58. data/docs/NugetPackageUploadRequest.md +2 -0
  59. data/docs/OrganizationSAMLAuth.md +2 -0
  60. data/docs/OrganizationSAMLAuthRequestPatch.md +2 -0
  61. data/docs/OrganizationUsage.md +11 -0
  62. data/docs/OrganizationUsageUpdate.md +10 -0
  63. data/docs/OrganizationUsageUpdateRequestPatch.md +10 -0
  64. data/docs/OrgsApi.md +123 -1
  65. data/docs/P2PackageUpload.md +4 -0
  66. data/docs/P2PackageUploadRequest.md +2 -0
  67. data/docs/Package.md +4 -0
  68. data/docs/PackageCopy.md +4 -0
  69. data/docs/PackageCopyRequest.md +2 -0
  70. data/docs/PackageDetail.md +100 -0
  71. data/docs/PackageLicense.md +2 -0
  72. data/docs/PackageLicenseRequestPatch.md +3 -1
  73. data/docs/PackageMove.md +4 -0
  74. data/docs/PackageMoveRequest.md +2 -0
  75. data/docs/PackageQuarantine.md +4 -0
  76. data/docs/PackageQuarantineRequest.md +2 -0
  77. data/docs/PackageResync.md +4 -0
  78. data/docs/PackageTag.md +4 -0
  79. data/docs/PackageTagRequest.md +2 -0
  80. data/docs/PackageVulnerability.md +2 -0
  81. data/docs/PackagesApi.md +156 -9
  82. data/docs/PythonPackageUpload.md +4 -0
  83. data/docs/PythonPackageUploadRequest.md +2 -0
  84. data/docs/RawPackageUpload.md +4 -0
  85. data/docs/RawPackageUploadRequest.md +2 -0
  86. data/docs/RecycleBinPackage.md +2 -0
  87. data/docs/ReposApi.md +405 -4
  88. data/docs/Repository.md +1 -0
  89. data/docs/RepositoryCreate.md +1 -0
  90. data/docs/RepositoryEd25519Key.md +1 -0
  91. data/docs/RpmPackageUpload.md +4 -0
  92. data/docs/RpmPackageUploadRequest.md +2 -0
  93. data/docs/RubyPackageUpload.md +4 -0
  94. data/docs/RubyPackageUploadRequest.md +2 -0
  95. data/docs/SwiftPackageUpload.md +4 -0
  96. data/docs/SwiftPackageUploadRequest.md +2 -0
  97. data/docs/TerraformPackageUpload.md +4 -0
  98. data/docs/TerraformPackageUploadRequest.md +2 -0
  99. data/docs/UserApi.md +2 -2
  100. data/docs/VagrantPackageUpload.md +4 -0
  101. data/docs/VagrantPackageUploadRequest.md +2 -0
  102. data/docs/VsxPackageUpload.md +4 -0
  103. data/docs/VsxPackageUploadRequest.md +2 -0
  104. data/docs/WebOSVSeverityCounts.md +14 -0
  105. data/lib/cloudsmith-api/api/orgs_api.rb +109 -0
  106. data/lib/cloudsmith-api/api/packages_api.rb +144 -6
  107. data/lib/cloudsmith-api/api/repos_api.rb +400 -5
  108. data/lib/cloudsmith-api/api/user_api.rb +3 -3
  109. data/lib/cloudsmith-api/models/alpine_package_upload.rb +42 -1
  110. data/lib/cloudsmith-api/models/alpine_package_upload_request.rb +23 -4
  111. data/lib/cloudsmith-api/models/cargo_package_upload.rb +42 -1
  112. data/lib/cloudsmith-api/models/cargo_package_upload_request.rb +23 -4
  113. data/lib/cloudsmith-api/models/cargo_upstream.rb +2 -2
  114. data/lib/cloudsmith-api/models/cargo_upstream_request.rb +2 -2
  115. data/lib/cloudsmith-api/models/cargo_upstream_request_patch.rb +2 -2
  116. data/lib/cloudsmith-api/models/cocoapods_package_upload.rb +42 -1
  117. data/lib/cloudsmith-api/models/cocoapods_package_upload_request.rb +23 -4
  118. data/lib/cloudsmith-api/models/composer_package_upload.rb +42 -1
  119. data/lib/cloudsmith-api/models/composer_package_upload_request.rb +23 -4
  120. data/lib/cloudsmith-api/models/composer_upstream.rb +2 -2
  121. data/lib/cloudsmith-api/models/composer_upstream_request.rb +2 -2
  122. data/lib/cloudsmith-api/models/composer_upstream_request_patch.rb +2 -2
  123. data/lib/cloudsmith-api/models/conan_package_upload.rb +42 -1
  124. data/lib/cloudsmith-api/models/conan_package_upload_request.rb +23 -4
  125. data/lib/cloudsmith-api/models/conda_package_upload.rb +42 -1
  126. data/lib/cloudsmith-api/models/conda_package_upload_request.rb +23 -4
  127. data/lib/cloudsmith-api/models/conda_upstream.rb +2 -2
  128. data/lib/cloudsmith-api/models/conda_upstream_request.rb +2 -2
  129. data/lib/cloudsmith-api/models/conda_upstream_request_patch.rb +2 -2
  130. data/lib/cloudsmith-api/models/connected_repository.rb +57 -2
  131. data/lib/cloudsmith-api/models/connected_repository_request.rb +1 -1
  132. data/lib/cloudsmith-api/models/connected_repository_request_patch.rb +1 -1
  133. data/lib/cloudsmith-api/models/cran_package_upload.rb +42 -1
  134. data/lib/cloudsmith-api/models/cran_package_upload_request.rb +23 -4
  135. data/lib/cloudsmith-api/models/cran_upstream.rb +2 -2
  136. data/lib/cloudsmith-api/models/cran_upstream_request.rb +2 -2
  137. data/lib/cloudsmith-api/models/cran_upstream_request_patch.rb +2 -2
  138. data/lib/cloudsmith-api/models/dart_package_upload.rb +42 -1
  139. data/lib/cloudsmith-api/models/dart_package_upload_request.rb +23 -4
  140. data/lib/cloudsmith-api/models/dart_upstream.rb +2 -2
  141. data/lib/cloudsmith-api/models/dart_upstream_request.rb +2 -2
  142. data/lib/cloudsmith-api/models/dart_upstream_request_patch.rb +2 -2
  143. data/lib/cloudsmith-api/models/deb_package_upload.rb +42 -1
  144. data/lib/cloudsmith-api/models/deb_package_upload_request.rb +23 -4
  145. data/lib/cloudsmith-api/models/deb_upstream.rb +2 -2
  146. data/lib/cloudsmith-api/models/deb_upstream_request.rb +2 -2
  147. data/lib/cloudsmith-api/models/deb_upstream_request_patch.rb +2 -2
  148. data/lib/cloudsmith-api/models/docker_package_upload.rb +42 -1
  149. data/lib/cloudsmith-api/models/docker_package_upload_request.rb +23 -4
  150. data/lib/cloudsmith-api/models/format_support_upstream.rb +16 -1
  151. data/lib/cloudsmith-api/models/generic_package_upload.rb +42 -1
  152. data/lib/cloudsmith-api/models/generic_package_upload_request.rb +23 -4
  153. data/lib/cloudsmith-api/models/generic_upstream.rb +2 -2
  154. data/lib/cloudsmith-api/models/generic_upstream_request.rb +2 -2
  155. data/lib/cloudsmith-api/models/generic_upstream_request_patch.rb +2 -2
  156. data/lib/cloudsmith-api/models/go_package_upload.rb +42 -1
  157. data/lib/cloudsmith-api/models/go_package_upload_request.rb +23 -4
  158. data/lib/cloudsmith-api/models/helm_package_upload.rb +42 -1
  159. data/lib/cloudsmith-api/models/helm_package_upload_request.rb +23 -4
  160. data/lib/cloudsmith-api/models/helm_upstream.rb +2 -2
  161. data/lib/cloudsmith-api/models/helm_upstream_request.rb +2 -2
  162. data/lib/cloudsmith-api/models/helm_upstream_request_patch.rb +2 -2
  163. data/lib/cloudsmith-api/models/hex_package_upload.rb +42 -1
  164. data/lib/cloudsmith-api/models/hex_package_upload_request.rb +23 -4
  165. data/lib/cloudsmith-api/models/hex_upstream.rb +2 -2
  166. data/lib/cloudsmith-api/models/hex_upstream_request.rb +2 -2
  167. data/lib/cloudsmith-api/models/hex_upstream_request_patch.rb +2 -2
  168. data/lib/cloudsmith-api/models/huggingface_package_upload.rb +42 -1
  169. data/lib/cloudsmith-api/models/huggingface_package_upload_request.rb +23 -4
  170. data/lib/cloudsmith-api/models/inline_response_200.rb +48 -14
  171. data/lib/cloudsmith-api/models/inline_response_200_1.rb +28 -14
  172. data/lib/cloudsmith-api/models/inline_response_200_2.rb +1 -1
  173. data/lib/cloudsmith-api/models/inline_response_200_3.rb +191 -0
  174. data/lib/cloudsmith-api/models/inline_response_200_4.rb +191 -0
  175. data/lib/cloudsmith-api/models/luarocks_package_upload.rb +42 -1
  176. data/lib/cloudsmith-api/models/luarocks_package_upload_request.rb +23 -4
  177. data/lib/cloudsmith-api/models/maven_package_upload.rb +42 -1
  178. data/lib/cloudsmith-api/models/maven_package_upload_request.rb +23 -4
  179. data/lib/cloudsmith-api/models/mcp_package_upload.rb +42 -1
  180. data/lib/cloudsmith-api/models/mcp_package_upload_request.rb +23 -4
  181. data/lib/cloudsmith-api/models/nix_package_upload.rb +1061 -0
  182. data/lib/cloudsmith-api/models/nix_package_upload_request.rb +249 -0
  183. data/lib/cloudsmith-api/models/nix_upstream.rb +496 -0
  184. data/lib/cloudsmith-api/models/nix_upstream_request.rb +365 -0
  185. data/lib/cloudsmith-api/models/nix_upstream_request_patch.rb +355 -0
  186. data/lib/cloudsmith-api/models/npm_package_upload.rb +42 -1
  187. data/lib/cloudsmith-api/models/npm_package_upload_request.rb +23 -4
  188. data/lib/cloudsmith-api/models/npm_upstream.rb +2 -2
  189. data/lib/cloudsmith-api/models/npm_upstream_request.rb +2 -2
  190. data/lib/cloudsmith-api/models/npm_upstream_request_patch.rb +2 -2
  191. data/lib/cloudsmith-api/models/nuget_package_upload.rb +42 -1
  192. data/lib/cloudsmith-api/models/nuget_package_upload_request.rb +23 -4
  193. data/lib/cloudsmith-api/models/nuget_upstream.rb +2 -2
  194. data/lib/cloudsmith-api/models/nuget_upstream_request.rb +2 -2
  195. data/lib/cloudsmith-api/models/nuget_upstream_request_patch.rb +2 -2
  196. data/lib/cloudsmith-api/models/organization_saml_auth.rb +24 -4
  197. data/lib/cloudsmith-api/models/organization_saml_auth_request_patch.rb +24 -4
  198. data/lib/cloudsmith-api/models/organization_usage.rb +215 -0
  199. data/lib/cloudsmith-api/models/organization_usage_update.rb +202 -0
  200. data/lib/cloudsmith-api/models/organization_usage_update_request_patch.rb +202 -0
  201. data/lib/cloudsmith-api/models/p2_package_upload.rb +42 -1
  202. data/lib/cloudsmith-api/models/p2_package_upload_request.rb +23 -4
  203. data/lib/cloudsmith-api/models/package.rb +42 -1
  204. data/lib/cloudsmith-api/models/package_copy.rb +42 -1
  205. data/lib/cloudsmith-api/models/package_copy_request.rb +23 -4
  206. data/lib/cloudsmith-api/models/package_detail.rb +1090 -0
  207. data/lib/cloudsmith-api/models/package_license.rb +23 -4
  208. data/lib/cloudsmith-api/models/package_license_request_patch.rb +28 -4
  209. data/lib/cloudsmith-api/models/package_move.rb +42 -1
  210. data/lib/cloudsmith-api/models/package_move_request.rb +23 -4
  211. data/lib/cloudsmith-api/models/package_quarantine.rb +42 -1
  212. data/lib/cloudsmith-api/models/package_quarantine_request.rb +23 -4
  213. data/lib/cloudsmith-api/models/package_resync.rb +42 -1
  214. data/lib/cloudsmith-api/models/package_tag.rb +42 -1
  215. data/lib/cloudsmith-api/models/package_tag_request.rb +23 -4
  216. data/lib/cloudsmith-api/models/package_vulnerability.rb +23 -4
  217. data/lib/cloudsmith-api/models/python_package_upload.rb +42 -1
  218. data/lib/cloudsmith-api/models/python_package_upload_request.rb +23 -4
  219. data/lib/cloudsmith-api/models/python_upstream.rb +2 -2
  220. data/lib/cloudsmith-api/models/python_upstream_request.rb +2 -2
  221. data/lib/cloudsmith-api/models/python_upstream_request_patch.rb +2 -2
  222. data/lib/cloudsmith-api/models/raw_package_upload.rb +42 -1
  223. data/lib/cloudsmith-api/models/raw_package_upload_request.rb +23 -4
  224. data/lib/cloudsmith-api/models/recycle_bin_package.rb +23 -4
  225. data/lib/cloudsmith-api/models/repository.rb +11 -1
  226. data/lib/cloudsmith-api/models/repository_create.rb +11 -1
  227. data/lib/cloudsmith-api/models/repository_ed25519_key.rb +14 -4
  228. data/lib/cloudsmith-api/models/rpm_package_upload.rb +42 -1
  229. data/lib/cloudsmith-api/models/rpm_package_upload_request.rb +23 -4
  230. data/lib/cloudsmith-api/models/ruby_package_upload.rb +42 -1
  231. data/lib/cloudsmith-api/models/ruby_package_upload_request.rb +23 -4
  232. data/lib/cloudsmith-api/models/swift_package_upload.rb +42 -1
  233. data/lib/cloudsmith-api/models/swift_package_upload_request.rb +23 -4
  234. data/lib/cloudsmith-api/models/terraform_package_upload.rb +42 -1
  235. data/lib/cloudsmith-api/models/terraform_package_upload_request.rb +23 -4
  236. data/lib/cloudsmith-api/models/vagrant_package_upload.rb +42 -1
  237. data/lib/cloudsmith-api/models/vagrant_package_upload_request.rb +23 -4
  238. data/lib/cloudsmith-api/models/vsx_package_upload.rb +42 -1
  239. data/lib/cloudsmith-api/models/vsx_package_upload_request.rb +23 -4
  240. data/lib/cloudsmith-api/models/web_osv_severity_counts.rb +239 -0
  241. data/lib/cloudsmith-api/version.rb +1 -1
  242. data/lib/cloudsmith-api.rb +12 -0
  243. data/spec/api/orgs_api_spec.rb +24 -0
  244. data/spec/api/packages_api_spec.rb +35 -2
  245. data/spec/api/repos_api_spec.rb +89 -2
  246. data/spec/api/user_api_spec.rb +1 -1
  247. data/spec/models/alpine_package_upload_request_spec.rb +12 -0
  248. data/spec/models/alpine_package_upload_spec.rb +24 -0
  249. data/spec/models/cargo_package_upload_request_spec.rb +12 -0
  250. data/spec/models/cargo_package_upload_spec.rb +24 -0
  251. data/spec/models/cargo_upstream_request_patch_spec.rb +1 -1
  252. data/spec/models/cargo_upstream_request_spec.rb +1 -1
  253. data/spec/models/cargo_upstream_spec.rb +1 -1
  254. data/spec/models/cocoapods_package_upload_request_spec.rb +12 -0
  255. data/spec/models/cocoapods_package_upload_spec.rb +24 -0
  256. data/spec/models/composer_package_upload_request_spec.rb +12 -0
  257. data/spec/models/composer_package_upload_spec.rb +24 -0
  258. data/spec/models/composer_upstream_request_patch_spec.rb +1 -1
  259. data/spec/models/composer_upstream_request_spec.rb +1 -1
  260. data/spec/models/composer_upstream_spec.rb +1 -1
  261. data/spec/models/conan_package_upload_request_spec.rb +12 -0
  262. data/spec/models/conan_package_upload_spec.rb +24 -0
  263. data/spec/models/conda_package_upload_request_spec.rb +12 -0
  264. data/spec/models/conda_package_upload_spec.rb +24 -0
  265. data/spec/models/conda_upstream_request_patch_spec.rb +1 -1
  266. data/spec/models/conda_upstream_request_spec.rb +1 -1
  267. data/spec/models/conda_upstream_spec.rb +1 -1
  268. data/spec/models/connected_repository_spec.rb +16 -0
  269. data/spec/models/cran_package_upload_request_spec.rb +12 -0
  270. data/spec/models/cran_package_upload_spec.rb +24 -0
  271. data/spec/models/cran_upstream_request_patch_spec.rb +1 -1
  272. data/spec/models/cran_upstream_request_spec.rb +1 -1
  273. data/spec/models/cran_upstream_spec.rb +1 -1
  274. data/spec/models/dart_package_upload_request_spec.rb +12 -0
  275. data/spec/models/dart_package_upload_spec.rb +24 -0
  276. data/spec/models/dart_upstream_request_patch_spec.rb +1 -1
  277. data/spec/models/dart_upstream_request_spec.rb +1 -1
  278. data/spec/models/dart_upstream_spec.rb +1 -1
  279. data/spec/models/deb_package_upload_request_spec.rb +12 -0
  280. data/spec/models/deb_package_upload_spec.rb +24 -0
  281. data/spec/models/deb_upstream_request_patch_spec.rb +1 -1
  282. data/spec/models/deb_upstream_request_spec.rb +1 -1
  283. data/spec/models/deb_upstream_spec.rb +1 -1
  284. data/spec/models/docker_package_upload_request_spec.rb +12 -0
  285. data/spec/models/docker_package_upload_spec.rb +24 -0
  286. data/spec/models/format_support_upstream_spec.rb +6 -0
  287. data/spec/models/generic_package_upload_request_spec.rb +12 -0
  288. data/spec/models/generic_package_upload_spec.rb +24 -0
  289. data/spec/models/generic_upstream_request_patch_spec.rb +1 -1
  290. data/spec/models/generic_upstream_request_spec.rb +1 -1
  291. data/spec/models/generic_upstream_spec.rb +1 -1
  292. data/spec/models/go_package_upload_request_spec.rb +12 -0
  293. data/spec/models/go_package_upload_spec.rb +24 -0
  294. data/spec/models/helm_package_upload_request_spec.rb +12 -0
  295. data/spec/models/helm_package_upload_spec.rb +24 -0
  296. data/spec/models/helm_upstream_request_patch_spec.rb +1 -1
  297. data/spec/models/helm_upstream_request_spec.rb +1 -1
  298. data/spec/models/helm_upstream_spec.rb +1 -1
  299. data/spec/models/hex_package_upload_request_spec.rb +12 -0
  300. data/spec/models/hex_package_upload_spec.rb +24 -0
  301. data/spec/models/hex_upstream_request_patch_spec.rb +1 -1
  302. data/spec/models/hex_upstream_request_spec.rb +1 -1
  303. data/spec/models/hex_upstream_spec.rb +1 -1
  304. data/spec/models/huggingface_package_upload_request_spec.rb +12 -0
  305. data/spec/models/huggingface_package_upload_spec.rb +24 -0
  306. data/spec/models/inline_response_200_1_spec.rb +13 -1
  307. data/spec/models/inline_response_200_3_spec.rb +41 -0
  308. data/spec/models/inline_response_200_4_spec.rb +41 -0
  309. data/spec/models/inline_response_200_spec.rb +25 -1
  310. data/spec/models/luarocks_package_upload_request_spec.rb +12 -0
  311. data/spec/models/luarocks_package_upload_spec.rb +24 -0
  312. data/spec/models/maven_package_upload_request_spec.rb +12 -0
  313. data/spec/models/maven_package_upload_spec.rb +24 -0
  314. data/spec/models/mcp_package_upload_request_spec.rb +12 -0
  315. data/spec/models/mcp_package_upload_spec.rb +24 -0
  316. data/spec/models/nix_package_upload_request_spec.rb +77 -0
  317. data/spec/models/nix_package_upload_spec.rb +579 -0
  318. data/spec/models/nix_upstream_request_patch_spec.rb +121 -0
  319. data/spec/models/nix_upstream_request_spec.rb +121 -0
  320. data/spec/models/nix_upstream_spec.rb +197 -0
  321. data/spec/models/npm_package_upload_request_spec.rb +12 -0
  322. data/spec/models/npm_package_upload_spec.rb +24 -0
  323. data/spec/models/npm_upstream_request_patch_spec.rb +1 -1
  324. data/spec/models/npm_upstream_request_spec.rb +1 -1
  325. data/spec/models/npm_upstream_spec.rb +1 -1
  326. data/spec/models/nuget_package_upload_request_spec.rb +12 -0
  327. data/spec/models/nuget_package_upload_spec.rb +24 -0
  328. data/spec/models/nuget_upstream_request_patch_spec.rb +1 -1
  329. data/spec/models/nuget_upstream_request_spec.rb +1 -1
  330. data/spec/models/nuget_upstream_spec.rb +1 -1
  331. data/spec/models/organization_saml_auth_request_patch_spec.rb +12 -0
  332. data/spec/models/organization_saml_auth_spec.rb +12 -0
  333. data/spec/models/organization_usage_spec.rb +59 -0
  334. data/spec/models/organization_usage_update_request_patch_spec.rb +53 -0
  335. data/spec/models/organization_usage_update_spec.rb +53 -0
  336. data/spec/models/p2_package_upload_request_spec.rb +12 -0
  337. data/spec/models/p2_package_upload_spec.rb +24 -0
  338. data/spec/models/package_copy_request_spec.rb +12 -0
  339. data/spec/models/package_copy_spec.rb +24 -0
  340. data/spec/models/package_detail_spec.rb +597 -0
  341. data/spec/models/package_license_request_patch_spec.rb +12 -0
  342. data/spec/models/package_license_spec.rb +12 -0
  343. data/spec/models/package_move_request_spec.rb +12 -0
  344. data/spec/models/package_move_spec.rb +24 -0
  345. data/spec/models/package_quarantine_request_spec.rb +12 -0
  346. data/spec/models/package_quarantine_spec.rb +24 -0
  347. data/spec/models/package_resync_spec.rb +24 -0
  348. data/spec/models/package_spec.rb +24 -0
  349. data/spec/models/package_tag_request_spec.rb +12 -0
  350. data/spec/models/package_tag_spec.rb +24 -0
  351. data/spec/models/package_vulnerability_spec.rb +12 -0
  352. data/spec/models/python_package_upload_request_spec.rb +12 -0
  353. data/spec/models/python_package_upload_spec.rb +24 -0
  354. data/spec/models/python_upstream_request_patch_spec.rb +1 -1
  355. data/spec/models/python_upstream_request_spec.rb +1 -1
  356. data/spec/models/python_upstream_spec.rb +1 -1
  357. data/spec/models/raw_package_upload_request_spec.rb +12 -0
  358. data/spec/models/raw_package_upload_spec.rb +24 -0
  359. data/spec/models/recycle_bin_package_spec.rb +12 -0
  360. data/spec/models/repository_create_spec.rb +6 -0
  361. data/spec/models/repository_ed25519_key_spec.rb +6 -0
  362. data/spec/models/repository_spec.rb +6 -0
  363. data/spec/models/rpm_package_upload_request_spec.rb +12 -0
  364. data/spec/models/rpm_package_upload_spec.rb +24 -0
  365. data/spec/models/ruby_package_upload_request_spec.rb +12 -0
  366. data/spec/models/ruby_package_upload_spec.rb +24 -0
  367. data/spec/models/swift_package_upload_request_spec.rb +12 -0
  368. data/spec/models/swift_package_upload_spec.rb +24 -0
  369. data/spec/models/terraform_package_upload_request_spec.rb +12 -0
  370. data/spec/models/terraform_package_upload_spec.rb +24 -0
  371. data/spec/models/vagrant_package_upload_request_spec.rb +12 -0
  372. data/spec/models/vagrant_package_upload_spec.rb +24 -0
  373. data/spec/models/vsx_package_upload_request_spec.rb +12 -0
  374. data/spec/models/vsx_package_upload_spec.rb +24 -0
  375. data/spec/models/web_osv_severity_counts_spec.rb +77 -0
  376. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/autotest-fsevent-0.3.2/gem_make.out +1 -1
  377. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/bigdecimal-4.1.2/gem_make.out +2 -2
  378. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/bigdecimal-4.1.2/mkmf.log +4 -4
  379. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.17.4/gem_make.out +2 -2
  380. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.17.4/mkmf.log +1 -1
  381. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.7.6/gem_make.out +2 -2
  382. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.7.6/mkmf.log +1 -1
  383. data/vendor/bundle/ruby/2.6.0/gems/bigdecimal-4.1.2/ext/bigdecimal/Makefile +2 -2
  384. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.17.4/ext/ffi_c/Makefile +2 -2
  385. data/vendor/bundle/ruby/2.6.0/gems/json-2.7.6/ext/json/ext/generator/Makefile +2 -2
  386. data/vendor/bundle/ruby/2.6.0/gems/json-2.7.6/ext/json/ext/parser/Makefile +2 -2
  387. metadata +51 -3
@@ -335,7 +335,7 @@ module CloudsmithApi
335
335
  # @param [Hash] opts the optional parameters
336
336
  # @option opts [Integer] :page A page number within the paginated result set.
337
337
  # @option opts [Integer] :page_size Number of results to return per page.
338
- # @return [InlineResponse2001]
338
+ # @return [InlineResponse2003]
339
339
  def repos_connected_list(owner, identifier, opts = {})
340
340
  data, _status_code, _headers = repos_connected_list_with_http_info(owner, identifier, opts)
341
341
  data
@@ -348,7 +348,7 @@ module CloudsmithApi
348
348
  # @param [Hash] opts the optional parameters
349
349
  # @option opts [Integer] :page A page number within the paginated result set.
350
350
  # @option opts [Integer] :page_size Number of results to return per page.
351
- # @return [Array<(InlineResponse2001, Fixnum, Hash)>] InlineResponse2001 data, response status code and response headers
351
+ # @return [Array<(InlineResponse2003, Fixnum, Hash)>] InlineResponse2003 data, response status code and response headers
352
352
  def repos_connected_list_with_http_info(owner, identifier, opts = {})
353
353
  if @api_client.config.debugging
354
354
  @api_client.config.logger.debug 'Calling API: ReposApi.repos_connected_list ...'
@@ -388,7 +388,7 @@ module CloudsmithApi
388
388
  :form_params => form_params,
389
389
  :body => post_body,
390
390
  :auth_names => auth_names,
391
- :return_type => 'InlineResponse2001')
391
+ :return_type => 'InlineResponse2003')
392
392
  if @api_client.config.debugging
393
393
  @api_client.config.logger.debug "API called: ReposApi#repos_connected_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
394
394
  end
@@ -1630,7 +1630,7 @@ module CloudsmithApi
1630
1630
  # @option opts [Integer] :page A page number within the paginated result set.
1631
1631
  # @option opts [Integer] :page_size Number of results to return per page.
1632
1632
  # @option opts [String] :query A search term for querying repositories. Available options are: name, slug. Explicit filters: broadcast_state, repository_type. (default to )
1633
- # @option opts [String] :sort A field for sorting objects in ascending or descending order. (default to -created_at)
1633
+ # @option opts [String] :sort A field for sorting objects in ascending or descending order. Available options are: created_at, downloads, favorites, name, package_count, size. (default to -created_at)
1634
1634
  # @return [Array<Repository>]
1635
1635
  def repos_namespace_list(owner, opts = {})
1636
1636
  data, _status_code, _headers = repos_namespace_list_with_http_info(owner, opts)
@@ -1644,7 +1644,7 @@ module CloudsmithApi
1644
1644
  # @option opts [Integer] :page A page number within the paginated result set.
1645
1645
  # @option opts [Integer] :page_size Number of results to return per page.
1646
1646
  # @option opts [String] :query A search term for querying repositories. Available options are: name, slug. Explicit filters: broadcast_state, repository_type.
1647
- # @option opts [String] :sort A field for sorting objects in ascending or descending order.
1647
+ # @option opts [String] :sort A field for sorting objects in ascending or descending order. Available options are: created_at, downloads, favorites, name, package_count, size.
1648
1648
  # @return [Array<(Array<Repository>, Fixnum, Hash)>] Array<Repository> data, response status code and response headers
1649
1649
  def repos_namespace_list_with_http_info(owner, opts = {})
1650
1650
  if @api_client.config.debugging
@@ -7772,6 +7772,401 @@ module CloudsmithApi
7772
7772
  end
7773
7773
  return data, status_code, headers
7774
7774
  end
7775
+ # Create a Nix upstream config for this repository.
7776
+ # Create a Nix upstream config for this repository.
7777
+ # @param owner
7778
+ # @param identifier
7779
+ # @param [Hash] opts the optional parameters
7780
+ # @option opts [NixUpstreamRequest] :data
7781
+ # @return [NixUpstream]
7782
+ def repos_upstream_nix_create(owner, identifier, opts = {})
7783
+ data, _status_code, _headers = repos_upstream_nix_create_with_http_info(owner, identifier, opts)
7784
+ data
7785
+ end
7786
+
7787
+ # Create a Nix upstream config for this repository.
7788
+ # Create a Nix upstream config for this repository.
7789
+ # @param owner
7790
+ # @param identifier
7791
+ # @param [Hash] opts the optional parameters
7792
+ # @option opts [NixUpstreamRequest] :data
7793
+ # @return [Array<(NixUpstream, Fixnum, Hash)>] NixUpstream data, response status code and response headers
7794
+ def repos_upstream_nix_create_with_http_info(owner, identifier, opts = {})
7795
+ if @api_client.config.debugging
7796
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_nix_create ...'
7797
+ end
7798
+ # verify the required parameter 'owner' is set
7799
+ if @api_client.config.client_side_validation && owner.nil?
7800
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_nix_create"
7801
+ end
7802
+ # verify the required parameter 'identifier' is set
7803
+ if @api_client.config.client_side_validation && identifier.nil?
7804
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_nix_create"
7805
+ end
7806
+ # resource path
7807
+ local_var_path = '/repos/{owner}/{identifier}/upstream/nix/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)
7808
+
7809
+ # query parameters
7810
+ query_params = {}
7811
+
7812
+ # header parameters
7813
+ header_params = {}
7814
+ # HTTP header 'Accept' (if needed)
7815
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
7816
+ # HTTP header 'Content-Type'
7817
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
7818
+
7819
+ # form parameters
7820
+ form_params = {}
7821
+
7822
+ # http body (model)
7823
+ post_body = @api_client.object_to_http_body(opts[:'data'])
7824
+ auth_names = ['apikey', 'basic']
7825
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
7826
+ :header_params => header_params,
7827
+ :query_params => query_params,
7828
+ :form_params => form_params,
7829
+ :body => post_body,
7830
+ :auth_names => auth_names,
7831
+ :return_type => 'NixUpstream')
7832
+ if @api_client.config.debugging
7833
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_nix_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
7834
+ end
7835
+ return data, status_code, headers
7836
+ end
7837
+ # Delete a Nix upstream config for this repository.
7838
+ # Delete a Nix upstream config for this repository.
7839
+ # @param owner
7840
+ # @param identifier
7841
+ # @param slug_perm
7842
+ # @param [Hash] opts the optional parameters
7843
+ # @return [nil]
7844
+ def repos_upstream_nix_delete(owner, identifier, slug_perm, opts = {})
7845
+ repos_upstream_nix_delete_with_http_info(owner, identifier, slug_perm, opts)
7846
+ nil
7847
+ end
7848
+
7849
+ # Delete a Nix upstream config for this repository.
7850
+ # Delete a Nix upstream config for this repository.
7851
+ # @param owner
7852
+ # @param identifier
7853
+ # @param slug_perm
7854
+ # @param [Hash] opts the optional parameters
7855
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
7856
+ def repos_upstream_nix_delete_with_http_info(owner, identifier, slug_perm, opts = {})
7857
+ if @api_client.config.debugging
7858
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_nix_delete ...'
7859
+ end
7860
+ # verify the required parameter 'owner' is set
7861
+ if @api_client.config.client_side_validation && owner.nil?
7862
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_nix_delete"
7863
+ end
7864
+ # verify the required parameter 'identifier' is set
7865
+ if @api_client.config.client_side_validation && identifier.nil?
7866
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_nix_delete"
7867
+ end
7868
+ # verify the required parameter 'slug_perm' is set
7869
+ if @api_client.config.client_side_validation && slug_perm.nil?
7870
+ fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_nix_delete"
7871
+ end
7872
+ # resource path
7873
+ local_var_path = '/repos/{owner}/{identifier}/upstream/nix/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)
7874
+
7875
+ # query parameters
7876
+ query_params = {}
7877
+
7878
+ # header parameters
7879
+ header_params = {}
7880
+ # HTTP header 'Accept' (if needed)
7881
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
7882
+ # HTTP header 'Content-Type'
7883
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
7884
+
7885
+ # form parameters
7886
+ form_params = {}
7887
+
7888
+ # http body (model)
7889
+ post_body = nil
7890
+ auth_names = ['apikey', 'basic']
7891
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
7892
+ :header_params => header_params,
7893
+ :query_params => query_params,
7894
+ :form_params => form_params,
7895
+ :body => post_body,
7896
+ :auth_names => auth_names)
7897
+ if @api_client.config.debugging
7898
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_nix_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
7899
+ end
7900
+ return data, status_code, headers
7901
+ end
7902
+ # List Nix upstream configs for this repository.
7903
+ # List Nix upstream configs for this repository.
7904
+ # @param owner
7905
+ # @param identifier
7906
+ # @param [Hash] opts the optional parameters
7907
+ # @option opts [Integer] :page A page number within the paginated result set.
7908
+ # @option opts [Integer] :page_size Number of results to return per page.
7909
+ # @return [Array<NixUpstream>]
7910
+ def repos_upstream_nix_list(owner, identifier, opts = {})
7911
+ data, _status_code, _headers = repos_upstream_nix_list_with_http_info(owner, identifier, opts)
7912
+ data
7913
+ end
7914
+
7915
+ # List Nix upstream configs for this repository.
7916
+ # List Nix upstream configs for this repository.
7917
+ # @param owner
7918
+ # @param identifier
7919
+ # @param [Hash] opts the optional parameters
7920
+ # @option opts [Integer] :page A page number within the paginated result set.
7921
+ # @option opts [Integer] :page_size Number of results to return per page.
7922
+ # @return [Array<(Array<NixUpstream>, Fixnum, Hash)>] Array<NixUpstream> data, response status code and response headers
7923
+ def repos_upstream_nix_list_with_http_info(owner, identifier, opts = {})
7924
+ if @api_client.config.debugging
7925
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_nix_list ...'
7926
+ end
7927
+ # verify the required parameter 'owner' is set
7928
+ if @api_client.config.client_side_validation && owner.nil?
7929
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_nix_list"
7930
+ end
7931
+ # verify the required parameter 'identifier' is set
7932
+ if @api_client.config.client_side_validation && identifier.nil?
7933
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_nix_list"
7934
+ end
7935
+ # resource path
7936
+ local_var_path = '/repos/{owner}/{identifier}/upstream/nix/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)
7937
+
7938
+ # query parameters
7939
+ query_params = {}
7940
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
7941
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
7942
+
7943
+ # header parameters
7944
+ header_params = {}
7945
+ # HTTP header 'Accept' (if needed)
7946
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
7947
+ # HTTP header 'Content-Type'
7948
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
7949
+
7950
+ # form parameters
7951
+ form_params = {}
7952
+
7953
+ # http body (model)
7954
+ post_body = nil
7955
+ auth_names = ['apikey', 'basic']
7956
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
7957
+ :header_params => header_params,
7958
+ :query_params => query_params,
7959
+ :form_params => form_params,
7960
+ :body => post_body,
7961
+ :auth_names => auth_names,
7962
+ :return_type => 'Array<NixUpstream>')
7963
+ if @api_client.config.debugging
7964
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_nix_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
7965
+ end
7966
+ return data, status_code, headers
7967
+ end
7968
+ # Partially update a Nix upstream config for this repository.
7969
+ # Partially update a Nix upstream config for this repository.
7970
+ # @param owner
7971
+ # @param identifier
7972
+ # @param slug_perm
7973
+ # @param [Hash] opts the optional parameters
7974
+ # @option opts [NixUpstreamRequestPatch] :data
7975
+ # @return [NixUpstream]
7976
+ def repos_upstream_nix_partial_update(owner, identifier, slug_perm, opts = {})
7977
+ data, _status_code, _headers = repos_upstream_nix_partial_update_with_http_info(owner, identifier, slug_perm, opts)
7978
+ data
7979
+ end
7980
+
7981
+ # Partially update a Nix upstream config for this repository.
7982
+ # Partially update a Nix upstream config for this repository.
7983
+ # @param owner
7984
+ # @param identifier
7985
+ # @param slug_perm
7986
+ # @param [Hash] opts the optional parameters
7987
+ # @option opts [NixUpstreamRequestPatch] :data
7988
+ # @return [Array<(NixUpstream, Fixnum, Hash)>] NixUpstream data, response status code and response headers
7989
+ def repos_upstream_nix_partial_update_with_http_info(owner, identifier, slug_perm, opts = {})
7990
+ if @api_client.config.debugging
7991
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_nix_partial_update ...'
7992
+ end
7993
+ # verify the required parameter 'owner' is set
7994
+ if @api_client.config.client_side_validation && owner.nil?
7995
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_nix_partial_update"
7996
+ end
7997
+ # verify the required parameter 'identifier' is set
7998
+ if @api_client.config.client_side_validation && identifier.nil?
7999
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_nix_partial_update"
8000
+ end
8001
+ # verify the required parameter 'slug_perm' is set
8002
+ if @api_client.config.client_side_validation && slug_perm.nil?
8003
+ fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_nix_partial_update"
8004
+ end
8005
+ # resource path
8006
+ local_var_path = '/repos/{owner}/{identifier}/upstream/nix/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)
8007
+
8008
+ # query parameters
8009
+ query_params = {}
8010
+
8011
+ # header parameters
8012
+ header_params = {}
8013
+ # HTTP header 'Accept' (if needed)
8014
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
8015
+ # HTTP header 'Content-Type'
8016
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
8017
+
8018
+ # form parameters
8019
+ form_params = {}
8020
+
8021
+ # http body (model)
8022
+ post_body = @api_client.object_to_http_body(opts[:'data'])
8023
+ auth_names = ['apikey', 'basic']
8024
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
8025
+ :header_params => header_params,
8026
+ :query_params => query_params,
8027
+ :form_params => form_params,
8028
+ :body => post_body,
8029
+ :auth_names => auth_names,
8030
+ :return_type => 'NixUpstream')
8031
+ if @api_client.config.debugging
8032
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_nix_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
8033
+ end
8034
+ return data, status_code, headers
8035
+ end
8036
+ # Retrieve a Nix upstream config for this repository.
8037
+ # Retrieve a Nix upstream config for this repository.
8038
+ # @param owner
8039
+ # @param identifier
8040
+ # @param slug_perm
8041
+ # @param [Hash] opts the optional parameters
8042
+ # @return [NixUpstream]
8043
+ def repos_upstream_nix_read(owner, identifier, slug_perm, opts = {})
8044
+ data, _status_code, _headers = repos_upstream_nix_read_with_http_info(owner, identifier, slug_perm, opts)
8045
+ data
8046
+ end
8047
+
8048
+ # Retrieve a Nix upstream config for this repository.
8049
+ # Retrieve a Nix upstream config for this repository.
8050
+ # @param owner
8051
+ # @param identifier
8052
+ # @param slug_perm
8053
+ # @param [Hash] opts the optional parameters
8054
+ # @return [Array<(NixUpstream, Fixnum, Hash)>] NixUpstream data, response status code and response headers
8055
+ def repos_upstream_nix_read_with_http_info(owner, identifier, slug_perm, opts = {})
8056
+ if @api_client.config.debugging
8057
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_nix_read ...'
8058
+ end
8059
+ # verify the required parameter 'owner' is set
8060
+ if @api_client.config.client_side_validation && owner.nil?
8061
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_nix_read"
8062
+ end
8063
+ # verify the required parameter 'identifier' is set
8064
+ if @api_client.config.client_side_validation && identifier.nil?
8065
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_nix_read"
8066
+ end
8067
+ # verify the required parameter 'slug_perm' is set
8068
+ if @api_client.config.client_side_validation && slug_perm.nil?
8069
+ fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_nix_read"
8070
+ end
8071
+ # resource path
8072
+ local_var_path = '/repos/{owner}/{identifier}/upstream/nix/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)
8073
+
8074
+ # query parameters
8075
+ query_params = {}
8076
+
8077
+ # header parameters
8078
+ header_params = {}
8079
+ # HTTP header 'Accept' (if needed)
8080
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
8081
+ # HTTP header 'Content-Type'
8082
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
8083
+
8084
+ # form parameters
8085
+ form_params = {}
8086
+
8087
+ # http body (model)
8088
+ post_body = nil
8089
+ auth_names = ['apikey', 'basic']
8090
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
8091
+ :header_params => header_params,
8092
+ :query_params => query_params,
8093
+ :form_params => form_params,
8094
+ :body => post_body,
8095
+ :auth_names => auth_names,
8096
+ :return_type => 'NixUpstream')
8097
+ if @api_client.config.debugging
8098
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_nix_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
8099
+ end
8100
+ return data, status_code, headers
8101
+ end
8102
+ # Update a Nix upstream config for this repository.
8103
+ # Update a Nix upstream config for this repository.
8104
+ # @param owner
8105
+ # @param identifier
8106
+ # @param slug_perm
8107
+ # @param [Hash] opts the optional parameters
8108
+ # @option opts [NixUpstreamRequest] :data
8109
+ # @return [NixUpstream]
8110
+ def repos_upstream_nix_update(owner, identifier, slug_perm, opts = {})
8111
+ data, _status_code, _headers = repos_upstream_nix_update_with_http_info(owner, identifier, slug_perm, opts)
8112
+ data
8113
+ end
8114
+
8115
+ # Update a Nix upstream config for this repository.
8116
+ # Update a Nix upstream config for this repository.
8117
+ # @param owner
8118
+ # @param identifier
8119
+ # @param slug_perm
8120
+ # @param [Hash] opts the optional parameters
8121
+ # @option opts [NixUpstreamRequest] :data
8122
+ # @return [Array<(NixUpstream, Fixnum, Hash)>] NixUpstream data, response status code and response headers
8123
+ def repos_upstream_nix_update_with_http_info(owner, identifier, slug_perm, opts = {})
8124
+ if @api_client.config.debugging
8125
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_nix_update ...'
8126
+ end
8127
+ # verify the required parameter 'owner' is set
8128
+ if @api_client.config.client_side_validation && owner.nil?
8129
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_nix_update"
8130
+ end
8131
+ # verify the required parameter 'identifier' is set
8132
+ if @api_client.config.client_side_validation && identifier.nil?
8133
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_nix_update"
8134
+ end
8135
+ # verify the required parameter 'slug_perm' is set
8136
+ if @api_client.config.client_side_validation && slug_perm.nil?
8137
+ fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_nix_update"
8138
+ end
8139
+ # resource path
8140
+ local_var_path = '/repos/{owner}/{identifier}/upstream/nix/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)
8141
+
8142
+ # query parameters
8143
+ query_params = {}
8144
+
8145
+ # header parameters
8146
+ header_params = {}
8147
+ # HTTP header 'Accept' (if needed)
8148
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
8149
+ # HTTP header 'Content-Type'
8150
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
8151
+
8152
+ # form parameters
8153
+ form_params = {}
8154
+
8155
+ # http body (model)
8156
+ post_body = @api_client.object_to_http_body(opts[:'data'])
8157
+ auth_names = ['apikey', 'basic']
8158
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
8159
+ :header_params => header_params,
8160
+ :query_params => query_params,
8161
+ :form_params => form_params,
8162
+ :body => post_body,
8163
+ :auth_names => auth_names,
8164
+ :return_type => 'NixUpstream')
8165
+ if @api_client.config.debugging
8166
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_nix_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
8167
+ end
8168
+ return data, status_code, headers
8169
+ end
7775
8170
  # Create a npm upstream config for this repository.
7776
8171
  # Create a npm upstream config for this repository.
7777
8172
  # @param owner
@@ -170,7 +170,7 @@ module CloudsmithApi
170
170
  # @param [Hash] opts the optional parameters
171
171
  # @option opts [Integer] :page A page number within the paginated result set.
172
172
  # @option opts [Integer] :page_size Number of results to return per page.
173
- # @return [InlineResponse2002]
173
+ # @return [InlineResponse2004]
174
174
  def user_tokens_list(opts = {})
175
175
  data, _status_code, _headers = user_tokens_list_with_http_info(opts)
176
176
  data
@@ -181,7 +181,7 @@ module CloudsmithApi
181
181
  # @param [Hash] opts the optional parameters
182
182
  # @option opts [Integer] :page A page number within the paginated result set.
183
183
  # @option opts [Integer] :page_size Number of results to return per page.
184
- # @return [Array<(InlineResponse2002, Fixnum, Hash)>] InlineResponse2002 data, response status code and response headers
184
+ # @return [Array<(InlineResponse2004, Fixnum, Hash)>] InlineResponse2004 data, response status code and response headers
185
185
  def user_tokens_list_with_http_info(opts = {})
186
186
  if @api_client.config.debugging
187
187
  @api_client.config.logger.debug 'Calling API: UserApi.user_tokens_list ...'
@@ -213,7 +213,7 @@ module CloudsmithApi
213
213
  :form_params => form_params,
214
214
  :body => post_body,
215
215
  :auth_names => auth_names,
216
- :return_type => 'InlineResponse2002')
216
+ :return_type => 'InlineResponse2004')
217
217
  if @api_client.config.debugging
218
218
  @api_client.config.logger.debug "API called: UserApi#user_tokens_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
219
219
  end
@@ -78,6 +78,9 @@ class AlpinePackageUpload
78
78
 
79
79
  attr_accessor :is_hidden
80
80
 
81
+ # Whether the package has been detected as containing malware. Requires Ultra plan.
82
+ attr_accessor :is_malware_detected
83
+
81
84
  attr_accessor :is_moveable
82
85
 
83
86
  attr_accessor :is_quarantinable
@@ -184,6 +187,9 @@ class AlpinePackageUpload
184
187
 
185
188
  attr_accessor :status_url
186
189
 
190
+ # Absolute store path for the package, including store hash and name.
191
+ attr_accessor :store_path
192
+
187
193
  attr_accessor :subtype
188
194
 
189
195
  # A one-liner synopsis of this package.
@@ -199,6 +205,9 @@ class AlpinePackageUpload
199
205
 
200
206
  attr_accessor :tags_immutable
201
207
 
208
+ # All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension.
209
+ attr_accessor :tags_static
210
+
202
211
  attr_accessor :type_display
203
212
 
204
213
  # The date this package was uploaded.
@@ -213,6 +222,8 @@ class AlpinePackageUpload
213
222
 
214
223
  attr_accessor :version_orig
215
224
 
225
+ attr_accessor :vulnerability_counts
226
+
216
227
  attr_accessor :vulnerability_scan_results_url
217
228
 
218
229
  class EnumAttributeValidator
@@ -269,6 +280,7 @@ class AlpinePackageUpload
269
280
  :'is_deleteable' => :'is_deleteable',
270
281
  :'is_downloadable' => :'is_downloadable',
271
282
  :'is_hidden' => :'is_hidden',
283
+ :'is_malware_detected' => :'is_malware_detected',
272
284
  :'is_moveable' => :'is_moveable',
273
285
  :'is_quarantinable' => :'is_quarantinable',
274
286
  :'is_quarantined' => :'is_quarantined',
@@ -313,18 +325,21 @@ class AlpinePackageUpload
313
325
  :'status_str' => :'status_str',
314
326
  :'status_updated_at' => :'status_updated_at',
315
327
  :'status_url' => :'status_url',
328
+ :'store_path' => :'store_path',
316
329
  :'subtype' => :'subtype',
317
330
  :'summary' => :'summary',
318
331
  :'sync_finished_at' => :'sync_finished_at',
319
332
  :'sync_progress' => :'sync_progress',
320
333
  :'tags_automatic' => :'tags_automatic',
321
334
  :'tags_immutable' => :'tags_immutable',
335
+ :'tags_static' => :'tags_static',
322
336
  :'type_display' => :'type_display',
323
337
  :'uploaded_at' => :'uploaded_at',
324
338
  :'uploader' => :'uploader',
325
339
  :'uploader_url' => :'uploader_url',
326
340
  :'version' => :'version',
327
341
  :'version_orig' => :'version_orig',
342
+ :'vulnerability_counts' => :'vulnerability_counts',
328
343
  :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url'
329
344
  }
330
345
  end
@@ -361,6 +376,7 @@ class AlpinePackageUpload
361
376
  :'is_deleteable' => :'BOOLEAN',
362
377
  :'is_downloadable' => :'BOOLEAN',
363
378
  :'is_hidden' => :'BOOLEAN',
379
+ :'is_malware_detected' => :'BOOLEAN',
364
380
  :'is_moveable' => :'BOOLEAN',
365
381
  :'is_quarantinable' => :'BOOLEAN',
366
382
  :'is_quarantined' => :'BOOLEAN',
@@ -405,18 +421,21 @@ class AlpinePackageUpload
405
421
  :'status_str' => :'String',
406
422
  :'status_updated_at' => :'DateTime',
407
423
  :'status_url' => :'String',
424
+ :'store_path' => :'String',
408
425
  :'subtype' => :'String',
409
426
  :'summary' => :'String',
410
427
  :'sync_finished_at' => :'DateTime',
411
428
  :'sync_progress' => :'Integer',
412
429
  :'tags_automatic' => :'Tags',
413
430
  :'tags_immutable' => :'Tags',
431
+ :'tags_static' => :'Hash<String, Array<String>>',
414
432
  :'type_display' => :'String',
415
433
  :'uploaded_at' => :'DateTime',
416
434
  :'uploader' => :'String',
417
435
  :'uploader_url' => :'String',
418
436
  :'version' => :'String',
419
437
  :'version_orig' => :'String',
438
+ :'vulnerability_counts' => :'WebOSVSeverityCounts',
420
439
  :'vulnerability_scan_results_url' => :'String'
421
440
  }
422
441
  end
@@ -551,6 +570,10 @@ class AlpinePackageUpload
551
570
  self.is_hidden = attributes[:'is_hidden']
552
571
  end
553
572
 
573
+ if attributes.has_key?(:'is_malware_detected')
574
+ self.is_malware_detected = attributes[:'is_malware_detected']
575
+ end
576
+
554
577
  if attributes.has_key?(:'is_moveable')
555
578
  self.is_moveable = attributes[:'is_moveable']
556
579
  end
@@ -729,6 +752,10 @@ class AlpinePackageUpload
729
752
  self.status_url = attributes[:'status_url']
730
753
  end
731
754
 
755
+ if attributes.has_key?(:'store_path')
756
+ self.store_path = attributes[:'store_path']
757
+ end
758
+
732
759
  if attributes.has_key?(:'subtype')
733
760
  self.subtype = attributes[:'subtype']
734
761
  end
@@ -753,6 +780,12 @@ class AlpinePackageUpload
753
780
  self.tags_immutable = attributes[:'tags_immutable']
754
781
  end
755
782
 
783
+ if attributes.has_key?(:'tags_static')
784
+ if (value = attributes[:'tags_static']).is_a?(Hash)
785
+ self.tags_static = value
786
+ end
787
+ end
788
+
756
789
  if attributes.has_key?(:'type_display')
757
790
  self.type_display = attributes[:'type_display']
758
791
  end
@@ -777,6 +810,10 @@ class AlpinePackageUpload
777
810
  self.version_orig = attributes[:'version_orig']
778
811
  end
779
812
 
813
+ if attributes.has_key?(:'vulnerability_counts')
814
+ self.vulnerability_counts = attributes[:'vulnerability_counts']
815
+ end
816
+
780
817
  if attributes.has_key?(:'vulnerability_scan_results_url')
781
818
  self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url']
782
819
  end
@@ -841,6 +878,7 @@ class AlpinePackageUpload
841
878
  is_deleteable == o.is_deleteable &&
842
879
  is_downloadable == o.is_downloadable &&
843
880
  is_hidden == o.is_hidden &&
881
+ is_malware_detected == o.is_malware_detected &&
844
882
  is_moveable == o.is_moveable &&
845
883
  is_quarantinable == o.is_quarantinable &&
846
884
  is_quarantined == o.is_quarantined &&
@@ -885,18 +923,21 @@ class AlpinePackageUpload
885
923
  status_str == o.status_str &&
886
924
  status_updated_at == o.status_updated_at &&
887
925
  status_url == o.status_url &&
926
+ store_path == o.store_path &&
888
927
  subtype == o.subtype &&
889
928
  summary == o.summary &&
890
929
  sync_finished_at == o.sync_finished_at &&
891
930
  sync_progress == o.sync_progress &&
892
931
  tags_automatic == o.tags_automatic &&
893
932
  tags_immutable == o.tags_immutable &&
933
+ tags_static == o.tags_static &&
894
934
  type_display == o.type_display &&
895
935
  uploaded_at == o.uploaded_at &&
896
936
  uploader == o.uploader &&
897
937
  uploader_url == o.uploader_url &&
898
938
  version == o.version &&
899
939
  version_orig == o.version_orig &&
940
+ vulnerability_counts == o.vulnerability_counts &&
900
941
  vulnerability_scan_results_url == o.vulnerability_scan_results_url
901
942
  end
902
943
 
@@ -909,7 +950,7 @@ class AlpinePackageUpload
909
950
  # Calculates hash code according to all attributes.
910
951
  # @return [Fixnum] Hash code
911
952
  def 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
953
+ [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_malware_detected, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, tags_static, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_counts, vulnerability_scan_results_url].hash
913
954
  end
914
955
 
915
956
  # Builds the object from hash