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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +26 -4
- data/build.json +1 -1
- data/docs/AlpinePackageUpload.md +4 -0
- data/docs/AlpinePackageUploadRequest.md +2 -0
- data/docs/CargoPackageUpload.md +4 -0
- data/docs/CargoPackageUploadRequest.md +2 -0
- data/docs/CocoapodsPackageUpload.md +4 -0
- data/docs/CocoapodsPackageUploadRequest.md +2 -0
- data/docs/ComposerPackageUpload.md +4 -0
- data/docs/ComposerPackageUploadRequest.md +2 -0
- data/docs/ConanPackageUpload.md +4 -0
- data/docs/ConanPackageUploadRequest.md +2 -0
- data/docs/CondaPackageUpload.md +4 -0
- data/docs/CondaPackageUploadRequest.md +2 -0
- data/docs/ConnectedRepository.md +3 -1
- data/docs/ConnectedRepositoryRequest.md +1 -1
- data/docs/ConnectedRepositoryRequestPatch.md +1 -1
- data/docs/CranPackageUpload.md +4 -0
- data/docs/CranPackageUploadRequest.md +2 -0
- data/docs/DartPackageUpload.md +4 -0
- data/docs/DartPackageUploadRequest.md +2 -0
- data/docs/DebPackageUpload.md +4 -0
- data/docs/DebPackageUploadRequest.md +2 -0
- data/docs/DockerPackageUpload.md +4 -0
- data/docs/DockerPackageUploadRequest.md +2 -0
- data/docs/FormatSupportUpstream.md +1 -0
- data/docs/GenericPackageUpload.md +4 -0
- data/docs/GenericPackageUploadRequest.md +2 -0
- data/docs/GoPackageUpload.md +4 -0
- data/docs/GoPackageUploadRequest.md +2 -0
- data/docs/HelmPackageUpload.md +4 -0
- data/docs/HelmPackageUploadRequest.md +2 -0
- data/docs/HexPackageUpload.md +4 -0
- data/docs/HexPackageUploadRequest.md +2 -0
- data/docs/HuggingfacePackageUpload.md +4 -0
- data/docs/HuggingfacePackageUploadRequest.md +2 -0
- data/docs/InlineResponse200.md +5 -1
- data/docs/InlineResponse2001.md +3 -1
- data/docs/InlineResponse2002.md +1 -1
- data/docs/InlineResponse2003.md +8 -0
- data/docs/InlineResponse2004.md +8 -0
- data/docs/LuarocksPackageUpload.md +4 -0
- data/docs/LuarocksPackageUploadRequest.md +2 -0
- data/docs/MavenPackageUpload.md +4 -0
- data/docs/MavenPackageUploadRequest.md +2 -0
- data/docs/McpPackageUpload.md +4 -0
- data/docs/McpPackageUploadRequest.md +2 -0
- data/docs/NixPackageUpload.md +97 -0
- data/docs/NixPackageUploadRequest.md +14 -0
- data/docs/NixUpstream.md +32 -0
- data/docs/NixUpstreamRequest.md +20 -0
- data/docs/NixUpstreamRequestPatch.md +20 -0
- data/docs/NpmPackageUpload.md +4 -0
- data/docs/NpmPackageUploadRequest.md +2 -0
- data/docs/NugetPackageUpload.md +4 -0
- data/docs/NugetPackageUploadRequest.md +2 -0
- data/docs/OrganizationSAMLAuth.md +2 -0
- data/docs/OrganizationSAMLAuthRequestPatch.md +2 -0
- data/docs/OrganizationUsage.md +11 -0
- data/docs/OrganizationUsageUpdate.md +10 -0
- data/docs/OrganizationUsageUpdateRequestPatch.md +10 -0
- data/docs/OrgsApi.md +123 -1
- data/docs/P2PackageUpload.md +4 -0
- data/docs/P2PackageUploadRequest.md +2 -0
- data/docs/Package.md +4 -0
- data/docs/PackageCopy.md +4 -0
- data/docs/PackageCopyRequest.md +2 -0
- data/docs/PackageDetail.md +100 -0
- data/docs/PackageLicense.md +2 -0
- data/docs/PackageLicenseRequestPatch.md +3 -1
- data/docs/PackageMove.md +4 -0
- data/docs/PackageMoveRequest.md +2 -0
- data/docs/PackageQuarantine.md +4 -0
- data/docs/PackageQuarantineRequest.md +2 -0
- data/docs/PackageResync.md +4 -0
- data/docs/PackageTag.md +4 -0
- data/docs/PackageTagRequest.md +2 -0
- data/docs/PackageVulnerability.md +2 -0
- data/docs/PackagesApi.md +156 -9
- data/docs/PythonPackageUpload.md +4 -0
- data/docs/PythonPackageUploadRequest.md +2 -0
- data/docs/RawPackageUpload.md +4 -0
- data/docs/RawPackageUploadRequest.md +2 -0
- data/docs/RecycleBinPackage.md +2 -0
- data/docs/ReposApi.md +405 -4
- data/docs/Repository.md +1 -0
- data/docs/RepositoryCreate.md +1 -0
- data/docs/RepositoryEd25519Key.md +1 -0
- data/docs/RpmPackageUpload.md +4 -0
- data/docs/RpmPackageUploadRequest.md +2 -0
- data/docs/RubyPackageUpload.md +4 -0
- data/docs/RubyPackageUploadRequest.md +2 -0
- data/docs/SwiftPackageUpload.md +4 -0
- data/docs/SwiftPackageUploadRequest.md +2 -0
- data/docs/TerraformPackageUpload.md +4 -0
- data/docs/TerraformPackageUploadRequest.md +2 -0
- data/docs/UserApi.md +2 -2
- data/docs/VagrantPackageUpload.md +4 -0
- data/docs/VagrantPackageUploadRequest.md +2 -0
- data/docs/VsxPackageUpload.md +4 -0
- data/docs/VsxPackageUploadRequest.md +2 -0
- data/docs/WebOSVSeverityCounts.md +14 -0
- data/lib/cloudsmith-api/api/orgs_api.rb +109 -0
- data/lib/cloudsmith-api/api/packages_api.rb +144 -6
- data/lib/cloudsmith-api/api/repos_api.rb +400 -5
- data/lib/cloudsmith-api/api/user_api.rb +3 -3
- data/lib/cloudsmith-api/models/alpine_package_upload.rb +42 -1
- data/lib/cloudsmith-api/models/alpine_package_upload_request.rb +23 -4
- data/lib/cloudsmith-api/models/cargo_package_upload.rb +42 -1
- data/lib/cloudsmith-api/models/cargo_package_upload_request.rb +23 -4
- data/lib/cloudsmith-api/models/cargo_upstream.rb +2 -2
- data/lib/cloudsmith-api/models/cargo_upstream_request.rb +2 -2
- data/lib/cloudsmith-api/models/cargo_upstream_request_patch.rb +2 -2
- data/lib/cloudsmith-api/models/cocoapods_package_upload.rb +42 -1
- data/lib/cloudsmith-api/models/cocoapods_package_upload_request.rb +23 -4
- data/lib/cloudsmith-api/models/composer_package_upload.rb +42 -1
- data/lib/cloudsmith-api/models/composer_package_upload_request.rb +23 -4
- data/lib/cloudsmith-api/models/composer_upstream.rb +2 -2
- data/lib/cloudsmith-api/models/composer_upstream_request.rb +2 -2
- data/lib/cloudsmith-api/models/composer_upstream_request_patch.rb +2 -2
- data/lib/cloudsmith-api/models/conan_package_upload.rb +42 -1
- data/lib/cloudsmith-api/models/conan_package_upload_request.rb +23 -4
- data/lib/cloudsmith-api/models/conda_package_upload.rb +42 -1
- data/lib/cloudsmith-api/models/conda_package_upload_request.rb +23 -4
- data/lib/cloudsmith-api/models/conda_upstream.rb +2 -2
- data/lib/cloudsmith-api/models/conda_upstream_request.rb +2 -2
- data/lib/cloudsmith-api/models/conda_upstream_request_patch.rb +2 -2
- data/lib/cloudsmith-api/models/connected_repository.rb +57 -2
- data/lib/cloudsmith-api/models/connected_repository_request.rb +1 -1
- data/lib/cloudsmith-api/models/connected_repository_request_patch.rb +1 -1
- data/lib/cloudsmith-api/models/cran_package_upload.rb +42 -1
- data/lib/cloudsmith-api/models/cran_package_upload_request.rb +23 -4
- data/lib/cloudsmith-api/models/cran_upstream.rb +2 -2
- data/lib/cloudsmith-api/models/cran_upstream_request.rb +2 -2
- data/lib/cloudsmith-api/models/cran_upstream_request_patch.rb +2 -2
- data/lib/cloudsmith-api/models/dart_package_upload.rb +42 -1
- data/lib/cloudsmith-api/models/dart_package_upload_request.rb +23 -4
- data/lib/cloudsmith-api/models/dart_upstream.rb +2 -2
- data/lib/cloudsmith-api/models/dart_upstream_request.rb +2 -2
- data/lib/cloudsmith-api/models/dart_upstream_request_patch.rb +2 -2
- data/lib/cloudsmith-api/models/deb_package_upload.rb +42 -1
- data/lib/cloudsmith-api/models/deb_package_upload_request.rb +23 -4
- data/lib/cloudsmith-api/models/deb_upstream.rb +2 -2
- data/lib/cloudsmith-api/models/deb_upstream_request.rb +2 -2
- data/lib/cloudsmith-api/models/deb_upstream_request_patch.rb +2 -2
- data/lib/cloudsmith-api/models/docker_package_upload.rb +42 -1
- data/lib/cloudsmith-api/models/docker_package_upload_request.rb +23 -4
- data/lib/cloudsmith-api/models/format_support_upstream.rb +16 -1
- data/lib/cloudsmith-api/models/generic_package_upload.rb +42 -1
- data/lib/cloudsmith-api/models/generic_package_upload_request.rb +23 -4
- data/lib/cloudsmith-api/models/generic_upstream.rb +2 -2
- data/lib/cloudsmith-api/models/generic_upstream_request.rb +2 -2
- data/lib/cloudsmith-api/models/generic_upstream_request_patch.rb +2 -2
- data/lib/cloudsmith-api/models/go_package_upload.rb +42 -1
- data/lib/cloudsmith-api/models/go_package_upload_request.rb +23 -4
- data/lib/cloudsmith-api/models/helm_package_upload.rb +42 -1
- data/lib/cloudsmith-api/models/helm_package_upload_request.rb +23 -4
- data/lib/cloudsmith-api/models/helm_upstream.rb +2 -2
- data/lib/cloudsmith-api/models/helm_upstream_request.rb +2 -2
- data/lib/cloudsmith-api/models/helm_upstream_request_patch.rb +2 -2
- data/lib/cloudsmith-api/models/hex_package_upload.rb +42 -1
- data/lib/cloudsmith-api/models/hex_package_upload_request.rb +23 -4
- data/lib/cloudsmith-api/models/hex_upstream.rb +2 -2
- data/lib/cloudsmith-api/models/hex_upstream_request.rb +2 -2
- data/lib/cloudsmith-api/models/hex_upstream_request_patch.rb +2 -2
- data/lib/cloudsmith-api/models/huggingface_package_upload.rb +42 -1
- data/lib/cloudsmith-api/models/huggingface_package_upload_request.rb +23 -4
- data/lib/cloudsmith-api/models/inline_response_200.rb +48 -14
- data/lib/cloudsmith-api/models/inline_response_200_1.rb +28 -14
- data/lib/cloudsmith-api/models/inline_response_200_2.rb +1 -1
- data/lib/cloudsmith-api/models/inline_response_200_3.rb +191 -0
- data/lib/cloudsmith-api/models/inline_response_200_4.rb +191 -0
- data/lib/cloudsmith-api/models/luarocks_package_upload.rb +42 -1
- data/lib/cloudsmith-api/models/luarocks_package_upload_request.rb +23 -4
- data/lib/cloudsmith-api/models/maven_package_upload.rb +42 -1
- data/lib/cloudsmith-api/models/maven_package_upload_request.rb +23 -4
- data/lib/cloudsmith-api/models/mcp_package_upload.rb +42 -1
- data/lib/cloudsmith-api/models/mcp_package_upload_request.rb +23 -4
- data/lib/cloudsmith-api/models/nix_package_upload.rb +1061 -0
- data/lib/cloudsmith-api/models/nix_package_upload_request.rb +249 -0
- data/lib/cloudsmith-api/models/nix_upstream.rb +496 -0
- data/lib/cloudsmith-api/models/nix_upstream_request.rb +365 -0
- data/lib/cloudsmith-api/models/nix_upstream_request_patch.rb +355 -0
- data/lib/cloudsmith-api/models/npm_package_upload.rb +42 -1
- data/lib/cloudsmith-api/models/npm_package_upload_request.rb +23 -4
- data/lib/cloudsmith-api/models/npm_upstream.rb +2 -2
- data/lib/cloudsmith-api/models/npm_upstream_request.rb +2 -2
- data/lib/cloudsmith-api/models/npm_upstream_request_patch.rb +2 -2
- data/lib/cloudsmith-api/models/nuget_package_upload.rb +42 -1
- data/lib/cloudsmith-api/models/nuget_package_upload_request.rb +23 -4
- data/lib/cloudsmith-api/models/nuget_upstream.rb +2 -2
- data/lib/cloudsmith-api/models/nuget_upstream_request.rb +2 -2
- data/lib/cloudsmith-api/models/nuget_upstream_request_patch.rb +2 -2
- data/lib/cloudsmith-api/models/organization_saml_auth.rb +24 -4
- data/lib/cloudsmith-api/models/organization_saml_auth_request_patch.rb +24 -4
- data/lib/cloudsmith-api/models/organization_usage.rb +215 -0
- data/lib/cloudsmith-api/models/organization_usage_update.rb +202 -0
- data/lib/cloudsmith-api/models/organization_usage_update_request_patch.rb +202 -0
- data/lib/cloudsmith-api/models/p2_package_upload.rb +42 -1
- data/lib/cloudsmith-api/models/p2_package_upload_request.rb +23 -4
- data/lib/cloudsmith-api/models/package.rb +42 -1
- data/lib/cloudsmith-api/models/package_copy.rb +42 -1
- data/lib/cloudsmith-api/models/package_copy_request.rb +23 -4
- data/lib/cloudsmith-api/models/package_detail.rb +1090 -0
- data/lib/cloudsmith-api/models/package_license.rb +23 -4
- data/lib/cloudsmith-api/models/package_license_request_patch.rb +28 -4
- data/lib/cloudsmith-api/models/package_move.rb +42 -1
- data/lib/cloudsmith-api/models/package_move_request.rb +23 -4
- data/lib/cloudsmith-api/models/package_quarantine.rb +42 -1
- data/lib/cloudsmith-api/models/package_quarantine_request.rb +23 -4
- data/lib/cloudsmith-api/models/package_resync.rb +42 -1
- data/lib/cloudsmith-api/models/package_tag.rb +42 -1
- data/lib/cloudsmith-api/models/package_tag_request.rb +23 -4
- data/lib/cloudsmith-api/models/package_vulnerability.rb +23 -4
- data/lib/cloudsmith-api/models/python_package_upload.rb +42 -1
- data/lib/cloudsmith-api/models/python_package_upload_request.rb +23 -4
- data/lib/cloudsmith-api/models/python_upstream.rb +2 -2
- data/lib/cloudsmith-api/models/python_upstream_request.rb +2 -2
- data/lib/cloudsmith-api/models/python_upstream_request_patch.rb +2 -2
- data/lib/cloudsmith-api/models/raw_package_upload.rb +42 -1
- data/lib/cloudsmith-api/models/raw_package_upload_request.rb +23 -4
- data/lib/cloudsmith-api/models/recycle_bin_package.rb +23 -4
- data/lib/cloudsmith-api/models/repository.rb +11 -1
- data/lib/cloudsmith-api/models/repository_create.rb +11 -1
- data/lib/cloudsmith-api/models/repository_ed25519_key.rb +14 -4
- data/lib/cloudsmith-api/models/rpm_package_upload.rb +42 -1
- data/lib/cloudsmith-api/models/rpm_package_upload_request.rb +23 -4
- data/lib/cloudsmith-api/models/ruby_package_upload.rb +42 -1
- data/lib/cloudsmith-api/models/ruby_package_upload_request.rb +23 -4
- data/lib/cloudsmith-api/models/swift_package_upload.rb +42 -1
- data/lib/cloudsmith-api/models/swift_package_upload_request.rb +23 -4
- data/lib/cloudsmith-api/models/terraform_package_upload.rb +42 -1
- data/lib/cloudsmith-api/models/terraform_package_upload_request.rb +23 -4
- data/lib/cloudsmith-api/models/vagrant_package_upload.rb +42 -1
- data/lib/cloudsmith-api/models/vagrant_package_upload_request.rb +23 -4
- data/lib/cloudsmith-api/models/vsx_package_upload.rb +42 -1
- data/lib/cloudsmith-api/models/vsx_package_upload_request.rb +23 -4
- data/lib/cloudsmith-api/models/web_osv_severity_counts.rb +239 -0
- data/lib/cloudsmith-api/version.rb +1 -1
- data/lib/cloudsmith-api.rb +12 -0
- data/spec/api/orgs_api_spec.rb +24 -0
- data/spec/api/packages_api_spec.rb +35 -2
- data/spec/api/repos_api_spec.rb +89 -2
- data/spec/api/user_api_spec.rb +1 -1
- data/spec/models/alpine_package_upload_request_spec.rb +12 -0
- data/spec/models/alpine_package_upload_spec.rb +24 -0
- data/spec/models/cargo_package_upload_request_spec.rb +12 -0
- data/spec/models/cargo_package_upload_spec.rb +24 -0
- data/spec/models/cargo_upstream_request_patch_spec.rb +1 -1
- data/spec/models/cargo_upstream_request_spec.rb +1 -1
- data/spec/models/cargo_upstream_spec.rb +1 -1
- data/spec/models/cocoapods_package_upload_request_spec.rb +12 -0
- data/spec/models/cocoapods_package_upload_spec.rb +24 -0
- data/spec/models/composer_package_upload_request_spec.rb +12 -0
- data/spec/models/composer_package_upload_spec.rb +24 -0
- data/spec/models/composer_upstream_request_patch_spec.rb +1 -1
- data/spec/models/composer_upstream_request_spec.rb +1 -1
- data/spec/models/composer_upstream_spec.rb +1 -1
- data/spec/models/conan_package_upload_request_spec.rb +12 -0
- data/spec/models/conan_package_upload_spec.rb +24 -0
- data/spec/models/conda_package_upload_request_spec.rb +12 -0
- data/spec/models/conda_package_upload_spec.rb +24 -0
- data/spec/models/conda_upstream_request_patch_spec.rb +1 -1
- data/spec/models/conda_upstream_request_spec.rb +1 -1
- data/spec/models/conda_upstream_spec.rb +1 -1
- data/spec/models/connected_repository_spec.rb +16 -0
- data/spec/models/cran_package_upload_request_spec.rb +12 -0
- data/spec/models/cran_package_upload_spec.rb +24 -0
- data/spec/models/cran_upstream_request_patch_spec.rb +1 -1
- data/spec/models/cran_upstream_request_spec.rb +1 -1
- data/spec/models/cran_upstream_spec.rb +1 -1
- data/spec/models/dart_package_upload_request_spec.rb +12 -0
- data/spec/models/dart_package_upload_spec.rb +24 -0
- data/spec/models/dart_upstream_request_patch_spec.rb +1 -1
- data/spec/models/dart_upstream_request_spec.rb +1 -1
- data/spec/models/dart_upstream_spec.rb +1 -1
- data/spec/models/deb_package_upload_request_spec.rb +12 -0
- data/spec/models/deb_package_upload_spec.rb +24 -0
- data/spec/models/deb_upstream_request_patch_spec.rb +1 -1
- data/spec/models/deb_upstream_request_spec.rb +1 -1
- data/spec/models/deb_upstream_spec.rb +1 -1
- data/spec/models/docker_package_upload_request_spec.rb +12 -0
- data/spec/models/docker_package_upload_spec.rb +24 -0
- data/spec/models/format_support_upstream_spec.rb +6 -0
- data/spec/models/generic_package_upload_request_spec.rb +12 -0
- data/spec/models/generic_package_upload_spec.rb +24 -0
- data/spec/models/generic_upstream_request_patch_spec.rb +1 -1
- data/spec/models/generic_upstream_request_spec.rb +1 -1
- data/spec/models/generic_upstream_spec.rb +1 -1
- data/spec/models/go_package_upload_request_spec.rb +12 -0
- data/spec/models/go_package_upload_spec.rb +24 -0
- data/spec/models/helm_package_upload_request_spec.rb +12 -0
- data/spec/models/helm_package_upload_spec.rb +24 -0
- data/spec/models/helm_upstream_request_patch_spec.rb +1 -1
- data/spec/models/helm_upstream_request_spec.rb +1 -1
- data/spec/models/helm_upstream_spec.rb +1 -1
- data/spec/models/hex_package_upload_request_spec.rb +12 -0
- data/spec/models/hex_package_upload_spec.rb +24 -0
- data/spec/models/hex_upstream_request_patch_spec.rb +1 -1
- data/spec/models/hex_upstream_request_spec.rb +1 -1
- data/spec/models/hex_upstream_spec.rb +1 -1
- data/spec/models/huggingface_package_upload_request_spec.rb +12 -0
- data/spec/models/huggingface_package_upload_spec.rb +24 -0
- data/spec/models/inline_response_200_1_spec.rb +13 -1
- data/spec/models/inline_response_200_3_spec.rb +41 -0
- data/spec/models/inline_response_200_4_spec.rb +41 -0
- data/spec/models/inline_response_200_spec.rb +25 -1
- data/spec/models/luarocks_package_upload_request_spec.rb +12 -0
- data/spec/models/luarocks_package_upload_spec.rb +24 -0
- data/spec/models/maven_package_upload_request_spec.rb +12 -0
- data/spec/models/maven_package_upload_spec.rb +24 -0
- data/spec/models/mcp_package_upload_request_spec.rb +12 -0
- data/spec/models/mcp_package_upload_spec.rb +24 -0
- data/spec/models/nix_package_upload_request_spec.rb +77 -0
- data/spec/models/nix_package_upload_spec.rb +579 -0
- data/spec/models/nix_upstream_request_patch_spec.rb +121 -0
- data/spec/models/nix_upstream_request_spec.rb +121 -0
- data/spec/models/nix_upstream_spec.rb +197 -0
- data/spec/models/npm_package_upload_request_spec.rb +12 -0
- data/spec/models/npm_package_upload_spec.rb +24 -0
- data/spec/models/npm_upstream_request_patch_spec.rb +1 -1
- data/spec/models/npm_upstream_request_spec.rb +1 -1
- data/spec/models/npm_upstream_spec.rb +1 -1
- data/spec/models/nuget_package_upload_request_spec.rb +12 -0
- data/spec/models/nuget_package_upload_spec.rb +24 -0
- data/spec/models/nuget_upstream_request_patch_spec.rb +1 -1
- data/spec/models/nuget_upstream_request_spec.rb +1 -1
- data/spec/models/nuget_upstream_spec.rb +1 -1
- data/spec/models/organization_saml_auth_request_patch_spec.rb +12 -0
- data/spec/models/organization_saml_auth_spec.rb +12 -0
- data/spec/models/organization_usage_spec.rb +59 -0
- data/spec/models/organization_usage_update_request_patch_spec.rb +53 -0
- data/spec/models/organization_usage_update_spec.rb +53 -0
- data/spec/models/p2_package_upload_request_spec.rb +12 -0
- data/spec/models/p2_package_upload_spec.rb +24 -0
- data/spec/models/package_copy_request_spec.rb +12 -0
- data/spec/models/package_copy_spec.rb +24 -0
- data/spec/models/package_detail_spec.rb +597 -0
- data/spec/models/package_license_request_patch_spec.rb +12 -0
- data/spec/models/package_license_spec.rb +12 -0
- data/spec/models/package_move_request_spec.rb +12 -0
- data/spec/models/package_move_spec.rb +24 -0
- data/spec/models/package_quarantine_request_spec.rb +12 -0
- data/spec/models/package_quarantine_spec.rb +24 -0
- data/spec/models/package_resync_spec.rb +24 -0
- data/spec/models/package_spec.rb +24 -0
- data/spec/models/package_tag_request_spec.rb +12 -0
- data/spec/models/package_tag_spec.rb +24 -0
- data/spec/models/package_vulnerability_spec.rb +12 -0
- data/spec/models/python_package_upload_request_spec.rb +12 -0
- data/spec/models/python_package_upload_spec.rb +24 -0
- data/spec/models/python_upstream_request_patch_spec.rb +1 -1
- data/spec/models/python_upstream_request_spec.rb +1 -1
- data/spec/models/python_upstream_spec.rb +1 -1
- data/spec/models/raw_package_upload_request_spec.rb +12 -0
- data/spec/models/raw_package_upload_spec.rb +24 -0
- data/spec/models/recycle_bin_package_spec.rb +12 -0
- data/spec/models/repository_create_spec.rb +6 -0
- data/spec/models/repository_ed25519_key_spec.rb +6 -0
- data/spec/models/repository_spec.rb +6 -0
- data/spec/models/rpm_package_upload_request_spec.rb +12 -0
- data/spec/models/rpm_package_upload_spec.rb +24 -0
- data/spec/models/ruby_package_upload_request_spec.rb +12 -0
- data/spec/models/ruby_package_upload_spec.rb +24 -0
- data/spec/models/swift_package_upload_request_spec.rb +12 -0
- data/spec/models/swift_package_upload_spec.rb +24 -0
- data/spec/models/terraform_package_upload_request_spec.rb +12 -0
- data/spec/models/terraform_package_upload_spec.rb +24 -0
- data/spec/models/vagrant_package_upload_request_spec.rb +12 -0
- data/spec/models/vagrant_package_upload_spec.rb +24 -0
- data/spec/models/vsx_package_upload_request_spec.rb +12 -0
- data/spec/models/vsx_package_upload_spec.rb +24 -0
- data/spec/models/web_osv_severity_counts_spec.rb +77 -0
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/autotest-fsevent-0.3.2/gem_make.out +1 -1
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/bigdecimal-4.1.2/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/bigdecimal-4.1.2/mkmf.log +4 -4
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.17.4/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.17.4/mkmf.log +1 -1
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.7.6/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.7.6/mkmf.log +1 -1
- data/vendor/bundle/ruby/2.6.0/gems/bigdecimal-4.1.2/ext/bigdecimal/Makefile +2 -2
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.17.4/ext/ffi_c/Makefile +2 -2
- data/vendor/bundle/ruby/2.6.0/gems/json-2.7.6/ext/json/ext/generator/Makefile +2 -2
- data/vendor/bundle/ruby/2.6.0/gems/json-2.7.6/ext/json/ext/parser/Makefile +2 -2
- 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 [
|
|
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<(
|
|
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 => '
|
|
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 [
|
|
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<(
|
|
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 => '
|
|
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
|