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
|
@@ -17,6 +17,9 @@ class CranPackageUploadRequest
|
|
|
17
17
|
# Binary package uploads for macOS should specify the architecture they were built for.
|
|
18
18
|
attr_accessor :architecture
|
|
19
19
|
|
|
20
|
+
# Whether the package has been detected as containing malware. Requires Ultra plan.
|
|
21
|
+
attr_accessor :is_malware_detected
|
|
22
|
+
|
|
20
23
|
# The primary file for the package.
|
|
21
24
|
attr_accessor :package_file
|
|
22
25
|
|
|
@@ -29,14 +32,18 @@ class CranPackageUploadRequest
|
|
|
29
32
|
# A comma-separated values list of tags to add to the package.
|
|
30
33
|
attr_accessor :tags
|
|
31
34
|
|
|
35
|
+
attr_accessor :vulnerability_counts
|
|
36
|
+
|
|
32
37
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
33
38
|
def self.attribute_map
|
|
34
39
|
{
|
|
35
40
|
:'architecture' => :'architecture',
|
|
41
|
+
:'is_malware_detected' => :'is_malware_detected',
|
|
36
42
|
:'package_file' => :'package_file',
|
|
37
43
|
:'r_version' => :'r_version',
|
|
38
44
|
:'republish' => :'republish',
|
|
39
|
-
:'tags' => :'tags'
|
|
45
|
+
:'tags' => :'tags',
|
|
46
|
+
:'vulnerability_counts' => :'vulnerability_counts'
|
|
40
47
|
}
|
|
41
48
|
end
|
|
42
49
|
|
|
@@ -44,10 +51,12 @@ class CranPackageUploadRequest
|
|
|
44
51
|
def self.swagger_types
|
|
45
52
|
{
|
|
46
53
|
:'architecture' => :'String',
|
|
54
|
+
:'is_malware_detected' => :'BOOLEAN',
|
|
47
55
|
:'package_file' => :'String',
|
|
48
56
|
:'r_version' => :'String',
|
|
49
57
|
:'republish' => :'BOOLEAN',
|
|
50
|
-
:'tags' => :'String'
|
|
58
|
+
:'tags' => :'String',
|
|
59
|
+
:'vulnerability_counts' => :'WebOSVSeverityCounts'
|
|
51
60
|
}
|
|
52
61
|
end
|
|
53
62
|
|
|
@@ -63,6 +72,10 @@ class CranPackageUploadRequest
|
|
|
63
72
|
self.architecture = attributes[:'architecture']
|
|
64
73
|
end
|
|
65
74
|
|
|
75
|
+
if attributes.has_key?(:'is_malware_detected')
|
|
76
|
+
self.is_malware_detected = attributes[:'is_malware_detected']
|
|
77
|
+
end
|
|
78
|
+
|
|
66
79
|
if attributes.has_key?(:'package_file')
|
|
67
80
|
self.package_file = attributes[:'package_file']
|
|
68
81
|
end
|
|
@@ -78,6 +91,10 @@ class CranPackageUploadRequest
|
|
|
78
91
|
if attributes.has_key?(:'tags')
|
|
79
92
|
self.tags = attributes[:'tags']
|
|
80
93
|
end
|
|
94
|
+
|
|
95
|
+
if attributes.has_key?(:'vulnerability_counts')
|
|
96
|
+
self.vulnerability_counts = attributes[:'vulnerability_counts']
|
|
97
|
+
end
|
|
81
98
|
end
|
|
82
99
|
|
|
83
100
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -104,10 +121,12 @@ class CranPackageUploadRequest
|
|
|
104
121
|
return true if self.equal?(o)
|
|
105
122
|
self.class == o.class &&
|
|
106
123
|
architecture == o.architecture &&
|
|
124
|
+
is_malware_detected == o.is_malware_detected &&
|
|
107
125
|
package_file == o.package_file &&
|
|
108
126
|
r_version == o.r_version &&
|
|
109
127
|
republish == o.republish &&
|
|
110
|
-
tags == o.tags
|
|
128
|
+
tags == o.tags &&
|
|
129
|
+
vulnerability_counts == o.vulnerability_counts
|
|
111
130
|
end
|
|
112
131
|
|
|
113
132
|
# @see the `==` method
|
|
@@ -119,7 +138,7 @@ class CranPackageUploadRequest
|
|
|
119
138
|
# Calculates hash code according to all attributes.
|
|
120
139
|
# @return [Fixnum] Hash code
|
|
121
140
|
def hash
|
|
122
|
-
[architecture, package_file, r_version, republish, tags].hash
|
|
141
|
+
[architecture, is_malware_detected, package_file, r_version, republish, tags, vulnerability_counts].hash
|
|
123
142
|
end
|
|
124
143
|
|
|
125
144
|
# Builds the object from hash
|
|
@@ -307,7 +307,7 @@ class CranUpstream
|
|
|
307
307
|
return false unless auth_mode_validator.valid?(@auth_mode)
|
|
308
308
|
disable_reason_validator = EnumAttributeValidator.new('String', ['N/A', 'Upstream points to its own repository', 'Missing upstream source', 'RSA key did not verify the upstream\'s APKINDEX signature', 'Upstream was disabled by request of user'])
|
|
309
309
|
return false unless disable_reason_validator.valid?(@disable_reason)
|
|
310
|
-
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
310
|
+
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
311
311
|
return false unless mode_validator.valid?(@mode)
|
|
312
312
|
return false if @name.nil?
|
|
313
313
|
return false if @upstream_url.nil?
|
|
@@ -337,7 +337,7 @@ class CranUpstream
|
|
|
337
337
|
# Custom attribute writer method checking allowed values (enum).
|
|
338
338
|
# @param [Object] mode Object to be assigned
|
|
339
339
|
def mode=(mode)
|
|
340
|
-
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
340
|
+
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
341
341
|
unless validator.valid?(mode)
|
|
342
342
|
fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.'
|
|
343
343
|
end
|
|
@@ -198,7 +198,7 @@ class CranUpstreamRequest
|
|
|
198
198
|
def valid?
|
|
199
199
|
auth_mode_validator = EnumAttributeValidator.new('String', ['None', 'Username and Password'])
|
|
200
200
|
return false unless auth_mode_validator.valid?(@auth_mode)
|
|
201
|
-
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
201
|
+
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
202
202
|
return false unless mode_validator.valid?(@mode)
|
|
203
203
|
return false if @name.nil?
|
|
204
204
|
return false if @upstream_url.nil?
|
|
@@ -218,7 +218,7 @@ class CranUpstreamRequest
|
|
|
218
218
|
# Custom attribute writer method checking allowed values (enum).
|
|
219
219
|
# @param [Object] mode Object to be assigned
|
|
220
220
|
def mode=(mode)
|
|
221
|
-
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
221
|
+
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
222
222
|
unless validator.valid?(mode)
|
|
223
223
|
fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.'
|
|
224
224
|
end
|
|
@@ -190,7 +190,7 @@ class CranUpstreamRequestPatch
|
|
|
190
190
|
def valid?
|
|
191
191
|
auth_mode_validator = EnumAttributeValidator.new('String', ['None', 'Username and Password'])
|
|
192
192
|
return false unless auth_mode_validator.valid?(@auth_mode)
|
|
193
|
-
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
193
|
+
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
194
194
|
return false unless mode_validator.valid?(@mode)
|
|
195
195
|
true
|
|
196
196
|
end
|
|
@@ -208,7 +208,7 @@ class CranUpstreamRequestPatch
|
|
|
208
208
|
# Custom attribute writer method checking allowed values (enum).
|
|
209
209
|
# @param [Object] mode Object to be assigned
|
|
210
210
|
def mode=(mode)
|
|
211
|
-
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
211
|
+
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
212
212
|
unless validator.valid?(mode)
|
|
213
213
|
fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.'
|
|
214
214
|
end
|
|
@@ -78,6 +78,9 @@ class DartPackageUpload
|
|
|
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 DartPackageUpload
|
|
|
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 DartPackageUpload
|
|
|
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 DartPackageUpload
|
|
|
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 DartPackageUpload
|
|
|
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 DartPackageUpload
|
|
|
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 DartPackageUpload
|
|
|
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 DartPackageUpload
|
|
|
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 DartPackageUpload
|
|
|
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 DartPackageUpload
|
|
|
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 DartPackageUpload
|
|
|
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 DartPackageUpload
|
|
|
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 DartPackageUpload
|
|
|
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 DartPackageUpload
|
|
|
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 DartPackageUpload
|
|
|
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 DartPackageUploadRequest
|
|
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 DartPackageUploadRequest
|
|
|
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 DartPackageUploadRequest
|
|
|
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 DartPackageUploadRequest
|
|
|
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 DartPackageUploadRequest
|
|
|
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 DartPackageUploadRequest
|
|
|
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
|
|
@@ -307,7 +307,7 @@ class DartUpstream
|
|
|
307
307
|
return false unless auth_mode_validator.valid?(@auth_mode)
|
|
308
308
|
disable_reason_validator = EnumAttributeValidator.new('String', ['N/A', 'Upstream points to its own repository', 'Missing upstream source', 'RSA key did not verify the upstream\'s APKINDEX signature', 'Upstream was disabled by request of user'])
|
|
309
309
|
return false unless disable_reason_validator.valid?(@disable_reason)
|
|
310
|
-
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
310
|
+
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
311
311
|
return false unless mode_validator.valid?(@mode)
|
|
312
312
|
return false if @name.nil?
|
|
313
313
|
return false if @upstream_url.nil?
|
|
@@ -337,7 +337,7 @@ class DartUpstream
|
|
|
337
337
|
# Custom attribute writer method checking allowed values (enum).
|
|
338
338
|
# @param [Object] mode Object to be assigned
|
|
339
339
|
def mode=(mode)
|
|
340
|
-
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
340
|
+
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
341
341
|
unless validator.valid?(mode)
|
|
342
342
|
fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.'
|
|
343
343
|
end
|
|
@@ -198,7 +198,7 @@ class DartUpstreamRequest
|
|
|
198
198
|
def valid?
|
|
199
199
|
auth_mode_validator = EnumAttributeValidator.new('String', ['None', 'Username and Password'])
|
|
200
200
|
return false unless auth_mode_validator.valid?(@auth_mode)
|
|
201
|
-
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
201
|
+
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
202
202
|
return false unless mode_validator.valid?(@mode)
|
|
203
203
|
return false if @name.nil?
|
|
204
204
|
return false if @upstream_url.nil?
|
|
@@ -218,7 +218,7 @@ class DartUpstreamRequest
|
|
|
218
218
|
# Custom attribute writer method checking allowed values (enum).
|
|
219
219
|
# @param [Object] mode Object to be assigned
|
|
220
220
|
def mode=(mode)
|
|
221
|
-
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
221
|
+
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
222
222
|
unless validator.valid?(mode)
|
|
223
223
|
fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.'
|
|
224
224
|
end
|
|
@@ -190,7 +190,7 @@ class DartUpstreamRequestPatch
|
|
|
190
190
|
def valid?
|
|
191
191
|
auth_mode_validator = EnumAttributeValidator.new('String', ['None', 'Username and Password'])
|
|
192
192
|
return false unless auth_mode_validator.valid?(@auth_mode)
|
|
193
|
-
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
193
|
+
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
194
194
|
return false unless mode_validator.valid?(@mode)
|
|
195
195
|
true
|
|
196
196
|
end
|
|
@@ -208,7 +208,7 @@ class DartUpstreamRequestPatch
|
|
|
208
208
|
# Custom attribute writer method checking allowed values (enum).
|
|
209
209
|
# @param [Object] mode Object to be assigned
|
|
210
210
|
def mode=(mode)
|
|
211
|
-
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
211
|
+
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
212
212
|
unless validator.valid?(mode)
|
|
213
213
|
fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.'
|
|
214
214
|
end
|
|
@@ -78,6 +78,9 @@ class DebPackageUpload
|
|
|
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 DebPackageUpload
|
|
|
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 DebPackageUpload
|
|
|
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 DebPackageUpload
|
|
|
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 DebPackageUpload
|
|
|
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 DebPackageUpload
|
|
|
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 DebPackageUpload
|
|
|
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 DebPackageUpload
|
|
|
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 DebPackageUpload
|
|
|
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 DebPackageUpload
|
|
|
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 DebPackageUpload
|
|
|
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 DebPackageUpload
|
|
|
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 DebPackageUpload
|
|
|
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 DebPackageUpload
|
|
|
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 DebPackageUpload
|
|
|
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
|