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
|
@@ -23,6 +23,9 @@ class DebPackageUploadRequest
|
|
|
23
23
|
# The distribution to store the package for.
|
|
24
24
|
attr_accessor :distribution
|
|
25
25
|
|
|
26
|
+
# Whether the package has been detected as containing malware. Requires Ultra plan.
|
|
27
|
+
attr_accessor :is_malware_detected
|
|
28
|
+
|
|
26
29
|
# The primary file for the package.
|
|
27
30
|
attr_accessor :package_file
|
|
28
31
|
|
|
@@ -35,16 +38,20 @@ class DebPackageUploadRequest
|
|
|
35
38
|
# A comma-separated values list of tags to add to the package.
|
|
36
39
|
attr_accessor :tags
|
|
37
40
|
|
|
41
|
+
attr_accessor :vulnerability_counts
|
|
42
|
+
|
|
38
43
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
39
44
|
def self.attribute_map
|
|
40
45
|
{
|
|
41
46
|
:'changes_file' => :'changes_file',
|
|
42
47
|
:'component' => :'component',
|
|
43
48
|
:'distribution' => :'distribution',
|
|
49
|
+
:'is_malware_detected' => :'is_malware_detected',
|
|
44
50
|
:'package_file' => :'package_file',
|
|
45
51
|
:'republish' => :'republish',
|
|
46
52
|
:'sources_file' => :'sources_file',
|
|
47
|
-
:'tags' => :'tags'
|
|
53
|
+
:'tags' => :'tags',
|
|
54
|
+
:'vulnerability_counts' => :'vulnerability_counts'
|
|
48
55
|
}
|
|
49
56
|
end
|
|
50
57
|
|
|
@@ -54,10 +61,12 @@ class DebPackageUploadRequest
|
|
|
54
61
|
:'changes_file' => :'String',
|
|
55
62
|
:'component' => :'String',
|
|
56
63
|
:'distribution' => :'String',
|
|
64
|
+
:'is_malware_detected' => :'BOOLEAN',
|
|
57
65
|
:'package_file' => :'String',
|
|
58
66
|
:'republish' => :'BOOLEAN',
|
|
59
67
|
:'sources_file' => :'String',
|
|
60
|
-
:'tags' => :'String'
|
|
68
|
+
:'tags' => :'String',
|
|
69
|
+
:'vulnerability_counts' => :'WebOSVSeverityCounts'
|
|
61
70
|
}
|
|
62
71
|
end
|
|
63
72
|
|
|
@@ -83,6 +92,10 @@ class DebPackageUploadRequest
|
|
|
83
92
|
self.distribution = attributes[:'distribution']
|
|
84
93
|
end
|
|
85
94
|
|
|
95
|
+
if attributes.has_key?(:'is_malware_detected')
|
|
96
|
+
self.is_malware_detected = attributes[:'is_malware_detected']
|
|
97
|
+
end
|
|
98
|
+
|
|
86
99
|
if attributes.has_key?(:'package_file')
|
|
87
100
|
self.package_file = attributes[:'package_file']
|
|
88
101
|
end
|
|
@@ -98,6 +111,10 @@ class DebPackageUploadRequest
|
|
|
98
111
|
if attributes.has_key?(:'tags')
|
|
99
112
|
self.tags = attributes[:'tags']
|
|
100
113
|
end
|
|
114
|
+
|
|
115
|
+
if attributes.has_key?(:'vulnerability_counts')
|
|
116
|
+
self.vulnerability_counts = attributes[:'vulnerability_counts']
|
|
117
|
+
end
|
|
101
118
|
end
|
|
102
119
|
|
|
103
120
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -131,10 +148,12 @@ class DebPackageUploadRequest
|
|
|
131
148
|
changes_file == o.changes_file &&
|
|
132
149
|
component == o.component &&
|
|
133
150
|
distribution == o.distribution &&
|
|
151
|
+
is_malware_detected == o.is_malware_detected &&
|
|
134
152
|
package_file == o.package_file &&
|
|
135
153
|
republish == o.republish &&
|
|
136
154
|
sources_file == o.sources_file &&
|
|
137
|
-
tags == o.tags
|
|
155
|
+
tags == o.tags &&
|
|
156
|
+
vulnerability_counts == o.vulnerability_counts
|
|
138
157
|
end
|
|
139
158
|
|
|
140
159
|
# @see the `==` method
|
|
@@ -146,7 +165,7 @@ class DebPackageUploadRequest
|
|
|
146
165
|
# Calculates hash code according to all attributes.
|
|
147
166
|
# @return [Fixnum] Hash code
|
|
148
167
|
def hash
|
|
149
|
-
[changes_file, component, distribution, package_file, republish, sources_file, tags].hash
|
|
168
|
+
[changes_file, component, distribution, is_malware_detected, package_file, republish, sources_file, tags, vulnerability_counts].hash
|
|
150
169
|
end
|
|
151
170
|
|
|
152
171
|
# Builds the object from hash
|
|
@@ -400,7 +400,7 @@ class DebUpstream
|
|
|
400
400
|
return false if @distro_versions.nil?
|
|
401
401
|
gpg_verification_validator = EnumAttributeValidator.new('String', ['Allow All', 'Warn on Invalid', 'Reject Invalid'])
|
|
402
402
|
return false unless gpg_verification_validator.valid?(@gpg_verification)
|
|
403
|
-
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
403
|
+
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
404
404
|
return false unless mode_validator.valid?(@mode)
|
|
405
405
|
return false if @name.nil?
|
|
406
406
|
return false if @upstream_url.nil?
|
|
@@ -442,7 +442,7 @@ class DebUpstream
|
|
|
442
442
|
# Custom attribute writer method checking allowed values (enum).
|
|
443
443
|
# @param [Object] mode Object to be assigned
|
|
444
444
|
def mode=(mode)
|
|
445
|
-
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
445
|
+
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
446
446
|
unless validator.valid?(mode)
|
|
447
447
|
fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.'
|
|
448
448
|
end
|
|
@@ -272,7 +272,7 @@ class DebUpstreamRequest
|
|
|
272
272
|
return false if @distro_versions.nil?
|
|
273
273
|
gpg_verification_validator = EnumAttributeValidator.new('String', ['Allow All', 'Warn on Invalid', 'Reject Invalid'])
|
|
274
274
|
return false unless gpg_verification_validator.valid?(@gpg_verification)
|
|
275
|
-
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
275
|
+
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
276
276
|
return false unless mode_validator.valid?(@mode)
|
|
277
277
|
return false if @name.nil?
|
|
278
278
|
return false if @upstream_url.nil?
|
|
@@ -302,7 +302,7 @@ class DebUpstreamRequest
|
|
|
302
302
|
# Custom attribute writer method checking allowed values (enum).
|
|
303
303
|
# @param [Object] mode Object to be assigned
|
|
304
304
|
def mode=(mode)
|
|
305
|
-
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
305
|
+
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
306
306
|
unless validator.valid?(mode)
|
|
307
307
|
fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.'
|
|
308
308
|
end
|
|
@@ -259,7 +259,7 @@ class DebUpstreamRequestPatch
|
|
|
259
259
|
return false unless auth_mode_validator.valid?(@auth_mode)
|
|
260
260
|
gpg_verification_validator = EnumAttributeValidator.new('String', ['Allow All', 'Warn on Invalid', 'Reject Invalid'])
|
|
261
261
|
return false unless gpg_verification_validator.valid?(@gpg_verification)
|
|
262
|
-
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
262
|
+
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
263
263
|
return false unless mode_validator.valid?(@mode)
|
|
264
264
|
true
|
|
265
265
|
end
|
|
@@ -287,7 +287,7 @@ class DebUpstreamRequestPatch
|
|
|
287
287
|
# Custom attribute writer method checking allowed values (enum).
|
|
288
288
|
# @param [Object] mode Object to be assigned
|
|
289
289
|
def mode=(mode)
|
|
290
|
-
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
290
|
+
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
291
291
|
unless validator.valid?(mode)
|
|
292
292
|
fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.'
|
|
293
293
|
end
|
|
@@ -78,6 +78,9 @@ class DockerPackageUpload
|
|
|
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 DockerPackageUpload
|
|
|
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 DockerPackageUpload
|
|
|
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 DockerPackageUpload
|
|
|
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 DockerPackageUpload
|
|
|
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 DockerPackageUpload
|
|
|
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 DockerPackageUpload
|
|
|
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 DockerPackageUpload
|
|
|
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 DockerPackageUpload
|
|
|
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 DockerPackageUpload
|
|
|
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 DockerPackageUpload
|
|
|
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 DockerPackageUpload
|
|
|
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 DockerPackageUpload
|
|
|
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 DockerPackageUpload
|
|
|
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 DockerPackageUpload
|
|
|
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
|
|
@@ -14,6 +14,9 @@ require 'date'
|
|
|
14
14
|
|
|
15
15
|
module CloudsmithApi
|
|
16
16
|
class DockerPackageUploadRequest
|
|
17
|
+
# Whether the package has been detected as containing malware. Requires Ultra plan.
|
|
18
|
+
attr_accessor :is_malware_detected
|
|
19
|
+
|
|
17
20
|
# The primary file for the package.
|
|
18
21
|
attr_accessor :package_file
|
|
19
22
|
|
|
@@ -23,21 +26,27 @@ class DockerPackageUploadRequest
|
|
|
23
26
|
# A comma-separated values list of tags to add to the package.
|
|
24
27
|
attr_accessor :tags
|
|
25
28
|
|
|
29
|
+
attr_accessor :vulnerability_counts
|
|
30
|
+
|
|
26
31
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
27
32
|
def self.attribute_map
|
|
28
33
|
{
|
|
34
|
+
:'is_malware_detected' => :'is_malware_detected',
|
|
29
35
|
:'package_file' => :'package_file',
|
|
30
36
|
:'republish' => :'republish',
|
|
31
|
-
:'tags' => :'tags'
|
|
37
|
+
:'tags' => :'tags',
|
|
38
|
+
:'vulnerability_counts' => :'vulnerability_counts'
|
|
32
39
|
}
|
|
33
40
|
end
|
|
34
41
|
|
|
35
42
|
# Attribute type mapping.
|
|
36
43
|
def self.swagger_types
|
|
37
44
|
{
|
|
45
|
+
:'is_malware_detected' => :'BOOLEAN',
|
|
38
46
|
:'package_file' => :'String',
|
|
39
47
|
:'republish' => :'BOOLEAN',
|
|
40
|
-
:'tags' => :'String'
|
|
48
|
+
:'tags' => :'String',
|
|
49
|
+
:'vulnerability_counts' => :'WebOSVSeverityCounts'
|
|
41
50
|
}
|
|
42
51
|
end
|
|
43
52
|
|
|
@@ -49,6 +58,10 @@ class DockerPackageUploadRequest
|
|
|
49
58
|
# convert string to symbol for hash key
|
|
50
59
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
51
60
|
|
|
61
|
+
if attributes.has_key?(:'is_malware_detected')
|
|
62
|
+
self.is_malware_detected = attributes[:'is_malware_detected']
|
|
63
|
+
end
|
|
64
|
+
|
|
52
65
|
if attributes.has_key?(:'package_file')
|
|
53
66
|
self.package_file = attributes[:'package_file']
|
|
54
67
|
end
|
|
@@ -60,6 +73,10 @@ class DockerPackageUploadRequest
|
|
|
60
73
|
if attributes.has_key?(:'tags')
|
|
61
74
|
self.tags = attributes[:'tags']
|
|
62
75
|
end
|
|
76
|
+
|
|
77
|
+
if attributes.has_key?(:'vulnerability_counts')
|
|
78
|
+
self.vulnerability_counts = attributes[:'vulnerability_counts']
|
|
79
|
+
end
|
|
63
80
|
end
|
|
64
81
|
|
|
65
82
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -85,9 +102,11 @@ class DockerPackageUploadRequest
|
|
|
85
102
|
def ==(o)
|
|
86
103
|
return true if self.equal?(o)
|
|
87
104
|
self.class == o.class &&
|
|
105
|
+
is_malware_detected == o.is_malware_detected &&
|
|
88
106
|
package_file == o.package_file &&
|
|
89
107
|
republish == o.republish &&
|
|
90
|
-
tags == o.tags
|
|
108
|
+
tags == o.tags &&
|
|
109
|
+
vulnerability_counts == o.vulnerability_counts
|
|
91
110
|
end
|
|
92
111
|
|
|
93
112
|
# @see the `==` method
|
|
@@ -99,7 +118,7 @@ class DockerPackageUploadRequest
|
|
|
99
118
|
# Calculates hash code according to all attributes.
|
|
100
119
|
# @return [Fixnum] Hash code
|
|
101
120
|
def hash
|
|
102
|
-
[package_file, republish, tags].hash
|
|
121
|
+
[is_malware_detected, package_file, republish, tags, vulnerability_counts].hash
|
|
103
122
|
end
|
|
104
123
|
|
|
105
124
|
# Builds the object from hash
|
|
@@ -18,6 +18,9 @@ class FormatSupportUpstream
|
|
|
18
18
|
# The authentication modes supported by the upstream format
|
|
19
19
|
attr_accessor :auth_modes
|
|
20
20
|
|
|
21
|
+
# If true the upstream format supports cache-only mode.
|
|
22
|
+
attr_accessor :cache_only
|
|
23
|
+
|
|
21
24
|
# If true the upstream format supports caching
|
|
22
25
|
attr_accessor :caching
|
|
23
26
|
|
|
@@ -62,6 +65,7 @@ class FormatSupportUpstream
|
|
|
62
65
|
def self.attribute_map
|
|
63
66
|
{
|
|
64
67
|
:'auth_modes' => :'auth_modes',
|
|
68
|
+
:'cache_only' => :'cache_only',
|
|
65
69
|
:'caching' => :'caching',
|
|
66
70
|
:'indexing' => :'indexing',
|
|
67
71
|
:'indexing_behavior' => :'indexing_behavior',
|
|
@@ -75,6 +79,7 @@ class FormatSupportUpstream
|
|
|
75
79
|
def self.swagger_types
|
|
76
80
|
{
|
|
77
81
|
:'auth_modes' => :'Array<String>',
|
|
82
|
+
:'cache_only' => :'BOOLEAN',
|
|
78
83
|
:'caching' => :'BOOLEAN',
|
|
79
84
|
:'indexing' => :'BOOLEAN',
|
|
80
85
|
:'indexing_behavior' => :'String',
|
|
@@ -98,6 +103,10 @@ class FormatSupportUpstream
|
|
|
98
103
|
end
|
|
99
104
|
end
|
|
100
105
|
|
|
106
|
+
if attributes.has_key?(:'cache_only')
|
|
107
|
+
self.cache_only = attributes[:'cache_only']
|
|
108
|
+
end
|
|
109
|
+
|
|
101
110
|
if attributes.has_key?(:'caching')
|
|
102
111
|
self.caching = attributes[:'caching']
|
|
103
112
|
end
|
|
@@ -135,6 +144,10 @@ class FormatSupportUpstream
|
|
|
135
144
|
invalid_properties.push('invalid value for "auth_modes", auth_modes cannot be nil.')
|
|
136
145
|
end
|
|
137
146
|
|
|
147
|
+
if @cache_only.nil?
|
|
148
|
+
invalid_properties.push('invalid value for "cache_only", cache_only cannot be nil.')
|
|
149
|
+
end
|
|
150
|
+
|
|
138
151
|
if @caching.nil?
|
|
139
152
|
invalid_properties.push('invalid value for "caching", caching cannot be nil.')
|
|
140
153
|
end
|
|
@@ -158,6 +171,7 @@ class FormatSupportUpstream
|
|
|
158
171
|
# @return true if the model is valid
|
|
159
172
|
def valid?
|
|
160
173
|
return false if @auth_modes.nil?
|
|
174
|
+
return false if @cache_only.nil?
|
|
161
175
|
return false if @caching.nil?
|
|
162
176
|
return false if @indexing.nil?
|
|
163
177
|
indexing_behavior_validator = EnumAttributeValidator.new('String', ['Unsupported', 'Ahead-of-time (static) indexing', 'Just-in-time (dynamic) indexing'])
|
|
@@ -195,6 +209,7 @@ class FormatSupportUpstream
|
|
|
195
209
|
return true if self.equal?(o)
|
|
196
210
|
self.class == o.class &&
|
|
197
211
|
auth_modes == o.auth_modes &&
|
|
212
|
+
cache_only == o.cache_only &&
|
|
198
213
|
caching == o.caching &&
|
|
199
214
|
indexing == o.indexing &&
|
|
200
215
|
indexing_behavior == o.indexing_behavior &&
|
|
@@ -212,7 +227,7 @@ class FormatSupportUpstream
|
|
|
212
227
|
# Calculates hash code according to all attributes.
|
|
213
228
|
# @return [Fixnum] Hash code
|
|
214
229
|
def hash
|
|
215
|
-
[auth_modes, caching, indexing, indexing_behavior, proxying, signature_verification, trust].hash
|
|
230
|
+
[auth_modes, cache_only, caching, indexing, indexing_behavior, proxying, signature_verification, trust].hash
|
|
216
231
|
end
|
|
217
232
|
|
|
218
233
|
# Builds the object from hash
|
|
@@ -78,6 +78,9 @@ class GenericPackageUpload
|
|
|
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 GenericPackageUpload
|
|
|
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 GenericPackageUpload
|
|
|
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 GenericPackageUpload
|
|
|
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 GenericPackageUpload
|
|
|
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 GenericPackageUpload
|
|
|
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 GenericPackageUpload
|
|
|
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 GenericPackageUpload
|
|
|
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 GenericPackageUpload
|
|
|
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 GenericPackageUpload
|
|
|
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 GenericPackageUpload
|
|
|
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 GenericPackageUpload
|
|
|
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 GenericPackageUpload
|
|
|
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 GenericPackageUpload
|
|
|
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 GenericPackageUpload
|
|
|
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
|