From 05736c998a4eeb36730b1aa6bebb4ae6766e7953 Mon Sep 17 00:00:00 2001 From: apoclyps <1443700+apoclyps@users.noreply.github.com> Date: Wed, 19 Aug 2026 10:34:42 +0000 Subject: [PATCH] feat: update bindings to v2.0.30 (API v1.1350.3) --- bindings/java/src/README.md | 28 +- bindings/java/src/build.gradle | 2 +- bindings/java/src/build.json | 2 +- bindings/java/src/build.sbt | 2 +- bindings/java/src/docs/AlpinePackageUpload.md | 4 + .../src/docs/AlpinePackageUploadRequest.md | 2 + bindings/java/src/docs/CargoPackageUpload.md | 4 + .../src/docs/CargoPackageUploadRequest.md | 2 + .../java/src/docs/CocoapodsPackageUpload.md | 4 + .../src/docs/CocoapodsPackageUploadRequest.md | 2 + .../java/src/docs/ComposerPackageUpload.md | 4 + .../src/docs/ComposerPackageUploadRequest.md | 2 + bindings/java/src/docs/ConanPackageUpload.md | 4 + .../src/docs/ConanPackageUploadRequest.md | 2 + bindings/java/src/docs/CondaPackageUpload.md | 4 + .../src/docs/CondaPackageUploadRequest.md | 2 + bindings/java/src/docs/CranPackageUpload.md | 4 + .../java/src/docs/CranPackageUploadRequest.md | 2 + bindings/java/src/docs/DartPackageUpload.md | 4 + .../java/src/docs/DartPackageUploadRequest.md | 2 + bindings/java/src/docs/DebPackageUpload.md | 4 + .../java/src/docs/DebPackageUploadRequest.md | 2 + bindings/java/src/docs/DockerPackageUpload.md | 4 + .../src/docs/DockerPackageUploadRequest.md | 2 + .../java/src/docs/GenericPackageUpload.md | 4 + .../src/docs/GenericPackageUploadRequest.md | 2 + bindings/java/src/docs/GoPackageUpload.md | 4 + .../java/src/docs/GoPackageUploadRequest.md | 2 + bindings/java/src/docs/HelmPackageUpload.md | 4 + .../java/src/docs/HelmPackageUploadRequest.md | 2 + bindings/java/src/docs/HexPackageUpload.md | 4 + .../java/src/docs/HexPackageUploadRequest.md | 2 + .../java/src/docs/HuggingfacePackageUpload.md | 4 + .../docs/HuggingfacePackageUploadRequest.md | 2 + bindings/java/src/docs/InlineResponse200.md | 6 +- bindings/java/src/docs/InlineResponse2001.md | 4 +- bindings/java/src/docs/InlineResponse2002.md | 2 +- bindings/java/src/docs/InlineResponse2003.md | 10 + bindings/java/src/docs/InlineResponse2004.md | 10 + .../java/src/docs/LuarocksPackageUpload.md | 4 + .../src/docs/LuarocksPackageUploadRequest.md | 2 + bindings/java/src/docs/MavenPackageUpload.md | 4 + .../src/docs/MavenPackageUploadRequest.md | 2 + bindings/java/src/docs/McpPackageUpload.md | 4 + .../java/src/docs/McpPackageUploadRequest.md | 2 + bindings/java/src/docs/ModelPackage.md | 4 + bindings/java/src/docs/NixPackageUpload.md | 113 + .../java/src/docs/NixPackageUploadRequest.md | 16 + bindings/java/src/docs/NixUpstream.md | 61 + bindings/java/src/docs/NixUpstreamRequest.md | 38 + .../java/src/docs/NixUpstreamRequestPatch.md | 38 + bindings/java/src/docs/NpmPackageUpload.md | 4 + .../java/src/docs/NpmPackageUploadRequest.md | 2 + bindings/java/src/docs/NugetPackageUpload.md | 4 + .../src/docs/NugetPackageUploadRequest.md | 2 + bindings/java/src/docs/OrganizationUsage.md | 13 + .../java/src/docs/OrganizationUsageUpdate.md | 12 + .../OrganizationUsageUpdateRequestPatch.md | 12 + bindings/java/src/docs/OrgsApi.md | 124 + bindings/java/src/docs/P2PackageUpload.md | 4 + .../java/src/docs/P2PackageUploadRequest.md | 2 + bindings/java/src/docs/PackageCopy.md | 4 + bindings/java/src/docs/PackageCopyRequest.md | 2 + bindings/java/src/docs/PackageDetail.md | 116 + bindings/java/src/docs/PackageLicense.md | 2 + .../src/docs/PackageLicenseRequestPatch.md | 4 +- bindings/java/src/docs/PackageMove.md | 4 + bindings/java/src/docs/PackageMoveRequest.md | 2 + bindings/java/src/docs/PackageQuarantine.md | 4 + .../java/src/docs/PackageQuarantineRequest.md | 2 + bindings/java/src/docs/PackageResync.md | 4 + bindings/java/src/docs/PackageTag.md | 4 + bindings/java/src/docs/PackageTagRequest.md | 2 + .../java/src/docs/PackageVulnerability.md | 2 + bindings/java/src/docs/PackagesApi.md | 141 +- bindings/java/src/docs/PythonPackageUpload.md | 4 + .../src/docs/PythonPackageUploadRequest.md | 2 + bindings/java/src/docs/RawPackageUpload.md | 4 + .../java/src/docs/RawPackageUploadRequest.md | 2 + bindings/java/src/docs/RecycleBinPackage.md | 2 + bindings/java/src/docs/ReposApi.md | 401 ++- bindings/java/src/docs/RpmPackageUpload.md | 4 + .../java/src/docs/RpmPackageUploadRequest.md | 2 + bindings/java/src/docs/RubyPackageUpload.md | 4 + .../java/src/docs/RubyPackageUploadRequest.md | 2 + bindings/java/src/docs/SwiftPackageUpload.md | 4 + .../src/docs/SwiftPackageUploadRequest.md | 2 + .../java/src/docs/TerraformPackageUpload.md | 4 + .../src/docs/TerraformPackageUploadRequest.md | 2 + bindings/java/src/docs/UserApi.md | 6 +- .../java/src/docs/VagrantPackageUpload.md | 4 + .../src/docs/VagrantPackageUploadRequest.md | 2 + bindings/java/src/docs/VsxPackageUpload.md | 4 + .../java/src/docs/VsxPackageUploadRequest.md | 2 + .../java/src/docs/WebOSVSeverityCounts.md | 16 + bindings/java/src/pom.xml | 2 +- .../java/io/cloudsmith/api/ApiClient.java | 2 +- .../src/main/java/io/cloudsmith/api/JSON.java | 12 + .../java/io/cloudsmith/api/apis/OrgsApi.java | 287 ++ .../io/cloudsmith/api/apis/PackagesApi.java | 331 ++- .../java/io/cloudsmith/api/apis/ReposApi.java | 931 +++++- .../java/io/cloudsmith/api/apis/UserApi.java | 18 +- .../api/models/AlpinePackageUpload.java | 70 +- .../models/AlpinePackageUploadRequest.java | 43 +- .../api/models/CargoPackageUpload.java | 70 +- .../api/models/CargoPackageUploadRequest.java | 45 +- .../api/models/CocoapodsPackageUpload.java | 70 +- .../models/CocoapodsPackageUploadRequest.java | 45 +- .../api/models/ComposerPackageUpload.java | 70 +- .../models/ComposerPackageUploadRequest.java | 45 +- .../api/models/ConanPackageUpload.java | 70 +- .../api/models/ConanPackageUploadRequest.java | 43 +- .../api/models/CondaPackageUpload.java | 70 +- .../api/models/CondaPackageUploadRequest.java | 45 +- .../api/models/CranPackageUpload.java | 70 +- .../api/models/CranPackageUploadRequest.java | 43 +- .../api/models/DartPackageUpload.java | 70 +- .../api/models/DartPackageUploadRequest.java | 45 +- .../api/models/DebPackageUpload.java | 70 +- .../api/models/DebPackageUploadRequest.java | 43 +- .../api/models/DockerPackageUpload.java | 70 +- .../models/DockerPackageUploadRequest.java | 45 +- .../api/models/GenericPackageUpload.java | 70 +- .../models/GenericPackageUploadRequest.java | 43 +- .../api/models/GoPackageUpload.java | 70 +- .../api/models/GoPackageUploadRequest.java | 45 +- .../api/models/HelmPackageUpload.java | 70 +- .../api/models/HelmPackageUploadRequest.java | 45 +- .../api/models/HexPackageUpload.java | 70 +- .../api/models/HexPackageUploadRequest.java | 45 +- .../api/models/HuggingfacePackageUpload.java | 70 +- .../HuggingfacePackageUploadRequest.java | 45 +- .../api/models/InlineResponse200.java | 124 +- .../api/models/InlineResponse2001.java | 78 +- .../api/models/InlineResponse2002.java | 12 +- .../api/models/InlineResponse2003.java | 109 + .../api/models/InlineResponse2004.java | 109 + .../api/models/LuarocksPackageUpload.java | 70 +- .../models/LuarocksPackageUploadRequest.java | 45 +- .../api/models/MavenPackageUpload.java | 70 +- .../api/models/MavenPackageUploadRequest.java | 43 +- .../api/models/McpPackageUpload.java | 70 +- .../api/models/McpPackageUploadRequest.java | 45 +- .../cloudsmith/api/models/ModelPackage.java | 70 +- .../api/models/NixPackageUpload.java | 1475 +++++++++ .../api/models/NixPackageUploadRequest.java | 231 ++ .../io/cloudsmith/api/models/NixUpstream.java | 697 +++++ .../api/models/NixUpstreamRequest.java | 473 +++ .../api/models/NixUpstreamRequestPatch.java | 471 +++ .../api/models/NpmPackageUpload.java | 70 +- .../api/models/NpmPackageUploadRequest.java | 45 +- .../api/models/NugetPackageUpload.java | 70 +- .../api/models/NugetPackageUploadRequest.java | 45 +- .../api/models/OrganizationUsage.java | 132 + .../api/models/OrganizationUsageUpdate.java | 147 + .../OrganizationUsageUpdateRequestPatch.java | 147 + .../api/models/P2PackageUpload.java | 70 +- .../api/models/P2PackageUploadRequest.java | 45 +- .../io/cloudsmith/api/models/PackageCopy.java | 70 +- .../api/models/PackageCopyRequest.java | 43 +- .../cloudsmith/api/models/PackageDetail.java | 1518 ++++++++++ .../api/models/PackageFileUploadRequest.java | 2 +- .../cloudsmith/api/models/PackageLicense.java | 45 +- .../models/PackageLicenseRequestPatch.java | 46 +- .../io/cloudsmith/api/models/PackageMove.java | 70 +- .../api/models/PackageMoveRequest.java | 43 +- .../api/models/PackageQuarantine.java | 70 +- .../api/models/PackageQuarantineRequest.java | 45 +- .../cloudsmith/api/models/PackageResync.java | 70 +- .../io/cloudsmith/api/models/PackageTag.java | 70 +- .../api/models/PackageTagRequest.java | 43 +- .../api/models/PackageVulnerability.java | 43 +- .../api/models/PythonPackageUpload.java | 70 +- .../models/PythonPackageUploadRequest.java | 45 +- .../api/models/RawPackageUpload.java | 70 +- .../api/models/RawPackageUploadRequest.java | 43 +- .../api/models/RecycleBinPackage.java | 43 +- .../api/models/RpmPackageUpload.java | 70 +- .../api/models/RpmPackageUploadRequest.java | 43 +- .../api/models/RubyPackageUpload.java | 70 +- .../api/models/RubyPackageUploadRequest.java | 45 +- .../api/models/SwiftPackageUpload.java | 70 +- .../api/models/SwiftPackageUploadRequest.java | 43 +- .../api/models/TerraformPackageUpload.java | 70 +- .../models/TerraformPackageUploadRequest.java | 45 +- .../api/models/VagrantPackageUpload.java | 70 +- .../models/VagrantPackageUploadRequest.java | 45 +- .../api/models/VsxPackageUpload.java | 70 +- .../api/models/VsxPackageUploadRequest.java | 45 +- .../api/models/WebOSVSeverityCounts.java | 175 ++ .../io/cloudsmith/api/apis/OrgsApiTest.java | 36 + .../cloudsmith/api/apis/PackagesApiTest.java | 45 +- .../io/cloudsmith/api/apis/ReposApiTest.java | 118 +- .../io/cloudsmith/api/apis/UserApiTest.java | 4 +- bindings/python/src/README.md | 24 +- bindings/python/src/build.json | 2 +- .../python/src/cloudsmith_api/__init__.py | 12 + .../python/src/cloudsmith_api/api/orgs_api.py | 202 ++ .../src/cloudsmith_api/api/packages_api.py | 234 +- .../src/cloudsmith_api/api/repos_api.py | 700 ++++- .../python/src/cloudsmith_api/api/user_api.py | 6 +- .../python/src/cloudsmith_api/api_client.py | 2 +- .../src/cloudsmith_api/configuration.py | 2 +- .../src/cloudsmith_api/models/__init__.py | 12 + .../models/alpine_package_upload.py | 115 +- .../models/alpine_package_upload_request.py | 60 +- .../models/cargo_package_upload.py | 115 +- .../models/cargo_package_upload_request.py | 60 +- .../models/cocoapods_package_upload.py | 115 +- .../cocoapods_package_upload_request.py | 60 +- .../models/composer_package_upload.py | 115 +- .../models/composer_package_upload_request.py | 60 +- .../models/conan_package_upload.py | 115 +- .../models/conan_package_upload_request.py | 60 +- .../models/conda_package_upload.py | 115 +- .../models/conda_package_upload_request.py | 60 +- .../models/cran_package_upload.py | 115 +- .../models/cran_package_upload_request.py | 60 +- .../models/dart_package_upload.py | 115 +- .../models/dart_package_upload_request.py | 60 +- .../models/deb_package_upload.py | 115 +- .../models/deb_package_upload_request.py | 60 +- .../models/docker_package_upload.py | 115 +- .../models/docker_package_upload_request.py | 60 +- .../models/generic_package_upload.py | 115 +- .../models/generic_package_upload_request.py | 60 +- .../models/go_package_upload.py | 115 +- .../models/go_package_upload_request.py | 60 +- .../models/helm_package_upload.py | 115 +- .../models/helm_package_upload_request.py | 60 +- .../models/hex_package_upload.py | 115 +- .../models/hex_package_upload_request.py | 60 +- .../models/huggingface_package_upload.py | 115 +- .../huggingface_package_upload_request.py | 60 +- .../models/inline_response200.py | 149 +- .../models/inline_response2001.py | 93 +- .../models/inline_response2002.py | 6 +- .../models/inline_response2003.py | 125 + .../models/inline_response2004.py | 125 + .../models/luarocks_package_upload.py | 115 +- .../models/luarocks_package_upload_request.py | 60 +- .../models/maven_package_upload.py | 115 +- .../models/maven_package_upload_request.py | 60 +- .../models/mcp_package_upload.py | 115 +- .../models/mcp_package_upload_request.py | 60 +- .../models/nix_package_upload.py | 2563 ++++++++++++++++ .../models/nix_package_upload_request.py | 308 ++ .../src/cloudsmith_api/models/nix_upstream.py | 872 ++++++ .../models/nix_upstream_request.py | 529 ++++ .../models/nix_upstream_request_patch.py | 527 ++++ .../models/npm_package_upload.py | 115 +- .../models/npm_package_upload_request.py | 60 +- .../models/nuget_package_upload.py | 115 +- .../models/nuget_package_upload_request.py | 60 +- .../models/organization_usage.py | 210 ++ .../models/organization_usage_update.py | 182 ++ ...organization_usage_update_request_patch.py | 182 ++ .../models/p2_package_upload.py | 115 +- .../models/p2_package_upload_request.py | 60 +- .../src/cloudsmith_api/models/package.py | 115 +- .../src/cloudsmith_api/models/package_copy.py | 115 +- .../models/package_copy_request.py | 60 +- .../cloudsmith_api/models/package_detail.py | 2645 +++++++++++++++++ .../models/package_file_upload_request.py | 3 + .../cloudsmith_api/models/package_license.py | 60 +- .../models/package_license_request_patch.py | 65 +- .../src/cloudsmith_api/models/package_move.py | 115 +- .../models/package_move_request.py | 60 +- .../models/package_quarantine.py | 115 +- .../models/package_quarantine_request.py | 60 +- .../cloudsmith_api/models/package_resync.py | 115 +- .../src/cloudsmith_api/models/package_tag.py | 115 +- .../models/package_tag_request.py | 60 +- .../models/package_vulnerability.py | 60 +- .../models/python_package_upload.py | 115 +- .../models/python_package_upload_request.py | 60 +- .../models/raw_package_upload.py | 115 +- .../models/raw_package_upload_request.py | 60 +- .../models/recycle_bin_package.py | 60 +- .../models/rpm_package_upload.py | 115 +- .../models/rpm_package_upload_request.py | 60 +- .../models/ruby_package_upload.py | 115 +- .../models/ruby_package_upload_request.py | 60 +- .../models/swift_package_upload.py | 115 +- .../models/swift_package_upload_request.py | 60 +- .../models/terraform_package_upload.py | 115 +- .../terraform_package_upload_request.py | 60 +- .../models/vagrant_package_upload.py | 115 +- .../models/vagrant_package_upload_request.py | 60 +- .../models/vsx_package_upload.py | 115 +- .../models/vsx_package_upload_request.py | 60 +- .../models/web_osv_severity_counts.py | 280 ++ .../python/src/docs/AlpinePackageUpload.md | 4 + .../src/docs/AlpinePackageUploadRequest.md | 2 + .../python/src/docs/CargoPackageUpload.md | 4 + .../src/docs/CargoPackageUploadRequest.md | 2 + .../python/src/docs/CocoapodsPackageUpload.md | 4 + .../src/docs/CocoapodsPackageUploadRequest.md | 2 + .../python/src/docs/ComposerPackageUpload.md | 4 + .../src/docs/ComposerPackageUploadRequest.md | 2 + .../python/src/docs/ConanPackageUpload.md | 4 + .../src/docs/ConanPackageUploadRequest.md | 2 + .../python/src/docs/CondaPackageUpload.md | 4 + .../src/docs/CondaPackageUploadRequest.md | 2 + bindings/python/src/docs/CranPackageUpload.md | 4 + .../src/docs/CranPackageUploadRequest.md | 2 + bindings/python/src/docs/DartPackageUpload.md | 4 + .../src/docs/DartPackageUploadRequest.md | 2 + bindings/python/src/docs/DebPackageUpload.md | 4 + .../src/docs/DebPackageUploadRequest.md | 2 + .../python/src/docs/DockerPackageUpload.md | 4 + .../src/docs/DockerPackageUploadRequest.md | 2 + .../python/src/docs/GenericPackageUpload.md | 4 + .../src/docs/GenericPackageUploadRequest.md | 2 + bindings/python/src/docs/GoPackageUpload.md | 4 + .../python/src/docs/GoPackageUploadRequest.md | 2 + bindings/python/src/docs/HelmPackageUpload.md | 4 + .../src/docs/HelmPackageUploadRequest.md | 2 + bindings/python/src/docs/HexPackageUpload.md | 4 + .../src/docs/HexPackageUploadRequest.md | 2 + .../src/docs/HuggingfacePackageUpload.md | 4 + .../docs/HuggingfacePackageUploadRequest.md | 2 + bindings/python/src/docs/InlineResponse200.md | 6 +- .../python/src/docs/InlineResponse2001.md | 4 +- .../python/src/docs/InlineResponse2002.md | 2 +- .../python/src/docs/InlineResponse2003.md | 10 + .../python/src/docs/InlineResponse2004.md | 10 + .../python/src/docs/LuarocksPackageUpload.md | 4 + .../src/docs/LuarocksPackageUploadRequest.md | 2 + .../python/src/docs/MavenPackageUpload.md | 4 + .../src/docs/MavenPackageUploadRequest.md | 2 + bindings/python/src/docs/McpPackageUpload.md | 4 + .../src/docs/McpPackageUploadRequest.md | 2 + bindings/python/src/docs/NixPackageUpload.md | 99 + .../src/docs/NixPackageUploadRequest.md | 16 + bindings/python/src/docs/NixUpstream.md | 34 + .../python/src/docs/NixUpstreamRequest.md | 22 + .../src/docs/NixUpstreamRequestPatch.md | 22 + bindings/python/src/docs/NpmPackageUpload.md | 4 + .../src/docs/NpmPackageUploadRequest.md | 2 + .../python/src/docs/NugetPackageUpload.md | 4 + .../src/docs/NugetPackageUploadRequest.md | 2 + bindings/python/src/docs/OrganizationUsage.md | 13 + .../src/docs/OrganizationUsageUpdate.md | 12 + .../OrganizationUsageUpdateRequestPatch.md | 12 + bindings/python/src/docs/OrgsApi.md | 118 + bindings/python/src/docs/P2PackageUpload.md | 4 + .../python/src/docs/P2PackageUploadRequest.md | 2 + bindings/python/src/docs/Package.md | 4 + bindings/python/src/docs/PackageCopy.md | 4 + .../python/src/docs/PackageCopyRequest.md | 2 + bindings/python/src/docs/PackageDetail.md | 102 + bindings/python/src/docs/PackageLicense.md | 2 + .../src/docs/PackageLicenseRequestPatch.md | 4 +- bindings/python/src/docs/PackageMove.md | 4 + .../python/src/docs/PackageMoveRequest.md | 2 + bindings/python/src/docs/PackageQuarantine.md | 4 + .../src/docs/PackageQuarantineRequest.md | 2 + bindings/python/src/docs/PackageResync.md | 4 + bindings/python/src/docs/PackageTag.md | 4 + bindings/python/src/docs/PackageTagRequest.md | 2 + .../python/src/docs/PackageVulnerability.md | 2 + bindings/python/src/docs/PackagesApi.md | 133 +- .../python/src/docs/PythonPackageUpload.md | 4 + .../src/docs/PythonPackageUploadRequest.md | 2 + bindings/python/src/docs/RawPackageUpload.md | 4 + .../src/docs/RawPackageUploadRequest.md | 2 + bindings/python/src/docs/RecycleBinPackage.md | 2 + bindings/python/src/docs/ReposApi.md | 387 ++- bindings/python/src/docs/RpmPackageUpload.md | 4 + .../src/docs/RpmPackageUploadRequest.md | 2 + bindings/python/src/docs/RubyPackageUpload.md | 4 + .../src/docs/RubyPackageUploadRequest.md | 2 + .../python/src/docs/SwiftPackageUpload.md | 4 + .../src/docs/SwiftPackageUploadRequest.md | 2 + .../python/src/docs/TerraformPackageUpload.md | 4 + .../src/docs/TerraformPackageUploadRequest.md | 2 + bindings/python/src/docs/UserApi.md | 4 +- .../python/src/docs/VagrantPackageUpload.md | 4 + .../src/docs/VagrantPackageUploadRequest.md | 2 + bindings/python/src/docs/VsxPackageUpload.md | 4 + .../src/docs/VsxPackageUploadRequest.md | 2 + .../python/src/docs/WebOSVSeverityCounts.md | 16 + bindings/python/src/setup.py | 2 +- .../src/test/test_inline_response2003.py | 40 + .../src/test/test_inline_response2004.py | 40 + .../src/test/test_nix_package_upload.py | 40 + .../test/test_nix_package_upload_request.py | 40 + bindings/python/src/test/test_nix_upstream.py | 40 + .../src/test/test_nix_upstream_request.py | 40 + .../test/test_nix_upstream_request_patch.py | 40 + .../src/test/test_organization_usage.py | 40 + .../test/test_organization_usage_update.py | 40 + ...organization_usage_update_request_patch.py | 40 + bindings/python/src/test/test_orgs_api.py | 12 + .../python/src/test/test_package_detail.py | 40 + bindings/python/src/test/test_packages_api.py | 14 + bindings/python/src/test/test_repos_api.py | 42 + .../src/test/test_web_osv_severity_counts.py | 40 + bindings/ruby/src/README.md | 30 +- bindings/ruby/src/build.json | 2 +- bindings/ruby/src/docs/AlpinePackageUpload.md | 4 + .../src/docs/AlpinePackageUploadRequest.md | 2 + bindings/ruby/src/docs/CargoPackageUpload.md | 4 + .../src/docs/CargoPackageUploadRequest.md | 2 + .../ruby/src/docs/CocoapodsPackageUpload.md | 4 + .../src/docs/CocoapodsPackageUploadRequest.md | 2 + .../ruby/src/docs/ComposerPackageUpload.md | 4 + .../src/docs/ComposerPackageUploadRequest.md | 2 + bindings/ruby/src/docs/ConanPackageUpload.md | 4 + .../src/docs/ConanPackageUploadRequest.md | 2 + bindings/ruby/src/docs/CondaPackageUpload.md | 4 + .../src/docs/CondaPackageUploadRequest.md | 2 + bindings/ruby/src/docs/CranPackageUpload.md | 4 + .../ruby/src/docs/CranPackageUploadRequest.md | 2 + bindings/ruby/src/docs/DartPackageUpload.md | 4 + .../ruby/src/docs/DartPackageUploadRequest.md | 2 + bindings/ruby/src/docs/DebPackageUpload.md | 4 + .../ruby/src/docs/DebPackageUploadRequest.md | 2 + bindings/ruby/src/docs/DockerPackageUpload.md | 4 + .../src/docs/DockerPackageUploadRequest.md | 2 + .../ruby/src/docs/GenericPackageUpload.md | 4 + .../src/docs/GenericPackageUploadRequest.md | 2 + bindings/ruby/src/docs/GoPackageUpload.md | 4 + .../ruby/src/docs/GoPackageUploadRequest.md | 2 + bindings/ruby/src/docs/HelmPackageUpload.md | 4 + .../ruby/src/docs/HelmPackageUploadRequest.md | 2 + bindings/ruby/src/docs/HexPackageUpload.md | 4 + .../ruby/src/docs/HexPackageUploadRequest.md | 2 + .../ruby/src/docs/HuggingfacePackageUpload.md | 4 + .../docs/HuggingfacePackageUploadRequest.md | 2 + bindings/ruby/src/docs/InlineResponse200.md | 6 +- bindings/ruby/src/docs/InlineResponse2001.md | 4 +- bindings/ruby/src/docs/InlineResponse2002.md | 2 +- bindings/ruby/src/docs/InlineResponse2003.md | 8 + bindings/ruby/src/docs/InlineResponse2004.md | 8 + .../ruby/src/docs/LuarocksPackageUpload.md | 4 + .../src/docs/LuarocksPackageUploadRequest.md | 2 + bindings/ruby/src/docs/MavenPackageUpload.md | 4 + .../src/docs/MavenPackageUploadRequest.md | 2 + bindings/ruby/src/docs/McpPackageUpload.md | 4 + .../ruby/src/docs/McpPackageUploadRequest.md | 2 + bindings/ruby/src/docs/NixPackageUpload.md | 97 + .../ruby/src/docs/NixPackageUploadRequest.md | 14 + bindings/ruby/src/docs/NixUpstream.md | 32 + bindings/ruby/src/docs/NixUpstreamRequest.md | 20 + .../ruby/src/docs/NixUpstreamRequestPatch.md | 20 + bindings/ruby/src/docs/NpmPackageUpload.md | 4 + .../ruby/src/docs/NpmPackageUploadRequest.md | 2 + bindings/ruby/src/docs/NugetPackageUpload.md | 4 + .../src/docs/NugetPackageUploadRequest.md | 2 + bindings/ruby/src/docs/OrganizationUsage.md | 11 + .../ruby/src/docs/OrganizationUsageUpdate.md | 10 + .../OrganizationUsageUpdateRequestPatch.md | 10 + bindings/ruby/src/docs/OrgsApi.md | 120 + bindings/ruby/src/docs/P2PackageUpload.md | 4 + .../ruby/src/docs/P2PackageUploadRequest.md | 2 + bindings/ruby/src/docs/Package.md | 4 + bindings/ruby/src/docs/PackageCopy.md | 4 + bindings/ruby/src/docs/PackageCopyRequest.md | 2 + bindings/ruby/src/docs/PackageDetail.md | 100 + bindings/ruby/src/docs/PackageLicense.md | 2 + .../src/docs/PackageLicenseRequestPatch.md | 4 +- bindings/ruby/src/docs/PackageMove.md | 4 + bindings/ruby/src/docs/PackageMoveRequest.md | 2 + bindings/ruby/src/docs/PackageQuarantine.md | 4 + .../ruby/src/docs/PackageQuarantineRequest.md | 2 + bindings/ruby/src/docs/PackageResync.md | 4 + bindings/ruby/src/docs/PackageTag.md | 4 + bindings/ruby/src/docs/PackageTagRequest.md | 2 + .../ruby/src/docs/PackageVulnerability.md | 2 + bindings/ruby/src/docs/PackagesApi.md | 139 +- bindings/ruby/src/docs/PythonPackageUpload.md | 4 + .../src/docs/PythonPackageUploadRequest.md | 2 + bindings/ruby/src/docs/RawPackageUpload.md | 4 + .../ruby/src/docs/RawPackageUploadRequest.md | 2 + bindings/ruby/src/docs/RecycleBinPackage.md | 2 + bindings/ruby/src/docs/ReposApi.md | 405 ++- bindings/ruby/src/docs/RpmPackageUpload.md | 4 + .../ruby/src/docs/RpmPackageUploadRequest.md | 2 + bindings/ruby/src/docs/RubyPackageUpload.md | 4 + .../ruby/src/docs/RubyPackageUploadRequest.md | 2 + bindings/ruby/src/docs/SwiftPackageUpload.md | 4 + .../src/docs/SwiftPackageUploadRequest.md | 2 + .../ruby/src/docs/TerraformPackageUpload.md | 4 + .../src/docs/TerraformPackageUploadRequest.md | 2 + bindings/ruby/src/docs/UserApi.md | 4 +- .../ruby/src/docs/VagrantPackageUpload.md | 4 + .../src/docs/VagrantPackageUploadRequest.md | 2 + bindings/ruby/src/docs/VsxPackageUpload.md | 4 + .../ruby/src/docs/VsxPackageUploadRequest.md | 2 + .../ruby/src/docs/WebOSVSeverityCounts.md | 14 + bindings/ruby/src/lib/cloudsmith-api.rb | 12 + .../src/lib/cloudsmith-api/api/orgs_api.rb | 106 + .../lib/cloudsmith-api/api/packages_api.rb | 135 +- .../src/lib/cloudsmith-api/api/repos_api.rb | 401 ++- .../src/lib/cloudsmith-api/api/user_api.rb | 6 +- .../models/alpine_package_upload.rb | 43 +- .../models/alpine_package_upload_request.rb | 27 +- .../models/cargo_package_upload.rb | 43 +- .../models/cargo_package_upload_request.rb | 27 +- .../models/cocoapods_package_upload.rb | 43 +- .../cocoapods_package_upload_request.rb | 27 +- .../models/composer_package_upload.rb | 43 +- .../models/composer_package_upload_request.rb | 27 +- .../models/conan_package_upload.rb | 43 +- .../models/conan_package_upload_request.rb | 27 +- .../models/conda_package_upload.rb | 43 +- .../models/conda_package_upload_request.rb | 27 +- .../models/cran_package_upload.rb | 43 +- .../models/cran_package_upload_request.rb | 27 +- .../models/dart_package_upload.rb | 43 +- .../models/dart_package_upload_request.rb | 27 +- .../models/deb_package_upload.rb | 43 +- .../models/deb_package_upload_request.rb | 27 +- .../models/docker_package_upload.rb | 43 +- .../models/docker_package_upload_request.rb | 27 +- .../models/generic_package_upload.rb | 43 +- .../models/generic_package_upload_request.rb | 27 +- .../models/go_package_upload.rb | 43 +- .../models/go_package_upload_request.rb | 27 +- .../models/helm_package_upload.rb | 43 +- .../models/helm_package_upload_request.rb | 27 +- .../models/hex_package_upload.rb | 43 +- .../models/hex_package_upload_request.rb | 27 +- .../models/huggingface_package_upload.rb | 43 +- .../huggingface_package_upload_request.rb | 27 +- .../models/inline_response_200.rb | 62 +- .../models/inline_response_200_1.rb | 42 +- .../models/inline_response_200_2.rb | 2 +- .../models/inline_response_200_3.rb | 191 ++ .../models/inline_response_200_4.rb | 191 ++ .../models/luarocks_package_upload.rb | 43 +- .../models/luarocks_package_upload_request.rb | 27 +- .../models/maven_package_upload.rb | 43 +- .../models/maven_package_upload_request.rb | 27 +- .../models/mcp_package_upload.rb | 43 +- .../models/mcp_package_upload_request.rb | 27 +- .../models/nix_package_upload.rb | 1061 +++++++ .../models/nix_package_upload_request.rb | 249 ++ .../lib/cloudsmith-api/models/nix_upstream.rb | 496 ++++ .../models/nix_upstream_request.rb | 365 +++ .../models/nix_upstream_request_patch.rb | 355 +++ .../models/npm_package_upload.rb | 43 +- .../models/npm_package_upload_request.rb | 27 +- .../models/nuget_package_upload.rb | 43 +- .../models/nuget_package_upload_request.rb | 27 +- .../models/organization_usage.rb | 215 ++ .../models/organization_usage_update.rb | 202 ++ ...organization_usage_update_request_patch.rb | 202 ++ .../models/p2_package_upload.rb | 43 +- .../models/p2_package_upload_request.rb | 27 +- .../src/lib/cloudsmith-api/models/package.rb | 43 +- .../lib/cloudsmith-api/models/package_copy.rb | 43 +- .../models/package_copy_request.rb | 27 +- .../cloudsmith-api/models/package_detail.rb | 1090 +++++++ .../cloudsmith-api/models/package_license.rb | 27 +- .../models/package_license_request_patch.rb | 32 +- .../lib/cloudsmith-api/models/package_move.rb | 43 +- .../models/package_move_request.rb | 27 +- .../models/package_quarantine.rb | 43 +- .../models/package_quarantine_request.rb | 27 +- .../cloudsmith-api/models/package_resync.rb | 43 +- .../lib/cloudsmith-api/models/package_tag.rb | 43 +- .../models/package_tag_request.rb | 27 +- .../models/package_vulnerability.rb | 27 +- .../models/python_package_upload.rb | 43 +- .../models/python_package_upload_request.rb | 27 +- .../models/raw_package_upload.rb | 43 +- .../models/raw_package_upload_request.rb | 27 +- .../models/recycle_bin_package.rb | 27 +- .../models/rpm_package_upload.rb | 43 +- .../models/rpm_package_upload_request.rb | 27 +- .../models/ruby_package_upload.rb | 43 +- .../models/ruby_package_upload_request.rb | 27 +- .../models/swift_package_upload.rb | 43 +- .../models/swift_package_upload_request.rb | 27 +- .../models/terraform_package_upload.rb | 43 +- .../terraform_package_upload_request.rb | 27 +- .../models/vagrant_package_upload.rb | 43 +- .../models/vagrant_package_upload_request.rb | 27 +- .../models/vsx_package_upload.rb | 43 +- .../models/vsx_package_upload_request.rb | 27 +- .../models/web_osv_severity_counts.rb | 239 ++ .../ruby/src/lib/cloudsmith-api/version.rb | 2 +- bindings/ruby/src/spec/api/orgs_api_spec.rb | 23 + .../ruby/src/spec/api/packages_api_spec.rb | 32 +- bindings/ruby/src/spec/api/repos_api_spec.rb | 89 +- bindings/ruby/src/spec/api/user_api_spec.rb | 2 +- .../alpine_package_upload_request_spec.rb | 12 + .../spec/models/alpine_package_upload_spec.rb | 24 + .../cargo_package_upload_request_spec.rb | 12 + .../spec/models/cargo_package_upload_spec.rb | 24 + .../cocoapods_package_upload_request_spec.rb | 12 + .../models/cocoapods_package_upload_spec.rb | 24 + .../composer_package_upload_request_spec.rb | 12 + .../models/composer_package_upload_spec.rb | 24 + .../conan_package_upload_request_spec.rb | 12 + .../spec/models/conan_package_upload_spec.rb | 24 + .../conda_package_upload_request_spec.rb | 12 + .../spec/models/conda_package_upload_spec.rb | 24 + .../cran_package_upload_request_spec.rb | 12 + .../spec/models/cran_package_upload_spec.rb | 24 + .../dart_package_upload_request_spec.rb | 12 + .../spec/models/dart_package_upload_spec.rb | 24 + .../models/deb_package_upload_request_spec.rb | 12 + .../spec/models/deb_package_upload_spec.rb | 24 + .../docker_package_upload_request_spec.rb | 12 + .../spec/models/docker_package_upload_spec.rb | 24 + .../generic_package_upload_request_spec.rb | 12 + .../models/generic_package_upload_spec.rb | 24 + .../models/go_package_upload_request_spec.rb | 12 + .../src/spec/models/go_package_upload_spec.rb | 24 + .../helm_package_upload_request_spec.rb | 12 + .../spec/models/helm_package_upload_spec.rb | 24 + .../models/hex_package_upload_request_spec.rb | 12 + .../spec/models/hex_package_upload_spec.rb | 24 + ...huggingface_package_upload_request_spec.rb | 12 + .../models/huggingface_package_upload_spec.rb | 24 + .../spec/models/inline_response_200_1_spec.rb | 14 +- .../spec/models/inline_response_200_3_spec.rb | 41 + .../spec/models/inline_response_200_4_spec.rb | 41 + .../spec/models/inline_response_200_spec.rb | 26 +- .../luarocks_package_upload_request_spec.rb | 12 + .../models/luarocks_package_upload_spec.rb | 24 + .../maven_package_upload_request_spec.rb | 12 + .../spec/models/maven_package_upload_spec.rb | 24 + .../models/mcp_package_upload_request_spec.rb | 12 + .../spec/models/mcp_package_upload_spec.rb | 24 + .../models/nix_package_upload_request_spec.rb | 77 + .../spec/models/nix_package_upload_spec.rb | 579 ++++ .../models/nix_upstream_request_patch_spec.rb | 121 + .../spec/models/nix_upstream_request_spec.rb | 121 + .../ruby/src/spec/models/nix_upstream_spec.rb | 197 ++ .../models/npm_package_upload_request_spec.rb | 12 + .../spec/models/npm_package_upload_spec.rb | 24 + .../nuget_package_upload_request_spec.rb | 12 + .../spec/models/nuget_package_upload_spec.rb | 24 + .../spec/models/organization_usage_spec.rb | 59 + ...ization_usage_update_request_patch_spec.rb | 53 + .../models/organization_usage_update_spec.rb | 53 + .../models/p2_package_upload_request_spec.rb | 12 + .../src/spec/models/p2_package_upload_spec.rb | 24 + .../spec/models/package_copy_request_spec.rb | 12 + .../ruby/src/spec/models/package_copy_spec.rb | 24 + .../src/spec/models/package_detail_spec.rb | 597 ++++ .../package_license_request_patch_spec.rb | 12 + .../src/spec/models/package_license_spec.rb | 12 + .../spec/models/package_move_request_spec.rb | 12 + .../ruby/src/spec/models/package_move_spec.rb | 24 + .../models/package_quarantine_request_spec.rb | 12 + .../spec/models/package_quarantine_spec.rb | 24 + .../src/spec/models/package_resync_spec.rb | 24 + bindings/ruby/src/spec/models/package_spec.rb | 24 + .../spec/models/package_tag_request_spec.rb | 12 + .../ruby/src/spec/models/package_tag_spec.rb | 24 + .../spec/models/package_vulnerability_spec.rb | 12 + .../python_package_upload_request_spec.rb | 12 + .../spec/models/python_package_upload_spec.rb | 24 + .../models/raw_package_upload_request_spec.rb | 12 + .../spec/models/raw_package_upload_spec.rb | 24 + .../spec/models/recycle_bin_package_spec.rb | 12 + .../models/rpm_package_upload_request_spec.rb | 12 + .../spec/models/rpm_package_upload_spec.rb | 24 + .../ruby_package_upload_request_spec.rb | 12 + .../spec/models/ruby_package_upload_spec.rb | 24 + .../swift_package_upload_request_spec.rb | 12 + .../spec/models/swift_package_upload_spec.rb | 24 + .../terraform_package_upload_request_spec.rb | 12 + .../models/terraform_package_upload_spec.rb | 24 + .../vagrant_package_upload_request_spec.rb | 12 + .../models/vagrant_package_upload_spec.rb | 24 + .../models/vsx_package_upload_request_spec.rb | 12 + .../spec/models/vsx_package_upload_spec.rb | 24 + .../models/web_osv_severity_counts_spec.rb | 77 + scripts/common.sh | 2 +- 676 files changed, 43377 insertions(+), 712 deletions(-) create mode 100644 bindings/java/src/docs/InlineResponse2003.md create mode 100644 bindings/java/src/docs/InlineResponse2004.md create mode 100644 bindings/java/src/docs/NixPackageUpload.md create mode 100644 bindings/java/src/docs/NixPackageUploadRequest.md create mode 100644 bindings/java/src/docs/NixUpstream.md create mode 100644 bindings/java/src/docs/NixUpstreamRequest.md create mode 100644 bindings/java/src/docs/NixUpstreamRequestPatch.md create mode 100644 bindings/java/src/docs/OrganizationUsage.md create mode 100644 bindings/java/src/docs/OrganizationUsageUpdate.md create mode 100644 bindings/java/src/docs/OrganizationUsageUpdateRequestPatch.md create mode 100644 bindings/java/src/docs/PackageDetail.md create mode 100644 bindings/java/src/docs/WebOSVSeverityCounts.md create mode 100644 bindings/java/src/src/main/java/io/cloudsmith/api/models/InlineResponse2003.java create mode 100644 bindings/java/src/src/main/java/io/cloudsmith/api/models/InlineResponse2004.java create mode 100644 bindings/java/src/src/main/java/io/cloudsmith/api/models/NixPackageUpload.java create mode 100644 bindings/java/src/src/main/java/io/cloudsmith/api/models/NixPackageUploadRequest.java create mode 100644 bindings/java/src/src/main/java/io/cloudsmith/api/models/NixUpstream.java create mode 100644 bindings/java/src/src/main/java/io/cloudsmith/api/models/NixUpstreamRequest.java create mode 100644 bindings/java/src/src/main/java/io/cloudsmith/api/models/NixUpstreamRequestPatch.java create mode 100644 bindings/java/src/src/main/java/io/cloudsmith/api/models/OrganizationUsage.java create mode 100644 bindings/java/src/src/main/java/io/cloudsmith/api/models/OrganizationUsageUpdate.java create mode 100644 bindings/java/src/src/main/java/io/cloudsmith/api/models/OrganizationUsageUpdateRequestPatch.java create mode 100644 bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageDetail.java create mode 100644 bindings/java/src/src/main/java/io/cloudsmith/api/models/WebOSVSeverityCounts.java create mode 100644 bindings/python/src/cloudsmith_api/models/inline_response2003.py create mode 100644 bindings/python/src/cloudsmith_api/models/inline_response2004.py create mode 100644 bindings/python/src/cloudsmith_api/models/nix_package_upload.py create mode 100644 bindings/python/src/cloudsmith_api/models/nix_package_upload_request.py create mode 100644 bindings/python/src/cloudsmith_api/models/nix_upstream.py create mode 100644 bindings/python/src/cloudsmith_api/models/nix_upstream_request.py create mode 100644 bindings/python/src/cloudsmith_api/models/nix_upstream_request_patch.py create mode 100644 bindings/python/src/cloudsmith_api/models/organization_usage.py create mode 100644 bindings/python/src/cloudsmith_api/models/organization_usage_update.py create mode 100644 bindings/python/src/cloudsmith_api/models/organization_usage_update_request_patch.py create mode 100644 bindings/python/src/cloudsmith_api/models/package_detail.py create mode 100644 bindings/python/src/cloudsmith_api/models/web_osv_severity_counts.py create mode 100644 bindings/python/src/docs/InlineResponse2003.md create mode 100644 bindings/python/src/docs/InlineResponse2004.md create mode 100644 bindings/python/src/docs/NixPackageUpload.md create mode 100644 bindings/python/src/docs/NixPackageUploadRequest.md create mode 100644 bindings/python/src/docs/NixUpstream.md create mode 100644 bindings/python/src/docs/NixUpstreamRequest.md create mode 100644 bindings/python/src/docs/NixUpstreamRequestPatch.md create mode 100644 bindings/python/src/docs/OrganizationUsage.md create mode 100644 bindings/python/src/docs/OrganizationUsageUpdate.md create mode 100644 bindings/python/src/docs/OrganizationUsageUpdateRequestPatch.md create mode 100644 bindings/python/src/docs/PackageDetail.md create mode 100644 bindings/python/src/docs/WebOSVSeverityCounts.md create mode 100644 bindings/python/src/test/test_inline_response2003.py create mode 100644 bindings/python/src/test/test_inline_response2004.py create mode 100644 bindings/python/src/test/test_nix_package_upload.py create mode 100644 bindings/python/src/test/test_nix_package_upload_request.py create mode 100644 bindings/python/src/test/test_nix_upstream.py create mode 100644 bindings/python/src/test/test_nix_upstream_request.py create mode 100644 bindings/python/src/test/test_nix_upstream_request_patch.py create mode 100644 bindings/python/src/test/test_organization_usage.py create mode 100644 bindings/python/src/test/test_organization_usage_update.py create mode 100644 bindings/python/src/test/test_organization_usage_update_request_patch.py create mode 100644 bindings/python/src/test/test_package_detail.py create mode 100644 bindings/python/src/test/test_web_osv_severity_counts.py create mode 100644 bindings/ruby/src/docs/InlineResponse2003.md create mode 100644 bindings/ruby/src/docs/InlineResponse2004.md create mode 100644 bindings/ruby/src/docs/NixPackageUpload.md create mode 100644 bindings/ruby/src/docs/NixPackageUploadRequest.md create mode 100644 bindings/ruby/src/docs/NixUpstream.md create mode 100644 bindings/ruby/src/docs/NixUpstreamRequest.md create mode 100644 bindings/ruby/src/docs/NixUpstreamRequestPatch.md create mode 100644 bindings/ruby/src/docs/OrganizationUsage.md create mode 100644 bindings/ruby/src/docs/OrganizationUsageUpdate.md create mode 100644 bindings/ruby/src/docs/OrganizationUsageUpdateRequestPatch.md create mode 100644 bindings/ruby/src/docs/PackageDetail.md create mode 100644 bindings/ruby/src/docs/WebOSVSeverityCounts.md create mode 100644 bindings/ruby/src/lib/cloudsmith-api/models/inline_response_200_3.rb create mode 100644 bindings/ruby/src/lib/cloudsmith-api/models/inline_response_200_4.rb create mode 100644 bindings/ruby/src/lib/cloudsmith-api/models/nix_package_upload.rb create mode 100644 bindings/ruby/src/lib/cloudsmith-api/models/nix_package_upload_request.rb create mode 100644 bindings/ruby/src/lib/cloudsmith-api/models/nix_upstream.rb create mode 100644 bindings/ruby/src/lib/cloudsmith-api/models/nix_upstream_request.rb create mode 100644 bindings/ruby/src/lib/cloudsmith-api/models/nix_upstream_request_patch.rb create mode 100644 bindings/ruby/src/lib/cloudsmith-api/models/organization_usage.rb create mode 100644 bindings/ruby/src/lib/cloudsmith-api/models/organization_usage_update.rb create mode 100644 bindings/ruby/src/lib/cloudsmith-api/models/organization_usage_update_request_patch.rb create mode 100644 bindings/ruby/src/lib/cloudsmith-api/models/package_detail.rb create mode 100644 bindings/ruby/src/lib/cloudsmith-api/models/web_osv_severity_counts.rb create mode 100644 bindings/ruby/src/spec/models/inline_response_200_3_spec.rb create mode 100644 bindings/ruby/src/spec/models/inline_response_200_4_spec.rb create mode 100644 bindings/ruby/src/spec/models/nix_package_upload_request_spec.rb create mode 100644 bindings/ruby/src/spec/models/nix_package_upload_spec.rb create mode 100644 bindings/ruby/src/spec/models/nix_upstream_request_patch_spec.rb create mode 100644 bindings/ruby/src/spec/models/nix_upstream_request_spec.rb create mode 100644 bindings/ruby/src/spec/models/nix_upstream_spec.rb create mode 100644 bindings/ruby/src/spec/models/organization_usage_spec.rb create mode 100644 bindings/ruby/src/spec/models/organization_usage_update_request_patch_spec.rb create mode 100644 bindings/ruby/src/spec/models/organization_usage_update_spec.rb create mode 100644 bindings/ruby/src/spec/models/package_detail_spec.rb create mode 100644 bindings/ruby/src/spec/models/web_osv_severity_counts_spec.rb diff --git a/bindings/java/src/README.md b/bindings/java/src/README.md index 94452b75..18a80705 100644 --- a/bindings/java/src/README.md +++ b/bindings/java/src/README.md @@ -40,7 +40,7 @@ Add this dependency to your project's POM: io.cloudsmith.api cloudsmith-api - 2.0.29 + 2.0.30 compile ``` @@ -50,7 +50,7 @@ Add this dependency to your project's POM: Add this dependency to your project's build file: ```groovy -compile "io.cloudsmith.api:cloudsmith-api:2.0.29" +compile "io.cloudsmith.api:cloudsmith-api:2.0.30" ``` ### Others @@ -63,7 +63,7 @@ mvn clean package Then manually install the following JARs: -* `target/cloudsmith-api-2.0.29.jar` +* `target/cloudsmith-api-2.0.30.jar` * `target/lib/*.jar` ## Getting Started @@ -191,6 +191,7 @@ Class | Method | HTTP request | Description *OrgsApi* | [**orgsOpenidConnectRead**](docs/OrgsApi.md#orgsOpenidConnectRead) | **GET** /orgs/{org}/openid-connect/{slug_perm}/ | Retrieve a specific OpenID Connect provider setting for the org. *OrgsApi* | [**orgsOpenidConnectUpdate**](docs/OrgsApi.md#orgsOpenidConnectUpdate) | **PUT** /orgs/{org}/openid-connect/{slug_perm}/ | Update a specific OpenID Connect provider setting for the org. *OrgsApi* | [**orgsRead**](docs/OrgsApi.md#orgsRead) | **GET** /orgs/{org}/ | Get the details for the specific organization. +*OrgsApi* | [**orgsRetrieveUsageLimits**](docs/OrgsApi.md#orgsRetrieveUsageLimits) | **GET** /orgs/{org}/usage-limits/ | *OrgsApi* | [**orgsSamlAuthenticationPartialUpdate**](docs/OrgsApi.md#orgsSamlAuthenticationPartialUpdate) | **PATCH** /orgs/{org}/saml-authentication | Update the SAML Authentication settings for this Organization. *OrgsApi* | [**orgsSamlAuthenticationRead**](docs/OrgsApi.md#orgsSamlAuthenticationRead) | **GET** /orgs/{org}/saml-authentication | Retrieve the SAML Authentication settings for this Organization. *OrgsApi* | [**orgsSamlGroupSyncCreate**](docs/OrgsApi.md#orgsSamlGroupSyncCreate) | **POST** /orgs/{org}/saml-group-sync/ | Create a new SAML Group Sync mapping within an organization. @@ -213,6 +214,7 @@ Class | Method | HTTP request | Description *OrgsApi* | [**orgsTeamsMembersUpdate**](docs/OrgsApi.md#orgsTeamsMembersUpdate) | **PUT** /orgs/{org}/teams/{team}/members | Replace all team members. *OrgsApi* | [**orgsTeamsPartialUpdate**](docs/OrgsApi.md#orgsTeamsPartialUpdate) | **PATCH** /orgs/{org}/teams/{team}/ | Update a specific team in a organization. *OrgsApi* | [**orgsTeamsRead**](docs/OrgsApi.md#orgsTeamsRead) | **GET** /orgs/{org}/teams/{team}/ | Get the details of a specific team within an organization. +*OrgsApi* | [**orgsUpdateUsageLimits**](docs/OrgsApi.md#orgsUpdateUsageLimits) | **PATCH** /orgs/{org}/usage-limits/ | *OrgsApi* | [**orgsVulnerabilityPolicyCreate**](docs/OrgsApi.md#orgsVulnerabilityPolicyCreate) | **POST** /orgs/{org}/vulnerability-policy/ | Create a package vulnerability policy. *OrgsApi* | [**orgsVulnerabilityPolicyDelete**](docs/OrgsApi.md#orgsVulnerabilityPolicyDelete) | **DELETE** /orgs/{org}/vulnerability-policy/{slug_perm}/ | Delete a package vulnerability policy. *OrgsApi* | [**orgsVulnerabilityPolicyEvaluationCreate**](docs/OrgsApi.md#orgsVulnerabilityPolicyEvaluationCreate) | **POST** /orgs/{org}/vulnerability-policy/{policy_slug_perm}/evaluation/ | Create an evaluation request for this policy. @@ -254,6 +256,7 @@ Class | Method | HTTP request | Description *PackagesApi* | [**packagesUploadLuarocks**](docs/PackagesApi.md#packagesUploadLuarocks) | **POST** /packages/{owner}/{repo}/upload/luarocks/ | Create a new LuaRocks package *PackagesApi* | [**packagesUploadMaven**](docs/PackagesApi.md#packagesUploadMaven) | **POST** /packages/{owner}/{repo}/upload/maven/ | Create a new Maven package *PackagesApi* | [**packagesUploadMcp**](docs/PackagesApi.md#packagesUploadMcp) | **POST** /packages/{owner}/{repo}/upload/mcp/ | Create a new MCP package +*PackagesApi* | [**packagesUploadNix**](docs/PackagesApi.md#packagesUploadNix) | **POST** /packages/{owner}/{repo}/upload/nix/ | Create a new Nix package *PackagesApi* | [**packagesUploadNpm**](docs/PackagesApi.md#packagesUploadNpm) | **POST** /packages/{owner}/{repo}/upload/npm/ | Create a new npm package *PackagesApi* | [**packagesUploadNuget**](docs/PackagesApi.md#packagesUploadNuget) | **POST** /packages/{owner}/{repo}/upload/nuget/ | Create a new NuGet package *PackagesApi* | [**packagesUploadP2**](docs/PackagesApi.md#packagesUploadP2) | **POST** /packages/{owner}/{repo}/upload/p2/ | Create a new P2 package @@ -283,6 +286,7 @@ Class | Method | HTTP request | Description *PackagesApi* | [**packagesValidateUploadLuarocks**](docs/PackagesApi.md#packagesValidateUploadLuarocks) | **POST** /packages/{owner}/{repo}/validate-upload/luarocks/ | Validate parameters for create LuaRocks package *PackagesApi* | [**packagesValidateUploadMaven**](docs/PackagesApi.md#packagesValidateUploadMaven) | **POST** /packages/{owner}/{repo}/validate-upload/maven/ | Validate parameters for create Maven package *PackagesApi* | [**packagesValidateUploadMcp**](docs/PackagesApi.md#packagesValidateUploadMcp) | **POST** /packages/{owner}/{repo}/validate-upload/mcp/ | Validate parameters for create MCP package +*PackagesApi* | [**packagesValidateUploadNix**](docs/PackagesApi.md#packagesValidateUploadNix) | **POST** /packages/{owner}/{repo}/validate-upload/nix/ | Validate parameters for create Nix package *PackagesApi* | [**packagesValidateUploadNpm**](docs/PackagesApi.md#packagesValidateUploadNpm) | **POST** /packages/{owner}/{repo}/validate-upload/npm/ | Validate parameters for create npm package *PackagesApi* | [**packagesValidateUploadNuget**](docs/PackagesApi.md#packagesValidateUploadNuget) | **POST** /packages/{owner}/{repo}/validate-upload/nuget/ | Validate parameters for create NuGet package *PackagesApi* | [**packagesValidateUploadP2**](docs/PackagesApi.md#packagesValidateUploadP2) | **POST** /packages/{owner}/{repo}/validate-upload/p2/ | Validate parameters for create P2 package @@ -421,6 +425,12 @@ Class | Method | HTTP request | Description *ReposApi* | [**reposUpstreamMavenPartialUpdate**](docs/ReposApi.md#reposUpstreamMavenPartialUpdate) | **PATCH** /repos/{owner}/{identifier}/upstream/maven/{slug_perm}/ | Partially update a Maven upstream config for this repository. *ReposApi* | [**reposUpstreamMavenRead**](docs/ReposApi.md#reposUpstreamMavenRead) | **GET** /repos/{owner}/{identifier}/upstream/maven/{slug_perm}/ | Retrieve a Maven upstream config for this repository. *ReposApi* | [**reposUpstreamMavenUpdate**](docs/ReposApi.md#reposUpstreamMavenUpdate) | **PUT** /repos/{owner}/{identifier}/upstream/maven/{slug_perm}/ | Update a Maven upstream config for this repository. +*ReposApi* | [**reposUpstreamNixCreate**](docs/ReposApi.md#reposUpstreamNixCreate) | **POST** /repos/{owner}/{identifier}/upstream/nix/ | Create a Nix upstream config for this repository. +*ReposApi* | [**reposUpstreamNixDelete**](docs/ReposApi.md#reposUpstreamNixDelete) | **DELETE** /repos/{owner}/{identifier}/upstream/nix/{slug_perm}/ | Delete a Nix upstream config for this repository. +*ReposApi* | [**reposUpstreamNixList**](docs/ReposApi.md#reposUpstreamNixList) | **GET** /repos/{owner}/{identifier}/upstream/nix/ | List Nix upstream configs for this repository. +*ReposApi* | [**reposUpstreamNixPartialUpdate**](docs/ReposApi.md#reposUpstreamNixPartialUpdate) | **PATCH** /repos/{owner}/{identifier}/upstream/nix/{slug_perm}/ | Partially update a Nix upstream config for this repository. +*ReposApi* | [**reposUpstreamNixRead**](docs/ReposApi.md#reposUpstreamNixRead) | **GET** /repos/{owner}/{identifier}/upstream/nix/{slug_perm}/ | Retrieve a Nix upstream config for this repository. +*ReposApi* | [**reposUpstreamNixUpdate**](docs/ReposApi.md#reposUpstreamNixUpdate) | **PUT** /repos/{owner}/{identifier}/upstream/nix/{slug_perm}/ | Update a Nix upstream config for this repository. *ReposApi* | [**reposUpstreamNpmCreate**](docs/ReposApi.md#reposUpstreamNpmCreate) | **POST** /repos/{owner}/{identifier}/upstream/npm/ | Create a npm upstream config for this repository. *ReposApi* | [**reposUpstreamNpmDelete**](docs/ReposApi.md#reposUpstreamNpmDelete) | **DELETE** /repos/{owner}/{identifier}/upstream/npm/{slug_perm}/ | Delete a npm upstream config for this repository. *ReposApi* | [**reposUpstreamNpmList**](docs/ReposApi.md#reposUpstreamNpmList) | **GET** /repos/{owner}/{identifier}/upstream/npm/ | List npm upstream configs for this repository. @@ -581,6 +591,8 @@ Class | Method | HTTP request | Description - [InlineResponse200](docs/InlineResponse200.md) - [InlineResponse2001](docs/InlineResponse2001.md) - [InlineResponse2002](docs/InlineResponse2002.md) + - [InlineResponse2003](docs/InlineResponse2003.md) + - [InlineResponse2004](docs/InlineResponse2004.md) - [LuarocksPackageUpload](docs/LuarocksPackageUpload.md) - [LuarocksPackageUploadRequest](docs/LuarocksPackageUploadRequest.md) - [MavenPackageUpload](docs/MavenPackageUpload.md) @@ -597,6 +609,11 @@ Class | Method | HTTP request | Description - [NestedLicensePolicy](docs/NestedLicensePolicy.md) - [NestedVulnerabilityPolicy](docs/NestedVulnerabilityPolicy.md) - [NestedVulnerabilityScanResults](docs/NestedVulnerabilityScanResults.md) + - [NixPackageUpload](docs/NixPackageUpload.md) + - [NixPackageUploadRequest](docs/NixPackageUploadRequest.md) + - [NixUpstream](docs/NixUpstream.md) + - [NixUpstreamRequest](docs/NixUpstreamRequest.md) + - [NixUpstreamRequestPatch](docs/NixUpstreamRequestPatch.md) - [NpmPackageUpload](docs/NpmPackageUpload.md) - [NpmPackageUploadRequest](docs/NpmPackageUploadRequest.md) - [NpmUpstream](docs/NpmUpstream.md) @@ -638,6 +655,9 @@ Class | Method | HTTP request | Description - [OrganizationTeamRequest](docs/OrganizationTeamRequest.md) - [OrganizationTeamRequestPatch](docs/OrganizationTeamRequestPatch.md) - [OrganizationTeamServiceMember](docs/OrganizationTeamServiceMember.md) + - [OrganizationUsage](docs/OrganizationUsage.md) + - [OrganizationUsageUpdate](docs/OrganizationUsageUpdate.md) + - [OrganizationUsageUpdateRequestPatch](docs/OrganizationUsageUpdateRequestPatch.md) - [P2PackageUpload](docs/P2PackageUpload.md) - [P2PackageUploadRequest](docs/P2PackageUploadRequest.md) - [PackageBulkAction](docs/PackageBulkAction.md) @@ -649,6 +669,7 @@ Class | Method | HTTP request | Description - [PackageDenyPolicyRequestPatch](docs/PackageDenyPolicyRequestPatch.md) - [PackageDependencies](docs/PackageDependencies.md) - [PackageDependency](docs/PackageDependency.md) + - [PackageDetail](docs/PackageDetail.md) - [PackageFile](docs/PackageFile.md) - [PackageFilePartsUpload](docs/PackageFilePartsUpload.md) - [PackageFileUpload](docs/PackageFileUpload.md) @@ -786,6 +807,7 @@ Class | Method | HTTP request | Description - [VulnerabilityScanResults](docs/VulnerabilityScanResults.md) - [VulnerabilityScanResultsList](docs/VulnerabilityScanResultsList.md) - [VulnerabilityScanVersion](docs/VulnerabilityScanVersion.md) + - [WebOSVSeverityCounts](docs/WebOSVSeverityCounts.md) - [WebhookTemplate](docs/WebhookTemplate.md) diff --git a/bindings/java/src/build.gradle b/bindings/java/src/build.gradle index 31982579..c08d2bea 100644 --- a/bindings/java/src/build.gradle +++ b/bindings/java/src/build.gradle @@ -2,7 +2,7 @@ apply plugin: 'idea' apply plugin: 'eclipse' group = 'io.cloudsmith.api' -version = '2.0.29' +version = '2.0.30' buildscript { repositories { diff --git a/bindings/java/src/build.json b/bindings/java/src/build.json index 38a8a470..47d58d3d 100644 --- a/bindings/java/src/build.json +++ b/bindings/java/src/build.json @@ -3,7 +3,7 @@ "apiPackage": "io.cloudsmith.api.apis", "artifactId": "cloudsmith-api", "artifactUrl": "https://api.cloudsmith.io/?format=openapi", - "artifactVersion": "2.0.29", + "artifactVersion": "2.0.30", "artifactDescription": "Cloudsmith API", "dateLibrary": "java8", "developerName": "Cloudsmith Ltd", diff --git a/bindings/java/src/build.sbt b/bindings/java/src/build.sbt index 4aae6d00..2fc79f3e 100644 --- a/bindings/java/src/build.sbt +++ b/bindings/java/src/build.sbt @@ -2,7 +2,7 @@ lazy val root = (project in file(".")). settings( organization := "io.cloudsmith.api", name := "cloudsmith-api", - version := "2.0.29", + version := "2.0.30", scalaVersion := "2.11.4", scalacOptions ++= Seq("-feature"), javacOptions in compile ++= Seq("-Xlint:deprecation"), diff --git a/bindings/java/src/docs/AlpinePackageUpload.md b/bindings/java/src/docs/AlpinePackageUpload.md index 2a612253..ac4e052b 100644 --- a/bindings/java/src/docs/AlpinePackageUpload.md +++ b/bindings/java/src/docs/AlpinePackageUpload.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -77,18 +78,21 @@ Name | Type | Description | Notes **statusStr** | **String** | | [optional] **statusUpdatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package status was updated at. | [optional] **statusUrl** | **String** | | [optional] +**storePath** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **syncFinishedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package sync was finished at. | [optional] **syncProgress** | **java.math.BigInteger** | Synchronisation progress (from 0-100) | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | 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. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/AlpinePackageUploadRequest.md b/bindings/java/src/docs/AlpinePackageUploadRequest.md index c00c371e..fb0b8e27 100644 --- a/bindings/java/src/docs/AlpinePackageUploadRequest.md +++ b/bindings/java/src/docs/AlpinePackageUploadRequest.md @@ -5,9 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **distribution** | **String** | The distribution to store the package for. | +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **packageFile** | **String** | The primary file for the package. | **republish** | **Boolean** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/CargoPackageUpload.md b/bindings/java/src/docs/CargoPackageUpload.md index 7a6c4615..00ebb94e 100644 --- a/bindings/java/src/docs/CargoPackageUpload.md +++ b/bindings/java/src/docs/CargoPackageUpload.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -77,18 +78,21 @@ Name | Type | Description | Notes **statusStr** | **String** | | [optional] **statusUpdatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package status was updated at. | [optional] **statusUrl** | **String** | | [optional] +**storePath** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **syncFinishedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package sync was finished at. | [optional] **syncProgress** | **java.math.BigInteger** | Synchronisation progress (from 0-100) | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | 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. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/CargoPackageUploadRequest.md b/bindings/java/src/docs/CargoPackageUploadRequest.md index ad438326..2630d5db 100644 --- a/bindings/java/src/docs/CargoPackageUploadRequest.md +++ b/bindings/java/src/docs/CargoPackageUploadRequest.md @@ -4,9 +4,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **packageFile** | **String** | The primary file for the package. | **republish** | **Boolean** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/CocoapodsPackageUpload.md b/bindings/java/src/docs/CocoapodsPackageUpload.md index 27a5b8c7..85419578 100644 --- a/bindings/java/src/docs/CocoapodsPackageUpload.md +++ b/bindings/java/src/docs/CocoapodsPackageUpload.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -77,18 +78,21 @@ Name | Type | Description | Notes **statusStr** | **String** | | [optional] **statusUpdatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package status was updated at. | [optional] **statusUrl** | **String** | | [optional] +**storePath** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **syncFinishedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package sync was finished at. | [optional] **syncProgress** | **java.math.BigInteger** | Synchronisation progress (from 0-100) | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | 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. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/CocoapodsPackageUploadRequest.md b/bindings/java/src/docs/CocoapodsPackageUploadRequest.md index 3348f107..0526ef3d 100644 --- a/bindings/java/src/docs/CocoapodsPackageUploadRequest.md +++ b/bindings/java/src/docs/CocoapodsPackageUploadRequest.md @@ -4,9 +4,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **packageFile** | **String** | The primary file for the package. | **republish** | **Boolean** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/ComposerPackageUpload.md b/bindings/java/src/docs/ComposerPackageUpload.md index 27d11e20..bc5fd34a 100644 --- a/bindings/java/src/docs/ComposerPackageUpload.md +++ b/bindings/java/src/docs/ComposerPackageUpload.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -77,18 +78,21 @@ Name | Type | Description | Notes **statusStr** | **String** | | [optional] **statusUpdatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package status was updated at. | [optional] **statusUrl** | **String** | | [optional] +**storePath** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **syncFinishedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package sync was finished at. | [optional] **syncProgress** | **java.math.BigInteger** | Synchronisation progress (from 0-100) | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | 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. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/ComposerPackageUploadRequest.md b/bindings/java/src/docs/ComposerPackageUploadRequest.md index a97362ba..e557e5c3 100644 --- a/bindings/java/src/docs/ComposerPackageUploadRequest.md +++ b/bindings/java/src/docs/ComposerPackageUploadRequest.md @@ -4,10 +4,12 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **packageFile** | **String** | The primary file for the package. | **republish** | **Boolean** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] **version** | **String** | The raw version for this package. | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/ConanPackageUpload.md b/bindings/java/src/docs/ConanPackageUpload.md index 91845c45..ce708c1b 100644 --- a/bindings/java/src/docs/ConanPackageUpload.md +++ b/bindings/java/src/docs/ConanPackageUpload.md @@ -35,6 +35,7 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -79,18 +80,21 @@ Name | Type | Description | Notes **statusStr** | **String** | | [optional] **statusUpdatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package status was updated at. | [optional] **statusUrl** | **String** | | [optional] +**storePath** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **syncFinishedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package sync was finished at. | [optional] **syncProgress** | **java.math.BigInteger** | Synchronisation progress (from 0-100) | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | 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. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/ConanPackageUploadRequest.md b/bindings/java/src/docs/ConanPackageUploadRequest.md index 36824124..da033658 100644 --- a/bindings/java/src/docs/ConanPackageUploadRequest.md +++ b/bindings/java/src/docs/ConanPackageUploadRequest.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **conanChannel** | **String** | Conan channel. | [optional] **conanPrefix** | **String** | Conan prefix (User). | [optional] **infoFile** | **String** | The info file is an python file containing the package metadata. | +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **manifestFile** | **String** | The info file is an python file containing the package metadata. | **metadataFile** | **String** | The conan file is an python file containing the package metadata. | **name** | **String** | The name of this package. | [optional] @@ -14,6 +15,7 @@ Name | Type | Description | Notes **republish** | **Boolean** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] **version** | **String** | The raw version for this package. | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/CondaPackageUpload.md b/bindings/java/src/docs/CondaPackageUpload.md index 9e029984..40bc64bd 100644 --- a/bindings/java/src/docs/CondaPackageUpload.md +++ b/bindings/java/src/docs/CondaPackageUpload.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -77,18 +78,21 @@ Name | Type | Description | Notes **statusStr** | **String** | | [optional] **statusUpdatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package status was updated at. | [optional] **statusUrl** | **String** | | [optional] +**storePath** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **syncFinishedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package sync was finished at. | [optional] **syncProgress** | **java.math.BigInteger** | Synchronisation progress (from 0-100) | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | 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. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/CondaPackageUploadRequest.md b/bindings/java/src/docs/CondaPackageUploadRequest.md index 5c431c9e..0979ca7b 100644 --- a/bindings/java/src/docs/CondaPackageUploadRequest.md +++ b/bindings/java/src/docs/CondaPackageUploadRequest.md @@ -4,9 +4,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **packageFile** | **String** | The primary file for the package. | **republish** | **Boolean** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/CranPackageUpload.md b/bindings/java/src/docs/CranPackageUpload.md index 0570c660..512db197 100644 --- a/bindings/java/src/docs/CranPackageUpload.md +++ b/bindings/java/src/docs/CranPackageUpload.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -78,18 +79,21 @@ Name | Type | Description | Notes **statusStr** | **String** | | [optional] **statusUpdatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package status was updated at. | [optional] **statusUrl** | **String** | | [optional] +**storePath** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **syncFinishedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package sync was finished at. | [optional] **syncProgress** | **java.math.BigInteger** | Synchronisation progress (from 0-100) | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | 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. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/CranPackageUploadRequest.md b/bindings/java/src/docs/CranPackageUploadRequest.md index cfa0422c..65483a08 100644 --- a/bindings/java/src/docs/CranPackageUploadRequest.md +++ b/bindings/java/src/docs/CranPackageUploadRequest.md @@ -5,10 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **architecture** | **String** | Binary package uploads for macOS should specify the architecture they were built for. | [optional] +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **packageFile** | **String** | The primary file for the package. | **rVersion** | **String** | Binary package uploads should specify the version of R they were built for. | [optional] **republish** | **Boolean** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/DartPackageUpload.md b/bindings/java/src/docs/DartPackageUpload.md index a91454ac..de8da94f 100644 --- a/bindings/java/src/docs/DartPackageUpload.md +++ b/bindings/java/src/docs/DartPackageUpload.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -77,18 +78,21 @@ Name | Type | Description | Notes **statusStr** | **String** | | [optional] **statusUpdatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package status was updated at. | [optional] **statusUrl** | **String** | | [optional] +**storePath** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **syncFinishedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package sync was finished at. | [optional] **syncProgress** | **java.math.BigInteger** | Synchronisation progress (from 0-100) | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | 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. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/DartPackageUploadRequest.md b/bindings/java/src/docs/DartPackageUploadRequest.md index 5c4af18f..d93c4291 100644 --- a/bindings/java/src/docs/DartPackageUploadRequest.md +++ b/bindings/java/src/docs/DartPackageUploadRequest.md @@ -4,9 +4,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **packageFile** | **String** | The primary file for the package. | **republish** | **Boolean** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/DebPackageUpload.md b/bindings/java/src/docs/DebPackageUpload.md index a5f09aa5..6ee35d7c 100644 --- a/bindings/java/src/docs/DebPackageUpload.md +++ b/bindings/java/src/docs/DebPackageUpload.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -77,18 +78,21 @@ Name | Type | Description | Notes **statusStr** | **String** | | [optional] **statusUpdatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package status was updated at. | [optional] **statusUrl** | **String** | | [optional] +**storePath** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **syncFinishedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package sync was finished at. | [optional] **syncProgress** | **java.math.BigInteger** | Synchronisation progress (from 0-100) | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | 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. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/DebPackageUploadRequest.md b/bindings/java/src/docs/DebPackageUploadRequest.md index 04d791ca..60cc22bb 100644 --- a/bindings/java/src/docs/DebPackageUploadRequest.md +++ b/bindings/java/src/docs/DebPackageUploadRequest.md @@ -7,10 +7,12 @@ Name | Type | Description | Notes **changesFile** | **String** | The changes archive containing the changes made to the source and debian packaging files | [optional] **component** | **String** | The component (channel) for the package (e.g. 'main', 'unstable', etc.) | [optional] **distribution** | **String** | The distribution to store the package for. | +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **packageFile** | **String** | The primary file for the package. | **republish** | **Boolean** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **sourcesFile** | **String** | The sources archive containing the source code for the binary | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/DockerPackageUpload.md b/bindings/java/src/docs/DockerPackageUpload.md index 7f7cf718..5976dbdb 100644 --- a/bindings/java/src/docs/DockerPackageUpload.md +++ b/bindings/java/src/docs/DockerPackageUpload.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -77,18 +78,21 @@ Name | Type | Description | Notes **statusStr** | **String** | | [optional] **statusUpdatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package status was updated at. | [optional] **statusUrl** | **String** | | [optional] +**storePath** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **syncFinishedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package sync was finished at. | [optional] **syncProgress** | **java.math.BigInteger** | Synchronisation progress (from 0-100) | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | 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. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/DockerPackageUploadRequest.md b/bindings/java/src/docs/DockerPackageUploadRequest.md index 7fbdf623..20a1e059 100644 --- a/bindings/java/src/docs/DockerPackageUploadRequest.md +++ b/bindings/java/src/docs/DockerPackageUploadRequest.md @@ -4,9 +4,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **packageFile** | **String** | The primary file for the package. | **republish** | **Boolean** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/GenericPackageUpload.md b/bindings/java/src/docs/GenericPackageUpload.md index 5b4d5de2..aef03b5d 100644 --- a/bindings/java/src/docs/GenericPackageUpload.md +++ b/bindings/java/src/docs/GenericPackageUpload.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -77,18 +78,21 @@ Name | Type | Description | Notes **statusStr** | **String** | | [optional] **statusUpdatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package status was updated at. | [optional] **statusUrl** | **String** | | [optional] +**storePath** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **syncFinishedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package sync was finished at. | [optional] **syncProgress** | **java.math.BigInteger** | Synchronisation progress (from 0-100) | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | 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. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/GenericPackageUploadRequest.md b/bindings/java/src/docs/GenericPackageUploadRequest.md index d5906cee..3ca2a706 100644 --- a/bindings/java/src/docs/GenericPackageUploadRequest.md +++ b/bindings/java/src/docs/GenericPackageUploadRequest.md @@ -5,11 +5,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **filepath** | **String** | The full filepath of the package including filename. | +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **name** | **String** | The name of this package. | [optional] **packageFile** | **String** | The primary file for the package. | **republish** | **Boolean** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] **version** | **String** | The raw version for this package. | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/GoPackageUpload.md b/bindings/java/src/docs/GoPackageUpload.md index d89095df..98667c9e 100644 --- a/bindings/java/src/docs/GoPackageUpload.md +++ b/bindings/java/src/docs/GoPackageUpload.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -77,18 +78,21 @@ Name | Type | Description | Notes **statusStr** | **String** | | [optional] **statusUpdatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package status was updated at. | [optional] **statusUrl** | **String** | | [optional] +**storePath** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **syncFinishedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package sync was finished at. | [optional] **syncProgress** | **java.math.BigInteger** | Synchronisation progress (from 0-100) | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | 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. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/GoPackageUploadRequest.md b/bindings/java/src/docs/GoPackageUploadRequest.md index 8c8c950e..e7021e80 100644 --- a/bindings/java/src/docs/GoPackageUploadRequest.md +++ b/bindings/java/src/docs/GoPackageUploadRequest.md @@ -4,9 +4,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **packageFile** | **String** | The primary file for the package. | **republish** | **Boolean** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/HelmPackageUpload.md b/bindings/java/src/docs/HelmPackageUpload.md index eccfbe6e..fef42775 100644 --- a/bindings/java/src/docs/HelmPackageUpload.md +++ b/bindings/java/src/docs/HelmPackageUpload.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -77,18 +78,21 @@ Name | Type | Description | Notes **statusStr** | **String** | | [optional] **statusUpdatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package status was updated at. | [optional] **statusUrl** | **String** | | [optional] +**storePath** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **syncFinishedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package sync was finished at. | [optional] **syncProgress** | **java.math.BigInteger** | Synchronisation progress (from 0-100) | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | 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. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/HelmPackageUploadRequest.md b/bindings/java/src/docs/HelmPackageUploadRequest.md index 739da846..156b27d6 100644 --- a/bindings/java/src/docs/HelmPackageUploadRequest.md +++ b/bindings/java/src/docs/HelmPackageUploadRequest.md @@ -4,10 +4,12 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **packageFile** | **String** | The primary file for the package. | **provenanceFile** | **String** | The provenance file containing the signature for the chart. If one is not provided, it will be generated automatically. | [optional] **republish** | **Boolean** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/HexPackageUpload.md b/bindings/java/src/docs/HexPackageUpload.md index 17507743..36b17683 100644 --- a/bindings/java/src/docs/HexPackageUpload.md +++ b/bindings/java/src/docs/HexPackageUpload.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -77,18 +78,21 @@ Name | Type | Description | Notes **statusStr** | **String** | | [optional] **statusUpdatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package status was updated at. | [optional] **statusUrl** | **String** | | [optional] +**storePath** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **syncFinishedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package sync was finished at. | [optional] **syncProgress** | **java.math.BigInteger** | Synchronisation progress (from 0-100) | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | 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. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/HexPackageUploadRequest.md b/bindings/java/src/docs/HexPackageUploadRequest.md index cee3d8b0..88e262c4 100644 --- a/bindings/java/src/docs/HexPackageUploadRequest.md +++ b/bindings/java/src/docs/HexPackageUploadRequest.md @@ -4,9 +4,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **packageFile** | **String** | The primary file for the package. | **republish** | **Boolean** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/HuggingfacePackageUpload.md b/bindings/java/src/docs/HuggingfacePackageUpload.md index dcd28faf..c41e341e 100644 --- a/bindings/java/src/docs/HuggingfacePackageUpload.md +++ b/bindings/java/src/docs/HuggingfacePackageUpload.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -77,18 +78,21 @@ Name | Type | Description | Notes **statusStr** | **String** | | [optional] **statusUpdatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package status was updated at. | [optional] **statusUrl** | **String** | | [optional] +**storePath** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **syncFinishedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package sync was finished at. | [optional] **syncProgress** | **java.math.BigInteger** | Synchronisation progress (from 0-100) | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | 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. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/HuggingfacePackageUploadRequest.md b/bindings/java/src/docs/HuggingfacePackageUploadRequest.md index c3f612f2..9926221e 100644 --- a/bindings/java/src/docs/HuggingfacePackageUploadRequest.md +++ b/bindings/java/src/docs/HuggingfacePackageUploadRequest.md @@ -4,9 +4,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **packageFile** | **String** | The primary file for the package. | **republish** | **Boolean** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/InlineResponse200.md b/bindings/java/src/docs/InlineResponse200.md index cb84fb23..fea7c228 100644 --- a/bindings/java/src/docs/InlineResponse200.md +++ b/bindings/java/src/docs/InlineResponse200.md @@ -4,7 +4,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**results** | [**List<PackageGroup>**](PackageGroup.md) | | +**allowOpenSourceOverage** | **Boolean** | Whether on-demand open source overage is allowed. | [optional] +**bandwidthOverageLimit** | **java.math.BigInteger** | Effective bandwidth overage limit in GB. | [optional] +**storageOverageLimit** | **java.math.BigInteger** | Effective storage overage limit in GB. | [optional] +**bandwidthMaximum** | **java.math.BigInteger** | Maximum allowed bandwidth overage in GB. | [optional] +**storageMaximum** | **java.math.BigInteger** | Maximum allowed storage overage in GB. | [optional] diff --git a/bindings/java/src/docs/InlineResponse2001.md b/bindings/java/src/docs/InlineResponse2001.md index 8cfcf4f4..c03529f4 100644 --- a/bindings/java/src/docs/InlineResponse2001.md +++ b/bindings/java/src/docs/InlineResponse2001.md @@ -4,7 +4,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**results** | [**List<ConnectedRepository>**](ConnectedRepository.md) | | +**allowOpenSourceOverage** | **Boolean** | Whether on-demand open source overage is allowed. | [optional] +**bandwidthOverageLimit** | **java.math.BigInteger** | Effective bandwidth overage limit in GB. | [optional] +**storageOverageLimit** | **java.math.BigInteger** | Effective storage overage limit in GB. | [optional] diff --git a/bindings/java/src/docs/InlineResponse2002.md b/bindings/java/src/docs/InlineResponse2002.md index 34a35c11..a22d7e91 100644 --- a/bindings/java/src/docs/InlineResponse2002.md +++ b/bindings/java/src/docs/InlineResponse2002.md @@ -4,7 +4,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**results** | [**List<UserAuthenticationToken>**](UserAuthenticationToken.md) | | +**results** | [**List<PackageGroup>**](PackageGroup.md) | | diff --git a/bindings/java/src/docs/InlineResponse2003.md b/bindings/java/src/docs/InlineResponse2003.md new file mode 100644 index 00000000..e7acbf52 --- /dev/null +++ b/bindings/java/src/docs/InlineResponse2003.md @@ -0,0 +1,10 @@ + +# InlineResponse2003 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**results** | [**List<ConnectedRepository>**](ConnectedRepository.md) | | + + + diff --git a/bindings/java/src/docs/InlineResponse2004.md b/bindings/java/src/docs/InlineResponse2004.md new file mode 100644 index 00000000..83835f21 --- /dev/null +++ b/bindings/java/src/docs/InlineResponse2004.md @@ -0,0 +1,10 @@ + +# InlineResponse2004 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**results** | [**List<UserAuthenticationToken>**](UserAuthenticationToken.md) | | + + + diff --git a/bindings/java/src/docs/LuarocksPackageUpload.md b/bindings/java/src/docs/LuarocksPackageUpload.md index 9c360e6e..986a8a86 100644 --- a/bindings/java/src/docs/LuarocksPackageUpload.md +++ b/bindings/java/src/docs/LuarocksPackageUpload.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -77,18 +78,21 @@ Name | Type | Description | Notes **statusStr** | **String** | | [optional] **statusUpdatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package status was updated at. | [optional] **statusUrl** | **String** | | [optional] +**storePath** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **syncFinishedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package sync was finished at. | [optional] **syncProgress** | **java.math.BigInteger** | Synchronisation progress (from 0-100) | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | 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. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/LuarocksPackageUploadRequest.md b/bindings/java/src/docs/LuarocksPackageUploadRequest.md index 0646761b..1a8aa267 100644 --- a/bindings/java/src/docs/LuarocksPackageUploadRequest.md +++ b/bindings/java/src/docs/LuarocksPackageUploadRequest.md @@ -4,9 +4,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **packageFile** | **String** | The primary file for the package. | **republish** | **Boolean** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/MavenPackageUpload.md b/bindings/java/src/docs/MavenPackageUpload.md index 34588075..0fe81809 100644 --- a/bindings/java/src/docs/MavenPackageUpload.md +++ b/bindings/java/src/docs/MavenPackageUpload.md @@ -35,6 +35,7 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -82,18 +83,21 @@ Name | Type | Description | Notes **statusStr** | **String** | | [optional] **statusUpdatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package status was updated at. | [optional] **statusUrl** | **String** | | [optional] +**storePath** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **syncFinishedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package sync was finished at. | [optional] **syncProgress** | **java.math.BigInteger** | Synchronisation progress (from 0-100) | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | 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. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/MavenPackageUploadRequest.md b/bindings/java/src/docs/MavenPackageUploadRequest.md index 83c9acf8..1bbcb413 100644 --- a/bindings/java/src/docs/MavenPackageUploadRequest.md +++ b/bindings/java/src/docs/MavenPackageUploadRequest.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **artifactId** | **String** | The ID of the artifact. | [optional] **extraFiles** | **List<String>** | Extra files to include in the package. This can be a single file or multiple files. | [optional] **groupId** | **String** | Artifact's group ID. | [optional] +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **ivyFile** | **String** | The ivy file is an XML file describing the dependencies of the project. | [optional] **javadocFile** | **String** | Adds bundled Java documentation to the Maven package | [optional] **packageFile** | **String** | The primary file for the package. | @@ -19,6 +20,7 @@ Name | Type | Description | Notes **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] **testsFile** | **String** | Adds bundled Java tests to the Maven package. | [optional] **version** | **String** | The raw version for this package. | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/McpPackageUpload.md b/bindings/java/src/docs/McpPackageUpload.md index 9e010661..4048652b 100644 --- a/bindings/java/src/docs/McpPackageUpload.md +++ b/bindings/java/src/docs/McpPackageUpload.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -77,18 +78,21 @@ Name | Type | Description | Notes **statusStr** | **String** | | [optional] **statusUpdatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package status was updated at. | [optional] **statusUrl** | **String** | | [optional] +**storePath** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **syncFinishedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package sync was finished at. | [optional] **syncProgress** | **java.math.BigInteger** | Synchronisation progress (from 0-100) | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | 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. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/McpPackageUploadRequest.md b/bindings/java/src/docs/McpPackageUploadRequest.md index 7913223c..d72470cf 100644 --- a/bindings/java/src/docs/McpPackageUploadRequest.md +++ b/bindings/java/src/docs/McpPackageUploadRequest.md @@ -4,10 +4,12 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **packageFile** | **String** | The primary file for the package. | **republish** | **Boolean** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] **version** | **String** | The raw version for this package. | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/ModelPackage.md b/bindings/java/src/docs/ModelPackage.md index 51737e06..ad032154 100644 --- a/bindings/java/src/docs/ModelPackage.md +++ b/bindings/java/src/docs/ModelPackage.md @@ -34,6 +34,7 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -78,6 +79,7 @@ Name | Type | Description | Notes **statusStr** | **String** | | [optional] **statusUpdatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package status was updated at. | [optional] **statusUrl** | **String** | | [optional] +**storePath** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **syncFinishedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package sync was finished at. | [optional] @@ -85,12 +87,14 @@ Name | Type | Description | Notes **tags** | [**Tags**](Tags.md) | | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | 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. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/NixPackageUpload.md b/bindings/java/src/docs/NixPackageUpload.md new file mode 100644 index 00000000..753f6b71 --- /dev/null +++ b/bindings/java/src/docs/NixPackageUpload.md @@ -0,0 +1,113 @@ + +# NixPackageUpload + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**architectures** | [**List<Architecture>**](Architecture.md) | | [optional] +**cdnUrl** | **String** | | [optional] +**checksumMd5** | **String** | | [optional] +**checksumSha1** | **String** | | [optional] +**checksumSha256** | **String** | | [optional] +**checksumSha512** | **String** | | [optional] +**dependenciesChecksumMd5** | **String** | A checksum of all of the package's dependencies. | [optional] +**dependenciesUrl** | **String** | | [optional] +**description** | **String** | A textual description of this package. | [optional] +**displayName** | **String** | | [optional] +**distro** | [**Distribution**](Distribution.md) | | [optional] +**distroVersion** | [**DistributionVersion**](DistributionVersion.md) | | [optional] +**downloads** | **java.math.BigInteger** | | [optional] +**epoch** | **java.math.BigInteger** | The epoch of the package version (if any). | [optional] +**extension** | **String** | | [optional] +**filename** | **String** | | [optional] +**files** | [**List<PackageFile>**](PackageFile.md) | | [optional] +**format** | **String** | | [optional] +**formatUrl** | **String** | | [optional] +**freeableStorage** | **java.math.BigInteger** | Amount of storage that will be freed if this package is deleted | [optional] +**fullyQualifiedName** | **String** | | [optional] +**identifierPerm** | **String** | Unique and permanent identifier for the package. | [optional] +**identifiers** | **Map<String, String>** | Return a map of identifier field names and their values. | [optional] +**indexed** | **Boolean** | | [optional] +**isCancellable** | **Boolean** | | [optional] +**isCopyable** | **Boolean** | | [optional] +**isDeleteable** | **Boolean** | | [optional] +**isDownloadable** | **Boolean** | | [optional] +**isHidden** | **Boolean** | | [optional] +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] +**isMoveable** | **Boolean** | | [optional] +**isQuarantinable** | **Boolean** | | [optional] +**isQuarantined** | **Boolean** | | [optional] +**isResyncable** | **Boolean** | | [optional] +**isSecurityScannable** | **Boolean** | | [optional] +**isSyncAwaiting** | **Boolean** | | [optional] +**isSyncCompleted** | **Boolean** | | [optional] +**isSyncFailed** | **Boolean** | | [optional] +**isSyncInFlight** | **Boolean** | | [optional] +**isSyncInProgress** | **Boolean** | | [optional] +**license** | **String** | The license of this package. | [optional] +**name** | **String** | The name of this package. | [optional] +**namespace** | **String** | | [optional] +**namespaceUrl** | **String** | | [optional] +**numFiles** | **java.math.BigInteger** | | [optional] +**originRepository** | **String** | | [optional] +**originRepositoryUrl** | **String** | | [optional] +**osiApproved** | **Boolean** | Whether the package's SPDX license is OSI-approved. | [optional] +**packageType** | **java.math.BigInteger** | The type of package contents. | [optional] +**policyViolated** | **Boolean** | Whether or not the package has violated any policy. | [optional] +**rawLicense** | **String** | The raw license string. | [optional] +**release** | **String** | The release of the package version (if any). | [optional] +**repository** | **String** | | [optional] +**repositoryUrl** | **String** | | [optional] +**securityScanCompletedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the security scanning was completed. | [optional] +**securityScanStartedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the security scanning was started. | [optional] +**securityScanStatus** | [**SecurityScanStatusEnum**](#SecurityScanStatusEnum) | | [optional] +**securityScanStatusUpdatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the security scanning status was updated. | [optional] +**selfHtmlUrl** | **String** | | [optional] +**selfUrl** | **String** | | [optional] +**selfWebappUrl** | **String** | | [optional] +**signatureUrl** | **String** | | [optional] +**size** | **java.math.BigInteger** | The calculated size of the package. | [optional] +**slug** | **String** | The public unique identifier for the package. | [optional] +**slugPerm** | **String** | | [optional] +**spdxLicense** | **String** | The SPDX license identifier for this package. | [optional] +**stage** | **java.math.BigInteger** | The synchronisation (in progress) stage of the package. | [optional] +**stageStr** | **String** | | [optional] +**stageUpdatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package stage was updated at. | [optional] +**status** | **java.math.BigInteger** | The synchronisation status of the package. | [optional] +**statusReason** | **String** | A textual description for the synchronous status reason (if any | [optional] +**statusStr** | **String** | | [optional] +**statusUpdatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package status was updated at. | [optional] +**statusUrl** | **String** | | [optional] +**storePath** | **String** | Absolute store path for the package, including store hash and name. | [optional] +**subtype** | **String** | | [optional] +**summary** | **String** | A one-liner synopsis of this package. | [optional] +**syncFinishedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package sync was finished at. | [optional] +**syncProgress** | **java.math.BigInteger** | Synchronisation progress (from 0-100) | [optional] +**tagsAutomatic** | [**Tags**](Tags.md) | | [optional] +**tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | 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. | [optional] +**typeDisplay** | **String** | | [optional] +**uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] +**uploader** | **String** | | [optional] +**uploaderUrl** | **String** | | [optional] +**version** | **String** | The raw version for this package. | [optional] +**versionOrig** | **String** | | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] +**vulnerabilityScanResultsUrl** | **String** | | [optional] + + + +## Enum: SecurityScanStatusEnum +Name | Value +---- | ----- +AWAITING_SECURITY_SCAN | "Awaiting Security Scan" +SECURITY_SCANNING_IN_PROGRESS | "Security Scanning in Progress" +SCAN_DETECTED_VULNERABILITIES | "Scan Detected Vulnerabilities" +SCAN_DETECTED_NO_VULNERABILITIES | "Scan Detected No Vulnerabilities" +SECURITY_SCANNING_DISABLED | "Security Scanning Disabled" +SECURITY_SCANNING_FAILED | "Security Scanning Failed" +SECURITY_SCANNING_SKIPPED | "Security Scanning Skipped" +SECURITY_SCANNING_NOT_SUPPORTED | "Security Scanning Not Supported" + + + diff --git a/bindings/java/src/docs/NixPackageUploadRequest.md b/bindings/java/src/docs/NixPackageUploadRequest.md new file mode 100644 index 00000000..1e4ca5d2 --- /dev/null +++ b/bindings/java/src/docs/NixPackageUploadRequest.md @@ -0,0 +1,16 @@ + +# NixPackageUploadRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] +**narinfo** | **String** | The narinfo sidecar metadata file (<storeHash>.narinfo). Optional — the package can be completed later by publishing the matching narinfo via the native HTTP PUT path. | [optional] +**packageFile** | **String** | The primary file for the package. | +**republish** | **Boolean** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] +**tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] +**version** | **String** | The raw version for this package. | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] + + + diff --git a/bindings/java/src/docs/NixUpstream.md b/bindings/java/src/docs/NixUpstream.md new file mode 100644 index 00000000..60950130 --- /dev/null +++ b/bindings/java/src/docs/NixUpstream.md @@ -0,0 +1,61 @@ + +# NixUpstream + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**authMode** | [**AuthModeEnum**](#AuthModeEnum) | The authentication mode to use when accessing this upstream. | [optional] +**authSecret** | **String** | Secret to provide with requests to upstream. | [optional] +**authUsername** | **String** | Username to provide with requests to upstream. | [optional] +**available** | **Boolean** | Whether the upstream is available for use. | [optional] +**canReindex** | **Boolean** | Whether the upstream can be reindexed. | [optional] +**createdAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the upstream source was created. | [optional] +**disableReason** | [**DisableReasonEnum**](#DisableReasonEnum) | | [optional] +**disableReasonText** | **String** | Human-readable explanation of why this upstream is disabled | [optional] +**extraHeader1** | **String** | The key for extra header #1 to send to upstream. | [optional] +**extraHeader2** | **String** | The key for extra header #2 to send to upstream. | [optional] +**extraValue1** | **String** | The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] +**extraValue2** | **String** | The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] +**hasFailedSignatureVerification** | **Boolean** | Whether the upstream has failed signature verification. | [optional] +**indexPackageCount** | **java.math.BigInteger** | The number of packages available in this upstream source | [optional] +**indexStatus** | **String** | The current indexing status of this upstream source | [optional] +**isActive** | **Boolean** | Whether or not this upstream is active and ready for requests. | [optional] +**lastIndexed** | **String** | The last time this upstream source was indexed | [optional] +**mode** | [**ModeEnum**](#ModeEnum) | The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. | [optional] +**name** | **String** | A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. | +**pendingValidation** | **Boolean** | When true, this upstream source is pending validation. | [optional] +**priority** | **java.math.BigInteger** | Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. | [optional] +**slugPerm** | **String** | | [optional] +**updatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] +**upstreamUrl** | **String** | The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. | +**verifySsl** | **Boolean** | If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. | [optional] + + + +## Enum: AuthModeEnum +Name | Value +---- | ----- +NONE | "None" +USERNAME_AND_PASSWORD | "Username and Password" + + + +## Enum: DisableReasonEnum +Name | Value +---- | ----- +N_A | "N/A" +UPSTREAM_POINTS_TO_ITS_OWN_REPOSITORY | "Upstream points to its own repository" +MISSING_UPSTREAM_SOURCE | "Missing upstream source" +RSA_KEY_DID_NOT_VERIFY_THE_UPSTREAM_S_APKINDEX_SIGNATURE | "RSA key did not verify the upstream's APKINDEX signature" +UPSTREAM_WAS_DISABLED_BY_REQUEST_OF_USER | "Upstream was disabled by request of user" + + + +## Enum: ModeEnum +Name | Value +---- | ----- +PROXY_ONLY | "Proxy Only" +CACHE_AND_PROXY | "Cache and Proxy" + + + diff --git a/bindings/java/src/docs/NixUpstreamRequest.md b/bindings/java/src/docs/NixUpstreamRequest.md new file mode 100644 index 00000000..f069a2c0 --- /dev/null +++ b/bindings/java/src/docs/NixUpstreamRequest.md @@ -0,0 +1,38 @@ + +# NixUpstreamRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**authMode** | [**AuthModeEnum**](#AuthModeEnum) | The authentication mode to use when accessing this upstream. | [optional] +**authSecret** | **String** | Secret to provide with requests to upstream. | [optional] +**authUsername** | **String** | Username to provide with requests to upstream. | [optional] +**extraHeader1** | **String** | The key for extra header #1 to send to upstream. | [optional] +**extraHeader2** | **String** | The key for extra header #2 to send to upstream. | [optional] +**extraValue1** | **String** | The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] +**extraValue2** | **String** | The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] +**isActive** | **Boolean** | Whether or not this upstream is active and ready for requests. | [optional] +**mode** | [**ModeEnum**](#ModeEnum) | The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. | [optional] +**name** | **String** | A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. | +**priority** | **java.math.BigInteger** | Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. | [optional] +**upstreamUrl** | **String** | The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. | +**verifySsl** | **Boolean** | If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. | [optional] + + + +## Enum: AuthModeEnum +Name | Value +---- | ----- +NONE | "None" +USERNAME_AND_PASSWORD | "Username and Password" + + + +## Enum: ModeEnum +Name | Value +---- | ----- +PROXY_ONLY | "Proxy Only" +CACHE_AND_PROXY | "Cache and Proxy" + + + diff --git a/bindings/java/src/docs/NixUpstreamRequestPatch.md b/bindings/java/src/docs/NixUpstreamRequestPatch.md new file mode 100644 index 00000000..d92f3865 --- /dev/null +++ b/bindings/java/src/docs/NixUpstreamRequestPatch.md @@ -0,0 +1,38 @@ + +# NixUpstreamRequestPatch + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**authMode** | [**AuthModeEnum**](#AuthModeEnum) | The authentication mode to use when accessing this upstream. | [optional] +**authSecret** | **String** | Secret to provide with requests to upstream. | [optional] +**authUsername** | **String** | Username to provide with requests to upstream. | [optional] +**extraHeader1** | **String** | The key for extra header #1 to send to upstream. | [optional] +**extraHeader2** | **String** | The key for extra header #2 to send to upstream. | [optional] +**extraValue1** | **String** | The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] +**extraValue2** | **String** | The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] +**isActive** | **Boolean** | Whether or not this upstream is active and ready for requests. | [optional] +**mode** | [**ModeEnum**](#ModeEnum) | The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. | [optional] +**name** | **String** | A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. | [optional] +**priority** | **java.math.BigInteger** | Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. | [optional] +**upstreamUrl** | **String** | The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. | [optional] +**verifySsl** | **Boolean** | If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. | [optional] + + + +## Enum: AuthModeEnum +Name | Value +---- | ----- +NONE | "None" +USERNAME_AND_PASSWORD | "Username and Password" + + + +## Enum: ModeEnum +Name | Value +---- | ----- +PROXY_ONLY | "Proxy Only" +CACHE_AND_PROXY | "Cache and Proxy" + + + diff --git a/bindings/java/src/docs/NpmPackageUpload.md b/bindings/java/src/docs/NpmPackageUpload.md index 5e29bfd6..54521858 100644 --- a/bindings/java/src/docs/NpmPackageUpload.md +++ b/bindings/java/src/docs/NpmPackageUpload.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -77,18 +78,21 @@ Name | Type | Description | Notes **statusStr** | **String** | | [optional] **statusUpdatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package status was updated at. | [optional] **statusUrl** | **String** | | [optional] +**storePath** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **syncFinishedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package sync was finished at. | [optional] **syncProgress** | **java.math.BigInteger** | Synchronisation progress (from 0-100) | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | 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. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/NpmPackageUploadRequest.md b/bindings/java/src/docs/NpmPackageUploadRequest.md index b3f94c1e..4ce3a24c 100644 --- a/bindings/java/src/docs/NpmPackageUploadRequest.md +++ b/bindings/java/src/docs/NpmPackageUploadRequest.md @@ -4,10 +4,12 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **npmDistTag** | **String** | The default npm dist-tag for this package/version - This will replace any other package/version if they are using the same tag. | [optional] **packageFile** | **String** | The primary file for the package. | **republish** | **Boolean** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/NugetPackageUpload.md b/bindings/java/src/docs/NugetPackageUpload.md index 98c7c520..973f6afc 100644 --- a/bindings/java/src/docs/NugetPackageUpload.md +++ b/bindings/java/src/docs/NugetPackageUpload.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -77,18 +78,21 @@ Name | Type | Description | Notes **statusStr** | **String** | | [optional] **statusUpdatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package status was updated at. | [optional] **statusUrl** | **String** | | [optional] +**storePath** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **syncFinishedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package sync was finished at. | [optional] **syncProgress** | **java.math.BigInteger** | Synchronisation progress (from 0-100) | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | 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. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/NugetPackageUploadRequest.md b/bindings/java/src/docs/NugetPackageUploadRequest.md index 53795056..e8475acf 100644 --- a/bindings/java/src/docs/NugetPackageUploadRequest.md +++ b/bindings/java/src/docs/NugetPackageUploadRequest.md @@ -4,10 +4,12 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **packageFile** | **String** | The primary file for the package. | **republish** | **Boolean** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **symbolsFile** | **String** | Uploads a symbols file as a separate package | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/OrganizationUsage.md b/bindings/java/src/docs/OrganizationUsage.md new file mode 100644 index 00000000..3e5b2b9a --- /dev/null +++ b/bindings/java/src/docs/OrganizationUsage.md @@ -0,0 +1,13 @@ + +# OrganizationUsage + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bandwidthMaximum** | **java.math.BigInteger** | The maximum allowed package delivery overage in GB for this product. | [optional] +**bandwidthOverageLimit** | **java.math.BigInteger** | The on-demand limit for package delivery usage (in GBs). | [optional] +**storageMaximum** | **java.math.BigInteger** | The maximum allowed artifact data overage in GB for this product. | [optional] +**storageOverageLimit** | **java.math.BigInteger** | The on-demand limit for artifact data usage (in GBs). | [optional] + + + diff --git a/bindings/java/src/docs/OrganizationUsageUpdate.md b/bindings/java/src/docs/OrganizationUsageUpdate.md new file mode 100644 index 00000000..23784cd6 --- /dev/null +++ b/bindings/java/src/docs/OrganizationUsageUpdate.md @@ -0,0 +1,12 @@ + +# OrganizationUsageUpdate + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allowOpenSourceOverage** | **Boolean** | | [optional] +**bandwidthOverageLimit** | **java.math.BigInteger** | | [optional] +**storageOverageLimit** | **java.math.BigInteger** | | [optional] + + + diff --git a/bindings/java/src/docs/OrganizationUsageUpdateRequestPatch.md b/bindings/java/src/docs/OrganizationUsageUpdateRequestPatch.md new file mode 100644 index 00000000..1258d349 --- /dev/null +++ b/bindings/java/src/docs/OrganizationUsageUpdateRequestPatch.md @@ -0,0 +1,12 @@ + +# OrganizationUsageUpdateRequestPatch + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allowOpenSourceOverage** | **Boolean** | | [optional] +**bandwidthOverageLimit** | **java.math.BigInteger** | | [optional] +**storageOverageLimit** | **java.math.BigInteger** | | [optional] + + + diff --git a/bindings/java/src/docs/OrgsApi.md b/bindings/java/src/docs/OrgsApi.md index 7b299147..a2d22cf4 100644 --- a/bindings/java/src/docs/OrgsApi.md +++ b/bindings/java/src/docs/OrgsApi.md @@ -46,6 +46,7 @@ Method | HTTP request | Description [**orgsOpenidConnectRead**](OrgsApi.md#orgsOpenidConnectRead) | **GET** /orgs/{org}/openid-connect/{slug_perm}/ | Retrieve a specific OpenID Connect provider setting for the org. [**orgsOpenidConnectUpdate**](OrgsApi.md#orgsOpenidConnectUpdate) | **PUT** /orgs/{org}/openid-connect/{slug_perm}/ | Update a specific OpenID Connect provider setting for the org. [**orgsRead**](OrgsApi.md#orgsRead) | **GET** /orgs/{org}/ | Get the details for the specific organization. +[**orgsRetrieveUsageLimits**](OrgsApi.md#orgsRetrieveUsageLimits) | **GET** /orgs/{org}/usage-limits/ | [**orgsSamlAuthenticationPartialUpdate**](OrgsApi.md#orgsSamlAuthenticationPartialUpdate) | **PATCH** /orgs/{org}/saml-authentication | Update the SAML Authentication settings for this Organization. [**orgsSamlAuthenticationRead**](OrgsApi.md#orgsSamlAuthenticationRead) | **GET** /orgs/{org}/saml-authentication | Retrieve the SAML Authentication settings for this Organization. [**orgsSamlGroupSyncCreate**](OrgsApi.md#orgsSamlGroupSyncCreate) | **POST** /orgs/{org}/saml-group-sync/ | Create a new SAML Group Sync mapping within an organization. @@ -68,6 +69,7 @@ Method | HTTP request | Description [**orgsTeamsMembersUpdate**](OrgsApi.md#orgsTeamsMembersUpdate) | **PUT** /orgs/{org}/teams/{team}/members | Replace all team members. [**orgsTeamsPartialUpdate**](OrgsApi.md#orgsTeamsPartialUpdate) | **PATCH** /orgs/{org}/teams/{team}/ | Update a specific team in a organization. [**orgsTeamsRead**](OrgsApi.md#orgsTeamsRead) | **GET** /orgs/{org}/teams/{team}/ | Get the details of a specific team within an organization. +[**orgsUpdateUsageLimits**](OrgsApi.md#orgsUpdateUsageLimits) | **PATCH** /orgs/{org}/usage-limits/ | [**orgsVulnerabilityPolicyCreate**](OrgsApi.md#orgsVulnerabilityPolicyCreate) | **POST** /orgs/{org}/vulnerability-policy/ | Create a package vulnerability policy. [**orgsVulnerabilityPolicyDelete**](OrgsApi.md#orgsVulnerabilityPolicyDelete) | **DELETE** /orgs/{org}/vulnerability-policy/{slug_perm}/ | Delete a package vulnerability policy. [**orgsVulnerabilityPolicyEvaluationCreate**](OrgsApi.md#orgsVulnerabilityPolicyEvaluationCreate) | **POST** /orgs/{org}/vulnerability-policy/{policy_slug_perm}/evaluation/ | Create an evaluation request for this policy. @@ -2727,6 +2729,66 @@ Name | Type | Description | Notes [apikey](../README.md#apikey), [basic](../README.md#basic) +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **orgsRetrieveUsageLimits** +> InlineResponse200 orgsRetrieveUsageLimits(org) + + + + + +### Example +```java +// Import classes: +//import io.cloudsmith.api.ApiClient; +//import io.cloudsmith.api.ApiException; +//import io.cloudsmith.api.Configuration; +//import io.cloudsmith.api.auth.*; +//import io.cloudsmith.api.apis.OrgsApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: apikey +ApiKeyAuth apikey = (ApiKeyAuth) defaultClient.getAuthentication("apikey"); +apikey.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//apikey.setApiKeyPrefix("Token"); + +// Configure HTTP basic authorization: basic +HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic"); +basic.setUsername("YOUR USERNAME"); +basic.setPassword("YOUR PASSWORD"); + +OrgsApi apiInstance = new OrgsApi(); +String org = "org_example"; // String | +try { + InlineResponse200 result = apiInstance.orgsRetrieveUsageLimits(org); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling OrgsApi#orgsRetrieveUsageLimits"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org** | **String**| | + +### Return type + +[**InlineResponse200**](InlineResponse200.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + ### HTTP request headers - **Content-Type**: application/json @@ -4104,6 +4166,68 @@ Name | Type | Description | Notes [apikey](../README.md#apikey), [basic](../README.md#basic) +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **orgsUpdateUsageLimits** +> InlineResponse2001 orgsUpdateUsageLimits(org, data) + + + + + +### Example +```java +// Import classes: +//import io.cloudsmith.api.ApiClient; +//import io.cloudsmith.api.ApiException; +//import io.cloudsmith.api.Configuration; +//import io.cloudsmith.api.auth.*; +//import io.cloudsmith.api.apis.OrgsApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: apikey +ApiKeyAuth apikey = (ApiKeyAuth) defaultClient.getAuthentication("apikey"); +apikey.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//apikey.setApiKeyPrefix("Token"); + +// Configure HTTP basic authorization: basic +HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic"); +basic.setUsername("YOUR USERNAME"); +basic.setPassword("YOUR PASSWORD"); + +OrgsApi apiInstance = new OrgsApi(); +String org = "org_example"; // String | +OrganizationUsageUpdateRequestPatch data = new OrganizationUsageUpdateRequestPatch(); // OrganizationUsageUpdateRequestPatch | +try { + InlineResponse2001 result = apiInstance.orgsUpdateUsageLimits(org, data); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling OrgsApi#orgsUpdateUsageLimits"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org** | **String**| | + **data** | [**OrganizationUsageUpdateRequestPatch**](OrganizationUsageUpdateRequestPatch.md)| | [optional] + +### Return type + +[**InlineResponse2001**](InlineResponse2001.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + ### HTTP request headers - **Content-Type**: application/json diff --git a/bindings/java/src/docs/P2PackageUpload.md b/bindings/java/src/docs/P2PackageUpload.md index 043cbd29..0bd6ee08 100644 --- a/bindings/java/src/docs/P2PackageUpload.md +++ b/bindings/java/src/docs/P2PackageUpload.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -77,18 +78,21 @@ Name | Type | Description | Notes **statusStr** | **String** | | [optional] **statusUpdatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package status was updated at. | [optional] **statusUrl** | **String** | | [optional] +**storePath** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **syncFinishedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package sync was finished at. | [optional] **syncProgress** | **java.math.BigInteger** | Synchronisation progress (from 0-100) | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | 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. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/P2PackageUploadRequest.md b/bindings/java/src/docs/P2PackageUploadRequest.md index 3c011cc4..4404a853 100644 --- a/bindings/java/src/docs/P2PackageUploadRequest.md +++ b/bindings/java/src/docs/P2PackageUploadRequest.md @@ -4,9 +4,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **packageFile** | **String** | The primary file for the package. | **republish** | **Boolean** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/PackageCopy.md b/bindings/java/src/docs/PackageCopy.md index 9c4dbe00..ab4b31cb 100644 --- a/bindings/java/src/docs/PackageCopy.md +++ b/bindings/java/src/docs/PackageCopy.md @@ -34,6 +34,7 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -78,6 +79,7 @@ Name | Type | Description | Notes **statusStr** | **String** | | [optional] **statusUpdatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package status was updated at. | [optional] **statusUrl** | **String** | | [optional] +**storePath** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **syncFinishedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package sync was finished at. | [optional] @@ -85,12 +87,14 @@ Name | Type | Description | Notes **tags** | [**Tags**](Tags.md) | | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | 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. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/PackageCopyRequest.md b/bindings/java/src/docs/PackageCopyRequest.md index 8b0c3349..94d6a0bf 100644 --- a/bindings/java/src/docs/PackageCopyRequest.md +++ b/bindings/java/src/docs/PackageCopyRequest.md @@ -5,7 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **destination** | **String** | The name of the destination repository without the namespace. | +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **republish** | **Boolean** | If true, the package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/PackageDetail.md b/bindings/java/src/docs/PackageDetail.md new file mode 100644 index 00000000..5f058880 --- /dev/null +++ b/bindings/java/src/docs/PackageDetail.md @@ -0,0 +1,116 @@ + +# PackageDetail + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**architectures** | [**List<Architecture>**](Architecture.md) | | [optional] +**cdnUrl** | **String** | | [optional] +**checksumMd5** | **String** | | [optional] +**checksumSha1** | **String** | | [optional] +**checksumSha256** | **String** | | [optional] +**checksumSha512** | **String** | | [optional] +**dependenciesChecksumMd5** | **String** | A checksum of all of the package's dependencies. | [optional] +**dependenciesUrl** | **String** | | [optional] +**description** | **String** | A textual description of this package. | [optional] +**displayName** | **String** | | [optional] +**distro** | [**Distribution**](Distribution.md) | | [optional] +**distroVersion** | [**DistributionVersion**](DistributionVersion.md) | | [optional] +**downloads** | **java.math.BigInteger** | | [optional] +**epoch** | **java.math.BigInteger** | The epoch of the package version (if any). | [optional] +**extension** | **String** | | [optional] +**filename** | **String** | | [optional] +**filepath** | **String** | Full path to the file, including filename e.g. bin/utils/tool.tar.gz | [optional] +**files** | [**List<PackageFile>**](PackageFile.md) | | [optional] +**format** | **String** | | [optional] +**formatUrl** | **String** | | [optional] +**freeableStorage** | **java.math.BigInteger** | Amount of storage that will be freed if this package is deleted | [optional] +**fullyQualifiedName** | **String** | | [optional] +**hasDependencies** | **Boolean** | Whether the package has any dependencies (top-level or from its SBOM). | [optional] +**identifierPerm** | **String** | Unique and permanent identifier for the package. | [optional] +**identifiers** | **Map<String, String>** | Return a map of identifier field names and their values. | [optional] +**indexed** | **Boolean** | | [optional] +**isCancellable** | **Boolean** | | [optional] +**isCopyable** | **Boolean** | | [optional] +**isDeleteable** | **Boolean** | | [optional] +**isDownloadable** | **Boolean** | | [optional] +**isHidden** | **Boolean** | | [optional] +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] +**isMoveable** | **Boolean** | | [optional] +**isQuarantinable** | **Boolean** | | [optional] +**isQuarantined** | **Boolean** | | [optional] +**isResyncable** | **Boolean** | | [optional] +**isSecurityScannable** | **Boolean** | | [optional] +**isSyncAwaiting** | **Boolean** | | [optional] +**isSyncCompleted** | **Boolean** | | [optional] +**isSyncFailed** | **Boolean** | | [optional] +**isSyncInFlight** | **Boolean** | | [optional] +**isSyncInProgress** | **Boolean** | | [optional] +**license** | **String** | The license of this package. | [optional] +**name** | **String** | The name of this package. | [optional] +**namespace** | **String** | | [optional] +**namespaceUrl** | **String** | | [optional] +**numFiles** | **java.math.BigInteger** | | [optional] +**originRepository** | **String** | | [optional] +**originRepositoryUrl** | **String** | | [optional] +**osiApproved** | **Boolean** | Whether the package's SPDX license is OSI-approved. | [optional] +**packageType** | **java.math.BigInteger** | The type of package contents. | [optional] +**policyViolated** | **Boolean** | Whether or not the package has violated any policy. | [optional] +**rawLicense** | **String** | The raw license string. | [optional] +**release** | **String** | The release of the package version (if any). | [optional] +**repository** | **String** | | [optional] +**repositoryUrl** | **String** | | [optional] +**securityScanCompletedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the security scanning was completed. | [optional] +**securityScanStartedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the security scanning was started. | [optional] +**securityScanStatus** | [**SecurityScanStatusEnum**](#SecurityScanStatusEnum) | | [optional] +**securityScanStatusUpdatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the security scanning status was updated. | [optional] +**selfHtmlUrl** | **String** | | [optional] +**selfUrl** | **String** | | [optional] +**selfWebappUrl** | **String** | | [optional] +**signatureUrl** | **String** | | [optional] +**size** | **java.math.BigInteger** | The calculated size of the package. | [optional] +**slug** | **String** | The public unique identifier for the package. | [optional] +**slugPerm** | **String** | | [optional] +**spdxLicense** | **String** | The SPDX license identifier for this package. | [optional] +**stage** | **java.math.BigInteger** | The synchronisation (in progress) stage of the package. | [optional] +**stageStr** | **String** | | [optional] +**stageUpdatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package stage was updated at. | [optional] +**status** | **java.math.BigInteger** | The synchronisation status of the package. | [optional] +**statusReason** | **String** | A textual description for the synchronous status reason (if any | [optional] +**statusStr** | **String** | | [optional] +**statusUpdatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package status was updated at. | [optional] +**statusUrl** | **String** | | [optional] +**storePath** | **String** | Absolute store path for the package, including store hash and name. | [optional] +**subtype** | **String** | | [optional] +**summary** | **String** | A one-liner synopsis of this package. | [optional] +**syncFinishedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package sync was finished at. | [optional] +**syncProgress** | **java.math.BigInteger** | Synchronisation progress (from 0-100) | [optional] +**tags** | [**Tags**](Tags.md) | | [optional] +**tagsAutomatic** | [**Tags**](Tags.md) | | [optional] +**tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | 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. | [optional] +**typeDisplay** | **String** | | [optional] +**uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] +**uploader** | **String** | | [optional] +**uploaderUrl** | **String** | | [optional] +**version** | **String** | The raw version for this package. | [optional] +**versionOrig** | **String** | | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] +**vulnerabilityScanResultsUrl** | **String** | | [optional] + + + +## Enum: SecurityScanStatusEnum +Name | Value +---- | ----- +AWAITING_SECURITY_SCAN | "Awaiting Security Scan" +SECURITY_SCANNING_IN_PROGRESS | "Security Scanning in Progress" +SCAN_DETECTED_VULNERABILITIES | "Scan Detected Vulnerabilities" +SCAN_DETECTED_NO_VULNERABILITIES | "Scan Detected No Vulnerabilities" +SECURITY_SCANNING_DISABLED | "Security Scanning Disabled" +SECURITY_SCANNING_FAILED | "Security Scanning Failed" +SECURITY_SCANNING_SKIPPED | "Security Scanning Skipped" +SECURITY_SCANNING_NOT_SUPPORTED | "Security Scanning Not Supported" + + + diff --git a/bindings/java/src/docs/PackageLicense.md b/bindings/java/src/docs/PackageLicense.md index 74ce2a1b..2b18b819 100644 --- a/bindings/java/src/docs/PackageLicense.md +++ b/bindings/java/src/docs/PackageLicense.md @@ -4,10 +4,12 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **licenseNotes** | **String** | | [optional] **licenseOverride** | [**LicenseOverrideEnum**](#LicenseOverrideEnum) | | [optional] **licenseUrl** | **String** | | [optional] **spdxLicense** | **String** | | +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/PackageLicenseRequestPatch.md b/bindings/java/src/docs/PackageLicenseRequestPatch.md index 98f935a7..8c3868c4 100644 --- a/bindings/java/src/docs/PackageLicenseRequestPatch.md +++ b/bindings/java/src/docs/PackageLicenseRequestPatch.md @@ -5,10 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **action** | [**ActionEnum**](#ActionEnum) | | [optional] +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **licenseNotes** | **String** | | [optional] **licenseOverride** | [**LicenseOverrideEnum**](#LicenseOverrideEnum) | | [optional] **licenseUrl** | **String** | | [optional] -**spdxLicense** | **String** | | [optional] +**spdxLicense** | **String** | | +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/PackageMove.md b/bindings/java/src/docs/PackageMove.md index 9b23b35e..62a69528 100644 --- a/bindings/java/src/docs/PackageMove.md +++ b/bindings/java/src/docs/PackageMove.md @@ -34,6 +34,7 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -78,6 +79,7 @@ Name | Type | Description | Notes **statusStr** | **String** | | [optional] **statusUpdatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package status was updated at. | [optional] **statusUrl** | **String** | | [optional] +**storePath** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **syncFinishedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package sync was finished at. | [optional] @@ -85,12 +87,14 @@ Name | Type | Description | Notes **tags** | [**Tags**](Tags.md) | | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | 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. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/PackageMoveRequest.md b/bindings/java/src/docs/PackageMoveRequest.md index b19321e3..7e8bf7cd 100644 --- a/bindings/java/src/docs/PackageMoveRequest.md +++ b/bindings/java/src/docs/PackageMoveRequest.md @@ -5,6 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **destination** | **String** | The name of the destination repository without the namespace. | +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/PackageQuarantine.md b/bindings/java/src/docs/PackageQuarantine.md index c3fd4173..dbad374c 100644 --- a/bindings/java/src/docs/PackageQuarantine.md +++ b/bindings/java/src/docs/PackageQuarantine.md @@ -34,6 +34,7 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -77,6 +78,7 @@ Name | Type | Description | Notes **statusStr** | **String** | | [optional] **statusUpdatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package status was updated at. | [optional] **statusUrl** | **String** | | [optional] +**storePath** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **syncFinishedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package sync was finished at. | [optional] @@ -84,12 +86,14 @@ Name | Type | Description | Notes **tags** | [**Tags**](Tags.md) | | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | 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. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/PackageQuarantineRequest.md b/bindings/java/src/docs/PackageQuarantineRequest.md index ba057859..3daffe64 100644 --- a/bindings/java/src/docs/PackageQuarantineRequest.md +++ b/bindings/java/src/docs/PackageQuarantineRequest.md @@ -4,8 +4,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **release** | **Boolean** | If true, the package is released from quarantine. | [optional] **restore** | **Boolean** | If true, the package is released from quarantine. Note: This field is deprecated, please use 'release' instead. | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/PackageResync.md b/bindings/java/src/docs/PackageResync.md index 82330ee3..fc8eb469 100644 --- a/bindings/java/src/docs/PackageResync.md +++ b/bindings/java/src/docs/PackageResync.md @@ -34,6 +34,7 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -78,6 +79,7 @@ Name | Type | Description | Notes **statusStr** | **String** | | [optional] **statusUpdatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package status was updated at. | [optional] **statusUrl** | **String** | | [optional] +**storePath** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **syncFinishedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package sync was finished at. | [optional] @@ -85,12 +87,14 @@ Name | Type | Description | Notes **tags** | [**Tags**](Tags.md) | | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | 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. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/PackageTag.md b/bindings/java/src/docs/PackageTag.md index 8a17f582..e2d05d8c 100644 --- a/bindings/java/src/docs/PackageTag.md +++ b/bindings/java/src/docs/PackageTag.md @@ -35,6 +35,7 @@ Name | Type | Description | Notes **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] **isImmutable** | **Boolean** | If true, created tags will be immutable. An immutable flag is a tag that cannot be removed from a package. | [optional] +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -79,18 +80,21 @@ Name | Type | Description | Notes **statusStr** | **String** | | [optional] **statusUpdatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package status was updated at. | [optional] **statusUrl** | **String** | | [optional] +**storePath** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **syncFinishedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package sync was finished at. | [optional] **syncProgress** | **java.math.BigInteger** | Synchronisation progress (from 0-100) | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | 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. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/PackageTagRequest.md b/bindings/java/src/docs/PackageTagRequest.md index b2162981..004c5341 100644 --- a/bindings/java/src/docs/PackageTagRequest.md +++ b/bindings/java/src/docs/PackageTagRequest.md @@ -6,7 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **action** | [**ActionEnum**](#ActionEnum) | | [optional] **isImmutable** | **Boolean** | If true, created tags will be immutable. An immutable flag is a tag that cannot be removed from a package. | [optional] +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **tags** | **List<String>** | A list of tags to apply the action to. Not required for clears. | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/PackageVulnerability.md b/bindings/java/src/docs/PackageVulnerability.md index eabbaeb6..7108ce56 100644 --- a/bindings/java/src/docs/PackageVulnerability.md +++ b/bindings/java/src/docs/PackageVulnerability.md @@ -5,9 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identifier** | **String** | | +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **name** | **String** | The name of this package. | [optional] **url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/PackagesApi.md b/bindings/java/src/docs/PackagesApi.md index ed49fec1..d766920e 100644 --- a/bindings/java/src/docs/PackagesApi.md +++ b/bindings/java/src/docs/PackagesApi.md @@ -35,6 +35,7 @@ Method | HTTP request | Description [**packagesUploadLuarocks**](PackagesApi.md#packagesUploadLuarocks) | **POST** /packages/{owner}/{repo}/upload/luarocks/ | Create a new LuaRocks package [**packagesUploadMaven**](PackagesApi.md#packagesUploadMaven) | **POST** /packages/{owner}/{repo}/upload/maven/ | Create a new Maven package [**packagesUploadMcp**](PackagesApi.md#packagesUploadMcp) | **POST** /packages/{owner}/{repo}/upload/mcp/ | Create a new MCP package +[**packagesUploadNix**](PackagesApi.md#packagesUploadNix) | **POST** /packages/{owner}/{repo}/upload/nix/ | Create a new Nix package [**packagesUploadNpm**](PackagesApi.md#packagesUploadNpm) | **POST** /packages/{owner}/{repo}/upload/npm/ | Create a new npm package [**packagesUploadNuget**](PackagesApi.md#packagesUploadNuget) | **POST** /packages/{owner}/{repo}/upload/nuget/ | Create a new NuGet package [**packagesUploadP2**](PackagesApi.md#packagesUploadP2) | **POST** /packages/{owner}/{repo}/upload/p2/ | Create a new P2 package @@ -64,6 +65,7 @@ Method | HTTP request | Description [**packagesValidateUploadLuarocks**](PackagesApi.md#packagesValidateUploadLuarocks) | **POST** /packages/{owner}/{repo}/validate-upload/luarocks/ | Validate parameters for create LuaRocks package [**packagesValidateUploadMaven**](PackagesApi.md#packagesValidateUploadMaven) | **POST** /packages/{owner}/{repo}/validate-upload/maven/ | Validate parameters for create Maven package [**packagesValidateUploadMcp**](PackagesApi.md#packagesValidateUploadMcp) | **POST** /packages/{owner}/{repo}/validate-upload/mcp/ | Validate parameters for create MCP package +[**packagesValidateUploadNix**](PackagesApi.md#packagesValidateUploadNix) | **POST** /packages/{owner}/{repo}/validate-upload/nix/ | Validate parameters for create Nix package [**packagesValidateUploadNpm**](PackagesApi.md#packagesValidateUploadNpm) | **POST** /packages/{owner}/{repo}/validate-upload/npm/ | Validate parameters for create npm package [**packagesValidateUploadNuget**](PackagesApi.md#packagesValidateUploadNuget) | **POST** /packages/{owner}/{repo}/validate-upload/nuget/ | Validate parameters for create NuGet package [**packagesValidateUploadP2**](PackagesApi.md#packagesValidateUploadP2) | **POST** /packages/{owner}/{repo}/validate-upload/p2/ | Validate parameters for create P2 package @@ -274,7 +276,7 @@ Name | Type | Description | Notes # **packagesGroupsList** -> InlineResponse200 packagesGroupsList(owner, repo, page, pageSize, groupBy, hideSubcomponents, includeConnectedRepositories, query, sort) +> InlineResponse2002 packagesGroupsList(owner, repo, page, pageSize, groupBy, hideSubcomponents, includeConnectedRepositories, query, sort) Return a list of Package Groups in a repository. @@ -313,7 +315,7 @@ Boolean includeConnectedRepositories = false; // Boolean | If true, include pack String query = ""; // String | A search term for querying names, filenames, versions, distributions, architectures, formats, or statuses of packages. String sort = "name"; // String | A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name, count, num_downloads, size, last_push, backend_kind. try { - InlineResponse200 result = apiInstance.packagesGroupsList(owner, repo, page, pageSize, groupBy, hideSubcomponents, includeConnectedRepositories, query, sort); + InlineResponse2002 result = apiInstance.packagesGroupsList(owner, repo, page, pageSize, groupBy, hideSubcomponents, includeConnectedRepositories, query, sort); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling PackagesApi#packagesGroupsList"); @@ -337,7 +339,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse200**](InlineResponse200.md) +[**InlineResponse2002**](InlineResponse2002.md) ### Authorization @@ -554,7 +556,7 @@ Name | Type | Description | Notes # **packagesRead** -> ModelPackage packagesRead(owner, repo, identifier, includeConnectedRepositories) +> PackageDetail packagesRead(owner, repo, identifier, includeConnectedRepositories) Get a specific package in a repository. @@ -588,7 +590,7 @@ String repo = "repo_example"; // String | String identifier = "identifier_example"; // String | Boolean includeConnectedRepositories = false; // Boolean | If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. try { - ModelPackage result = apiInstance.packagesRead(owner, repo, identifier, includeConnectedRepositories); + PackageDetail result = apiInstance.packagesRead(owner, repo, identifier, includeConnectedRepositories); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling PackagesApi#packagesRead"); @@ -607,7 +609,7 @@ Name | Type | Description | Notes ### Return type -[**ModelPackage**](ModelPackage.md) +[**PackageDetail**](PackageDetail.md) ### Authorization @@ -2091,6 +2093,70 @@ Name | Type | Description | Notes [apikey](../README.md#apikey), [basic](../README.md#basic) +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **packagesUploadNix** +> NixPackageUpload packagesUploadNix(owner, repo, data) + +Create a new Nix package + +Create a new Nix package + +### Example +```java +// Import classes: +//import io.cloudsmith.api.ApiClient; +//import io.cloudsmith.api.ApiException; +//import io.cloudsmith.api.Configuration; +//import io.cloudsmith.api.auth.*; +//import io.cloudsmith.api.apis.PackagesApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: apikey +ApiKeyAuth apikey = (ApiKeyAuth) defaultClient.getAuthentication("apikey"); +apikey.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//apikey.setApiKeyPrefix("Token"); + +// Configure HTTP basic authorization: basic +HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic"); +basic.setUsername("YOUR USERNAME"); +basic.setPassword("YOUR PASSWORD"); + +PackagesApi apiInstance = new PackagesApi(); +String owner = "owner_example"; // String | +String repo = "repo_example"; // String | +NixPackageUploadRequest data = new NixPackageUploadRequest(); // NixPackageUploadRequest | +try { + NixPackageUpload result = apiInstance.packagesUploadNix(owner, repo, data); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling PackagesApi#packagesUploadNix"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **repo** | **String**| | + **data** | [**NixPackageUploadRequest**](NixPackageUploadRequest.md)| | [optional] + +### Return type + +[**NixPackageUpload**](NixPackageUpload.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + ### HTTP request headers - **Content-Type**: application/json @@ -3929,6 +3995,69 @@ null (empty response body) [apikey](../README.md#apikey), [basic](../README.md#basic) +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **packagesValidateUploadNix** +> packagesValidateUploadNix(owner, repo, data) + +Validate parameters for create Nix package + +Validate parameters for create Nix package + +### Example +```java +// Import classes: +//import io.cloudsmith.api.ApiClient; +//import io.cloudsmith.api.ApiException; +//import io.cloudsmith.api.Configuration; +//import io.cloudsmith.api.auth.*; +//import io.cloudsmith.api.apis.PackagesApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: apikey +ApiKeyAuth apikey = (ApiKeyAuth) defaultClient.getAuthentication("apikey"); +apikey.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//apikey.setApiKeyPrefix("Token"); + +// Configure HTTP basic authorization: basic +HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic"); +basic.setUsername("YOUR USERNAME"); +basic.setPassword("YOUR PASSWORD"); + +PackagesApi apiInstance = new PackagesApi(); +String owner = "owner_example"; // String | +String repo = "repo_example"; // String | +NixPackageUploadRequest data = new NixPackageUploadRequest(); // NixPackageUploadRequest | +try { + apiInstance.packagesValidateUploadNix(owner, repo, data); +} catch (ApiException e) { + System.err.println("Exception when calling PackagesApi#packagesValidateUploadNix"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **repo** | **String**| | + **data** | [**NixPackageUploadRequest**](NixPackageUploadRequest.md)| | [optional] + +### Return type + +null (empty response body) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + ### HTTP request headers - **Content-Type**: application/json diff --git a/bindings/java/src/docs/PythonPackageUpload.md b/bindings/java/src/docs/PythonPackageUpload.md index 9d6f064c..bd8503bf 100644 --- a/bindings/java/src/docs/PythonPackageUpload.md +++ b/bindings/java/src/docs/PythonPackageUpload.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -77,18 +78,21 @@ Name | Type | Description | Notes **statusStr** | **String** | | [optional] **statusUpdatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package status was updated at. | [optional] **statusUrl** | **String** | | [optional] +**storePath** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **syncFinishedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package sync was finished at. | [optional] **syncProgress** | **java.math.BigInteger** | Synchronisation progress (from 0-100) | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | 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. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/PythonPackageUploadRequest.md b/bindings/java/src/docs/PythonPackageUploadRequest.md index 7b1fd06e..8ee014a6 100644 --- a/bindings/java/src/docs/PythonPackageUploadRequest.md +++ b/bindings/java/src/docs/PythonPackageUploadRequest.md @@ -4,9 +4,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **packageFile** | **String** | The primary file for the package. | **republish** | **Boolean** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/RawPackageUpload.md b/bindings/java/src/docs/RawPackageUpload.md index e8973f52..8fb64be0 100644 --- a/bindings/java/src/docs/RawPackageUpload.md +++ b/bindings/java/src/docs/RawPackageUpload.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -77,18 +78,21 @@ Name | Type | Description | Notes **statusStr** | **String** | | [optional] **statusUpdatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package status was updated at. | [optional] **statusUrl** | **String** | | [optional] +**storePath** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **syncFinishedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package sync was finished at. | [optional] **syncProgress** | **java.math.BigInteger** | Synchronisation progress (from 0-100) | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | 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. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/RawPackageUploadRequest.md b/bindings/java/src/docs/RawPackageUploadRequest.md index b3f8d245..1248040d 100644 --- a/bindings/java/src/docs/RawPackageUploadRequest.md +++ b/bindings/java/src/docs/RawPackageUploadRequest.md @@ -6,12 +6,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **contentType** | **String** | A custom content/media (also known as MIME) type to be sent when downloading this file. By default Cloudsmith will attempt to detect the type, but if you need to override it, you can specify it here. | [optional] **description** | **String** | A textual description of this package. | [optional] +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **name** | **String** | The name of this package. | [optional] **packageFile** | **String** | The primary file for the package. | **republish** | **Boolean** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] **version** | **String** | The raw version for this package. | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/RecycleBinPackage.md b/bindings/java/src/docs/RecycleBinPackage.md index 993605a6..224034e7 100644 --- a/bindings/java/src/docs/RecycleBinPackage.md +++ b/bindings/java/src/docs/RecycleBinPackage.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **identifiers** | **Map<String, String>** | | [optional] **invokedRetentionRule** | **Map<String, String>** | Information about the retention rule that triggered deletion (if any). | [optional] **isDeleteable** | **Boolean** | | [optional] +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isQuarantined** | **Boolean** | | [optional] **isRestorable** | **Boolean** | | [optional] **name** | **String** | The name of this package. | [optional] @@ -28,6 +29,7 @@ Name | Type | Description | Notes **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/ReposApi.md b/bindings/java/src/docs/ReposApi.md index a430cb1b..4cae6161 100644 --- a/bindings/java/src/docs/ReposApi.md +++ b/bindings/java/src/docs/ReposApi.md @@ -124,6 +124,12 @@ Method | HTTP request | Description [**reposUpstreamMavenPartialUpdate**](ReposApi.md#reposUpstreamMavenPartialUpdate) | **PATCH** /repos/{owner}/{identifier}/upstream/maven/{slug_perm}/ | Partially update a Maven upstream config for this repository. [**reposUpstreamMavenRead**](ReposApi.md#reposUpstreamMavenRead) | **GET** /repos/{owner}/{identifier}/upstream/maven/{slug_perm}/ | Retrieve a Maven upstream config for this repository. [**reposUpstreamMavenUpdate**](ReposApi.md#reposUpstreamMavenUpdate) | **PUT** /repos/{owner}/{identifier}/upstream/maven/{slug_perm}/ | Update a Maven upstream config for this repository. +[**reposUpstreamNixCreate**](ReposApi.md#reposUpstreamNixCreate) | **POST** /repos/{owner}/{identifier}/upstream/nix/ | Create a Nix upstream config for this repository. +[**reposUpstreamNixDelete**](ReposApi.md#reposUpstreamNixDelete) | **DELETE** /repos/{owner}/{identifier}/upstream/nix/{slug_perm}/ | Delete a Nix upstream config for this repository. +[**reposUpstreamNixList**](ReposApi.md#reposUpstreamNixList) | **GET** /repos/{owner}/{identifier}/upstream/nix/ | List Nix upstream configs for this repository. +[**reposUpstreamNixPartialUpdate**](ReposApi.md#reposUpstreamNixPartialUpdate) | **PATCH** /repos/{owner}/{identifier}/upstream/nix/{slug_perm}/ | Partially update a Nix upstream config for this repository. +[**reposUpstreamNixRead**](ReposApi.md#reposUpstreamNixRead) | **GET** /repos/{owner}/{identifier}/upstream/nix/{slug_perm}/ | Retrieve a Nix upstream config for this repository. +[**reposUpstreamNixUpdate**](ReposApi.md#reposUpstreamNixUpdate) | **PUT** /repos/{owner}/{identifier}/upstream/nix/{slug_perm}/ | Update a Nix upstream config for this repository. [**reposUpstreamNpmCreate**](ReposApi.md#reposUpstreamNpmCreate) | **POST** /repos/{owner}/{identifier}/upstream/npm/ | Create a npm upstream config for this repository. [**reposUpstreamNpmDelete**](ReposApi.md#reposUpstreamNpmDelete) | **DELETE** /repos/{owner}/{identifier}/upstream/npm/{slug_perm}/ | Delete a npm upstream config for this repository. [**reposUpstreamNpmList**](ReposApi.md#reposUpstreamNpmList) | **GET** /repos/{owner}/{identifier}/upstream/npm/ | List npm upstream configs for this repository. @@ -482,7 +488,7 @@ null (empty response body) # **reposConnectedList** -> InlineResponse2001 reposConnectedList(owner, identifier, page, pageSize) +> InlineResponse2003 reposConnectedList(owner, identifier, page, pageSize) List connected repositories for this repository. @@ -516,7 +522,7 @@ String identifier = "identifier_example"; // String | java.math.BigInteger page = new java.math.BigInteger(); // java.math.BigInteger | A page number within the paginated result set. java.math.BigInteger pageSize = new java.math.BigInteger(); // java.math.BigInteger | Number of results to return per page. try { - InlineResponse2001 result = apiInstance.reposConnectedList(owner, identifier, page, pageSize); + InlineResponse2003 result = apiInstance.reposConnectedList(owner, identifier, page, pageSize); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ReposApi#reposConnectedList"); @@ -535,7 +541,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse2001**](InlineResponse2001.md) +[**InlineResponse2003**](InlineResponse2003.md) ### Authorization @@ -7887,6 +7893,395 @@ Name | Type | Description | Notes [apikey](../README.md#apikey), [basic](../README.md#basic) +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **reposUpstreamNixCreate** +> NixUpstream reposUpstreamNixCreate(owner, identifier, data) + +Create a Nix upstream config for this repository. + +Create a Nix upstream config for this repository. + +### Example +```java +// Import classes: +//import io.cloudsmith.api.ApiClient; +//import io.cloudsmith.api.ApiException; +//import io.cloudsmith.api.Configuration; +//import io.cloudsmith.api.auth.*; +//import io.cloudsmith.api.apis.ReposApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: apikey +ApiKeyAuth apikey = (ApiKeyAuth) defaultClient.getAuthentication("apikey"); +apikey.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//apikey.setApiKeyPrefix("Token"); + +// Configure HTTP basic authorization: basic +HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic"); +basic.setUsername("YOUR USERNAME"); +basic.setPassword("YOUR PASSWORD"); + +ReposApi apiInstance = new ReposApi(); +String owner = "owner_example"; // String | +String identifier = "identifier_example"; // String | +NixUpstreamRequest data = new NixUpstreamRequest(); // NixUpstreamRequest | +try { + NixUpstream result = apiInstance.reposUpstreamNixCreate(owner, identifier, data); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ReposApi#reposUpstreamNixCreate"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **identifier** | **String**| | + **data** | [**NixUpstreamRequest**](NixUpstreamRequest.md)| | [optional] + +### Return type + +[**NixUpstream**](NixUpstream.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **reposUpstreamNixDelete** +> reposUpstreamNixDelete(owner, identifier, slugPerm) + +Delete a Nix upstream config for this repository. + +Delete a Nix upstream config for this repository. + +### Example +```java +// Import classes: +//import io.cloudsmith.api.ApiClient; +//import io.cloudsmith.api.ApiException; +//import io.cloudsmith.api.Configuration; +//import io.cloudsmith.api.auth.*; +//import io.cloudsmith.api.apis.ReposApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: apikey +ApiKeyAuth apikey = (ApiKeyAuth) defaultClient.getAuthentication("apikey"); +apikey.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//apikey.setApiKeyPrefix("Token"); + +// Configure HTTP basic authorization: basic +HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic"); +basic.setUsername("YOUR USERNAME"); +basic.setPassword("YOUR PASSWORD"); + +ReposApi apiInstance = new ReposApi(); +String owner = "owner_example"; // String | +String identifier = "identifier_example"; // String | +String slugPerm = "slugPerm_example"; // String | +try { + apiInstance.reposUpstreamNixDelete(owner, identifier, slugPerm); +} catch (ApiException e) { + System.err.println("Exception when calling ReposApi#reposUpstreamNixDelete"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **identifier** | **String**| | + **slugPerm** | **String**| | + +### Return type + +null (empty response body) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **reposUpstreamNixList** +> List<NixUpstream> reposUpstreamNixList(owner, identifier, page, pageSize) + +List Nix upstream configs for this repository. + +List Nix upstream configs for this repository. + +### Example +```java +// Import classes: +//import io.cloudsmith.api.ApiClient; +//import io.cloudsmith.api.ApiException; +//import io.cloudsmith.api.Configuration; +//import io.cloudsmith.api.auth.*; +//import io.cloudsmith.api.apis.ReposApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: apikey +ApiKeyAuth apikey = (ApiKeyAuth) defaultClient.getAuthentication("apikey"); +apikey.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//apikey.setApiKeyPrefix("Token"); + +// Configure HTTP basic authorization: basic +HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic"); +basic.setUsername("YOUR USERNAME"); +basic.setPassword("YOUR PASSWORD"); + +ReposApi apiInstance = new ReposApi(); +String owner = "owner_example"; // String | +String identifier = "identifier_example"; // String | +java.math.BigInteger page = new java.math.BigInteger(); // java.math.BigInteger | A page number within the paginated result set. +java.math.BigInteger pageSize = new java.math.BigInteger(); // java.math.BigInteger | Number of results to return per page. +try { + List result = apiInstance.reposUpstreamNixList(owner, identifier, page, pageSize); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ReposApi#reposUpstreamNixList"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **identifier** | **String**| | + **page** | **java.math.BigInteger**| A page number within the paginated result set. | [optional] + **pageSize** | **java.math.BigInteger**| Number of results to return per page. | [optional] + +### Return type + +[**List<NixUpstream>**](NixUpstream.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **reposUpstreamNixPartialUpdate** +> NixUpstream reposUpstreamNixPartialUpdate(owner, identifier, slugPerm, data) + +Partially update a Nix upstream config for this repository. + +Partially update a Nix upstream config for this repository. + +### Example +```java +// Import classes: +//import io.cloudsmith.api.ApiClient; +//import io.cloudsmith.api.ApiException; +//import io.cloudsmith.api.Configuration; +//import io.cloudsmith.api.auth.*; +//import io.cloudsmith.api.apis.ReposApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: apikey +ApiKeyAuth apikey = (ApiKeyAuth) defaultClient.getAuthentication("apikey"); +apikey.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//apikey.setApiKeyPrefix("Token"); + +// Configure HTTP basic authorization: basic +HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic"); +basic.setUsername("YOUR USERNAME"); +basic.setPassword("YOUR PASSWORD"); + +ReposApi apiInstance = new ReposApi(); +String owner = "owner_example"; // String | +String identifier = "identifier_example"; // String | +String slugPerm = "slugPerm_example"; // String | +NixUpstreamRequestPatch data = new NixUpstreamRequestPatch(); // NixUpstreamRequestPatch | +try { + NixUpstream result = apiInstance.reposUpstreamNixPartialUpdate(owner, identifier, slugPerm, data); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ReposApi#reposUpstreamNixPartialUpdate"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **identifier** | **String**| | + **slugPerm** | **String**| | + **data** | [**NixUpstreamRequestPatch**](NixUpstreamRequestPatch.md)| | [optional] + +### Return type + +[**NixUpstream**](NixUpstream.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **reposUpstreamNixRead** +> NixUpstream reposUpstreamNixRead(owner, identifier, slugPerm) + +Retrieve a Nix upstream config for this repository. + +Retrieve a Nix upstream config for this repository. + +### Example +```java +// Import classes: +//import io.cloudsmith.api.ApiClient; +//import io.cloudsmith.api.ApiException; +//import io.cloudsmith.api.Configuration; +//import io.cloudsmith.api.auth.*; +//import io.cloudsmith.api.apis.ReposApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: apikey +ApiKeyAuth apikey = (ApiKeyAuth) defaultClient.getAuthentication("apikey"); +apikey.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//apikey.setApiKeyPrefix("Token"); + +// Configure HTTP basic authorization: basic +HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic"); +basic.setUsername("YOUR USERNAME"); +basic.setPassword("YOUR PASSWORD"); + +ReposApi apiInstance = new ReposApi(); +String owner = "owner_example"; // String | +String identifier = "identifier_example"; // String | +String slugPerm = "slugPerm_example"; // String | +try { + NixUpstream result = apiInstance.reposUpstreamNixRead(owner, identifier, slugPerm); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ReposApi#reposUpstreamNixRead"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **identifier** | **String**| | + **slugPerm** | **String**| | + +### Return type + +[**NixUpstream**](NixUpstream.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **reposUpstreamNixUpdate** +> NixUpstream reposUpstreamNixUpdate(owner, identifier, slugPerm, data) + +Update a Nix upstream config for this repository. + +Update a Nix upstream config for this repository. + +### Example +```java +// Import classes: +//import io.cloudsmith.api.ApiClient; +//import io.cloudsmith.api.ApiException; +//import io.cloudsmith.api.Configuration; +//import io.cloudsmith.api.auth.*; +//import io.cloudsmith.api.apis.ReposApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: apikey +ApiKeyAuth apikey = (ApiKeyAuth) defaultClient.getAuthentication("apikey"); +apikey.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//apikey.setApiKeyPrefix("Token"); + +// Configure HTTP basic authorization: basic +HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic"); +basic.setUsername("YOUR USERNAME"); +basic.setPassword("YOUR PASSWORD"); + +ReposApi apiInstance = new ReposApi(); +String owner = "owner_example"; // String | +String identifier = "identifier_example"; // String | +String slugPerm = "slugPerm_example"; // String | +NixUpstreamRequest data = new NixUpstreamRequest(); // NixUpstreamRequest | +try { + NixUpstream result = apiInstance.reposUpstreamNixUpdate(owner, identifier, slugPerm, data); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ReposApi#reposUpstreamNixUpdate"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **identifier** | **String**| | + **slugPerm** | **String**| | + **data** | [**NixUpstreamRequest**](NixUpstreamRequest.md)| | [optional] + +### Return type + +[**NixUpstream**](NixUpstream.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + ### HTTP request headers - **Content-Type**: application/json diff --git a/bindings/java/src/docs/RpmPackageUpload.md b/bindings/java/src/docs/RpmPackageUpload.md index b0aafae1..14d1abdd 100644 --- a/bindings/java/src/docs/RpmPackageUpload.md +++ b/bindings/java/src/docs/RpmPackageUpload.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -77,18 +78,21 @@ Name | Type | Description | Notes **statusStr** | **String** | | [optional] **statusUpdatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package status was updated at. | [optional] **statusUrl** | **String** | | [optional] +**storePath** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **syncFinishedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package sync was finished at. | [optional] **syncProgress** | **java.math.BigInteger** | Synchronisation progress (from 0-100) | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | 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. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/RpmPackageUploadRequest.md b/bindings/java/src/docs/RpmPackageUploadRequest.md index b8f5b131..3535d883 100644 --- a/bindings/java/src/docs/RpmPackageUploadRequest.md +++ b/bindings/java/src/docs/RpmPackageUploadRequest.md @@ -5,9 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **distribution** | **String** | The distribution to store the package for. | +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **packageFile** | **String** | The primary file for the package. | **republish** | **Boolean** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/RubyPackageUpload.md b/bindings/java/src/docs/RubyPackageUpload.md index b26b3155..739c266f 100644 --- a/bindings/java/src/docs/RubyPackageUpload.md +++ b/bindings/java/src/docs/RubyPackageUpload.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -77,18 +78,21 @@ Name | Type | Description | Notes **statusStr** | **String** | | [optional] **statusUpdatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package status was updated at. | [optional] **statusUrl** | **String** | | [optional] +**storePath** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **syncFinishedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package sync was finished at. | [optional] **syncProgress** | **java.math.BigInteger** | Synchronisation progress (from 0-100) | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | 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. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/RubyPackageUploadRequest.md b/bindings/java/src/docs/RubyPackageUploadRequest.md index 8334a937..87c31cee 100644 --- a/bindings/java/src/docs/RubyPackageUploadRequest.md +++ b/bindings/java/src/docs/RubyPackageUploadRequest.md @@ -4,9 +4,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **packageFile** | **String** | The primary file for the package. | **republish** | **Boolean** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/SwiftPackageUpload.md b/bindings/java/src/docs/SwiftPackageUpload.md index bf5b425a..cf3cb253 100644 --- a/bindings/java/src/docs/SwiftPackageUpload.md +++ b/bindings/java/src/docs/SwiftPackageUpload.md @@ -35,6 +35,7 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -82,18 +83,21 @@ Name | Type | Description | Notes **statusStr** | **String** | | [optional] **statusUpdatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package status was updated at. | [optional] **statusUrl** | **String** | | [optional] +**storePath** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **syncFinishedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package sync was finished at. | [optional] **syncProgress** | **java.math.BigInteger** | Synchronisation progress (from 0-100) | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | 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. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | **versionOrig** | **String** | | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/SwiftPackageUploadRequest.md b/bindings/java/src/docs/SwiftPackageUploadRequest.md index e88e2522..a2adb852 100644 --- a/bindings/java/src/docs/SwiftPackageUploadRequest.md +++ b/bindings/java/src/docs/SwiftPackageUploadRequest.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **authorName** | **String** | The name of the author of the package. | [optional] **authorOrg** | **String** | The organization of the author. | [optional] +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **licenseUrl** | **String** | The license URL of this package. | [optional] **name** | **String** | The name of this package. | **packageFile** | **String** | The primary file for the package. | @@ -15,6 +16,7 @@ Name | Type | Description | Notes **scope** | **String** | A scope provides a namespace for related packages within the package registry. | **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] **version** | **String** | The raw version for this package. | +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/TerraformPackageUpload.md b/bindings/java/src/docs/TerraformPackageUpload.md index 8a3611a7..0bd7c42d 100644 --- a/bindings/java/src/docs/TerraformPackageUpload.md +++ b/bindings/java/src/docs/TerraformPackageUpload.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -77,18 +78,21 @@ Name | Type | Description | Notes **statusStr** | **String** | | [optional] **statusUpdatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package status was updated at. | [optional] **statusUrl** | **String** | | [optional] +**storePath** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **syncFinishedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package sync was finished at. | [optional] **syncProgress** | **java.math.BigInteger** | Synchronisation progress (from 0-100) | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | 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. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/TerraformPackageUploadRequest.md b/bindings/java/src/docs/TerraformPackageUploadRequest.md index f7156034..a0ed0526 100644 --- a/bindings/java/src/docs/TerraformPackageUploadRequest.md +++ b/bindings/java/src/docs/TerraformPackageUploadRequest.md @@ -4,9 +4,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **packageFile** | **String** | The primary file for the package. | **republish** | **Boolean** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/UserApi.md b/bindings/java/src/docs/UserApi.md index c9459b25..0c8f9f3e 100644 --- a/bindings/java/src/docs/UserApi.md +++ b/bindings/java/src/docs/UserApi.md @@ -179,7 +179,7 @@ This endpoint does not need any parameter. # **userTokensList** -> InlineResponse2002 userTokensList(page, pageSize) +> InlineResponse2004 userTokensList(page, pageSize) Retrieve the API key assigned to the user that is currently authenticated. @@ -211,7 +211,7 @@ UserApi apiInstance = new UserApi(); java.math.BigInteger page = new java.math.BigInteger(); // java.math.BigInteger | A page number within the paginated result set. java.math.BigInteger pageSize = new java.math.BigInteger(); // java.math.BigInteger | Number of results to return per page. try { - InlineResponse2002 result = apiInstance.userTokensList(page, pageSize); + InlineResponse2004 result = apiInstance.userTokensList(page, pageSize); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling UserApi#userTokensList"); @@ -228,7 +228,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse2002**](InlineResponse2002.md) +[**InlineResponse2004**](InlineResponse2004.md) ### Authorization diff --git a/bindings/java/src/docs/VagrantPackageUpload.md b/bindings/java/src/docs/VagrantPackageUpload.md index 0a285ca0..d257fbb4 100644 --- a/bindings/java/src/docs/VagrantPackageUpload.md +++ b/bindings/java/src/docs/VagrantPackageUpload.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -78,18 +79,21 @@ Name | Type | Description | Notes **statusStr** | **String** | | [optional] **statusUpdatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package status was updated at. | [optional] **statusUrl** | **String** | | [optional] +**storePath** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **syncFinishedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package sync was finished at. | [optional] **syncProgress** | **java.math.BigInteger** | Synchronisation progress (from 0-100) | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | 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. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | **versionOrig** | **String** | | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/VagrantPackageUploadRequest.md b/bindings/java/src/docs/VagrantPackageUploadRequest.md index ec4a6fed..59a617d1 100644 --- a/bindings/java/src/docs/VagrantPackageUploadRequest.md +++ b/bindings/java/src/docs/VagrantPackageUploadRequest.md @@ -4,12 +4,14 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **name** | **String** | The name of this package. | **packageFile** | **String** | The primary file for the package. | **provider** | **String** | The virtual machine provider for the box. | **republish** | **Boolean** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] **version** | **String** | The raw version for this package. | +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/VsxPackageUpload.md b/bindings/java/src/docs/VsxPackageUpload.md index 7d3792fc..6529742d 100644 --- a/bindings/java/src/docs/VsxPackageUpload.md +++ b/bindings/java/src/docs/VsxPackageUpload.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -77,18 +78,21 @@ Name | Type | Description | Notes **statusStr** | **String** | | [optional] **statusUpdatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package status was updated at. | [optional] **statusUrl** | **String** | | [optional] +**storePath** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **syncFinishedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package sync was finished at. | [optional] **syncProgress** | **java.math.BigInteger** | Synchronisation progress (from 0-100) | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | 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. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/VsxPackageUploadRequest.md b/bindings/java/src/docs/VsxPackageUploadRequest.md index 4befe199..9cd6a0c3 100644 --- a/bindings/java/src/docs/VsxPackageUploadRequest.md +++ b/bindings/java/src/docs/VsxPackageUploadRequest.md @@ -4,9 +4,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **packageFile** | **String** | The primary file for the package. | **republish** | **Boolean** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/WebOSVSeverityCounts.md b/bindings/java/src/docs/WebOSVSeverityCounts.md new file mode 100644 index 00000000..5aea42e8 --- /dev/null +++ b/bindings/java/src/docs/WebOSVSeverityCounts.md @@ -0,0 +1,16 @@ + +# WebOSVSeverityCounts + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**critical** | **java.math.BigInteger** | | [optional] +**high** | **java.math.BigInteger** | | [optional] +**low** | **java.math.BigInteger** | | [optional] +**malware** | **java.math.BigInteger** | | [optional] +**medium** | **java.math.BigInteger** | | [optional] +**total** | **java.math.BigInteger** | | [optional] +**unknown** | **java.math.BigInteger** | | [optional] + + + diff --git a/bindings/java/src/pom.xml b/bindings/java/src/pom.xml index 114f89af..c3b0905b 100644 --- a/bindings/java/src/pom.xml +++ b/bindings/java/src/pom.xml @@ -5,7 +5,7 @@ cloudsmith-api jar cloudsmith-api - 2.0.29 + 2.0.30 https://api.cloudsmith.io/?format=openapi Cloudsmith API diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/ApiClient.java b/bindings/java/src/src/main/java/io/cloudsmith/api/ApiClient.java index 41636664..2f441ca0 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/ApiClient.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/ApiClient.java @@ -87,7 +87,7 @@ public ApiClient() { json = new JSON(); // Set default User-Agent. - setUserAgent("Swagger-Codegen/2.0.29/java"); + setUserAgent("Swagger-Codegen/2.0.30/java"); // Setup authentications (key: authentication name, value: authentication). authentications = new HashMap(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/JSON.java b/bindings/java/src/src/main/java/io/cloudsmith/api/JSON.java index feee9882..6a545658 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/JSON.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/JSON.java @@ -329,6 +329,18 @@ import io.cloudsmith.api.models.*; import io.cloudsmith.api.models.*; import io.cloudsmith.api.models.*; +import io.cloudsmith.api.models.*; +import io.cloudsmith.api.models.*; +import io.cloudsmith.api.models.*; +import io.cloudsmith.api.models.*; +import io.cloudsmith.api.models.*; +import io.cloudsmith.api.models.*; +import io.cloudsmith.api.models.*; +import io.cloudsmith.api.models.*; +import io.cloudsmith.api.models.*; +import io.cloudsmith.api.models.*; +import io.cloudsmith.api.models.*; +import io.cloudsmith.api.models.*; import okio.ByteString; import java.io.IOException; diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/apis/OrgsApi.java b/bindings/java/src/src/main/java/io/cloudsmith/api/apis/OrgsApi.java index 0f82e24f..8e2640d2 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/apis/OrgsApi.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/apis/OrgsApi.java @@ -38,6 +38,8 @@ import io.cloudsmith.api.models.DynamicMapping; import io.cloudsmith.api.models.ErrorDetail; +import io.cloudsmith.api.models.InlineResponse200; +import io.cloudsmith.api.models.InlineResponse2001; import io.cloudsmith.api.models.Organization; import io.cloudsmith.api.models.OrganizationCustomDomains; import io.cloudsmith.api.models.OrganizationGroupSync; @@ -65,6 +67,7 @@ import io.cloudsmith.api.models.OrganizationTeamMembers; import io.cloudsmith.api.models.OrganizationTeamRequest; import io.cloudsmith.api.models.OrganizationTeamRequestPatch; +import io.cloudsmith.api.models.OrganizationUsageUpdateRequestPatch; import io.cloudsmith.api.models.PackageDenyPolicy; import io.cloudsmith.api.models.PackageDenyPolicyRequest; import io.cloudsmith.api.models.PackageDenyPolicyRequestPatch; @@ -6321,6 +6324,146 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don apiClient.executeAsync(call, localVarReturnType, callback); return call; } + /** + * Build call for orgsRetrieveUsageLimits + * @param org (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call orgsRetrieveUsageLimitsCall(String org, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/orgs/{org}/usage-limits/" + .replaceAll("\\{" + "org" + "\\}", apiClient.escapeString(org.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "apikey", "basic" }; + if (headers != null) { + localVarHeaderParams.putAll(headers); + } + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call orgsRetrieveUsageLimitsValidateBeforeCall(String org, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + try { + ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); + ExecutableValidator executableValidator = factory.getValidator().forExecutables(); + + Object[] parameterValues = { org }; + Method method = this.getClass().getMethod("orgsRetrieveUsageLimitsWithHttpInfo", String.class); + Set> violations = executableValidator.validateParameters(this, method, + parameterValues); + + if (violations.size() == 0) { + com.squareup.okhttp.Call call = orgsRetrieveUsageLimitsCall(org, progressListener, progressRequestListener); + return call; + + } else { + throw new BeanValidationException((Set) violations); + } + } catch (NoSuchMethodException e) { + e.printStackTrace(); + throw new ApiException(e.getMessage()); + } catch (SecurityException e) { + e.printStackTrace(); + throw new ApiException(e.getMessage()); + } + + } + + /** + * + * + * @param org (required) + * @return InlineResponse200 + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public InlineResponse200 orgsRetrieveUsageLimits(String org) throws ApiException { + ApiResponse resp = orgsRetrieveUsageLimitsWithHttpInfo(org); + return resp.getData(); + } + + /** + * + * + * @param org (required) + * @return ApiResponse<InlineResponse200> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse orgsRetrieveUsageLimitsWithHttpInfo( @NotNull String org) throws ApiException { + com.squareup.okhttp.Call call = orgsRetrieveUsageLimitsValidateBeforeCall(org, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param org (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call orgsRetrieveUsageLimitsAsync(String org, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = orgsRetrieveUsageLimitsValidateBeforeCall(org, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } /** * Build call for orgsSamlAuthenticationPartialUpdate * @param org (required) @@ -9540,6 +9683,150 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don apiClient.executeAsync(call, localVarReturnType, callback); return call; } + /** + * Build call for orgsUpdateUsageLimits + * @param org (required) + * @param data (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call orgsUpdateUsageLimitsCall(String org, OrganizationUsageUpdateRequestPatch data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = data; + + // create path and map variables + String localVarPath = "/orgs/{org}/usage-limits/" + .replaceAll("\\{" + "org" + "\\}", apiClient.escapeString(org.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "apikey", "basic" }; + if (headers != null) { + localVarHeaderParams.putAll(headers); + } + return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call orgsUpdateUsageLimitsValidateBeforeCall(String org, OrganizationUsageUpdateRequestPatch data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + try { + ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); + ExecutableValidator executableValidator = factory.getValidator().forExecutables(); + + Object[] parameterValues = { org, data }; + Method method = this.getClass().getMethod("orgsUpdateUsageLimitsWithHttpInfo", String.class, OrganizationUsageUpdateRequestPatch.class); + Set> violations = executableValidator.validateParameters(this, method, + parameterValues); + + if (violations.size() == 0) { + com.squareup.okhttp.Call call = orgsUpdateUsageLimitsCall(org, data, progressListener, progressRequestListener); + return call; + + } else { + throw new BeanValidationException((Set) violations); + } + } catch (NoSuchMethodException e) { + e.printStackTrace(); + throw new ApiException(e.getMessage()); + } catch (SecurityException e) { + e.printStackTrace(); + throw new ApiException(e.getMessage()); + } + + } + + /** + * + * + * @param org (required) + * @param data (optional) + * @return InlineResponse2001 + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public InlineResponse2001 orgsUpdateUsageLimits(String org, OrganizationUsageUpdateRequestPatch data) throws ApiException { + ApiResponse resp = orgsUpdateUsageLimitsWithHttpInfo(org, data); + return resp.getData(); + } + + /** + * + * + * @param org (required) + * @param data (optional) + * @return ApiResponse<InlineResponse2001> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse orgsUpdateUsageLimitsWithHttpInfo( @NotNull String org, OrganizationUsageUpdateRequestPatch data) throws ApiException { + com.squareup.okhttp.Call call = orgsUpdateUsageLimitsValidateBeforeCall(org, data, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param org (required) + * @param data (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call orgsUpdateUsageLimitsAsync(String org, OrganizationUsageUpdateRequestPatch data, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = orgsUpdateUsageLimitsValidateBeforeCall(org, data, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } /** * Build call for orgsVulnerabilityPolicyCreate * @param org (required) diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/apis/PackagesApi.java b/bindings/java/src/src/main/java/io/cloudsmith/api/apis/PackagesApi.java index aa0c37e7..949f709d 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/apis/PackagesApi.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/apis/PackagesApi.java @@ -67,7 +67,7 @@ import io.cloudsmith.api.models.HexPackageUploadRequest; import io.cloudsmith.api.models.HuggingfacePackageUpload; import io.cloudsmith.api.models.HuggingfacePackageUploadRequest; -import io.cloudsmith.api.models.InlineResponse200; +import io.cloudsmith.api.models.InlineResponse2002; import io.cloudsmith.api.models.LuarocksPackageUpload; import io.cloudsmith.api.models.LuarocksPackageUploadRequest; import io.cloudsmith.api.models.MavenPackageUpload; @@ -75,6 +75,8 @@ import io.cloudsmith.api.models.McpPackageUpload; import io.cloudsmith.api.models.McpPackageUploadRequest; import io.cloudsmith.api.models.ModelPackage; +import io.cloudsmith.api.models.NixPackageUpload; +import io.cloudsmith.api.models.NixPackageUploadRequest; import io.cloudsmith.api.models.NpmPackageUpload; import io.cloudsmith.api.models.NpmPackageUploadRequest; import io.cloudsmith.api.models.NugetPackageUpload; @@ -84,6 +86,7 @@ import io.cloudsmith.api.models.PackageCopy; import io.cloudsmith.api.models.PackageCopyRequest; import io.cloudsmith.api.models.PackageDependencies; +import io.cloudsmith.api.models.PackageDetail; import io.cloudsmith.api.models.PackageLicenseRequestPatch; import io.cloudsmith.api.models.PackageMove; import io.cloudsmith.api.models.PackageMoveRequest; @@ -711,11 +714,11 @@ private com.squareup.okhttp.Call packagesGroupsListValidateBeforeCall(String own * @param includeConnectedRepositories If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. (optional, default to false) * @param query A search term for querying names, filenames, versions, distributions, architectures, formats, or statuses of packages. (optional, default to ) * @param sort A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name, count, num_downloads, size, last_push, backend_kind. (optional, default to name) - * @return InlineResponse200 + * @return InlineResponse2002 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public InlineResponse200 packagesGroupsList(String owner, String repo, java.math.BigInteger page, java.math.BigInteger pageSize, String groupBy, Boolean hideSubcomponents, Boolean includeConnectedRepositories, String query, String sort) throws ApiException { - ApiResponse resp = packagesGroupsListWithHttpInfo(owner, repo, page, pageSize, groupBy, hideSubcomponents, includeConnectedRepositories, query, sort); + public InlineResponse2002 packagesGroupsList(String owner, String repo, java.math.BigInteger page, java.math.BigInteger pageSize, String groupBy, Boolean hideSubcomponents, Boolean includeConnectedRepositories, String query, String sort) throws ApiException { + ApiResponse resp = packagesGroupsListWithHttpInfo(owner, repo, page, pageSize, groupBy, hideSubcomponents, includeConnectedRepositories, query, sort); return resp.getData(); } @@ -731,12 +734,12 @@ public InlineResponse200 packagesGroupsList(String owner, String repo, java.math * @param includeConnectedRepositories If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. (optional, default to false) * @param query A search term for querying names, filenames, versions, distributions, architectures, formats, or statuses of packages. (optional, default to ) * @param sort A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name, count, num_downloads, size, last_push, backend_kind. (optional, default to name) - * @return ApiResponse<InlineResponse200> + * @return ApiResponse<InlineResponse2002> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse packagesGroupsListWithHttpInfo( @NotNull String owner, @NotNull String repo, java.math.BigInteger page, java.math.BigInteger pageSize, String groupBy, Boolean hideSubcomponents, Boolean includeConnectedRepositories, String query, String sort) throws ApiException { + public ApiResponse packagesGroupsListWithHttpInfo( @NotNull String owner, @NotNull String repo, java.math.BigInteger page, java.math.BigInteger pageSize, String groupBy, Boolean hideSubcomponents, Boolean includeConnectedRepositories, String query, String sort) throws ApiException { com.squareup.okhttp.Call call = packagesGroupsListValidateBeforeCall(owner, repo, page, pageSize, groupBy, hideSubcomponents, includeConnectedRepositories, query, sort, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -756,7 +759,7 @@ public ApiResponse packagesGroupsListWithHttpInfo( @NotNull S * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call packagesGroupsListAsync(String owner, String repo, java.math.BigInteger page, java.math.BigInteger pageSize, String groupBy, Boolean hideSubcomponents, Boolean includeConnectedRepositories, String query, String sort, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call packagesGroupsListAsync(String owner, String repo, java.math.BigInteger page, java.math.BigInteger pageSize, String groupBy, Boolean hideSubcomponents, Boolean includeConnectedRepositories, String query, String sort, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -778,7 +781,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don } com.squareup.okhttp.Call call = packagesGroupsListValidateBeforeCall(owner, repo, page, pageSize, groupBy, hideSubcomponents, includeConnectedRepositories, query, sort, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } @@ -1360,11 +1363,11 @@ private com.squareup.okhttp.Call packagesReadValidateBeforeCall(String owner, St * @param repo (required) * @param identifier (required) * @param includeConnectedRepositories If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. (optional, default to false) - * @return ModelPackage + * @return PackageDetail * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ModelPackage packagesRead(String owner, String repo, String identifier, Boolean includeConnectedRepositories) throws ApiException { - ApiResponse resp = packagesReadWithHttpInfo(owner, repo, identifier, includeConnectedRepositories); + public PackageDetail packagesRead(String owner, String repo, String identifier, Boolean includeConnectedRepositories) throws ApiException { + ApiResponse resp = packagesReadWithHttpInfo(owner, repo, identifier, includeConnectedRepositories); return resp.getData(); } @@ -1375,12 +1378,12 @@ public ModelPackage packagesRead(String owner, String repo, String identifier, B * @param repo (required) * @param identifier (required) * @param includeConnectedRepositories If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. (optional, default to false) - * @return ApiResponse<ModelPackage> + * @return ApiResponse<PackageDetail> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse packagesReadWithHttpInfo( @NotNull String owner, @NotNull String repo, @NotNull String identifier, Boolean includeConnectedRepositories) throws ApiException { + public ApiResponse packagesReadWithHttpInfo( @NotNull String owner, @NotNull String repo, @NotNull String identifier, Boolean includeConnectedRepositories) throws ApiException { com.squareup.okhttp.Call call = packagesReadValidateBeforeCall(owner, repo, identifier, includeConnectedRepositories, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -1395,7 +1398,7 @@ public ApiResponse packagesReadWithHttpInfo( @NotNull String owner * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call packagesReadAsync(String owner, String repo, String identifier, Boolean includeConnectedRepositories, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call packagesReadAsync(String owner, String repo, String identifier, Boolean includeConnectedRepositories, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -1417,7 +1420,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don } com.squareup.okhttp.Call call = packagesReadValidateBeforeCall(owner, repo, identifier, includeConnectedRepositories, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } @@ -4867,6 +4870,155 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don apiClient.executeAsync(call, localVarReturnType, callback); return call; } + /** + * Build call for packagesUploadNix + * @param owner (required) + * @param repo (required) + * @param data (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call packagesUploadNixCall(String owner, String repo, NixPackageUploadRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = data; + + // create path and map variables + String localVarPath = "/packages/{owner}/{repo}/upload/nix/" + .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) + .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "apikey", "basic" }; + if (headers != null) { + localVarHeaderParams.putAll(headers); + } + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call packagesUploadNixValidateBeforeCall(String owner, String repo, NixPackageUploadRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + try { + ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); + ExecutableValidator executableValidator = factory.getValidator().forExecutables(); + + Object[] parameterValues = { owner, repo, data }; + Method method = this.getClass().getMethod("packagesUploadNixWithHttpInfo", String.class, String.class, NixPackageUploadRequest.class); + Set> violations = executableValidator.validateParameters(this, method, + parameterValues); + + if (violations.size() == 0) { + com.squareup.okhttp.Call call = packagesUploadNixCall(owner, repo, data, progressListener, progressRequestListener); + return call; + + } else { + throw new BeanValidationException((Set) violations); + } + } catch (NoSuchMethodException e) { + e.printStackTrace(); + throw new ApiException(e.getMessage()); + } catch (SecurityException e) { + e.printStackTrace(); + throw new ApiException(e.getMessage()); + } + + } + + /** + * Create a new Nix package + * Create a new Nix package + * @param owner (required) + * @param repo (required) + * @param data (optional) + * @return NixPackageUpload + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public NixPackageUpload packagesUploadNix(String owner, String repo, NixPackageUploadRequest data) throws ApiException { + ApiResponse resp = packagesUploadNixWithHttpInfo(owner, repo, data); + return resp.getData(); + } + + /** + * Create a new Nix package + * Create a new Nix package + * @param owner (required) + * @param repo (required) + * @param data (optional) + * @return ApiResponse<NixPackageUpload> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse packagesUploadNixWithHttpInfo( @NotNull String owner, @NotNull String repo, NixPackageUploadRequest data) throws ApiException { + com.squareup.okhttp.Call call = packagesUploadNixValidateBeforeCall(owner, repo, data, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Create a new Nix package (asynchronously) + * Create a new Nix package + * @param owner (required) + * @param repo (required) + * @param data (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call packagesUploadNixAsync(String owner, String repo, NixPackageUploadRequest data, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = packagesUploadNixValidateBeforeCall(owner, repo, data, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } /** * Build call for packagesUploadNpm * @param owner (required) @@ -9116,6 +9268,151 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don apiClient.executeAsync(call, callback); return call; } + /** + * Build call for packagesValidateUploadNix + * @param owner (required) + * @param repo (required) + * @param data (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call packagesValidateUploadNixCall(String owner, String repo, NixPackageUploadRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = data; + + // create path and map variables + String localVarPath = "/packages/{owner}/{repo}/validate-upload/nix/" + .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) + .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "apikey", "basic" }; + if (headers != null) { + localVarHeaderParams.putAll(headers); + } + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call packagesValidateUploadNixValidateBeforeCall(String owner, String repo, NixPackageUploadRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + try { + ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); + ExecutableValidator executableValidator = factory.getValidator().forExecutables(); + + Object[] parameterValues = { owner, repo, data }; + Method method = this.getClass().getMethod("packagesValidateUploadNixWithHttpInfo", String.class, String.class, NixPackageUploadRequest.class); + Set> violations = executableValidator.validateParameters(this, method, + parameterValues); + + if (violations.size() == 0) { + com.squareup.okhttp.Call call = packagesValidateUploadNixCall(owner, repo, data, progressListener, progressRequestListener); + return call; + + } else { + throw new BeanValidationException((Set) violations); + } + } catch (NoSuchMethodException e) { + e.printStackTrace(); + throw new ApiException(e.getMessage()); + } catch (SecurityException e) { + e.printStackTrace(); + throw new ApiException(e.getMessage()); + } + + } + + /** + * Validate parameters for create Nix package + * Validate parameters for create Nix package + * @param owner (required) + * @param repo (required) + * @param data (optional) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public void packagesValidateUploadNix(String owner, String repo, NixPackageUploadRequest data) throws ApiException { + packagesValidateUploadNixWithHttpInfo(owner, repo, data); + } + + /** + * Validate parameters for create Nix package + * Validate parameters for create Nix package + * @param owner (required) + * @param repo (required) + * @param data (optional) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse packagesValidateUploadNixWithHttpInfo( @NotNull String owner, @NotNull String repo, NixPackageUploadRequest data) throws ApiException { + com.squareup.okhttp.Call call = packagesValidateUploadNixValidateBeforeCall(owner, repo, data, null, null); + return apiClient.execute(call); + } + + /** + * Validate parameters for create Nix package (asynchronously) + * Validate parameters for create Nix package + * @param owner (required) + * @param repo (required) + * @param data (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call packagesValidateUploadNixAsync(String owner, String repo, NixPackageUploadRequest data, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = packagesValidateUploadNixValidateBeforeCall(owner, repo, data, progressListener, progressRequestListener); + apiClient.executeAsync(call, callback); + return call; + } /** * Build call for packagesValidateUploadNpm * @param owner (required) diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/apis/ReposApi.java b/bindings/java/src/src/main/java/io/cloudsmith/api/apis/ReposApi.java index 8ef14d38..3ee8bd6f 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/apis/ReposApi.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/apis/ReposApi.java @@ -79,10 +79,13 @@ import io.cloudsmith.api.models.HuggingfaceUpstream; import io.cloudsmith.api.models.HuggingfaceUpstreamRequest; import io.cloudsmith.api.models.HuggingfaceUpstreamRequestPatch; -import io.cloudsmith.api.models.InlineResponse2001; +import io.cloudsmith.api.models.InlineResponse2003; import io.cloudsmith.api.models.MavenUpstream; import io.cloudsmith.api.models.MavenUpstreamRequest; import io.cloudsmith.api.models.MavenUpstreamRequestPatch; +import io.cloudsmith.api.models.NixUpstream; +import io.cloudsmith.api.models.NixUpstreamRequest; +import io.cloudsmith.api.models.NixUpstreamRequestPatch; import io.cloudsmith.api.models.NpmUpstream; import io.cloudsmith.api.models.NpmUpstreamRequest; import io.cloudsmith.api.models.NpmUpstreamRequestPatch; @@ -989,11 +992,11 @@ private com.squareup.okhttp.Call reposConnectedListValidateBeforeCall(String own * @param identifier (required) * @param page A page number within the paginated result set. (optional) * @param pageSize Number of results to return per page. (optional) - * @return InlineResponse2001 + * @return InlineResponse2003 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public InlineResponse2001 reposConnectedList(String owner, String identifier, java.math.BigInteger page, java.math.BigInteger pageSize) throws ApiException { - ApiResponse resp = reposConnectedListWithHttpInfo(owner, identifier, page, pageSize); + public InlineResponse2003 reposConnectedList(String owner, String identifier, java.math.BigInteger page, java.math.BigInteger pageSize) throws ApiException { + ApiResponse resp = reposConnectedListWithHttpInfo(owner, identifier, page, pageSize); return resp.getData(); } @@ -1004,12 +1007,12 @@ public InlineResponse2001 reposConnectedList(String owner, String identifier, ja * @param identifier (required) * @param page A page number within the paginated result set. (optional) * @param pageSize Number of results to return per page. (optional) - * @return ApiResponse<InlineResponse2001> + * @return ApiResponse<InlineResponse2003> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse reposConnectedListWithHttpInfo( @NotNull String owner, @NotNull String identifier, java.math.BigInteger page, java.math.BigInteger pageSize) throws ApiException { + public ApiResponse reposConnectedListWithHttpInfo( @NotNull String owner, @NotNull String identifier, java.math.BigInteger page, java.math.BigInteger pageSize) throws ApiException { com.squareup.okhttp.Call call = reposConnectedListValidateBeforeCall(owner, identifier, page, pageSize, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -1024,7 +1027,7 @@ public ApiResponse reposConnectedListWithHttpInfo( @NotNull * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call reposConnectedListAsync(String owner, String identifier, java.math.BigInteger page, java.math.BigInteger pageSize, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call reposConnectedListAsync(String owner, String identifier, java.math.BigInteger page, java.math.BigInteger pageSize, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -1046,7 +1049,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don } com.squareup.okhttp.Call call = reposConnectedListValidateBeforeCall(owner, identifier, page, pageSize, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } @@ -18221,6 +18224,916 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don apiClient.executeAsync(call, localVarReturnType, callback); return call; } + /** + * Build call for reposUpstreamNixCreate + * @param owner (required) + * @param identifier (required) + * @param data (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call reposUpstreamNixCreateCall(String owner, String identifier, NixUpstreamRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = data; + + // create path and map variables + String localVarPath = "/repos/{owner}/{identifier}/upstream/nix/" + .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) + .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "apikey", "basic" }; + if (headers != null) { + localVarHeaderParams.putAll(headers); + } + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call reposUpstreamNixCreateValidateBeforeCall(String owner, String identifier, NixUpstreamRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + try { + ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); + ExecutableValidator executableValidator = factory.getValidator().forExecutables(); + + Object[] parameterValues = { owner, identifier, data }; + Method method = this.getClass().getMethod("reposUpstreamNixCreateWithHttpInfo", String.class, String.class, NixUpstreamRequest.class); + Set> violations = executableValidator.validateParameters(this, method, + parameterValues); + + if (violations.size() == 0) { + com.squareup.okhttp.Call call = reposUpstreamNixCreateCall(owner, identifier, data, progressListener, progressRequestListener); + return call; + + } else { + throw new BeanValidationException((Set) violations); + } + } catch (NoSuchMethodException e) { + e.printStackTrace(); + throw new ApiException(e.getMessage()); + } catch (SecurityException e) { + e.printStackTrace(); + throw new ApiException(e.getMessage()); + } + + } + + /** + * Create a Nix upstream config for this repository. + * Create a Nix upstream config for this repository. + * @param owner (required) + * @param identifier (required) + * @param data (optional) + * @return NixUpstream + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public NixUpstream reposUpstreamNixCreate(String owner, String identifier, NixUpstreamRequest data) throws ApiException { + ApiResponse resp = reposUpstreamNixCreateWithHttpInfo(owner, identifier, data); + return resp.getData(); + } + + /** + * Create a Nix upstream config for this repository. + * Create a Nix upstream config for this repository. + * @param owner (required) + * @param identifier (required) + * @param data (optional) + * @return ApiResponse<NixUpstream> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse reposUpstreamNixCreateWithHttpInfo( @NotNull String owner, @NotNull String identifier, NixUpstreamRequest data) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamNixCreateValidateBeforeCall(owner, identifier, data, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Create a Nix upstream config for this repository. (asynchronously) + * Create a Nix upstream config for this repository. + * @param owner (required) + * @param identifier (required) + * @param data (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call reposUpstreamNixCreateAsync(String owner, String identifier, NixUpstreamRequest data, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = reposUpstreamNixCreateValidateBeforeCall(owner, identifier, data, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for reposUpstreamNixDelete + * @param owner (required) + * @param identifier (required) + * @param slugPerm (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call reposUpstreamNixDeleteCall(String owner, String identifier, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/repos/{owner}/{identifier}/upstream/nix/{slug_perm}/" + .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) + .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())) + .replaceAll("\\{" + "slug_perm" + "\\}", apiClient.escapeString(slugPerm.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "apikey", "basic" }; + if (headers != null) { + localVarHeaderParams.putAll(headers); + } + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call reposUpstreamNixDeleteValidateBeforeCall(String owner, String identifier, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + try { + ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); + ExecutableValidator executableValidator = factory.getValidator().forExecutables(); + + Object[] parameterValues = { owner, identifier, slugPerm }; + Method method = this.getClass().getMethod("reposUpstreamNixDeleteWithHttpInfo", String.class, String.class, String.class); + Set> violations = executableValidator.validateParameters(this, method, + parameterValues); + + if (violations.size() == 0) { + com.squareup.okhttp.Call call = reposUpstreamNixDeleteCall(owner, identifier, slugPerm, progressListener, progressRequestListener); + return call; + + } else { + throw new BeanValidationException((Set) violations); + } + } catch (NoSuchMethodException e) { + e.printStackTrace(); + throw new ApiException(e.getMessage()); + } catch (SecurityException e) { + e.printStackTrace(); + throw new ApiException(e.getMessage()); + } + + } + + /** + * Delete a Nix upstream config for this repository. + * Delete a Nix upstream config for this repository. + * @param owner (required) + * @param identifier (required) + * @param slugPerm (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public void reposUpstreamNixDelete(String owner, String identifier, String slugPerm) throws ApiException { + reposUpstreamNixDeleteWithHttpInfo(owner, identifier, slugPerm); + } + + /** + * Delete a Nix upstream config for this repository. + * Delete a Nix upstream config for this repository. + * @param owner (required) + * @param identifier (required) + * @param slugPerm (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse reposUpstreamNixDeleteWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamNixDeleteValidateBeforeCall(owner, identifier, slugPerm, null, null); + return apiClient.execute(call); + } + + /** + * Delete a Nix upstream config for this repository. (asynchronously) + * Delete a Nix upstream config for this repository. + * @param owner (required) + * @param identifier (required) + * @param slugPerm (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call reposUpstreamNixDeleteAsync(String owner, String identifier, String slugPerm, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = reposUpstreamNixDeleteValidateBeforeCall(owner, identifier, slugPerm, progressListener, progressRequestListener); + apiClient.executeAsync(call, callback); + return call; + } + /** + * Build call for reposUpstreamNixList + * @param owner (required) + * @param identifier (required) + * @param page A page number within the paginated result set. (optional) + * @param pageSize Number of results to return per page. (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call reposUpstreamNixListCall(String owner, String identifier, java.math.BigInteger page, java.math.BigInteger pageSize, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/repos/{owner}/{identifier}/upstream/nix/" + .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) + .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (page != null) + localVarQueryParams.addAll(apiClient.parameterToPair("page", page)); + if (pageSize != null) + localVarQueryParams.addAll(apiClient.parameterToPair("page_size", pageSize)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "apikey", "basic" }; + if (headers != null) { + localVarHeaderParams.putAll(headers); + } + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call reposUpstreamNixListValidateBeforeCall(String owner, String identifier, java.math.BigInteger page, java.math.BigInteger pageSize, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + try { + ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); + ExecutableValidator executableValidator = factory.getValidator().forExecutables(); + + Object[] parameterValues = { owner, identifier, page, pageSize }; + Method method = this.getClass().getMethod("reposUpstreamNixListWithHttpInfo", String.class, String.class, java.math.BigInteger.class, java.math.BigInteger.class); + Set> violations = executableValidator.validateParameters(this, method, + parameterValues); + + if (violations.size() == 0) { + com.squareup.okhttp.Call call = reposUpstreamNixListCall(owner, identifier, page, pageSize, progressListener, progressRequestListener); + return call; + + } else { + throw new BeanValidationException((Set) violations); + } + } catch (NoSuchMethodException e) { + e.printStackTrace(); + throw new ApiException(e.getMessage()); + } catch (SecurityException e) { + e.printStackTrace(); + throw new ApiException(e.getMessage()); + } + + } + + /** + * List Nix upstream configs for this repository. + * List Nix upstream configs for this repository. + * @param owner (required) + * @param identifier (required) + * @param page A page number within the paginated result set. (optional) + * @param pageSize Number of results to return per page. (optional) + * @return List<NixUpstream> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public List reposUpstreamNixList(String owner, String identifier, java.math.BigInteger page, java.math.BigInteger pageSize) throws ApiException { + ApiResponse> resp = reposUpstreamNixListWithHttpInfo(owner, identifier, page, pageSize); + return resp.getData(); + } + + /** + * List Nix upstream configs for this repository. + * List Nix upstream configs for this repository. + * @param owner (required) + * @param identifier (required) + * @param page A page number within the paginated result set. (optional) + * @param pageSize Number of results to return per page. (optional) + * @return ApiResponse<List<NixUpstream>> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse> reposUpstreamNixListWithHttpInfo( @NotNull String owner, @NotNull String identifier, java.math.BigInteger page, java.math.BigInteger pageSize) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamNixListValidateBeforeCall(owner, identifier, page, pageSize, null, null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * List Nix upstream configs for this repository. (asynchronously) + * List Nix upstream configs for this repository. + * @param owner (required) + * @param identifier (required) + * @param page A page number within the paginated result set. (optional) + * @param pageSize Number of results to return per page. (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call reposUpstreamNixListAsync(String owner, String identifier, java.math.BigInteger page, java.math.BigInteger pageSize, final ApiCallback> callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = reposUpstreamNixListValidateBeforeCall(owner, identifier, page, pageSize, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken>(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for reposUpstreamNixPartialUpdate + * @param owner (required) + * @param identifier (required) + * @param slugPerm (required) + * @param data (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call reposUpstreamNixPartialUpdateCall(String owner, String identifier, String slugPerm, NixUpstreamRequestPatch data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = data; + + // create path and map variables + String localVarPath = "/repos/{owner}/{identifier}/upstream/nix/{slug_perm}/" + .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) + .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())) + .replaceAll("\\{" + "slug_perm" + "\\}", apiClient.escapeString(slugPerm.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "apikey", "basic" }; + if (headers != null) { + localVarHeaderParams.putAll(headers); + } + return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call reposUpstreamNixPartialUpdateValidateBeforeCall(String owner, String identifier, String slugPerm, NixUpstreamRequestPatch data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + try { + ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); + ExecutableValidator executableValidator = factory.getValidator().forExecutables(); + + Object[] parameterValues = { owner, identifier, slugPerm, data }; + Method method = this.getClass().getMethod("reposUpstreamNixPartialUpdateWithHttpInfo", String.class, String.class, String.class, NixUpstreamRequestPatch.class); + Set> violations = executableValidator.validateParameters(this, method, + parameterValues); + + if (violations.size() == 0) { + com.squareup.okhttp.Call call = reposUpstreamNixPartialUpdateCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); + return call; + + } else { + throw new BeanValidationException((Set) violations); + } + } catch (NoSuchMethodException e) { + e.printStackTrace(); + throw new ApiException(e.getMessage()); + } catch (SecurityException e) { + e.printStackTrace(); + throw new ApiException(e.getMessage()); + } + + } + + /** + * Partially update a Nix upstream config for this repository. + * Partially update a Nix upstream config for this repository. + * @param owner (required) + * @param identifier (required) + * @param slugPerm (required) + * @param data (optional) + * @return NixUpstream + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public NixUpstream reposUpstreamNixPartialUpdate(String owner, String identifier, String slugPerm, NixUpstreamRequestPatch data) throws ApiException { + ApiResponse resp = reposUpstreamNixPartialUpdateWithHttpInfo(owner, identifier, slugPerm, data); + return resp.getData(); + } + + /** + * Partially update a Nix upstream config for this repository. + * Partially update a Nix upstream config for this repository. + * @param owner (required) + * @param identifier (required) + * @param slugPerm (required) + * @param data (optional) + * @return ApiResponse<NixUpstream> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse reposUpstreamNixPartialUpdateWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm, NixUpstreamRequestPatch data) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamNixPartialUpdateValidateBeforeCall(owner, identifier, slugPerm, data, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Partially update a Nix upstream config for this repository. (asynchronously) + * Partially update a Nix upstream config for this repository. + * @param owner (required) + * @param identifier (required) + * @param slugPerm (required) + * @param data (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call reposUpstreamNixPartialUpdateAsync(String owner, String identifier, String slugPerm, NixUpstreamRequestPatch data, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = reposUpstreamNixPartialUpdateValidateBeforeCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for reposUpstreamNixRead + * @param owner (required) + * @param identifier (required) + * @param slugPerm (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call reposUpstreamNixReadCall(String owner, String identifier, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/repos/{owner}/{identifier}/upstream/nix/{slug_perm}/" + .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) + .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())) + .replaceAll("\\{" + "slug_perm" + "\\}", apiClient.escapeString(slugPerm.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "apikey", "basic" }; + if (headers != null) { + localVarHeaderParams.putAll(headers); + } + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call reposUpstreamNixReadValidateBeforeCall(String owner, String identifier, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + try { + ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); + ExecutableValidator executableValidator = factory.getValidator().forExecutables(); + + Object[] parameterValues = { owner, identifier, slugPerm }; + Method method = this.getClass().getMethod("reposUpstreamNixReadWithHttpInfo", String.class, String.class, String.class); + Set> violations = executableValidator.validateParameters(this, method, + parameterValues); + + if (violations.size() == 0) { + com.squareup.okhttp.Call call = reposUpstreamNixReadCall(owner, identifier, slugPerm, progressListener, progressRequestListener); + return call; + + } else { + throw new BeanValidationException((Set) violations); + } + } catch (NoSuchMethodException e) { + e.printStackTrace(); + throw new ApiException(e.getMessage()); + } catch (SecurityException e) { + e.printStackTrace(); + throw new ApiException(e.getMessage()); + } + + } + + /** + * Retrieve a Nix upstream config for this repository. + * Retrieve a Nix upstream config for this repository. + * @param owner (required) + * @param identifier (required) + * @param slugPerm (required) + * @return NixUpstream + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public NixUpstream reposUpstreamNixRead(String owner, String identifier, String slugPerm) throws ApiException { + ApiResponse resp = reposUpstreamNixReadWithHttpInfo(owner, identifier, slugPerm); + return resp.getData(); + } + + /** + * Retrieve a Nix upstream config for this repository. + * Retrieve a Nix upstream config for this repository. + * @param owner (required) + * @param identifier (required) + * @param slugPerm (required) + * @return ApiResponse<NixUpstream> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse reposUpstreamNixReadWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamNixReadValidateBeforeCall(owner, identifier, slugPerm, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Retrieve a Nix upstream config for this repository. (asynchronously) + * Retrieve a Nix upstream config for this repository. + * @param owner (required) + * @param identifier (required) + * @param slugPerm (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call reposUpstreamNixReadAsync(String owner, String identifier, String slugPerm, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = reposUpstreamNixReadValidateBeforeCall(owner, identifier, slugPerm, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for reposUpstreamNixUpdate + * @param owner (required) + * @param identifier (required) + * @param slugPerm (required) + * @param data (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call reposUpstreamNixUpdateCall(String owner, String identifier, String slugPerm, NixUpstreamRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = data; + + // create path and map variables + String localVarPath = "/repos/{owner}/{identifier}/upstream/nix/{slug_perm}/" + .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) + .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())) + .replaceAll("\\{" + "slug_perm" + "\\}", apiClient.escapeString(slugPerm.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "apikey", "basic" }; + if (headers != null) { + localVarHeaderParams.putAll(headers); + } + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call reposUpstreamNixUpdateValidateBeforeCall(String owner, String identifier, String slugPerm, NixUpstreamRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + try { + ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); + ExecutableValidator executableValidator = factory.getValidator().forExecutables(); + + Object[] parameterValues = { owner, identifier, slugPerm, data }; + Method method = this.getClass().getMethod("reposUpstreamNixUpdateWithHttpInfo", String.class, String.class, String.class, NixUpstreamRequest.class); + Set> violations = executableValidator.validateParameters(this, method, + parameterValues); + + if (violations.size() == 0) { + com.squareup.okhttp.Call call = reposUpstreamNixUpdateCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); + return call; + + } else { + throw new BeanValidationException((Set) violations); + } + } catch (NoSuchMethodException e) { + e.printStackTrace(); + throw new ApiException(e.getMessage()); + } catch (SecurityException e) { + e.printStackTrace(); + throw new ApiException(e.getMessage()); + } + + } + + /** + * Update a Nix upstream config for this repository. + * Update a Nix upstream config for this repository. + * @param owner (required) + * @param identifier (required) + * @param slugPerm (required) + * @param data (optional) + * @return NixUpstream + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public NixUpstream reposUpstreamNixUpdate(String owner, String identifier, String slugPerm, NixUpstreamRequest data) throws ApiException { + ApiResponse resp = reposUpstreamNixUpdateWithHttpInfo(owner, identifier, slugPerm, data); + return resp.getData(); + } + + /** + * Update a Nix upstream config for this repository. + * Update a Nix upstream config for this repository. + * @param owner (required) + * @param identifier (required) + * @param slugPerm (required) + * @param data (optional) + * @return ApiResponse<NixUpstream> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse reposUpstreamNixUpdateWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm, NixUpstreamRequest data) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamNixUpdateValidateBeforeCall(owner, identifier, slugPerm, data, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Update a Nix upstream config for this repository. (asynchronously) + * Update a Nix upstream config for this repository. + * @param owner (required) + * @param identifier (required) + * @param slugPerm (required) + * @param data (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call reposUpstreamNixUpdateAsync(String owner, String identifier, String slugPerm, NixUpstreamRequest data, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = reposUpstreamNixUpdateValidateBeforeCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } /** * Build call for reposUpstreamNpmCreate * @param owner (required) diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/apis/UserApi.java b/bindings/java/src/src/main/java/io/cloudsmith/api/apis/UserApi.java index b6d63651..7fa80de2 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/apis/UserApi.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/apis/UserApi.java @@ -37,7 +37,7 @@ import java.lang.reflect.Type; import io.cloudsmith.api.models.ErrorDetail; -import io.cloudsmith.api.models.InlineResponse2002; +import io.cloudsmith.api.models.InlineResponse2004; import io.cloudsmith.api.models.UserAuthToken; import io.cloudsmith.api.models.UserAuthTokenRequest; import io.cloudsmith.api.models.UserAuthenticationToken; @@ -572,11 +572,11 @@ private com.squareup.okhttp.Call userTokensListValidateBeforeCall(java.math.BigI * Retrieve the API key assigned to the user that is currently authenticated. * @param page A page number within the paginated result set. (optional) * @param pageSize Number of results to return per page. (optional) - * @return InlineResponse2002 + * @return InlineResponse2004 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public InlineResponse2002 userTokensList(java.math.BigInteger page, java.math.BigInteger pageSize) throws ApiException { - ApiResponse resp = userTokensListWithHttpInfo(page, pageSize); + public InlineResponse2004 userTokensList(java.math.BigInteger page, java.math.BigInteger pageSize) throws ApiException { + ApiResponse resp = userTokensListWithHttpInfo(page, pageSize); return resp.getData(); } @@ -585,12 +585,12 @@ public InlineResponse2002 userTokensList(java.math.BigInteger page, java.math.Bi * Retrieve the API key assigned to the user that is currently authenticated. * @param page A page number within the paginated result set. (optional) * @param pageSize Number of results to return per page. (optional) - * @return ApiResponse<InlineResponse2002> + * @return ApiResponse<InlineResponse2004> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse userTokensListWithHttpInfo( java.math.BigInteger page, java.math.BigInteger pageSize) throws ApiException { + public ApiResponse userTokensListWithHttpInfo( java.math.BigInteger page, java.math.BigInteger pageSize) throws ApiException { com.squareup.okhttp.Call call = userTokensListValidateBeforeCall(page, pageSize, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -603,7 +603,7 @@ public ApiResponse userTokensListWithHttpInfo( java.math.Big * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call userTokensListAsync(java.math.BigInteger page, java.math.BigInteger pageSize, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call userTokensListAsync(java.math.BigInteger page, java.math.BigInteger pageSize, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -625,7 +625,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don } com.squareup.okhttp.Call call = userTokensListValidateBeforeCall(page, pageSize, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/AlpinePackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/AlpinePackageUpload.java index 44181789..62c5bb83 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/AlpinePackageUpload.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/AlpinePackageUpload.java @@ -25,6 +25,7 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -131,6 +132,9 @@ public class AlpinePackageUpload implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -322,6 +326,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("status_url") private String statusUrl = null; + @SerializedName("store_path") + private String storePath = null; + @SerializedName("subtype") private String subtype = null; @@ -340,6 +347,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -358,6 +368,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -644,6 +657,15 @@ public Boolean isIsHidden() { return isHidden; } + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + /** * Get isMoveable * @return isMoveable @@ -1045,6 +1067,15 @@ public String getStatusUrl() { return statusUrl; } + /** + * Absolute store path for the package, including store hash and name. + * @return storePath + **/ + @Size(min=1) @ApiModelProperty(value = "Absolute store path for the package, including store hash and name.") + public String getStorePath() { + return storePath; + } + /** * Get subtype * @return subtype @@ -1120,6 +1151,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * 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. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "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.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1175,6 +1216,25 @@ public String getVersionOrig() { return versionOrig; } + public AlpinePackageUpload vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1223,6 +1283,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, alpinePackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, alpinePackageUpload.isDownloadable) && Objects.equals(this.isHidden, alpinePackageUpload.isHidden) && + Objects.equals(this.isMalwareDetected, alpinePackageUpload.isMalwareDetected) && Objects.equals(this.isMoveable, alpinePackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, alpinePackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, alpinePackageUpload.isQuarantined) && @@ -1267,24 +1328,27 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.statusStr, alpinePackageUpload.statusStr) && Objects.equals(this.statusUpdatedAt, alpinePackageUpload.statusUpdatedAt) && Objects.equals(this.statusUrl, alpinePackageUpload.statusUrl) && + Objects.equals(this.storePath, alpinePackageUpload.storePath) && Objects.equals(this.subtype, alpinePackageUpload.subtype) && Objects.equals(this.summary, alpinePackageUpload.summary) && Objects.equals(this.syncFinishedAt, alpinePackageUpload.syncFinishedAt) && Objects.equals(this.syncProgress, alpinePackageUpload.syncProgress) && Objects.equals(this.tagsAutomatic, alpinePackageUpload.tagsAutomatic) && Objects.equals(this.tagsImmutable, alpinePackageUpload.tagsImmutable) && + Objects.equals(this.tagsStatic, alpinePackageUpload.tagsStatic) && Objects.equals(this.typeDisplay, alpinePackageUpload.typeDisplay) && Objects.equals(this.uploadedAt, alpinePackageUpload.uploadedAt) && Objects.equals(this.uploader, alpinePackageUpload.uploader) && Objects.equals(this.uploaderUrl, alpinePackageUpload.uploaderUrl) && Objects.equals(this.version, alpinePackageUpload.version) && Objects.equals(this.versionOrig, alpinePackageUpload.versionOrig) && + Objects.equals(this.vulnerabilityCounts, alpinePackageUpload.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, alpinePackageUpload.vulnerabilityScanResultsUrl); } @Override public int hashCode() { - return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMalwareDetected, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1322,6 +1386,7 @@ public String toString() { sb.append(" isDeleteable: ").append(toIndentedString(isDeleteable)).append("\n"); sb.append(" isDownloadable: ").append(toIndentedString(isDownloadable)).append("\n"); sb.append(" isHidden: ").append(toIndentedString(isHidden)).append("\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" isMoveable: ").append(toIndentedString(isMoveable)).append("\n"); sb.append(" isQuarantinable: ").append(toIndentedString(isQuarantinable)).append("\n"); sb.append(" isQuarantined: ").append(toIndentedString(isQuarantined)).append("\n"); @@ -1366,18 +1431,21 @@ public String toString() { sb.append(" statusStr: ").append(toIndentedString(statusStr)).append("\n"); sb.append(" statusUpdatedAt: ").append(toIndentedString(statusUpdatedAt)).append("\n"); sb.append(" statusUrl: ").append(toIndentedString(statusUrl)).append("\n"); + sb.append(" storePath: ").append(toIndentedString(storePath)).append("\n"); sb.append(" subtype: ").append(toIndentedString(subtype)).append("\n"); sb.append(" summary: ").append(toIndentedString(summary)).append("\n"); sb.append(" syncFinishedAt: ").append(toIndentedString(syncFinishedAt)).append("\n"); sb.append(" syncProgress: ").append(toIndentedString(syncProgress)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/AlpinePackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/AlpinePackageUploadRequest.java index 20cc88e2..ec816af0 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/AlpinePackageUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/AlpinePackageUploadRequest.java @@ -20,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -37,6 +38,9 @@ public class AlpinePackageUploadRequest implements Serializable { @SerializedName("distribution") private String distribution = null; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("package_file") private String packageFile = null; @@ -46,6 +50,9 @@ public class AlpinePackageUploadRequest implements Serializable { @SerializedName("tags") private String tags = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + public AlpinePackageUploadRequest distribution(String distribution) { this.distribution = distribution; return this; @@ -65,6 +72,15 @@ public void setDistribution(String distribution) { this.distribution = distribution; } + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + public AlpinePackageUploadRequest packageFile(String packageFile) { this.packageFile = packageFile; return this; @@ -120,6 +136,25 @@ public void setTags(String tags) { this.tags = tags; } + public AlpinePackageUploadRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + @Override public boolean equals(java.lang.Object o) { @@ -131,14 +166,16 @@ public boolean equals(java.lang.Object o) { } AlpinePackageUploadRequest alpinePackageUploadRequest = (AlpinePackageUploadRequest) o; return Objects.equals(this.distribution, alpinePackageUploadRequest.distribution) && + Objects.equals(this.isMalwareDetected, alpinePackageUploadRequest.isMalwareDetected) && Objects.equals(this.packageFile, alpinePackageUploadRequest.packageFile) && Objects.equals(this.republish, alpinePackageUploadRequest.republish) && - Objects.equals(this.tags, alpinePackageUploadRequest.tags); + Objects.equals(this.tags, alpinePackageUploadRequest.tags) && + Objects.equals(this.vulnerabilityCounts, alpinePackageUploadRequest.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(distribution, packageFile, republish, tags); + return Objects.hash(distribution, isMalwareDetected, packageFile, republish, tags, vulnerabilityCounts); } @@ -148,9 +185,11 @@ public String toString() { sb.append("class AlpinePackageUploadRequest {\n"); sb.append(" distribution: ").append(toIndentedString(distribution)).append("\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" packageFile: ").append(toIndentedString(packageFile)).append("\n"); sb.append(" republish: ").append(toIndentedString(republish)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/CargoPackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/CargoPackageUpload.java index 04630769..b9df41be 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/CargoPackageUpload.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/CargoPackageUpload.java @@ -25,6 +25,7 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -131,6 +132,9 @@ public class CargoPackageUpload implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -322,6 +326,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("status_url") private String statusUrl = null; + @SerializedName("store_path") + private String storePath = null; + @SerializedName("subtype") private String subtype = null; @@ -340,6 +347,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -358,6 +368,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -644,6 +657,15 @@ public Boolean isIsHidden() { return isHidden; } + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + /** * Get isMoveable * @return isMoveable @@ -1045,6 +1067,15 @@ public String getStatusUrl() { return statusUrl; } + /** + * Absolute store path for the package, including store hash and name. + * @return storePath + **/ + @Size(min=1) @ApiModelProperty(value = "Absolute store path for the package, including store hash and name.") + public String getStorePath() { + return storePath; + } + /** * Get subtype * @return subtype @@ -1120,6 +1151,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * 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. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "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.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1175,6 +1216,25 @@ public String getVersionOrig() { return versionOrig; } + public CargoPackageUpload vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1223,6 +1283,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, cargoPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, cargoPackageUpload.isDownloadable) && Objects.equals(this.isHidden, cargoPackageUpload.isHidden) && + Objects.equals(this.isMalwareDetected, cargoPackageUpload.isMalwareDetected) && Objects.equals(this.isMoveable, cargoPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, cargoPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, cargoPackageUpload.isQuarantined) && @@ -1267,24 +1328,27 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.statusStr, cargoPackageUpload.statusStr) && Objects.equals(this.statusUpdatedAt, cargoPackageUpload.statusUpdatedAt) && Objects.equals(this.statusUrl, cargoPackageUpload.statusUrl) && + Objects.equals(this.storePath, cargoPackageUpload.storePath) && Objects.equals(this.subtype, cargoPackageUpload.subtype) && Objects.equals(this.summary, cargoPackageUpload.summary) && Objects.equals(this.syncFinishedAt, cargoPackageUpload.syncFinishedAt) && Objects.equals(this.syncProgress, cargoPackageUpload.syncProgress) && Objects.equals(this.tagsAutomatic, cargoPackageUpload.tagsAutomatic) && Objects.equals(this.tagsImmutable, cargoPackageUpload.tagsImmutable) && + Objects.equals(this.tagsStatic, cargoPackageUpload.tagsStatic) && Objects.equals(this.typeDisplay, cargoPackageUpload.typeDisplay) && Objects.equals(this.uploadedAt, cargoPackageUpload.uploadedAt) && Objects.equals(this.uploader, cargoPackageUpload.uploader) && Objects.equals(this.uploaderUrl, cargoPackageUpload.uploaderUrl) && Objects.equals(this.version, cargoPackageUpload.version) && Objects.equals(this.versionOrig, cargoPackageUpload.versionOrig) && + Objects.equals(this.vulnerabilityCounts, cargoPackageUpload.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, cargoPackageUpload.vulnerabilityScanResultsUrl); } @Override public int hashCode() { - return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMalwareDetected, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1322,6 +1386,7 @@ public String toString() { sb.append(" isDeleteable: ").append(toIndentedString(isDeleteable)).append("\n"); sb.append(" isDownloadable: ").append(toIndentedString(isDownloadable)).append("\n"); sb.append(" isHidden: ").append(toIndentedString(isHidden)).append("\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" isMoveable: ").append(toIndentedString(isMoveable)).append("\n"); sb.append(" isQuarantinable: ").append(toIndentedString(isQuarantinable)).append("\n"); sb.append(" isQuarantined: ").append(toIndentedString(isQuarantined)).append("\n"); @@ -1366,18 +1431,21 @@ public String toString() { sb.append(" statusStr: ").append(toIndentedString(statusStr)).append("\n"); sb.append(" statusUpdatedAt: ").append(toIndentedString(statusUpdatedAt)).append("\n"); sb.append(" statusUrl: ").append(toIndentedString(statusUrl)).append("\n"); + sb.append(" storePath: ").append(toIndentedString(storePath)).append("\n"); sb.append(" subtype: ").append(toIndentedString(subtype)).append("\n"); sb.append(" summary: ").append(toIndentedString(summary)).append("\n"); sb.append(" syncFinishedAt: ").append(toIndentedString(syncFinishedAt)).append("\n"); sb.append(" syncProgress: ").append(toIndentedString(syncProgress)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/CargoPackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/CargoPackageUploadRequest.java index 6d565170..eeaade10 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/CargoPackageUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/CargoPackageUploadRequest.java @@ -20,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -34,6 +35,9 @@ public class CargoPackageUploadRequest implements Serializable { private static final long serialVersionUID = 1L; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("package_file") private String packageFile = null; @@ -43,6 +47,18 @@ public class CargoPackageUploadRequest implements Serializable { @SerializedName("tags") private String tags = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + public CargoPackageUploadRequest packageFile(String packageFile) { this.packageFile = packageFile; return this; @@ -98,6 +114,25 @@ public void setTags(String tags) { this.tags = tags; } + public CargoPackageUploadRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + @Override public boolean equals(java.lang.Object o) { @@ -108,14 +143,16 @@ public boolean equals(java.lang.Object o) { return false; } CargoPackageUploadRequest cargoPackageUploadRequest = (CargoPackageUploadRequest) o; - return Objects.equals(this.packageFile, cargoPackageUploadRequest.packageFile) && + return Objects.equals(this.isMalwareDetected, cargoPackageUploadRequest.isMalwareDetected) && + Objects.equals(this.packageFile, cargoPackageUploadRequest.packageFile) && Objects.equals(this.republish, cargoPackageUploadRequest.republish) && - Objects.equals(this.tags, cargoPackageUploadRequest.tags); + Objects.equals(this.tags, cargoPackageUploadRequest.tags) && + Objects.equals(this.vulnerabilityCounts, cargoPackageUploadRequest.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(packageFile, republish, tags); + return Objects.hash(isMalwareDetected, packageFile, republish, tags, vulnerabilityCounts); } @@ -124,9 +161,11 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CargoPackageUploadRequest {\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" packageFile: ").append(toIndentedString(packageFile)).append("\n"); sb.append(" republish: ").append(toIndentedString(republish)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/CocoapodsPackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/CocoapodsPackageUpload.java index 94759839..4881fb1b 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/CocoapodsPackageUpload.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/CocoapodsPackageUpload.java @@ -25,6 +25,7 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -131,6 +132,9 @@ public class CocoapodsPackageUpload implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -322,6 +326,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("status_url") private String statusUrl = null; + @SerializedName("store_path") + private String storePath = null; + @SerializedName("subtype") private String subtype = null; @@ -340,6 +347,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -358,6 +368,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -644,6 +657,15 @@ public Boolean isIsHidden() { return isHidden; } + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + /** * Get isMoveable * @return isMoveable @@ -1045,6 +1067,15 @@ public String getStatusUrl() { return statusUrl; } + /** + * Absolute store path for the package, including store hash and name. + * @return storePath + **/ + @Size(min=1) @ApiModelProperty(value = "Absolute store path for the package, including store hash and name.") + public String getStorePath() { + return storePath; + } + /** * Get subtype * @return subtype @@ -1120,6 +1151,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * 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. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "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.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1175,6 +1216,25 @@ public String getVersionOrig() { return versionOrig; } + public CocoapodsPackageUpload vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1223,6 +1283,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, cocoapodsPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, cocoapodsPackageUpload.isDownloadable) && Objects.equals(this.isHidden, cocoapodsPackageUpload.isHidden) && + Objects.equals(this.isMalwareDetected, cocoapodsPackageUpload.isMalwareDetected) && Objects.equals(this.isMoveable, cocoapodsPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, cocoapodsPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, cocoapodsPackageUpload.isQuarantined) && @@ -1267,24 +1328,27 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.statusStr, cocoapodsPackageUpload.statusStr) && Objects.equals(this.statusUpdatedAt, cocoapodsPackageUpload.statusUpdatedAt) && Objects.equals(this.statusUrl, cocoapodsPackageUpload.statusUrl) && + Objects.equals(this.storePath, cocoapodsPackageUpload.storePath) && Objects.equals(this.subtype, cocoapodsPackageUpload.subtype) && Objects.equals(this.summary, cocoapodsPackageUpload.summary) && Objects.equals(this.syncFinishedAt, cocoapodsPackageUpload.syncFinishedAt) && Objects.equals(this.syncProgress, cocoapodsPackageUpload.syncProgress) && Objects.equals(this.tagsAutomatic, cocoapodsPackageUpload.tagsAutomatic) && Objects.equals(this.tagsImmutable, cocoapodsPackageUpload.tagsImmutable) && + Objects.equals(this.tagsStatic, cocoapodsPackageUpload.tagsStatic) && Objects.equals(this.typeDisplay, cocoapodsPackageUpload.typeDisplay) && Objects.equals(this.uploadedAt, cocoapodsPackageUpload.uploadedAt) && Objects.equals(this.uploader, cocoapodsPackageUpload.uploader) && Objects.equals(this.uploaderUrl, cocoapodsPackageUpload.uploaderUrl) && Objects.equals(this.version, cocoapodsPackageUpload.version) && Objects.equals(this.versionOrig, cocoapodsPackageUpload.versionOrig) && + Objects.equals(this.vulnerabilityCounts, cocoapodsPackageUpload.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, cocoapodsPackageUpload.vulnerabilityScanResultsUrl); } @Override public int hashCode() { - return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMalwareDetected, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1322,6 +1386,7 @@ public String toString() { sb.append(" isDeleteable: ").append(toIndentedString(isDeleteable)).append("\n"); sb.append(" isDownloadable: ").append(toIndentedString(isDownloadable)).append("\n"); sb.append(" isHidden: ").append(toIndentedString(isHidden)).append("\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" isMoveable: ").append(toIndentedString(isMoveable)).append("\n"); sb.append(" isQuarantinable: ").append(toIndentedString(isQuarantinable)).append("\n"); sb.append(" isQuarantined: ").append(toIndentedString(isQuarantined)).append("\n"); @@ -1366,18 +1431,21 @@ public String toString() { sb.append(" statusStr: ").append(toIndentedString(statusStr)).append("\n"); sb.append(" statusUpdatedAt: ").append(toIndentedString(statusUpdatedAt)).append("\n"); sb.append(" statusUrl: ").append(toIndentedString(statusUrl)).append("\n"); + sb.append(" storePath: ").append(toIndentedString(storePath)).append("\n"); sb.append(" subtype: ").append(toIndentedString(subtype)).append("\n"); sb.append(" summary: ").append(toIndentedString(summary)).append("\n"); sb.append(" syncFinishedAt: ").append(toIndentedString(syncFinishedAt)).append("\n"); sb.append(" syncProgress: ").append(toIndentedString(syncProgress)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/CocoapodsPackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/CocoapodsPackageUploadRequest.java index db2816f5..085fcc65 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/CocoapodsPackageUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/CocoapodsPackageUploadRequest.java @@ -20,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -34,6 +35,9 @@ public class CocoapodsPackageUploadRequest implements Serializable { private static final long serialVersionUID = 1L; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("package_file") private String packageFile = null; @@ -43,6 +47,18 @@ public class CocoapodsPackageUploadRequest implements Serializable { @SerializedName("tags") private String tags = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + public CocoapodsPackageUploadRequest packageFile(String packageFile) { this.packageFile = packageFile; return this; @@ -98,6 +114,25 @@ public void setTags(String tags) { this.tags = tags; } + public CocoapodsPackageUploadRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + @Override public boolean equals(java.lang.Object o) { @@ -108,14 +143,16 @@ public boolean equals(java.lang.Object o) { return false; } CocoapodsPackageUploadRequest cocoapodsPackageUploadRequest = (CocoapodsPackageUploadRequest) o; - return Objects.equals(this.packageFile, cocoapodsPackageUploadRequest.packageFile) && + return Objects.equals(this.isMalwareDetected, cocoapodsPackageUploadRequest.isMalwareDetected) && + Objects.equals(this.packageFile, cocoapodsPackageUploadRequest.packageFile) && Objects.equals(this.republish, cocoapodsPackageUploadRequest.republish) && - Objects.equals(this.tags, cocoapodsPackageUploadRequest.tags); + Objects.equals(this.tags, cocoapodsPackageUploadRequest.tags) && + Objects.equals(this.vulnerabilityCounts, cocoapodsPackageUploadRequest.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(packageFile, republish, tags); + return Objects.hash(isMalwareDetected, packageFile, republish, tags, vulnerabilityCounts); } @@ -124,9 +161,11 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CocoapodsPackageUploadRequest {\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" packageFile: ").append(toIndentedString(packageFile)).append("\n"); sb.append(" republish: ").append(toIndentedString(republish)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/ComposerPackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ComposerPackageUpload.java index 599fb50e..cb6ff932 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/ComposerPackageUpload.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ComposerPackageUpload.java @@ -25,6 +25,7 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -131,6 +132,9 @@ public class ComposerPackageUpload implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -322,6 +326,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("status_url") private String statusUrl = null; + @SerializedName("store_path") + private String storePath = null; + @SerializedName("subtype") private String subtype = null; @@ -340,6 +347,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -358,6 +368,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -644,6 +657,15 @@ public Boolean isIsHidden() { return isHidden; } + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + /** * Get isMoveable * @return isMoveable @@ -1045,6 +1067,15 @@ public String getStatusUrl() { return statusUrl; } + /** + * Absolute store path for the package, including store hash and name. + * @return storePath + **/ + @Size(min=1) @ApiModelProperty(value = "Absolute store path for the package, including store hash and name.") + public String getStorePath() { + return storePath; + } + /** * Get subtype * @return subtype @@ -1120,6 +1151,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * 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. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "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.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1184,6 +1225,25 @@ public String getVersionOrig() { return versionOrig; } + public ComposerPackageUpload vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1232,6 +1292,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, composerPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, composerPackageUpload.isDownloadable) && Objects.equals(this.isHidden, composerPackageUpload.isHidden) && + Objects.equals(this.isMalwareDetected, composerPackageUpload.isMalwareDetected) && Objects.equals(this.isMoveable, composerPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, composerPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, composerPackageUpload.isQuarantined) && @@ -1276,24 +1337,27 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.statusStr, composerPackageUpload.statusStr) && Objects.equals(this.statusUpdatedAt, composerPackageUpload.statusUpdatedAt) && Objects.equals(this.statusUrl, composerPackageUpload.statusUrl) && + Objects.equals(this.storePath, composerPackageUpload.storePath) && Objects.equals(this.subtype, composerPackageUpload.subtype) && Objects.equals(this.summary, composerPackageUpload.summary) && Objects.equals(this.syncFinishedAt, composerPackageUpload.syncFinishedAt) && Objects.equals(this.syncProgress, composerPackageUpload.syncProgress) && Objects.equals(this.tagsAutomatic, composerPackageUpload.tagsAutomatic) && Objects.equals(this.tagsImmutable, composerPackageUpload.tagsImmutable) && + Objects.equals(this.tagsStatic, composerPackageUpload.tagsStatic) && Objects.equals(this.typeDisplay, composerPackageUpload.typeDisplay) && Objects.equals(this.uploadedAt, composerPackageUpload.uploadedAt) && Objects.equals(this.uploader, composerPackageUpload.uploader) && Objects.equals(this.uploaderUrl, composerPackageUpload.uploaderUrl) && Objects.equals(this.version, composerPackageUpload.version) && Objects.equals(this.versionOrig, composerPackageUpload.versionOrig) && + Objects.equals(this.vulnerabilityCounts, composerPackageUpload.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, composerPackageUpload.vulnerabilityScanResultsUrl); } @Override public int hashCode() { - return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMalwareDetected, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1331,6 +1395,7 @@ public String toString() { sb.append(" isDeleteable: ").append(toIndentedString(isDeleteable)).append("\n"); sb.append(" isDownloadable: ").append(toIndentedString(isDownloadable)).append("\n"); sb.append(" isHidden: ").append(toIndentedString(isHidden)).append("\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" isMoveable: ").append(toIndentedString(isMoveable)).append("\n"); sb.append(" isQuarantinable: ").append(toIndentedString(isQuarantinable)).append("\n"); sb.append(" isQuarantined: ").append(toIndentedString(isQuarantined)).append("\n"); @@ -1375,18 +1440,21 @@ public String toString() { sb.append(" statusStr: ").append(toIndentedString(statusStr)).append("\n"); sb.append(" statusUpdatedAt: ").append(toIndentedString(statusUpdatedAt)).append("\n"); sb.append(" statusUrl: ").append(toIndentedString(statusUrl)).append("\n"); + sb.append(" storePath: ").append(toIndentedString(storePath)).append("\n"); sb.append(" subtype: ").append(toIndentedString(subtype)).append("\n"); sb.append(" summary: ").append(toIndentedString(summary)).append("\n"); sb.append(" syncFinishedAt: ").append(toIndentedString(syncFinishedAt)).append("\n"); sb.append(" syncProgress: ").append(toIndentedString(syncProgress)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/ComposerPackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ComposerPackageUploadRequest.java index bffbeaea..80cb7485 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/ComposerPackageUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ComposerPackageUploadRequest.java @@ -20,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -34,6 +35,9 @@ public class ComposerPackageUploadRequest implements Serializable { private static final long serialVersionUID = 1L; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("package_file") private String packageFile = null; @@ -46,6 +50,18 @@ public class ComposerPackageUploadRequest implements Serializable { @SerializedName("version") private String version = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + public ComposerPackageUploadRequest packageFile(String packageFile) { this.packageFile = packageFile; return this; @@ -119,6 +135,25 @@ public void setVersion(String version) { this.version = version; } + public ComposerPackageUploadRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + @Override public boolean equals(java.lang.Object o) { @@ -129,15 +164,17 @@ public boolean equals(java.lang.Object o) { return false; } ComposerPackageUploadRequest composerPackageUploadRequest = (ComposerPackageUploadRequest) o; - return Objects.equals(this.packageFile, composerPackageUploadRequest.packageFile) && + return Objects.equals(this.isMalwareDetected, composerPackageUploadRequest.isMalwareDetected) && + Objects.equals(this.packageFile, composerPackageUploadRequest.packageFile) && Objects.equals(this.republish, composerPackageUploadRequest.republish) && Objects.equals(this.tags, composerPackageUploadRequest.tags) && - Objects.equals(this.version, composerPackageUploadRequest.version); + Objects.equals(this.version, composerPackageUploadRequest.version) && + Objects.equals(this.vulnerabilityCounts, composerPackageUploadRequest.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(packageFile, republish, tags, version); + return Objects.hash(isMalwareDetected, packageFile, republish, tags, version, vulnerabilityCounts); } @@ -146,10 +183,12 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ComposerPackageUploadRequest {\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" packageFile: ").append(toIndentedString(packageFile)).append("\n"); sb.append(" republish: ").append(toIndentedString(republish)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/ConanPackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ConanPackageUpload.java index a1f86653..e63897fe 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/ConanPackageUpload.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ConanPackageUpload.java @@ -25,6 +25,7 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -137,6 +138,9 @@ public class ConanPackageUpload implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -328,6 +332,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("status_url") private String statusUrl = null; + @SerializedName("store_path") + private String storePath = null; + @SerializedName("subtype") private String subtype = null; @@ -346,6 +353,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -364,6 +374,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -686,6 +699,15 @@ public Boolean isIsHidden() { return isHidden; } + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + /** * Get isMoveable * @return isMoveable @@ -1096,6 +1118,15 @@ public String getStatusUrl() { return statusUrl; } + /** + * Absolute store path for the package, including store hash and name. + * @return storePath + **/ + @Size(min=1) @ApiModelProperty(value = "Absolute store path for the package, including store hash and name.") + public String getStorePath() { + return storePath; + } + /** * Get subtype * @return subtype @@ -1171,6 +1202,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * 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. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "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.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1235,6 +1276,25 @@ public String getVersionOrig() { return versionOrig; } + public ConanPackageUpload vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1285,6 +1345,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, conanPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, conanPackageUpload.isDownloadable) && Objects.equals(this.isHidden, conanPackageUpload.isHidden) && + Objects.equals(this.isMalwareDetected, conanPackageUpload.isMalwareDetected) && Objects.equals(this.isMoveable, conanPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, conanPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, conanPackageUpload.isQuarantined) && @@ -1329,24 +1390,27 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.statusStr, conanPackageUpload.statusStr) && Objects.equals(this.statusUpdatedAt, conanPackageUpload.statusUpdatedAt) && Objects.equals(this.statusUrl, conanPackageUpload.statusUrl) && + Objects.equals(this.storePath, conanPackageUpload.storePath) && Objects.equals(this.subtype, conanPackageUpload.subtype) && Objects.equals(this.summary, conanPackageUpload.summary) && Objects.equals(this.syncFinishedAt, conanPackageUpload.syncFinishedAt) && Objects.equals(this.syncProgress, conanPackageUpload.syncProgress) && Objects.equals(this.tagsAutomatic, conanPackageUpload.tagsAutomatic) && Objects.equals(this.tagsImmutable, conanPackageUpload.tagsImmutable) && + Objects.equals(this.tagsStatic, conanPackageUpload.tagsStatic) && Objects.equals(this.typeDisplay, conanPackageUpload.typeDisplay) && Objects.equals(this.uploadedAt, conanPackageUpload.uploadedAt) && Objects.equals(this.uploader, conanPackageUpload.uploader) && Objects.equals(this.uploaderUrl, conanPackageUpload.uploaderUrl) && Objects.equals(this.version, conanPackageUpload.version) && Objects.equals(this.versionOrig, conanPackageUpload.versionOrig) && + Objects.equals(this.vulnerabilityCounts, conanPackageUpload.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, conanPackageUpload.vulnerabilityScanResultsUrl); } @Override public int hashCode() { - return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, conanChannel, conanPrefix, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, conanChannel, conanPrefix, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMalwareDetected, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1386,6 +1450,7 @@ public String toString() { sb.append(" isDeleteable: ").append(toIndentedString(isDeleteable)).append("\n"); sb.append(" isDownloadable: ").append(toIndentedString(isDownloadable)).append("\n"); sb.append(" isHidden: ").append(toIndentedString(isHidden)).append("\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" isMoveable: ").append(toIndentedString(isMoveable)).append("\n"); sb.append(" isQuarantinable: ").append(toIndentedString(isQuarantinable)).append("\n"); sb.append(" isQuarantined: ").append(toIndentedString(isQuarantined)).append("\n"); @@ -1430,18 +1495,21 @@ public String toString() { sb.append(" statusStr: ").append(toIndentedString(statusStr)).append("\n"); sb.append(" statusUpdatedAt: ").append(toIndentedString(statusUpdatedAt)).append("\n"); sb.append(" statusUrl: ").append(toIndentedString(statusUrl)).append("\n"); + sb.append(" storePath: ").append(toIndentedString(storePath)).append("\n"); sb.append(" subtype: ").append(toIndentedString(subtype)).append("\n"); sb.append(" summary: ").append(toIndentedString(summary)).append("\n"); sb.append(" syncFinishedAt: ").append(toIndentedString(syncFinishedAt)).append("\n"); sb.append(" syncProgress: ").append(toIndentedString(syncProgress)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/ConanPackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ConanPackageUploadRequest.java index 1d856129..398d5568 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/ConanPackageUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ConanPackageUploadRequest.java @@ -20,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -43,6 +44,9 @@ public class ConanPackageUploadRequest implements Serializable { @SerializedName("info_file") private String infoFile = null; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("manifest_file") private String manifestFile = null; @@ -64,6 +68,9 @@ public class ConanPackageUploadRequest implements Serializable { @SerializedName("version") private String version = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + public ConanPackageUploadRequest conanChannel(String conanChannel) { this.conanChannel = conanChannel; return this; @@ -119,6 +126,15 @@ public void setInfoFile(String infoFile) { this.infoFile = infoFile; } + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + public ConanPackageUploadRequest manifestFile(String manifestFile) { this.manifestFile = manifestFile; return this; @@ -248,6 +264,25 @@ public void setVersion(String version) { this.version = version; } + public ConanPackageUploadRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + @Override public boolean equals(java.lang.Object o) { @@ -261,18 +296,20 @@ public boolean equals(java.lang.Object o) { return Objects.equals(this.conanChannel, conanPackageUploadRequest.conanChannel) && Objects.equals(this.conanPrefix, conanPackageUploadRequest.conanPrefix) && Objects.equals(this.infoFile, conanPackageUploadRequest.infoFile) && + Objects.equals(this.isMalwareDetected, conanPackageUploadRequest.isMalwareDetected) && Objects.equals(this.manifestFile, conanPackageUploadRequest.manifestFile) && Objects.equals(this.metadataFile, conanPackageUploadRequest.metadataFile) && Objects.equals(this.name, conanPackageUploadRequest.name) && Objects.equals(this.packageFile, conanPackageUploadRequest.packageFile) && Objects.equals(this.republish, conanPackageUploadRequest.republish) && Objects.equals(this.tags, conanPackageUploadRequest.tags) && - Objects.equals(this.version, conanPackageUploadRequest.version); + Objects.equals(this.version, conanPackageUploadRequest.version) && + Objects.equals(this.vulnerabilityCounts, conanPackageUploadRequest.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(conanChannel, conanPrefix, infoFile, manifestFile, metadataFile, name, packageFile, republish, tags, version); + return Objects.hash(conanChannel, conanPrefix, infoFile, isMalwareDetected, manifestFile, metadataFile, name, packageFile, republish, tags, version, vulnerabilityCounts); } @@ -284,6 +321,7 @@ public String toString() { sb.append(" conanChannel: ").append(toIndentedString(conanChannel)).append("\n"); sb.append(" conanPrefix: ").append(toIndentedString(conanPrefix)).append("\n"); sb.append(" infoFile: ").append(toIndentedString(infoFile)).append("\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" manifestFile: ").append(toIndentedString(manifestFile)).append("\n"); sb.append(" metadataFile: ").append(toIndentedString(metadataFile)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); @@ -291,6 +329,7 @@ public String toString() { sb.append(" republish: ").append(toIndentedString(republish)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/CondaPackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/CondaPackageUpload.java index b8708f79..735b64f9 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/CondaPackageUpload.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/CondaPackageUpload.java @@ -25,6 +25,7 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -131,6 +132,9 @@ public class CondaPackageUpload implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -322,6 +326,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("status_url") private String statusUrl = null; + @SerializedName("store_path") + private String storePath = null; + @SerializedName("subtype") private String subtype = null; @@ -340,6 +347,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -358,6 +368,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -644,6 +657,15 @@ public Boolean isIsHidden() { return isHidden; } + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + /** * Get isMoveable * @return isMoveable @@ -1045,6 +1067,15 @@ public String getStatusUrl() { return statusUrl; } + /** + * Absolute store path for the package, including store hash and name. + * @return storePath + **/ + @Size(min=1) @ApiModelProperty(value = "Absolute store path for the package, including store hash and name.") + public String getStorePath() { + return storePath; + } + /** * Get subtype * @return subtype @@ -1120,6 +1151,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * 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. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "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.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1175,6 +1216,25 @@ public String getVersionOrig() { return versionOrig; } + public CondaPackageUpload vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1223,6 +1283,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, condaPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, condaPackageUpload.isDownloadable) && Objects.equals(this.isHidden, condaPackageUpload.isHidden) && + Objects.equals(this.isMalwareDetected, condaPackageUpload.isMalwareDetected) && Objects.equals(this.isMoveable, condaPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, condaPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, condaPackageUpload.isQuarantined) && @@ -1267,24 +1328,27 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.statusStr, condaPackageUpload.statusStr) && Objects.equals(this.statusUpdatedAt, condaPackageUpload.statusUpdatedAt) && Objects.equals(this.statusUrl, condaPackageUpload.statusUrl) && + Objects.equals(this.storePath, condaPackageUpload.storePath) && Objects.equals(this.subtype, condaPackageUpload.subtype) && Objects.equals(this.summary, condaPackageUpload.summary) && Objects.equals(this.syncFinishedAt, condaPackageUpload.syncFinishedAt) && Objects.equals(this.syncProgress, condaPackageUpload.syncProgress) && Objects.equals(this.tagsAutomatic, condaPackageUpload.tagsAutomatic) && Objects.equals(this.tagsImmutable, condaPackageUpload.tagsImmutable) && + Objects.equals(this.tagsStatic, condaPackageUpload.tagsStatic) && Objects.equals(this.typeDisplay, condaPackageUpload.typeDisplay) && Objects.equals(this.uploadedAt, condaPackageUpload.uploadedAt) && Objects.equals(this.uploader, condaPackageUpload.uploader) && Objects.equals(this.uploaderUrl, condaPackageUpload.uploaderUrl) && Objects.equals(this.version, condaPackageUpload.version) && Objects.equals(this.versionOrig, condaPackageUpload.versionOrig) && + Objects.equals(this.vulnerabilityCounts, condaPackageUpload.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, condaPackageUpload.vulnerabilityScanResultsUrl); } @Override public int hashCode() { - return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMalwareDetected, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1322,6 +1386,7 @@ public String toString() { sb.append(" isDeleteable: ").append(toIndentedString(isDeleteable)).append("\n"); sb.append(" isDownloadable: ").append(toIndentedString(isDownloadable)).append("\n"); sb.append(" isHidden: ").append(toIndentedString(isHidden)).append("\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" isMoveable: ").append(toIndentedString(isMoveable)).append("\n"); sb.append(" isQuarantinable: ").append(toIndentedString(isQuarantinable)).append("\n"); sb.append(" isQuarantined: ").append(toIndentedString(isQuarantined)).append("\n"); @@ -1366,18 +1431,21 @@ public String toString() { sb.append(" statusStr: ").append(toIndentedString(statusStr)).append("\n"); sb.append(" statusUpdatedAt: ").append(toIndentedString(statusUpdatedAt)).append("\n"); sb.append(" statusUrl: ").append(toIndentedString(statusUrl)).append("\n"); + sb.append(" storePath: ").append(toIndentedString(storePath)).append("\n"); sb.append(" subtype: ").append(toIndentedString(subtype)).append("\n"); sb.append(" summary: ").append(toIndentedString(summary)).append("\n"); sb.append(" syncFinishedAt: ").append(toIndentedString(syncFinishedAt)).append("\n"); sb.append(" syncProgress: ").append(toIndentedString(syncProgress)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/CondaPackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/CondaPackageUploadRequest.java index 05b2581d..a5370a3f 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/CondaPackageUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/CondaPackageUploadRequest.java @@ -20,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -34,6 +35,9 @@ public class CondaPackageUploadRequest implements Serializable { private static final long serialVersionUID = 1L; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("package_file") private String packageFile = null; @@ -43,6 +47,18 @@ public class CondaPackageUploadRequest implements Serializable { @SerializedName("tags") private String tags = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + public CondaPackageUploadRequest packageFile(String packageFile) { this.packageFile = packageFile; return this; @@ -98,6 +114,25 @@ public void setTags(String tags) { this.tags = tags; } + public CondaPackageUploadRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + @Override public boolean equals(java.lang.Object o) { @@ -108,14 +143,16 @@ public boolean equals(java.lang.Object o) { return false; } CondaPackageUploadRequest condaPackageUploadRequest = (CondaPackageUploadRequest) o; - return Objects.equals(this.packageFile, condaPackageUploadRequest.packageFile) && + return Objects.equals(this.isMalwareDetected, condaPackageUploadRequest.isMalwareDetected) && + Objects.equals(this.packageFile, condaPackageUploadRequest.packageFile) && Objects.equals(this.republish, condaPackageUploadRequest.republish) && - Objects.equals(this.tags, condaPackageUploadRequest.tags); + Objects.equals(this.tags, condaPackageUploadRequest.tags) && + Objects.equals(this.vulnerabilityCounts, condaPackageUploadRequest.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(packageFile, republish, tags); + return Objects.hash(isMalwareDetected, packageFile, republish, tags, vulnerabilityCounts); } @@ -124,9 +161,11 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CondaPackageUploadRequest {\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" packageFile: ").append(toIndentedString(packageFile)).append("\n"); sb.append(" republish: ").append(toIndentedString(republish)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/CranPackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/CranPackageUpload.java index 3a754b05..3959cb69 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/CranPackageUpload.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/CranPackageUpload.java @@ -25,6 +25,7 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -131,6 +132,9 @@ public class CranPackageUpload implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -325,6 +329,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("status_url") private String statusUrl = null; + @SerializedName("store_path") + private String storePath = null; + @SerializedName("subtype") private String subtype = null; @@ -343,6 +350,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -361,6 +371,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -647,6 +660,15 @@ public Boolean isIsHidden() { return isHidden; } + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + /** * Get isMoveable * @return isMoveable @@ -1066,6 +1088,15 @@ public String getStatusUrl() { return statusUrl; } + /** + * Absolute store path for the package, including store hash and name. + * @return storePath + **/ + @Size(min=1) @ApiModelProperty(value = "Absolute store path for the package, including store hash and name.") + public String getStorePath() { + return storePath; + } + /** * Get subtype * @return subtype @@ -1141,6 +1172,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * 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. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "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.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1196,6 +1237,25 @@ public String getVersionOrig() { return versionOrig; } + public CranPackageUpload vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1244,6 +1304,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, cranPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, cranPackageUpload.isDownloadable) && Objects.equals(this.isHidden, cranPackageUpload.isHidden) && + Objects.equals(this.isMalwareDetected, cranPackageUpload.isMalwareDetected) && Objects.equals(this.isMoveable, cranPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, cranPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, cranPackageUpload.isQuarantined) && @@ -1289,24 +1350,27 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.statusStr, cranPackageUpload.statusStr) && Objects.equals(this.statusUpdatedAt, cranPackageUpload.statusUpdatedAt) && Objects.equals(this.statusUrl, cranPackageUpload.statusUrl) && + Objects.equals(this.storePath, cranPackageUpload.storePath) && Objects.equals(this.subtype, cranPackageUpload.subtype) && Objects.equals(this.summary, cranPackageUpload.summary) && Objects.equals(this.syncFinishedAt, cranPackageUpload.syncFinishedAt) && Objects.equals(this.syncProgress, cranPackageUpload.syncProgress) && Objects.equals(this.tagsAutomatic, cranPackageUpload.tagsAutomatic) && Objects.equals(this.tagsImmutable, cranPackageUpload.tagsImmutable) && + Objects.equals(this.tagsStatic, cranPackageUpload.tagsStatic) && Objects.equals(this.typeDisplay, cranPackageUpload.typeDisplay) && Objects.equals(this.uploadedAt, cranPackageUpload.uploadedAt) && Objects.equals(this.uploader, cranPackageUpload.uploader) && Objects.equals(this.uploaderUrl, cranPackageUpload.uploaderUrl) && Objects.equals(this.version, cranPackageUpload.version) && Objects.equals(this.versionOrig, cranPackageUpload.versionOrig) && + Objects.equals(this.vulnerabilityCounts, cranPackageUpload.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, cranPackageUpload.vulnerabilityScanResultsUrl); } @Override public int hashCode() { - return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rVersion, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMalwareDetected, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rVersion, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1344,6 +1408,7 @@ public String toString() { sb.append(" isDeleteable: ").append(toIndentedString(isDeleteable)).append("\n"); sb.append(" isDownloadable: ").append(toIndentedString(isDownloadable)).append("\n"); sb.append(" isHidden: ").append(toIndentedString(isHidden)).append("\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" isMoveable: ").append(toIndentedString(isMoveable)).append("\n"); sb.append(" isQuarantinable: ").append(toIndentedString(isQuarantinable)).append("\n"); sb.append(" isQuarantined: ").append(toIndentedString(isQuarantined)).append("\n"); @@ -1389,18 +1454,21 @@ public String toString() { sb.append(" statusStr: ").append(toIndentedString(statusStr)).append("\n"); sb.append(" statusUpdatedAt: ").append(toIndentedString(statusUpdatedAt)).append("\n"); sb.append(" statusUrl: ").append(toIndentedString(statusUrl)).append("\n"); + sb.append(" storePath: ").append(toIndentedString(storePath)).append("\n"); sb.append(" subtype: ").append(toIndentedString(subtype)).append("\n"); sb.append(" summary: ").append(toIndentedString(summary)).append("\n"); sb.append(" syncFinishedAt: ").append(toIndentedString(syncFinishedAt)).append("\n"); sb.append(" syncProgress: ").append(toIndentedString(syncProgress)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/CranPackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/CranPackageUploadRequest.java index acc8b9e0..91dda247 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/CranPackageUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/CranPackageUploadRequest.java @@ -20,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -37,6 +38,9 @@ public class CranPackageUploadRequest implements Serializable { @SerializedName("architecture") private String architecture = null; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("package_file") private String packageFile = null; @@ -49,6 +53,9 @@ public class CranPackageUploadRequest implements Serializable { @SerializedName("tags") private String tags = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + public CranPackageUploadRequest architecture(String architecture) { this.architecture = architecture; return this; @@ -67,6 +74,15 @@ public void setArchitecture(String architecture) { this.architecture = architecture; } + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + public CranPackageUploadRequest packageFile(String packageFile) { this.packageFile = packageFile; return this; @@ -140,6 +156,25 @@ public void setTags(String tags) { this.tags = tags; } + public CranPackageUploadRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + @Override public boolean equals(java.lang.Object o) { @@ -151,15 +186,17 @@ public boolean equals(java.lang.Object o) { } CranPackageUploadRequest cranPackageUploadRequest = (CranPackageUploadRequest) o; return Objects.equals(this.architecture, cranPackageUploadRequest.architecture) && + Objects.equals(this.isMalwareDetected, cranPackageUploadRequest.isMalwareDetected) && Objects.equals(this.packageFile, cranPackageUploadRequest.packageFile) && Objects.equals(this.rVersion, cranPackageUploadRequest.rVersion) && Objects.equals(this.republish, cranPackageUploadRequest.republish) && - Objects.equals(this.tags, cranPackageUploadRequest.tags); + Objects.equals(this.tags, cranPackageUploadRequest.tags) && + Objects.equals(this.vulnerabilityCounts, cranPackageUploadRequest.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(architecture, packageFile, rVersion, republish, tags); + return Objects.hash(architecture, isMalwareDetected, packageFile, rVersion, republish, tags, vulnerabilityCounts); } @@ -169,10 +206,12 @@ public String toString() { sb.append("class CranPackageUploadRequest {\n"); sb.append(" architecture: ").append(toIndentedString(architecture)).append("\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" packageFile: ").append(toIndentedString(packageFile)).append("\n"); sb.append(" rVersion: ").append(toIndentedString(rVersion)).append("\n"); sb.append(" republish: ").append(toIndentedString(republish)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/DartPackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/DartPackageUpload.java index de3dd595..eace9536 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/DartPackageUpload.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/DartPackageUpload.java @@ -25,6 +25,7 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -131,6 +132,9 @@ public class DartPackageUpload implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -322,6 +326,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("status_url") private String statusUrl = null; + @SerializedName("store_path") + private String storePath = null; + @SerializedName("subtype") private String subtype = null; @@ -340,6 +347,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -358,6 +368,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -644,6 +657,15 @@ public Boolean isIsHidden() { return isHidden; } + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + /** * Get isMoveable * @return isMoveable @@ -1045,6 +1067,15 @@ public String getStatusUrl() { return statusUrl; } + /** + * Absolute store path for the package, including store hash and name. + * @return storePath + **/ + @Size(min=1) @ApiModelProperty(value = "Absolute store path for the package, including store hash and name.") + public String getStorePath() { + return storePath; + } + /** * Get subtype * @return subtype @@ -1120,6 +1151,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * 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. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "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.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1175,6 +1216,25 @@ public String getVersionOrig() { return versionOrig; } + public DartPackageUpload vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1223,6 +1283,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, dartPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, dartPackageUpload.isDownloadable) && Objects.equals(this.isHidden, dartPackageUpload.isHidden) && + Objects.equals(this.isMalwareDetected, dartPackageUpload.isMalwareDetected) && Objects.equals(this.isMoveable, dartPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, dartPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, dartPackageUpload.isQuarantined) && @@ -1267,24 +1328,27 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.statusStr, dartPackageUpload.statusStr) && Objects.equals(this.statusUpdatedAt, dartPackageUpload.statusUpdatedAt) && Objects.equals(this.statusUrl, dartPackageUpload.statusUrl) && + Objects.equals(this.storePath, dartPackageUpload.storePath) && Objects.equals(this.subtype, dartPackageUpload.subtype) && Objects.equals(this.summary, dartPackageUpload.summary) && Objects.equals(this.syncFinishedAt, dartPackageUpload.syncFinishedAt) && Objects.equals(this.syncProgress, dartPackageUpload.syncProgress) && Objects.equals(this.tagsAutomatic, dartPackageUpload.tagsAutomatic) && Objects.equals(this.tagsImmutable, dartPackageUpload.tagsImmutable) && + Objects.equals(this.tagsStatic, dartPackageUpload.tagsStatic) && Objects.equals(this.typeDisplay, dartPackageUpload.typeDisplay) && Objects.equals(this.uploadedAt, dartPackageUpload.uploadedAt) && Objects.equals(this.uploader, dartPackageUpload.uploader) && Objects.equals(this.uploaderUrl, dartPackageUpload.uploaderUrl) && Objects.equals(this.version, dartPackageUpload.version) && Objects.equals(this.versionOrig, dartPackageUpload.versionOrig) && + Objects.equals(this.vulnerabilityCounts, dartPackageUpload.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, dartPackageUpload.vulnerabilityScanResultsUrl); } @Override public int hashCode() { - return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMalwareDetected, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1322,6 +1386,7 @@ public String toString() { sb.append(" isDeleteable: ").append(toIndentedString(isDeleteable)).append("\n"); sb.append(" isDownloadable: ").append(toIndentedString(isDownloadable)).append("\n"); sb.append(" isHidden: ").append(toIndentedString(isHidden)).append("\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" isMoveable: ").append(toIndentedString(isMoveable)).append("\n"); sb.append(" isQuarantinable: ").append(toIndentedString(isQuarantinable)).append("\n"); sb.append(" isQuarantined: ").append(toIndentedString(isQuarantined)).append("\n"); @@ -1366,18 +1431,21 @@ public String toString() { sb.append(" statusStr: ").append(toIndentedString(statusStr)).append("\n"); sb.append(" statusUpdatedAt: ").append(toIndentedString(statusUpdatedAt)).append("\n"); sb.append(" statusUrl: ").append(toIndentedString(statusUrl)).append("\n"); + sb.append(" storePath: ").append(toIndentedString(storePath)).append("\n"); sb.append(" subtype: ").append(toIndentedString(subtype)).append("\n"); sb.append(" summary: ").append(toIndentedString(summary)).append("\n"); sb.append(" syncFinishedAt: ").append(toIndentedString(syncFinishedAt)).append("\n"); sb.append(" syncProgress: ").append(toIndentedString(syncProgress)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/DartPackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/DartPackageUploadRequest.java index 2998fc9e..2b0dc859 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/DartPackageUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/DartPackageUploadRequest.java @@ -20,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -34,6 +35,9 @@ public class DartPackageUploadRequest implements Serializable { private static final long serialVersionUID = 1L; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("package_file") private String packageFile = null; @@ -43,6 +47,18 @@ public class DartPackageUploadRequest implements Serializable { @SerializedName("tags") private String tags = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + public DartPackageUploadRequest packageFile(String packageFile) { this.packageFile = packageFile; return this; @@ -98,6 +114,25 @@ public void setTags(String tags) { this.tags = tags; } + public DartPackageUploadRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + @Override public boolean equals(java.lang.Object o) { @@ -108,14 +143,16 @@ public boolean equals(java.lang.Object o) { return false; } DartPackageUploadRequest dartPackageUploadRequest = (DartPackageUploadRequest) o; - return Objects.equals(this.packageFile, dartPackageUploadRequest.packageFile) && + return Objects.equals(this.isMalwareDetected, dartPackageUploadRequest.isMalwareDetected) && + Objects.equals(this.packageFile, dartPackageUploadRequest.packageFile) && Objects.equals(this.republish, dartPackageUploadRequest.republish) && - Objects.equals(this.tags, dartPackageUploadRequest.tags); + Objects.equals(this.tags, dartPackageUploadRequest.tags) && + Objects.equals(this.vulnerabilityCounts, dartPackageUploadRequest.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(packageFile, republish, tags); + return Objects.hash(isMalwareDetected, packageFile, republish, tags, vulnerabilityCounts); } @@ -124,9 +161,11 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DartPackageUploadRequest {\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" packageFile: ").append(toIndentedString(packageFile)).append("\n"); sb.append(" republish: ").append(toIndentedString(republish)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/DebPackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/DebPackageUpload.java index 7f819ca8..e59fe015 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/DebPackageUpload.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/DebPackageUpload.java @@ -25,6 +25,7 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -131,6 +132,9 @@ public class DebPackageUpload implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -322,6 +326,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("status_url") private String statusUrl = null; + @SerializedName("store_path") + private String storePath = null; + @SerializedName("subtype") private String subtype = null; @@ -340,6 +347,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -358,6 +368,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -644,6 +657,15 @@ public Boolean isIsHidden() { return isHidden; } + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + /** * Get isMoveable * @return isMoveable @@ -1045,6 +1067,15 @@ public String getStatusUrl() { return statusUrl; } + /** + * Absolute store path for the package, including store hash and name. + * @return storePath + **/ + @Size(min=1) @ApiModelProperty(value = "Absolute store path for the package, including store hash and name.") + public String getStorePath() { + return storePath; + } + /** * Get subtype * @return subtype @@ -1120,6 +1151,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * 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. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "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.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1175,6 +1216,25 @@ public String getVersionOrig() { return versionOrig; } + public DebPackageUpload vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1223,6 +1283,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, debPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, debPackageUpload.isDownloadable) && Objects.equals(this.isHidden, debPackageUpload.isHidden) && + Objects.equals(this.isMalwareDetected, debPackageUpload.isMalwareDetected) && Objects.equals(this.isMoveable, debPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, debPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, debPackageUpload.isQuarantined) && @@ -1267,24 +1328,27 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.statusStr, debPackageUpload.statusStr) && Objects.equals(this.statusUpdatedAt, debPackageUpload.statusUpdatedAt) && Objects.equals(this.statusUrl, debPackageUpload.statusUrl) && + Objects.equals(this.storePath, debPackageUpload.storePath) && Objects.equals(this.subtype, debPackageUpload.subtype) && Objects.equals(this.summary, debPackageUpload.summary) && Objects.equals(this.syncFinishedAt, debPackageUpload.syncFinishedAt) && Objects.equals(this.syncProgress, debPackageUpload.syncProgress) && Objects.equals(this.tagsAutomatic, debPackageUpload.tagsAutomatic) && Objects.equals(this.tagsImmutable, debPackageUpload.tagsImmutable) && + Objects.equals(this.tagsStatic, debPackageUpload.tagsStatic) && Objects.equals(this.typeDisplay, debPackageUpload.typeDisplay) && Objects.equals(this.uploadedAt, debPackageUpload.uploadedAt) && Objects.equals(this.uploader, debPackageUpload.uploader) && Objects.equals(this.uploaderUrl, debPackageUpload.uploaderUrl) && Objects.equals(this.version, debPackageUpload.version) && Objects.equals(this.versionOrig, debPackageUpload.versionOrig) && + Objects.equals(this.vulnerabilityCounts, debPackageUpload.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, debPackageUpload.vulnerabilityScanResultsUrl); } @Override public int hashCode() { - return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMalwareDetected, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1322,6 +1386,7 @@ public String toString() { sb.append(" isDeleteable: ").append(toIndentedString(isDeleteable)).append("\n"); sb.append(" isDownloadable: ").append(toIndentedString(isDownloadable)).append("\n"); sb.append(" isHidden: ").append(toIndentedString(isHidden)).append("\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" isMoveable: ").append(toIndentedString(isMoveable)).append("\n"); sb.append(" isQuarantinable: ").append(toIndentedString(isQuarantinable)).append("\n"); sb.append(" isQuarantined: ").append(toIndentedString(isQuarantined)).append("\n"); @@ -1366,18 +1431,21 @@ public String toString() { sb.append(" statusStr: ").append(toIndentedString(statusStr)).append("\n"); sb.append(" statusUpdatedAt: ").append(toIndentedString(statusUpdatedAt)).append("\n"); sb.append(" statusUrl: ").append(toIndentedString(statusUrl)).append("\n"); + sb.append(" storePath: ").append(toIndentedString(storePath)).append("\n"); sb.append(" subtype: ").append(toIndentedString(subtype)).append("\n"); sb.append(" summary: ").append(toIndentedString(summary)).append("\n"); sb.append(" syncFinishedAt: ").append(toIndentedString(syncFinishedAt)).append("\n"); sb.append(" syncProgress: ").append(toIndentedString(syncProgress)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/DebPackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/DebPackageUploadRequest.java index 38b1174b..512162f5 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/DebPackageUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/DebPackageUploadRequest.java @@ -20,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -43,6 +44,9 @@ public class DebPackageUploadRequest implements Serializable { @SerializedName("distribution") private String distribution = null; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("package_file") private String packageFile = null; @@ -55,6 +59,9 @@ public class DebPackageUploadRequest implements Serializable { @SerializedName("tags") private String tags = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + public DebPackageUploadRequest changesFile(String changesFile) { this.changesFile = changesFile; return this; @@ -110,6 +117,15 @@ public void setDistribution(String distribution) { this.distribution = distribution; } + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + public DebPackageUploadRequest packageFile(String packageFile) { this.packageFile = packageFile; return this; @@ -183,6 +199,25 @@ public void setTags(String tags) { this.tags = tags; } + public DebPackageUploadRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + @Override public boolean equals(java.lang.Object o) { @@ -196,15 +231,17 @@ public boolean equals(java.lang.Object o) { return Objects.equals(this.changesFile, debPackageUploadRequest.changesFile) && Objects.equals(this.component, debPackageUploadRequest.component) && Objects.equals(this.distribution, debPackageUploadRequest.distribution) && + Objects.equals(this.isMalwareDetected, debPackageUploadRequest.isMalwareDetected) && Objects.equals(this.packageFile, debPackageUploadRequest.packageFile) && Objects.equals(this.republish, debPackageUploadRequest.republish) && Objects.equals(this.sourcesFile, debPackageUploadRequest.sourcesFile) && - Objects.equals(this.tags, debPackageUploadRequest.tags); + Objects.equals(this.tags, debPackageUploadRequest.tags) && + Objects.equals(this.vulnerabilityCounts, debPackageUploadRequest.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(changesFile, component, distribution, packageFile, republish, sourcesFile, tags); + return Objects.hash(changesFile, component, distribution, isMalwareDetected, packageFile, republish, sourcesFile, tags, vulnerabilityCounts); } @@ -216,10 +253,12 @@ public String toString() { sb.append(" changesFile: ").append(toIndentedString(changesFile)).append("\n"); sb.append(" component: ").append(toIndentedString(component)).append("\n"); sb.append(" distribution: ").append(toIndentedString(distribution)).append("\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" packageFile: ").append(toIndentedString(packageFile)).append("\n"); sb.append(" republish: ").append(toIndentedString(republish)).append("\n"); sb.append(" sourcesFile: ").append(toIndentedString(sourcesFile)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/DockerPackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/DockerPackageUpload.java index 715933df..1edb9a26 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/DockerPackageUpload.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/DockerPackageUpload.java @@ -25,6 +25,7 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -131,6 +132,9 @@ public class DockerPackageUpload implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -322,6 +326,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("status_url") private String statusUrl = null; + @SerializedName("store_path") + private String storePath = null; + @SerializedName("subtype") private String subtype = null; @@ -340,6 +347,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -358,6 +368,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -644,6 +657,15 @@ public Boolean isIsHidden() { return isHidden; } + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + /** * Get isMoveable * @return isMoveable @@ -1045,6 +1067,15 @@ public String getStatusUrl() { return statusUrl; } + /** + * Absolute store path for the package, including store hash and name. + * @return storePath + **/ + @Size(min=1) @ApiModelProperty(value = "Absolute store path for the package, including store hash and name.") + public String getStorePath() { + return storePath; + } + /** * Get subtype * @return subtype @@ -1120,6 +1151,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * 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. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "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.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1175,6 +1216,25 @@ public String getVersionOrig() { return versionOrig; } + public DockerPackageUpload vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1223,6 +1283,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, dockerPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, dockerPackageUpload.isDownloadable) && Objects.equals(this.isHidden, dockerPackageUpload.isHidden) && + Objects.equals(this.isMalwareDetected, dockerPackageUpload.isMalwareDetected) && Objects.equals(this.isMoveable, dockerPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, dockerPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, dockerPackageUpload.isQuarantined) && @@ -1267,24 +1328,27 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.statusStr, dockerPackageUpload.statusStr) && Objects.equals(this.statusUpdatedAt, dockerPackageUpload.statusUpdatedAt) && Objects.equals(this.statusUrl, dockerPackageUpload.statusUrl) && + Objects.equals(this.storePath, dockerPackageUpload.storePath) && Objects.equals(this.subtype, dockerPackageUpload.subtype) && Objects.equals(this.summary, dockerPackageUpload.summary) && Objects.equals(this.syncFinishedAt, dockerPackageUpload.syncFinishedAt) && Objects.equals(this.syncProgress, dockerPackageUpload.syncProgress) && Objects.equals(this.tagsAutomatic, dockerPackageUpload.tagsAutomatic) && Objects.equals(this.tagsImmutable, dockerPackageUpload.tagsImmutable) && + Objects.equals(this.tagsStatic, dockerPackageUpload.tagsStatic) && Objects.equals(this.typeDisplay, dockerPackageUpload.typeDisplay) && Objects.equals(this.uploadedAt, dockerPackageUpload.uploadedAt) && Objects.equals(this.uploader, dockerPackageUpload.uploader) && Objects.equals(this.uploaderUrl, dockerPackageUpload.uploaderUrl) && Objects.equals(this.version, dockerPackageUpload.version) && Objects.equals(this.versionOrig, dockerPackageUpload.versionOrig) && + Objects.equals(this.vulnerabilityCounts, dockerPackageUpload.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, dockerPackageUpload.vulnerabilityScanResultsUrl); } @Override public int hashCode() { - return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMalwareDetected, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1322,6 +1386,7 @@ public String toString() { sb.append(" isDeleteable: ").append(toIndentedString(isDeleteable)).append("\n"); sb.append(" isDownloadable: ").append(toIndentedString(isDownloadable)).append("\n"); sb.append(" isHidden: ").append(toIndentedString(isHidden)).append("\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" isMoveable: ").append(toIndentedString(isMoveable)).append("\n"); sb.append(" isQuarantinable: ").append(toIndentedString(isQuarantinable)).append("\n"); sb.append(" isQuarantined: ").append(toIndentedString(isQuarantined)).append("\n"); @@ -1366,18 +1431,21 @@ public String toString() { sb.append(" statusStr: ").append(toIndentedString(statusStr)).append("\n"); sb.append(" statusUpdatedAt: ").append(toIndentedString(statusUpdatedAt)).append("\n"); sb.append(" statusUrl: ").append(toIndentedString(statusUrl)).append("\n"); + sb.append(" storePath: ").append(toIndentedString(storePath)).append("\n"); sb.append(" subtype: ").append(toIndentedString(subtype)).append("\n"); sb.append(" summary: ").append(toIndentedString(summary)).append("\n"); sb.append(" syncFinishedAt: ").append(toIndentedString(syncFinishedAt)).append("\n"); sb.append(" syncProgress: ").append(toIndentedString(syncProgress)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/DockerPackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/DockerPackageUploadRequest.java index b69be1b8..7634396e 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/DockerPackageUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/DockerPackageUploadRequest.java @@ -20,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -34,6 +35,9 @@ public class DockerPackageUploadRequest implements Serializable { private static final long serialVersionUID = 1L; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("package_file") private String packageFile = null; @@ -43,6 +47,18 @@ public class DockerPackageUploadRequest implements Serializable { @SerializedName("tags") private String tags = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + public DockerPackageUploadRequest packageFile(String packageFile) { this.packageFile = packageFile; return this; @@ -98,6 +114,25 @@ public void setTags(String tags) { this.tags = tags; } + public DockerPackageUploadRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + @Override public boolean equals(java.lang.Object o) { @@ -108,14 +143,16 @@ public boolean equals(java.lang.Object o) { return false; } DockerPackageUploadRequest dockerPackageUploadRequest = (DockerPackageUploadRequest) o; - return Objects.equals(this.packageFile, dockerPackageUploadRequest.packageFile) && + return Objects.equals(this.isMalwareDetected, dockerPackageUploadRequest.isMalwareDetected) && + Objects.equals(this.packageFile, dockerPackageUploadRequest.packageFile) && Objects.equals(this.republish, dockerPackageUploadRequest.republish) && - Objects.equals(this.tags, dockerPackageUploadRequest.tags); + Objects.equals(this.tags, dockerPackageUploadRequest.tags) && + Objects.equals(this.vulnerabilityCounts, dockerPackageUploadRequest.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(packageFile, republish, tags); + return Objects.hash(isMalwareDetected, packageFile, republish, tags, vulnerabilityCounts); } @@ -124,9 +161,11 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DockerPackageUploadRequest {\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" packageFile: ").append(toIndentedString(packageFile)).append("\n"); sb.append(" republish: ").append(toIndentedString(republish)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/GenericPackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/GenericPackageUpload.java index 93f9c611..6d6c3e1d 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/GenericPackageUpload.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/GenericPackageUpload.java @@ -25,6 +25,7 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -131,6 +132,9 @@ public class GenericPackageUpload implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -322,6 +326,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("status_url") private String statusUrl = null; + @SerializedName("store_path") + private String storePath = null; + @SerializedName("subtype") private String subtype = null; @@ -340,6 +347,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -358,6 +368,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -644,6 +657,15 @@ public Boolean isIsHidden() { return isHidden; } + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + /** * Get isMoveable * @return isMoveable @@ -1054,6 +1076,15 @@ public String getStatusUrl() { return statusUrl; } + /** + * Absolute store path for the package, including store hash and name. + * @return storePath + **/ + @Size(min=1) @ApiModelProperty(value = "Absolute store path for the package, including store hash and name.") + public String getStorePath() { + return storePath; + } + /** * Get subtype * @return subtype @@ -1129,6 +1160,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * 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. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "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.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1193,6 +1234,25 @@ public String getVersionOrig() { return versionOrig; } + public GenericPackageUpload vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1241,6 +1301,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, genericPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, genericPackageUpload.isDownloadable) && Objects.equals(this.isHidden, genericPackageUpload.isHidden) && + Objects.equals(this.isMalwareDetected, genericPackageUpload.isMalwareDetected) && Objects.equals(this.isMoveable, genericPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, genericPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, genericPackageUpload.isQuarantined) && @@ -1285,24 +1346,27 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.statusStr, genericPackageUpload.statusStr) && Objects.equals(this.statusUpdatedAt, genericPackageUpload.statusUpdatedAt) && Objects.equals(this.statusUrl, genericPackageUpload.statusUrl) && + Objects.equals(this.storePath, genericPackageUpload.storePath) && Objects.equals(this.subtype, genericPackageUpload.subtype) && Objects.equals(this.summary, genericPackageUpload.summary) && Objects.equals(this.syncFinishedAt, genericPackageUpload.syncFinishedAt) && Objects.equals(this.syncProgress, genericPackageUpload.syncProgress) && Objects.equals(this.tagsAutomatic, genericPackageUpload.tagsAutomatic) && Objects.equals(this.tagsImmutable, genericPackageUpload.tagsImmutable) && + Objects.equals(this.tagsStatic, genericPackageUpload.tagsStatic) && Objects.equals(this.typeDisplay, genericPackageUpload.typeDisplay) && Objects.equals(this.uploadedAt, genericPackageUpload.uploadedAt) && Objects.equals(this.uploader, genericPackageUpload.uploader) && Objects.equals(this.uploaderUrl, genericPackageUpload.uploaderUrl) && Objects.equals(this.version, genericPackageUpload.version) && Objects.equals(this.versionOrig, genericPackageUpload.versionOrig) && + Objects.equals(this.vulnerabilityCounts, genericPackageUpload.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, genericPackageUpload.vulnerabilityScanResultsUrl); } @Override public int hashCode() { - return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMalwareDetected, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1340,6 +1404,7 @@ public String toString() { sb.append(" isDeleteable: ").append(toIndentedString(isDeleteable)).append("\n"); sb.append(" isDownloadable: ").append(toIndentedString(isDownloadable)).append("\n"); sb.append(" isHidden: ").append(toIndentedString(isHidden)).append("\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" isMoveable: ").append(toIndentedString(isMoveable)).append("\n"); sb.append(" isQuarantinable: ").append(toIndentedString(isQuarantinable)).append("\n"); sb.append(" isQuarantined: ").append(toIndentedString(isQuarantined)).append("\n"); @@ -1384,18 +1449,21 @@ public String toString() { sb.append(" statusStr: ").append(toIndentedString(statusStr)).append("\n"); sb.append(" statusUpdatedAt: ").append(toIndentedString(statusUpdatedAt)).append("\n"); sb.append(" statusUrl: ").append(toIndentedString(statusUrl)).append("\n"); + sb.append(" storePath: ").append(toIndentedString(storePath)).append("\n"); sb.append(" subtype: ").append(toIndentedString(subtype)).append("\n"); sb.append(" summary: ").append(toIndentedString(summary)).append("\n"); sb.append(" syncFinishedAt: ").append(toIndentedString(syncFinishedAt)).append("\n"); sb.append(" syncProgress: ").append(toIndentedString(syncProgress)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/GenericPackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/GenericPackageUploadRequest.java index a9851f18..337be887 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/GenericPackageUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/GenericPackageUploadRequest.java @@ -20,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -37,6 +38,9 @@ public class GenericPackageUploadRequest implements Serializable { @SerializedName("filepath") private String filepath = null; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("name") private String name = null; @@ -52,6 +56,9 @@ public class GenericPackageUploadRequest implements Serializable { @SerializedName("version") private String version = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + public GenericPackageUploadRequest filepath(String filepath) { this.filepath = filepath; return this; @@ -71,6 +78,15 @@ public void setFilepath(String filepath) { this.filepath = filepath; } + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + public GenericPackageUploadRequest name(String name) { this.name = name; return this; @@ -162,6 +178,25 @@ public void setVersion(String version) { this.version = version; } + public GenericPackageUploadRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + @Override public boolean equals(java.lang.Object o) { @@ -173,16 +208,18 @@ public boolean equals(java.lang.Object o) { } GenericPackageUploadRequest genericPackageUploadRequest = (GenericPackageUploadRequest) o; return Objects.equals(this.filepath, genericPackageUploadRequest.filepath) && + Objects.equals(this.isMalwareDetected, genericPackageUploadRequest.isMalwareDetected) && Objects.equals(this.name, genericPackageUploadRequest.name) && Objects.equals(this.packageFile, genericPackageUploadRequest.packageFile) && Objects.equals(this.republish, genericPackageUploadRequest.republish) && Objects.equals(this.tags, genericPackageUploadRequest.tags) && - Objects.equals(this.version, genericPackageUploadRequest.version); + Objects.equals(this.version, genericPackageUploadRequest.version) && + Objects.equals(this.vulnerabilityCounts, genericPackageUploadRequest.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(filepath, name, packageFile, republish, tags, version); + return Objects.hash(filepath, isMalwareDetected, name, packageFile, republish, tags, version, vulnerabilityCounts); } @@ -192,11 +229,13 @@ public String toString() { sb.append("class GenericPackageUploadRequest {\n"); sb.append(" filepath: ").append(toIndentedString(filepath)).append("\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" packageFile: ").append(toIndentedString(packageFile)).append("\n"); sb.append(" republish: ").append(toIndentedString(republish)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/GoPackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/GoPackageUpload.java index a2c6cb46..77183ff1 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/GoPackageUpload.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/GoPackageUpload.java @@ -25,6 +25,7 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -131,6 +132,9 @@ public class GoPackageUpload implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -322,6 +326,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("status_url") private String statusUrl = null; + @SerializedName("store_path") + private String storePath = null; + @SerializedName("subtype") private String subtype = null; @@ -340,6 +347,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -358,6 +368,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -644,6 +657,15 @@ public Boolean isIsHidden() { return isHidden; } + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + /** * Get isMoveable * @return isMoveable @@ -1045,6 +1067,15 @@ public String getStatusUrl() { return statusUrl; } + /** + * Absolute store path for the package, including store hash and name. + * @return storePath + **/ + @Size(min=1) @ApiModelProperty(value = "Absolute store path for the package, including store hash and name.") + public String getStorePath() { + return storePath; + } + /** * Get subtype * @return subtype @@ -1120,6 +1151,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * 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. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "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.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1175,6 +1216,25 @@ public String getVersionOrig() { return versionOrig; } + public GoPackageUpload vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1223,6 +1283,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, goPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, goPackageUpload.isDownloadable) && Objects.equals(this.isHidden, goPackageUpload.isHidden) && + Objects.equals(this.isMalwareDetected, goPackageUpload.isMalwareDetected) && Objects.equals(this.isMoveable, goPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, goPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, goPackageUpload.isQuarantined) && @@ -1267,24 +1328,27 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.statusStr, goPackageUpload.statusStr) && Objects.equals(this.statusUpdatedAt, goPackageUpload.statusUpdatedAt) && Objects.equals(this.statusUrl, goPackageUpload.statusUrl) && + Objects.equals(this.storePath, goPackageUpload.storePath) && Objects.equals(this.subtype, goPackageUpload.subtype) && Objects.equals(this.summary, goPackageUpload.summary) && Objects.equals(this.syncFinishedAt, goPackageUpload.syncFinishedAt) && Objects.equals(this.syncProgress, goPackageUpload.syncProgress) && Objects.equals(this.tagsAutomatic, goPackageUpload.tagsAutomatic) && Objects.equals(this.tagsImmutable, goPackageUpload.tagsImmutable) && + Objects.equals(this.tagsStatic, goPackageUpload.tagsStatic) && Objects.equals(this.typeDisplay, goPackageUpload.typeDisplay) && Objects.equals(this.uploadedAt, goPackageUpload.uploadedAt) && Objects.equals(this.uploader, goPackageUpload.uploader) && Objects.equals(this.uploaderUrl, goPackageUpload.uploaderUrl) && Objects.equals(this.version, goPackageUpload.version) && Objects.equals(this.versionOrig, goPackageUpload.versionOrig) && + Objects.equals(this.vulnerabilityCounts, goPackageUpload.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, goPackageUpload.vulnerabilityScanResultsUrl); } @Override public int hashCode() { - return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMalwareDetected, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1322,6 +1386,7 @@ public String toString() { sb.append(" isDeleteable: ").append(toIndentedString(isDeleteable)).append("\n"); sb.append(" isDownloadable: ").append(toIndentedString(isDownloadable)).append("\n"); sb.append(" isHidden: ").append(toIndentedString(isHidden)).append("\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" isMoveable: ").append(toIndentedString(isMoveable)).append("\n"); sb.append(" isQuarantinable: ").append(toIndentedString(isQuarantinable)).append("\n"); sb.append(" isQuarantined: ").append(toIndentedString(isQuarantined)).append("\n"); @@ -1366,18 +1431,21 @@ public String toString() { sb.append(" statusStr: ").append(toIndentedString(statusStr)).append("\n"); sb.append(" statusUpdatedAt: ").append(toIndentedString(statusUpdatedAt)).append("\n"); sb.append(" statusUrl: ").append(toIndentedString(statusUrl)).append("\n"); + sb.append(" storePath: ").append(toIndentedString(storePath)).append("\n"); sb.append(" subtype: ").append(toIndentedString(subtype)).append("\n"); sb.append(" summary: ").append(toIndentedString(summary)).append("\n"); sb.append(" syncFinishedAt: ").append(toIndentedString(syncFinishedAt)).append("\n"); sb.append(" syncProgress: ").append(toIndentedString(syncProgress)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/GoPackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/GoPackageUploadRequest.java index dd6e95a4..5580e005 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/GoPackageUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/GoPackageUploadRequest.java @@ -20,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -34,6 +35,9 @@ public class GoPackageUploadRequest implements Serializable { private static final long serialVersionUID = 1L; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("package_file") private String packageFile = null; @@ -43,6 +47,18 @@ public class GoPackageUploadRequest implements Serializable { @SerializedName("tags") private String tags = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + public GoPackageUploadRequest packageFile(String packageFile) { this.packageFile = packageFile; return this; @@ -98,6 +114,25 @@ public void setTags(String tags) { this.tags = tags; } + public GoPackageUploadRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + @Override public boolean equals(java.lang.Object o) { @@ -108,14 +143,16 @@ public boolean equals(java.lang.Object o) { return false; } GoPackageUploadRequest goPackageUploadRequest = (GoPackageUploadRequest) o; - return Objects.equals(this.packageFile, goPackageUploadRequest.packageFile) && + return Objects.equals(this.isMalwareDetected, goPackageUploadRequest.isMalwareDetected) && + Objects.equals(this.packageFile, goPackageUploadRequest.packageFile) && Objects.equals(this.republish, goPackageUploadRequest.republish) && - Objects.equals(this.tags, goPackageUploadRequest.tags); + Objects.equals(this.tags, goPackageUploadRequest.tags) && + Objects.equals(this.vulnerabilityCounts, goPackageUploadRequest.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(packageFile, republish, tags); + return Objects.hash(isMalwareDetected, packageFile, republish, tags, vulnerabilityCounts); } @@ -124,9 +161,11 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GoPackageUploadRequest {\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" packageFile: ").append(toIndentedString(packageFile)).append("\n"); sb.append(" republish: ").append(toIndentedString(republish)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/HelmPackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/HelmPackageUpload.java index 153ceb80..7b85371f 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/HelmPackageUpload.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/HelmPackageUpload.java @@ -25,6 +25,7 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -131,6 +132,9 @@ public class HelmPackageUpload implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -322,6 +326,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("status_url") private String statusUrl = null; + @SerializedName("store_path") + private String storePath = null; + @SerializedName("subtype") private String subtype = null; @@ -340,6 +347,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -358,6 +368,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -644,6 +657,15 @@ public Boolean isIsHidden() { return isHidden; } + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + /** * Get isMoveable * @return isMoveable @@ -1045,6 +1067,15 @@ public String getStatusUrl() { return statusUrl; } + /** + * Absolute store path for the package, including store hash and name. + * @return storePath + **/ + @Size(min=1) @ApiModelProperty(value = "Absolute store path for the package, including store hash and name.") + public String getStorePath() { + return storePath; + } + /** * Get subtype * @return subtype @@ -1120,6 +1151,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * 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. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "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.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1175,6 +1216,25 @@ public String getVersionOrig() { return versionOrig; } + public HelmPackageUpload vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1223,6 +1283,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, helmPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, helmPackageUpload.isDownloadable) && Objects.equals(this.isHidden, helmPackageUpload.isHidden) && + Objects.equals(this.isMalwareDetected, helmPackageUpload.isMalwareDetected) && Objects.equals(this.isMoveable, helmPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, helmPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, helmPackageUpload.isQuarantined) && @@ -1267,24 +1328,27 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.statusStr, helmPackageUpload.statusStr) && Objects.equals(this.statusUpdatedAt, helmPackageUpload.statusUpdatedAt) && Objects.equals(this.statusUrl, helmPackageUpload.statusUrl) && + Objects.equals(this.storePath, helmPackageUpload.storePath) && Objects.equals(this.subtype, helmPackageUpload.subtype) && Objects.equals(this.summary, helmPackageUpload.summary) && Objects.equals(this.syncFinishedAt, helmPackageUpload.syncFinishedAt) && Objects.equals(this.syncProgress, helmPackageUpload.syncProgress) && Objects.equals(this.tagsAutomatic, helmPackageUpload.tagsAutomatic) && Objects.equals(this.tagsImmutable, helmPackageUpload.tagsImmutable) && + Objects.equals(this.tagsStatic, helmPackageUpload.tagsStatic) && Objects.equals(this.typeDisplay, helmPackageUpload.typeDisplay) && Objects.equals(this.uploadedAt, helmPackageUpload.uploadedAt) && Objects.equals(this.uploader, helmPackageUpload.uploader) && Objects.equals(this.uploaderUrl, helmPackageUpload.uploaderUrl) && Objects.equals(this.version, helmPackageUpload.version) && Objects.equals(this.versionOrig, helmPackageUpload.versionOrig) && + Objects.equals(this.vulnerabilityCounts, helmPackageUpload.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, helmPackageUpload.vulnerabilityScanResultsUrl); } @Override public int hashCode() { - return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMalwareDetected, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1322,6 +1386,7 @@ public String toString() { sb.append(" isDeleteable: ").append(toIndentedString(isDeleteable)).append("\n"); sb.append(" isDownloadable: ").append(toIndentedString(isDownloadable)).append("\n"); sb.append(" isHidden: ").append(toIndentedString(isHidden)).append("\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" isMoveable: ").append(toIndentedString(isMoveable)).append("\n"); sb.append(" isQuarantinable: ").append(toIndentedString(isQuarantinable)).append("\n"); sb.append(" isQuarantined: ").append(toIndentedString(isQuarantined)).append("\n"); @@ -1366,18 +1431,21 @@ public String toString() { sb.append(" statusStr: ").append(toIndentedString(statusStr)).append("\n"); sb.append(" statusUpdatedAt: ").append(toIndentedString(statusUpdatedAt)).append("\n"); sb.append(" statusUrl: ").append(toIndentedString(statusUrl)).append("\n"); + sb.append(" storePath: ").append(toIndentedString(storePath)).append("\n"); sb.append(" subtype: ").append(toIndentedString(subtype)).append("\n"); sb.append(" summary: ").append(toIndentedString(summary)).append("\n"); sb.append(" syncFinishedAt: ").append(toIndentedString(syncFinishedAt)).append("\n"); sb.append(" syncProgress: ").append(toIndentedString(syncProgress)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/HelmPackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/HelmPackageUploadRequest.java index 1dc8c137..66cb99a6 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/HelmPackageUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/HelmPackageUploadRequest.java @@ -20,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -34,6 +35,9 @@ public class HelmPackageUploadRequest implements Serializable { private static final long serialVersionUID = 1L; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("package_file") private String packageFile = null; @@ -46,6 +50,18 @@ public class HelmPackageUploadRequest implements Serializable { @SerializedName("tags") private String tags = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + public HelmPackageUploadRequest packageFile(String packageFile) { this.packageFile = packageFile; return this; @@ -119,6 +135,25 @@ public void setTags(String tags) { this.tags = tags; } + public HelmPackageUploadRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + @Override public boolean equals(java.lang.Object o) { @@ -129,15 +164,17 @@ public boolean equals(java.lang.Object o) { return false; } HelmPackageUploadRequest helmPackageUploadRequest = (HelmPackageUploadRequest) o; - return Objects.equals(this.packageFile, helmPackageUploadRequest.packageFile) && + return Objects.equals(this.isMalwareDetected, helmPackageUploadRequest.isMalwareDetected) && + Objects.equals(this.packageFile, helmPackageUploadRequest.packageFile) && Objects.equals(this.provenanceFile, helmPackageUploadRequest.provenanceFile) && Objects.equals(this.republish, helmPackageUploadRequest.republish) && - Objects.equals(this.tags, helmPackageUploadRequest.tags); + Objects.equals(this.tags, helmPackageUploadRequest.tags) && + Objects.equals(this.vulnerabilityCounts, helmPackageUploadRequest.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(packageFile, provenanceFile, republish, tags); + return Objects.hash(isMalwareDetected, packageFile, provenanceFile, republish, tags, vulnerabilityCounts); } @@ -146,10 +183,12 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class HelmPackageUploadRequest {\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" packageFile: ").append(toIndentedString(packageFile)).append("\n"); sb.append(" provenanceFile: ").append(toIndentedString(provenanceFile)).append("\n"); sb.append(" republish: ").append(toIndentedString(republish)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/HexPackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/HexPackageUpload.java index df8a18ad..ac14c56c 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/HexPackageUpload.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/HexPackageUpload.java @@ -25,6 +25,7 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -131,6 +132,9 @@ public class HexPackageUpload implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -322,6 +326,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("status_url") private String statusUrl = null; + @SerializedName("store_path") + private String storePath = null; + @SerializedName("subtype") private String subtype = null; @@ -340,6 +347,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -358,6 +368,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -644,6 +657,15 @@ public Boolean isIsHidden() { return isHidden; } + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + /** * Get isMoveable * @return isMoveable @@ -1045,6 +1067,15 @@ public String getStatusUrl() { return statusUrl; } + /** + * Absolute store path for the package, including store hash and name. + * @return storePath + **/ + @Size(min=1) @ApiModelProperty(value = "Absolute store path for the package, including store hash and name.") + public String getStorePath() { + return storePath; + } + /** * Get subtype * @return subtype @@ -1120,6 +1151,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * 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. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "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.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1175,6 +1216,25 @@ public String getVersionOrig() { return versionOrig; } + public HexPackageUpload vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1223,6 +1283,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, hexPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, hexPackageUpload.isDownloadable) && Objects.equals(this.isHidden, hexPackageUpload.isHidden) && + Objects.equals(this.isMalwareDetected, hexPackageUpload.isMalwareDetected) && Objects.equals(this.isMoveable, hexPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, hexPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, hexPackageUpload.isQuarantined) && @@ -1267,24 +1328,27 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.statusStr, hexPackageUpload.statusStr) && Objects.equals(this.statusUpdatedAt, hexPackageUpload.statusUpdatedAt) && Objects.equals(this.statusUrl, hexPackageUpload.statusUrl) && + Objects.equals(this.storePath, hexPackageUpload.storePath) && Objects.equals(this.subtype, hexPackageUpload.subtype) && Objects.equals(this.summary, hexPackageUpload.summary) && Objects.equals(this.syncFinishedAt, hexPackageUpload.syncFinishedAt) && Objects.equals(this.syncProgress, hexPackageUpload.syncProgress) && Objects.equals(this.tagsAutomatic, hexPackageUpload.tagsAutomatic) && Objects.equals(this.tagsImmutable, hexPackageUpload.tagsImmutable) && + Objects.equals(this.tagsStatic, hexPackageUpload.tagsStatic) && Objects.equals(this.typeDisplay, hexPackageUpload.typeDisplay) && Objects.equals(this.uploadedAt, hexPackageUpload.uploadedAt) && Objects.equals(this.uploader, hexPackageUpload.uploader) && Objects.equals(this.uploaderUrl, hexPackageUpload.uploaderUrl) && Objects.equals(this.version, hexPackageUpload.version) && Objects.equals(this.versionOrig, hexPackageUpload.versionOrig) && + Objects.equals(this.vulnerabilityCounts, hexPackageUpload.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, hexPackageUpload.vulnerabilityScanResultsUrl); } @Override public int hashCode() { - return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMalwareDetected, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1322,6 +1386,7 @@ public String toString() { sb.append(" isDeleteable: ").append(toIndentedString(isDeleteable)).append("\n"); sb.append(" isDownloadable: ").append(toIndentedString(isDownloadable)).append("\n"); sb.append(" isHidden: ").append(toIndentedString(isHidden)).append("\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" isMoveable: ").append(toIndentedString(isMoveable)).append("\n"); sb.append(" isQuarantinable: ").append(toIndentedString(isQuarantinable)).append("\n"); sb.append(" isQuarantined: ").append(toIndentedString(isQuarantined)).append("\n"); @@ -1366,18 +1431,21 @@ public String toString() { sb.append(" statusStr: ").append(toIndentedString(statusStr)).append("\n"); sb.append(" statusUpdatedAt: ").append(toIndentedString(statusUpdatedAt)).append("\n"); sb.append(" statusUrl: ").append(toIndentedString(statusUrl)).append("\n"); + sb.append(" storePath: ").append(toIndentedString(storePath)).append("\n"); sb.append(" subtype: ").append(toIndentedString(subtype)).append("\n"); sb.append(" summary: ").append(toIndentedString(summary)).append("\n"); sb.append(" syncFinishedAt: ").append(toIndentedString(syncFinishedAt)).append("\n"); sb.append(" syncProgress: ").append(toIndentedString(syncProgress)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/HexPackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/HexPackageUploadRequest.java index 9032393a..36f95698 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/HexPackageUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/HexPackageUploadRequest.java @@ -20,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -34,6 +35,9 @@ public class HexPackageUploadRequest implements Serializable { private static final long serialVersionUID = 1L; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("package_file") private String packageFile = null; @@ -43,6 +47,18 @@ public class HexPackageUploadRequest implements Serializable { @SerializedName("tags") private String tags = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + public HexPackageUploadRequest packageFile(String packageFile) { this.packageFile = packageFile; return this; @@ -98,6 +114,25 @@ public void setTags(String tags) { this.tags = tags; } + public HexPackageUploadRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + @Override public boolean equals(java.lang.Object o) { @@ -108,14 +143,16 @@ public boolean equals(java.lang.Object o) { return false; } HexPackageUploadRequest hexPackageUploadRequest = (HexPackageUploadRequest) o; - return Objects.equals(this.packageFile, hexPackageUploadRequest.packageFile) && + return Objects.equals(this.isMalwareDetected, hexPackageUploadRequest.isMalwareDetected) && + Objects.equals(this.packageFile, hexPackageUploadRequest.packageFile) && Objects.equals(this.republish, hexPackageUploadRequest.republish) && - Objects.equals(this.tags, hexPackageUploadRequest.tags); + Objects.equals(this.tags, hexPackageUploadRequest.tags) && + Objects.equals(this.vulnerabilityCounts, hexPackageUploadRequest.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(packageFile, republish, tags); + return Objects.hash(isMalwareDetected, packageFile, republish, tags, vulnerabilityCounts); } @@ -124,9 +161,11 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class HexPackageUploadRequest {\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" packageFile: ").append(toIndentedString(packageFile)).append("\n"); sb.append(" republish: ").append(toIndentedString(republish)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/HuggingfacePackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/HuggingfacePackageUpload.java index c046bb7c..0466cd1f 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/HuggingfacePackageUpload.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/HuggingfacePackageUpload.java @@ -25,6 +25,7 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -131,6 +132,9 @@ public class HuggingfacePackageUpload implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -322,6 +326,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("status_url") private String statusUrl = null; + @SerializedName("store_path") + private String storePath = null; + @SerializedName("subtype") private String subtype = null; @@ -340,6 +347,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -358,6 +368,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -644,6 +657,15 @@ public Boolean isIsHidden() { return isHidden; } + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + /** * Get isMoveable * @return isMoveable @@ -1045,6 +1067,15 @@ public String getStatusUrl() { return statusUrl; } + /** + * Absolute store path for the package, including store hash and name. + * @return storePath + **/ + @Size(min=1) @ApiModelProperty(value = "Absolute store path for the package, including store hash and name.") + public String getStorePath() { + return storePath; + } + /** * Get subtype * @return subtype @@ -1120,6 +1151,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * 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. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "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.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1175,6 +1216,25 @@ public String getVersionOrig() { return versionOrig; } + public HuggingfacePackageUpload vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1223,6 +1283,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, huggingfacePackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, huggingfacePackageUpload.isDownloadable) && Objects.equals(this.isHidden, huggingfacePackageUpload.isHidden) && + Objects.equals(this.isMalwareDetected, huggingfacePackageUpload.isMalwareDetected) && Objects.equals(this.isMoveable, huggingfacePackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, huggingfacePackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, huggingfacePackageUpload.isQuarantined) && @@ -1267,24 +1328,27 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.statusStr, huggingfacePackageUpload.statusStr) && Objects.equals(this.statusUpdatedAt, huggingfacePackageUpload.statusUpdatedAt) && Objects.equals(this.statusUrl, huggingfacePackageUpload.statusUrl) && + Objects.equals(this.storePath, huggingfacePackageUpload.storePath) && Objects.equals(this.subtype, huggingfacePackageUpload.subtype) && Objects.equals(this.summary, huggingfacePackageUpload.summary) && Objects.equals(this.syncFinishedAt, huggingfacePackageUpload.syncFinishedAt) && Objects.equals(this.syncProgress, huggingfacePackageUpload.syncProgress) && Objects.equals(this.tagsAutomatic, huggingfacePackageUpload.tagsAutomatic) && Objects.equals(this.tagsImmutable, huggingfacePackageUpload.tagsImmutable) && + Objects.equals(this.tagsStatic, huggingfacePackageUpload.tagsStatic) && Objects.equals(this.typeDisplay, huggingfacePackageUpload.typeDisplay) && Objects.equals(this.uploadedAt, huggingfacePackageUpload.uploadedAt) && Objects.equals(this.uploader, huggingfacePackageUpload.uploader) && Objects.equals(this.uploaderUrl, huggingfacePackageUpload.uploaderUrl) && Objects.equals(this.version, huggingfacePackageUpload.version) && Objects.equals(this.versionOrig, huggingfacePackageUpload.versionOrig) && + Objects.equals(this.vulnerabilityCounts, huggingfacePackageUpload.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, huggingfacePackageUpload.vulnerabilityScanResultsUrl); } @Override public int hashCode() { - return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMalwareDetected, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1322,6 +1386,7 @@ public String toString() { sb.append(" isDeleteable: ").append(toIndentedString(isDeleteable)).append("\n"); sb.append(" isDownloadable: ").append(toIndentedString(isDownloadable)).append("\n"); sb.append(" isHidden: ").append(toIndentedString(isHidden)).append("\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" isMoveable: ").append(toIndentedString(isMoveable)).append("\n"); sb.append(" isQuarantinable: ").append(toIndentedString(isQuarantinable)).append("\n"); sb.append(" isQuarantined: ").append(toIndentedString(isQuarantined)).append("\n"); @@ -1366,18 +1431,21 @@ public String toString() { sb.append(" statusStr: ").append(toIndentedString(statusStr)).append("\n"); sb.append(" statusUpdatedAt: ").append(toIndentedString(statusUpdatedAt)).append("\n"); sb.append(" statusUrl: ").append(toIndentedString(statusUrl)).append("\n"); + sb.append(" storePath: ").append(toIndentedString(storePath)).append("\n"); sb.append(" subtype: ").append(toIndentedString(subtype)).append("\n"); sb.append(" summary: ").append(toIndentedString(summary)).append("\n"); sb.append(" syncFinishedAt: ").append(toIndentedString(syncFinishedAt)).append("\n"); sb.append(" syncProgress: ").append(toIndentedString(syncProgress)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/HuggingfacePackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/HuggingfacePackageUploadRequest.java index 2f1e3bb8..5a498021 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/HuggingfacePackageUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/HuggingfacePackageUploadRequest.java @@ -20,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -34,6 +35,9 @@ public class HuggingfacePackageUploadRequest implements Serializable { private static final long serialVersionUID = 1L; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("package_file") private String packageFile = null; @@ -43,6 +47,18 @@ public class HuggingfacePackageUploadRequest implements Serializable { @SerializedName("tags") private String tags = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + public HuggingfacePackageUploadRequest packageFile(String packageFile) { this.packageFile = packageFile; return this; @@ -98,6 +114,25 @@ public void setTags(String tags) { this.tags = tags; } + public HuggingfacePackageUploadRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + @Override public boolean equals(java.lang.Object o) { @@ -108,14 +143,16 @@ public boolean equals(java.lang.Object o) { return false; } HuggingfacePackageUploadRequest huggingfacePackageUploadRequest = (HuggingfacePackageUploadRequest) o; - return Objects.equals(this.packageFile, huggingfacePackageUploadRequest.packageFile) && + return Objects.equals(this.isMalwareDetected, huggingfacePackageUploadRequest.isMalwareDetected) && + Objects.equals(this.packageFile, huggingfacePackageUploadRequest.packageFile) && Objects.equals(this.republish, huggingfacePackageUploadRequest.republish) && - Objects.equals(this.tags, huggingfacePackageUploadRequest.tags); + Objects.equals(this.tags, huggingfacePackageUploadRequest.tags) && + Objects.equals(this.vulnerabilityCounts, huggingfacePackageUploadRequest.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(packageFile, republish, tags); + return Objects.hash(isMalwareDetected, packageFile, republish, tags, vulnerabilityCounts); } @@ -124,9 +161,11 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class HuggingfacePackageUploadRequest {\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" packageFile: ").append(toIndentedString(packageFile)).append("\n"); sb.append(" republish: ").append(toIndentedString(republish)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/InlineResponse200.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/InlineResponse200.java index acc8ef75..7a20b41d 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/InlineResponse200.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/InlineResponse200.java @@ -20,12 +20,9 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.cloudsmith.api.models.PackageGroup; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.ArrayList; -import java.util.List; import java.io.Serializable; import javax.validation.constraints.*; import javax.validation.Valid; @@ -37,32 +34,109 @@ public class InlineResponse200 implements Serializable { private static final long serialVersionUID = 1L; - @SerializedName("results") - private List results = new ArrayList<>(); + @SerializedName("allow_open_source_overage") + private Boolean allowOpenSourceOverage = null; - public InlineResponse200 results(List results) { - this.results = results; + @SerializedName("bandwidth_overage_limit") + private java.math.BigInteger bandwidthOverageLimit = null; + + @SerializedName("storage_overage_limit") + private java.math.BigInteger storageOverageLimit = null; + + @SerializedName("bandwidth_maximum") + private java.math.BigInteger bandwidthMaximum = null; + + @SerializedName("storage_maximum") + private java.math.BigInteger storageMaximum = null; + + public InlineResponse200 allowOpenSourceOverage(Boolean allowOpenSourceOverage) { + this.allowOpenSourceOverage = allowOpenSourceOverage; return this; } - public InlineResponse200 addResultsItem(PackageGroup resultsItem) { - this.results.add(resultsItem); + /** + * Whether on-demand open source overage is allowed. + * @return allowOpenSourceOverage + **/ + @ApiModelProperty(value = "Whether on-demand open source overage is allowed.") + public Boolean isAllowOpenSourceOverage() { + return allowOpenSourceOverage; + } + + public void setAllowOpenSourceOverage(Boolean allowOpenSourceOverage) { + this.allowOpenSourceOverage = allowOpenSourceOverage; + } + + public InlineResponse200 bandwidthOverageLimit(java.math.BigInteger bandwidthOverageLimit) { + this.bandwidthOverageLimit = bandwidthOverageLimit; + return this; + } + + /** + * Effective bandwidth overage limit in GB. + * @return bandwidthOverageLimit + **/ + @ApiModelProperty(value = "Effective bandwidth overage limit in GB.") + public java.math.BigInteger getBandwidthOverageLimit() { + return bandwidthOverageLimit; + } + + public void setBandwidthOverageLimit(java.math.BigInteger bandwidthOverageLimit) { + this.bandwidthOverageLimit = bandwidthOverageLimit; + } + + public InlineResponse200 storageOverageLimit(java.math.BigInteger storageOverageLimit) { + this.storageOverageLimit = storageOverageLimit; + return this; + } + + /** + * Effective storage overage limit in GB. + * @return storageOverageLimit + **/ + @ApiModelProperty(value = "Effective storage overage limit in GB.") + public java.math.BigInteger getStorageOverageLimit() { + return storageOverageLimit; + } + + public void setStorageOverageLimit(java.math.BigInteger storageOverageLimit) { + this.storageOverageLimit = storageOverageLimit; + } + + public InlineResponse200 bandwidthMaximum(java.math.BigInteger bandwidthMaximum) { + this.bandwidthMaximum = bandwidthMaximum; + return this; + } + + /** + * Maximum allowed bandwidth overage in GB. + * @return bandwidthMaximum + **/ + @ApiModelProperty(value = "Maximum allowed bandwidth overage in GB.") + public java.math.BigInteger getBandwidthMaximum() { + return bandwidthMaximum; + } + + public void setBandwidthMaximum(java.math.BigInteger bandwidthMaximum) { + this.bandwidthMaximum = bandwidthMaximum; + } + + public InlineResponse200 storageMaximum(java.math.BigInteger storageMaximum) { + this.storageMaximum = storageMaximum; return this; } /** - * Get results - * @return results + * Maximum allowed storage overage in GB. + * @return storageMaximum **/ - @NotNull - @Valid - @ApiModelProperty(required = true, value = "") - public List getResults() { - return results; + @ApiModelProperty(value = "Maximum allowed storage overage in GB.") + public java.math.BigInteger getStorageMaximum() { + return storageMaximum; } - public void setResults(List results) { - this.results = results; + public void setStorageMaximum(java.math.BigInteger storageMaximum) { + this.storageMaximum = storageMaximum; } @@ -75,12 +149,16 @@ public boolean equals(java.lang.Object o) { return false; } InlineResponse200 inlineResponse200 = (InlineResponse200) o; - return Objects.equals(this.results, inlineResponse200.results); + return Objects.equals(this.allowOpenSourceOverage, inlineResponse200.allowOpenSourceOverage) && + Objects.equals(this.bandwidthOverageLimit, inlineResponse200.bandwidthOverageLimit) && + Objects.equals(this.storageOverageLimit, inlineResponse200.storageOverageLimit) && + Objects.equals(this.bandwidthMaximum, inlineResponse200.bandwidthMaximum) && + Objects.equals(this.storageMaximum, inlineResponse200.storageMaximum); } @Override public int hashCode() { - return Objects.hash(results); + return Objects.hash(allowOpenSourceOverage, bandwidthOverageLimit, storageOverageLimit, bandwidthMaximum, storageMaximum); } @@ -89,7 +167,11 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class InlineResponse200 {\n"); - sb.append(" results: ").append(toIndentedString(results)).append("\n"); + sb.append(" allowOpenSourceOverage: ").append(toIndentedString(allowOpenSourceOverage)).append("\n"); + sb.append(" bandwidthOverageLimit: ").append(toIndentedString(bandwidthOverageLimit)).append("\n"); + sb.append(" storageOverageLimit: ").append(toIndentedString(storageOverageLimit)).append("\n"); + sb.append(" bandwidthMaximum: ").append(toIndentedString(bandwidthMaximum)).append("\n"); + sb.append(" storageMaximum: ").append(toIndentedString(storageMaximum)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/InlineResponse2001.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/InlineResponse2001.java index c2f133b4..2c6d6b86 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/InlineResponse2001.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/InlineResponse2001.java @@ -20,12 +20,9 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.cloudsmith.api.models.ConnectedRepository; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.ArrayList; -import java.util.List; import java.io.Serializable; import javax.validation.constraints.*; import javax.validation.Valid; @@ -37,32 +34,67 @@ public class InlineResponse2001 implements Serializable { private static final long serialVersionUID = 1L; - @SerializedName("results") - private List results = new ArrayList<>(); + @SerializedName("allow_open_source_overage") + private Boolean allowOpenSourceOverage = null; - public InlineResponse2001 results(List results) { - this.results = results; + @SerializedName("bandwidth_overage_limit") + private java.math.BigInteger bandwidthOverageLimit = null; + + @SerializedName("storage_overage_limit") + private java.math.BigInteger storageOverageLimit = null; + + public InlineResponse2001 allowOpenSourceOverage(Boolean allowOpenSourceOverage) { + this.allowOpenSourceOverage = allowOpenSourceOverage; return this; } - public InlineResponse2001 addResultsItem(ConnectedRepository resultsItem) { - this.results.add(resultsItem); + /** + * Whether on-demand open source overage is allowed. + * @return allowOpenSourceOverage + **/ + @ApiModelProperty(value = "Whether on-demand open source overage is allowed.") + public Boolean isAllowOpenSourceOverage() { + return allowOpenSourceOverage; + } + + public void setAllowOpenSourceOverage(Boolean allowOpenSourceOverage) { + this.allowOpenSourceOverage = allowOpenSourceOverage; + } + + public InlineResponse2001 bandwidthOverageLimit(java.math.BigInteger bandwidthOverageLimit) { + this.bandwidthOverageLimit = bandwidthOverageLimit; + return this; + } + + /** + * Effective bandwidth overage limit in GB. + * @return bandwidthOverageLimit + **/ + @ApiModelProperty(value = "Effective bandwidth overage limit in GB.") + public java.math.BigInteger getBandwidthOverageLimit() { + return bandwidthOverageLimit; + } + + public void setBandwidthOverageLimit(java.math.BigInteger bandwidthOverageLimit) { + this.bandwidthOverageLimit = bandwidthOverageLimit; + } + + public InlineResponse2001 storageOverageLimit(java.math.BigInteger storageOverageLimit) { + this.storageOverageLimit = storageOverageLimit; return this; } /** - * Get results - * @return results + * Effective storage overage limit in GB. + * @return storageOverageLimit **/ - @NotNull - @Valid - @ApiModelProperty(required = true, value = "") - public List getResults() { - return results; + @ApiModelProperty(value = "Effective storage overage limit in GB.") + public java.math.BigInteger getStorageOverageLimit() { + return storageOverageLimit; } - public void setResults(List results) { - this.results = results; + public void setStorageOverageLimit(java.math.BigInteger storageOverageLimit) { + this.storageOverageLimit = storageOverageLimit; } @@ -75,12 +107,14 @@ public boolean equals(java.lang.Object o) { return false; } InlineResponse2001 inlineResponse2001 = (InlineResponse2001) o; - return Objects.equals(this.results, inlineResponse2001.results); + return Objects.equals(this.allowOpenSourceOverage, inlineResponse2001.allowOpenSourceOverage) && + Objects.equals(this.bandwidthOverageLimit, inlineResponse2001.bandwidthOverageLimit) && + Objects.equals(this.storageOverageLimit, inlineResponse2001.storageOverageLimit); } @Override public int hashCode() { - return Objects.hash(results); + return Objects.hash(allowOpenSourceOverage, bandwidthOverageLimit, storageOverageLimit); } @@ -89,7 +123,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class InlineResponse2001 {\n"); - sb.append(" results: ").append(toIndentedString(results)).append("\n"); + sb.append(" allowOpenSourceOverage: ").append(toIndentedString(allowOpenSourceOverage)).append("\n"); + sb.append(" bandwidthOverageLimit: ").append(toIndentedString(bandwidthOverageLimit)).append("\n"); + sb.append(" storageOverageLimit: ").append(toIndentedString(storageOverageLimit)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/InlineResponse2002.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/InlineResponse2002.java index 897568d0..bb8c7d7a 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/InlineResponse2002.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/InlineResponse2002.java @@ -20,7 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.cloudsmith.api.models.UserAuthenticationToken; +import io.cloudsmith.api.models.PackageGroup; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -38,14 +38,14 @@ public class InlineResponse2002 implements Serializable { private static final long serialVersionUID = 1L; @SerializedName("results") - private List results = new ArrayList<>(); + private List results = new ArrayList<>(); - public InlineResponse2002 results(List results) { + public InlineResponse2002 results(List results) { this.results = results; return this; } - public InlineResponse2002 addResultsItem(UserAuthenticationToken resultsItem) { + public InlineResponse2002 addResultsItem(PackageGroup resultsItem) { this.results.add(resultsItem); return this; } @@ -57,11 +57,11 @@ public InlineResponse2002 addResultsItem(UserAuthenticationToken resultsItem) { @NotNull @Valid @ApiModelProperty(required = true, value = "") - public List getResults() { + public List getResults() { return results; } - public void setResults(List results) { + public void setResults(List results) { this.results = results; } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/InlineResponse2003.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/InlineResponse2003.java new file mode 100644 index 00000000..7f50c0fa --- /dev/null +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/InlineResponse2003.java @@ -0,0 +1,109 @@ +/* + * Cloudsmith API (v1) + * The API to the Cloudsmith Service + * + * OpenAPI spec version: v1 + * Contact: support@cloudsmith.io + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package io.cloudsmith.api.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.ConnectedRepository; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import java.io.Serializable; +import javax.validation.constraints.*; +import javax.validation.Valid; + +/** + * InlineResponse2003 + */ + +public class InlineResponse2003 implements Serializable { + private static final long serialVersionUID = 1L; + + @SerializedName("results") + private List results = new ArrayList<>(); + + public InlineResponse2003 results(List results) { + this.results = results; + return this; + } + + public InlineResponse2003 addResultsItem(ConnectedRepository resultsItem) { + this.results.add(resultsItem); + return this; + } + + /** + * Get results + * @return results + **/ + @NotNull + @Valid + @ApiModelProperty(required = true, value = "") + public List getResults() { + return results; + } + + public void setResults(List results) { + this.results = results; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + InlineResponse2003 inlineResponse2003 = (InlineResponse2003) o; + return Objects.equals(this.results, inlineResponse2003.results); + } + + @Override + public int hashCode() { + return Objects.hash(results); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class InlineResponse2003 {\n"); + + sb.append(" results: ").append(toIndentedString(results)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/InlineResponse2004.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/InlineResponse2004.java new file mode 100644 index 00000000..eaa78f28 --- /dev/null +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/InlineResponse2004.java @@ -0,0 +1,109 @@ +/* + * Cloudsmith API (v1) + * The API to the Cloudsmith Service + * + * OpenAPI spec version: v1 + * Contact: support@cloudsmith.io + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package io.cloudsmith.api.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.UserAuthenticationToken; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import java.io.Serializable; +import javax.validation.constraints.*; +import javax.validation.Valid; + +/** + * InlineResponse2004 + */ + +public class InlineResponse2004 implements Serializable { + private static final long serialVersionUID = 1L; + + @SerializedName("results") + private List results = new ArrayList<>(); + + public InlineResponse2004 results(List results) { + this.results = results; + return this; + } + + public InlineResponse2004 addResultsItem(UserAuthenticationToken resultsItem) { + this.results.add(resultsItem); + return this; + } + + /** + * Get results + * @return results + **/ + @NotNull + @Valid + @ApiModelProperty(required = true, value = "") + public List getResults() { + return results; + } + + public void setResults(List results) { + this.results = results; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + InlineResponse2004 inlineResponse2004 = (InlineResponse2004) o; + return Objects.equals(this.results, inlineResponse2004.results); + } + + @Override + public int hashCode() { + return Objects.hash(results); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class InlineResponse2004 {\n"); + + sb.append(" results: ").append(toIndentedString(results)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/LuarocksPackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/LuarocksPackageUpload.java index c6a3ce30..a30feee7 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/LuarocksPackageUpload.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/LuarocksPackageUpload.java @@ -25,6 +25,7 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -131,6 +132,9 @@ public class LuarocksPackageUpload implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -322,6 +326,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("status_url") private String statusUrl = null; + @SerializedName("store_path") + private String storePath = null; + @SerializedName("subtype") private String subtype = null; @@ -340,6 +347,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -358,6 +368,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -644,6 +657,15 @@ public Boolean isIsHidden() { return isHidden; } + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + /** * Get isMoveable * @return isMoveable @@ -1045,6 +1067,15 @@ public String getStatusUrl() { return statusUrl; } + /** + * Absolute store path for the package, including store hash and name. + * @return storePath + **/ + @Size(min=1) @ApiModelProperty(value = "Absolute store path for the package, including store hash and name.") + public String getStorePath() { + return storePath; + } + /** * Get subtype * @return subtype @@ -1120,6 +1151,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * 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. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "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.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1175,6 +1216,25 @@ public String getVersionOrig() { return versionOrig; } + public LuarocksPackageUpload vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1223,6 +1283,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, luarocksPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, luarocksPackageUpload.isDownloadable) && Objects.equals(this.isHidden, luarocksPackageUpload.isHidden) && + Objects.equals(this.isMalwareDetected, luarocksPackageUpload.isMalwareDetected) && Objects.equals(this.isMoveable, luarocksPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, luarocksPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, luarocksPackageUpload.isQuarantined) && @@ -1267,24 +1328,27 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.statusStr, luarocksPackageUpload.statusStr) && Objects.equals(this.statusUpdatedAt, luarocksPackageUpload.statusUpdatedAt) && Objects.equals(this.statusUrl, luarocksPackageUpload.statusUrl) && + Objects.equals(this.storePath, luarocksPackageUpload.storePath) && Objects.equals(this.subtype, luarocksPackageUpload.subtype) && Objects.equals(this.summary, luarocksPackageUpload.summary) && Objects.equals(this.syncFinishedAt, luarocksPackageUpload.syncFinishedAt) && Objects.equals(this.syncProgress, luarocksPackageUpload.syncProgress) && Objects.equals(this.tagsAutomatic, luarocksPackageUpload.tagsAutomatic) && Objects.equals(this.tagsImmutable, luarocksPackageUpload.tagsImmutable) && + Objects.equals(this.tagsStatic, luarocksPackageUpload.tagsStatic) && Objects.equals(this.typeDisplay, luarocksPackageUpload.typeDisplay) && Objects.equals(this.uploadedAt, luarocksPackageUpload.uploadedAt) && Objects.equals(this.uploader, luarocksPackageUpload.uploader) && Objects.equals(this.uploaderUrl, luarocksPackageUpload.uploaderUrl) && Objects.equals(this.version, luarocksPackageUpload.version) && Objects.equals(this.versionOrig, luarocksPackageUpload.versionOrig) && + Objects.equals(this.vulnerabilityCounts, luarocksPackageUpload.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, luarocksPackageUpload.vulnerabilityScanResultsUrl); } @Override public int hashCode() { - return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMalwareDetected, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1322,6 +1386,7 @@ public String toString() { sb.append(" isDeleteable: ").append(toIndentedString(isDeleteable)).append("\n"); sb.append(" isDownloadable: ").append(toIndentedString(isDownloadable)).append("\n"); sb.append(" isHidden: ").append(toIndentedString(isHidden)).append("\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" isMoveable: ").append(toIndentedString(isMoveable)).append("\n"); sb.append(" isQuarantinable: ").append(toIndentedString(isQuarantinable)).append("\n"); sb.append(" isQuarantined: ").append(toIndentedString(isQuarantined)).append("\n"); @@ -1366,18 +1431,21 @@ public String toString() { sb.append(" statusStr: ").append(toIndentedString(statusStr)).append("\n"); sb.append(" statusUpdatedAt: ").append(toIndentedString(statusUpdatedAt)).append("\n"); sb.append(" statusUrl: ").append(toIndentedString(statusUrl)).append("\n"); + sb.append(" storePath: ").append(toIndentedString(storePath)).append("\n"); sb.append(" subtype: ").append(toIndentedString(subtype)).append("\n"); sb.append(" summary: ").append(toIndentedString(summary)).append("\n"); sb.append(" syncFinishedAt: ").append(toIndentedString(syncFinishedAt)).append("\n"); sb.append(" syncProgress: ").append(toIndentedString(syncProgress)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/LuarocksPackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/LuarocksPackageUploadRequest.java index 3b891613..e988cd5c 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/LuarocksPackageUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/LuarocksPackageUploadRequest.java @@ -20,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -34,6 +35,9 @@ public class LuarocksPackageUploadRequest implements Serializable { private static final long serialVersionUID = 1L; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("package_file") private String packageFile = null; @@ -43,6 +47,18 @@ public class LuarocksPackageUploadRequest implements Serializable { @SerializedName("tags") private String tags = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + public LuarocksPackageUploadRequest packageFile(String packageFile) { this.packageFile = packageFile; return this; @@ -98,6 +114,25 @@ public void setTags(String tags) { this.tags = tags; } + public LuarocksPackageUploadRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + @Override public boolean equals(java.lang.Object o) { @@ -108,14 +143,16 @@ public boolean equals(java.lang.Object o) { return false; } LuarocksPackageUploadRequest luarocksPackageUploadRequest = (LuarocksPackageUploadRequest) o; - return Objects.equals(this.packageFile, luarocksPackageUploadRequest.packageFile) && + return Objects.equals(this.isMalwareDetected, luarocksPackageUploadRequest.isMalwareDetected) && + Objects.equals(this.packageFile, luarocksPackageUploadRequest.packageFile) && Objects.equals(this.republish, luarocksPackageUploadRequest.republish) && - Objects.equals(this.tags, luarocksPackageUploadRequest.tags); + Objects.equals(this.tags, luarocksPackageUploadRequest.tags) && + Objects.equals(this.vulnerabilityCounts, luarocksPackageUploadRequest.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(packageFile, republish, tags); + return Objects.hash(isMalwareDetected, packageFile, republish, tags, vulnerabilityCounts); } @@ -124,9 +161,11 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class LuarocksPackageUploadRequest {\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" packageFile: ").append(toIndentedString(packageFile)).append("\n"); sb.append(" republish: ").append(toIndentedString(republish)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/MavenPackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/MavenPackageUpload.java index 1a61897d..c05581fe 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/MavenPackageUpload.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/MavenPackageUpload.java @@ -25,6 +25,7 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -137,6 +138,9 @@ public class MavenPackageUpload implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -337,6 +341,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("status_url") private String statusUrl = null; + @SerializedName("store_path") + private String storePath = null; + @SerializedName("subtype") private String subtype = null; @@ -355,6 +362,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -373,6 +383,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -695,6 +708,15 @@ public Boolean isIsHidden() { return isHidden; } + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + /** * Get isMoveable * @return isMoveable @@ -1150,6 +1172,15 @@ public String getStatusUrl() { return statusUrl; } + /** + * Absolute store path for the package, including store hash and name. + * @return storePath + **/ + @Size(min=1) @ApiModelProperty(value = "Absolute store path for the package, including store hash and name.") + public String getStorePath() { + return storePath; + } + /** * Get subtype * @return subtype @@ -1225,6 +1256,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * 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. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "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.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1289,6 +1330,25 @@ public String getVersionOrig() { return versionOrig; } + public MavenPackageUpload vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1339,6 +1399,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, mavenPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, mavenPackageUpload.isDownloadable) && Objects.equals(this.isHidden, mavenPackageUpload.isHidden) && + Objects.equals(this.isMalwareDetected, mavenPackageUpload.isMalwareDetected) && Objects.equals(this.isMoveable, mavenPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, mavenPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, mavenPackageUpload.isQuarantined) && @@ -1386,24 +1447,27 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.statusStr, mavenPackageUpload.statusStr) && Objects.equals(this.statusUpdatedAt, mavenPackageUpload.statusUpdatedAt) && Objects.equals(this.statusUrl, mavenPackageUpload.statusUrl) && + Objects.equals(this.storePath, mavenPackageUpload.storePath) && Objects.equals(this.subtype, mavenPackageUpload.subtype) && Objects.equals(this.summary, mavenPackageUpload.summary) && Objects.equals(this.syncFinishedAt, mavenPackageUpload.syncFinishedAt) && Objects.equals(this.syncProgress, mavenPackageUpload.syncProgress) && Objects.equals(this.tagsAutomatic, mavenPackageUpload.tagsAutomatic) && Objects.equals(this.tagsImmutable, mavenPackageUpload.tagsImmutable) && + Objects.equals(this.tagsStatic, mavenPackageUpload.tagsStatic) && Objects.equals(this.typeDisplay, mavenPackageUpload.typeDisplay) && Objects.equals(this.uploadedAt, mavenPackageUpload.uploadedAt) && Objects.equals(this.uploader, mavenPackageUpload.uploader) && Objects.equals(this.uploaderUrl, mavenPackageUpload.uploaderUrl) && Objects.equals(this.version, mavenPackageUpload.version) && Objects.equals(this.versionOrig, mavenPackageUpload.versionOrig) && + Objects.equals(this.vulnerabilityCounts, mavenPackageUpload.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, mavenPackageUpload.vulnerabilityScanResultsUrl); } @Override public int hashCode() { - return Objects.hash(architectures, artifactId, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, groupId, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, packaging, policyViolated, rawLicense, release, repository, repositoryUrl, sbtVersion, scalaVersion, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, artifactId, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, groupId, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMalwareDetected, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, packaging, policyViolated, rawLicense, release, repository, repositoryUrl, sbtVersion, scalaVersion, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1443,6 +1507,7 @@ public String toString() { sb.append(" isDeleteable: ").append(toIndentedString(isDeleteable)).append("\n"); sb.append(" isDownloadable: ").append(toIndentedString(isDownloadable)).append("\n"); sb.append(" isHidden: ").append(toIndentedString(isHidden)).append("\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" isMoveable: ").append(toIndentedString(isMoveable)).append("\n"); sb.append(" isQuarantinable: ").append(toIndentedString(isQuarantinable)).append("\n"); sb.append(" isQuarantined: ").append(toIndentedString(isQuarantined)).append("\n"); @@ -1490,18 +1555,21 @@ public String toString() { sb.append(" statusStr: ").append(toIndentedString(statusStr)).append("\n"); sb.append(" statusUpdatedAt: ").append(toIndentedString(statusUpdatedAt)).append("\n"); sb.append(" statusUrl: ").append(toIndentedString(statusUrl)).append("\n"); + sb.append(" storePath: ").append(toIndentedString(storePath)).append("\n"); sb.append(" subtype: ").append(toIndentedString(subtype)).append("\n"); sb.append(" summary: ").append(toIndentedString(summary)).append("\n"); sb.append(" syncFinishedAt: ").append(toIndentedString(syncFinishedAt)).append("\n"); sb.append(" syncProgress: ").append(toIndentedString(syncProgress)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/MavenPackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/MavenPackageUploadRequest.java index 6be42ece..800728d8 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/MavenPackageUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/MavenPackageUploadRequest.java @@ -20,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -45,6 +46,9 @@ public class MavenPackageUploadRequest implements Serializable { @SerializedName("group_id") private String groupId = null; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("ivy_file") private String ivyFile = null; @@ -81,6 +85,9 @@ public class MavenPackageUploadRequest implements Serializable { @SerializedName("version") private String version = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + public MavenPackageUploadRequest artifactId(String artifactId) { this.artifactId = artifactId; return this; @@ -143,6 +150,15 @@ public void setGroupId(String groupId) { this.groupId = groupId; } + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + public MavenPackageUploadRequest ivyFile(String ivyFile) { this.ivyFile = ivyFile; return this; @@ -360,6 +376,25 @@ public void setVersion(String version) { this.version = version; } + public MavenPackageUploadRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + @Override public boolean equals(java.lang.Object o) { @@ -373,6 +408,7 @@ public boolean equals(java.lang.Object o) { return Objects.equals(this.artifactId, mavenPackageUploadRequest.artifactId) && Objects.equals(this.extraFiles, mavenPackageUploadRequest.extraFiles) && Objects.equals(this.groupId, mavenPackageUploadRequest.groupId) && + Objects.equals(this.isMalwareDetected, mavenPackageUploadRequest.isMalwareDetected) && Objects.equals(this.ivyFile, mavenPackageUploadRequest.ivyFile) && Objects.equals(this.javadocFile, mavenPackageUploadRequest.javadocFile) && Objects.equals(this.packageFile, mavenPackageUploadRequest.packageFile) && @@ -384,12 +420,13 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.sourcesFile, mavenPackageUploadRequest.sourcesFile) && Objects.equals(this.tags, mavenPackageUploadRequest.tags) && Objects.equals(this.testsFile, mavenPackageUploadRequest.testsFile) && - Objects.equals(this.version, mavenPackageUploadRequest.version); + Objects.equals(this.version, mavenPackageUploadRequest.version) && + Objects.equals(this.vulnerabilityCounts, mavenPackageUploadRequest.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(artifactId, extraFiles, groupId, ivyFile, javadocFile, packageFile, packaging, pomFile, republish, sbtVersion, scalaVersion, sourcesFile, tags, testsFile, version); + return Objects.hash(artifactId, extraFiles, groupId, isMalwareDetected, ivyFile, javadocFile, packageFile, packaging, pomFile, republish, sbtVersion, scalaVersion, sourcesFile, tags, testsFile, version, vulnerabilityCounts); } @@ -401,6 +438,7 @@ public String toString() { sb.append(" artifactId: ").append(toIndentedString(artifactId)).append("\n"); sb.append(" extraFiles: ").append(toIndentedString(extraFiles)).append("\n"); sb.append(" groupId: ").append(toIndentedString(groupId)).append("\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" ivyFile: ").append(toIndentedString(ivyFile)).append("\n"); sb.append(" javadocFile: ").append(toIndentedString(javadocFile)).append("\n"); sb.append(" packageFile: ").append(toIndentedString(packageFile)).append("\n"); @@ -413,6 +451,7 @@ public String toString() { sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" testsFile: ").append(toIndentedString(testsFile)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/McpPackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/McpPackageUpload.java index 963bc363..a6713e5f 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/McpPackageUpload.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/McpPackageUpload.java @@ -25,6 +25,7 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -131,6 +132,9 @@ public class McpPackageUpload implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -322,6 +326,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("status_url") private String statusUrl = null; + @SerializedName("store_path") + private String storePath = null; + @SerializedName("subtype") private String subtype = null; @@ -340,6 +347,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -358,6 +368,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -644,6 +657,15 @@ public Boolean isIsHidden() { return isHidden; } + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + /** * Get isMoveable * @return isMoveable @@ -1045,6 +1067,15 @@ public String getStatusUrl() { return statusUrl; } + /** + * Absolute store path for the package, including store hash and name. + * @return storePath + **/ + @Size(min=1) @ApiModelProperty(value = "Absolute store path for the package, including store hash and name.") + public String getStorePath() { + return storePath; + } + /** * Get subtype * @return subtype @@ -1120,6 +1151,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * 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. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "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.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1184,6 +1225,25 @@ public String getVersionOrig() { return versionOrig; } + public McpPackageUpload vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1232,6 +1292,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, mcpPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, mcpPackageUpload.isDownloadable) && Objects.equals(this.isHidden, mcpPackageUpload.isHidden) && + Objects.equals(this.isMalwareDetected, mcpPackageUpload.isMalwareDetected) && Objects.equals(this.isMoveable, mcpPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, mcpPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, mcpPackageUpload.isQuarantined) && @@ -1276,24 +1337,27 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.statusStr, mcpPackageUpload.statusStr) && Objects.equals(this.statusUpdatedAt, mcpPackageUpload.statusUpdatedAt) && Objects.equals(this.statusUrl, mcpPackageUpload.statusUrl) && + Objects.equals(this.storePath, mcpPackageUpload.storePath) && Objects.equals(this.subtype, mcpPackageUpload.subtype) && Objects.equals(this.summary, mcpPackageUpload.summary) && Objects.equals(this.syncFinishedAt, mcpPackageUpload.syncFinishedAt) && Objects.equals(this.syncProgress, mcpPackageUpload.syncProgress) && Objects.equals(this.tagsAutomatic, mcpPackageUpload.tagsAutomatic) && Objects.equals(this.tagsImmutable, mcpPackageUpload.tagsImmutable) && + Objects.equals(this.tagsStatic, mcpPackageUpload.tagsStatic) && Objects.equals(this.typeDisplay, mcpPackageUpload.typeDisplay) && Objects.equals(this.uploadedAt, mcpPackageUpload.uploadedAt) && Objects.equals(this.uploader, mcpPackageUpload.uploader) && Objects.equals(this.uploaderUrl, mcpPackageUpload.uploaderUrl) && Objects.equals(this.version, mcpPackageUpload.version) && Objects.equals(this.versionOrig, mcpPackageUpload.versionOrig) && + Objects.equals(this.vulnerabilityCounts, mcpPackageUpload.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, mcpPackageUpload.vulnerabilityScanResultsUrl); } @Override public int hashCode() { - return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMalwareDetected, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1331,6 +1395,7 @@ public String toString() { sb.append(" isDeleteable: ").append(toIndentedString(isDeleteable)).append("\n"); sb.append(" isDownloadable: ").append(toIndentedString(isDownloadable)).append("\n"); sb.append(" isHidden: ").append(toIndentedString(isHidden)).append("\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" isMoveable: ").append(toIndentedString(isMoveable)).append("\n"); sb.append(" isQuarantinable: ").append(toIndentedString(isQuarantinable)).append("\n"); sb.append(" isQuarantined: ").append(toIndentedString(isQuarantined)).append("\n"); @@ -1375,18 +1440,21 @@ public String toString() { sb.append(" statusStr: ").append(toIndentedString(statusStr)).append("\n"); sb.append(" statusUpdatedAt: ").append(toIndentedString(statusUpdatedAt)).append("\n"); sb.append(" statusUrl: ").append(toIndentedString(statusUrl)).append("\n"); + sb.append(" storePath: ").append(toIndentedString(storePath)).append("\n"); sb.append(" subtype: ").append(toIndentedString(subtype)).append("\n"); sb.append(" summary: ").append(toIndentedString(summary)).append("\n"); sb.append(" syncFinishedAt: ").append(toIndentedString(syncFinishedAt)).append("\n"); sb.append(" syncProgress: ").append(toIndentedString(syncProgress)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/McpPackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/McpPackageUploadRequest.java index 997dcdb7..e17d2c8c 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/McpPackageUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/McpPackageUploadRequest.java @@ -20,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -34,6 +35,9 @@ public class McpPackageUploadRequest implements Serializable { private static final long serialVersionUID = 1L; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("package_file") private String packageFile = null; @@ -46,6 +50,18 @@ public class McpPackageUploadRequest implements Serializable { @SerializedName("version") private String version = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + public McpPackageUploadRequest packageFile(String packageFile) { this.packageFile = packageFile; return this; @@ -119,6 +135,25 @@ public void setVersion(String version) { this.version = version; } + public McpPackageUploadRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + @Override public boolean equals(java.lang.Object o) { @@ -129,15 +164,17 @@ public boolean equals(java.lang.Object o) { return false; } McpPackageUploadRequest mcpPackageUploadRequest = (McpPackageUploadRequest) o; - return Objects.equals(this.packageFile, mcpPackageUploadRequest.packageFile) && + return Objects.equals(this.isMalwareDetected, mcpPackageUploadRequest.isMalwareDetected) && + Objects.equals(this.packageFile, mcpPackageUploadRequest.packageFile) && Objects.equals(this.republish, mcpPackageUploadRequest.republish) && Objects.equals(this.tags, mcpPackageUploadRequest.tags) && - Objects.equals(this.version, mcpPackageUploadRequest.version); + Objects.equals(this.version, mcpPackageUploadRequest.version) && + Objects.equals(this.vulnerabilityCounts, mcpPackageUploadRequest.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(packageFile, republish, tags, version); + return Objects.hash(isMalwareDetected, packageFile, republish, tags, version, vulnerabilityCounts); } @@ -146,10 +183,12 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class McpPackageUploadRequest {\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" packageFile: ").append(toIndentedString(packageFile)).append("\n"); sb.append(" republish: ").append(toIndentedString(republish)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/ModelPackage.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ModelPackage.java index 33c84dca..c789ee3e 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/ModelPackage.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ModelPackage.java @@ -25,6 +25,7 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -134,6 +135,9 @@ public class ModelPackage implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -325,6 +329,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("status_url") private String statusUrl = null; + @SerializedName("store_path") + private String storePath = null; + @SerializedName("subtype") private String subtype = null; @@ -346,6 +353,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -364,6 +374,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -659,6 +672,15 @@ public Boolean isIsHidden() { return isHidden; } + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + /** * Get isMoveable * @return isMoveable @@ -1060,6 +1082,15 @@ public String getStatusUrl() { return statusUrl; } + /** + * Absolute store path for the package, including store hash and name. + * @return storePath + **/ + @Size(min=1) @ApiModelProperty(value = "Absolute store path for the package, including store hash and name.") + public String getStorePath() { + return storePath; + } + /** * Get subtype * @return subtype @@ -1154,6 +1185,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * 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. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "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.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1209,6 +1250,25 @@ public String getVersionOrig() { return versionOrig; } + public ModelPackage vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1258,6 +1318,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, _package.isDeleteable) && Objects.equals(this.isDownloadable, _package.isDownloadable) && Objects.equals(this.isHidden, _package.isHidden) && + Objects.equals(this.isMalwareDetected, _package.isMalwareDetected) && Objects.equals(this.isMoveable, _package.isMoveable) && Objects.equals(this.isQuarantinable, _package.isQuarantinable) && Objects.equals(this.isQuarantined, _package.isQuarantined) && @@ -1302,6 +1363,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.statusStr, _package.statusStr) && Objects.equals(this.statusUpdatedAt, _package.statusUpdatedAt) && Objects.equals(this.statusUrl, _package.statusUrl) && + Objects.equals(this.storePath, _package.storePath) && Objects.equals(this.subtype, _package.subtype) && Objects.equals(this.summary, _package.summary) && Objects.equals(this.syncFinishedAt, _package.syncFinishedAt) && @@ -1309,18 +1371,20 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.tags, _package.tags) && Objects.equals(this.tagsAutomatic, _package.tagsAutomatic) && Objects.equals(this.tagsImmutable, _package.tagsImmutable) && + Objects.equals(this.tagsStatic, _package.tagsStatic) && Objects.equals(this.typeDisplay, _package.typeDisplay) && Objects.equals(this.uploadedAt, _package.uploadedAt) && Objects.equals(this.uploader, _package.uploader) && Objects.equals(this.uploaderUrl, _package.uploaderUrl) && Objects.equals(this.version, _package.version) && Objects.equals(this.versionOrig, _package.versionOrig) && + Objects.equals(this.vulnerabilityCounts, _package.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, _package.vulnerabilityScanResultsUrl); } @Override public int hashCode() { - return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, filepath, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tags, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, filepath, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMalwareDetected, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, storePath, subtype, summary, syncFinishedAt, syncProgress, tags, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1359,6 +1423,7 @@ public String toString() { sb.append(" isDeleteable: ").append(toIndentedString(isDeleteable)).append("\n"); sb.append(" isDownloadable: ").append(toIndentedString(isDownloadable)).append("\n"); sb.append(" isHidden: ").append(toIndentedString(isHidden)).append("\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" isMoveable: ").append(toIndentedString(isMoveable)).append("\n"); sb.append(" isQuarantinable: ").append(toIndentedString(isQuarantinable)).append("\n"); sb.append(" isQuarantined: ").append(toIndentedString(isQuarantined)).append("\n"); @@ -1403,6 +1468,7 @@ public String toString() { sb.append(" statusStr: ").append(toIndentedString(statusStr)).append("\n"); sb.append(" statusUpdatedAt: ").append(toIndentedString(statusUpdatedAt)).append("\n"); sb.append(" statusUrl: ").append(toIndentedString(statusUrl)).append("\n"); + sb.append(" storePath: ").append(toIndentedString(storePath)).append("\n"); sb.append(" subtype: ").append(toIndentedString(subtype)).append("\n"); sb.append(" summary: ").append(toIndentedString(summary)).append("\n"); sb.append(" syncFinishedAt: ").append(toIndentedString(syncFinishedAt)).append("\n"); @@ -1410,12 +1476,14 @@ public String toString() { sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/NixPackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/NixPackageUpload.java new file mode 100644 index 00000000..ecd2c5c6 --- /dev/null +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/NixPackageUpload.java @@ -0,0 +1,1475 @@ +/* + * Cloudsmith API (v1) + * The API to the Cloudsmith Service + * + * OpenAPI spec version: v1 + * Contact: support@cloudsmith.io + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package io.cloudsmith.api.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.Architecture; +import io.cloudsmith.api.models.Distribution; +import io.cloudsmith.api.models.DistributionVersion; +import io.cloudsmith.api.models.PackageFile; +import io.cloudsmith.api.models.Tags; +import io.cloudsmith.api.models.WebOSVSeverityCounts; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.io.Serializable; +import javax.validation.constraints.*; +import javax.validation.Valid; + +/** + * NixPackageUpload + */ + +public class NixPackageUpload implements Serializable { + private static final long serialVersionUID = 1L; + + @SerializedName("architectures") + private List architectures = null; + + @SerializedName("cdn_url") + private String cdnUrl = null; + + @SerializedName("checksum_md5") + private String checksumMd5 = null; + + @SerializedName("checksum_sha1") + private String checksumSha1 = null; + + @SerializedName("checksum_sha256") + private String checksumSha256 = null; + + @SerializedName("checksum_sha512") + private String checksumSha512 = null; + + @SerializedName("dependencies_checksum_md5") + private String dependenciesChecksumMd5 = null; + + @SerializedName("dependencies_url") + private String dependenciesUrl = null; + + @SerializedName("description") + private String description = null; + + @SerializedName("display_name") + private String displayName = null; + + @SerializedName("distro") + private Distribution distro = null; + + @SerializedName("distro_version") + private DistributionVersion distroVersion = null; + + @SerializedName("downloads") + private java.math.BigInteger downloads = null; + + @SerializedName("epoch") + private java.math.BigInteger epoch = null; + + @SerializedName("extension") + private String extension = null; + + @SerializedName("filename") + private String filename = null; + + @SerializedName("files") + private List files = null; + + @SerializedName("format") + private String format = null; + + @SerializedName("format_url") + private String formatUrl = null; + + @SerializedName("freeable_storage") + private java.math.BigInteger freeableStorage = null; + + @SerializedName("fully_qualified_name") + private String fullyQualifiedName = null; + + @SerializedName("identifier_perm") + private String identifierPerm = null; + + @SerializedName("identifiers") + private Map identifiers = null; + + @SerializedName("indexed") + private Boolean indexed = null; + + @SerializedName("is_cancellable") + private Boolean isCancellable = null; + + @SerializedName("is_copyable") + private Boolean isCopyable = null; + + @SerializedName("is_deleteable") + private Boolean isDeleteable = null; + + @SerializedName("is_downloadable") + private Boolean isDownloadable = null; + + @SerializedName("is_hidden") + private Boolean isHidden = null; + + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + + @SerializedName("is_moveable") + private Boolean isMoveable = null; + + @SerializedName("is_quarantinable") + private Boolean isQuarantinable = null; + + @SerializedName("is_quarantined") + private Boolean isQuarantined = null; + + @SerializedName("is_resyncable") + private Boolean isResyncable = null; + + @SerializedName("is_security_scannable") + private Boolean isSecurityScannable = null; + + @SerializedName("is_sync_awaiting") + private Boolean isSyncAwaiting = null; + + @SerializedName("is_sync_completed") + private Boolean isSyncCompleted = null; + + @SerializedName("is_sync_failed") + private Boolean isSyncFailed = null; + + @SerializedName("is_sync_in_flight") + private Boolean isSyncInFlight = null; + + @SerializedName("is_sync_in_progress") + private Boolean isSyncInProgress = null; + + @SerializedName("license") + private String license = null; + + @SerializedName("name") + private String name = null; + + @SerializedName("namespace") + private String namespace = null; + + @SerializedName("namespace_url") + private String namespaceUrl = null; + + @SerializedName("num_files") + private java.math.BigInteger numFiles = null; + + @SerializedName("origin_repository") + private String originRepository = null; + + @SerializedName("origin_repository_url") + private String originRepositoryUrl = null; + + @SerializedName("osi_approved") + private Boolean osiApproved = null; + + @SerializedName("package_type") + private java.math.BigInteger packageType = null; + + @SerializedName("policy_violated") + private Boolean policyViolated = null; + + @SerializedName("raw_license") + private String rawLicense = null; + + @SerializedName("release") + private String release = null; + + @SerializedName("repository") + private String repository = null; + + @SerializedName("repository_url") + private String repositoryUrl = null; + + @SerializedName("security_scan_completed_at") + private OffsetDateTime securityScanCompletedAt = null; + + @SerializedName("security_scan_started_at") + private OffsetDateTime securityScanStartedAt = null; + + /** + * Gets or Sets securityScanStatus + */ + @JsonAdapter(SecurityScanStatusEnum.Adapter.class) + public enum SecurityScanStatusEnum { + AWAITING_SECURITY_SCAN("Awaiting Security Scan"), + + SECURITY_SCANNING_IN_PROGRESS("Security Scanning in Progress"), + + SCAN_DETECTED_VULNERABILITIES("Scan Detected Vulnerabilities"), + + SCAN_DETECTED_NO_VULNERABILITIES("Scan Detected No Vulnerabilities"), + + SECURITY_SCANNING_DISABLED("Security Scanning Disabled"), + + SECURITY_SCANNING_FAILED("Security Scanning Failed"), + + SECURITY_SCANNING_SKIPPED("Security Scanning Skipped"), + + SECURITY_SCANNING_NOT_SUPPORTED("Security Scanning Not Supported"); + + private String value; + + SecurityScanStatusEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static SecurityScanStatusEnum fromValue(String text) { + for (SecurityScanStatusEnum b : SecurityScanStatusEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final SecurityScanStatusEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return SecurityScanStatusEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("security_scan_status") + private SecurityScanStatusEnum securityScanStatus = SecurityScanStatusEnum.AWAITING_SECURITY_SCAN; + + @SerializedName("security_scan_status_updated_at") + private OffsetDateTime securityScanStatusUpdatedAt = null; + + @SerializedName("self_html_url") + private String selfHtmlUrl = null; + + @SerializedName("self_url") + private String selfUrl = null; + + @SerializedName("self_webapp_url") + private String selfWebappUrl = null; + + @SerializedName("signature_url") + private String signatureUrl = null; + + @SerializedName("size") + private java.math.BigInteger size = null; + + @SerializedName("slug") + private String slug = null; + + @SerializedName("slug_perm") + private String slugPerm = null; + + @SerializedName("spdx_license") + private String spdxLicense = null; + + @SerializedName("stage") + private java.math.BigInteger stage = null; + + @SerializedName("stage_str") + private String stageStr = null; + + @SerializedName("stage_updated_at") + private OffsetDateTime stageUpdatedAt = null; + + @SerializedName("status") + private java.math.BigInteger status = null; + + @SerializedName("status_reason") + private String statusReason = null; + + @SerializedName("status_str") + private String statusStr = null; + + @SerializedName("status_updated_at") + private OffsetDateTime statusUpdatedAt = null; + + @SerializedName("status_url") + private String statusUrl = null; + + @SerializedName("store_path") + private String storePath = null; + + @SerializedName("subtype") + private String subtype = null; + + @SerializedName("summary") + private String summary = null; + + @SerializedName("sync_finished_at") + private OffsetDateTime syncFinishedAt = null; + + @SerializedName("sync_progress") + private java.math.BigInteger syncProgress = null; + + @SerializedName("tags_automatic") + private Tags tagsAutomatic = null; + + @SerializedName("tags_immutable") + private Tags tagsImmutable = null; + + @SerializedName("tags_static") + private Map> tagsStatic = null; + + @SerializedName("type_display") + private String typeDisplay = null; + + @SerializedName("uploaded_at") + private OffsetDateTime uploadedAt = null; + + @SerializedName("uploader") + private String uploader = null; + + @SerializedName("uploader_url") + private String uploaderUrl = null; + + @SerializedName("version") + private String version = null; + + @SerializedName("version_orig") + private String versionOrig = null; + + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + + @SerializedName("vulnerability_scan_results_url") + private String vulnerabilityScanResultsUrl = null; + + /** + * Get architectures + * @return architectures + **/ + @Valid + @ApiModelProperty(value = "") + public List getArchitectures() { + return architectures; + } + + /** + * Get cdnUrl + * @return cdnUrl + **/ + @ApiModelProperty(value = "") + public String getCdnUrl() { + return cdnUrl; + } + + /** + * Get checksumMd5 + * @return checksumMd5 + **/ + @ApiModelProperty(value = "") + public String getChecksumMd5() { + return checksumMd5; + } + + /** + * Get checksumSha1 + * @return checksumSha1 + **/ + @ApiModelProperty(value = "") + public String getChecksumSha1() { + return checksumSha1; + } + + /** + * Get checksumSha256 + * @return checksumSha256 + **/ + @ApiModelProperty(value = "") + public String getChecksumSha256() { + return checksumSha256; + } + + /** + * Get checksumSha512 + * @return checksumSha512 + **/ + @ApiModelProperty(value = "") + public String getChecksumSha512() { + return checksumSha512; + } + + /** + * A checksum of all of the package's dependencies. + * @return dependenciesChecksumMd5 + **/ + @ApiModelProperty(value = "A checksum of all of the package's dependencies.") + public String getDependenciesChecksumMd5() { + return dependenciesChecksumMd5; + } + + /** + * Get dependenciesUrl + * @return dependenciesUrl + **/ + @ApiModelProperty(value = "") + public String getDependenciesUrl() { + return dependenciesUrl; + } + + /** + * A textual description of this package. + * @return description + **/ + @ApiModelProperty(value = "A textual description of this package.") + public String getDescription() { + return description; + } + + /** + * Get displayName + * @return displayName + **/ + @ApiModelProperty(value = "") + public String getDisplayName() { + return displayName; + } + + public NixPackageUpload distro(Distribution distro) { + this.distro = distro; + return this; + } + + /** + * Get distro + * @return distro + **/ + @Valid + @ApiModelProperty(value = "") + public Distribution getDistro() { + return distro; + } + + public void setDistro(Distribution distro) { + this.distro = distro; + } + + public NixPackageUpload distroVersion(DistributionVersion distroVersion) { + this.distroVersion = distroVersion; + return this; + } + + /** + * Get distroVersion + * @return distroVersion + **/ + @Valid + @ApiModelProperty(value = "") + public DistributionVersion getDistroVersion() { + return distroVersion; + } + + public void setDistroVersion(DistributionVersion distroVersion) { + this.distroVersion = distroVersion; + } + + /** + * Get downloads + * @return downloads + **/ + @ApiModelProperty(value = "") + public java.math.BigInteger getDownloads() { + return downloads; + } + + /** + * The epoch of the package version (if any). + * @return epoch + **/ + @ApiModelProperty(value = "The epoch of the package version (if any).") + public java.math.BigInteger getEpoch() { + return epoch; + } + + /** + * Get extension + * @return extension + **/ + @ApiModelProperty(value = "") + public String getExtension() { + return extension; + } + + /** + * Get filename + * @return filename + **/ + @Size(min=1) @ApiModelProperty(value = "") + public String getFilename() { + return filename; + } + + /** + * Get files + * @return files + **/ + @Valid + @ApiModelProperty(value = "") + public List getFiles() { + return files; + } + + /** + * Get format + * @return format + **/ + @Size(min=1) @ApiModelProperty(value = "") + public String getFormat() { + return format; + } + + /** + * Get formatUrl + * @return formatUrl + **/ + @ApiModelProperty(value = "") + public String getFormatUrl() { + return formatUrl; + } + + /** + * Amount of storage that will be freed if this package is deleted + * @return freeableStorage + **/ + @ApiModelProperty(value = "Amount of storage that will be freed if this package is deleted") + public java.math.BigInteger getFreeableStorage() { + return freeableStorage; + } + + /** + * Get fullyQualifiedName + * @return fullyQualifiedName + **/ + @Size(min=1) @ApiModelProperty(value = "") + public String getFullyQualifiedName() { + return fullyQualifiedName; + } + + /** + * Unique and permanent identifier for the package. + * @return identifierPerm + **/ + @Size(min=1) @ApiModelProperty(value = "Unique and permanent identifier for the package.") + public String getIdentifierPerm() { + return identifierPerm; + } + + /** + * Return a map of identifier field names and their values. + * @return identifiers + **/ + @ApiModelProperty(value = "Return a map of identifier field names and their values.") + public Map getIdentifiers() { + return identifiers; + } + + /** + * Get indexed + * @return indexed + **/ + @ApiModelProperty(value = "") + public Boolean isIndexed() { + return indexed; + } + + /** + * Get isCancellable + * @return isCancellable + **/ + @ApiModelProperty(value = "") + public Boolean isIsCancellable() { + return isCancellable; + } + + /** + * Get isCopyable + * @return isCopyable + **/ + @ApiModelProperty(value = "") + public Boolean isIsCopyable() { + return isCopyable; + } + + /** + * Get isDeleteable + * @return isDeleteable + **/ + @ApiModelProperty(value = "") + public Boolean isIsDeleteable() { + return isDeleteable; + } + + /** + * Get isDownloadable + * @return isDownloadable + **/ + @ApiModelProperty(value = "") + public Boolean isIsDownloadable() { + return isDownloadable; + } + + /** + * Get isHidden + * @return isHidden + **/ + @ApiModelProperty(value = "") + public Boolean isIsHidden() { + return isHidden; + } + + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + + /** + * Get isMoveable + * @return isMoveable + **/ + @ApiModelProperty(value = "") + public Boolean isIsMoveable() { + return isMoveable; + } + + /** + * Get isQuarantinable + * @return isQuarantinable + **/ + @ApiModelProperty(value = "") + public Boolean isIsQuarantinable() { + return isQuarantinable; + } + + /** + * Get isQuarantined + * @return isQuarantined + **/ + @ApiModelProperty(value = "") + public Boolean isIsQuarantined() { + return isQuarantined; + } + + /** + * Get isResyncable + * @return isResyncable + **/ + @ApiModelProperty(value = "") + public Boolean isIsResyncable() { + return isResyncable; + } + + /** + * Get isSecurityScannable + * @return isSecurityScannable + **/ + @ApiModelProperty(value = "") + public Boolean isIsSecurityScannable() { + return isSecurityScannable; + } + + /** + * Get isSyncAwaiting + * @return isSyncAwaiting + **/ + @ApiModelProperty(value = "") + public Boolean isIsSyncAwaiting() { + return isSyncAwaiting; + } + + /** + * Get isSyncCompleted + * @return isSyncCompleted + **/ + @ApiModelProperty(value = "") + public Boolean isIsSyncCompleted() { + return isSyncCompleted; + } + + /** + * Get isSyncFailed + * @return isSyncFailed + **/ + @ApiModelProperty(value = "") + public Boolean isIsSyncFailed() { + return isSyncFailed; + } + + /** + * Get isSyncInFlight + * @return isSyncInFlight + **/ + @ApiModelProperty(value = "") + public Boolean isIsSyncInFlight() { + return isSyncInFlight; + } + + /** + * Get isSyncInProgress + * @return isSyncInProgress + **/ + @ApiModelProperty(value = "") + public Boolean isIsSyncInProgress() { + return isSyncInProgress; + } + + /** + * The license of this package. + * @return license + **/ + @ApiModelProperty(value = "The license of this package.") + public String getLicense() { + return license; + } + + /** + * The name of this package. + * @return name + **/ + @ApiModelProperty(value = "The name of this package.") + public String getName() { + return name; + } + + /** + * Get namespace + * @return namespace + **/ + @Size(min=1) @ApiModelProperty(value = "") + public String getNamespace() { + return namespace; + } + + /** + * Get namespaceUrl + * @return namespaceUrl + **/ + @ApiModelProperty(value = "") + public String getNamespaceUrl() { + return namespaceUrl; + } + + /** + * Get numFiles + * @return numFiles + **/ + @ApiModelProperty(value = "") + public java.math.BigInteger getNumFiles() { + return numFiles; + } + + /** + * Get originRepository + * @return originRepository + **/ + @Size(min=1) @ApiModelProperty(value = "") + public String getOriginRepository() { + return originRepository; + } + + /** + * Get originRepositoryUrl + * @return originRepositoryUrl + **/ + @ApiModelProperty(value = "") + public String getOriginRepositoryUrl() { + return originRepositoryUrl; + } + + /** + * Whether the package's SPDX license is OSI-approved. + * @return osiApproved + **/ + @ApiModelProperty(value = "Whether the package's SPDX license is OSI-approved.") + public Boolean isOsiApproved() { + return osiApproved; + } + + /** + * The type of package contents. + * @return packageType + **/ + @ApiModelProperty(value = "The type of package contents.") + public java.math.BigInteger getPackageType() { + return packageType; + } + + /** + * Whether or not the package has violated any policy. + * @return policyViolated + **/ + @ApiModelProperty(value = "Whether or not the package has violated any policy.") + public Boolean isPolicyViolated() { + return policyViolated; + } + + /** + * The raw license string. + * @return rawLicense + **/ + @Size(min=1) @ApiModelProperty(value = "The raw license string.") + public String getRawLicense() { + return rawLicense; + } + + /** + * The release of the package version (if any). + * @return release + **/ + @ApiModelProperty(value = "The release of the package version (if any).") + public String getRelease() { + return release; + } + + /** + * Get repository + * @return repository + **/ + @Size(min=1) @ApiModelProperty(value = "") + public String getRepository() { + return repository; + } + + /** + * Get repositoryUrl + * @return repositoryUrl + **/ + @ApiModelProperty(value = "") + public String getRepositoryUrl() { + return repositoryUrl; + } + + /** + * The datetime the security scanning was completed. + * @return securityScanCompletedAt + **/ + @Valid + @ApiModelProperty(value = "The datetime the security scanning was completed.") + public OffsetDateTime getSecurityScanCompletedAt() { + return securityScanCompletedAt; + } + + /** + * The datetime the security scanning was started. + * @return securityScanStartedAt + **/ + @Valid + @ApiModelProperty(value = "The datetime the security scanning was started.") + public OffsetDateTime getSecurityScanStartedAt() { + return securityScanStartedAt; + } + + /** + * Get securityScanStatus + * @return securityScanStatus + **/ + @ApiModelProperty(value = "") + public SecurityScanStatusEnum getSecurityScanStatus() { + return securityScanStatus; + } + + /** + * The datetime the security scanning status was updated. + * @return securityScanStatusUpdatedAt + **/ + @Valid + @ApiModelProperty(value = "The datetime the security scanning status was updated.") + public OffsetDateTime getSecurityScanStatusUpdatedAt() { + return securityScanStatusUpdatedAt; + } + + /** + * Get selfHtmlUrl + * @return selfHtmlUrl + **/ + @Size(min=1) @ApiModelProperty(value = "") + public String getSelfHtmlUrl() { + return selfHtmlUrl; + } + + /** + * Get selfUrl + * @return selfUrl + **/ + @ApiModelProperty(value = "") + public String getSelfUrl() { + return selfUrl; + } + + /** + * Get selfWebappUrl + * @return selfWebappUrl + **/ + @Size(min=1) @ApiModelProperty(value = "") + public String getSelfWebappUrl() { + return selfWebappUrl; + } + + /** + * Get signatureUrl + * @return signatureUrl + **/ + @ApiModelProperty(value = "") + public String getSignatureUrl() { + return signatureUrl; + } + + /** + * The calculated size of the package. + * @return size + **/ + @ApiModelProperty(value = "The calculated size of the package.") + public java.math.BigInteger getSize() { + return size; + } + + /** + * The public unique identifier for the package. + * @return slug + **/ + @Pattern(regexp="^[-a-zA-Z0-9_]+$") @Size(min=1) @ApiModelProperty(value = "The public unique identifier for the package.") + public String getSlug() { + return slug; + } + + /** + * Get slugPerm + * @return slugPerm + **/ + @Pattern(regexp="^[-a-zA-Z0-9_]+$") @Size(min=1) @ApiModelProperty(value = "") + public String getSlugPerm() { + return slugPerm; + } + + /** + * The SPDX license identifier for this package. + * @return spdxLicense + **/ + @Size(min=1) @ApiModelProperty(value = "The SPDX license identifier for this package.") + public String getSpdxLicense() { + return spdxLicense; + } + + /** + * The synchronisation (in progress) stage of the package. + * @return stage + **/ + @ApiModelProperty(value = "The synchronisation (in progress) stage of the package.") + public java.math.BigInteger getStage() { + return stage; + } + + /** + * Get stageStr + * @return stageStr + **/ + @ApiModelProperty(value = "") + public String getStageStr() { + return stageStr; + } + + /** + * The datetime the package stage was updated at. + * @return stageUpdatedAt + **/ + @Valid + @ApiModelProperty(value = "The datetime the package stage was updated at.") + public OffsetDateTime getStageUpdatedAt() { + return stageUpdatedAt; + } + + /** + * The synchronisation status of the package. + * @return status + **/ + @ApiModelProperty(value = "The synchronisation status of the package.") + public java.math.BigInteger getStatus() { + return status; + } + + /** + * A textual description for the synchronous status reason (if any + * @return statusReason + **/ + @ApiModelProperty(value = "A textual description for the synchronous status reason (if any") + public String getStatusReason() { + return statusReason; + } + + /** + * Get statusStr + * @return statusStr + **/ + @ApiModelProperty(value = "") + public String getStatusStr() { + return statusStr; + } + + /** + * The datetime the package status was updated at. + * @return statusUpdatedAt + **/ + @Valid + @ApiModelProperty(value = "The datetime the package status was updated at.") + public OffsetDateTime getStatusUpdatedAt() { + return statusUpdatedAt; + } + + /** + * Get statusUrl + * @return statusUrl + **/ + @ApiModelProperty(value = "") + public String getStatusUrl() { + return statusUrl; + } + + /** + * Absolute store path for the package, including store hash and name. + * @return storePath + **/ + @Size(min=1) @ApiModelProperty(value = "Absolute store path for the package, including store hash and name.") + public String getStorePath() { + return storePath; + } + + /** + * Get subtype + * @return subtype + **/ + @ApiModelProperty(value = "") + public String getSubtype() { + return subtype; + } + + /** + * A one-liner synopsis of this package. + * @return summary + **/ + @ApiModelProperty(value = "A one-liner synopsis of this package.") + public String getSummary() { + return summary; + } + + /** + * The datetime the package sync was finished at. + * @return syncFinishedAt + **/ + @Valid + @ApiModelProperty(value = "The datetime the package sync was finished at.") + public OffsetDateTime getSyncFinishedAt() { + return syncFinishedAt; + } + + /** + * Synchronisation progress (from 0-100) + * @return syncProgress + **/ + @ApiModelProperty(value = "Synchronisation progress (from 0-100)") + public java.math.BigInteger getSyncProgress() { + return syncProgress; + } + + public NixPackageUpload tagsAutomatic(Tags tagsAutomatic) { + this.tagsAutomatic = tagsAutomatic; + return this; + } + + /** + * Get tagsAutomatic + * @return tagsAutomatic + **/ + @Valid + @ApiModelProperty(value = "") + public Tags getTagsAutomatic() { + return tagsAutomatic; + } + + public void setTagsAutomatic(Tags tagsAutomatic) { + this.tagsAutomatic = tagsAutomatic; + } + + public NixPackageUpload tagsImmutable(Tags tagsImmutable) { + this.tagsImmutable = tagsImmutable; + return this; + } + + /** + * Get tagsImmutable + * @return tagsImmutable + **/ + @Valid + @ApiModelProperty(value = "") + public Tags getTagsImmutable() { + return tagsImmutable; + } + + public void setTagsImmutable(Tags tagsImmutable) { + this.tagsImmutable = tagsImmutable; + } + + /** + * 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. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "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.") + public Map> getTagsStatic() { + return tagsStatic; + } + + /** + * Get typeDisplay + * @return typeDisplay + **/ + @ApiModelProperty(value = "") + public String getTypeDisplay() { + return typeDisplay; + } + + /** + * The date this package was uploaded. + * @return uploadedAt + **/ + @Valid + @ApiModelProperty(value = "The date this package was uploaded.") + public OffsetDateTime getUploadedAt() { + return uploadedAt; + } + + /** + * Get uploader + * @return uploader + **/ + @Size(min=1) @ApiModelProperty(value = "") + public String getUploader() { + return uploader; + } + + /** + * Get uploaderUrl + * @return uploaderUrl + **/ + @ApiModelProperty(value = "") + public String getUploaderUrl() { + return uploaderUrl; + } + + public NixPackageUpload version(String version) { + this.version = version; + return this; + } + + /** + * The raw version for this package. + * @return version + **/ + @Size(max=255) @ApiModelProperty(value = "The raw version for this package.") + public String getVersion() { + return version; + } + + public void setVersion(String version) { + this.version = version; + } + + /** + * Get versionOrig + * @return versionOrig + **/ + @ApiModelProperty(value = "") + public String getVersionOrig() { + return versionOrig; + } + + public NixPackageUpload vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + + /** + * Get vulnerabilityScanResultsUrl + * @return vulnerabilityScanResultsUrl + **/ + @ApiModelProperty(value = "") + public String getVulnerabilityScanResultsUrl() { + return vulnerabilityScanResultsUrl; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + NixPackageUpload nixPackageUpload = (NixPackageUpload) o; + return Objects.equals(this.architectures, nixPackageUpload.architectures) && + Objects.equals(this.cdnUrl, nixPackageUpload.cdnUrl) && + Objects.equals(this.checksumMd5, nixPackageUpload.checksumMd5) && + Objects.equals(this.checksumSha1, nixPackageUpload.checksumSha1) && + Objects.equals(this.checksumSha256, nixPackageUpload.checksumSha256) && + Objects.equals(this.checksumSha512, nixPackageUpload.checksumSha512) && + Objects.equals(this.dependenciesChecksumMd5, nixPackageUpload.dependenciesChecksumMd5) && + Objects.equals(this.dependenciesUrl, nixPackageUpload.dependenciesUrl) && + Objects.equals(this.description, nixPackageUpload.description) && + Objects.equals(this.displayName, nixPackageUpload.displayName) && + Objects.equals(this.distro, nixPackageUpload.distro) && + Objects.equals(this.distroVersion, nixPackageUpload.distroVersion) && + Objects.equals(this.downloads, nixPackageUpload.downloads) && + Objects.equals(this.epoch, nixPackageUpload.epoch) && + Objects.equals(this.extension, nixPackageUpload.extension) && + Objects.equals(this.filename, nixPackageUpload.filename) && + Objects.equals(this.files, nixPackageUpload.files) && + Objects.equals(this.format, nixPackageUpload.format) && + Objects.equals(this.formatUrl, nixPackageUpload.formatUrl) && + Objects.equals(this.freeableStorage, nixPackageUpload.freeableStorage) && + Objects.equals(this.fullyQualifiedName, nixPackageUpload.fullyQualifiedName) && + Objects.equals(this.identifierPerm, nixPackageUpload.identifierPerm) && + Objects.equals(this.identifiers, nixPackageUpload.identifiers) && + Objects.equals(this.indexed, nixPackageUpload.indexed) && + Objects.equals(this.isCancellable, nixPackageUpload.isCancellable) && + Objects.equals(this.isCopyable, nixPackageUpload.isCopyable) && + Objects.equals(this.isDeleteable, nixPackageUpload.isDeleteable) && + Objects.equals(this.isDownloadable, nixPackageUpload.isDownloadable) && + Objects.equals(this.isHidden, nixPackageUpload.isHidden) && + Objects.equals(this.isMalwareDetected, nixPackageUpload.isMalwareDetected) && + Objects.equals(this.isMoveable, nixPackageUpload.isMoveable) && + Objects.equals(this.isQuarantinable, nixPackageUpload.isQuarantinable) && + Objects.equals(this.isQuarantined, nixPackageUpload.isQuarantined) && + Objects.equals(this.isResyncable, nixPackageUpload.isResyncable) && + Objects.equals(this.isSecurityScannable, nixPackageUpload.isSecurityScannable) && + Objects.equals(this.isSyncAwaiting, nixPackageUpload.isSyncAwaiting) && + Objects.equals(this.isSyncCompleted, nixPackageUpload.isSyncCompleted) && + Objects.equals(this.isSyncFailed, nixPackageUpload.isSyncFailed) && + Objects.equals(this.isSyncInFlight, nixPackageUpload.isSyncInFlight) && + Objects.equals(this.isSyncInProgress, nixPackageUpload.isSyncInProgress) && + Objects.equals(this.license, nixPackageUpload.license) && + Objects.equals(this.name, nixPackageUpload.name) && + Objects.equals(this.namespace, nixPackageUpload.namespace) && + Objects.equals(this.namespaceUrl, nixPackageUpload.namespaceUrl) && + Objects.equals(this.numFiles, nixPackageUpload.numFiles) && + Objects.equals(this.originRepository, nixPackageUpload.originRepository) && + Objects.equals(this.originRepositoryUrl, nixPackageUpload.originRepositoryUrl) && + Objects.equals(this.osiApproved, nixPackageUpload.osiApproved) && + Objects.equals(this.packageType, nixPackageUpload.packageType) && + Objects.equals(this.policyViolated, nixPackageUpload.policyViolated) && + Objects.equals(this.rawLicense, nixPackageUpload.rawLicense) && + Objects.equals(this.release, nixPackageUpload.release) && + Objects.equals(this.repository, nixPackageUpload.repository) && + Objects.equals(this.repositoryUrl, nixPackageUpload.repositoryUrl) && + Objects.equals(this.securityScanCompletedAt, nixPackageUpload.securityScanCompletedAt) && + Objects.equals(this.securityScanStartedAt, nixPackageUpload.securityScanStartedAt) && + Objects.equals(this.securityScanStatus, nixPackageUpload.securityScanStatus) && + Objects.equals(this.securityScanStatusUpdatedAt, nixPackageUpload.securityScanStatusUpdatedAt) && + Objects.equals(this.selfHtmlUrl, nixPackageUpload.selfHtmlUrl) && + Objects.equals(this.selfUrl, nixPackageUpload.selfUrl) && + Objects.equals(this.selfWebappUrl, nixPackageUpload.selfWebappUrl) && + Objects.equals(this.signatureUrl, nixPackageUpload.signatureUrl) && + Objects.equals(this.size, nixPackageUpload.size) && + Objects.equals(this.slug, nixPackageUpload.slug) && + Objects.equals(this.slugPerm, nixPackageUpload.slugPerm) && + Objects.equals(this.spdxLicense, nixPackageUpload.spdxLicense) && + Objects.equals(this.stage, nixPackageUpload.stage) && + Objects.equals(this.stageStr, nixPackageUpload.stageStr) && + Objects.equals(this.stageUpdatedAt, nixPackageUpload.stageUpdatedAt) && + Objects.equals(this.status, nixPackageUpload.status) && + Objects.equals(this.statusReason, nixPackageUpload.statusReason) && + Objects.equals(this.statusStr, nixPackageUpload.statusStr) && + Objects.equals(this.statusUpdatedAt, nixPackageUpload.statusUpdatedAt) && + Objects.equals(this.statusUrl, nixPackageUpload.statusUrl) && + Objects.equals(this.storePath, nixPackageUpload.storePath) && + Objects.equals(this.subtype, nixPackageUpload.subtype) && + Objects.equals(this.summary, nixPackageUpload.summary) && + Objects.equals(this.syncFinishedAt, nixPackageUpload.syncFinishedAt) && + Objects.equals(this.syncProgress, nixPackageUpload.syncProgress) && + Objects.equals(this.tagsAutomatic, nixPackageUpload.tagsAutomatic) && + Objects.equals(this.tagsImmutable, nixPackageUpload.tagsImmutable) && + Objects.equals(this.tagsStatic, nixPackageUpload.tagsStatic) && + Objects.equals(this.typeDisplay, nixPackageUpload.typeDisplay) && + Objects.equals(this.uploadedAt, nixPackageUpload.uploadedAt) && + Objects.equals(this.uploader, nixPackageUpload.uploader) && + Objects.equals(this.uploaderUrl, nixPackageUpload.uploaderUrl) && + Objects.equals(this.version, nixPackageUpload.version) && + Objects.equals(this.versionOrig, nixPackageUpload.versionOrig) && + Objects.equals(this.vulnerabilityCounts, nixPackageUpload.vulnerabilityCounts) && + Objects.equals(this.vulnerabilityScanResultsUrl, nixPackageUpload.vulnerabilityScanResultsUrl); + } + + @Override + public int hashCode() { + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMalwareDetected, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class NixPackageUpload {\n"); + + sb.append(" architectures: ").append(toIndentedString(architectures)).append("\n"); + sb.append(" cdnUrl: ").append(toIndentedString(cdnUrl)).append("\n"); + sb.append(" checksumMd5: ").append(toIndentedString(checksumMd5)).append("\n"); + sb.append(" checksumSha1: ").append(toIndentedString(checksumSha1)).append("\n"); + sb.append(" checksumSha256: ").append(toIndentedString(checksumSha256)).append("\n"); + sb.append(" checksumSha512: ").append(toIndentedString(checksumSha512)).append("\n"); + sb.append(" dependenciesChecksumMd5: ").append(toIndentedString(dependenciesChecksumMd5)).append("\n"); + sb.append(" dependenciesUrl: ").append(toIndentedString(dependenciesUrl)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" distro: ").append(toIndentedString(distro)).append("\n"); + sb.append(" distroVersion: ").append(toIndentedString(distroVersion)).append("\n"); + sb.append(" downloads: ").append(toIndentedString(downloads)).append("\n"); + sb.append(" epoch: ").append(toIndentedString(epoch)).append("\n"); + sb.append(" extension: ").append(toIndentedString(extension)).append("\n"); + sb.append(" filename: ").append(toIndentedString(filename)).append("\n"); + sb.append(" files: ").append(toIndentedString(files)).append("\n"); + sb.append(" format: ").append(toIndentedString(format)).append("\n"); + sb.append(" formatUrl: ").append(toIndentedString(formatUrl)).append("\n"); + sb.append(" freeableStorage: ").append(toIndentedString(freeableStorage)).append("\n"); + sb.append(" fullyQualifiedName: ").append(toIndentedString(fullyQualifiedName)).append("\n"); + sb.append(" identifierPerm: ").append(toIndentedString(identifierPerm)).append("\n"); + sb.append(" identifiers: ").append(toIndentedString(identifiers)).append("\n"); + sb.append(" indexed: ").append(toIndentedString(indexed)).append("\n"); + sb.append(" isCancellable: ").append(toIndentedString(isCancellable)).append("\n"); + sb.append(" isCopyable: ").append(toIndentedString(isCopyable)).append("\n"); + sb.append(" isDeleteable: ").append(toIndentedString(isDeleteable)).append("\n"); + sb.append(" isDownloadable: ").append(toIndentedString(isDownloadable)).append("\n"); + sb.append(" isHidden: ").append(toIndentedString(isHidden)).append("\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); + sb.append(" isMoveable: ").append(toIndentedString(isMoveable)).append("\n"); + sb.append(" isQuarantinable: ").append(toIndentedString(isQuarantinable)).append("\n"); + sb.append(" isQuarantined: ").append(toIndentedString(isQuarantined)).append("\n"); + sb.append(" isResyncable: ").append(toIndentedString(isResyncable)).append("\n"); + sb.append(" isSecurityScannable: ").append(toIndentedString(isSecurityScannable)).append("\n"); + sb.append(" isSyncAwaiting: ").append(toIndentedString(isSyncAwaiting)).append("\n"); + sb.append(" isSyncCompleted: ").append(toIndentedString(isSyncCompleted)).append("\n"); + sb.append(" isSyncFailed: ").append(toIndentedString(isSyncFailed)).append("\n"); + sb.append(" isSyncInFlight: ").append(toIndentedString(isSyncInFlight)).append("\n"); + sb.append(" isSyncInProgress: ").append(toIndentedString(isSyncInProgress)).append("\n"); + sb.append(" license: ").append(toIndentedString(license)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); + sb.append(" namespaceUrl: ").append(toIndentedString(namespaceUrl)).append("\n"); + sb.append(" numFiles: ").append(toIndentedString(numFiles)).append("\n"); + sb.append(" originRepository: ").append(toIndentedString(originRepository)).append("\n"); + sb.append(" originRepositoryUrl: ").append(toIndentedString(originRepositoryUrl)).append("\n"); + sb.append(" osiApproved: ").append(toIndentedString(osiApproved)).append("\n"); + sb.append(" packageType: ").append(toIndentedString(packageType)).append("\n"); + sb.append(" policyViolated: ").append(toIndentedString(policyViolated)).append("\n"); + sb.append(" rawLicense: ").append(toIndentedString(rawLicense)).append("\n"); + sb.append(" release: ").append(toIndentedString(release)).append("\n"); + sb.append(" repository: ").append(toIndentedString(repository)).append("\n"); + sb.append(" repositoryUrl: ").append(toIndentedString(repositoryUrl)).append("\n"); + sb.append(" securityScanCompletedAt: ").append(toIndentedString(securityScanCompletedAt)).append("\n"); + sb.append(" securityScanStartedAt: ").append(toIndentedString(securityScanStartedAt)).append("\n"); + sb.append(" securityScanStatus: ").append(toIndentedString(securityScanStatus)).append("\n"); + sb.append(" securityScanStatusUpdatedAt: ").append(toIndentedString(securityScanStatusUpdatedAt)).append("\n"); + sb.append(" selfHtmlUrl: ").append(toIndentedString(selfHtmlUrl)).append("\n"); + sb.append(" selfUrl: ").append(toIndentedString(selfUrl)).append("\n"); + sb.append(" selfWebappUrl: ").append(toIndentedString(selfWebappUrl)).append("\n"); + sb.append(" signatureUrl: ").append(toIndentedString(signatureUrl)).append("\n"); + sb.append(" size: ").append(toIndentedString(size)).append("\n"); + sb.append(" slug: ").append(toIndentedString(slug)).append("\n"); + sb.append(" slugPerm: ").append(toIndentedString(slugPerm)).append("\n"); + sb.append(" spdxLicense: ").append(toIndentedString(spdxLicense)).append("\n"); + sb.append(" stage: ").append(toIndentedString(stage)).append("\n"); + sb.append(" stageStr: ").append(toIndentedString(stageStr)).append("\n"); + sb.append(" stageUpdatedAt: ").append(toIndentedString(stageUpdatedAt)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" statusReason: ").append(toIndentedString(statusReason)).append("\n"); + sb.append(" statusStr: ").append(toIndentedString(statusStr)).append("\n"); + sb.append(" statusUpdatedAt: ").append(toIndentedString(statusUpdatedAt)).append("\n"); + sb.append(" statusUrl: ").append(toIndentedString(statusUrl)).append("\n"); + sb.append(" storePath: ").append(toIndentedString(storePath)).append("\n"); + sb.append(" subtype: ").append(toIndentedString(subtype)).append("\n"); + sb.append(" summary: ").append(toIndentedString(summary)).append("\n"); + sb.append(" syncFinishedAt: ").append(toIndentedString(syncFinishedAt)).append("\n"); + sb.append(" syncProgress: ").append(toIndentedString(syncProgress)).append("\n"); + sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); + sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); + sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); + sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); + sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); + sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); + sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); + sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/NixPackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/NixPackageUploadRequest.java new file mode 100644 index 00000000..9d5aa113 --- /dev/null +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/NixPackageUploadRequest.java @@ -0,0 +1,231 @@ +/* + * Cloudsmith API (v1) + * The API to the Cloudsmith Service + * + * OpenAPI spec version: v1 + * Contact: support@cloudsmith.io + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package io.cloudsmith.api.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.io.Serializable; +import javax.validation.constraints.*; +import javax.validation.Valid; + +/** + * NixPackageUploadRequest + */ + +public class NixPackageUploadRequest implements Serializable { + private static final long serialVersionUID = 1L; + + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + + @SerializedName("narinfo") + private String narinfo = null; + + @SerializedName("package_file") + private String packageFile = null; + + @SerializedName("republish") + private Boolean republish = null; + + @SerializedName("tags") + private String tags = null; + + @SerializedName("version") + private String version = null; + + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + + public NixPackageUploadRequest narinfo(String narinfo) { + this.narinfo = narinfo; + return this; + } + + /** + * The narinfo sidecar metadata file (<storeHash>.narinfo). Optional — the package can be completed later by publishing the matching narinfo via the native HTTP PUT path. + * @return narinfo + **/ + @Size(min=1) @ApiModelProperty(value = "The narinfo sidecar metadata file (.narinfo). Optional — the package can be completed later by publishing the matching narinfo via the native HTTP PUT path.") + public String getNarinfo() { + return narinfo; + } + + public void setNarinfo(String narinfo) { + this.narinfo = narinfo; + } + + public NixPackageUploadRequest packageFile(String packageFile) { + this.packageFile = packageFile; + return this; + } + + /** + * The primary file for the package. + * @return packageFile + **/ + @NotNull + @Size(min=1) @ApiModelProperty(required = true, value = "The primary file for the package.") + public String getPackageFile() { + return packageFile; + } + + public void setPackageFile(String packageFile) { + this.packageFile = packageFile; + } + + public NixPackageUploadRequest republish(Boolean republish) { + this.republish = republish; + return this; + } + + /** + * If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + * @return republish + **/ + @ApiModelProperty(value = "If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.") + public Boolean isRepublish() { + return republish; + } + + public void setRepublish(Boolean republish) { + this.republish = republish; + } + + public NixPackageUploadRequest tags(String tags) { + this.tags = tags; + return this; + } + + /** + * A comma-separated values list of tags to add to the package. + * @return tags + **/ + @Size(min=1,max=1024) @ApiModelProperty(value = "A comma-separated values list of tags to add to the package.") + public String getTags() { + return tags; + } + + public void setTags(String tags) { + this.tags = tags; + } + + public NixPackageUploadRequest version(String version) { + this.version = version; + return this; + } + + /** + * The raw version for this package. + * @return version + **/ + @Size(max=255) @ApiModelProperty(value = "The raw version for this package.") + public String getVersion() { + return version; + } + + public void setVersion(String version) { + this.version = version; + } + + public NixPackageUploadRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + NixPackageUploadRequest nixPackageUploadRequest = (NixPackageUploadRequest) o; + return Objects.equals(this.isMalwareDetected, nixPackageUploadRequest.isMalwareDetected) && + Objects.equals(this.narinfo, nixPackageUploadRequest.narinfo) && + Objects.equals(this.packageFile, nixPackageUploadRequest.packageFile) && + Objects.equals(this.republish, nixPackageUploadRequest.republish) && + Objects.equals(this.tags, nixPackageUploadRequest.tags) && + Objects.equals(this.version, nixPackageUploadRequest.version) && + Objects.equals(this.vulnerabilityCounts, nixPackageUploadRequest.vulnerabilityCounts); + } + + @Override + public int hashCode() { + return Objects.hash(isMalwareDetected, narinfo, packageFile, republish, tags, version, vulnerabilityCounts); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class NixPackageUploadRequest {\n"); + + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); + sb.append(" narinfo: ").append(toIndentedString(narinfo)).append("\n"); + sb.append(" packageFile: ").append(toIndentedString(packageFile)).append("\n"); + sb.append(" republish: ").append(toIndentedString(republish)).append("\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/NixUpstream.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/NixUpstream.java new file mode 100644 index 00000000..d62148c7 --- /dev/null +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/NixUpstream.java @@ -0,0 +1,697 @@ +/* + * Cloudsmith API (v1) + * The API to the Cloudsmith Service + * + * OpenAPI spec version: v1 + * Contact: support@cloudsmith.io + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package io.cloudsmith.api.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.io.Serializable; +import javax.validation.constraints.*; +import javax.validation.Valid; + +/** + * NixUpstream + */ + +public class NixUpstream implements Serializable { + private static final long serialVersionUID = 1L; + + /** + * The authentication mode to use when accessing this upstream. + */ + @JsonAdapter(AuthModeEnum.Adapter.class) + public enum AuthModeEnum { + NONE("None"), + + USERNAME_AND_PASSWORD("Username and Password"); + + private String value; + + AuthModeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static AuthModeEnum fromValue(String text) { + for (AuthModeEnum b : AuthModeEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final AuthModeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public AuthModeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return AuthModeEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("auth_mode") + private AuthModeEnum authMode = AuthModeEnum.NONE; + + @SerializedName("auth_secret") + private String authSecret = null; + + @SerializedName("auth_username") + private String authUsername = null; + + @SerializedName("available") + private Boolean available = null; + + @SerializedName("can_reindex") + private Boolean canReindex = null; + + @SerializedName("created_at") + private OffsetDateTime createdAt = null; + + /** + * Gets or Sets disableReason + */ + @JsonAdapter(DisableReasonEnum.Adapter.class) + public enum DisableReasonEnum { + N_A("N/A"), + + UPSTREAM_POINTS_TO_ITS_OWN_REPOSITORY("Upstream points to its own repository"), + + MISSING_UPSTREAM_SOURCE("Missing upstream source"), + + RSA_KEY_DID_NOT_VERIFY_THE_UPSTREAM_S_APKINDEX_SIGNATURE("RSA key did not verify the upstream's APKINDEX signature"), + + UPSTREAM_WAS_DISABLED_BY_REQUEST_OF_USER("Upstream was disabled by request of user"); + + private String value; + + DisableReasonEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static DisableReasonEnum fromValue(String text) { + for (DisableReasonEnum b : DisableReasonEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final DisableReasonEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public DisableReasonEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return DisableReasonEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("disable_reason") + private DisableReasonEnum disableReason = DisableReasonEnum.N_A; + + @SerializedName("disable_reason_text") + private String disableReasonText = null; + + @SerializedName("extra_header_1") + private String extraHeader1 = null; + + @SerializedName("extra_header_2") + private String extraHeader2 = null; + + @SerializedName("extra_value_1") + private String extraValue1 = null; + + @SerializedName("extra_value_2") + private String extraValue2 = null; + + @SerializedName("has_failed_signature_verification") + private Boolean hasFailedSignatureVerification = null; + + @SerializedName("index_package_count") + private java.math.BigInteger indexPackageCount = null; + + @SerializedName("index_status") + private String indexStatus = null; + + @SerializedName("is_active") + private Boolean isActive = null; + + @SerializedName("last_indexed") + private String lastIndexed = null; + + /** + * The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. + */ + @JsonAdapter(ModeEnum.Adapter.class) + public enum ModeEnum { + PROXY_ONLY("Proxy Only"), + + CACHE_AND_PROXY("Cache and Proxy"); + + private String value; + + ModeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ModeEnum fromValue(String text) { + for (ModeEnum b : ModeEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ModeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ModeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ModeEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("mode") + private ModeEnum mode = ModeEnum.PROXY_ONLY; + + @SerializedName("name") + private String name = null; + + @SerializedName("pending_validation") + private Boolean pendingValidation = null; + + @SerializedName("priority") + private java.math.BigInteger priority = null; + + @SerializedName("slug_perm") + private String slugPerm = null; + + @SerializedName("updated_at") + private OffsetDateTime updatedAt = null; + + @SerializedName("upstream_url") + private String upstreamUrl = null; + + @SerializedName("verify_ssl") + private Boolean verifySsl = null; + + public NixUpstream authMode(AuthModeEnum authMode) { + this.authMode = authMode; + return this; + } + + /** + * The authentication mode to use when accessing this upstream. + * @return authMode + **/ + @ApiModelProperty(value = "The authentication mode to use when accessing this upstream. ") + public AuthModeEnum getAuthMode() { + return authMode; + } + + public void setAuthMode(AuthModeEnum authMode) { + this.authMode = authMode; + } + + public NixUpstream authSecret(String authSecret) { + this.authSecret = authSecret; + return this; + } + + /** + * Secret to provide with requests to upstream. + * @return authSecret + **/ + @Size(max=4096) @ApiModelProperty(value = "Secret to provide with requests to upstream.") + public String getAuthSecret() { + return authSecret; + } + + public void setAuthSecret(String authSecret) { + this.authSecret = authSecret; + } + + public NixUpstream authUsername(String authUsername) { + this.authUsername = authUsername; + return this; + } + + /** + * Username to provide with requests to upstream. + * @return authUsername + **/ + @Size(max=64) @ApiModelProperty(value = "Username to provide with requests to upstream.") + public String getAuthUsername() { + return authUsername; + } + + public void setAuthUsername(String authUsername) { + this.authUsername = authUsername; + } + + /** + * Whether the upstream is available for use. + * @return available + **/ + @ApiModelProperty(value = "Whether the upstream is available for use.") + public Boolean isAvailable() { + return available; + } + + /** + * Whether the upstream can be reindexed. + * @return canReindex + **/ + @ApiModelProperty(value = "Whether the upstream can be reindexed.") + public Boolean isCanReindex() { + return canReindex; + } + + /** + * The datetime the upstream source was created. + * @return createdAt + **/ + @Valid + @ApiModelProperty(value = "The datetime the upstream source was created.") + public OffsetDateTime getCreatedAt() { + return createdAt; + } + + /** + * Get disableReason + * @return disableReason + **/ + @ApiModelProperty(value = "") + public DisableReasonEnum getDisableReason() { + return disableReason; + } + + /** + * Human-readable explanation of why this upstream is disabled + * @return disableReasonText + **/ + @ApiModelProperty(value = "Human-readable explanation of why this upstream is disabled") + public String getDisableReasonText() { + return disableReasonText; + } + + public NixUpstream extraHeader1(String extraHeader1) { + this.extraHeader1 = extraHeader1; + return this; + } + + /** + * The key for extra header #1 to send to upstream. + * @return extraHeader1 + **/ + @Pattern(regexp="^[-\\w]+$") @Size(max=64) @ApiModelProperty(value = "The key for extra header #1 to send to upstream.") + public String getExtraHeader1() { + return extraHeader1; + } + + public void setExtraHeader1(String extraHeader1) { + this.extraHeader1 = extraHeader1; + } + + public NixUpstream extraHeader2(String extraHeader2) { + this.extraHeader2 = extraHeader2; + return this; + } + + /** + * The key for extra header #2 to send to upstream. + * @return extraHeader2 + **/ + @Pattern(regexp="^[-\\w]+$") @Size(max=64) @ApiModelProperty(value = "The key for extra header #2 to send to upstream.") + public String getExtraHeader2() { + return extraHeader2; + } + + public void setExtraHeader2(String extraHeader2) { + this.extraHeader2 = extraHeader2; + } + + public NixUpstream extraValue1(String extraValue1) { + this.extraValue1 = extraValue1; + return this; + } + + /** + * The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. + * @return extraValue1 + **/ + @Pattern(regexp="^[^\\n\\r]+$") @Size(max=128) @ApiModelProperty(value = "The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted.") + public String getExtraValue1() { + return extraValue1; + } + + public void setExtraValue1(String extraValue1) { + this.extraValue1 = extraValue1; + } + + public NixUpstream extraValue2(String extraValue2) { + this.extraValue2 = extraValue2; + return this; + } + + /** + * The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. + * @return extraValue2 + **/ + @Pattern(regexp="^[^\\n\\r]+$") @Size(max=128) @ApiModelProperty(value = "The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted.") + public String getExtraValue2() { + return extraValue2; + } + + public void setExtraValue2(String extraValue2) { + this.extraValue2 = extraValue2; + } + + /** + * Whether the upstream has failed signature verification. + * @return hasFailedSignatureVerification + **/ + @ApiModelProperty(value = "Whether the upstream has failed signature verification.") + public Boolean isHasFailedSignatureVerification() { + return hasFailedSignatureVerification; + } + + /** + * The number of packages available in this upstream source + * @return indexPackageCount + **/ + @ApiModelProperty(value = "The number of packages available in this upstream source") + public java.math.BigInteger getIndexPackageCount() { + return indexPackageCount; + } + + /** + * The current indexing status of this upstream source + * @return indexStatus + **/ + @ApiModelProperty(value = "The current indexing status of this upstream source") + public String getIndexStatus() { + return indexStatus; + } + + public NixUpstream isActive(Boolean isActive) { + this.isActive = isActive; + return this; + } + + /** + * Whether or not this upstream is active and ready for requests. + * @return isActive + **/ + @ApiModelProperty(value = "Whether or not this upstream is active and ready for requests.") + public Boolean isIsActive() { + return isActive; + } + + public void setIsActive(Boolean isActive) { + this.isActive = isActive; + } + + /** + * The last time this upstream source was indexed + * @return lastIndexed + **/ + @ApiModelProperty(value = "The last time this upstream source was indexed") + public String getLastIndexed() { + return lastIndexed; + } + + public NixUpstream mode(ModeEnum mode) { + this.mode = mode; + return this; + } + + /** + * The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. + * @return mode + **/ + @ApiModelProperty(value = "The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode.") + public ModeEnum getMode() { + return mode; + } + + public void setMode(ModeEnum mode) { + this.mode = mode; + } + + public NixUpstream name(String name) { + this.name = name; + return this; + } + + /** + * A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. + * @return name + **/ + @NotNull + @Pattern(regexp="^\\w[\\w \\-'\\./()]+$") @Size(min=1,max=64) @ApiModelProperty(required = true, value = "A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream.") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + /** + * When true, this upstream source is pending validation. + * @return pendingValidation + **/ + @ApiModelProperty(value = "When true, this upstream source is pending validation.") + public Boolean isPendingValidation() { + return pendingValidation; + } + + public NixUpstream priority(java.math.BigInteger priority) { + this.priority = priority; + return this; + } + + /** + * Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. + * minimum: 1 + * maximum: 32767 + * @return priority + **/ + @Min(1L) @Max(32767L) @ApiModelProperty(value = "Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date.") + public java.math.BigInteger getPriority() { + return priority; + } + + public void setPriority(java.math.BigInteger priority) { + this.priority = priority; + } + + /** + * Get slugPerm + * @return slugPerm + **/ + @Pattern(regexp="^[-a-zA-Z0-9_]+$") @Size(min=1) @ApiModelProperty(value = "") + public String getSlugPerm() { + return slugPerm; + } + + /** + * Get updatedAt + * @return updatedAt + **/ + @Valid + @ApiModelProperty(value = "") + public OffsetDateTime getUpdatedAt() { + return updatedAt; + } + + public NixUpstream upstreamUrl(String upstreamUrl) { + this.upstreamUrl = upstreamUrl; + return this; + } + + /** + * The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. + * @return upstreamUrl + **/ + @NotNull + @Size(min=1,max=200) @ApiModelProperty(required = true, value = "The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. ") + public String getUpstreamUrl() { + return upstreamUrl; + } + + public void setUpstreamUrl(String upstreamUrl) { + this.upstreamUrl = upstreamUrl; + } + + public NixUpstream verifySsl(Boolean verifySsl) { + this.verifySsl = verifySsl; + return this; + } + + /** + * If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. + * @return verifySsl + **/ + @ApiModelProperty(value = "If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams.") + public Boolean isVerifySsl() { + return verifySsl; + } + + public void setVerifySsl(Boolean verifySsl) { + this.verifySsl = verifySsl; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + NixUpstream nixUpstream = (NixUpstream) o; + return Objects.equals(this.authMode, nixUpstream.authMode) && + Objects.equals(this.authSecret, nixUpstream.authSecret) && + Objects.equals(this.authUsername, nixUpstream.authUsername) && + Objects.equals(this.available, nixUpstream.available) && + Objects.equals(this.canReindex, nixUpstream.canReindex) && + Objects.equals(this.createdAt, nixUpstream.createdAt) && + Objects.equals(this.disableReason, nixUpstream.disableReason) && + Objects.equals(this.disableReasonText, nixUpstream.disableReasonText) && + Objects.equals(this.extraHeader1, nixUpstream.extraHeader1) && + Objects.equals(this.extraHeader2, nixUpstream.extraHeader2) && + Objects.equals(this.extraValue1, nixUpstream.extraValue1) && + Objects.equals(this.extraValue2, nixUpstream.extraValue2) && + Objects.equals(this.hasFailedSignatureVerification, nixUpstream.hasFailedSignatureVerification) && + Objects.equals(this.indexPackageCount, nixUpstream.indexPackageCount) && + Objects.equals(this.indexStatus, nixUpstream.indexStatus) && + Objects.equals(this.isActive, nixUpstream.isActive) && + Objects.equals(this.lastIndexed, nixUpstream.lastIndexed) && + Objects.equals(this.mode, nixUpstream.mode) && + Objects.equals(this.name, nixUpstream.name) && + Objects.equals(this.pendingValidation, nixUpstream.pendingValidation) && + Objects.equals(this.priority, nixUpstream.priority) && + Objects.equals(this.slugPerm, nixUpstream.slugPerm) && + Objects.equals(this.updatedAt, nixUpstream.updatedAt) && + Objects.equals(this.upstreamUrl, nixUpstream.upstreamUrl) && + Objects.equals(this.verifySsl, nixUpstream.verifySsl); + } + + @Override + public int hashCode() { + return Objects.hash(authMode, authSecret, authUsername, available, canReindex, createdAt, disableReason, disableReasonText, extraHeader1, extraHeader2, extraValue1, extraValue2, hasFailedSignatureVerification, indexPackageCount, indexStatus, isActive, lastIndexed, mode, name, pendingValidation, priority, slugPerm, updatedAt, upstreamUrl, verifySsl); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class NixUpstream {\n"); + + sb.append(" authMode: ").append(toIndentedString(authMode)).append("\n"); + sb.append(" authSecret: ").append(toIndentedString(authSecret)).append("\n"); + sb.append(" authUsername: ").append(toIndentedString(authUsername)).append("\n"); + sb.append(" available: ").append(toIndentedString(available)).append("\n"); + sb.append(" canReindex: ").append(toIndentedString(canReindex)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" disableReason: ").append(toIndentedString(disableReason)).append("\n"); + sb.append(" disableReasonText: ").append(toIndentedString(disableReasonText)).append("\n"); + sb.append(" extraHeader1: ").append(toIndentedString(extraHeader1)).append("\n"); + sb.append(" extraHeader2: ").append(toIndentedString(extraHeader2)).append("\n"); + sb.append(" extraValue1: ").append(toIndentedString(extraValue1)).append("\n"); + sb.append(" extraValue2: ").append(toIndentedString(extraValue2)).append("\n"); + sb.append(" hasFailedSignatureVerification: ").append(toIndentedString(hasFailedSignatureVerification)).append("\n"); + sb.append(" indexPackageCount: ").append(toIndentedString(indexPackageCount)).append("\n"); + sb.append(" indexStatus: ").append(toIndentedString(indexStatus)).append("\n"); + sb.append(" isActive: ").append(toIndentedString(isActive)).append("\n"); + sb.append(" lastIndexed: ").append(toIndentedString(lastIndexed)).append("\n"); + sb.append(" mode: ").append(toIndentedString(mode)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" pendingValidation: ").append(toIndentedString(pendingValidation)).append("\n"); + sb.append(" priority: ").append(toIndentedString(priority)).append("\n"); + sb.append(" slugPerm: ").append(toIndentedString(slugPerm)).append("\n"); + sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append(" upstreamUrl: ").append(toIndentedString(upstreamUrl)).append("\n"); + sb.append(" verifySsl: ").append(toIndentedString(verifySsl)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/NixUpstreamRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/NixUpstreamRequest.java new file mode 100644 index 00000000..8a68da20 --- /dev/null +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/NixUpstreamRequest.java @@ -0,0 +1,473 @@ +/* + * Cloudsmith API (v1) + * The API to the Cloudsmith Service + * + * OpenAPI spec version: v1 + * Contact: support@cloudsmith.io + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package io.cloudsmith.api.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.io.Serializable; +import javax.validation.constraints.*; +import javax.validation.Valid; + +/** + * NixUpstreamRequest + */ + +public class NixUpstreamRequest implements Serializable { + private static final long serialVersionUID = 1L; + + /** + * The authentication mode to use when accessing this upstream. + */ + @JsonAdapter(AuthModeEnum.Adapter.class) + public enum AuthModeEnum { + NONE("None"), + + USERNAME_AND_PASSWORD("Username and Password"); + + private String value; + + AuthModeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static AuthModeEnum fromValue(String text) { + for (AuthModeEnum b : AuthModeEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final AuthModeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public AuthModeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return AuthModeEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("auth_mode") + private AuthModeEnum authMode = AuthModeEnum.NONE; + + @SerializedName("auth_secret") + private String authSecret = null; + + @SerializedName("auth_username") + private String authUsername = null; + + @SerializedName("extra_header_1") + private String extraHeader1 = null; + + @SerializedName("extra_header_2") + private String extraHeader2 = null; + + @SerializedName("extra_value_1") + private String extraValue1 = null; + + @SerializedName("extra_value_2") + private String extraValue2 = null; + + @SerializedName("is_active") + private Boolean isActive = null; + + /** + * The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. + */ + @JsonAdapter(ModeEnum.Adapter.class) + public enum ModeEnum { + PROXY_ONLY("Proxy Only"), + + CACHE_AND_PROXY("Cache and Proxy"); + + private String value; + + ModeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ModeEnum fromValue(String text) { + for (ModeEnum b : ModeEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ModeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ModeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ModeEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("mode") + private ModeEnum mode = ModeEnum.PROXY_ONLY; + + @SerializedName("name") + private String name = null; + + @SerializedName("priority") + private java.math.BigInteger priority = null; + + @SerializedName("upstream_url") + private String upstreamUrl = null; + + @SerializedName("verify_ssl") + private Boolean verifySsl = null; + + public NixUpstreamRequest authMode(AuthModeEnum authMode) { + this.authMode = authMode; + return this; + } + + /** + * The authentication mode to use when accessing this upstream. + * @return authMode + **/ + @ApiModelProperty(value = "The authentication mode to use when accessing this upstream. ") + public AuthModeEnum getAuthMode() { + return authMode; + } + + public void setAuthMode(AuthModeEnum authMode) { + this.authMode = authMode; + } + + public NixUpstreamRequest authSecret(String authSecret) { + this.authSecret = authSecret; + return this; + } + + /** + * Secret to provide with requests to upstream. + * @return authSecret + **/ + @Size(max=4096) @ApiModelProperty(value = "Secret to provide with requests to upstream.") + public String getAuthSecret() { + return authSecret; + } + + public void setAuthSecret(String authSecret) { + this.authSecret = authSecret; + } + + public NixUpstreamRequest authUsername(String authUsername) { + this.authUsername = authUsername; + return this; + } + + /** + * Username to provide with requests to upstream. + * @return authUsername + **/ + @Size(max=64) @ApiModelProperty(value = "Username to provide with requests to upstream.") + public String getAuthUsername() { + return authUsername; + } + + public void setAuthUsername(String authUsername) { + this.authUsername = authUsername; + } + + public NixUpstreamRequest extraHeader1(String extraHeader1) { + this.extraHeader1 = extraHeader1; + return this; + } + + /** + * The key for extra header #1 to send to upstream. + * @return extraHeader1 + **/ + @Pattern(regexp="^[-\\w]+$") @Size(max=64) @ApiModelProperty(value = "The key for extra header #1 to send to upstream.") + public String getExtraHeader1() { + return extraHeader1; + } + + public void setExtraHeader1(String extraHeader1) { + this.extraHeader1 = extraHeader1; + } + + public NixUpstreamRequest extraHeader2(String extraHeader2) { + this.extraHeader2 = extraHeader2; + return this; + } + + /** + * The key for extra header #2 to send to upstream. + * @return extraHeader2 + **/ + @Pattern(regexp="^[-\\w]+$") @Size(max=64) @ApiModelProperty(value = "The key for extra header #2 to send to upstream.") + public String getExtraHeader2() { + return extraHeader2; + } + + public void setExtraHeader2(String extraHeader2) { + this.extraHeader2 = extraHeader2; + } + + public NixUpstreamRequest extraValue1(String extraValue1) { + this.extraValue1 = extraValue1; + return this; + } + + /** + * The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. + * @return extraValue1 + **/ + @Pattern(regexp="^[^\\n\\r]+$") @Size(max=128) @ApiModelProperty(value = "The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted.") + public String getExtraValue1() { + return extraValue1; + } + + public void setExtraValue1(String extraValue1) { + this.extraValue1 = extraValue1; + } + + public NixUpstreamRequest extraValue2(String extraValue2) { + this.extraValue2 = extraValue2; + return this; + } + + /** + * The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. + * @return extraValue2 + **/ + @Pattern(regexp="^[^\\n\\r]+$") @Size(max=128) @ApiModelProperty(value = "The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted.") + public String getExtraValue2() { + return extraValue2; + } + + public void setExtraValue2(String extraValue2) { + this.extraValue2 = extraValue2; + } + + public NixUpstreamRequest isActive(Boolean isActive) { + this.isActive = isActive; + return this; + } + + /** + * Whether or not this upstream is active and ready for requests. + * @return isActive + **/ + @ApiModelProperty(value = "Whether or not this upstream is active and ready for requests.") + public Boolean isIsActive() { + return isActive; + } + + public void setIsActive(Boolean isActive) { + this.isActive = isActive; + } + + public NixUpstreamRequest mode(ModeEnum mode) { + this.mode = mode; + return this; + } + + /** + * The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. + * @return mode + **/ + @ApiModelProperty(value = "The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode.") + public ModeEnum getMode() { + return mode; + } + + public void setMode(ModeEnum mode) { + this.mode = mode; + } + + public NixUpstreamRequest name(String name) { + this.name = name; + return this; + } + + /** + * A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. + * @return name + **/ + @NotNull + @Pattern(regexp="^\\w[\\w \\-'\\./()]+$") @Size(min=1,max=64) @ApiModelProperty(required = true, value = "A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream.") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public NixUpstreamRequest priority(java.math.BigInteger priority) { + this.priority = priority; + return this; + } + + /** + * Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. + * minimum: 1 + * maximum: 32767 + * @return priority + **/ + @Min(1L) @Max(32767L) @ApiModelProperty(value = "Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date.") + public java.math.BigInteger getPriority() { + return priority; + } + + public void setPriority(java.math.BigInteger priority) { + this.priority = priority; + } + + public NixUpstreamRequest upstreamUrl(String upstreamUrl) { + this.upstreamUrl = upstreamUrl; + return this; + } + + /** + * The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. + * @return upstreamUrl + **/ + @NotNull + @Size(min=1,max=200) @ApiModelProperty(required = true, value = "The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. ") + public String getUpstreamUrl() { + return upstreamUrl; + } + + public void setUpstreamUrl(String upstreamUrl) { + this.upstreamUrl = upstreamUrl; + } + + public NixUpstreamRequest verifySsl(Boolean verifySsl) { + this.verifySsl = verifySsl; + return this; + } + + /** + * If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. + * @return verifySsl + **/ + @ApiModelProperty(value = "If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams.") + public Boolean isVerifySsl() { + return verifySsl; + } + + public void setVerifySsl(Boolean verifySsl) { + this.verifySsl = verifySsl; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + NixUpstreamRequest nixUpstreamRequest = (NixUpstreamRequest) o; + return Objects.equals(this.authMode, nixUpstreamRequest.authMode) && + Objects.equals(this.authSecret, nixUpstreamRequest.authSecret) && + Objects.equals(this.authUsername, nixUpstreamRequest.authUsername) && + Objects.equals(this.extraHeader1, nixUpstreamRequest.extraHeader1) && + Objects.equals(this.extraHeader2, nixUpstreamRequest.extraHeader2) && + Objects.equals(this.extraValue1, nixUpstreamRequest.extraValue1) && + Objects.equals(this.extraValue2, nixUpstreamRequest.extraValue2) && + Objects.equals(this.isActive, nixUpstreamRequest.isActive) && + Objects.equals(this.mode, nixUpstreamRequest.mode) && + Objects.equals(this.name, nixUpstreamRequest.name) && + Objects.equals(this.priority, nixUpstreamRequest.priority) && + Objects.equals(this.upstreamUrl, nixUpstreamRequest.upstreamUrl) && + Objects.equals(this.verifySsl, nixUpstreamRequest.verifySsl); + } + + @Override + public int hashCode() { + return Objects.hash(authMode, authSecret, authUsername, extraHeader1, extraHeader2, extraValue1, extraValue2, isActive, mode, name, priority, upstreamUrl, verifySsl); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class NixUpstreamRequest {\n"); + + sb.append(" authMode: ").append(toIndentedString(authMode)).append("\n"); + sb.append(" authSecret: ").append(toIndentedString(authSecret)).append("\n"); + sb.append(" authUsername: ").append(toIndentedString(authUsername)).append("\n"); + sb.append(" extraHeader1: ").append(toIndentedString(extraHeader1)).append("\n"); + sb.append(" extraHeader2: ").append(toIndentedString(extraHeader2)).append("\n"); + sb.append(" extraValue1: ").append(toIndentedString(extraValue1)).append("\n"); + sb.append(" extraValue2: ").append(toIndentedString(extraValue2)).append("\n"); + sb.append(" isActive: ").append(toIndentedString(isActive)).append("\n"); + sb.append(" mode: ").append(toIndentedString(mode)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" priority: ").append(toIndentedString(priority)).append("\n"); + sb.append(" upstreamUrl: ").append(toIndentedString(upstreamUrl)).append("\n"); + sb.append(" verifySsl: ").append(toIndentedString(verifySsl)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/NixUpstreamRequestPatch.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/NixUpstreamRequestPatch.java new file mode 100644 index 00000000..bfddb942 --- /dev/null +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/NixUpstreamRequestPatch.java @@ -0,0 +1,471 @@ +/* + * Cloudsmith API (v1) + * The API to the Cloudsmith Service + * + * OpenAPI spec version: v1 + * Contact: support@cloudsmith.io + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package io.cloudsmith.api.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.io.Serializable; +import javax.validation.constraints.*; +import javax.validation.Valid; + +/** + * NixUpstreamRequestPatch + */ + +public class NixUpstreamRequestPatch implements Serializable { + private static final long serialVersionUID = 1L; + + /** + * The authentication mode to use when accessing this upstream. + */ + @JsonAdapter(AuthModeEnum.Adapter.class) + public enum AuthModeEnum { + NONE("None"), + + USERNAME_AND_PASSWORD("Username and Password"); + + private String value; + + AuthModeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static AuthModeEnum fromValue(String text) { + for (AuthModeEnum b : AuthModeEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final AuthModeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public AuthModeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return AuthModeEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("auth_mode") + private AuthModeEnum authMode = AuthModeEnum.NONE; + + @SerializedName("auth_secret") + private String authSecret = null; + + @SerializedName("auth_username") + private String authUsername = null; + + @SerializedName("extra_header_1") + private String extraHeader1 = null; + + @SerializedName("extra_header_2") + private String extraHeader2 = null; + + @SerializedName("extra_value_1") + private String extraValue1 = null; + + @SerializedName("extra_value_2") + private String extraValue2 = null; + + @SerializedName("is_active") + private Boolean isActive = null; + + /** + * The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. + */ + @JsonAdapter(ModeEnum.Adapter.class) + public enum ModeEnum { + PROXY_ONLY("Proxy Only"), + + CACHE_AND_PROXY("Cache and Proxy"); + + private String value; + + ModeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ModeEnum fromValue(String text) { + for (ModeEnum b : ModeEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ModeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ModeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ModeEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("mode") + private ModeEnum mode = ModeEnum.PROXY_ONLY; + + @SerializedName("name") + private String name = null; + + @SerializedName("priority") + private java.math.BigInteger priority = null; + + @SerializedName("upstream_url") + private String upstreamUrl = null; + + @SerializedName("verify_ssl") + private Boolean verifySsl = null; + + public NixUpstreamRequestPatch authMode(AuthModeEnum authMode) { + this.authMode = authMode; + return this; + } + + /** + * The authentication mode to use when accessing this upstream. + * @return authMode + **/ + @ApiModelProperty(value = "The authentication mode to use when accessing this upstream. ") + public AuthModeEnum getAuthMode() { + return authMode; + } + + public void setAuthMode(AuthModeEnum authMode) { + this.authMode = authMode; + } + + public NixUpstreamRequestPatch authSecret(String authSecret) { + this.authSecret = authSecret; + return this; + } + + /** + * Secret to provide with requests to upstream. + * @return authSecret + **/ + @Size(max=4096) @ApiModelProperty(value = "Secret to provide with requests to upstream.") + public String getAuthSecret() { + return authSecret; + } + + public void setAuthSecret(String authSecret) { + this.authSecret = authSecret; + } + + public NixUpstreamRequestPatch authUsername(String authUsername) { + this.authUsername = authUsername; + return this; + } + + /** + * Username to provide with requests to upstream. + * @return authUsername + **/ + @Size(max=64) @ApiModelProperty(value = "Username to provide with requests to upstream.") + public String getAuthUsername() { + return authUsername; + } + + public void setAuthUsername(String authUsername) { + this.authUsername = authUsername; + } + + public NixUpstreamRequestPatch extraHeader1(String extraHeader1) { + this.extraHeader1 = extraHeader1; + return this; + } + + /** + * The key for extra header #1 to send to upstream. + * @return extraHeader1 + **/ + @Pattern(regexp="^[-\\w]+$") @Size(max=64) @ApiModelProperty(value = "The key for extra header #1 to send to upstream.") + public String getExtraHeader1() { + return extraHeader1; + } + + public void setExtraHeader1(String extraHeader1) { + this.extraHeader1 = extraHeader1; + } + + public NixUpstreamRequestPatch extraHeader2(String extraHeader2) { + this.extraHeader2 = extraHeader2; + return this; + } + + /** + * The key for extra header #2 to send to upstream. + * @return extraHeader2 + **/ + @Pattern(regexp="^[-\\w]+$") @Size(max=64) @ApiModelProperty(value = "The key for extra header #2 to send to upstream.") + public String getExtraHeader2() { + return extraHeader2; + } + + public void setExtraHeader2(String extraHeader2) { + this.extraHeader2 = extraHeader2; + } + + public NixUpstreamRequestPatch extraValue1(String extraValue1) { + this.extraValue1 = extraValue1; + return this; + } + + /** + * The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. + * @return extraValue1 + **/ + @Pattern(regexp="^[^\\n\\r]+$") @Size(max=128) @ApiModelProperty(value = "The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted.") + public String getExtraValue1() { + return extraValue1; + } + + public void setExtraValue1(String extraValue1) { + this.extraValue1 = extraValue1; + } + + public NixUpstreamRequestPatch extraValue2(String extraValue2) { + this.extraValue2 = extraValue2; + return this; + } + + /** + * The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. + * @return extraValue2 + **/ + @Pattern(regexp="^[^\\n\\r]+$") @Size(max=128) @ApiModelProperty(value = "The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted.") + public String getExtraValue2() { + return extraValue2; + } + + public void setExtraValue2(String extraValue2) { + this.extraValue2 = extraValue2; + } + + public NixUpstreamRequestPatch isActive(Boolean isActive) { + this.isActive = isActive; + return this; + } + + /** + * Whether or not this upstream is active and ready for requests. + * @return isActive + **/ + @ApiModelProperty(value = "Whether or not this upstream is active and ready for requests.") + public Boolean isIsActive() { + return isActive; + } + + public void setIsActive(Boolean isActive) { + this.isActive = isActive; + } + + public NixUpstreamRequestPatch mode(ModeEnum mode) { + this.mode = mode; + return this; + } + + /** + * The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. + * @return mode + **/ + @ApiModelProperty(value = "The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode.") + public ModeEnum getMode() { + return mode; + } + + public void setMode(ModeEnum mode) { + this.mode = mode; + } + + public NixUpstreamRequestPatch name(String name) { + this.name = name; + return this; + } + + /** + * A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. + * @return name + **/ + @Pattern(regexp="^\\w[\\w \\-'\\./()]+$") @Size(min=1,max=64) @ApiModelProperty(value = "A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream.") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public NixUpstreamRequestPatch priority(java.math.BigInteger priority) { + this.priority = priority; + return this; + } + + /** + * Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. + * minimum: 1 + * maximum: 32767 + * @return priority + **/ + @Min(1L) @Max(32767L) @ApiModelProperty(value = "Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date.") + public java.math.BigInteger getPriority() { + return priority; + } + + public void setPriority(java.math.BigInteger priority) { + this.priority = priority; + } + + public NixUpstreamRequestPatch upstreamUrl(String upstreamUrl) { + this.upstreamUrl = upstreamUrl; + return this; + } + + /** + * The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. + * @return upstreamUrl + **/ + @Size(min=1,max=200) @ApiModelProperty(value = "The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. ") + public String getUpstreamUrl() { + return upstreamUrl; + } + + public void setUpstreamUrl(String upstreamUrl) { + this.upstreamUrl = upstreamUrl; + } + + public NixUpstreamRequestPatch verifySsl(Boolean verifySsl) { + this.verifySsl = verifySsl; + return this; + } + + /** + * If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. + * @return verifySsl + **/ + @ApiModelProperty(value = "If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams.") + public Boolean isVerifySsl() { + return verifySsl; + } + + public void setVerifySsl(Boolean verifySsl) { + this.verifySsl = verifySsl; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + NixUpstreamRequestPatch nixUpstreamRequestPatch = (NixUpstreamRequestPatch) o; + return Objects.equals(this.authMode, nixUpstreamRequestPatch.authMode) && + Objects.equals(this.authSecret, nixUpstreamRequestPatch.authSecret) && + Objects.equals(this.authUsername, nixUpstreamRequestPatch.authUsername) && + Objects.equals(this.extraHeader1, nixUpstreamRequestPatch.extraHeader1) && + Objects.equals(this.extraHeader2, nixUpstreamRequestPatch.extraHeader2) && + Objects.equals(this.extraValue1, nixUpstreamRequestPatch.extraValue1) && + Objects.equals(this.extraValue2, nixUpstreamRequestPatch.extraValue2) && + Objects.equals(this.isActive, nixUpstreamRequestPatch.isActive) && + Objects.equals(this.mode, nixUpstreamRequestPatch.mode) && + Objects.equals(this.name, nixUpstreamRequestPatch.name) && + Objects.equals(this.priority, nixUpstreamRequestPatch.priority) && + Objects.equals(this.upstreamUrl, nixUpstreamRequestPatch.upstreamUrl) && + Objects.equals(this.verifySsl, nixUpstreamRequestPatch.verifySsl); + } + + @Override + public int hashCode() { + return Objects.hash(authMode, authSecret, authUsername, extraHeader1, extraHeader2, extraValue1, extraValue2, isActive, mode, name, priority, upstreamUrl, verifySsl); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class NixUpstreamRequestPatch {\n"); + + sb.append(" authMode: ").append(toIndentedString(authMode)).append("\n"); + sb.append(" authSecret: ").append(toIndentedString(authSecret)).append("\n"); + sb.append(" authUsername: ").append(toIndentedString(authUsername)).append("\n"); + sb.append(" extraHeader1: ").append(toIndentedString(extraHeader1)).append("\n"); + sb.append(" extraHeader2: ").append(toIndentedString(extraHeader2)).append("\n"); + sb.append(" extraValue1: ").append(toIndentedString(extraValue1)).append("\n"); + sb.append(" extraValue2: ").append(toIndentedString(extraValue2)).append("\n"); + sb.append(" isActive: ").append(toIndentedString(isActive)).append("\n"); + sb.append(" mode: ").append(toIndentedString(mode)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" priority: ").append(toIndentedString(priority)).append("\n"); + sb.append(" upstreamUrl: ").append(toIndentedString(upstreamUrl)).append("\n"); + sb.append(" verifySsl: ").append(toIndentedString(verifySsl)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/NpmPackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/NpmPackageUpload.java index fb92fc09..c764e7aa 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/NpmPackageUpload.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/NpmPackageUpload.java @@ -25,6 +25,7 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -131,6 +132,9 @@ public class NpmPackageUpload implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -322,6 +326,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("status_url") private String statusUrl = null; + @SerializedName("store_path") + private String storePath = null; + @SerializedName("subtype") private String subtype = null; @@ -340,6 +347,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -358,6 +368,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -644,6 +657,15 @@ public Boolean isIsHidden() { return isHidden; } + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + /** * Get isMoveable * @return isMoveable @@ -1045,6 +1067,15 @@ public String getStatusUrl() { return statusUrl; } + /** + * Absolute store path for the package, including store hash and name. + * @return storePath + **/ + @Size(min=1) @ApiModelProperty(value = "Absolute store path for the package, including store hash and name.") + public String getStorePath() { + return storePath; + } + /** * Get subtype * @return subtype @@ -1120,6 +1151,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * 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. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "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.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1175,6 +1216,25 @@ public String getVersionOrig() { return versionOrig; } + public NpmPackageUpload vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1223,6 +1283,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, npmPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, npmPackageUpload.isDownloadable) && Objects.equals(this.isHidden, npmPackageUpload.isHidden) && + Objects.equals(this.isMalwareDetected, npmPackageUpload.isMalwareDetected) && Objects.equals(this.isMoveable, npmPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, npmPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, npmPackageUpload.isQuarantined) && @@ -1267,24 +1328,27 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.statusStr, npmPackageUpload.statusStr) && Objects.equals(this.statusUpdatedAt, npmPackageUpload.statusUpdatedAt) && Objects.equals(this.statusUrl, npmPackageUpload.statusUrl) && + Objects.equals(this.storePath, npmPackageUpload.storePath) && Objects.equals(this.subtype, npmPackageUpload.subtype) && Objects.equals(this.summary, npmPackageUpload.summary) && Objects.equals(this.syncFinishedAt, npmPackageUpload.syncFinishedAt) && Objects.equals(this.syncProgress, npmPackageUpload.syncProgress) && Objects.equals(this.tagsAutomatic, npmPackageUpload.tagsAutomatic) && Objects.equals(this.tagsImmutable, npmPackageUpload.tagsImmutable) && + Objects.equals(this.tagsStatic, npmPackageUpload.tagsStatic) && Objects.equals(this.typeDisplay, npmPackageUpload.typeDisplay) && Objects.equals(this.uploadedAt, npmPackageUpload.uploadedAt) && Objects.equals(this.uploader, npmPackageUpload.uploader) && Objects.equals(this.uploaderUrl, npmPackageUpload.uploaderUrl) && Objects.equals(this.version, npmPackageUpload.version) && Objects.equals(this.versionOrig, npmPackageUpload.versionOrig) && + Objects.equals(this.vulnerabilityCounts, npmPackageUpload.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, npmPackageUpload.vulnerabilityScanResultsUrl); } @Override public int hashCode() { - return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMalwareDetected, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1322,6 +1386,7 @@ public String toString() { sb.append(" isDeleteable: ").append(toIndentedString(isDeleteable)).append("\n"); sb.append(" isDownloadable: ").append(toIndentedString(isDownloadable)).append("\n"); sb.append(" isHidden: ").append(toIndentedString(isHidden)).append("\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" isMoveable: ").append(toIndentedString(isMoveable)).append("\n"); sb.append(" isQuarantinable: ").append(toIndentedString(isQuarantinable)).append("\n"); sb.append(" isQuarantined: ").append(toIndentedString(isQuarantined)).append("\n"); @@ -1366,18 +1431,21 @@ public String toString() { sb.append(" statusStr: ").append(toIndentedString(statusStr)).append("\n"); sb.append(" statusUpdatedAt: ").append(toIndentedString(statusUpdatedAt)).append("\n"); sb.append(" statusUrl: ").append(toIndentedString(statusUrl)).append("\n"); + sb.append(" storePath: ").append(toIndentedString(storePath)).append("\n"); sb.append(" subtype: ").append(toIndentedString(subtype)).append("\n"); sb.append(" summary: ").append(toIndentedString(summary)).append("\n"); sb.append(" syncFinishedAt: ").append(toIndentedString(syncFinishedAt)).append("\n"); sb.append(" syncProgress: ").append(toIndentedString(syncProgress)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/NpmPackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/NpmPackageUploadRequest.java index 3602a596..9ad05e9e 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/NpmPackageUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/NpmPackageUploadRequest.java @@ -20,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -34,6 +35,9 @@ public class NpmPackageUploadRequest implements Serializable { private static final long serialVersionUID = 1L; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("npm_dist_tag") private String npmDistTag = "latest"; @@ -46,6 +50,18 @@ public class NpmPackageUploadRequest implements Serializable { @SerializedName("tags") private String tags = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + public NpmPackageUploadRequest npmDistTag(String npmDistTag) { this.npmDistTag = npmDistTag; return this; @@ -119,6 +135,25 @@ public void setTags(String tags) { this.tags = tags; } + public NpmPackageUploadRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + @Override public boolean equals(java.lang.Object o) { @@ -129,15 +164,17 @@ public boolean equals(java.lang.Object o) { return false; } NpmPackageUploadRequest npmPackageUploadRequest = (NpmPackageUploadRequest) o; - return Objects.equals(this.npmDistTag, npmPackageUploadRequest.npmDistTag) && + return Objects.equals(this.isMalwareDetected, npmPackageUploadRequest.isMalwareDetected) && + Objects.equals(this.npmDistTag, npmPackageUploadRequest.npmDistTag) && Objects.equals(this.packageFile, npmPackageUploadRequest.packageFile) && Objects.equals(this.republish, npmPackageUploadRequest.republish) && - Objects.equals(this.tags, npmPackageUploadRequest.tags); + Objects.equals(this.tags, npmPackageUploadRequest.tags) && + Objects.equals(this.vulnerabilityCounts, npmPackageUploadRequest.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(npmDistTag, packageFile, republish, tags); + return Objects.hash(isMalwareDetected, npmDistTag, packageFile, republish, tags, vulnerabilityCounts); } @@ -146,10 +183,12 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class NpmPackageUploadRequest {\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" npmDistTag: ").append(toIndentedString(npmDistTag)).append("\n"); sb.append(" packageFile: ").append(toIndentedString(packageFile)).append("\n"); sb.append(" republish: ").append(toIndentedString(republish)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/NugetPackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/NugetPackageUpload.java index 7a022371..92396aff 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/NugetPackageUpload.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/NugetPackageUpload.java @@ -25,6 +25,7 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -131,6 +132,9 @@ public class NugetPackageUpload implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -322,6 +326,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("status_url") private String statusUrl = null; + @SerializedName("store_path") + private String storePath = null; + @SerializedName("subtype") private String subtype = null; @@ -340,6 +347,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -358,6 +368,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -644,6 +657,15 @@ public Boolean isIsHidden() { return isHidden; } + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + /** * Get isMoveable * @return isMoveable @@ -1045,6 +1067,15 @@ public String getStatusUrl() { return statusUrl; } + /** + * Absolute store path for the package, including store hash and name. + * @return storePath + **/ + @Size(min=1) @ApiModelProperty(value = "Absolute store path for the package, including store hash and name.") + public String getStorePath() { + return storePath; + } + /** * Get subtype * @return subtype @@ -1120,6 +1151,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * 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. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "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.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1175,6 +1216,25 @@ public String getVersionOrig() { return versionOrig; } + public NugetPackageUpload vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1223,6 +1283,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, nugetPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, nugetPackageUpload.isDownloadable) && Objects.equals(this.isHidden, nugetPackageUpload.isHidden) && + Objects.equals(this.isMalwareDetected, nugetPackageUpload.isMalwareDetected) && Objects.equals(this.isMoveable, nugetPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, nugetPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, nugetPackageUpload.isQuarantined) && @@ -1267,24 +1328,27 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.statusStr, nugetPackageUpload.statusStr) && Objects.equals(this.statusUpdatedAt, nugetPackageUpload.statusUpdatedAt) && Objects.equals(this.statusUrl, nugetPackageUpload.statusUrl) && + Objects.equals(this.storePath, nugetPackageUpload.storePath) && Objects.equals(this.subtype, nugetPackageUpload.subtype) && Objects.equals(this.summary, nugetPackageUpload.summary) && Objects.equals(this.syncFinishedAt, nugetPackageUpload.syncFinishedAt) && Objects.equals(this.syncProgress, nugetPackageUpload.syncProgress) && Objects.equals(this.tagsAutomatic, nugetPackageUpload.tagsAutomatic) && Objects.equals(this.tagsImmutable, nugetPackageUpload.tagsImmutable) && + Objects.equals(this.tagsStatic, nugetPackageUpload.tagsStatic) && Objects.equals(this.typeDisplay, nugetPackageUpload.typeDisplay) && Objects.equals(this.uploadedAt, nugetPackageUpload.uploadedAt) && Objects.equals(this.uploader, nugetPackageUpload.uploader) && Objects.equals(this.uploaderUrl, nugetPackageUpload.uploaderUrl) && Objects.equals(this.version, nugetPackageUpload.version) && Objects.equals(this.versionOrig, nugetPackageUpload.versionOrig) && + Objects.equals(this.vulnerabilityCounts, nugetPackageUpload.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, nugetPackageUpload.vulnerabilityScanResultsUrl); } @Override public int hashCode() { - return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMalwareDetected, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1322,6 +1386,7 @@ public String toString() { sb.append(" isDeleteable: ").append(toIndentedString(isDeleteable)).append("\n"); sb.append(" isDownloadable: ").append(toIndentedString(isDownloadable)).append("\n"); sb.append(" isHidden: ").append(toIndentedString(isHidden)).append("\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" isMoveable: ").append(toIndentedString(isMoveable)).append("\n"); sb.append(" isQuarantinable: ").append(toIndentedString(isQuarantinable)).append("\n"); sb.append(" isQuarantined: ").append(toIndentedString(isQuarantined)).append("\n"); @@ -1366,18 +1431,21 @@ public String toString() { sb.append(" statusStr: ").append(toIndentedString(statusStr)).append("\n"); sb.append(" statusUpdatedAt: ").append(toIndentedString(statusUpdatedAt)).append("\n"); sb.append(" statusUrl: ").append(toIndentedString(statusUrl)).append("\n"); + sb.append(" storePath: ").append(toIndentedString(storePath)).append("\n"); sb.append(" subtype: ").append(toIndentedString(subtype)).append("\n"); sb.append(" summary: ").append(toIndentedString(summary)).append("\n"); sb.append(" syncFinishedAt: ").append(toIndentedString(syncFinishedAt)).append("\n"); sb.append(" syncProgress: ").append(toIndentedString(syncProgress)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/NugetPackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/NugetPackageUploadRequest.java index 564879e1..d948e68f 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/NugetPackageUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/NugetPackageUploadRequest.java @@ -20,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -34,6 +35,9 @@ public class NugetPackageUploadRequest implements Serializable { private static final long serialVersionUID = 1L; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("package_file") private String packageFile = null; @@ -46,6 +50,18 @@ public class NugetPackageUploadRequest implements Serializable { @SerializedName("tags") private String tags = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + public NugetPackageUploadRequest packageFile(String packageFile) { this.packageFile = packageFile; return this; @@ -119,6 +135,25 @@ public void setTags(String tags) { this.tags = tags; } + public NugetPackageUploadRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + @Override public boolean equals(java.lang.Object o) { @@ -129,15 +164,17 @@ public boolean equals(java.lang.Object o) { return false; } NugetPackageUploadRequest nugetPackageUploadRequest = (NugetPackageUploadRequest) o; - return Objects.equals(this.packageFile, nugetPackageUploadRequest.packageFile) && + return Objects.equals(this.isMalwareDetected, nugetPackageUploadRequest.isMalwareDetected) && + Objects.equals(this.packageFile, nugetPackageUploadRequest.packageFile) && Objects.equals(this.republish, nugetPackageUploadRequest.republish) && Objects.equals(this.symbolsFile, nugetPackageUploadRequest.symbolsFile) && - Objects.equals(this.tags, nugetPackageUploadRequest.tags); + Objects.equals(this.tags, nugetPackageUploadRequest.tags) && + Objects.equals(this.vulnerabilityCounts, nugetPackageUploadRequest.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(packageFile, republish, symbolsFile, tags); + return Objects.hash(isMalwareDetected, packageFile, republish, symbolsFile, tags, vulnerabilityCounts); } @@ -146,10 +183,12 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class NugetPackageUploadRequest {\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" packageFile: ").append(toIndentedString(packageFile)).append("\n"); sb.append(" republish: ").append(toIndentedString(republish)).append("\n"); sb.append(" symbolsFile: ").append(toIndentedString(symbolsFile)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/OrganizationUsage.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/OrganizationUsage.java new file mode 100644 index 00000000..2d64ed6f --- /dev/null +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/OrganizationUsage.java @@ -0,0 +1,132 @@ +/* + * Cloudsmith API (v1) + * The API to the Cloudsmith Service + * + * OpenAPI spec version: v1 + * Contact: support@cloudsmith.io + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package io.cloudsmith.api.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.io.Serializable; +import javax.validation.constraints.*; +import javax.validation.Valid; + +/** + * OrganizationUsage + */ + +public class OrganizationUsage implements Serializable { + private static final long serialVersionUID = 1L; + + @SerializedName("bandwidth_maximum") + private java.math.BigInteger bandwidthMaximum = null; + + @SerializedName("bandwidth_overage_limit") + private java.math.BigInteger bandwidthOverageLimit = null; + + @SerializedName("storage_maximum") + private java.math.BigInteger storageMaximum = null; + + @SerializedName("storage_overage_limit") + private java.math.BigInteger storageOverageLimit = null; + + /** + * The maximum allowed package delivery overage in GB for this product. + * @return bandwidthMaximum + **/ + @ApiModelProperty(value = "The maximum allowed package delivery overage in GB for this product.") + public java.math.BigInteger getBandwidthMaximum() { + return bandwidthMaximum; + } + + /** + * The on-demand limit for package delivery usage (in GBs). + * @return bandwidthOverageLimit + **/ + @ApiModelProperty(value = "The on-demand limit for package delivery usage (in GBs).") + public java.math.BigInteger getBandwidthOverageLimit() { + return bandwidthOverageLimit; + } + + /** + * The maximum allowed artifact data overage in GB for this product. + * @return storageMaximum + **/ + @ApiModelProperty(value = "The maximum allowed artifact data overage in GB for this product.") + public java.math.BigInteger getStorageMaximum() { + return storageMaximum; + } + + /** + * The on-demand limit for artifact data usage (in GBs). + * @return storageOverageLimit + **/ + @ApiModelProperty(value = "The on-demand limit for artifact data usage (in GBs).") + public java.math.BigInteger getStorageOverageLimit() { + return storageOverageLimit; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OrganizationUsage organizationUsage = (OrganizationUsage) o; + return Objects.equals(this.bandwidthMaximum, organizationUsage.bandwidthMaximum) && + Objects.equals(this.bandwidthOverageLimit, organizationUsage.bandwidthOverageLimit) && + Objects.equals(this.storageMaximum, organizationUsage.storageMaximum) && + Objects.equals(this.storageOverageLimit, organizationUsage.storageOverageLimit); + } + + @Override + public int hashCode() { + return Objects.hash(bandwidthMaximum, bandwidthOverageLimit, storageMaximum, storageOverageLimit); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OrganizationUsage {\n"); + + sb.append(" bandwidthMaximum: ").append(toIndentedString(bandwidthMaximum)).append("\n"); + sb.append(" bandwidthOverageLimit: ").append(toIndentedString(bandwidthOverageLimit)).append("\n"); + sb.append(" storageMaximum: ").append(toIndentedString(storageMaximum)).append("\n"); + sb.append(" storageOverageLimit: ").append(toIndentedString(storageOverageLimit)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/OrganizationUsageUpdate.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/OrganizationUsageUpdate.java new file mode 100644 index 00000000..47bdabbd --- /dev/null +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/OrganizationUsageUpdate.java @@ -0,0 +1,147 @@ +/* + * Cloudsmith API (v1) + * The API to the Cloudsmith Service + * + * OpenAPI spec version: v1 + * Contact: support@cloudsmith.io + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package io.cloudsmith.api.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.io.Serializable; +import javax.validation.constraints.*; +import javax.validation.Valid; + +/** + * OrganizationUsageUpdate + */ + +public class OrganizationUsageUpdate implements Serializable { + private static final long serialVersionUID = 1L; + + @SerializedName("allow_open_source_overage") + private Boolean allowOpenSourceOverage = null; + + @SerializedName("bandwidth_overage_limit") + private java.math.BigInteger bandwidthOverageLimit = null; + + @SerializedName("storage_overage_limit") + private java.math.BigInteger storageOverageLimit = null; + + public OrganizationUsageUpdate allowOpenSourceOverage(Boolean allowOpenSourceOverage) { + this.allowOpenSourceOverage = allowOpenSourceOverage; + return this; + } + + /** + * Get allowOpenSourceOverage + * @return allowOpenSourceOverage + **/ + @ApiModelProperty(value = "") + public Boolean isAllowOpenSourceOverage() { + return allowOpenSourceOverage; + } + + public void setAllowOpenSourceOverage(Boolean allowOpenSourceOverage) { + this.allowOpenSourceOverage = allowOpenSourceOverage; + } + + public OrganizationUsageUpdate bandwidthOverageLimit(java.math.BigInteger bandwidthOverageLimit) { + this.bandwidthOverageLimit = bandwidthOverageLimit; + return this; + } + + /** + * Get bandwidthOverageLimit + * minimum: 0 + * @return bandwidthOverageLimit + **/ + @Min(0L) @ApiModelProperty(value = "") + public java.math.BigInteger getBandwidthOverageLimit() { + return bandwidthOverageLimit; + } + + public void setBandwidthOverageLimit(java.math.BigInteger bandwidthOverageLimit) { + this.bandwidthOverageLimit = bandwidthOverageLimit; + } + + public OrganizationUsageUpdate storageOverageLimit(java.math.BigInteger storageOverageLimit) { + this.storageOverageLimit = storageOverageLimit; + return this; + } + + /** + * Get storageOverageLimit + * minimum: 0 + * @return storageOverageLimit + **/ + @Min(0L) @ApiModelProperty(value = "") + public java.math.BigInteger getStorageOverageLimit() { + return storageOverageLimit; + } + + public void setStorageOverageLimit(java.math.BigInteger storageOverageLimit) { + this.storageOverageLimit = storageOverageLimit; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OrganizationUsageUpdate organizationUsageUpdate = (OrganizationUsageUpdate) o; + return Objects.equals(this.allowOpenSourceOverage, organizationUsageUpdate.allowOpenSourceOverage) && + Objects.equals(this.bandwidthOverageLimit, organizationUsageUpdate.bandwidthOverageLimit) && + Objects.equals(this.storageOverageLimit, organizationUsageUpdate.storageOverageLimit); + } + + @Override + public int hashCode() { + return Objects.hash(allowOpenSourceOverage, bandwidthOverageLimit, storageOverageLimit); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OrganizationUsageUpdate {\n"); + + sb.append(" allowOpenSourceOverage: ").append(toIndentedString(allowOpenSourceOverage)).append("\n"); + sb.append(" bandwidthOverageLimit: ").append(toIndentedString(bandwidthOverageLimit)).append("\n"); + sb.append(" storageOverageLimit: ").append(toIndentedString(storageOverageLimit)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/OrganizationUsageUpdateRequestPatch.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/OrganizationUsageUpdateRequestPatch.java new file mode 100644 index 00000000..08bdd9fd --- /dev/null +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/OrganizationUsageUpdateRequestPatch.java @@ -0,0 +1,147 @@ +/* + * Cloudsmith API (v1) + * The API to the Cloudsmith Service + * + * OpenAPI spec version: v1 + * Contact: support@cloudsmith.io + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package io.cloudsmith.api.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.io.Serializable; +import javax.validation.constraints.*; +import javax.validation.Valid; + +/** + * OrganizationUsageUpdateRequestPatch + */ + +public class OrganizationUsageUpdateRequestPatch implements Serializable { + private static final long serialVersionUID = 1L; + + @SerializedName("allow_open_source_overage") + private Boolean allowOpenSourceOverage = null; + + @SerializedName("bandwidth_overage_limit") + private java.math.BigInteger bandwidthOverageLimit = null; + + @SerializedName("storage_overage_limit") + private java.math.BigInteger storageOverageLimit = null; + + public OrganizationUsageUpdateRequestPatch allowOpenSourceOverage(Boolean allowOpenSourceOverage) { + this.allowOpenSourceOverage = allowOpenSourceOverage; + return this; + } + + /** + * Get allowOpenSourceOverage + * @return allowOpenSourceOverage + **/ + @ApiModelProperty(value = "") + public Boolean isAllowOpenSourceOverage() { + return allowOpenSourceOverage; + } + + public void setAllowOpenSourceOverage(Boolean allowOpenSourceOverage) { + this.allowOpenSourceOverage = allowOpenSourceOverage; + } + + public OrganizationUsageUpdateRequestPatch bandwidthOverageLimit(java.math.BigInteger bandwidthOverageLimit) { + this.bandwidthOverageLimit = bandwidthOverageLimit; + return this; + } + + /** + * Get bandwidthOverageLimit + * minimum: 0 + * @return bandwidthOverageLimit + **/ + @Min(0L) @ApiModelProperty(value = "") + public java.math.BigInteger getBandwidthOverageLimit() { + return bandwidthOverageLimit; + } + + public void setBandwidthOverageLimit(java.math.BigInteger bandwidthOverageLimit) { + this.bandwidthOverageLimit = bandwidthOverageLimit; + } + + public OrganizationUsageUpdateRequestPatch storageOverageLimit(java.math.BigInteger storageOverageLimit) { + this.storageOverageLimit = storageOverageLimit; + return this; + } + + /** + * Get storageOverageLimit + * minimum: 0 + * @return storageOverageLimit + **/ + @Min(0L) @ApiModelProperty(value = "") + public java.math.BigInteger getStorageOverageLimit() { + return storageOverageLimit; + } + + public void setStorageOverageLimit(java.math.BigInteger storageOverageLimit) { + this.storageOverageLimit = storageOverageLimit; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OrganizationUsageUpdateRequestPatch organizationUsageUpdateRequestPatch = (OrganizationUsageUpdateRequestPatch) o; + return Objects.equals(this.allowOpenSourceOverage, organizationUsageUpdateRequestPatch.allowOpenSourceOverage) && + Objects.equals(this.bandwidthOverageLimit, organizationUsageUpdateRequestPatch.bandwidthOverageLimit) && + Objects.equals(this.storageOverageLimit, organizationUsageUpdateRequestPatch.storageOverageLimit); + } + + @Override + public int hashCode() { + return Objects.hash(allowOpenSourceOverage, bandwidthOverageLimit, storageOverageLimit); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OrganizationUsageUpdateRequestPatch {\n"); + + sb.append(" allowOpenSourceOverage: ").append(toIndentedString(allowOpenSourceOverage)).append("\n"); + sb.append(" bandwidthOverageLimit: ").append(toIndentedString(bandwidthOverageLimit)).append("\n"); + sb.append(" storageOverageLimit: ").append(toIndentedString(storageOverageLimit)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/P2PackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/P2PackageUpload.java index 856fc231..a4739af4 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/P2PackageUpload.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/P2PackageUpload.java @@ -25,6 +25,7 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -131,6 +132,9 @@ public class P2PackageUpload implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -322,6 +326,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("status_url") private String statusUrl = null; + @SerializedName("store_path") + private String storePath = null; + @SerializedName("subtype") private String subtype = null; @@ -340,6 +347,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -358,6 +368,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -644,6 +657,15 @@ public Boolean isIsHidden() { return isHidden; } + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + /** * Get isMoveable * @return isMoveable @@ -1045,6 +1067,15 @@ public String getStatusUrl() { return statusUrl; } + /** + * Absolute store path for the package, including store hash and name. + * @return storePath + **/ + @Size(min=1) @ApiModelProperty(value = "Absolute store path for the package, including store hash and name.") + public String getStorePath() { + return storePath; + } + /** * Get subtype * @return subtype @@ -1120,6 +1151,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * 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. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "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.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1175,6 +1216,25 @@ public String getVersionOrig() { return versionOrig; } + public P2PackageUpload vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1223,6 +1283,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, p2PackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, p2PackageUpload.isDownloadable) && Objects.equals(this.isHidden, p2PackageUpload.isHidden) && + Objects.equals(this.isMalwareDetected, p2PackageUpload.isMalwareDetected) && Objects.equals(this.isMoveable, p2PackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, p2PackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, p2PackageUpload.isQuarantined) && @@ -1267,24 +1328,27 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.statusStr, p2PackageUpload.statusStr) && Objects.equals(this.statusUpdatedAt, p2PackageUpload.statusUpdatedAt) && Objects.equals(this.statusUrl, p2PackageUpload.statusUrl) && + Objects.equals(this.storePath, p2PackageUpload.storePath) && Objects.equals(this.subtype, p2PackageUpload.subtype) && Objects.equals(this.summary, p2PackageUpload.summary) && Objects.equals(this.syncFinishedAt, p2PackageUpload.syncFinishedAt) && Objects.equals(this.syncProgress, p2PackageUpload.syncProgress) && Objects.equals(this.tagsAutomatic, p2PackageUpload.tagsAutomatic) && Objects.equals(this.tagsImmutable, p2PackageUpload.tagsImmutable) && + Objects.equals(this.tagsStatic, p2PackageUpload.tagsStatic) && Objects.equals(this.typeDisplay, p2PackageUpload.typeDisplay) && Objects.equals(this.uploadedAt, p2PackageUpload.uploadedAt) && Objects.equals(this.uploader, p2PackageUpload.uploader) && Objects.equals(this.uploaderUrl, p2PackageUpload.uploaderUrl) && Objects.equals(this.version, p2PackageUpload.version) && Objects.equals(this.versionOrig, p2PackageUpload.versionOrig) && + Objects.equals(this.vulnerabilityCounts, p2PackageUpload.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, p2PackageUpload.vulnerabilityScanResultsUrl); } @Override public int hashCode() { - return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMalwareDetected, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1322,6 +1386,7 @@ public String toString() { sb.append(" isDeleteable: ").append(toIndentedString(isDeleteable)).append("\n"); sb.append(" isDownloadable: ").append(toIndentedString(isDownloadable)).append("\n"); sb.append(" isHidden: ").append(toIndentedString(isHidden)).append("\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" isMoveable: ").append(toIndentedString(isMoveable)).append("\n"); sb.append(" isQuarantinable: ").append(toIndentedString(isQuarantinable)).append("\n"); sb.append(" isQuarantined: ").append(toIndentedString(isQuarantined)).append("\n"); @@ -1366,18 +1431,21 @@ public String toString() { sb.append(" statusStr: ").append(toIndentedString(statusStr)).append("\n"); sb.append(" statusUpdatedAt: ").append(toIndentedString(statusUpdatedAt)).append("\n"); sb.append(" statusUrl: ").append(toIndentedString(statusUrl)).append("\n"); + sb.append(" storePath: ").append(toIndentedString(storePath)).append("\n"); sb.append(" subtype: ").append(toIndentedString(subtype)).append("\n"); sb.append(" summary: ").append(toIndentedString(summary)).append("\n"); sb.append(" syncFinishedAt: ").append(toIndentedString(syncFinishedAt)).append("\n"); sb.append(" syncProgress: ").append(toIndentedString(syncProgress)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/P2PackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/P2PackageUploadRequest.java index e4e6a5f5..1c6d6f13 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/P2PackageUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/P2PackageUploadRequest.java @@ -20,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -34,6 +35,9 @@ public class P2PackageUploadRequest implements Serializable { private static final long serialVersionUID = 1L; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("package_file") private String packageFile = null; @@ -43,6 +47,18 @@ public class P2PackageUploadRequest implements Serializable { @SerializedName("tags") private String tags = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + public P2PackageUploadRequest packageFile(String packageFile) { this.packageFile = packageFile; return this; @@ -98,6 +114,25 @@ public void setTags(String tags) { this.tags = tags; } + public P2PackageUploadRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + @Override public boolean equals(java.lang.Object o) { @@ -108,14 +143,16 @@ public boolean equals(java.lang.Object o) { return false; } P2PackageUploadRequest p2PackageUploadRequest = (P2PackageUploadRequest) o; - return Objects.equals(this.packageFile, p2PackageUploadRequest.packageFile) && + return Objects.equals(this.isMalwareDetected, p2PackageUploadRequest.isMalwareDetected) && + Objects.equals(this.packageFile, p2PackageUploadRequest.packageFile) && Objects.equals(this.republish, p2PackageUploadRequest.republish) && - Objects.equals(this.tags, p2PackageUploadRequest.tags); + Objects.equals(this.tags, p2PackageUploadRequest.tags) && + Objects.equals(this.vulnerabilityCounts, p2PackageUploadRequest.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(packageFile, republish, tags); + return Objects.hash(isMalwareDetected, packageFile, republish, tags, vulnerabilityCounts); } @@ -124,9 +161,11 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class P2PackageUploadRequest {\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" packageFile: ").append(toIndentedString(packageFile)).append("\n"); sb.append(" republish: ").append(toIndentedString(republish)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageCopy.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageCopy.java index 3aea27b2..4dd1d0b0 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageCopy.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageCopy.java @@ -25,6 +25,7 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -134,6 +135,9 @@ public class PackageCopy implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -325,6 +329,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("status_url") private String statusUrl = null; + @SerializedName("store_path") + private String storePath = null; + @SerializedName("subtype") private String subtype = null; @@ -346,6 +353,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -364,6 +374,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -659,6 +672,15 @@ public Boolean isIsHidden() { return isHidden; } + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + /** * Get isMoveable * @return isMoveable @@ -1060,6 +1082,15 @@ public String getStatusUrl() { return statusUrl; } + /** + * Absolute store path for the package, including store hash and name. + * @return storePath + **/ + @Size(min=1) @ApiModelProperty(value = "Absolute store path for the package, including store hash and name.") + public String getStorePath() { + return storePath; + } + /** * Get subtype * @return subtype @@ -1154,6 +1185,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * 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. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "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.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1209,6 +1250,25 @@ public String getVersionOrig() { return versionOrig; } + public PackageCopy vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1258,6 +1318,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, packageCopy.isDeleteable) && Objects.equals(this.isDownloadable, packageCopy.isDownloadable) && Objects.equals(this.isHidden, packageCopy.isHidden) && + Objects.equals(this.isMalwareDetected, packageCopy.isMalwareDetected) && Objects.equals(this.isMoveable, packageCopy.isMoveable) && Objects.equals(this.isQuarantinable, packageCopy.isQuarantinable) && Objects.equals(this.isQuarantined, packageCopy.isQuarantined) && @@ -1302,6 +1363,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.statusStr, packageCopy.statusStr) && Objects.equals(this.statusUpdatedAt, packageCopy.statusUpdatedAt) && Objects.equals(this.statusUrl, packageCopy.statusUrl) && + Objects.equals(this.storePath, packageCopy.storePath) && Objects.equals(this.subtype, packageCopy.subtype) && Objects.equals(this.summary, packageCopy.summary) && Objects.equals(this.syncFinishedAt, packageCopy.syncFinishedAt) && @@ -1309,18 +1371,20 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.tags, packageCopy.tags) && Objects.equals(this.tagsAutomatic, packageCopy.tagsAutomatic) && Objects.equals(this.tagsImmutable, packageCopy.tagsImmutable) && + Objects.equals(this.tagsStatic, packageCopy.tagsStatic) && Objects.equals(this.typeDisplay, packageCopy.typeDisplay) && Objects.equals(this.uploadedAt, packageCopy.uploadedAt) && Objects.equals(this.uploader, packageCopy.uploader) && Objects.equals(this.uploaderUrl, packageCopy.uploaderUrl) && Objects.equals(this.version, packageCopy.version) && Objects.equals(this.versionOrig, packageCopy.versionOrig) && + Objects.equals(this.vulnerabilityCounts, packageCopy.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, packageCopy.vulnerabilityScanResultsUrl); } @Override public int hashCode() { - return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, filepath, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tags, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, filepath, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMalwareDetected, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, storePath, subtype, summary, syncFinishedAt, syncProgress, tags, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1359,6 +1423,7 @@ public String toString() { sb.append(" isDeleteable: ").append(toIndentedString(isDeleteable)).append("\n"); sb.append(" isDownloadable: ").append(toIndentedString(isDownloadable)).append("\n"); sb.append(" isHidden: ").append(toIndentedString(isHidden)).append("\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" isMoveable: ").append(toIndentedString(isMoveable)).append("\n"); sb.append(" isQuarantinable: ").append(toIndentedString(isQuarantinable)).append("\n"); sb.append(" isQuarantined: ").append(toIndentedString(isQuarantined)).append("\n"); @@ -1403,6 +1468,7 @@ public String toString() { sb.append(" statusStr: ").append(toIndentedString(statusStr)).append("\n"); sb.append(" statusUpdatedAt: ").append(toIndentedString(statusUpdatedAt)).append("\n"); sb.append(" statusUrl: ").append(toIndentedString(statusUrl)).append("\n"); + sb.append(" storePath: ").append(toIndentedString(storePath)).append("\n"); sb.append(" subtype: ").append(toIndentedString(subtype)).append("\n"); sb.append(" summary: ").append(toIndentedString(summary)).append("\n"); sb.append(" syncFinishedAt: ").append(toIndentedString(syncFinishedAt)).append("\n"); @@ -1410,12 +1476,14 @@ public String toString() { sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageCopyRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageCopyRequest.java index 978a9d53..926fc714 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageCopyRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageCopyRequest.java @@ -20,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -37,9 +38,15 @@ public class PackageCopyRequest implements Serializable { @SerializedName("destination") private String destination = null; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("republish") private Boolean republish = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + public PackageCopyRequest destination(String destination) { this.destination = destination; return this; @@ -59,6 +66,15 @@ public void setDestination(String destination) { this.destination = destination; } + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + public PackageCopyRequest republish(Boolean republish) { this.republish = republish; return this; @@ -77,6 +93,25 @@ public void setRepublish(Boolean republish) { this.republish = republish; } + public PackageCopyRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + @Override public boolean equals(java.lang.Object o) { @@ -88,12 +123,14 @@ public boolean equals(java.lang.Object o) { } PackageCopyRequest packageCopyRequest = (PackageCopyRequest) o; return Objects.equals(this.destination, packageCopyRequest.destination) && - Objects.equals(this.republish, packageCopyRequest.republish); + Objects.equals(this.isMalwareDetected, packageCopyRequest.isMalwareDetected) && + Objects.equals(this.republish, packageCopyRequest.republish) && + Objects.equals(this.vulnerabilityCounts, packageCopyRequest.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(destination, republish); + return Objects.hash(destination, isMalwareDetected, republish, vulnerabilityCounts); } @@ -103,7 +140,9 @@ public String toString() { sb.append("class PackageCopyRequest {\n"); sb.append(" destination: ").append(toIndentedString(destination)).append("\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" republish: ").append(toIndentedString(republish)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageDetail.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageDetail.java new file mode 100644 index 00000000..1ffaa5f2 --- /dev/null +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageDetail.java @@ -0,0 +1,1518 @@ +/* + * Cloudsmith API (v1) + * The API to the Cloudsmith Service + * + * OpenAPI spec version: v1 + * Contact: support@cloudsmith.io + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package io.cloudsmith.api.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.Architecture; +import io.cloudsmith.api.models.Distribution; +import io.cloudsmith.api.models.DistributionVersion; +import io.cloudsmith.api.models.PackageFile; +import io.cloudsmith.api.models.Tags; +import io.cloudsmith.api.models.WebOSVSeverityCounts; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.io.Serializable; +import javax.validation.constraints.*; +import javax.validation.Valid; + +/** + * PackageDetail + */ + +public class PackageDetail implements Serializable { + private static final long serialVersionUID = 1L; + + @SerializedName("architectures") + private List architectures = null; + + @SerializedName("cdn_url") + private String cdnUrl = null; + + @SerializedName("checksum_md5") + private String checksumMd5 = null; + + @SerializedName("checksum_sha1") + private String checksumSha1 = null; + + @SerializedName("checksum_sha256") + private String checksumSha256 = null; + + @SerializedName("checksum_sha512") + private String checksumSha512 = null; + + @SerializedName("dependencies_checksum_md5") + private String dependenciesChecksumMd5 = null; + + @SerializedName("dependencies_url") + private String dependenciesUrl = null; + + @SerializedName("description") + private String description = null; + + @SerializedName("display_name") + private String displayName = null; + + @SerializedName("distro") + private Distribution distro = null; + + @SerializedName("distro_version") + private DistributionVersion distroVersion = null; + + @SerializedName("downloads") + private java.math.BigInteger downloads = null; + + @SerializedName("epoch") + private java.math.BigInteger epoch = null; + + @SerializedName("extension") + private String extension = null; + + @SerializedName("filename") + private String filename = null; + + @SerializedName("filepath") + private String filepath = null; + + @SerializedName("files") + private List files = null; + + @SerializedName("format") + private String format = null; + + @SerializedName("format_url") + private String formatUrl = null; + + @SerializedName("freeable_storage") + private java.math.BigInteger freeableStorage = null; + + @SerializedName("fully_qualified_name") + private String fullyQualifiedName = null; + + @SerializedName("has_dependencies") + private Boolean hasDependencies = null; + + @SerializedName("identifier_perm") + private String identifierPerm = null; + + @SerializedName("identifiers") + private Map identifiers = null; + + @SerializedName("indexed") + private Boolean indexed = null; + + @SerializedName("is_cancellable") + private Boolean isCancellable = null; + + @SerializedName("is_copyable") + private Boolean isCopyable = null; + + @SerializedName("is_deleteable") + private Boolean isDeleteable = null; + + @SerializedName("is_downloadable") + private Boolean isDownloadable = null; + + @SerializedName("is_hidden") + private Boolean isHidden = null; + + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + + @SerializedName("is_moveable") + private Boolean isMoveable = null; + + @SerializedName("is_quarantinable") + private Boolean isQuarantinable = null; + + @SerializedName("is_quarantined") + private Boolean isQuarantined = null; + + @SerializedName("is_resyncable") + private Boolean isResyncable = null; + + @SerializedName("is_security_scannable") + private Boolean isSecurityScannable = null; + + @SerializedName("is_sync_awaiting") + private Boolean isSyncAwaiting = null; + + @SerializedName("is_sync_completed") + private Boolean isSyncCompleted = null; + + @SerializedName("is_sync_failed") + private Boolean isSyncFailed = null; + + @SerializedName("is_sync_in_flight") + private Boolean isSyncInFlight = null; + + @SerializedName("is_sync_in_progress") + private Boolean isSyncInProgress = null; + + @SerializedName("license") + private String license = null; + + @SerializedName("name") + private String name = null; + + @SerializedName("namespace") + private String namespace = null; + + @SerializedName("namespace_url") + private String namespaceUrl = null; + + @SerializedName("num_files") + private java.math.BigInteger numFiles = null; + + @SerializedName("origin_repository") + private String originRepository = null; + + @SerializedName("origin_repository_url") + private String originRepositoryUrl = null; + + @SerializedName("osi_approved") + private Boolean osiApproved = null; + + @SerializedName("package_type") + private java.math.BigInteger packageType = null; + + @SerializedName("policy_violated") + private Boolean policyViolated = null; + + @SerializedName("raw_license") + private String rawLicense = null; + + @SerializedName("release") + private String release = null; + + @SerializedName("repository") + private String repository = null; + + @SerializedName("repository_url") + private String repositoryUrl = null; + + @SerializedName("security_scan_completed_at") + private OffsetDateTime securityScanCompletedAt = null; + + @SerializedName("security_scan_started_at") + private OffsetDateTime securityScanStartedAt = null; + + /** + * Gets or Sets securityScanStatus + */ + @JsonAdapter(SecurityScanStatusEnum.Adapter.class) + public enum SecurityScanStatusEnum { + AWAITING_SECURITY_SCAN("Awaiting Security Scan"), + + SECURITY_SCANNING_IN_PROGRESS("Security Scanning in Progress"), + + SCAN_DETECTED_VULNERABILITIES("Scan Detected Vulnerabilities"), + + SCAN_DETECTED_NO_VULNERABILITIES("Scan Detected No Vulnerabilities"), + + SECURITY_SCANNING_DISABLED("Security Scanning Disabled"), + + SECURITY_SCANNING_FAILED("Security Scanning Failed"), + + SECURITY_SCANNING_SKIPPED("Security Scanning Skipped"), + + SECURITY_SCANNING_NOT_SUPPORTED("Security Scanning Not Supported"); + + private String value; + + SecurityScanStatusEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static SecurityScanStatusEnum fromValue(String text) { + for (SecurityScanStatusEnum b : SecurityScanStatusEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final SecurityScanStatusEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return SecurityScanStatusEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("security_scan_status") + private SecurityScanStatusEnum securityScanStatus = SecurityScanStatusEnum.AWAITING_SECURITY_SCAN; + + @SerializedName("security_scan_status_updated_at") + private OffsetDateTime securityScanStatusUpdatedAt = null; + + @SerializedName("self_html_url") + private String selfHtmlUrl = null; + + @SerializedName("self_url") + private String selfUrl = null; + + @SerializedName("self_webapp_url") + private String selfWebappUrl = null; + + @SerializedName("signature_url") + private String signatureUrl = null; + + @SerializedName("size") + private java.math.BigInteger size = null; + + @SerializedName("slug") + private String slug = null; + + @SerializedName("slug_perm") + private String slugPerm = null; + + @SerializedName("spdx_license") + private String spdxLicense = null; + + @SerializedName("stage") + private java.math.BigInteger stage = null; + + @SerializedName("stage_str") + private String stageStr = null; + + @SerializedName("stage_updated_at") + private OffsetDateTime stageUpdatedAt = null; + + @SerializedName("status") + private java.math.BigInteger status = null; + + @SerializedName("status_reason") + private String statusReason = null; + + @SerializedName("status_str") + private String statusStr = null; + + @SerializedName("status_updated_at") + private OffsetDateTime statusUpdatedAt = null; + + @SerializedName("status_url") + private String statusUrl = null; + + @SerializedName("store_path") + private String storePath = null; + + @SerializedName("subtype") + private String subtype = null; + + @SerializedName("summary") + private String summary = null; + + @SerializedName("sync_finished_at") + private OffsetDateTime syncFinishedAt = null; + + @SerializedName("sync_progress") + private java.math.BigInteger syncProgress = null; + + @SerializedName("tags") + private Tags tags = null; + + @SerializedName("tags_automatic") + private Tags tagsAutomatic = null; + + @SerializedName("tags_immutable") + private Tags tagsImmutable = null; + + @SerializedName("tags_static") + private Map> tagsStatic = null; + + @SerializedName("type_display") + private String typeDisplay = null; + + @SerializedName("uploaded_at") + private OffsetDateTime uploadedAt = null; + + @SerializedName("uploader") + private String uploader = null; + + @SerializedName("uploader_url") + private String uploaderUrl = null; + + @SerializedName("version") + private String version = null; + + @SerializedName("version_orig") + private String versionOrig = null; + + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + + @SerializedName("vulnerability_scan_results_url") + private String vulnerabilityScanResultsUrl = null; + + /** + * Get architectures + * @return architectures + **/ + @Valid + @ApiModelProperty(value = "") + public List getArchitectures() { + return architectures; + } + + /** + * Get cdnUrl + * @return cdnUrl + **/ + @ApiModelProperty(value = "") + public String getCdnUrl() { + return cdnUrl; + } + + /** + * Get checksumMd5 + * @return checksumMd5 + **/ + @ApiModelProperty(value = "") + public String getChecksumMd5() { + return checksumMd5; + } + + /** + * Get checksumSha1 + * @return checksumSha1 + **/ + @ApiModelProperty(value = "") + public String getChecksumSha1() { + return checksumSha1; + } + + /** + * Get checksumSha256 + * @return checksumSha256 + **/ + @ApiModelProperty(value = "") + public String getChecksumSha256() { + return checksumSha256; + } + + /** + * Get checksumSha512 + * @return checksumSha512 + **/ + @ApiModelProperty(value = "") + public String getChecksumSha512() { + return checksumSha512; + } + + /** + * A checksum of all of the package's dependencies. + * @return dependenciesChecksumMd5 + **/ + @ApiModelProperty(value = "A checksum of all of the package's dependencies.") + public String getDependenciesChecksumMd5() { + return dependenciesChecksumMd5; + } + + /** + * Get dependenciesUrl + * @return dependenciesUrl + **/ + @ApiModelProperty(value = "") + public String getDependenciesUrl() { + return dependenciesUrl; + } + + /** + * A textual description of this package. + * @return description + **/ + @ApiModelProperty(value = "A textual description of this package.") + public String getDescription() { + return description; + } + + /** + * Get displayName + * @return displayName + **/ + @ApiModelProperty(value = "") + public String getDisplayName() { + return displayName; + } + + public PackageDetail distro(Distribution distro) { + this.distro = distro; + return this; + } + + /** + * Get distro + * @return distro + **/ + @Valid + @ApiModelProperty(value = "") + public Distribution getDistro() { + return distro; + } + + public void setDistro(Distribution distro) { + this.distro = distro; + } + + public PackageDetail distroVersion(DistributionVersion distroVersion) { + this.distroVersion = distroVersion; + return this; + } + + /** + * Get distroVersion + * @return distroVersion + **/ + @Valid + @ApiModelProperty(value = "") + public DistributionVersion getDistroVersion() { + return distroVersion; + } + + public void setDistroVersion(DistributionVersion distroVersion) { + this.distroVersion = distroVersion; + } + + /** + * Get downloads + * @return downloads + **/ + @ApiModelProperty(value = "") + public java.math.BigInteger getDownloads() { + return downloads; + } + + /** + * The epoch of the package version (if any). + * @return epoch + **/ + @ApiModelProperty(value = "The epoch of the package version (if any).") + public java.math.BigInteger getEpoch() { + return epoch; + } + + /** + * Get extension + * @return extension + **/ + @ApiModelProperty(value = "") + public String getExtension() { + return extension; + } + + /** + * Get filename + * @return filename + **/ + @Size(min=1) @ApiModelProperty(value = "") + public String getFilename() { + return filename; + } + + /** + * Full path to the file, including filename e.g. bin/utils/tool.tar.gz + * @return filepath + **/ + @Size(min=1) @ApiModelProperty(value = "Full path to the file, including filename e.g. bin/utils/tool.tar.gz") + public String getFilepath() { + return filepath; + } + + /** + * Get files + * @return files + **/ + @Valid + @ApiModelProperty(value = "") + public List getFiles() { + return files; + } + + /** + * Get format + * @return format + **/ + @Size(min=1) @ApiModelProperty(value = "") + public String getFormat() { + return format; + } + + /** + * Get formatUrl + * @return formatUrl + **/ + @ApiModelProperty(value = "") + public String getFormatUrl() { + return formatUrl; + } + + /** + * Amount of storage that will be freed if this package is deleted + * @return freeableStorage + **/ + @ApiModelProperty(value = "Amount of storage that will be freed if this package is deleted") + public java.math.BigInteger getFreeableStorage() { + return freeableStorage; + } + + /** + * Get fullyQualifiedName + * @return fullyQualifiedName + **/ + @Size(min=1) @ApiModelProperty(value = "") + public String getFullyQualifiedName() { + return fullyQualifiedName; + } + + /** + * Whether the package has any dependencies (top-level or from its SBOM). + * @return hasDependencies + **/ + @ApiModelProperty(value = "Whether the package has any dependencies (top-level or from its SBOM).") + public Boolean isHasDependencies() { + return hasDependencies; + } + + /** + * Unique and permanent identifier for the package. + * @return identifierPerm + **/ + @Size(min=1) @ApiModelProperty(value = "Unique and permanent identifier for the package.") + public String getIdentifierPerm() { + return identifierPerm; + } + + /** + * Return a map of identifier field names and their values. + * @return identifiers + **/ + @ApiModelProperty(value = "Return a map of identifier field names and their values.") + public Map getIdentifiers() { + return identifiers; + } + + /** + * Get indexed + * @return indexed + **/ + @ApiModelProperty(value = "") + public Boolean isIndexed() { + return indexed; + } + + /** + * Get isCancellable + * @return isCancellable + **/ + @ApiModelProperty(value = "") + public Boolean isIsCancellable() { + return isCancellable; + } + + /** + * Get isCopyable + * @return isCopyable + **/ + @ApiModelProperty(value = "") + public Boolean isIsCopyable() { + return isCopyable; + } + + /** + * Get isDeleteable + * @return isDeleteable + **/ + @ApiModelProperty(value = "") + public Boolean isIsDeleteable() { + return isDeleteable; + } + + /** + * Get isDownloadable + * @return isDownloadable + **/ + @ApiModelProperty(value = "") + public Boolean isIsDownloadable() { + return isDownloadable; + } + + /** + * Get isHidden + * @return isHidden + **/ + @ApiModelProperty(value = "") + public Boolean isIsHidden() { + return isHidden; + } + + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + + /** + * Get isMoveable + * @return isMoveable + **/ + @ApiModelProperty(value = "") + public Boolean isIsMoveable() { + return isMoveable; + } + + /** + * Get isQuarantinable + * @return isQuarantinable + **/ + @ApiModelProperty(value = "") + public Boolean isIsQuarantinable() { + return isQuarantinable; + } + + /** + * Get isQuarantined + * @return isQuarantined + **/ + @ApiModelProperty(value = "") + public Boolean isIsQuarantined() { + return isQuarantined; + } + + /** + * Get isResyncable + * @return isResyncable + **/ + @ApiModelProperty(value = "") + public Boolean isIsResyncable() { + return isResyncable; + } + + /** + * Get isSecurityScannable + * @return isSecurityScannable + **/ + @ApiModelProperty(value = "") + public Boolean isIsSecurityScannable() { + return isSecurityScannable; + } + + /** + * Get isSyncAwaiting + * @return isSyncAwaiting + **/ + @ApiModelProperty(value = "") + public Boolean isIsSyncAwaiting() { + return isSyncAwaiting; + } + + /** + * Get isSyncCompleted + * @return isSyncCompleted + **/ + @ApiModelProperty(value = "") + public Boolean isIsSyncCompleted() { + return isSyncCompleted; + } + + /** + * Get isSyncFailed + * @return isSyncFailed + **/ + @ApiModelProperty(value = "") + public Boolean isIsSyncFailed() { + return isSyncFailed; + } + + /** + * Get isSyncInFlight + * @return isSyncInFlight + **/ + @ApiModelProperty(value = "") + public Boolean isIsSyncInFlight() { + return isSyncInFlight; + } + + /** + * Get isSyncInProgress + * @return isSyncInProgress + **/ + @ApiModelProperty(value = "") + public Boolean isIsSyncInProgress() { + return isSyncInProgress; + } + + /** + * The license of this package. + * @return license + **/ + @ApiModelProperty(value = "The license of this package.") + public String getLicense() { + return license; + } + + /** + * The name of this package. + * @return name + **/ + @ApiModelProperty(value = "The name of this package.") + public String getName() { + return name; + } + + /** + * Get namespace + * @return namespace + **/ + @Size(min=1) @ApiModelProperty(value = "") + public String getNamespace() { + return namespace; + } + + /** + * Get namespaceUrl + * @return namespaceUrl + **/ + @ApiModelProperty(value = "") + public String getNamespaceUrl() { + return namespaceUrl; + } + + /** + * Get numFiles + * @return numFiles + **/ + @ApiModelProperty(value = "") + public java.math.BigInteger getNumFiles() { + return numFiles; + } + + /** + * Get originRepository + * @return originRepository + **/ + @Size(min=1) @ApiModelProperty(value = "") + public String getOriginRepository() { + return originRepository; + } + + /** + * Get originRepositoryUrl + * @return originRepositoryUrl + **/ + @ApiModelProperty(value = "") + public String getOriginRepositoryUrl() { + return originRepositoryUrl; + } + + /** + * Whether the package's SPDX license is OSI-approved. + * @return osiApproved + **/ + @ApiModelProperty(value = "Whether the package's SPDX license is OSI-approved.") + public Boolean isOsiApproved() { + return osiApproved; + } + + /** + * The type of package contents. + * @return packageType + **/ + @ApiModelProperty(value = "The type of package contents.") + public java.math.BigInteger getPackageType() { + return packageType; + } + + /** + * Whether or not the package has violated any policy. + * @return policyViolated + **/ + @ApiModelProperty(value = "Whether or not the package has violated any policy.") + public Boolean isPolicyViolated() { + return policyViolated; + } + + /** + * The raw license string. + * @return rawLicense + **/ + @Size(min=1) @ApiModelProperty(value = "The raw license string.") + public String getRawLicense() { + return rawLicense; + } + + /** + * The release of the package version (if any). + * @return release + **/ + @ApiModelProperty(value = "The release of the package version (if any).") + public String getRelease() { + return release; + } + + /** + * Get repository + * @return repository + **/ + @Size(min=1) @ApiModelProperty(value = "") + public String getRepository() { + return repository; + } + + /** + * Get repositoryUrl + * @return repositoryUrl + **/ + @ApiModelProperty(value = "") + public String getRepositoryUrl() { + return repositoryUrl; + } + + /** + * The datetime the security scanning was completed. + * @return securityScanCompletedAt + **/ + @Valid + @ApiModelProperty(value = "The datetime the security scanning was completed.") + public OffsetDateTime getSecurityScanCompletedAt() { + return securityScanCompletedAt; + } + + /** + * The datetime the security scanning was started. + * @return securityScanStartedAt + **/ + @Valid + @ApiModelProperty(value = "The datetime the security scanning was started.") + public OffsetDateTime getSecurityScanStartedAt() { + return securityScanStartedAt; + } + + /** + * Get securityScanStatus + * @return securityScanStatus + **/ + @ApiModelProperty(value = "") + public SecurityScanStatusEnum getSecurityScanStatus() { + return securityScanStatus; + } + + /** + * The datetime the security scanning status was updated. + * @return securityScanStatusUpdatedAt + **/ + @Valid + @ApiModelProperty(value = "The datetime the security scanning status was updated.") + public OffsetDateTime getSecurityScanStatusUpdatedAt() { + return securityScanStatusUpdatedAt; + } + + /** + * Get selfHtmlUrl + * @return selfHtmlUrl + **/ + @Size(min=1) @ApiModelProperty(value = "") + public String getSelfHtmlUrl() { + return selfHtmlUrl; + } + + /** + * Get selfUrl + * @return selfUrl + **/ + @ApiModelProperty(value = "") + public String getSelfUrl() { + return selfUrl; + } + + /** + * Get selfWebappUrl + * @return selfWebappUrl + **/ + @Size(min=1) @ApiModelProperty(value = "") + public String getSelfWebappUrl() { + return selfWebappUrl; + } + + /** + * Get signatureUrl + * @return signatureUrl + **/ + @ApiModelProperty(value = "") + public String getSignatureUrl() { + return signatureUrl; + } + + /** + * The calculated size of the package. + * @return size + **/ + @ApiModelProperty(value = "The calculated size of the package.") + public java.math.BigInteger getSize() { + return size; + } + + /** + * The public unique identifier for the package. + * @return slug + **/ + @Pattern(regexp="^[-a-zA-Z0-9_]+$") @Size(min=1) @ApiModelProperty(value = "The public unique identifier for the package.") + public String getSlug() { + return slug; + } + + /** + * Get slugPerm + * @return slugPerm + **/ + @Pattern(regexp="^[-a-zA-Z0-9_]+$") @Size(min=1) @ApiModelProperty(value = "") + public String getSlugPerm() { + return slugPerm; + } + + /** + * The SPDX license identifier for this package. + * @return spdxLicense + **/ + @Size(min=1) @ApiModelProperty(value = "The SPDX license identifier for this package.") + public String getSpdxLicense() { + return spdxLicense; + } + + /** + * The synchronisation (in progress) stage of the package. + * @return stage + **/ + @ApiModelProperty(value = "The synchronisation (in progress) stage of the package.") + public java.math.BigInteger getStage() { + return stage; + } + + /** + * Get stageStr + * @return stageStr + **/ + @ApiModelProperty(value = "") + public String getStageStr() { + return stageStr; + } + + /** + * The datetime the package stage was updated at. + * @return stageUpdatedAt + **/ + @Valid + @ApiModelProperty(value = "The datetime the package stage was updated at.") + public OffsetDateTime getStageUpdatedAt() { + return stageUpdatedAt; + } + + /** + * The synchronisation status of the package. + * @return status + **/ + @ApiModelProperty(value = "The synchronisation status of the package.") + public java.math.BigInteger getStatus() { + return status; + } + + /** + * A textual description for the synchronous status reason (if any + * @return statusReason + **/ + @ApiModelProperty(value = "A textual description for the synchronous status reason (if any") + public String getStatusReason() { + return statusReason; + } + + /** + * Get statusStr + * @return statusStr + **/ + @ApiModelProperty(value = "") + public String getStatusStr() { + return statusStr; + } + + /** + * The datetime the package status was updated at. + * @return statusUpdatedAt + **/ + @Valid + @ApiModelProperty(value = "The datetime the package status was updated at.") + public OffsetDateTime getStatusUpdatedAt() { + return statusUpdatedAt; + } + + /** + * Get statusUrl + * @return statusUrl + **/ + @ApiModelProperty(value = "") + public String getStatusUrl() { + return statusUrl; + } + + /** + * Absolute store path for the package, including store hash and name. + * @return storePath + **/ + @Size(min=1) @ApiModelProperty(value = "Absolute store path for the package, including store hash and name.") + public String getStorePath() { + return storePath; + } + + /** + * Get subtype + * @return subtype + **/ + @ApiModelProperty(value = "") + public String getSubtype() { + return subtype; + } + + /** + * A one-liner synopsis of this package. + * @return summary + **/ + @ApiModelProperty(value = "A one-liner synopsis of this package.") + public String getSummary() { + return summary; + } + + /** + * The datetime the package sync was finished at. + * @return syncFinishedAt + **/ + @Valid + @ApiModelProperty(value = "The datetime the package sync was finished at.") + public OffsetDateTime getSyncFinishedAt() { + return syncFinishedAt; + } + + /** + * Synchronisation progress (from 0-100) + * @return syncProgress + **/ + @ApiModelProperty(value = "Synchronisation progress (from 0-100)") + public java.math.BigInteger getSyncProgress() { + return syncProgress; + } + + public PackageDetail tags(Tags tags) { + this.tags = tags; + return this; + } + + /** + * Get tags + * @return tags + **/ + @Valid + @ApiModelProperty(value = "") + public Tags getTags() { + return tags; + } + + public void setTags(Tags tags) { + this.tags = tags; + } + + public PackageDetail tagsAutomatic(Tags tagsAutomatic) { + this.tagsAutomatic = tagsAutomatic; + return this; + } + + /** + * Get tagsAutomatic + * @return tagsAutomatic + **/ + @Valid + @ApiModelProperty(value = "") + public Tags getTagsAutomatic() { + return tagsAutomatic; + } + + public void setTagsAutomatic(Tags tagsAutomatic) { + this.tagsAutomatic = tagsAutomatic; + } + + public PackageDetail tagsImmutable(Tags tagsImmutable) { + this.tagsImmutable = tagsImmutable; + return this; + } + + /** + * Get tagsImmutable + * @return tagsImmutable + **/ + @Valid + @ApiModelProperty(value = "") + public Tags getTagsImmutable() { + return tagsImmutable; + } + + public void setTagsImmutable(Tags tagsImmutable) { + this.tagsImmutable = tagsImmutable; + } + + /** + * 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. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "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.") + public Map> getTagsStatic() { + return tagsStatic; + } + + /** + * Get typeDisplay + * @return typeDisplay + **/ + @ApiModelProperty(value = "") + public String getTypeDisplay() { + return typeDisplay; + } + + /** + * The date this package was uploaded. + * @return uploadedAt + **/ + @Valid + @ApiModelProperty(value = "The date this package was uploaded.") + public OffsetDateTime getUploadedAt() { + return uploadedAt; + } + + /** + * Get uploader + * @return uploader + **/ + @Size(min=1) @ApiModelProperty(value = "") + public String getUploader() { + return uploader; + } + + /** + * Get uploaderUrl + * @return uploaderUrl + **/ + @ApiModelProperty(value = "") + public String getUploaderUrl() { + return uploaderUrl; + } + + /** + * The raw version for this package. + * @return version + **/ + @ApiModelProperty(value = "The raw version for this package.") + public String getVersion() { + return version; + } + + /** + * Get versionOrig + * @return versionOrig + **/ + @ApiModelProperty(value = "") + public String getVersionOrig() { + return versionOrig; + } + + public PackageDetail vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + + /** + * Get vulnerabilityScanResultsUrl + * @return vulnerabilityScanResultsUrl + **/ + @ApiModelProperty(value = "") + public String getVulnerabilityScanResultsUrl() { + return vulnerabilityScanResultsUrl; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PackageDetail packageDetail = (PackageDetail) o; + return Objects.equals(this.architectures, packageDetail.architectures) && + Objects.equals(this.cdnUrl, packageDetail.cdnUrl) && + Objects.equals(this.checksumMd5, packageDetail.checksumMd5) && + Objects.equals(this.checksumSha1, packageDetail.checksumSha1) && + Objects.equals(this.checksumSha256, packageDetail.checksumSha256) && + Objects.equals(this.checksumSha512, packageDetail.checksumSha512) && + Objects.equals(this.dependenciesChecksumMd5, packageDetail.dependenciesChecksumMd5) && + Objects.equals(this.dependenciesUrl, packageDetail.dependenciesUrl) && + Objects.equals(this.description, packageDetail.description) && + Objects.equals(this.displayName, packageDetail.displayName) && + Objects.equals(this.distro, packageDetail.distro) && + Objects.equals(this.distroVersion, packageDetail.distroVersion) && + Objects.equals(this.downloads, packageDetail.downloads) && + Objects.equals(this.epoch, packageDetail.epoch) && + Objects.equals(this.extension, packageDetail.extension) && + Objects.equals(this.filename, packageDetail.filename) && + Objects.equals(this.filepath, packageDetail.filepath) && + Objects.equals(this.files, packageDetail.files) && + Objects.equals(this.format, packageDetail.format) && + Objects.equals(this.formatUrl, packageDetail.formatUrl) && + Objects.equals(this.freeableStorage, packageDetail.freeableStorage) && + Objects.equals(this.fullyQualifiedName, packageDetail.fullyQualifiedName) && + Objects.equals(this.hasDependencies, packageDetail.hasDependencies) && + Objects.equals(this.identifierPerm, packageDetail.identifierPerm) && + Objects.equals(this.identifiers, packageDetail.identifiers) && + Objects.equals(this.indexed, packageDetail.indexed) && + Objects.equals(this.isCancellable, packageDetail.isCancellable) && + Objects.equals(this.isCopyable, packageDetail.isCopyable) && + Objects.equals(this.isDeleteable, packageDetail.isDeleteable) && + Objects.equals(this.isDownloadable, packageDetail.isDownloadable) && + Objects.equals(this.isHidden, packageDetail.isHidden) && + Objects.equals(this.isMalwareDetected, packageDetail.isMalwareDetected) && + Objects.equals(this.isMoveable, packageDetail.isMoveable) && + Objects.equals(this.isQuarantinable, packageDetail.isQuarantinable) && + Objects.equals(this.isQuarantined, packageDetail.isQuarantined) && + Objects.equals(this.isResyncable, packageDetail.isResyncable) && + Objects.equals(this.isSecurityScannable, packageDetail.isSecurityScannable) && + Objects.equals(this.isSyncAwaiting, packageDetail.isSyncAwaiting) && + Objects.equals(this.isSyncCompleted, packageDetail.isSyncCompleted) && + Objects.equals(this.isSyncFailed, packageDetail.isSyncFailed) && + Objects.equals(this.isSyncInFlight, packageDetail.isSyncInFlight) && + Objects.equals(this.isSyncInProgress, packageDetail.isSyncInProgress) && + Objects.equals(this.license, packageDetail.license) && + Objects.equals(this.name, packageDetail.name) && + Objects.equals(this.namespace, packageDetail.namespace) && + Objects.equals(this.namespaceUrl, packageDetail.namespaceUrl) && + Objects.equals(this.numFiles, packageDetail.numFiles) && + Objects.equals(this.originRepository, packageDetail.originRepository) && + Objects.equals(this.originRepositoryUrl, packageDetail.originRepositoryUrl) && + Objects.equals(this.osiApproved, packageDetail.osiApproved) && + Objects.equals(this.packageType, packageDetail.packageType) && + Objects.equals(this.policyViolated, packageDetail.policyViolated) && + Objects.equals(this.rawLicense, packageDetail.rawLicense) && + Objects.equals(this.release, packageDetail.release) && + Objects.equals(this.repository, packageDetail.repository) && + Objects.equals(this.repositoryUrl, packageDetail.repositoryUrl) && + Objects.equals(this.securityScanCompletedAt, packageDetail.securityScanCompletedAt) && + Objects.equals(this.securityScanStartedAt, packageDetail.securityScanStartedAt) && + Objects.equals(this.securityScanStatus, packageDetail.securityScanStatus) && + Objects.equals(this.securityScanStatusUpdatedAt, packageDetail.securityScanStatusUpdatedAt) && + Objects.equals(this.selfHtmlUrl, packageDetail.selfHtmlUrl) && + Objects.equals(this.selfUrl, packageDetail.selfUrl) && + Objects.equals(this.selfWebappUrl, packageDetail.selfWebappUrl) && + Objects.equals(this.signatureUrl, packageDetail.signatureUrl) && + Objects.equals(this.size, packageDetail.size) && + Objects.equals(this.slug, packageDetail.slug) && + Objects.equals(this.slugPerm, packageDetail.slugPerm) && + Objects.equals(this.spdxLicense, packageDetail.spdxLicense) && + Objects.equals(this.stage, packageDetail.stage) && + Objects.equals(this.stageStr, packageDetail.stageStr) && + Objects.equals(this.stageUpdatedAt, packageDetail.stageUpdatedAt) && + Objects.equals(this.status, packageDetail.status) && + Objects.equals(this.statusReason, packageDetail.statusReason) && + Objects.equals(this.statusStr, packageDetail.statusStr) && + Objects.equals(this.statusUpdatedAt, packageDetail.statusUpdatedAt) && + Objects.equals(this.statusUrl, packageDetail.statusUrl) && + Objects.equals(this.storePath, packageDetail.storePath) && + Objects.equals(this.subtype, packageDetail.subtype) && + Objects.equals(this.summary, packageDetail.summary) && + Objects.equals(this.syncFinishedAt, packageDetail.syncFinishedAt) && + Objects.equals(this.syncProgress, packageDetail.syncProgress) && + Objects.equals(this.tags, packageDetail.tags) && + Objects.equals(this.tagsAutomatic, packageDetail.tagsAutomatic) && + Objects.equals(this.tagsImmutable, packageDetail.tagsImmutable) && + Objects.equals(this.tagsStatic, packageDetail.tagsStatic) && + Objects.equals(this.typeDisplay, packageDetail.typeDisplay) && + Objects.equals(this.uploadedAt, packageDetail.uploadedAt) && + Objects.equals(this.uploader, packageDetail.uploader) && + Objects.equals(this.uploaderUrl, packageDetail.uploaderUrl) && + Objects.equals(this.version, packageDetail.version) && + Objects.equals(this.versionOrig, packageDetail.versionOrig) && + Objects.equals(this.vulnerabilityCounts, packageDetail.vulnerabilityCounts) && + Objects.equals(this.vulnerabilityScanResultsUrl, packageDetail.vulnerabilityScanResultsUrl); + } + + @Override + public int hashCode() { + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, filepath, files, format, formatUrl, freeableStorage, fullyQualifiedName, hasDependencies, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMalwareDetected, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, storePath, subtype, summary, syncFinishedAt, syncProgress, tags, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PackageDetail {\n"); + + sb.append(" architectures: ").append(toIndentedString(architectures)).append("\n"); + sb.append(" cdnUrl: ").append(toIndentedString(cdnUrl)).append("\n"); + sb.append(" checksumMd5: ").append(toIndentedString(checksumMd5)).append("\n"); + sb.append(" checksumSha1: ").append(toIndentedString(checksumSha1)).append("\n"); + sb.append(" checksumSha256: ").append(toIndentedString(checksumSha256)).append("\n"); + sb.append(" checksumSha512: ").append(toIndentedString(checksumSha512)).append("\n"); + sb.append(" dependenciesChecksumMd5: ").append(toIndentedString(dependenciesChecksumMd5)).append("\n"); + sb.append(" dependenciesUrl: ").append(toIndentedString(dependenciesUrl)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" distro: ").append(toIndentedString(distro)).append("\n"); + sb.append(" distroVersion: ").append(toIndentedString(distroVersion)).append("\n"); + sb.append(" downloads: ").append(toIndentedString(downloads)).append("\n"); + sb.append(" epoch: ").append(toIndentedString(epoch)).append("\n"); + sb.append(" extension: ").append(toIndentedString(extension)).append("\n"); + sb.append(" filename: ").append(toIndentedString(filename)).append("\n"); + sb.append(" filepath: ").append(toIndentedString(filepath)).append("\n"); + sb.append(" files: ").append(toIndentedString(files)).append("\n"); + sb.append(" format: ").append(toIndentedString(format)).append("\n"); + sb.append(" formatUrl: ").append(toIndentedString(formatUrl)).append("\n"); + sb.append(" freeableStorage: ").append(toIndentedString(freeableStorage)).append("\n"); + sb.append(" fullyQualifiedName: ").append(toIndentedString(fullyQualifiedName)).append("\n"); + sb.append(" hasDependencies: ").append(toIndentedString(hasDependencies)).append("\n"); + sb.append(" identifierPerm: ").append(toIndentedString(identifierPerm)).append("\n"); + sb.append(" identifiers: ").append(toIndentedString(identifiers)).append("\n"); + sb.append(" indexed: ").append(toIndentedString(indexed)).append("\n"); + sb.append(" isCancellable: ").append(toIndentedString(isCancellable)).append("\n"); + sb.append(" isCopyable: ").append(toIndentedString(isCopyable)).append("\n"); + sb.append(" isDeleteable: ").append(toIndentedString(isDeleteable)).append("\n"); + sb.append(" isDownloadable: ").append(toIndentedString(isDownloadable)).append("\n"); + sb.append(" isHidden: ").append(toIndentedString(isHidden)).append("\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); + sb.append(" isMoveable: ").append(toIndentedString(isMoveable)).append("\n"); + sb.append(" isQuarantinable: ").append(toIndentedString(isQuarantinable)).append("\n"); + sb.append(" isQuarantined: ").append(toIndentedString(isQuarantined)).append("\n"); + sb.append(" isResyncable: ").append(toIndentedString(isResyncable)).append("\n"); + sb.append(" isSecurityScannable: ").append(toIndentedString(isSecurityScannable)).append("\n"); + sb.append(" isSyncAwaiting: ").append(toIndentedString(isSyncAwaiting)).append("\n"); + sb.append(" isSyncCompleted: ").append(toIndentedString(isSyncCompleted)).append("\n"); + sb.append(" isSyncFailed: ").append(toIndentedString(isSyncFailed)).append("\n"); + sb.append(" isSyncInFlight: ").append(toIndentedString(isSyncInFlight)).append("\n"); + sb.append(" isSyncInProgress: ").append(toIndentedString(isSyncInProgress)).append("\n"); + sb.append(" license: ").append(toIndentedString(license)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); + sb.append(" namespaceUrl: ").append(toIndentedString(namespaceUrl)).append("\n"); + sb.append(" numFiles: ").append(toIndentedString(numFiles)).append("\n"); + sb.append(" originRepository: ").append(toIndentedString(originRepository)).append("\n"); + sb.append(" originRepositoryUrl: ").append(toIndentedString(originRepositoryUrl)).append("\n"); + sb.append(" osiApproved: ").append(toIndentedString(osiApproved)).append("\n"); + sb.append(" packageType: ").append(toIndentedString(packageType)).append("\n"); + sb.append(" policyViolated: ").append(toIndentedString(policyViolated)).append("\n"); + sb.append(" rawLicense: ").append(toIndentedString(rawLicense)).append("\n"); + sb.append(" release: ").append(toIndentedString(release)).append("\n"); + sb.append(" repository: ").append(toIndentedString(repository)).append("\n"); + sb.append(" repositoryUrl: ").append(toIndentedString(repositoryUrl)).append("\n"); + sb.append(" securityScanCompletedAt: ").append(toIndentedString(securityScanCompletedAt)).append("\n"); + sb.append(" securityScanStartedAt: ").append(toIndentedString(securityScanStartedAt)).append("\n"); + sb.append(" securityScanStatus: ").append(toIndentedString(securityScanStatus)).append("\n"); + sb.append(" securityScanStatusUpdatedAt: ").append(toIndentedString(securityScanStatusUpdatedAt)).append("\n"); + sb.append(" selfHtmlUrl: ").append(toIndentedString(selfHtmlUrl)).append("\n"); + sb.append(" selfUrl: ").append(toIndentedString(selfUrl)).append("\n"); + sb.append(" selfWebappUrl: ").append(toIndentedString(selfWebappUrl)).append("\n"); + sb.append(" signatureUrl: ").append(toIndentedString(signatureUrl)).append("\n"); + sb.append(" size: ").append(toIndentedString(size)).append("\n"); + sb.append(" slug: ").append(toIndentedString(slug)).append("\n"); + sb.append(" slugPerm: ").append(toIndentedString(slugPerm)).append("\n"); + sb.append(" spdxLicense: ").append(toIndentedString(spdxLicense)).append("\n"); + sb.append(" stage: ").append(toIndentedString(stage)).append("\n"); + sb.append(" stageStr: ").append(toIndentedString(stageStr)).append("\n"); + sb.append(" stageUpdatedAt: ").append(toIndentedString(stageUpdatedAt)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" statusReason: ").append(toIndentedString(statusReason)).append("\n"); + sb.append(" statusStr: ").append(toIndentedString(statusStr)).append("\n"); + sb.append(" statusUpdatedAt: ").append(toIndentedString(statusUpdatedAt)).append("\n"); + sb.append(" statusUrl: ").append(toIndentedString(statusUrl)).append("\n"); + sb.append(" storePath: ").append(toIndentedString(storePath)).append("\n"); + sb.append(" subtype: ").append(toIndentedString(subtype)).append("\n"); + sb.append(" summary: ").append(toIndentedString(summary)).append("\n"); + sb.append(" syncFinishedAt: ").append(toIndentedString(syncFinishedAt)).append("\n"); + sb.append(" syncProgress: ").append(toIndentedString(syncProgress)).append("\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); + sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); + sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); + sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); + sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); + sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); + sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); + sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageFileUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageFileUploadRequest.java index 5ddfd0b3..af5cd483 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageFileUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageFileUploadRequest.java @@ -109,7 +109,7 @@ public PackageFileUploadRequest filename(String filename) { * @return filename **/ @NotNull - @Size(min=1) @ApiModelProperty(required = true, value = "Filename for the package file upload.") + @Size(min=1,max=255) @ApiModelProperty(required = true, value = "Filename for the package file upload.") public String getFilename() { return filename; } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageLicense.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageLicense.java index b5d1e2ac..fcfdf5f0 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageLicense.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageLicense.java @@ -20,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -34,6 +35,9 @@ public class PackageLicense implements Serializable { private static final long serialVersionUID = 1L; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("license_notes") private String licenseNotes = null; @@ -95,6 +99,18 @@ public LicenseOverrideEnum read(final JsonReader jsonReader) throws IOException @SerializedName("spdx_license") private String spdxLicense = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + public PackageLicense licenseNotes(String licenseNotes) { this.licenseNotes = licenseNotes; return this; @@ -168,6 +184,25 @@ public void setSpdxLicense(String spdxLicense) { this.spdxLicense = spdxLicense; } + public PackageLicense vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + @Override public boolean equals(java.lang.Object o) { @@ -178,15 +213,17 @@ public boolean equals(java.lang.Object o) { return false; } PackageLicense packageLicense = (PackageLicense) o; - return Objects.equals(this.licenseNotes, packageLicense.licenseNotes) && + return Objects.equals(this.isMalwareDetected, packageLicense.isMalwareDetected) && + Objects.equals(this.licenseNotes, packageLicense.licenseNotes) && Objects.equals(this.licenseOverride, packageLicense.licenseOverride) && Objects.equals(this.licenseUrl, packageLicense.licenseUrl) && - Objects.equals(this.spdxLicense, packageLicense.spdxLicense); + Objects.equals(this.spdxLicense, packageLicense.spdxLicense) && + Objects.equals(this.vulnerabilityCounts, packageLicense.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(licenseNotes, licenseOverride, licenseUrl, spdxLicense); + return Objects.hash(isMalwareDetected, licenseNotes, licenseOverride, licenseUrl, spdxLicense, vulnerabilityCounts); } @@ -195,10 +232,12 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PackageLicense {\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" licenseNotes: ").append(toIndentedString(licenseNotes)).append("\n"); sb.append(" licenseOverride: ").append(toIndentedString(licenseOverride)).append("\n"); sb.append(" licenseUrl: ").append(toIndentedString(licenseUrl)).append("\n"); sb.append(" spdxLicense: ").append(toIndentedString(spdxLicense)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageLicenseRequestPatch.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageLicenseRequestPatch.java index 3cedd640..1b91bd8d 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageLicenseRequestPatch.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageLicenseRequestPatch.java @@ -20,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -82,6 +83,9 @@ public ActionEnum read(final JsonReader jsonReader) throws IOException { @SerializedName("action") private ActionEnum action = ActionEnum.UPDATE; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("license_notes") private String licenseNotes = null; @@ -143,6 +147,9 @@ public LicenseOverrideEnum read(final JsonReader jsonReader) throws IOException @SerializedName("spdx_license") private String spdxLicense = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + public PackageLicenseRequestPatch action(ActionEnum action) { this.action = action; return this; @@ -161,6 +168,15 @@ public void setAction(ActionEnum action) { this.action = action; } + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + public PackageLicenseRequestPatch licenseNotes(String licenseNotes) { this.licenseNotes = licenseNotes; return this; @@ -224,7 +240,8 @@ public PackageLicenseRequestPatch spdxLicense(String spdxLicense) { * Get spdxLicense * @return spdxLicense **/ - @Size(min=1,max=255) @ApiModelProperty(value = "") + @NotNull + @Size(min=1,max=255) @ApiModelProperty(required = true, value = "") public String getSpdxLicense() { return spdxLicense; } @@ -233,6 +250,25 @@ public void setSpdxLicense(String spdxLicense) { this.spdxLicense = spdxLicense; } + public PackageLicenseRequestPatch vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + @Override public boolean equals(java.lang.Object o) { @@ -244,15 +280,17 @@ public boolean equals(java.lang.Object o) { } PackageLicenseRequestPatch packageLicenseRequestPatch = (PackageLicenseRequestPatch) o; return Objects.equals(this.action, packageLicenseRequestPatch.action) && + Objects.equals(this.isMalwareDetected, packageLicenseRequestPatch.isMalwareDetected) && Objects.equals(this.licenseNotes, packageLicenseRequestPatch.licenseNotes) && Objects.equals(this.licenseOverride, packageLicenseRequestPatch.licenseOverride) && Objects.equals(this.licenseUrl, packageLicenseRequestPatch.licenseUrl) && - Objects.equals(this.spdxLicense, packageLicenseRequestPatch.spdxLicense); + Objects.equals(this.spdxLicense, packageLicenseRequestPatch.spdxLicense) && + Objects.equals(this.vulnerabilityCounts, packageLicenseRequestPatch.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(action, licenseNotes, licenseOverride, licenseUrl, spdxLicense); + return Objects.hash(action, isMalwareDetected, licenseNotes, licenseOverride, licenseUrl, spdxLicense, vulnerabilityCounts); } @@ -262,10 +300,12 @@ public String toString() { sb.append("class PackageLicenseRequestPatch {\n"); sb.append(" action: ").append(toIndentedString(action)).append("\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" licenseNotes: ").append(toIndentedString(licenseNotes)).append("\n"); sb.append(" licenseOverride: ").append(toIndentedString(licenseOverride)).append("\n"); sb.append(" licenseUrl: ").append(toIndentedString(licenseUrl)).append("\n"); sb.append(" spdxLicense: ").append(toIndentedString(spdxLicense)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageMove.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageMove.java index 4fda8546..b8f1c068 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageMove.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageMove.java @@ -25,6 +25,7 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -134,6 +135,9 @@ public class PackageMove implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -325,6 +329,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("status_url") private String statusUrl = null; + @SerializedName("store_path") + private String storePath = null; + @SerializedName("subtype") private String subtype = null; @@ -346,6 +353,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -364,6 +374,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -659,6 +672,15 @@ public Boolean isIsHidden() { return isHidden; } + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + /** * Get isMoveable * @return isMoveable @@ -1060,6 +1082,15 @@ public String getStatusUrl() { return statusUrl; } + /** + * Absolute store path for the package, including store hash and name. + * @return storePath + **/ + @Size(min=1) @ApiModelProperty(value = "Absolute store path for the package, including store hash and name.") + public String getStorePath() { + return storePath; + } + /** * Get subtype * @return subtype @@ -1154,6 +1185,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * 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. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "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.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1209,6 +1250,25 @@ public String getVersionOrig() { return versionOrig; } + public PackageMove vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1258,6 +1318,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, packageMove.isDeleteable) && Objects.equals(this.isDownloadable, packageMove.isDownloadable) && Objects.equals(this.isHidden, packageMove.isHidden) && + Objects.equals(this.isMalwareDetected, packageMove.isMalwareDetected) && Objects.equals(this.isMoveable, packageMove.isMoveable) && Objects.equals(this.isQuarantinable, packageMove.isQuarantinable) && Objects.equals(this.isQuarantined, packageMove.isQuarantined) && @@ -1302,6 +1363,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.statusStr, packageMove.statusStr) && Objects.equals(this.statusUpdatedAt, packageMove.statusUpdatedAt) && Objects.equals(this.statusUrl, packageMove.statusUrl) && + Objects.equals(this.storePath, packageMove.storePath) && Objects.equals(this.subtype, packageMove.subtype) && Objects.equals(this.summary, packageMove.summary) && Objects.equals(this.syncFinishedAt, packageMove.syncFinishedAt) && @@ -1309,18 +1371,20 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.tags, packageMove.tags) && Objects.equals(this.tagsAutomatic, packageMove.tagsAutomatic) && Objects.equals(this.tagsImmutable, packageMove.tagsImmutable) && + Objects.equals(this.tagsStatic, packageMove.tagsStatic) && Objects.equals(this.typeDisplay, packageMove.typeDisplay) && Objects.equals(this.uploadedAt, packageMove.uploadedAt) && Objects.equals(this.uploader, packageMove.uploader) && Objects.equals(this.uploaderUrl, packageMove.uploaderUrl) && Objects.equals(this.version, packageMove.version) && Objects.equals(this.versionOrig, packageMove.versionOrig) && + Objects.equals(this.vulnerabilityCounts, packageMove.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, packageMove.vulnerabilityScanResultsUrl); } @Override public int hashCode() { - return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, filepath, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tags, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, filepath, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMalwareDetected, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, storePath, subtype, summary, syncFinishedAt, syncProgress, tags, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1359,6 +1423,7 @@ public String toString() { sb.append(" isDeleteable: ").append(toIndentedString(isDeleteable)).append("\n"); sb.append(" isDownloadable: ").append(toIndentedString(isDownloadable)).append("\n"); sb.append(" isHidden: ").append(toIndentedString(isHidden)).append("\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" isMoveable: ").append(toIndentedString(isMoveable)).append("\n"); sb.append(" isQuarantinable: ").append(toIndentedString(isQuarantinable)).append("\n"); sb.append(" isQuarantined: ").append(toIndentedString(isQuarantined)).append("\n"); @@ -1403,6 +1468,7 @@ public String toString() { sb.append(" statusStr: ").append(toIndentedString(statusStr)).append("\n"); sb.append(" statusUpdatedAt: ").append(toIndentedString(statusUpdatedAt)).append("\n"); sb.append(" statusUrl: ").append(toIndentedString(statusUrl)).append("\n"); + sb.append(" storePath: ").append(toIndentedString(storePath)).append("\n"); sb.append(" subtype: ").append(toIndentedString(subtype)).append("\n"); sb.append(" summary: ").append(toIndentedString(summary)).append("\n"); sb.append(" syncFinishedAt: ").append(toIndentedString(syncFinishedAt)).append("\n"); @@ -1410,12 +1476,14 @@ public String toString() { sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageMoveRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageMoveRequest.java index 525d7c4f..1f811051 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageMoveRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageMoveRequest.java @@ -20,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -37,6 +38,12 @@ public class PackageMoveRequest implements Serializable { @SerializedName("destination") private String destination = null; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + public PackageMoveRequest destination(String destination) { this.destination = destination; return this; @@ -56,6 +63,34 @@ public void setDestination(String destination) { this.destination = destination; } + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + + public PackageMoveRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + @Override public boolean equals(java.lang.Object o) { @@ -66,12 +101,14 @@ public boolean equals(java.lang.Object o) { return false; } PackageMoveRequest packageMoveRequest = (PackageMoveRequest) o; - return Objects.equals(this.destination, packageMoveRequest.destination); + return Objects.equals(this.destination, packageMoveRequest.destination) && + Objects.equals(this.isMalwareDetected, packageMoveRequest.isMalwareDetected) && + Objects.equals(this.vulnerabilityCounts, packageMoveRequest.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(destination); + return Objects.hash(destination, isMalwareDetected, vulnerabilityCounts); } @@ -81,6 +118,8 @@ public String toString() { sb.append("class PackageMoveRequest {\n"); sb.append(" destination: ").append(toIndentedString(destination)).append("\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageQuarantine.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageQuarantine.java index b8aff8f1..cb7af64e 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageQuarantine.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageQuarantine.java @@ -25,6 +25,7 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -134,6 +135,9 @@ public class PackageQuarantine implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -322,6 +326,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("status_url") private String statusUrl = null; + @SerializedName("store_path") + private String storePath = null; + @SerializedName("subtype") private String subtype = null; @@ -343,6 +350,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -361,6 +371,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -656,6 +669,15 @@ public Boolean isIsHidden() { return isHidden; } + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + /** * Get isMoveable * @return isMoveable @@ -1048,6 +1070,15 @@ public String getStatusUrl() { return statusUrl; } + /** + * Absolute store path for the package, including store hash and name. + * @return storePath + **/ + @Size(min=1) @ApiModelProperty(value = "Absolute store path for the package, including store hash and name.") + public String getStorePath() { + return storePath; + } + /** * Get subtype * @return subtype @@ -1142,6 +1173,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * 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. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "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.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1197,6 +1238,25 @@ public String getVersionOrig() { return versionOrig; } + public PackageQuarantine vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1246,6 +1306,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, packageQuarantine.isDeleteable) && Objects.equals(this.isDownloadable, packageQuarantine.isDownloadable) && Objects.equals(this.isHidden, packageQuarantine.isHidden) && + Objects.equals(this.isMalwareDetected, packageQuarantine.isMalwareDetected) && Objects.equals(this.isMoveable, packageQuarantine.isMoveable) && Objects.equals(this.isQuarantinable, packageQuarantine.isQuarantinable) && Objects.equals(this.isQuarantined, packageQuarantine.isQuarantined) && @@ -1289,6 +1350,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.statusStr, packageQuarantine.statusStr) && Objects.equals(this.statusUpdatedAt, packageQuarantine.statusUpdatedAt) && Objects.equals(this.statusUrl, packageQuarantine.statusUrl) && + Objects.equals(this.storePath, packageQuarantine.storePath) && Objects.equals(this.subtype, packageQuarantine.subtype) && Objects.equals(this.summary, packageQuarantine.summary) && Objects.equals(this.syncFinishedAt, packageQuarantine.syncFinishedAt) && @@ -1296,18 +1358,20 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.tags, packageQuarantine.tags) && Objects.equals(this.tagsAutomatic, packageQuarantine.tagsAutomatic) && Objects.equals(this.tagsImmutable, packageQuarantine.tagsImmutable) && + Objects.equals(this.tagsStatic, packageQuarantine.tagsStatic) && Objects.equals(this.typeDisplay, packageQuarantine.typeDisplay) && Objects.equals(this.uploadedAt, packageQuarantine.uploadedAt) && Objects.equals(this.uploader, packageQuarantine.uploader) && Objects.equals(this.uploaderUrl, packageQuarantine.uploaderUrl) && Objects.equals(this.version, packageQuarantine.version) && Objects.equals(this.versionOrig, packageQuarantine.versionOrig) && + Objects.equals(this.vulnerabilityCounts, packageQuarantine.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, packageQuarantine.vulnerabilityScanResultsUrl); } @Override public int hashCode() { - return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, filepath, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tags, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, filepath, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMalwareDetected, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, storePath, subtype, summary, syncFinishedAt, syncProgress, tags, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1346,6 +1410,7 @@ public String toString() { sb.append(" isDeleteable: ").append(toIndentedString(isDeleteable)).append("\n"); sb.append(" isDownloadable: ").append(toIndentedString(isDownloadable)).append("\n"); sb.append(" isHidden: ").append(toIndentedString(isHidden)).append("\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" isMoveable: ").append(toIndentedString(isMoveable)).append("\n"); sb.append(" isQuarantinable: ").append(toIndentedString(isQuarantinable)).append("\n"); sb.append(" isQuarantined: ").append(toIndentedString(isQuarantined)).append("\n"); @@ -1389,6 +1454,7 @@ public String toString() { sb.append(" statusStr: ").append(toIndentedString(statusStr)).append("\n"); sb.append(" statusUpdatedAt: ").append(toIndentedString(statusUpdatedAt)).append("\n"); sb.append(" statusUrl: ").append(toIndentedString(statusUrl)).append("\n"); + sb.append(" storePath: ").append(toIndentedString(storePath)).append("\n"); sb.append(" subtype: ").append(toIndentedString(subtype)).append("\n"); sb.append(" summary: ").append(toIndentedString(summary)).append("\n"); sb.append(" syncFinishedAt: ").append(toIndentedString(syncFinishedAt)).append("\n"); @@ -1396,12 +1462,14 @@ public String toString() { sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageQuarantineRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageQuarantineRequest.java index 814cc42b..3684e8a0 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageQuarantineRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageQuarantineRequest.java @@ -20,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -34,12 +35,27 @@ public class PackageQuarantineRequest implements Serializable { private static final long serialVersionUID = 1L; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("release") private Boolean release = null; @SerializedName("restore") private Boolean restore = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + public PackageQuarantineRequest release(Boolean release) { this.release = release; return this; @@ -76,6 +92,25 @@ public void setRestore(Boolean restore) { this.restore = restore; } + public PackageQuarantineRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + @Override public boolean equals(java.lang.Object o) { @@ -86,13 +121,15 @@ public boolean equals(java.lang.Object o) { return false; } PackageQuarantineRequest packageQuarantineRequest = (PackageQuarantineRequest) o; - return Objects.equals(this.release, packageQuarantineRequest.release) && - Objects.equals(this.restore, packageQuarantineRequest.restore); + return Objects.equals(this.isMalwareDetected, packageQuarantineRequest.isMalwareDetected) && + Objects.equals(this.release, packageQuarantineRequest.release) && + Objects.equals(this.restore, packageQuarantineRequest.restore) && + Objects.equals(this.vulnerabilityCounts, packageQuarantineRequest.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(release, restore); + return Objects.hash(isMalwareDetected, release, restore, vulnerabilityCounts); } @@ -101,8 +138,10 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PackageQuarantineRequest {\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" release: ").append(toIndentedString(release)).append("\n"); sb.append(" restore: ").append(toIndentedString(restore)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageResync.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageResync.java index 6f953f7b..0cbb8b68 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageResync.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageResync.java @@ -25,6 +25,7 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -134,6 +135,9 @@ public class PackageResync implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -325,6 +329,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("status_url") private String statusUrl = null; + @SerializedName("store_path") + private String storePath = null; + @SerializedName("subtype") private String subtype = null; @@ -346,6 +353,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -364,6 +374,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -659,6 +672,15 @@ public Boolean isIsHidden() { return isHidden; } + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + /** * Get isMoveable * @return isMoveable @@ -1060,6 +1082,15 @@ public String getStatusUrl() { return statusUrl; } + /** + * Absolute store path for the package, including store hash and name. + * @return storePath + **/ + @Size(min=1) @ApiModelProperty(value = "Absolute store path for the package, including store hash and name.") + public String getStorePath() { + return storePath; + } + /** * Get subtype * @return subtype @@ -1154,6 +1185,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * 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. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "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.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1209,6 +1250,25 @@ public String getVersionOrig() { return versionOrig; } + public PackageResync vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1258,6 +1318,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, packageResync.isDeleteable) && Objects.equals(this.isDownloadable, packageResync.isDownloadable) && Objects.equals(this.isHidden, packageResync.isHidden) && + Objects.equals(this.isMalwareDetected, packageResync.isMalwareDetected) && Objects.equals(this.isMoveable, packageResync.isMoveable) && Objects.equals(this.isQuarantinable, packageResync.isQuarantinable) && Objects.equals(this.isQuarantined, packageResync.isQuarantined) && @@ -1302,6 +1363,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.statusStr, packageResync.statusStr) && Objects.equals(this.statusUpdatedAt, packageResync.statusUpdatedAt) && Objects.equals(this.statusUrl, packageResync.statusUrl) && + Objects.equals(this.storePath, packageResync.storePath) && Objects.equals(this.subtype, packageResync.subtype) && Objects.equals(this.summary, packageResync.summary) && Objects.equals(this.syncFinishedAt, packageResync.syncFinishedAt) && @@ -1309,18 +1371,20 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.tags, packageResync.tags) && Objects.equals(this.tagsAutomatic, packageResync.tagsAutomatic) && Objects.equals(this.tagsImmutable, packageResync.tagsImmutable) && + Objects.equals(this.tagsStatic, packageResync.tagsStatic) && Objects.equals(this.typeDisplay, packageResync.typeDisplay) && Objects.equals(this.uploadedAt, packageResync.uploadedAt) && Objects.equals(this.uploader, packageResync.uploader) && Objects.equals(this.uploaderUrl, packageResync.uploaderUrl) && Objects.equals(this.version, packageResync.version) && Objects.equals(this.versionOrig, packageResync.versionOrig) && + Objects.equals(this.vulnerabilityCounts, packageResync.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, packageResync.vulnerabilityScanResultsUrl); } @Override public int hashCode() { - return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, filepath, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tags, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, filepath, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMalwareDetected, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, storePath, subtype, summary, syncFinishedAt, syncProgress, tags, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1359,6 +1423,7 @@ public String toString() { sb.append(" isDeleteable: ").append(toIndentedString(isDeleteable)).append("\n"); sb.append(" isDownloadable: ").append(toIndentedString(isDownloadable)).append("\n"); sb.append(" isHidden: ").append(toIndentedString(isHidden)).append("\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" isMoveable: ").append(toIndentedString(isMoveable)).append("\n"); sb.append(" isQuarantinable: ").append(toIndentedString(isQuarantinable)).append("\n"); sb.append(" isQuarantined: ").append(toIndentedString(isQuarantined)).append("\n"); @@ -1403,6 +1468,7 @@ public String toString() { sb.append(" statusStr: ").append(toIndentedString(statusStr)).append("\n"); sb.append(" statusUpdatedAt: ").append(toIndentedString(statusUpdatedAt)).append("\n"); sb.append(" statusUrl: ").append(toIndentedString(statusUrl)).append("\n"); + sb.append(" storePath: ").append(toIndentedString(storePath)).append("\n"); sb.append(" subtype: ").append(toIndentedString(subtype)).append("\n"); sb.append(" summary: ").append(toIndentedString(summary)).append("\n"); sb.append(" syncFinishedAt: ").append(toIndentedString(syncFinishedAt)).append("\n"); @@ -1410,12 +1476,14 @@ public String toString() { sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageTag.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageTag.java index d452e170..749f963f 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageTag.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageTag.java @@ -25,6 +25,7 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -137,6 +138,9 @@ public class PackageTag implements Serializable { @SerializedName("is_immutable") private Boolean isImmutable = false; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -328,6 +332,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("status_url") private String statusUrl = null; + @SerializedName("store_path") + private String storePath = null; + @SerializedName("subtype") private String subtype = null; @@ -346,6 +353,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -364,6 +374,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -677,6 +690,15 @@ public void setIsImmutable(Boolean isImmutable) { this.isImmutable = isImmutable; } + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + /** * Get isMoveable * @return isMoveable @@ -1078,6 +1100,15 @@ public String getStatusUrl() { return statusUrl; } + /** + * Absolute store path for the package, including store hash and name. + * @return storePath + **/ + @Size(min=1) @ApiModelProperty(value = "Absolute store path for the package, including store hash and name.") + public String getStorePath() { + return storePath; + } + /** * Get subtype * @return subtype @@ -1153,6 +1184,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * 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. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "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.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1208,6 +1249,25 @@ public String getVersionOrig() { return versionOrig; } + public PackageTag vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1258,6 +1318,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDownloadable, packageTag.isDownloadable) && Objects.equals(this.isHidden, packageTag.isHidden) && Objects.equals(this.isImmutable, packageTag.isImmutable) && + Objects.equals(this.isMalwareDetected, packageTag.isMalwareDetected) && Objects.equals(this.isMoveable, packageTag.isMoveable) && Objects.equals(this.isQuarantinable, packageTag.isQuarantinable) && Objects.equals(this.isQuarantined, packageTag.isQuarantined) && @@ -1302,24 +1363,27 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.statusStr, packageTag.statusStr) && Objects.equals(this.statusUpdatedAt, packageTag.statusUpdatedAt) && Objects.equals(this.statusUrl, packageTag.statusUrl) && + Objects.equals(this.storePath, packageTag.storePath) && Objects.equals(this.subtype, packageTag.subtype) && Objects.equals(this.summary, packageTag.summary) && Objects.equals(this.syncFinishedAt, packageTag.syncFinishedAt) && Objects.equals(this.syncProgress, packageTag.syncProgress) && Objects.equals(this.tagsAutomatic, packageTag.tagsAutomatic) && Objects.equals(this.tagsImmutable, packageTag.tagsImmutable) && + Objects.equals(this.tagsStatic, packageTag.tagsStatic) && Objects.equals(this.typeDisplay, packageTag.typeDisplay) && Objects.equals(this.uploadedAt, packageTag.uploadedAt) && Objects.equals(this.uploader, packageTag.uploader) && Objects.equals(this.uploaderUrl, packageTag.uploaderUrl) && Objects.equals(this.version, packageTag.version) && Objects.equals(this.versionOrig, packageTag.versionOrig) && + Objects.equals(this.vulnerabilityCounts, packageTag.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, packageTag.vulnerabilityScanResultsUrl); } @Override public int hashCode() { - return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, filepath, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isImmutable, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, filepath, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isImmutable, isMalwareDetected, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1359,6 +1423,7 @@ public String toString() { sb.append(" isDownloadable: ").append(toIndentedString(isDownloadable)).append("\n"); sb.append(" isHidden: ").append(toIndentedString(isHidden)).append("\n"); sb.append(" isImmutable: ").append(toIndentedString(isImmutable)).append("\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" isMoveable: ").append(toIndentedString(isMoveable)).append("\n"); sb.append(" isQuarantinable: ").append(toIndentedString(isQuarantinable)).append("\n"); sb.append(" isQuarantined: ").append(toIndentedString(isQuarantined)).append("\n"); @@ -1403,18 +1468,21 @@ public String toString() { sb.append(" statusStr: ").append(toIndentedString(statusStr)).append("\n"); sb.append(" statusUpdatedAt: ").append(toIndentedString(statusUpdatedAt)).append("\n"); sb.append(" statusUrl: ").append(toIndentedString(statusUrl)).append("\n"); + sb.append(" storePath: ").append(toIndentedString(storePath)).append("\n"); sb.append(" subtype: ").append(toIndentedString(subtype)).append("\n"); sb.append(" summary: ").append(toIndentedString(summary)).append("\n"); sb.append(" syncFinishedAt: ").append(toIndentedString(syncFinishedAt)).append("\n"); sb.append(" syncProgress: ").append(toIndentedString(syncProgress)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageTagRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageTagRequest.java index 737a88bc..4d28f828 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageTagRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageTagRequest.java @@ -20,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -93,9 +94,15 @@ public ActionEnum read(final JsonReader jsonReader) throws IOException { @SerializedName("is_immutable") private Boolean isImmutable = false; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("tags") private List tags = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + public PackageTagRequest action(ActionEnum action) { this.action = action; return this; @@ -132,6 +139,15 @@ public void setIsImmutable(Boolean isImmutable) { this.isImmutable = isImmutable; } + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + public PackageTagRequest tags(List tags) { this.tags = tags; return this; @@ -158,6 +174,25 @@ public void setTags(List tags) { this.tags = tags; } + public PackageTagRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + @Override public boolean equals(java.lang.Object o) { @@ -170,12 +205,14 @@ public boolean equals(java.lang.Object o) { PackageTagRequest packageTagRequest = (PackageTagRequest) o; return Objects.equals(this.action, packageTagRequest.action) && Objects.equals(this.isImmutable, packageTagRequest.isImmutable) && - Objects.equals(this.tags, packageTagRequest.tags); + Objects.equals(this.isMalwareDetected, packageTagRequest.isMalwareDetected) && + Objects.equals(this.tags, packageTagRequest.tags) && + Objects.equals(this.vulnerabilityCounts, packageTagRequest.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(action, isImmutable, tags); + return Objects.hash(action, isImmutable, isMalwareDetected, tags, vulnerabilityCounts); } @@ -186,7 +223,9 @@ public String toString() { sb.append(" action: ").append(toIndentedString(action)).append("\n"); sb.append(" isImmutable: ").append(toIndentedString(isImmutable)).append("\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageVulnerability.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageVulnerability.java index caeac4f4..25f70408 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageVulnerability.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageVulnerability.java @@ -20,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -37,6 +38,9 @@ public class PackageVulnerability implements Serializable { @SerializedName("identifier") private String identifier = null; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("name") private String name = null; @@ -46,6 +50,9 @@ public class PackageVulnerability implements Serializable { @SerializedName("version") private String version = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + public PackageVulnerability identifier(String identifier) { this.identifier = identifier; return this; @@ -65,6 +72,15 @@ public void setIdentifier(String identifier) { this.identifier = identifier; } + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + /** * The name of this package. * @return name @@ -92,6 +108,25 @@ public String getVersion() { return version; } + public PackageVulnerability vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + @Override public boolean equals(java.lang.Object o) { @@ -103,14 +138,16 @@ public boolean equals(java.lang.Object o) { } PackageVulnerability packageVulnerability = (PackageVulnerability) o; return Objects.equals(this.identifier, packageVulnerability.identifier) && + Objects.equals(this.isMalwareDetected, packageVulnerability.isMalwareDetected) && Objects.equals(this.name, packageVulnerability.name) && Objects.equals(this.url, packageVulnerability.url) && - Objects.equals(this.version, packageVulnerability.version); + Objects.equals(this.version, packageVulnerability.version) && + Objects.equals(this.vulnerabilityCounts, packageVulnerability.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(identifier, name, url, version); + return Objects.hash(identifier, isMalwareDetected, name, url, version, vulnerabilityCounts); } @@ -120,9 +157,11 @@ public String toString() { sb.append("class PackageVulnerability {\n"); sb.append(" identifier: ").append(toIndentedString(identifier)).append("\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PythonPackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PythonPackageUpload.java index e6b53037..c022c173 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PythonPackageUpload.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PythonPackageUpload.java @@ -25,6 +25,7 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -131,6 +132,9 @@ public class PythonPackageUpload implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -322,6 +326,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("status_url") private String statusUrl = null; + @SerializedName("store_path") + private String storePath = null; + @SerializedName("subtype") private String subtype = null; @@ -340,6 +347,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -358,6 +368,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -644,6 +657,15 @@ public Boolean isIsHidden() { return isHidden; } + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + /** * Get isMoveable * @return isMoveable @@ -1045,6 +1067,15 @@ public String getStatusUrl() { return statusUrl; } + /** + * Absolute store path for the package, including store hash and name. + * @return storePath + **/ + @Size(min=1) @ApiModelProperty(value = "Absolute store path for the package, including store hash and name.") + public String getStorePath() { + return storePath; + } + /** * Get subtype * @return subtype @@ -1120,6 +1151,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * 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. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "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.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1175,6 +1216,25 @@ public String getVersionOrig() { return versionOrig; } + public PythonPackageUpload vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1223,6 +1283,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, pythonPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, pythonPackageUpload.isDownloadable) && Objects.equals(this.isHidden, pythonPackageUpload.isHidden) && + Objects.equals(this.isMalwareDetected, pythonPackageUpload.isMalwareDetected) && Objects.equals(this.isMoveable, pythonPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, pythonPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, pythonPackageUpload.isQuarantined) && @@ -1267,24 +1328,27 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.statusStr, pythonPackageUpload.statusStr) && Objects.equals(this.statusUpdatedAt, pythonPackageUpload.statusUpdatedAt) && Objects.equals(this.statusUrl, pythonPackageUpload.statusUrl) && + Objects.equals(this.storePath, pythonPackageUpload.storePath) && Objects.equals(this.subtype, pythonPackageUpload.subtype) && Objects.equals(this.summary, pythonPackageUpload.summary) && Objects.equals(this.syncFinishedAt, pythonPackageUpload.syncFinishedAt) && Objects.equals(this.syncProgress, pythonPackageUpload.syncProgress) && Objects.equals(this.tagsAutomatic, pythonPackageUpload.tagsAutomatic) && Objects.equals(this.tagsImmutable, pythonPackageUpload.tagsImmutable) && + Objects.equals(this.tagsStatic, pythonPackageUpload.tagsStatic) && Objects.equals(this.typeDisplay, pythonPackageUpload.typeDisplay) && Objects.equals(this.uploadedAt, pythonPackageUpload.uploadedAt) && Objects.equals(this.uploader, pythonPackageUpload.uploader) && Objects.equals(this.uploaderUrl, pythonPackageUpload.uploaderUrl) && Objects.equals(this.version, pythonPackageUpload.version) && Objects.equals(this.versionOrig, pythonPackageUpload.versionOrig) && + Objects.equals(this.vulnerabilityCounts, pythonPackageUpload.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, pythonPackageUpload.vulnerabilityScanResultsUrl); } @Override public int hashCode() { - return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMalwareDetected, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1322,6 +1386,7 @@ public String toString() { sb.append(" isDeleteable: ").append(toIndentedString(isDeleteable)).append("\n"); sb.append(" isDownloadable: ").append(toIndentedString(isDownloadable)).append("\n"); sb.append(" isHidden: ").append(toIndentedString(isHidden)).append("\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" isMoveable: ").append(toIndentedString(isMoveable)).append("\n"); sb.append(" isQuarantinable: ").append(toIndentedString(isQuarantinable)).append("\n"); sb.append(" isQuarantined: ").append(toIndentedString(isQuarantined)).append("\n"); @@ -1366,18 +1431,21 @@ public String toString() { sb.append(" statusStr: ").append(toIndentedString(statusStr)).append("\n"); sb.append(" statusUpdatedAt: ").append(toIndentedString(statusUpdatedAt)).append("\n"); sb.append(" statusUrl: ").append(toIndentedString(statusUrl)).append("\n"); + sb.append(" storePath: ").append(toIndentedString(storePath)).append("\n"); sb.append(" subtype: ").append(toIndentedString(subtype)).append("\n"); sb.append(" summary: ").append(toIndentedString(summary)).append("\n"); sb.append(" syncFinishedAt: ").append(toIndentedString(syncFinishedAt)).append("\n"); sb.append(" syncProgress: ").append(toIndentedString(syncProgress)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PythonPackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PythonPackageUploadRequest.java index 39c84e51..740ed53e 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PythonPackageUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PythonPackageUploadRequest.java @@ -20,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -34,6 +35,9 @@ public class PythonPackageUploadRequest implements Serializable { private static final long serialVersionUID = 1L; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("package_file") private String packageFile = null; @@ -43,6 +47,18 @@ public class PythonPackageUploadRequest implements Serializable { @SerializedName("tags") private String tags = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + public PythonPackageUploadRequest packageFile(String packageFile) { this.packageFile = packageFile; return this; @@ -98,6 +114,25 @@ public void setTags(String tags) { this.tags = tags; } + public PythonPackageUploadRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + @Override public boolean equals(java.lang.Object o) { @@ -108,14 +143,16 @@ public boolean equals(java.lang.Object o) { return false; } PythonPackageUploadRequest pythonPackageUploadRequest = (PythonPackageUploadRequest) o; - return Objects.equals(this.packageFile, pythonPackageUploadRequest.packageFile) && + return Objects.equals(this.isMalwareDetected, pythonPackageUploadRequest.isMalwareDetected) && + Objects.equals(this.packageFile, pythonPackageUploadRequest.packageFile) && Objects.equals(this.republish, pythonPackageUploadRequest.republish) && - Objects.equals(this.tags, pythonPackageUploadRequest.tags); + Objects.equals(this.tags, pythonPackageUploadRequest.tags) && + Objects.equals(this.vulnerabilityCounts, pythonPackageUploadRequest.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(packageFile, republish, tags); + return Objects.hash(isMalwareDetected, packageFile, republish, tags, vulnerabilityCounts); } @@ -124,9 +161,11 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PythonPackageUploadRequest {\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" packageFile: ").append(toIndentedString(packageFile)).append("\n"); sb.append(" republish: ").append(toIndentedString(republish)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/RawPackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/RawPackageUpload.java index 57e07e13..359250a2 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/RawPackageUpload.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/RawPackageUpload.java @@ -25,6 +25,7 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -131,6 +132,9 @@ public class RawPackageUpload implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -322,6 +326,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("status_url") private String statusUrl = null; + @SerializedName("store_path") + private String storePath = null; + @SerializedName("subtype") private String subtype = null; @@ -340,6 +347,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -358,6 +368,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -653,6 +666,15 @@ public Boolean isIsHidden() { return isHidden; } + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + /** * Get isMoveable * @return isMoveable @@ -1063,6 +1085,15 @@ public String getStatusUrl() { return statusUrl; } + /** + * Absolute store path for the package, including store hash and name. + * @return storePath + **/ + @Size(min=1) @ApiModelProperty(value = "Absolute store path for the package, including store hash and name.") + public String getStorePath() { + return storePath; + } + /** * Get subtype * @return subtype @@ -1147,6 +1178,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * 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. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "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.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1211,6 +1252,25 @@ public String getVersionOrig() { return versionOrig; } + public RawPackageUpload vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1259,6 +1319,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, rawPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, rawPackageUpload.isDownloadable) && Objects.equals(this.isHidden, rawPackageUpload.isHidden) && + Objects.equals(this.isMalwareDetected, rawPackageUpload.isMalwareDetected) && Objects.equals(this.isMoveable, rawPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, rawPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, rawPackageUpload.isQuarantined) && @@ -1303,24 +1364,27 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.statusStr, rawPackageUpload.statusStr) && Objects.equals(this.statusUpdatedAt, rawPackageUpload.statusUpdatedAt) && Objects.equals(this.statusUrl, rawPackageUpload.statusUrl) && + Objects.equals(this.storePath, rawPackageUpload.storePath) && Objects.equals(this.subtype, rawPackageUpload.subtype) && Objects.equals(this.summary, rawPackageUpload.summary) && Objects.equals(this.syncFinishedAt, rawPackageUpload.syncFinishedAt) && Objects.equals(this.syncProgress, rawPackageUpload.syncProgress) && Objects.equals(this.tagsAutomatic, rawPackageUpload.tagsAutomatic) && Objects.equals(this.tagsImmutable, rawPackageUpload.tagsImmutable) && + Objects.equals(this.tagsStatic, rawPackageUpload.tagsStatic) && Objects.equals(this.typeDisplay, rawPackageUpload.typeDisplay) && Objects.equals(this.uploadedAt, rawPackageUpload.uploadedAt) && Objects.equals(this.uploader, rawPackageUpload.uploader) && Objects.equals(this.uploaderUrl, rawPackageUpload.uploaderUrl) && Objects.equals(this.version, rawPackageUpload.version) && Objects.equals(this.versionOrig, rawPackageUpload.versionOrig) && + Objects.equals(this.vulnerabilityCounts, rawPackageUpload.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, rawPackageUpload.vulnerabilityScanResultsUrl); } @Override public int hashCode() { - return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMalwareDetected, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1358,6 +1422,7 @@ public String toString() { sb.append(" isDeleteable: ").append(toIndentedString(isDeleteable)).append("\n"); sb.append(" isDownloadable: ").append(toIndentedString(isDownloadable)).append("\n"); sb.append(" isHidden: ").append(toIndentedString(isHidden)).append("\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" isMoveable: ").append(toIndentedString(isMoveable)).append("\n"); sb.append(" isQuarantinable: ").append(toIndentedString(isQuarantinable)).append("\n"); sb.append(" isQuarantined: ").append(toIndentedString(isQuarantined)).append("\n"); @@ -1402,18 +1467,21 @@ public String toString() { sb.append(" statusStr: ").append(toIndentedString(statusStr)).append("\n"); sb.append(" statusUpdatedAt: ").append(toIndentedString(statusUpdatedAt)).append("\n"); sb.append(" statusUrl: ").append(toIndentedString(statusUrl)).append("\n"); + sb.append(" storePath: ").append(toIndentedString(storePath)).append("\n"); sb.append(" subtype: ").append(toIndentedString(subtype)).append("\n"); sb.append(" summary: ").append(toIndentedString(summary)).append("\n"); sb.append(" syncFinishedAt: ").append(toIndentedString(syncFinishedAt)).append("\n"); sb.append(" syncProgress: ").append(toIndentedString(syncProgress)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/RawPackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/RawPackageUploadRequest.java index 103741c1..b2450479 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/RawPackageUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/RawPackageUploadRequest.java @@ -20,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -40,6 +41,9 @@ public class RawPackageUploadRequest implements Serializable { @SerializedName("description") private String description = null; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("name") private String name = null; @@ -58,6 +62,9 @@ public class RawPackageUploadRequest implements Serializable { @SerializedName("version") private String version = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + public RawPackageUploadRequest contentType(String contentType) { this.contentType = contentType; return this; @@ -94,6 +101,15 @@ public void setDescription(String description) { this.description = description; } + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + public RawPackageUploadRequest name(String name) { this.name = name; return this; @@ -203,6 +219,25 @@ public void setVersion(String version) { this.version = version; } + public RawPackageUploadRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + @Override public boolean equals(java.lang.Object o) { @@ -215,17 +250,19 @@ public boolean equals(java.lang.Object o) { RawPackageUploadRequest rawPackageUploadRequest = (RawPackageUploadRequest) o; return Objects.equals(this.contentType, rawPackageUploadRequest.contentType) && Objects.equals(this.description, rawPackageUploadRequest.description) && + Objects.equals(this.isMalwareDetected, rawPackageUploadRequest.isMalwareDetected) && Objects.equals(this.name, rawPackageUploadRequest.name) && Objects.equals(this.packageFile, rawPackageUploadRequest.packageFile) && Objects.equals(this.republish, rawPackageUploadRequest.republish) && Objects.equals(this.summary, rawPackageUploadRequest.summary) && Objects.equals(this.tags, rawPackageUploadRequest.tags) && - Objects.equals(this.version, rawPackageUploadRequest.version); + Objects.equals(this.version, rawPackageUploadRequest.version) && + Objects.equals(this.vulnerabilityCounts, rawPackageUploadRequest.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(contentType, description, name, packageFile, republish, summary, tags, version); + return Objects.hash(contentType, description, isMalwareDetected, name, packageFile, republish, summary, tags, version, vulnerabilityCounts); } @@ -236,12 +273,14 @@ public String toString() { sb.append(" contentType: ").append(toIndentedString(contentType)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" packageFile: ").append(toIndentedString(packageFile)).append("\n"); sb.append(" republish: ").append(toIndentedString(republish)).append("\n"); sb.append(" summary: ").append(toIndentedString(summary)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/RecycleBinPackage.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/RecycleBinPackage.java index 2ad249c7..8f831e9a 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/RecycleBinPackage.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/RecycleBinPackage.java @@ -21,6 +21,7 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.cloudsmith.api.models.Tags; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -63,6 +64,9 @@ public class RecycleBinPackage implements Serializable { @SerializedName("is_deleteable") private Boolean isDeleteable = null; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("is_quarantined") private Boolean isQuarantined = null; @@ -170,6 +174,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version") private String version = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + /** * The name of the user who deleted the package. * @return actionBy @@ -242,6 +249,15 @@ public Boolean isIsDeleteable() { return isDeleteable; } + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + /** * Get isQuarantined * @return isQuarantined @@ -399,6 +415,25 @@ public String getVersion() { return version; } + public RecycleBinPackage vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + @Override public boolean equals(java.lang.Object o) { @@ -417,6 +452,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.identifiers, recycleBinPackage.identifiers) && Objects.equals(this.invokedRetentionRule, recycleBinPackage.invokedRetentionRule) && Objects.equals(this.isDeleteable, recycleBinPackage.isDeleteable) && + Objects.equals(this.isMalwareDetected, recycleBinPackage.isMalwareDetected) && Objects.equals(this.isQuarantined, recycleBinPackage.isQuarantined) && Objects.equals(this.isRestorable, recycleBinPackage.isRestorable) && Objects.equals(this.name, recycleBinPackage.name) && @@ -432,12 +468,13 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.typeDisplay, recycleBinPackage.typeDisplay) && Objects.equals(this.uploadedAt, recycleBinPackage.uploadedAt) && Objects.equals(this.uploader, recycleBinPackage.uploader) && - Objects.equals(this.version, recycleBinPackage.version); + Objects.equals(this.version, recycleBinPackage.version) && + Objects.equals(this.vulnerabilityCounts, recycleBinPackage.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(actionBy, downloads, filename, format, fullyQualifiedName, identifiers, invokedRetentionRule, isDeleteable, isQuarantined, isRestorable, name, policyViolated, repository, securityScanCompletedAt, securityScanStatus, size, slugPerm, status, statusUpdatedAt, tags, typeDisplay, uploadedAt, uploader, version); + return Objects.hash(actionBy, downloads, filename, format, fullyQualifiedName, identifiers, invokedRetentionRule, isDeleteable, isMalwareDetected, isQuarantined, isRestorable, name, policyViolated, repository, securityScanCompletedAt, securityScanStatus, size, slugPerm, status, statusUpdatedAt, tags, typeDisplay, uploadedAt, uploader, version, vulnerabilityCounts); } @@ -454,6 +491,7 @@ public String toString() { sb.append(" identifiers: ").append(toIndentedString(identifiers)).append("\n"); sb.append(" invokedRetentionRule: ").append(toIndentedString(invokedRetentionRule)).append("\n"); sb.append(" isDeleteable: ").append(toIndentedString(isDeleteable)).append("\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" isQuarantined: ").append(toIndentedString(isQuarantined)).append("\n"); sb.append(" isRestorable: ").append(toIndentedString(isRestorable)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); @@ -470,6 +508,7 @@ public String toString() { sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/RpmPackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/RpmPackageUpload.java index 8a899658..a2388ebd 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/RpmPackageUpload.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/RpmPackageUpload.java @@ -25,6 +25,7 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -131,6 +132,9 @@ public class RpmPackageUpload implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -322,6 +326,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("status_url") private String statusUrl = null; + @SerializedName("store_path") + private String storePath = null; + @SerializedName("subtype") private String subtype = null; @@ -340,6 +347,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -358,6 +368,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -644,6 +657,15 @@ public Boolean isIsHidden() { return isHidden; } + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + /** * Get isMoveable * @return isMoveable @@ -1045,6 +1067,15 @@ public String getStatusUrl() { return statusUrl; } + /** + * Absolute store path for the package, including store hash and name. + * @return storePath + **/ + @Size(min=1) @ApiModelProperty(value = "Absolute store path for the package, including store hash and name.") + public String getStorePath() { + return storePath; + } + /** * Get subtype * @return subtype @@ -1120,6 +1151,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * 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. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "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.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1175,6 +1216,25 @@ public String getVersionOrig() { return versionOrig; } + public RpmPackageUpload vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1223,6 +1283,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, rpmPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, rpmPackageUpload.isDownloadable) && Objects.equals(this.isHidden, rpmPackageUpload.isHidden) && + Objects.equals(this.isMalwareDetected, rpmPackageUpload.isMalwareDetected) && Objects.equals(this.isMoveable, rpmPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, rpmPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, rpmPackageUpload.isQuarantined) && @@ -1267,24 +1328,27 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.statusStr, rpmPackageUpload.statusStr) && Objects.equals(this.statusUpdatedAt, rpmPackageUpload.statusUpdatedAt) && Objects.equals(this.statusUrl, rpmPackageUpload.statusUrl) && + Objects.equals(this.storePath, rpmPackageUpload.storePath) && Objects.equals(this.subtype, rpmPackageUpload.subtype) && Objects.equals(this.summary, rpmPackageUpload.summary) && Objects.equals(this.syncFinishedAt, rpmPackageUpload.syncFinishedAt) && Objects.equals(this.syncProgress, rpmPackageUpload.syncProgress) && Objects.equals(this.tagsAutomatic, rpmPackageUpload.tagsAutomatic) && Objects.equals(this.tagsImmutable, rpmPackageUpload.tagsImmutable) && + Objects.equals(this.tagsStatic, rpmPackageUpload.tagsStatic) && Objects.equals(this.typeDisplay, rpmPackageUpload.typeDisplay) && Objects.equals(this.uploadedAt, rpmPackageUpload.uploadedAt) && Objects.equals(this.uploader, rpmPackageUpload.uploader) && Objects.equals(this.uploaderUrl, rpmPackageUpload.uploaderUrl) && Objects.equals(this.version, rpmPackageUpload.version) && Objects.equals(this.versionOrig, rpmPackageUpload.versionOrig) && + Objects.equals(this.vulnerabilityCounts, rpmPackageUpload.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, rpmPackageUpload.vulnerabilityScanResultsUrl); } @Override public int hashCode() { - return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMalwareDetected, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1322,6 +1386,7 @@ public String toString() { sb.append(" isDeleteable: ").append(toIndentedString(isDeleteable)).append("\n"); sb.append(" isDownloadable: ").append(toIndentedString(isDownloadable)).append("\n"); sb.append(" isHidden: ").append(toIndentedString(isHidden)).append("\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" isMoveable: ").append(toIndentedString(isMoveable)).append("\n"); sb.append(" isQuarantinable: ").append(toIndentedString(isQuarantinable)).append("\n"); sb.append(" isQuarantined: ").append(toIndentedString(isQuarantined)).append("\n"); @@ -1366,18 +1431,21 @@ public String toString() { sb.append(" statusStr: ").append(toIndentedString(statusStr)).append("\n"); sb.append(" statusUpdatedAt: ").append(toIndentedString(statusUpdatedAt)).append("\n"); sb.append(" statusUrl: ").append(toIndentedString(statusUrl)).append("\n"); + sb.append(" storePath: ").append(toIndentedString(storePath)).append("\n"); sb.append(" subtype: ").append(toIndentedString(subtype)).append("\n"); sb.append(" summary: ").append(toIndentedString(summary)).append("\n"); sb.append(" syncFinishedAt: ").append(toIndentedString(syncFinishedAt)).append("\n"); sb.append(" syncProgress: ").append(toIndentedString(syncProgress)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/RpmPackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/RpmPackageUploadRequest.java index 639da48a..1e3d09a6 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/RpmPackageUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/RpmPackageUploadRequest.java @@ -20,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -37,6 +38,9 @@ public class RpmPackageUploadRequest implements Serializable { @SerializedName("distribution") private String distribution = null; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("package_file") private String packageFile = null; @@ -46,6 +50,9 @@ public class RpmPackageUploadRequest implements Serializable { @SerializedName("tags") private String tags = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + public RpmPackageUploadRequest distribution(String distribution) { this.distribution = distribution; return this; @@ -65,6 +72,15 @@ public void setDistribution(String distribution) { this.distribution = distribution; } + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + public RpmPackageUploadRequest packageFile(String packageFile) { this.packageFile = packageFile; return this; @@ -120,6 +136,25 @@ public void setTags(String tags) { this.tags = tags; } + public RpmPackageUploadRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + @Override public boolean equals(java.lang.Object o) { @@ -131,14 +166,16 @@ public boolean equals(java.lang.Object o) { } RpmPackageUploadRequest rpmPackageUploadRequest = (RpmPackageUploadRequest) o; return Objects.equals(this.distribution, rpmPackageUploadRequest.distribution) && + Objects.equals(this.isMalwareDetected, rpmPackageUploadRequest.isMalwareDetected) && Objects.equals(this.packageFile, rpmPackageUploadRequest.packageFile) && Objects.equals(this.republish, rpmPackageUploadRequest.republish) && - Objects.equals(this.tags, rpmPackageUploadRequest.tags); + Objects.equals(this.tags, rpmPackageUploadRequest.tags) && + Objects.equals(this.vulnerabilityCounts, rpmPackageUploadRequest.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(distribution, packageFile, republish, tags); + return Objects.hash(distribution, isMalwareDetected, packageFile, republish, tags, vulnerabilityCounts); } @@ -148,9 +185,11 @@ public String toString() { sb.append("class RpmPackageUploadRequest {\n"); sb.append(" distribution: ").append(toIndentedString(distribution)).append("\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" packageFile: ").append(toIndentedString(packageFile)).append("\n"); sb.append(" republish: ").append(toIndentedString(republish)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/RubyPackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/RubyPackageUpload.java index 819b0e3a..f9d66345 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/RubyPackageUpload.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/RubyPackageUpload.java @@ -25,6 +25,7 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -131,6 +132,9 @@ public class RubyPackageUpload implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -322,6 +326,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("status_url") private String statusUrl = null; + @SerializedName("store_path") + private String storePath = null; + @SerializedName("subtype") private String subtype = null; @@ -340,6 +347,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -358,6 +368,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -644,6 +657,15 @@ public Boolean isIsHidden() { return isHidden; } + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + /** * Get isMoveable * @return isMoveable @@ -1045,6 +1067,15 @@ public String getStatusUrl() { return statusUrl; } + /** + * Absolute store path for the package, including store hash and name. + * @return storePath + **/ + @Size(min=1) @ApiModelProperty(value = "Absolute store path for the package, including store hash and name.") + public String getStorePath() { + return storePath; + } + /** * Get subtype * @return subtype @@ -1120,6 +1151,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * 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. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "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.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1175,6 +1216,25 @@ public String getVersionOrig() { return versionOrig; } + public RubyPackageUpload vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1223,6 +1283,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, rubyPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, rubyPackageUpload.isDownloadable) && Objects.equals(this.isHidden, rubyPackageUpload.isHidden) && + Objects.equals(this.isMalwareDetected, rubyPackageUpload.isMalwareDetected) && Objects.equals(this.isMoveable, rubyPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, rubyPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, rubyPackageUpload.isQuarantined) && @@ -1267,24 +1328,27 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.statusStr, rubyPackageUpload.statusStr) && Objects.equals(this.statusUpdatedAt, rubyPackageUpload.statusUpdatedAt) && Objects.equals(this.statusUrl, rubyPackageUpload.statusUrl) && + Objects.equals(this.storePath, rubyPackageUpload.storePath) && Objects.equals(this.subtype, rubyPackageUpload.subtype) && Objects.equals(this.summary, rubyPackageUpload.summary) && Objects.equals(this.syncFinishedAt, rubyPackageUpload.syncFinishedAt) && Objects.equals(this.syncProgress, rubyPackageUpload.syncProgress) && Objects.equals(this.tagsAutomatic, rubyPackageUpload.tagsAutomatic) && Objects.equals(this.tagsImmutable, rubyPackageUpload.tagsImmutable) && + Objects.equals(this.tagsStatic, rubyPackageUpload.tagsStatic) && Objects.equals(this.typeDisplay, rubyPackageUpload.typeDisplay) && Objects.equals(this.uploadedAt, rubyPackageUpload.uploadedAt) && Objects.equals(this.uploader, rubyPackageUpload.uploader) && Objects.equals(this.uploaderUrl, rubyPackageUpload.uploaderUrl) && Objects.equals(this.version, rubyPackageUpload.version) && Objects.equals(this.versionOrig, rubyPackageUpload.versionOrig) && + Objects.equals(this.vulnerabilityCounts, rubyPackageUpload.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, rubyPackageUpload.vulnerabilityScanResultsUrl); } @Override public int hashCode() { - return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMalwareDetected, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1322,6 +1386,7 @@ public String toString() { sb.append(" isDeleteable: ").append(toIndentedString(isDeleteable)).append("\n"); sb.append(" isDownloadable: ").append(toIndentedString(isDownloadable)).append("\n"); sb.append(" isHidden: ").append(toIndentedString(isHidden)).append("\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" isMoveable: ").append(toIndentedString(isMoveable)).append("\n"); sb.append(" isQuarantinable: ").append(toIndentedString(isQuarantinable)).append("\n"); sb.append(" isQuarantined: ").append(toIndentedString(isQuarantined)).append("\n"); @@ -1366,18 +1431,21 @@ public String toString() { sb.append(" statusStr: ").append(toIndentedString(statusStr)).append("\n"); sb.append(" statusUpdatedAt: ").append(toIndentedString(statusUpdatedAt)).append("\n"); sb.append(" statusUrl: ").append(toIndentedString(statusUrl)).append("\n"); + sb.append(" storePath: ").append(toIndentedString(storePath)).append("\n"); sb.append(" subtype: ").append(toIndentedString(subtype)).append("\n"); sb.append(" summary: ").append(toIndentedString(summary)).append("\n"); sb.append(" syncFinishedAt: ").append(toIndentedString(syncFinishedAt)).append("\n"); sb.append(" syncProgress: ").append(toIndentedString(syncProgress)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/RubyPackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/RubyPackageUploadRequest.java index 1c95923a..ee6631aa 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/RubyPackageUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/RubyPackageUploadRequest.java @@ -20,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -34,6 +35,9 @@ public class RubyPackageUploadRequest implements Serializable { private static final long serialVersionUID = 1L; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("package_file") private String packageFile = null; @@ -43,6 +47,18 @@ public class RubyPackageUploadRequest implements Serializable { @SerializedName("tags") private String tags = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + public RubyPackageUploadRequest packageFile(String packageFile) { this.packageFile = packageFile; return this; @@ -98,6 +114,25 @@ public void setTags(String tags) { this.tags = tags; } + public RubyPackageUploadRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + @Override public boolean equals(java.lang.Object o) { @@ -108,14 +143,16 @@ public boolean equals(java.lang.Object o) { return false; } RubyPackageUploadRequest rubyPackageUploadRequest = (RubyPackageUploadRequest) o; - return Objects.equals(this.packageFile, rubyPackageUploadRequest.packageFile) && + return Objects.equals(this.isMalwareDetected, rubyPackageUploadRequest.isMalwareDetected) && + Objects.equals(this.packageFile, rubyPackageUploadRequest.packageFile) && Objects.equals(this.republish, rubyPackageUploadRequest.republish) && - Objects.equals(this.tags, rubyPackageUploadRequest.tags); + Objects.equals(this.tags, rubyPackageUploadRequest.tags) && + Objects.equals(this.vulnerabilityCounts, rubyPackageUploadRequest.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(packageFile, republish, tags); + return Objects.hash(isMalwareDetected, packageFile, republish, tags, vulnerabilityCounts); } @@ -124,9 +161,11 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RubyPackageUploadRequest {\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" packageFile: ").append(toIndentedString(packageFile)).append("\n"); sb.append(" republish: ").append(toIndentedString(republish)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/SwiftPackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/SwiftPackageUpload.java index 9cc6553b..1b7c611e 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/SwiftPackageUpload.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/SwiftPackageUpload.java @@ -25,6 +25,7 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -137,6 +138,9 @@ public class SwiftPackageUpload implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -337,6 +341,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("status_url") private String statusUrl = null; + @SerializedName("store_path") + private String storePath = null; + @SerializedName("subtype") private String subtype = null; @@ -355,6 +362,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -373,6 +383,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -695,6 +708,15 @@ public Boolean isIsHidden() { return isHidden; } + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + /** * Get isMoveable * @return isMoveable @@ -1170,6 +1192,15 @@ public String getStatusUrl() { return statusUrl; } + /** + * Absolute store path for the package, including store hash and name. + * @return storePath + **/ + @Size(min=1) @ApiModelProperty(value = "Absolute store path for the package, including store hash and name.") + public String getStorePath() { + return storePath; + } + /** * Get subtype * @return subtype @@ -1245,6 +1276,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * 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. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "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.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1310,6 +1351,25 @@ public String getVersionOrig() { return versionOrig; } + public SwiftPackageUpload vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1360,6 +1420,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, swiftPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, swiftPackageUpload.isDownloadable) && Objects.equals(this.isHidden, swiftPackageUpload.isHidden) && + Objects.equals(this.isMalwareDetected, swiftPackageUpload.isMalwareDetected) && Objects.equals(this.isMoveable, swiftPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, swiftPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, swiftPackageUpload.isQuarantined) && @@ -1407,24 +1468,27 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.statusStr, swiftPackageUpload.statusStr) && Objects.equals(this.statusUpdatedAt, swiftPackageUpload.statusUpdatedAt) && Objects.equals(this.statusUrl, swiftPackageUpload.statusUrl) && + Objects.equals(this.storePath, swiftPackageUpload.storePath) && Objects.equals(this.subtype, swiftPackageUpload.subtype) && Objects.equals(this.summary, swiftPackageUpload.summary) && Objects.equals(this.syncFinishedAt, swiftPackageUpload.syncFinishedAt) && Objects.equals(this.syncProgress, swiftPackageUpload.syncProgress) && Objects.equals(this.tagsAutomatic, swiftPackageUpload.tagsAutomatic) && Objects.equals(this.tagsImmutable, swiftPackageUpload.tagsImmutable) && + Objects.equals(this.tagsStatic, swiftPackageUpload.tagsStatic) && Objects.equals(this.typeDisplay, swiftPackageUpload.typeDisplay) && Objects.equals(this.uploadedAt, swiftPackageUpload.uploadedAt) && Objects.equals(this.uploader, swiftPackageUpload.uploader) && Objects.equals(this.uploaderUrl, swiftPackageUpload.uploaderUrl) && Objects.equals(this.version, swiftPackageUpload.version) && Objects.equals(this.versionOrig, swiftPackageUpload.versionOrig) && + Objects.equals(this.vulnerabilityCounts, swiftPackageUpload.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, swiftPackageUpload.vulnerabilityScanResultsUrl); } @Override public int hashCode() { - return Objects.hash(architectures, authorName, authorOrg, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, licenseUrl, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, readmeUrl, release, repository, repositoryUrl, scope, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, authorName, authorOrg, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMalwareDetected, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, licenseUrl, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, readmeUrl, release, repository, repositoryUrl, scope, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1464,6 +1528,7 @@ public String toString() { sb.append(" isDeleteable: ").append(toIndentedString(isDeleteable)).append("\n"); sb.append(" isDownloadable: ").append(toIndentedString(isDownloadable)).append("\n"); sb.append(" isHidden: ").append(toIndentedString(isHidden)).append("\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" isMoveable: ").append(toIndentedString(isMoveable)).append("\n"); sb.append(" isQuarantinable: ").append(toIndentedString(isQuarantinable)).append("\n"); sb.append(" isQuarantined: ").append(toIndentedString(isQuarantined)).append("\n"); @@ -1511,18 +1576,21 @@ public String toString() { sb.append(" statusStr: ").append(toIndentedString(statusStr)).append("\n"); sb.append(" statusUpdatedAt: ").append(toIndentedString(statusUpdatedAt)).append("\n"); sb.append(" statusUrl: ").append(toIndentedString(statusUrl)).append("\n"); + sb.append(" storePath: ").append(toIndentedString(storePath)).append("\n"); sb.append(" subtype: ").append(toIndentedString(subtype)).append("\n"); sb.append(" summary: ").append(toIndentedString(summary)).append("\n"); sb.append(" syncFinishedAt: ").append(toIndentedString(syncFinishedAt)).append("\n"); sb.append(" syncProgress: ").append(toIndentedString(syncProgress)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/SwiftPackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/SwiftPackageUploadRequest.java index 46676d8e..2dc179f4 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/SwiftPackageUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/SwiftPackageUploadRequest.java @@ -20,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -40,6 +41,9 @@ public class SwiftPackageUploadRequest implements Serializable { @SerializedName("author_org") private String authorOrg = null; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("license_url") private String licenseUrl = null; @@ -67,6 +71,9 @@ public class SwiftPackageUploadRequest implements Serializable { @SerializedName("version") private String version = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + public SwiftPackageUploadRequest authorName(String authorName) { this.authorName = authorName; return this; @@ -103,6 +110,15 @@ public void setAuthorOrg(String authorOrg) { this.authorOrg = authorOrg; } + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + public SwiftPackageUploadRequest licenseUrl(String licenseUrl) { this.licenseUrl = licenseUrl; return this; @@ -269,6 +285,25 @@ public void setVersion(String version) { this.version = version; } + public SwiftPackageUploadRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + @Override public boolean equals(java.lang.Object o) { @@ -281,6 +316,7 @@ public boolean equals(java.lang.Object o) { SwiftPackageUploadRequest swiftPackageUploadRequest = (SwiftPackageUploadRequest) o; return Objects.equals(this.authorName, swiftPackageUploadRequest.authorName) && Objects.equals(this.authorOrg, swiftPackageUploadRequest.authorOrg) && + Objects.equals(this.isMalwareDetected, swiftPackageUploadRequest.isMalwareDetected) && Objects.equals(this.licenseUrl, swiftPackageUploadRequest.licenseUrl) && Objects.equals(this.name, swiftPackageUploadRequest.name) && Objects.equals(this.packageFile, swiftPackageUploadRequest.packageFile) && @@ -289,12 +325,13 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.republish, swiftPackageUploadRequest.republish) && Objects.equals(this.scope, swiftPackageUploadRequest.scope) && Objects.equals(this.tags, swiftPackageUploadRequest.tags) && - Objects.equals(this.version, swiftPackageUploadRequest.version); + Objects.equals(this.version, swiftPackageUploadRequest.version) && + Objects.equals(this.vulnerabilityCounts, swiftPackageUploadRequest.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(authorName, authorOrg, licenseUrl, name, packageFile, readmeUrl, repositoryUrl, republish, scope, tags, version); + return Objects.hash(authorName, authorOrg, isMalwareDetected, licenseUrl, name, packageFile, readmeUrl, repositoryUrl, republish, scope, tags, version, vulnerabilityCounts); } @@ -305,6 +342,7 @@ public String toString() { sb.append(" authorName: ").append(toIndentedString(authorName)).append("\n"); sb.append(" authorOrg: ").append(toIndentedString(authorOrg)).append("\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" licenseUrl: ").append(toIndentedString(licenseUrl)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" packageFile: ").append(toIndentedString(packageFile)).append("\n"); @@ -314,6 +352,7 @@ public String toString() { sb.append(" scope: ").append(toIndentedString(scope)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/TerraformPackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/TerraformPackageUpload.java index 6e58f3e0..d91a234b 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/TerraformPackageUpload.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/TerraformPackageUpload.java @@ -25,6 +25,7 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -131,6 +132,9 @@ public class TerraformPackageUpload implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -322,6 +326,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("status_url") private String statusUrl = null; + @SerializedName("store_path") + private String storePath = null; + @SerializedName("subtype") private String subtype = null; @@ -340,6 +347,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -358,6 +368,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -644,6 +657,15 @@ public Boolean isIsHidden() { return isHidden; } + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + /** * Get isMoveable * @return isMoveable @@ -1045,6 +1067,15 @@ public String getStatusUrl() { return statusUrl; } + /** + * Absolute store path for the package, including store hash and name. + * @return storePath + **/ + @Size(min=1) @ApiModelProperty(value = "Absolute store path for the package, including store hash and name.") + public String getStorePath() { + return storePath; + } + /** * Get subtype * @return subtype @@ -1120,6 +1151,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * 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. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "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.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1175,6 +1216,25 @@ public String getVersionOrig() { return versionOrig; } + public TerraformPackageUpload vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1223,6 +1283,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, terraformPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, terraformPackageUpload.isDownloadable) && Objects.equals(this.isHidden, terraformPackageUpload.isHidden) && + Objects.equals(this.isMalwareDetected, terraformPackageUpload.isMalwareDetected) && Objects.equals(this.isMoveable, terraformPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, terraformPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, terraformPackageUpload.isQuarantined) && @@ -1267,24 +1328,27 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.statusStr, terraformPackageUpload.statusStr) && Objects.equals(this.statusUpdatedAt, terraformPackageUpload.statusUpdatedAt) && Objects.equals(this.statusUrl, terraformPackageUpload.statusUrl) && + Objects.equals(this.storePath, terraformPackageUpload.storePath) && Objects.equals(this.subtype, terraformPackageUpload.subtype) && Objects.equals(this.summary, terraformPackageUpload.summary) && Objects.equals(this.syncFinishedAt, terraformPackageUpload.syncFinishedAt) && Objects.equals(this.syncProgress, terraformPackageUpload.syncProgress) && Objects.equals(this.tagsAutomatic, terraformPackageUpload.tagsAutomatic) && Objects.equals(this.tagsImmutable, terraformPackageUpload.tagsImmutable) && + Objects.equals(this.tagsStatic, terraformPackageUpload.tagsStatic) && Objects.equals(this.typeDisplay, terraformPackageUpload.typeDisplay) && Objects.equals(this.uploadedAt, terraformPackageUpload.uploadedAt) && Objects.equals(this.uploader, terraformPackageUpload.uploader) && Objects.equals(this.uploaderUrl, terraformPackageUpload.uploaderUrl) && Objects.equals(this.version, terraformPackageUpload.version) && Objects.equals(this.versionOrig, terraformPackageUpload.versionOrig) && + Objects.equals(this.vulnerabilityCounts, terraformPackageUpload.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, terraformPackageUpload.vulnerabilityScanResultsUrl); } @Override public int hashCode() { - return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMalwareDetected, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1322,6 +1386,7 @@ public String toString() { sb.append(" isDeleteable: ").append(toIndentedString(isDeleteable)).append("\n"); sb.append(" isDownloadable: ").append(toIndentedString(isDownloadable)).append("\n"); sb.append(" isHidden: ").append(toIndentedString(isHidden)).append("\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" isMoveable: ").append(toIndentedString(isMoveable)).append("\n"); sb.append(" isQuarantinable: ").append(toIndentedString(isQuarantinable)).append("\n"); sb.append(" isQuarantined: ").append(toIndentedString(isQuarantined)).append("\n"); @@ -1366,18 +1431,21 @@ public String toString() { sb.append(" statusStr: ").append(toIndentedString(statusStr)).append("\n"); sb.append(" statusUpdatedAt: ").append(toIndentedString(statusUpdatedAt)).append("\n"); sb.append(" statusUrl: ").append(toIndentedString(statusUrl)).append("\n"); + sb.append(" storePath: ").append(toIndentedString(storePath)).append("\n"); sb.append(" subtype: ").append(toIndentedString(subtype)).append("\n"); sb.append(" summary: ").append(toIndentedString(summary)).append("\n"); sb.append(" syncFinishedAt: ").append(toIndentedString(syncFinishedAt)).append("\n"); sb.append(" syncProgress: ").append(toIndentedString(syncProgress)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/TerraformPackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/TerraformPackageUploadRequest.java index 7ed9b67e..afa76aad 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/TerraformPackageUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/TerraformPackageUploadRequest.java @@ -20,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -34,6 +35,9 @@ public class TerraformPackageUploadRequest implements Serializable { private static final long serialVersionUID = 1L; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("package_file") private String packageFile = null; @@ -43,6 +47,18 @@ public class TerraformPackageUploadRequest implements Serializable { @SerializedName("tags") private String tags = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + public TerraformPackageUploadRequest packageFile(String packageFile) { this.packageFile = packageFile; return this; @@ -98,6 +114,25 @@ public void setTags(String tags) { this.tags = tags; } + public TerraformPackageUploadRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + @Override public boolean equals(java.lang.Object o) { @@ -108,14 +143,16 @@ public boolean equals(java.lang.Object o) { return false; } TerraformPackageUploadRequest terraformPackageUploadRequest = (TerraformPackageUploadRequest) o; - return Objects.equals(this.packageFile, terraformPackageUploadRequest.packageFile) && + return Objects.equals(this.isMalwareDetected, terraformPackageUploadRequest.isMalwareDetected) && + Objects.equals(this.packageFile, terraformPackageUploadRequest.packageFile) && Objects.equals(this.republish, terraformPackageUploadRequest.republish) && - Objects.equals(this.tags, terraformPackageUploadRequest.tags); + Objects.equals(this.tags, terraformPackageUploadRequest.tags) && + Objects.equals(this.vulnerabilityCounts, terraformPackageUploadRequest.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(packageFile, republish, tags); + return Objects.hash(isMalwareDetected, packageFile, republish, tags, vulnerabilityCounts); } @@ -124,9 +161,11 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TerraformPackageUploadRequest {\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" packageFile: ").append(toIndentedString(packageFile)).append("\n"); sb.append(" republish: ").append(toIndentedString(republish)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/VagrantPackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/VagrantPackageUpload.java index 3a502a99..ba74c67b 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/VagrantPackageUpload.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/VagrantPackageUpload.java @@ -25,6 +25,7 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -131,6 +132,9 @@ public class VagrantPackageUpload implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -325,6 +329,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("status_url") private String statusUrl = null; + @SerializedName("store_path") + private String storePath = null; + @SerializedName("subtype") private String subtype = null; @@ -343,6 +350,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -361,6 +371,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -647,6 +660,15 @@ public Boolean isIsHidden() { return isHidden; } + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + /** * Get isMoveable * @return isMoveable @@ -1077,6 +1099,15 @@ public String getStatusUrl() { return statusUrl; } + /** + * Absolute store path for the package, including store hash and name. + * @return storePath + **/ + @Size(min=1) @ApiModelProperty(value = "Absolute store path for the package, including store hash and name.") + public String getStorePath() { + return storePath; + } + /** * Get subtype * @return subtype @@ -1152,6 +1183,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * 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. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "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.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1217,6 +1258,25 @@ public String getVersionOrig() { return versionOrig; } + public VagrantPackageUpload vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1265,6 +1325,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, vagrantPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, vagrantPackageUpload.isDownloadable) && Objects.equals(this.isHidden, vagrantPackageUpload.isHidden) && + Objects.equals(this.isMalwareDetected, vagrantPackageUpload.isMalwareDetected) && Objects.equals(this.isMoveable, vagrantPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, vagrantPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, vagrantPackageUpload.isQuarantined) && @@ -1310,24 +1371,27 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.statusStr, vagrantPackageUpload.statusStr) && Objects.equals(this.statusUpdatedAt, vagrantPackageUpload.statusUpdatedAt) && Objects.equals(this.statusUrl, vagrantPackageUpload.statusUrl) && + Objects.equals(this.storePath, vagrantPackageUpload.storePath) && Objects.equals(this.subtype, vagrantPackageUpload.subtype) && Objects.equals(this.summary, vagrantPackageUpload.summary) && Objects.equals(this.syncFinishedAt, vagrantPackageUpload.syncFinishedAt) && Objects.equals(this.syncProgress, vagrantPackageUpload.syncProgress) && Objects.equals(this.tagsAutomatic, vagrantPackageUpload.tagsAutomatic) && Objects.equals(this.tagsImmutable, vagrantPackageUpload.tagsImmutable) && + Objects.equals(this.tagsStatic, vagrantPackageUpload.tagsStatic) && Objects.equals(this.typeDisplay, vagrantPackageUpload.typeDisplay) && Objects.equals(this.uploadedAt, vagrantPackageUpload.uploadedAt) && Objects.equals(this.uploader, vagrantPackageUpload.uploader) && Objects.equals(this.uploaderUrl, vagrantPackageUpload.uploaderUrl) && Objects.equals(this.version, vagrantPackageUpload.version) && Objects.equals(this.versionOrig, vagrantPackageUpload.versionOrig) && + Objects.equals(this.vulnerabilityCounts, vagrantPackageUpload.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, vagrantPackageUpload.vulnerabilityScanResultsUrl); } @Override public int hashCode() { - return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, provider, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMalwareDetected, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, provider, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1365,6 +1429,7 @@ public String toString() { sb.append(" isDeleteable: ").append(toIndentedString(isDeleteable)).append("\n"); sb.append(" isDownloadable: ").append(toIndentedString(isDownloadable)).append("\n"); sb.append(" isHidden: ").append(toIndentedString(isHidden)).append("\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" isMoveable: ").append(toIndentedString(isMoveable)).append("\n"); sb.append(" isQuarantinable: ").append(toIndentedString(isQuarantinable)).append("\n"); sb.append(" isQuarantined: ").append(toIndentedString(isQuarantined)).append("\n"); @@ -1410,18 +1475,21 @@ public String toString() { sb.append(" statusStr: ").append(toIndentedString(statusStr)).append("\n"); sb.append(" statusUpdatedAt: ").append(toIndentedString(statusUpdatedAt)).append("\n"); sb.append(" statusUrl: ").append(toIndentedString(statusUrl)).append("\n"); + sb.append(" storePath: ").append(toIndentedString(storePath)).append("\n"); sb.append(" subtype: ").append(toIndentedString(subtype)).append("\n"); sb.append(" summary: ").append(toIndentedString(summary)).append("\n"); sb.append(" syncFinishedAt: ").append(toIndentedString(syncFinishedAt)).append("\n"); sb.append(" syncProgress: ").append(toIndentedString(syncProgress)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/VagrantPackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/VagrantPackageUploadRequest.java index b8f85943..660dbbd7 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/VagrantPackageUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/VagrantPackageUploadRequest.java @@ -20,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -34,6 +35,9 @@ public class VagrantPackageUploadRequest implements Serializable { private static final long serialVersionUID = 1L; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("name") private String name = null; @@ -52,6 +56,18 @@ public class VagrantPackageUploadRequest implements Serializable { @SerializedName("version") private String version = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + public VagrantPackageUploadRequest name(String name) { this.name = name; return this; @@ -164,6 +180,25 @@ public void setVersion(String version) { this.version = version; } + public VagrantPackageUploadRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + @Override public boolean equals(java.lang.Object o) { @@ -174,17 +209,19 @@ public boolean equals(java.lang.Object o) { return false; } VagrantPackageUploadRequest vagrantPackageUploadRequest = (VagrantPackageUploadRequest) o; - return Objects.equals(this.name, vagrantPackageUploadRequest.name) && + return Objects.equals(this.isMalwareDetected, vagrantPackageUploadRequest.isMalwareDetected) && + Objects.equals(this.name, vagrantPackageUploadRequest.name) && Objects.equals(this.packageFile, vagrantPackageUploadRequest.packageFile) && Objects.equals(this.provider, vagrantPackageUploadRequest.provider) && Objects.equals(this.republish, vagrantPackageUploadRequest.republish) && Objects.equals(this.tags, vagrantPackageUploadRequest.tags) && - Objects.equals(this.version, vagrantPackageUploadRequest.version); + Objects.equals(this.version, vagrantPackageUploadRequest.version) && + Objects.equals(this.vulnerabilityCounts, vagrantPackageUploadRequest.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(name, packageFile, provider, republish, tags, version); + return Objects.hash(isMalwareDetected, name, packageFile, provider, republish, tags, version, vulnerabilityCounts); } @@ -193,12 +230,14 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class VagrantPackageUploadRequest {\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" packageFile: ").append(toIndentedString(packageFile)).append("\n"); sb.append(" provider: ").append(toIndentedString(provider)).append("\n"); sb.append(" republish: ").append(toIndentedString(republish)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/VsxPackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/VsxPackageUpload.java index b9b92d42..55963737 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/VsxPackageUpload.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/VsxPackageUpload.java @@ -25,6 +25,7 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -131,6 +132,9 @@ public class VsxPackageUpload implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -322,6 +326,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("status_url") private String statusUrl = null; + @SerializedName("store_path") + private String storePath = null; + @SerializedName("subtype") private String subtype = null; @@ -340,6 +347,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -358,6 +368,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -644,6 +657,15 @@ public Boolean isIsHidden() { return isHidden; } + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + /** * Get isMoveable * @return isMoveable @@ -1045,6 +1067,15 @@ public String getStatusUrl() { return statusUrl; } + /** + * Absolute store path for the package, including store hash and name. + * @return storePath + **/ + @Size(min=1) @ApiModelProperty(value = "Absolute store path for the package, including store hash and name.") + public String getStorePath() { + return storePath; + } + /** * Get subtype * @return subtype @@ -1120,6 +1151,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * 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. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "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.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1175,6 +1216,25 @@ public String getVersionOrig() { return versionOrig; } + public VsxPackageUpload vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1223,6 +1283,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, vsxPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, vsxPackageUpload.isDownloadable) && Objects.equals(this.isHidden, vsxPackageUpload.isHidden) && + Objects.equals(this.isMalwareDetected, vsxPackageUpload.isMalwareDetected) && Objects.equals(this.isMoveable, vsxPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, vsxPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, vsxPackageUpload.isQuarantined) && @@ -1267,24 +1328,27 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.statusStr, vsxPackageUpload.statusStr) && Objects.equals(this.statusUpdatedAt, vsxPackageUpload.statusUpdatedAt) && Objects.equals(this.statusUrl, vsxPackageUpload.statusUrl) && + Objects.equals(this.storePath, vsxPackageUpload.storePath) && Objects.equals(this.subtype, vsxPackageUpload.subtype) && Objects.equals(this.summary, vsxPackageUpload.summary) && Objects.equals(this.syncFinishedAt, vsxPackageUpload.syncFinishedAt) && Objects.equals(this.syncProgress, vsxPackageUpload.syncProgress) && Objects.equals(this.tagsAutomatic, vsxPackageUpload.tagsAutomatic) && Objects.equals(this.tagsImmutable, vsxPackageUpload.tagsImmutable) && + Objects.equals(this.tagsStatic, vsxPackageUpload.tagsStatic) && Objects.equals(this.typeDisplay, vsxPackageUpload.typeDisplay) && Objects.equals(this.uploadedAt, vsxPackageUpload.uploadedAt) && Objects.equals(this.uploader, vsxPackageUpload.uploader) && Objects.equals(this.uploaderUrl, vsxPackageUpload.uploaderUrl) && Objects.equals(this.version, vsxPackageUpload.version) && Objects.equals(this.versionOrig, vsxPackageUpload.versionOrig) && + Objects.equals(this.vulnerabilityCounts, vsxPackageUpload.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, vsxPackageUpload.vulnerabilityScanResultsUrl); } @Override public int hashCode() { - return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMalwareDetected, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1322,6 +1386,7 @@ public String toString() { sb.append(" isDeleteable: ").append(toIndentedString(isDeleteable)).append("\n"); sb.append(" isDownloadable: ").append(toIndentedString(isDownloadable)).append("\n"); sb.append(" isHidden: ").append(toIndentedString(isHidden)).append("\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" isMoveable: ").append(toIndentedString(isMoveable)).append("\n"); sb.append(" isQuarantinable: ").append(toIndentedString(isQuarantinable)).append("\n"); sb.append(" isQuarantined: ").append(toIndentedString(isQuarantined)).append("\n"); @@ -1366,18 +1431,21 @@ public String toString() { sb.append(" statusStr: ").append(toIndentedString(statusStr)).append("\n"); sb.append(" statusUpdatedAt: ").append(toIndentedString(statusUpdatedAt)).append("\n"); sb.append(" statusUrl: ").append(toIndentedString(statusUrl)).append("\n"); + sb.append(" storePath: ").append(toIndentedString(storePath)).append("\n"); sb.append(" subtype: ").append(toIndentedString(subtype)).append("\n"); sb.append(" summary: ").append(toIndentedString(summary)).append("\n"); sb.append(" syncFinishedAt: ").append(toIndentedString(syncFinishedAt)).append("\n"); sb.append(" syncProgress: ").append(toIndentedString(syncProgress)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/VsxPackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/VsxPackageUploadRequest.java index d67c0379..73930700 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/VsxPackageUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/VsxPackageUploadRequest.java @@ -20,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -34,6 +35,9 @@ public class VsxPackageUploadRequest implements Serializable { private static final long serialVersionUID = 1L; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("package_file") private String packageFile = null; @@ -43,6 +47,18 @@ public class VsxPackageUploadRequest implements Serializable { @SerializedName("tags") private String tags = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + + /** + * Whether the package has been detected as containing malware. Requires Ultra plan. + * @return isMalwareDetected + **/ + @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") + public Boolean isIsMalwareDetected() { + return isMalwareDetected; + } + public VsxPackageUploadRequest packageFile(String packageFile) { this.packageFile = packageFile; return this; @@ -98,6 +114,25 @@ public void setTags(String tags) { this.tags = tags; } + public VsxPackageUploadRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + return this; + } + + /** + * Get vulnerabilityCounts + * @return vulnerabilityCounts + **/ + @Valid + @ApiModelProperty(value = "") + public WebOSVSeverityCounts getVulnerabilityCounts() { + return vulnerabilityCounts; + } + + public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { + this.vulnerabilityCounts = vulnerabilityCounts; + } + @Override public boolean equals(java.lang.Object o) { @@ -108,14 +143,16 @@ public boolean equals(java.lang.Object o) { return false; } VsxPackageUploadRequest vsxPackageUploadRequest = (VsxPackageUploadRequest) o; - return Objects.equals(this.packageFile, vsxPackageUploadRequest.packageFile) && + return Objects.equals(this.isMalwareDetected, vsxPackageUploadRequest.isMalwareDetected) && + Objects.equals(this.packageFile, vsxPackageUploadRequest.packageFile) && Objects.equals(this.republish, vsxPackageUploadRequest.republish) && - Objects.equals(this.tags, vsxPackageUploadRequest.tags); + Objects.equals(this.tags, vsxPackageUploadRequest.tags) && + Objects.equals(this.vulnerabilityCounts, vsxPackageUploadRequest.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(packageFile, republish, tags); + return Objects.hash(isMalwareDetected, packageFile, republish, tags, vulnerabilityCounts); } @@ -124,9 +161,11 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class VsxPackageUploadRequest {\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" packageFile: ").append(toIndentedString(packageFile)).append("\n"); sb.append(" republish: ").append(toIndentedString(republish)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/WebOSVSeverityCounts.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/WebOSVSeverityCounts.java new file mode 100644 index 00000000..6aa16228 --- /dev/null +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/WebOSVSeverityCounts.java @@ -0,0 +1,175 @@ +/* + * Cloudsmith API (v1) + * The API to the Cloudsmith Service + * + * OpenAPI spec version: v1 + * Contact: support@cloudsmith.io + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package io.cloudsmith.api.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.io.Serializable; +import javax.validation.constraints.*; +import javax.validation.Valid; + +/** + * Per-severity OSV vulnerability counts for non-hidden matches. Requires Ultra plan. + */ +@ApiModel(description = "Per-severity OSV vulnerability counts for non-hidden matches. Requires Ultra plan.") + +public class WebOSVSeverityCounts implements Serializable { + private static final long serialVersionUID = 1L; + + @SerializedName("critical") + private java.math.BigInteger critical = null; + + @SerializedName("high") + private java.math.BigInteger high = null; + + @SerializedName("low") + private java.math.BigInteger low = null; + + @SerializedName("malware") + private java.math.BigInteger malware = null; + + @SerializedName("medium") + private java.math.BigInteger medium = null; + + @SerializedName("total") + private java.math.BigInteger total = null; + + @SerializedName("unknown") + private java.math.BigInteger unknown = null; + + /** + * Get critical + * @return critical + **/ + @ApiModelProperty(value = "") + public java.math.BigInteger getCritical() { + return critical; + } + + /** + * Get high + * @return high + **/ + @ApiModelProperty(value = "") + public java.math.BigInteger getHigh() { + return high; + } + + /** + * Get low + * @return low + **/ + @ApiModelProperty(value = "") + public java.math.BigInteger getLow() { + return low; + } + + /** + * Get malware + * @return malware + **/ + @ApiModelProperty(value = "") + public java.math.BigInteger getMalware() { + return malware; + } + + /** + * Get medium + * @return medium + **/ + @ApiModelProperty(value = "") + public java.math.BigInteger getMedium() { + return medium; + } + + /** + * Get total + * @return total + **/ + @ApiModelProperty(value = "") + public java.math.BigInteger getTotal() { + return total; + } + + /** + * Get unknown + * @return unknown + **/ + @ApiModelProperty(value = "") + public java.math.BigInteger getUnknown() { + return unknown; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WebOSVSeverityCounts webOSVSeverityCounts = (WebOSVSeverityCounts) o; + return Objects.equals(this.critical, webOSVSeverityCounts.critical) && + Objects.equals(this.high, webOSVSeverityCounts.high) && + Objects.equals(this.low, webOSVSeverityCounts.low) && + Objects.equals(this.malware, webOSVSeverityCounts.malware) && + Objects.equals(this.medium, webOSVSeverityCounts.medium) && + Objects.equals(this.total, webOSVSeverityCounts.total) && + Objects.equals(this.unknown, webOSVSeverityCounts.unknown); + } + + @Override + public int hashCode() { + return Objects.hash(critical, high, low, malware, medium, total, unknown); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WebOSVSeverityCounts {\n"); + + sb.append(" critical: ").append(toIndentedString(critical)).append("\n"); + sb.append(" high: ").append(toIndentedString(high)).append("\n"); + sb.append(" low: ").append(toIndentedString(low)).append("\n"); + sb.append(" malware: ").append(toIndentedString(malware)).append("\n"); + sb.append(" medium: ").append(toIndentedString(medium)).append("\n"); + sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append(" unknown: ").append(toIndentedString(unknown)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/bindings/java/src/src/test/java/io/cloudsmith/api/apis/OrgsApiTest.java b/bindings/java/src/src/test/java/io/cloudsmith/api/apis/OrgsApiTest.java index 5189d968..4b8f8b89 100644 --- a/bindings/java/src/src/test/java/io/cloudsmith/api/apis/OrgsApiTest.java +++ b/bindings/java/src/src/test/java/io/cloudsmith/api/apis/OrgsApiTest.java @@ -15,6 +15,8 @@ import io.cloudsmith.api.models.DynamicMapping; import io.cloudsmith.api.models.ErrorDetail; +import io.cloudsmith.api.models.InlineResponse200; +import io.cloudsmith.api.models.InlineResponse2001; import io.cloudsmith.api.models.Organization; import io.cloudsmith.api.models.OrganizationCustomDomains; import io.cloudsmith.api.models.OrganizationGroupSync; @@ -42,6 +44,7 @@ import io.cloudsmith.api.models.OrganizationTeamMembers; import io.cloudsmith.api.models.OrganizationTeamRequest; import io.cloudsmith.api.models.OrganizationTeamRequestPatch; +import io.cloudsmith.api.models.OrganizationUsageUpdateRequestPatch; import io.cloudsmith.api.models.PackageDenyPolicy; import io.cloudsmith.api.models.PackageDenyPolicyRequest; import io.cloudsmith.api.models.PackageDenyPolicyRequestPatch; @@ -818,6 +821,22 @@ public void orgsReadTest() throws Exception { // TODO: test validations } + /** + * + * + * + * + * @throws Exception + * if the Api call fails + */ + @Test + public void orgsRetrieveUsageLimitsTest() throws Exception { + String org = null; + InlineResponse200 response = api.orgsRetrieveUsageLimits(org); + + // TODO: test validations + } + /** * Update the SAML Authentication settings for this Organization. * @@ -1201,6 +1220,23 @@ public void orgsTeamsReadTest() throws Exception { // TODO: test validations } + /** + * + * + * + * + * @throws Exception + * if the Api call fails + */ + @Test + public void orgsUpdateUsageLimitsTest() throws Exception { + String org = null; + OrganizationUsageUpdateRequestPatch data = null; + InlineResponse2001 response = api.orgsUpdateUsageLimits(org, data); + + // TODO: test validations + } + /** * Create a package vulnerability policy. * diff --git a/bindings/java/src/src/test/java/io/cloudsmith/api/apis/PackagesApiTest.java b/bindings/java/src/src/test/java/io/cloudsmith/api/apis/PackagesApiTest.java index 37ebfed5..7c4f3e7e 100644 --- a/bindings/java/src/src/test/java/io/cloudsmith/api/apis/PackagesApiTest.java +++ b/bindings/java/src/src/test/java/io/cloudsmith/api/apis/PackagesApiTest.java @@ -44,7 +44,7 @@ import io.cloudsmith.api.models.HexPackageUploadRequest; import io.cloudsmith.api.models.HuggingfacePackageUpload; import io.cloudsmith.api.models.HuggingfacePackageUploadRequest; -import io.cloudsmith.api.models.InlineResponse200; +import io.cloudsmith.api.models.InlineResponse2002; import io.cloudsmith.api.models.LuarocksPackageUpload; import io.cloudsmith.api.models.LuarocksPackageUploadRequest; import io.cloudsmith.api.models.MavenPackageUpload; @@ -52,6 +52,8 @@ import io.cloudsmith.api.models.McpPackageUpload; import io.cloudsmith.api.models.McpPackageUploadRequest; import io.cloudsmith.api.models.ModelPackage; +import io.cloudsmith.api.models.NixPackageUpload; +import io.cloudsmith.api.models.NixPackageUploadRequest; import io.cloudsmith.api.models.NpmPackageUpload; import io.cloudsmith.api.models.NpmPackageUploadRequest; import io.cloudsmith.api.models.NugetPackageUpload; @@ -61,6 +63,7 @@ import io.cloudsmith.api.models.PackageCopy; import io.cloudsmith.api.models.PackageCopyRequest; import io.cloudsmith.api.models.PackageDependencies; +import io.cloudsmith.api.models.PackageDetail; import io.cloudsmith.api.models.PackageLicenseRequestPatch; import io.cloudsmith.api.models.PackageMove; import io.cloudsmith.api.models.PackageMoveRequest; @@ -178,7 +181,7 @@ public void packagesGroupsListTest() throws Exception { Boolean includeConnectedRepositories = null; String query = null; String sort = null; - InlineResponse200 response = api.packagesGroupsList(owner, repo, page, pageSize, groupBy, hideSubcomponents, includeConnectedRepositories, query, sort); + InlineResponse2002 response = api.packagesGroupsList(owner, repo, page, pageSize, groupBy, hideSubcomponents, includeConnectedRepositories, query, sort); // TODO: test validations } @@ -257,7 +260,7 @@ public void packagesReadTest() throws Exception { String repo = null; String identifier = null; Boolean includeConnectedRepositories = null; - ModelPackage response = api.packagesRead(owner, repo, identifier, includeConnectedRepositories); + PackageDetail response = api.packagesRead(owner, repo, identifier, includeConnectedRepositories); // TODO: test validations } @@ -679,6 +682,24 @@ public void packagesUploadMcpTest() throws Exception { // TODO: test validations } + /** + * Create a new Nix package + * + * Create a new Nix package + * + * @throws Exception + * if the Api call fails + */ + @Test + public void packagesUploadNixTest() throws Exception { + String owner = null; + String repo = null; + NixPackageUploadRequest data = null; + NixPackageUpload response = api.packagesUploadNix(owner, repo, data); + + // TODO: test validations + } + /** * Create a new npm package * @@ -1201,6 +1222,24 @@ public void packagesValidateUploadMcpTest() throws Exception { // TODO: test validations } + /** + * Validate parameters for create Nix package + * + * Validate parameters for create Nix package + * + * @throws Exception + * if the Api call fails + */ + @Test + public void packagesValidateUploadNixTest() throws Exception { + String owner = null; + String repo = null; + NixPackageUploadRequest data = null; + api.packagesValidateUploadNix(owner, repo, data); + + // TODO: test validations + } + /** * Validate parameters for create npm package * diff --git a/bindings/java/src/src/test/java/io/cloudsmith/api/apis/ReposApiTest.java b/bindings/java/src/src/test/java/io/cloudsmith/api/apis/ReposApiTest.java index ec0e0bd5..cf68d6b0 100644 --- a/bindings/java/src/src/test/java/io/cloudsmith/api/apis/ReposApiTest.java +++ b/bindings/java/src/src/test/java/io/cloudsmith/api/apis/ReposApiTest.java @@ -56,10 +56,13 @@ import io.cloudsmith.api.models.HuggingfaceUpstream; import io.cloudsmith.api.models.HuggingfaceUpstreamRequest; import io.cloudsmith.api.models.HuggingfaceUpstreamRequestPatch; -import io.cloudsmith.api.models.InlineResponse2001; +import io.cloudsmith.api.models.InlineResponse2003; import io.cloudsmith.api.models.MavenUpstream; import io.cloudsmith.api.models.MavenUpstreamRequest; import io.cloudsmith.api.models.MavenUpstreamRequestPatch; +import io.cloudsmith.api.models.NixUpstream; +import io.cloudsmith.api.models.NixUpstreamRequest; +import io.cloudsmith.api.models.NixUpstreamRequestPatch; import io.cloudsmith.api.models.NpmUpstream; import io.cloudsmith.api.models.NpmUpstreamRequest; import io.cloudsmith.api.models.NpmUpstreamRequestPatch; @@ -225,7 +228,7 @@ public void reposConnectedListTest() throws Exception { String identifier = null; java.math.BigInteger page = null; java.math.BigInteger pageSize = null; - InlineResponse2001 response = api.reposConnectedList(owner, identifier, page, pageSize); + InlineResponse2003 response = api.reposConnectedList(owner, identifier, page, pageSize); // TODO: test validations } @@ -2317,6 +2320,117 @@ public void reposUpstreamMavenUpdateTest() throws Exception { // TODO: test validations } + /** + * Create a Nix upstream config for this repository. + * + * Create a Nix upstream config for this repository. + * + * @throws Exception + * if the Api call fails + */ + @Test + public void reposUpstreamNixCreateTest() throws Exception { + String owner = null; + String identifier = null; + NixUpstreamRequest data = null; + NixUpstream response = api.reposUpstreamNixCreate(owner, identifier, data); + + // TODO: test validations + } + + /** + * Delete a Nix upstream config for this repository. + * + * Delete a Nix upstream config for this repository. + * + * @throws Exception + * if the Api call fails + */ + @Test + public void reposUpstreamNixDeleteTest() throws Exception { + String owner = null; + String identifier = null; + String slugPerm = null; + api.reposUpstreamNixDelete(owner, identifier, slugPerm); + + // TODO: test validations + } + + /** + * List Nix upstream configs for this repository. + * + * List Nix upstream configs for this repository. + * + * @throws Exception + * if the Api call fails + */ + @Test + public void reposUpstreamNixListTest() throws Exception { + String owner = null; + String identifier = null; + java.math.BigInteger page = null; + java.math.BigInteger pageSize = null; + List response = api.reposUpstreamNixList(owner, identifier, page, pageSize); + + // TODO: test validations + } + + /** + * Partially update a Nix upstream config for this repository. + * + * Partially update a Nix upstream config for this repository. + * + * @throws Exception + * if the Api call fails + */ + @Test + public void reposUpstreamNixPartialUpdateTest() throws Exception { + String owner = null; + String identifier = null; + String slugPerm = null; + NixUpstreamRequestPatch data = null; + NixUpstream response = api.reposUpstreamNixPartialUpdate(owner, identifier, slugPerm, data); + + // TODO: test validations + } + + /** + * Retrieve a Nix upstream config for this repository. + * + * Retrieve a Nix upstream config for this repository. + * + * @throws Exception + * if the Api call fails + */ + @Test + public void reposUpstreamNixReadTest() throws Exception { + String owner = null; + String identifier = null; + String slugPerm = null; + NixUpstream response = api.reposUpstreamNixRead(owner, identifier, slugPerm); + + // TODO: test validations + } + + /** + * Update a Nix upstream config for this repository. + * + * Update a Nix upstream config for this repository. + * + * @throws Exception + * if the Api call fails + */ + @Test + public void reposUpstreamNixUpdateTest() throws Exception { + String owner = null; + String identifier = null; + String slugPerm = null; + NixUpstreamRequest data = null; + NixUpstream response = api.reposUpstreamNixUpdate(owner, identifier, slugPerm, data); + + // TODO: test validations + } + /** * Create a npm upstream config for this repository. * diff --git a/bindings/java/src/src/test/java/io/cloudsmith/api/apis/UserApiTest.java b/bindings/java/src/src/test/java/io/cloudsmith/api/apis/UserApiTest.java index 6ece5c1e..070a3458 100644 --- a/bindings/java/src/src/test/java/io/cloudsmith/api/apis/UserApiTest.java +++ b/bindings/java/src/src/test/java/io/cloudsmith/api/apis/UserApiTest.java @@ -14,7 +14,7 @@ package io.cloudsmith.api.apis; import io.cloudsmith.api.models.ErrorDetail; -import io.cloudsmith.api.models.InlineResponse2002; +import io.cloudsmith.api.models.InlineResponse2004; import io.cloudsmith.api.models.UserAuthToken; import io.cloudsmith.api.models.UserAuthTokenRequest; import io.cloudsmith.api.models.UserAuthenticationToken; @@ -95,7 +95,7 @@ public void userTokensCreateTest() throws Exception { public void userTokensListTest() throws Exception { java.math.BigInteger page = null; java.math.BigInteger pageSize = null; - InlineResponse2002 response = api.userTokensList(page, pageSize); + InlineResponse2004 response = api.userTokensList(page, pageSize); // TODO: test validations } diff --git a/bindings/python/src/README.md b/bindings/python/src/README.md index 2ad5cfaf..14aae179 100644 --- a/bindings/python/src/README.md +++ b/bindings/python/src/README.md @@ -4,7 +4,7 @@ The API to the Cloudsmith Service This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: - API version: v1 -- Package version: 2.0.29 +- Package version: 2.0.30 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://help.cloudsmith.io](https://help.cloudsmith.io) @@ -156,6 +156,7 @@ Class | Method | HTTP request | Description *OrgsApi* | [**orgs_openid_connect_read**](docs/OrgsApi.md#orgs_openid_connect_read) | **GET** /orgs/{org}/openid-connect/{slug_perm}/ | Retrieve a specific OpenID Connect provider setting for the org. *OrgsApi* | [**orgs_openid_connect_update**](docs/OrgsApi.md#orgs_openid_connect_update) | **PUT** /orgs/{org}/openid-connect/{slug_perm}/ | Update a specific OpenID Connect provider setting for the org. *OrgsApi* | [**orgs_read**](docs/OrgsApi.md#orgs_read) | **GET** /orgs/{org}/ | Get the details for the specific organization. +*OrgsApi* | [**orgs_retrieve_usage_limits**](docs/OrgsApi.md#orgs_retrieve_usage_limits) | **GET** /orgs/{org}/usage-limits/ | *OrgsApi* | [**orgs_saml_authentication_partial_update**](docs/OrgsApi.md#orgs_saml_authentication_partial_update) | **PATCH** /orgs/{org}/saml-authentication | Update the SAML Authentication settings for this Organization. *OrgsApi* | [**orgs_saml_authentication_read**](docs/OrgsApi.md#orgs_saml_authentication_read) | **GET** /orgs/{org}/saml-authentication | Retrieve the SAML Authentication settings for this Organization. *OrgsApi* | [**orgs_saml_group_sync_create**](docs/OrgsApi.md#orgs_saml_group_sync_create) | **POST** /orgs/{org}/saml-group-sync/ | Create a new SAML Group Sync mapping within an organization. @@ -178,6 +179,7 @@ Class | Method | HTTP request | Description *OrgsApi* | [**orgs_teams_members_update**](docs/OrgsApi.md#orgs_teams_members_update) | **PUT** /orgs/{org}/teams/{team}/members | Replace all team members. *OrgsApi* | [**orgs_teams_partial_update**](docs/OrgsApi.md#orgs_teams_partial_update) | **PATCH** /orgs/{org}/teams/{team}/ | Update a specific team in a organization. *OrgsApi* | [**orgs_teams_read**](docs/OrgsApi.md#orgs_teams_read) | **GET** /orgs/{org}/teams/{team}/ | Get the details of a specific team within an organization. +*OrgsApi* | [**orgs_update_usage_limits**](docs/OrgsApi.md#orgs_update_usage_limits) | **PATCH** /orgs/{org}/usage-limits/ | *OrgsApi* | [**orgs_vulnerability_policy_create**](docs/OrgsApi.md#orgs_vulnerability_policy_create) | **POST** /orgs/{org}/vulnerability-policy/ | Create a package vulnerability policy. *OrgsApi* | [**orgs_vulnerability_policy_delete**](docs/OrgsApi.md#orgs_vulnerability_policy_delete) | **DELETE** /orgs/{org}/vulnerability-policy/{slug_perm}/ | Delete a package vulnerability policy. *OrgsApi* | [**orgs_vulnerability_policy_evaluation_create**](docs/OrgsApi.md#orgs_vulnerability_policy_evaluation_create) | **POST** /orgs/{org}/vulnerability-policy/{policy_slug_perm}/evaluation/ | Create an evaluation request for this policy. @@ -219,6 +221,7 @@ Class | Method | HTTP request | Description *PackagesApi* | [**packages_upload_luarocks**](docs/PackagesApi.md#packages_upload_luarocks) | **POST** /packages/{owner}/{repo}/upload/luarocks/ | Create a new LuaRocks package *PackagesApi* | [**packages_upload_maven**](docs/PackagesApi.md#packages_upload_maven) | **POST** /packages/{owner}/{repo}/upload/maven/ | Create a new Maven package *PackagesApi* | [**packages_upload_mcp**](docs/PackagesApi.md#packages_upload_mcp) | **POST** /packages/{owner}/{repo}/upload/mcp/ | Create a new MCP package +*PackagesApi* | [**packages_upload_nix**](docs/PackagesApi.md#packages_upload_nix) | **POST** /packages/{owner}/{repo}/upload/nix/ | Create a new Nix package *PackagesApi* | [**packages_upload_npm**](docs/PackagesApi.md#packages_upload_npm) | **POST** /packages/{owner}/{repo}/upload/npm/ | Create a new npm package *PackagesApi* | [**packages_upload_nuget**](docs/PackagesApi.md#packages_upload_nuget) | **POST** /packages/{owner}/{repo}/upload/nuget/ | Create a new NuGet package *PackagesApi* | [**packages_upload_p2**](docs/PackagesApi.md#packages_upload_p2) | **POST** /packages/{owner}/{repo}/upload/p2/ | Create a new P2 package @@ -248,6 +251,7 @@ Class | Method | HTTP request | Description *PackagesApi* | [**packages_validate_upload_luarocks**](docs/PackagesApi.md#packages_validate_upload_luarocks) | **POST** /packages/{owner}/{repo}/validate-upload/luarocks/ | Validate parameters for create LuaRocks package *PackagesApi* | [**packages_validate_upload_maven**](docs/PackagesApi.md#packages_validate_upload_maven) | **POST** /packages/{owner}/{repo}/validate-upload/maven/ | Validate parameters for create Maven package *PackagesApi* | [**packages_validate_upload_mcp**](docs/PackagesApi.md#packages_validate_upload_mcp) | **POST** /packages/{owner}/{repo}/validate-upload/mcp/ | Validate parameters for create MCP package +*PackagesApi* | [**packages_validate_upload_nix**](docs/PackagesApi.md#packages_validate_upload_nix) | **POST** /packages/{owner}/{repo}/validate-upload/nix/ | Validate parameters for create Nix package *PackagesApi* | [**packages_validate_upload_npm**](docs/PackagesApi.md#packages_validate_upload_npm) | **POST** /packages/{owner}/{repo}/validate-upload/npm/ | Validate parameters for create npm package *PackagesApi* | [**packages_validate_upload_nuget**](docs/PackagesApi.md#packages_validate_upload_nuget) | **POST** /packages/{owner}/{repo}/validate-upload/nuget/ | Validate parameters for create NuGet package *PackagesApi* | [**packages_validate_upload_p2**](docs/PackagesApi.md#packages_validate_upload_p2) | **POST** /packages/{owner}/{repo}/validate-upload/p2/ | Validate parameters for create P2 package @@ -386,6 +390,12 @@ Class | Method | HTTP request | Description *ReposApi* | [**repos_upstream_maven_partial_update**](docs/ReposApi.md#repos_upstream_maven_partial_update) | **PATCH** /repos/{owner}/{identifier}/upstream/maven/{slug_perm}/ | Partially update a Maven upstream config for this repository. *ReposApi* | [**repos_upstream_maven_read**](docs/ReposApi.md#repos_upstream_maven_read) | **GET** /repos/{owner}/{identifier}/upstream/maven/{slug_perm}/ | Retrieve a Maven upstream config for this repository. *ReposApi* | [**repos_upstream_maven_update**](docs/ReposApi.md#repos_upstream_maven_update) | **PUT** /repos/{owner}/{identifier}/upstream/maven/{slug_perm}/ | Update a Maven upstream config for this repository. +*ReposApi* | [**repos_upstream_nix_create**](docs/ReposApi.md#repos_upstream_nix_create) | **POST** /repos/{owner}/{identifier}/upstream/nix/ | Create a Nix upstream config for this repository. +*ReposApi* | [**repos_upstream_nix_delete**](docs/ReposApi.md#repos_upstream_nix_delete) | **DELETE** /repos/{owner}/{identifier}/upstream/nix/{slug_perm}/ | Delete a Nix upstream config for this repository. +*ReposApi* | [**repos_upstream_nix_list**](docs/ReposApi.md#repos_upstream_nix_list) | **GET** /repos/{owner}/{identifier}/upstream/nix/ | List Nix upstream configs for this repository. +*ReposApi* | [**repos_upstream_nix_partial_update**](docs/ReposApi.md#repos_upstream_nix_partial_update) | **PATCH** /repos/{owner}/{identifier}/upstream/nix/{slug_perm}/ | Partially update a Nix upstream config for this repository. +*ReposApi* | [**repos_upstream_nix_read**](docs/ReposApi.md#repos_upstream_nix_read) | **GET** /repos/{owner}/{identifier}/upstream/nix/{slug_perm}/ | Retrieve a Nix upstream config for this repository. +*ReposApi* | [**repos_upstream_nix_update**](docs/ReposApi.md#repos_upstream_nix_update) | **PUT** /repos/{owner}/{identifier}/upstream/nix/{slug_perm}/ | Update a Nix upstream config for this repository. *ReposApi* | [**repos_upstream_npm_create**](docs/ReposApi.md#repos_upstream_npm_create) | **POST** /repos/{owner}/{identifier}/upstream/npm/ | Create a npm upstream config for this repository. *ReposApi* | [**repos_upstream_npm_delete**](docs/ReposApi.md#repos_upstream_npm_delete) | **DELETE** /repos/{owner}/{identifier}/upstream/npm/{slug_perm}/ | Delete a npm upstream config for this repository. *ReposApi* | [**repos_upstream_npm_list**](docs/ReposApi.md#repos_upstream_npm_list) | **GET** /repos/{owner}/{identifier}/upstream/npm/ | List npm upstream configs for this repository. @@ -546,6 +556,8 @@ Class | Method | HTTP request | Description - [InlineResponse200](docs/InlineResponse200.md) - [InlineResponse2001](docs/InlineResponse2001.md) - [InlineResponse2002](docs/InlineResponse2002.md) + - [InlineResponse2003](docs/InlineResponse2003.md) + - [InlineResponse2004](docs/InlineResponse2004.md) - [LuarocksPackageUpload](docs/LuarocksPackageUpload.md) - [LuarocksPackageUploadRequest](docs/LuarocksPackageUploadRequest.md) - [MavenPackageUpload](docs/MavenPackageUpload.md) @@ -561,6 +573,11 @@ Class | Method | HTTP request | Description - [NestedLicensePolicy](docs/NestedLicensePolicy.md) - [NestedVulnerabilityPolicy](docs/NestedVulnerabilityPolicy.md) - [NestedVulnerabilityScanResults](docs/NestedVulnerabilityScanResults.md) + - [NixPackageUpload](docs/NixPackageUpload.md) + - [NixPackageUploadRequest](docs/NixPackageUploadRequest.md) + - [NixUpstream](docs/NixUpstream.md) + - [NixUpstreamRequest](docs/NixUpstreamRequest.md) + - [NixUpstreamRequestPatch](docs/NixUpstreamRequestPatch.md) - [NpmPackageUpload](docs/NpmPackageUpload.md) - [NpmPackageUploadRequest](docs/NpmPackageUploadRequest.md) - [NpmUpstream](docs/NpmUpstream.md) @@ -602,6 +619,9 @@ Class | Method | HTTP request | Description - [OrganizationTeamRequest](docs/OrganizationTeamRequest.md) - [OrganizationTeamRequestPatch](docs/OrganizationTeamRequestPatch.md) - [OrganizationTeamServiceMember](docs/OrganizationTeamServiceMember.md) + - [OrganizationUsage](docs/OrganizationUsage.md) + - [OrganizationUsageUpdate](docs/OrganizationUsageUpdate.md) + - [OrganizationUsageUpdateRequestPatch](docs/OrganizationUsageUpdateRequestPatch.md) - [P2PackageUpload](docs/P2PackageUpload.md) - [P2PackageUploadRequest](docs/P2PackageUploadRequest.md) - [Package](docs/Package.md) @@ -614,6 +634,7 @@ Class | Method | HTTP request | Description - [PackageDenyPolicyRequestPatch](docs/PackageDenyPolicyRequestPatch.md) - [PackageDependencies](docs/PackageDependencies.md) - [PackageDependency](docs/PackageDependency.md) + - [PackageDetail](docs/PackageDetail.md) - [PackageFile](docs/PackageFile.md) - [PackageFilePartsUpload](docs/PackageFilePartsUpload.md) - [PackageFileUpload](docs/PackageFileUpload.md) @@ -751,6 +772,7 @@ Class | Method | HTTP request | Description - [VulnerabilityScanResults](docs/VulnerabilityScanResults.md) - [VulnerabilityScanResultsList](docs/VulnerabilityScanResultsList.md) - [VulnerabilityScanVersion](docs/VulnerabilityScanVersion.md) + - [WebOSVSeverityCounts](docs/WebOSVSeverityCounts.md) - [WebhookTemplate](docs/WebhookTemplate.md) diff --git a/bindings/python/src/build.json b/bindings/python/src/build.json index acfc2102..b60f95ed 100644 --- a/bindings/python/src/build.json +++ b/bindings/python/src/build.json @@ -2,7 +2,7 @@ "hideGenerationTimestamp": true, "packageName": "cloudsmith_api", "projectName": "cloudsmith_api", - "packageVersion": "2.0.29", + "packageVersion": "2.0.30", "packageUrl": "https://api.cloudsmith.io/?format=openapi", "sortParamsByRequiredFlag": true } diff --git a/bindings/python/src/cloudsmith_api/__init__.py b/bindings/python/src/cloudsmith_api/__init__.py index 43136be0..9617dd2e 100644 --- a/bindings/python/src/cloudsmith_api/__init__.py +++ b/bindings/python/src/cloudsmith_api/__init__.py @@ -142,6 +142,8 @@ from cloudsmith_api.models.inline_response200 import InlineResponse200 from cloudsmith_api.models.inline_response2001 import InlineResponse2001 from cloudsmith_api.models.inline_response2002 import InlineResponse2002 +from cloudsmith_api.models.inline_response2003 import InlineResponse2003 +from cloudsmith_api.models.inline_response2004 import InlineResponse2004 from cloudsmith_api.models.luarocks_package_upload import LuarocksPackageUpload from cloudsmith_api.models.luarocks_package_upload_request import LuarocksPackageUploadRequest from cloudsmith_api.models.maven_package_upload import MavenPackageUpload @@ -157,6 +159,11 @@ from cloudsmith_api.models.nested_license_policy import NestedLicensePolicy from cloudsmith_api.models.nested_vulnerability_policy import NestedVulnerabilityPolicy from cloudsmith_api.models.nested_vulnerability_scan_results import NestedVulnerabilityScanResults +from cloudsmith_api.models.nix_package_upload import NixPackageUpload +from cloudsmith_api.models.nix_package_upload_request import NixPackageUploadRequest +from cloudsmith_api.models.nix_upstream import NixUpstream +from cloudsmith_api.models.nix_upstream_request import NixUpstreamRequest +from cloudsmith_api.models.nix_upstream_request_patch import NixUpstreamRequestPatch from cloudsmith_api.models.npm_package_upload import NpmPackageUpload from cloudsmith_api.models.npm_package_upload_request import NpmPackageUploadRequest from cloudsmith_api.models.npm_upstream import NpmUpstream @@ -198,6 +205,9 @@ from cloudsmith_api.models.organization_team_request import OrganizationTeamRequest from cloudsmith_api.models.organization_team_request_patch import OrganizationTeamRequestPatch from cloudsmith_api.models.organization_team_service_member import OrganizationTeamServiceMember +from cloudsmith_api.models.organization_usage import OrganizationUsage +from cloudsmith_api.models.organization_usage_update import OrganizationUsageUpdate +from cloudsmith_api.models.organization_usage_update_request_patch import OrganizationUsageUpdateRequestPatch from cloudsmith_api.models.p2_package_upload import P2PackageUpload from cloudsmith_api.models.p2_package_upload_request import P2PackageUploadRequest from cloudsmith_api.models.package import Package @@ -210,6 +220,7 @@ from cloudsmith_api.models.package_deny_policy_request_patch import PackageDenyPolicyRequestPatch from cloudsmith_api.models.package_dependencies import PackageDependencies from cloudsmith_api.models.package_dependency import PackageDependency +from cloudsmith_api.models.package_detail import PackageDetail from cloudsmith_api.models.package_file import PackageFile from cloudsmith_api.models.package_file_parts_upload import PackageFilePartsUpload from cloudsmith_api.models.package_file_upload import PackageFileUpload @@ -347,4 +358,5 @@ from cloudsmith_api.models.vulnerability_scan_results import VulnerabilityScanResults from cloudsmith_api.models.vulnerability_scan_results_list import VulnerabilityScanResultsList from cloudsmith_api.models.vulnerability_scan_version import VulnerabilityScanVersion +from cloudsmith_api.models.web_osv_severity_counts import WebOSVSeverityCounts from cloudsmith_api.models.webhook_template import WebhookTemplate diff --git a/bindings/python/src/cloudsmith_api/api/orgs_api.py b/bindings/python/src/cloudsmith_api/api/orgs_api.py index 2417d557..76e7c1f6 100644 --- a/bindings/python/src/cloudsmith_api/api/orgs_api.py +++ b/bindings/python/src/cloudsmith_api/api/orgs_api.py @@ -4587,6 +4587,105 @@ def orgs_read_with_http_info(self, org, **kwargs): # noqa: E501 _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def orgs_retrieve_usage_limits(self, org, **kwargs): # noqa: E501 + """orgs_retrieve_usage_limits # noqa: E501 + + # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.orgs_retrieve_usage_limits(org, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str org: (required) + :return: InlineResponse200 + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.orgs_retrieve_usage_limits_with_http_info(org, **kwargs) # noqa: E501 + else: + (data) = self.orgs_retrieve_usage_limits_with_http_info(org, **kwargs) # noqa: E501 + return data + + def orgs_retrieve_usage_limits_with_http_info(self, org, **kwargs): # noqa: E501 + """orgs_retrieve_usage_limits # noqa: E501 + + # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.orgs_retrieve_usage_limits_with_http_info(org, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str org: (required) + :return: InlineResponse200 + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['org'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method orgs_retrieve_usage_limits" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'org' is set + if self.api_client.client_side_validation and ('org' not in params or + params['org'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `org` when calling `orgs_retrieve_usage_limits`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'org' in params: + path_params['org'] = params['org'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey', 'basic'] # noqa: E501 + + return self.api_client.call_api( + '/orgs/{org}/usage-limits/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='InlineResponse200', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def orgs_saml_authentication_partial_update(self, org, **kwargs): # noqa: E501 """Update the SAML Authentication settings for this Organization. # noqa: E501 @@ -6933,6 +7032,109 @@ def orgs_teams_read_with_http_info(self, org, team, **kwargs): # noqa: E501 _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def orgs_update_usage_limits(self, org, **kwargs): # noqa: E501 + """orgs_update_usage_limits # noqa: E501 + + # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.orgs_update_usage_limits(org, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str org: (required) + :param OrganizationUsageUpdateRequestPatch data: + :return: InlineResponse2001 + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.orgs_update_usage_limits_with_http_info(org, **kwargs) # noqa: E501 + else: + (data) = self.orgs_update_usage_limits_with_http_info(org, **kwargs) # noqa: E501 + return data + + def orgs_update_usage_limits_with_http_info(self, org, **kwargs): # noqa: E501 + """orgs_update_usage_limits # noqa: E501 + + # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.orgs_update_usage_limits_with_http_info(org, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str org: (required) + :param OrganizationUsageUpdateRequestPatch data: + :return: InlineResponse2001 + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['org', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method orgs_update_usage_limits" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'org' is set + if self.api_client.client_side_validation and ('org' not in params or + params['org'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `org` when calling `orgs_update_usage_limits`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'org' in params: + path_params['org'] = params['org'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey', 'basic'] # noqa: E501 + + return self.api_client.call_api( + '/orgs/{org}/usage-limits/', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='InlineResponse2001', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def orgs_vulnerability_policy_create(self, org, **kwargs): # noqa: E501 """Create a package vulnerability policy. # noqa: E501 diff --git a/bindings/python/src/cloudsmith_api/api/packages_api.py b/bindings/python/src/cloudsmith_api/api/packages_api.py index bd4e5673..248887dc 100644 --- a/bindings/python/src/cloudsmith_api/api/packages_api.py +++ b/bindings/python/src/cloudsmith_api/api/packages_api.py @@ -405,7 +405,7 @@ def packages_groups_list(self, owner, repo, **kwargs): # noqa: E501 :param bool include_connected_repositories: If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. :param str query: A search term for querying names, filenames, versions, distributions, architectures, formats, or statuses of packages. :param str sort: A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name, count, num_downloads, size, last_push, backend_kind. - :return: InlineResponse200 + :return: InlineResponse2002 If the method is called asynchronously, returns the request thread. """ @@ -435,7 +435,7 @@ def packages_groups_list_with_http_info(self, owner, repo, **kwargs): # noqa: E :param bool include_connected_repositories: If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. :param str query: A search term for querying names, filenames, versions, distributions, architectures, formats, or statuses of packages. :param str sort: A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name, count, num_downloads, size, last_push, backend_kind. - :return: InlineResponse200 + :return: InlineResponse2002 If the method is called asynchronously, returns the request thread. """ @@ -513,7 +513,7 @@ def packages_groups_list_with_http_info(self, owner, repo, **kwargs): # noqa: E body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse200', # noqa: E501 + response_type='InlineResponse2002', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -900,7 +900,7 @@ def packages_read(self, owner, repo, identifier, **kwargs): # noqa: E501 :param str repo: (required) :param str identifier: (required) :param bool include_connected_repositories: If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. - :return: Package + :return: PackageDetail If the method is called asynchronously, returns the request thread. """ @@ -925,7 +925,7 @@ def packages_read_with_http_info(self, owner, repo, identifier, **kwargs): # no :param str repo: (required) :param str identifier: (required) :param bool include_connected_repositories: If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. - :return: Package + :return: PackageDetail If the method is called asynchronously, returns the request thread. """ @@ -997,7 +997,7 @@ def packages_read_with_http_info(self, owner, repo, identifier, **kwargs): # no body=body_params, post_params=form_params, files=local_var_files, - response_type='Package', # noqa: E501 + response_type='PackageDetail', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3590,6 +3590,117 @@ def packages_upload_mcp_with_http_info(self, owner, repo, **kwargs): # noqa: E5 _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def packages_upload_nix(self, owner, repo, **kwargs): # noqa: E501 + """Create a new Nix package # noqa: E501 + + Create a new Nix package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_upload_nix(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param NixPackageUploadRequest data: + :return: NixPackageUpload + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.packages_upload_nix_with_http_info(owner, repo, **kwargs) # noqa: E501 + else: + (data) = self.packages_upload_nix_with_http_info(owner, repo, **kwargs) # noqa: E501 + return data + + def packages_upload_nix_with_http_info(self, owner, repo, **kwargs): # noqa: E501 + """Create a new Nix package # noqa: E501 + + Create a new Nix package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_upload_nix_with_http_info(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param NixPackageUploadRequest data: + :return: NixPackageUpload + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method packages_upload_nix" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `packages_upload_nix`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `packages_upload_nix`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey', 'basic'] # noqa: E501 + + return self.api_client.call_api( + '/packages/{owner}/{repo}/upload/nix/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='NixPackageUpload', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def packages_upload_npm(self, owner, repo, **kwargs): # noqa: E501 """Create a new npm package # noqa: E501 @@ -6809,6 +6920,117 @@ def packages_validate_upload_mcp_with_http_info(self, owner, repo, **kwargs): # _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def packages_validate_upload_nix(self, owner, repo, **kwargs): # noqa: E501 + """Validate parameters for create Nix package # noqa: E501 + + Validate parameters for create Nix package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_validate_upload_nix(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param NixPackageUploadRequest data: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.packages_validate_upload_nix_with_http_info(owner, repo, **kwargs) # noqa: E501 + else: + (data) = self.packages_validate_upload_nix_with_http_info(owner, repo, **kwargs) # noqa: E501 + return data + + def packages_validate_upload_nix_with_http_info(self, owner, repo, **kwargs): # noqa: E501 + """Validate parameters for create Nix package # noqa: E501 + + Validate parameters for create Nix package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_validate_upload_nix_with_http_info(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param NixPackageUploadRequest data: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method packages_validate_upload_nix" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `packages_validate_upload_nix`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `packages_validate_upload_nix`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey', 'basic'] # noqa: E501 + + return self.api_client.call_api( + '/packages/{owner}/{repo}/validate-upload/nix/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def packages_validate_upload_npm(self, owner, repo, **kwargs): # noqa: E501 """Validate parameters for create npm package # noqa: E501 diff --git a/bindings/python/src/cloudsmith_api/api/repos_api.py b/bindings/python/src/cloudsmith_api/api/repos_api.py index 33c452c4..62951e00 100644 --- a/bindings/python/src/cloudsmith_api/api/repos_api.py +++ b/bindings/python/src/cloudsmith_api/api/repos_api.py @@ -598,7 +598,7 @@ def repos_connected_list(self, owner, identifier, **kwargs): # noqa: E501 :param str identifier: (required) :param int page: A page number within the paginated result set. :param int page_size: Number of results to return per page. - :return: InlineResponse2001 + :return: InlineResponse2003 If the method is called asynchronously, returns the request thread. """ @@ -623,7 +623,7 @@ def repos_connected_list_with_http_info(self, owner, identifier, **kwargs): # n :param str identifier: (required) :param int page: A page number within the paginated result set. :param int page_size: Number of results to return per page. - :return: InlineResponse2001 + :return: InlineResponse2003 If the method is called asynchronously, returns the request thread. """ @@ -691,7 +691,7 @@ def repos_connected_list_with_http_info(self, owner, identifier, **kwargs): # n body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse2001', # noqa: E501 + response_type='InlineResponse2003', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -13721,6 +13721,700 @@ def repos_upstream_maven_update_with_http_info(self, owner, identifier, slug_per _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def repos_upstream_nix_create(self, owner, identifier, **kwargs): # noqa: E501 + """Create a Nix upstream config for this repository. # noqa: E501 + + Create a Nix upstream config for this repository. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.repos_upstream_nix_create(owner, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str identifier: (required) + :param NixUpstreamRequest data: + :return: NixUpstream + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.repos_upstream_nix_create_with_http_info(owner, identifier, **kwargs) # noqa: E501 + else: + (data) = self.repos_upstream_nix_create_with_http_info(owner, identifier, **kwargs) # noqa: E501 + return data + + def repos_upstream_nix_create_with_http_info(self, owner, identifier, **kwargs): # noqa: E501 + """Create a Nix upstream config for this repository. # noqa: E501 + + Create a Nix upstream config for this repository. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.repos_upstream_nix_create_with_http_info(owner, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str identifier: (required) + :param NixUpstreamRequest data: + :return: NixUpstream + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'identifier', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method repos_upstream_nix_create" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `repos_upstream_nix_create`") # noqa: E501 + # verify the required parameter 'identifier' is set + if self.api_client.client_side_validation and ('identifier' not in params or + params['identifier'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_upstream_nix_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'identifier' in params: + path_params['identifier'] = params['identifier'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey', 'basic'] # noqa: E501 + + return self.api_client.call_api( + '/repos/{owner}/{identifier}/upstream/nix/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='NixUpstream', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def repos_upstream_nix_delete(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Delete a Nix upstream config for this repository. # noqa: E501 + + Delete a Nix upstream config for this repository. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.repos_upstream_nix_delete(owner, identifier, slug_perm, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str identifier: (required) + :param str slug_perm: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.repos_upstream_nix_delete_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + else: + (data) = self.repos_upstream_nix_delete_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + return data + + def repos_upstream_nix_delete_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Delete a Nix upstream config for this repository. # noqa: E501 + + Delete a Nix upstream config for this repository. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.repos_upstream_nix_delete_with_http_info(owner, identifier, slug_perm, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str identifier: (required) + :param str slug_perm: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'identifier', 'slug_perm'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method repos_upstream_nix_delete" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `repos_upstream_nix_delete`") # noqa: E501 + # verify the required parameter 'identifier' is set + if self.api_client.client_side_validation and ('identifier' not in params or + params['identifier'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_upstream_nix_delete`") # noqa: E501 + # verify the required parameter 'slug_perm' is set + if self.api_client.client_side_validation and ('slug_perm' not in params or + params['slug_perm'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_nix_delete`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'identifier' in params: + path_params['identifier'] = params['identifier'] # noqa: E501 + if 'slug_perm' in params: + path_params['slug_perm'] = params['slug_perm'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey', 'basic'] # noqa: E501 + + return self.api_client.call_api( + '/repos/{owner}/{identifier}/upstream/nix/{slug_perm}/', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def repos_upstream_nix_list(self, owner, identifier, **kwargs): # noqa: E501 + """List Nix upstream configs for this repository. # noqa: E501 + + List Nix upstream configs for this repository. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.repos_upstream_nix_list(owner, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str identifier: (required) + :param int page: A page number within the paginated result set. + :param int page_size: Number of results to return per page. + :return: list[NixUpstream] + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.repos_upstream_nix_list_with_http_info(owner, identifier, **kwargs) # noqa: E501 + else: + (data) = self.repos_upstream_nix_list_with_http_info(owner, identifier, **kwargs) # noqa: E501 + return data + + def repos_upstream_nix_list_with_http_info(self, owner, identifier, **kwargs): # noqa: E501 + """List Nix upstream configs for this repository. # noqa: E501 + + List Nix upstream configs for this repository. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.repos_upstream_nix_list_with_http_info(owner, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str identifier: (required) + :param int page: A page number within the paginated result set. + :param int page_size: Number of results to return per page. + :return: list[NixUpstream] + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'identifier', 'page', 'page_size'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method repos_upstream_nix_list" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `repos_upstream_nix_list`") # noqa: E501 + # verify the required parameter 'identifier' is set + if self.api_client.client_side_validation and ('identifier' not in params or + params['identifier'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_upstream_nix_list`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'identifier' in params: + path_params['identifier'] = params['identifier'] # noqa: E501 + + query_params = [] + if 'page' in params: + query_params.append(('page', params['page'])) # noqa: E501 + if 'page_size' in params: + query_params.append(('page_size', params['page_size'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey', 'basic'] # noqa: E501 + + return self.api_client.call_api( + '/repos/{owner}/{identifier}/upstream/nix/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='list[NixUpstream]', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def repos_upstream_nix_partial_update(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Partially update a Nix upstream config for this repository. # noqa: E501 + + Partially update a Nix upstream config for this repository. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.repos_upstream_nix_partial_update(owner, identifier, slug_perm, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str identifier: (required) + :param str slug_perm: (required) + :param NixUpstreamRequestPatch data: + :return: NixUpstream + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.repos_upstream_nix_partial_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + else: + (data) = self.repos_upstream_nix_partial_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + return data + + def repos_upstream_nix_partial_update_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Partially update a Nix upstream config for this repository. # noqa: E501 + + Partially update a Nix upstream config for this repository. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.repos_upstream_nix_partial_update_with_http_info(owner, identifier, slug_perm, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str identifier: (required) + :param str slug_perm: (required) + :param NixUpstreamRequestPatch data: + :return: NixUpstream + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'identifier', 'slug_perm', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method repos_upstream_nix_partial_update" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `repos_upstream_nix_partial_update`") # noqa: E501 + # verify the required parameter 'identifier' is set + if self.api_client.client_side_validation and ('identifier' not in params or + params['identifier'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_upstream_nix_partial_update`") # noqa: E501 + # verify the required parameter 'slug_perm' is set + if self.api_client.client_side_validation and ('slug_perm' not in params or + params['slug_perm'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_nix_partial_update`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'identifier' in params: + path_params['identifier'] = params['identifier'] # noqa: E501 + if 'slug_perm' in params: + path_params['slug_perm'] = params['slug_perm'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey', 'basic'] # noqa: E501 + + return self.api_client.call_api( + '/repos/{owner}/{identifier}/upstream/nix/{slug_perm}/', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='NixUpstream', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def repos_upstream_nix_read(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Retrieve a Nix upstream config for this repository. # noqa: E501 + + Retrieve a Nix upstream config for this repository. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.repos_upstream_nix_read(owner, identifier, slug_perm, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str identifier: (required) + :param str slug_perm: (required) + :return: NixUpstream + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.repos_upstream_nix_read_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + else: + (data) = self.repos_upstream_nix_read_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + return data + + def repos_upstream_nix_read_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Retrieve a Nix upstream config for this repository. # noqa: E501 + + Retrieve a Nix upstream config for this repository. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.repos_upstream_nix_read_with_http_info(owner, identifier, slug_perm, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str identifier: (required) + :param str slug_perm: (required) + :return: NixUpstream + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'identifier', 'slug_perm'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method repos_upstream_nix_read" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `repos_upstream_nix_read`") # noqa: E501 + # verify the required parameter 'identifier' is set + if self.api_client.client_side_validation and ('identifier' not in params or + params['identifier'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_upstream_nix_read`") # noqa: E501 + # verify the required parameter 'slug_perm' is set + if self.api_client.client_side_validation and ('slug_perm' not in params or + params['slug_perm'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_nix_read`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'identifier' in params: + path_params['identifier'] = params['identifier'] # noqa: E501 + if 'slug_perm' in params: + path_params['slug_perm'] = params['slug_perm'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey', 'basic'] # noqa: E501 + + return self.api_client.call_api( + '/repos/{owner}/{identifier}/upstream/nix/{slug_perm}/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='NixUpstream', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def repos_upstream_nix_update(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Update a Nix upstream config for this repository. # noqa: E501 + + Update a Nix upstream config for this repository. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.repos_upstream_nix_update(owner, identifier, slug_perm, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str identifier: (required) + :param str slug_perm: (required) + :param NixUpstreamRequest data: + :return: NixUpstream + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.repos_upstream_nix_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + else: + (data) = self.repos_upstream_nix_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + return data + + def repos_upstream_nix_update_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Update a Nix upstream config for this repository. # noqa: E501 + + Update a Nix upstream config for this repository. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.repos_upstream_nix_update_with_http_info(owner, identifier, slug_perm, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str identifier: (required) + :param str slug_perm: (required) + :param NixUpstreamRequest data: + :return: NixUpstream + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'identifier', 'slug_perm', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method repos_upstream_nix_update" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `repos_upstream_nix_update`") # noqa: E501 + # verify the required parameter 'identifier' is set + if self.api_client.client_side_validation and ('identifier' not in params or + params['identifier'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_upstream_nix_update`") # noqa: E501 + # verify the required parameter 'slug_perm' is set + if self.api_client.client_side_validation and ('slug_perm' not in params or + params['slug_perm'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_nix_update`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'identifier' in params: + path_params['identifier'] = params['identifier'] # noqa: E501 + if 'slug_perm' in params: + path_params['slug_perm'] = params['slug_perm'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey', 'basic'] # noqa: E501 + + return self.api_client.call_api( + '/repos/{owner}/{identifier}/upstream/nix/{slug_perm}/', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='NixUpstream', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def repos_upstream_npm_create(self, owner, identifier, **kwargs): # noqa: E501 """Create a npm upstream config for this repository. # noqa: E501 diff --git a/bindings/python/src/cloudsmith_api/api/user_api.py b/bindings/python/src/cloudsmith_api/api/user_api.py index 59cd6de5..fc133fb3 100644 --- a/bindings/python/src/cloudsmith_api/api/user_api.py +++ b/bindings/python/src/cloudsmith_api/api/user_api.py @@ -322,7 +322,7 @@ def user_tokens_list(self, **kwargs): # noqa: E501 :param async_req bool :param int page: A page number within the paginated result set. :param int page_size: Number of results to return per page. - :return: InlineResponse2002 + :return: InlineResponse2004 If the method is called asynchronously, returns the request thread. """ @@ -345,7 +345,7 @@ def user_tokens_list_with_http_info(self, **kwargs): # noqa: E501 :param async_req bool :param int page: A page number within the paginated result set. :param int page_size: Number of results to return per page. - :return: InlineResponse2002 + :return: InlineResponse2004 If the method is called asynchronously, returns the request thread. """ @@ -401,7 +401,7 @@ def user_tokens_list_with_http_info(self, **kwargs): # noqa: E501 body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse2002', # noqa: E501 + response_type='InlineResponse2004', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/bindings/python/src/cloudsmith_api/api_client.py b/bindings/python/src/cloudsmith_api/api_client.py index a214e562..a6d62c82 100644 --- a/bindings/python/src/cloudsmith_api/api_client.py +++ b/bindings/python/src/cloudsmith_api/api_client.py @@ -74,7 +74,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'Swagger-Codegen/2.0.29/python' + self.user_agent = 'Swagger-Codegen/2.0.30/python' self.client_side_validation = configuration.client_side_validation def __del__(self): diff --git a/bindings/python/src/cloudsmith_api/configuration.py b/bindings/python/src/cloudsmith_api/configuration.py index e34ca696..d6fe97c6 100644 --- a/bindings/python/src/cloudsmith_api/configuration.py +++ b/bindings/python/src/cloudsmith_api/configuration.py @@ -249,5 +249,5 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: v1\n"\ - "SDK Package Version: 2.0.29".\ + "SDK Package Version: 2.0.30".\ format(env=sys.platform, pyversion=sys.version) diff --git a/bindings/python/src/cloudsmith_api/models/__init__.py b/bindings/python/src/cloudsmith_api/models/__init__.py index 2e6441c0..8e37aa84 100644 --- a/bindings/python/src/cloudsmith_api/models/__init__.py +++ b/bindings/python/src/cloudsmith_api/models/__init__.py @@ -114,6 +114,8 @@ from cloudsmith_api.models.inline_response200 import InlineResponse200 from cloudsmith_api.models.inline_response2001 import InlineResponse2001 from cloudsmith_api.models.inline_response2002 import InlineResponse2002 +from cloudsmith_api.models.inline_response2003 import InlineResponse2003 +from cloudsmith_api.models.inline_response2004 import InlineResponse2004 from cloudsmith_api.models.luarocks_package_upload import LuarocksPackageUpload from cloudsmith_api.models.luarocks_package_upload_request import LuarocksPackageUploadRequest from cloudsmith_api.models.maven_package_upload import MavenPackageUpload @@ -129,6 +131,11 @@ from cloudsmith_api.models.nested_license_policy import NestedLicensePolicy from cloudsmith_api.models.nested_vulnerability_policy import NestedVulnerabilityPolicy from cloudsmith_api.models.nested_vulnerability_scan_results import NestedVulnerabilityScanResults +from cloudsmith_api.models.nix_package_upload import NixPackageUpload +from cloudsmith_api.models.nix_package_upload_request import NixPackageUploadRequest +from cloudsmith_api.models.nix_upstream import NixUpstream +from cloudsmith_api.models.nix_upstream_request import NixUpstreamRequest +from cloudsmith_api.models.nix_upstream_request_patch import NixUpstreamRequestPatch from cloudsmith_api.models.npm_package_upload import NpmPackageUpload from cloudsmith_api.models.npm_package_upload_request import NpmPackageUploadRequest from cloudsmith_api.models.npm_upstream import NpmUpstream @@ -170,6 +177,9 @@ from cloudsmith_api.models.organization_team_request import OrganizationTeamRequest from cloudsmith_api.models.organization_team_request_patch import OrganizationTeamRequestPatch from cloudsmith_api.models.organization_team_service_member import OrganizationTeamServiceMember +from cloudsmith_api.models.organization_usage import OrganizationUsage +from cloudsmith_api.models.organization_usage_update import OrganizationUsageUpdate +from cloudsmith_api.models.organization_usage_update_request_patch import OrganizationUsageUpdateRequestPatch from cloudsmith_api.models.p2_package_upload import P2PackageUpload from cloudsmith_api.models.p2_package_upload_request import P2PackageUploadRequest from cloudsmith_api.models.package import Package @@ -182,6 +192,7 @@ from cloudsmith_api.models.package_deny_policy_request_patch import PackageDenyPolicyRequestPatch from cloudsmith_api.models.package_dependencies import PackageDependencies from cloudsmith_api.models.package_dependency import PackageDependency +from cloudsmith_api.models.package_detail import PackageDetail from cloudsmith_api.models.package_file import PackageFile from cloudsmith_api.models.package_file_parts_upload import PackageFilePartsUpload from cloudsmith_api.models.package_file_upload import PackageFileUpload @@ -319,4 +330,5 @@ from cloudsmith_api.models.vulnerability_scan_results import VulnerabilityScanResults from cloudsmith_api.models.vulnerability_scan_results_list import VulnerabilityScanResultsList from cloudsmith_api.models.vulnerability_scan_version import VulnerabilityScanVersion +from cloudsmith_api.models.web_osv_severity_counts import WebOSVSeverityCounts from cloudsmith_api.models.webhook_template import WebhookTemplate diff --git a/bindings/python/src/cloudsmith_api/models/alpine_package_upload.py b/bindings/python/src/cloudsmith_api/models/alpine_package_upload.py index be46ba9e..8aca9880 100644 --- a/bindings/python/src/cloudsmith_api/models/alpine_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/alpine_package_upload.py @@ -62,6 +62,7 @@ class AlpinePackageUpload(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', + 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -106,18 +107,21 @@ class AlpinePackageUpload(object): 'status_str': 'str', 'status_updated_at': 'datetime', 'status_url': 'str', + 'store_path': 'str', 'subtype': 'str', 'summary': 'str', 'sync_finished_at': 'datetime', 'sync_progress': 'int', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -151,6 +155,7 @@ class AlpinePackageUpload(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', + 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -195,22 +200,25 @@ class AlpinePackageUpload(object): 'status_str': 'status_str', 'status_updated_at': 'status_updated_at', 'status_url': 'status_url', + 'store_path': 'store_path', 'subtype': 'subtype', 'summary': 'summary', 'sync_finished_at': 'sync_finished_at', 'sync_progress': 'sync_progress', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', + 'vulnerability_counts': 'vulnerability_counts', 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_malware_detected=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 """AlpinePackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -245,6 +253,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_deleteable = None self._is_downloadable = None self._is_hidden = None + self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -289,18 +298,21 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._status_str = None self._status_updated_at = None self._status_url = None + self._store_path = None self._subtype = None self._summary = None self._sync_finished_at = None self._sync_progress = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -362,6 +374,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -450,6 +464,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.status_updated_at = status_updated_at if status_url is not None: self.status_url = status_url + if store_path is not None: + self.store_path = store_path if subtype is not None: self.subtype = subtype if summary is not None: @@ -462,6 +478,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -474,6 +492,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.version = version if version_orig is not None: self.version_orig = version_orig + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -1110,6 +1130,29 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this AlpinePackageUpload. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this AlpinePackageUpload. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this AlpinePackageUpload. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this AlpinePackageUpload. + :type: bool + """ + + self._is_malware_detected = is_malware_detected + @property def is_moveable(self): """Gets the is_moveable of this AlpinePackageUpload. @@ -2110,6 +2153,32 @@ def status_url(self, status_url): self._status_url = status_url + @property + def store_path(self): + """Gets the store_path of this AlpinePackageUpload. + + Absolute store path for the package, including store hash and name. + + :return: The store_path of this AlpinePackageUpload. + :rtype: str + """ + return self._store_path + + @store_path.setter + def store_path(self, store_path): + """Sets the store_path of this AlpinePackageUpload. + + Absolute store path for the package, including store hash and name. + + :param store_path: The store_path of this AlpinePackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + store_path is not None and len(store_path) < 1): + raise ValueError("Invalid value for `store_path`, length must be greater than or equal to `1`") # noqa: E501 + + self._store_path = store_path + @property def subtype(self): """Gets the subtype of this AlpinePackageUpload. @@ -2242,6 +2311,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this AlpinePackageUpload. + + 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. + + :return: The tags_static of this AlpinePackageUpload. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this AlpinePackageUpload. + + 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. + + :param tags_static: The tags_static of this AlpinePackageUpload. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this AlpinePackageUpload. @@ -2375,6 +2467,27 @@ def version_orig(self, version_orig): self._version_orig = version_orig + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this AlpinePackageUpload. + + + :return: The vulnerability_counts of this AlpinePackageUpload. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this AlpinePackageUpload. + + + :param vulnerability_counts: The vulnerability_counts of this AlpinePackageUpload. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this AlpinePackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/alpine_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/alpine_package_upload_request.py index 2482c366..62cb0369 100644 --- a/bindings/python/src/cloudsmith_api/models/alpine_package_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/alpine_package_upload_request.py @@ -34,36 +34,46 @@ class AlpinePackageUploadRequest(object): """ swagger_types = { 'distribution': 'str', + 'is_malware_detected': 'bool', 'package_file': 'str', 'republish': 'bool', - 'tags': 'str' + 'tags': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { 'distribution': 'distribution', + 'is_malware_detected': 'is_malware_detected', 'package_file': 'package_file', 'republish': 'republish', - 'tags': 'tags' + 'tags': 'tags', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, distribution=None, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + def __init__(self, distribution=None, is_malware_detected=None, package_file=None, republish=None, tags=None, vulnerability_counts=None, _configuration=None): # noqa: E501 """AlpinePackageUploadRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration self._distribution = None + self._is_malware_detected = None self._package_file = None self._republish = None self._tags = None + self._vulnerability_counts = None self.discriminator = None self.distribution = distribution + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected self.package_file = package_file if republish is not None: self.republish = republish if tags is not None: self.tags = tags + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts @property def distribution(self): @@ -93,6 +103,29 @@ def distribution(self, distribution): self._distribution = distribution + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this AlpinePackageUploadRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this AlpinePackageUploadRequest. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this AlpinePackageUploadRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this AlpinePackageUploadRequest. + :type: bool + """ + + self._is_malware_detected = is_malware_detected + @property def package_file(self): """Gets the package_file of this AlpinePackageUploadRequest. @@ -173,6 +206,27 @@ def tags(self, tags): self._tags = tags + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this AlpinePackageUploadRequest. + + + :return: The vulnerability_counts of this AlpinePackageUploadRequest. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this AlpinePackageUploadRequest. + + + :param vulnerability_counts: The vulnerability_counts of this AlpinePackageUploadRequest. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/bindings/python/src/cloudsmith_api/models/cargo_package_upload.py b/bindings/python/src/cloudsmith_api/models/cargo_package_upload.py index f5e8a75f..24470108 100644 --- a/bindings/python/src/cloudsmith_api/models/cargo_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/cargo_package_upload.py @@ -62,6 +62,7 @@ class CargoPackageUpload(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', + 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -106,18 +107,21 @@ class CargoPackageUpload(object): 'status_str': 'str', 'status_updated_at': 'datetime', 'status_url': 'str', + 'store_path': 'str', 'subtype': 'str', 'summary': 'str', 'sync_finished_at': 'datetime', 'sync_progress': 'int', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -151,6 +155,7 @@ class CargoPackageUpload(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', + 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -195,22 +200,25 @@ class CargoPackageUpload(object): 'status_str': 'status_str', 'status_updated_at': 'status_updated_at', 'status_url': 'status_url', + 'store_path': 'store_path', 'subtype': 'subtype', 'summary': 'summary', 'sync_finished_at': 'sync_finished_at', 'sync_progress': 'sync_progress', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', + 'vulnerability_counts': 'vulnerability_counts', 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_malware_detected=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 """CargoPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -245,6 +253,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_deleteable = None self._is_downloadable = None self._is_hidden = None + self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -289,18 +298,21 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._status_str = None self._status_updated_at = None self._status_url = None + self._store_path = None self._subtype = None self._summary = None self._sync_finished_at = None self._sync_progress = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -362,6 +374,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -450,6 +464,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.status_updated_at = status_updated_at if status_url is not None: self.status_url = status_url + if store_path is not None: + self.store_path = store_path if subtype is not None: self.subtype = subtype if summary is not None: @@ -462,6 +478,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -474,6 +492,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.version = version if version_orig is not None: self.version_orig = version_orig + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -1110,6 +1130,29 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this CargoPackageUpload. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this CargoPackageUpload. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this CargoPackageUpload. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this CargoPackageUpload. + :type: bool + """ + + self._is_malware_detected = is_malware_detected + @property def is_moveable(self): """Gets the is_moveable of this CargoPackageUpload. @@ -2110,6 +2153,32 @@ def status_url(self, status_url): self._status_url = status_url + @property + def store_path(self): + """Gets the store_path of this CargoPackageUpload. + + Absolute store path for the package, including store hash and name. + + :return: The store_path of this CargoPackageUpload. + :rtype: str + """ + return self._store_path + + @store_path.setter + def store_path(self, store_path): + """Sets the store_path of this CargoPackageUpload. + + Absolute store path for the package, including store hash and name. + + :param store_path: The store_path of this CargoPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + store_path is not None and len(store_path) < 1): + raise ValueError("Invalid value for `store_path`, length must be greater than or equal to `1`") # noqa: E501 + + self._store_path = store_path + @property def subtype(self): """Gets the subtype of this CargoPackageUpload. @@ -2242,6 +2311,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this CargoPackageUpload. + + 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. + + :return: The tags_static of this CargoPackageUpload. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this CargoPackageUpload. + + 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. + + :param tags_static: The tags_static of this CargoPackageUpload. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this CargoPackageUpload. @@ -2375,6 +2467,27 @@ def version_orig(self, version_orig): self._version_orig = version_orig + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this CargoPackageUpload. + + + :return: The vulnerability_counts of this CargoPackageUpload. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this CargoPackageUpload. + + + :param vulnerability_counts: The vulnerability_counts of this CargoPackageUpload. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this CargoPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/cargo_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/cargo_package_upload_request.py index 70534140..7cb58216 100644 --- a/bindings/python/src/cloudsmith_api/models/cargo_package_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/cargo_package_upload_request.py @@ -33,33 +33,66 @@ class CargoPackageUploadRequest(object): and the value is json key in definition. """ swagger_types = { + 'is_malware_detected': 'bool', 'package_file': 'str', 'republish': 'bool', - 'tags': 'str' + 'tags': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { + 'is_malware_detected': 'is_malware_detected', 'package_file': 'package_file', 'republish': 'republish', - 'tags': 'tags' + 'tags': 'tags', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + def __init__(self, is_malware_detected=None, package_file=None, republish=None, tags=None, vulnerability_counts=None, _configuration=None): # noqa: E501 """CargoPackageUploadRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration + self._is_malware_detected = None self._package_file = None self._republish = None self._tags = None + self._vulnerability_counts = None self.discriminator = None + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected self.package_file = package_file if republish is not None: self.republish = republish if tags is not None: self.tags = tags + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts + + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this CargoPackageUploadRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this CargoPackageUploadRequest. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this CargoPackageUploadRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this CargoPackageUploadRequest. + :type: bool + """ + + self._is_malware_detected = is_malware_detected @property def package_file(self): @@ -141,6 +174,27 @@ def tags(self, tags): self._tags = tags + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this CargoPackageUploadRequest. + + + :return: The vulnerability_counts of this CargoPackageUploadRequest. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this CargoPackageUploadRequest. + + + :param vulnerability_counts: The vulnerability_counts of this CargoPackageUploadRequest. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/bindings/python/src/cloudsmith_api/models/cocoapods_package_upload.py b/bindings/python/src/cloudsmith_api/models/cocoapods_package_upload.py index ff40a2af..fc40dd2c 100644 --- a/bindings/python/src/cloudsmith_api/models/cocoapods_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/cocoapods_package_upload.py @@ -62,6 +62,7 @@ class CocoapodsPackageUpload(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', + 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -106,18 +107,21 @@ class CocoapodsPackageUpload(object): 'status_str': 'str', 'status_updated_at': 'datetime', 'status_url': 'str', + 'store_path': 'str', 'subtype': 'str', 'summary': 'str', 'sync_finished_at': 'datetime', 'sync_progress': 'int', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -151,6 +155,7 @@ class CocoapodsPackageUpload(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', + 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -195,22 +200,25 @@ class CocoapodsPackageUpload(object): 'status_str': 'status_str', 'status_updated_at': 'status_updated_at', 'status_url': 'status_url', + 'store_path': 'store_path', 'subtype': 'subtype', 'summary': 'summary', 'sync_finished_at': 'sync_finished_at', 'sync_progress': 'sync_progress', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', + 'vulnerability_counts': 'vulnerability_counts', 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_malware_detected=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 """CocoapodsPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -245,6 +253,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_deleteable = None self._is_downloadable = None self._is_hidden = None + self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -289,18 +298,21 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._status_str = None self._status_updated_at = None self._status_url = None + self._store_path = None self._subtype = None self._summary = None self._sync_finished_at = None self._sync_progress = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -362,6 +374,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -450,6 +464,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.status_updated_at = status_updated_at if status_url is not None: self.status_url = status_url + if store_path is not None: + self.store_path = store_path if subtype is not None: self.subtype = subtype if summary is not None: @@ -462,6 +478,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -474,6 +492,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.version = version if version_orig is not None: self.version_orig = version_orig + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -1110,6 +1130,29 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this CocoapodsPackageUpload. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this CocoapodsPackageUpload. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this CocoapodsPackageUpload. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this CocoapodsPackageUpload. + :type: bool + """ + + self._is_malware_detected = is_malware_detected + @property def is_moveable(self): """Gets the is_moveable of this CocoapodsPackageUpload. @@ -2110,6 +2153,32 @@ def status_url(self, status_url): self._status_url = status_url + @property + def store_path(self): + """Gets the store_path of this CocoapodsPackageUpload. + + Absolute store path for the package, including store hash and name. + + :return: The store_path of this CocoapodsPackageUpload. + :rtype: str + """ + return self._store_path + + @store_path.setter + def store_path(self, store_path): + """Sets the store_path of this CocoapodsPackageUpload. + + Absolute store path for the package, including store hash and name. + + :param store_path: The store_path of this CocoapodsPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + store_path is not None and len(store_path) < 1): + raise ValueError("Invalid value for `store_path`, length must be greater than or equal to `1`") # noqa: E501 + + self._store_path = store_path + @property def subtype(self): """Gets the subtype of this CocoapodsPackageUpload. @@ -2242,6 +2311,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this CocoapodsPackageUpload. + + 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. + + :return: The tags_static of this CocoapodsPackageUpload. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this CocoapodsPackageUpload. + + 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. + + :param tags_static: The tags_static of this CocoapodsPackageUpload. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this CocoapodsPackageUpload. @@ -2375,6 +2467,27 @@ def version_orig(self, version_orig): self._version_orig = version_orig + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this CocoapodsPackageUpload. + + + :return: The vulnerability_counts of this CocoapodsPackageUpload. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this CocoapodsPackageUpload. + + + :param vulnerability_counts: The vulnerability_counts of this CocoapodsPackageUpload. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this CocoapodsPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/cocoapods_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/cocoapods_package_upload_request.py index ba0804f9..8d393f1e 100644 --- a/bindings/python/src/cloudsmith_api/models/cocoapods_package_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/cocoapods_package_upload_request.py @@ -33,33 +33,66 @@ class CocoapodsPackageUploadRequest(object): and the value is json key in definition. """ swagger_types = { + 'is_malware_detected': 'bool', 'package_file': 'str', 'republish': 'bool', - 'tags': 'str' + 'tags': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { + 'is_malware_detected': 'is_malware_detected', 'package_file': 'package_file', 'republish': 'republish', - 'tags': 'tags' + 'tags': 'tags', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + def __init__(self, is_malware_detected=None, package_file=None, republish=None, tags=None, vulnerability_counts=None, _configuration=None): # noqa: E501 """CocoapodsPackageUploadRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration + self._is_malware_detected = None self._package_file = None self._republish = None self._tags = None + self._vulnerability_counts = None self.discriminator = None + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected self.package_file = package_file if republish is not None: self.republish = republish if tags is not None: self.tags = tags + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts + + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this CocoapodsPackageUploadRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this CocoapodsPackageUploadRequest. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this CocoapodsPackageUploadRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this CocoapodsPackageUploadRequest. + :type: bool + """ + + self._is_malware_detected = is_malware_detected @property def package_file(self): @@ -141,6 +174,27 @@ def tags(self, tags): self._tags = tags + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this CocoapodsPackageUploadRequest. + + + :return: The vulnerability_counts of this CocoapodsPackageUploadRequest. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this CocoapodsPackageUploadRequest. + + + :param vulnerability_counts: The vulnerability_counts of this CocoapodsPackageUploadRequest. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/bindings/python/src/cloudsmith_api/models/composer_package_upload.py b/bindings/python/src/cloudsmith_api/models/composer_package_upload.py index 3590eebe..d5e59b72 100644 --- a/bindings/python/src/cloudsmith_api/models/composer_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/composer_package_upload.py @@ -62,6 +62,7 @@ class ComposerPackageUpload(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', + 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -106,18 +107,21 @@ class ComposerPackageUpload(object): 'status_str': 'str', 'status_updated_at': 'datetime', 'status_url': 'str', + 'store_path': 'str', 'subtype': 'str', 'summary': 'str', 'sync_finished_at': 'datetime', 'sync_progress': 'int', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -151,6 +155,7 @@ class ComposerPackageUpload(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', + 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -195,22 +200,25 @@ class ComposerPackageUpload(object): 'status_str': 'status_str', 'status_updated_at': 'status_updated_at', 'status_url': 'status_url', + 'store_path': 'store_path', 'subtype': 'subtype', 'summary': 'summary', 'sync_finished_at': 'sync_finished_at', 'sync_progress': 'sync_progress', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', + 'vulnerability_counts': 'vulnerability_counts', 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_malware_detected=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 """ComposerPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -245,6 +253,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_deleteable = None self._is_downloadable = None self._is_hidden = None + self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -289,18 +298,21 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._status_str = None self._status_updated_at = None self._status_url = None + self._store_path = None self._subtype = None self._summary = None self._sync_finished_at = None self._sync_progress = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -362,6 +374,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -450,6 +464,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.status_updated_at = status_updated_at if status_url is not None: self.status_url = status_url + if store_path is not None: + self.store_path = store_path if subtype is not None: self.subtype = subtype if summary is not None: @@ -462,6 +478,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -474,6 +492,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.version = version if version_orig is not None: self.version_orig = version_orig + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -1110,6 +1130,29 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this ComposerPackageUpload. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this ComposerPackageUpload. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this ComposerPackageUpload. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this ComposerPackageUpload. + :type: bool + """ + + self._is_malware_detected = is_malware_detected + @property def is_moveable(self): """Gets the is_moveable of this ComposerPackageUpload. @@ -2110,6 +2153,32 @@ def status_url(self, status_url): self._status_url = status_url + @property + def store_path(self): + """Gets the store_path of this ComposerPackageUpload. + + Absolute store path for the package, including store hash and name. + + :return: The store_path of this ComposerPackageUpload. + :rtype: str + """ + return self._store_path + + @store_path.setter + def store_path(self, store_path): + """Sets the store_path of this ComposerPackageUpload. + + Absolute store path for the package, including store hash and name. + + :param store_path: The store_path of this ComposerPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + store_path is not None and len(store_path) < 1): + raise ValueError("Invalid value for `store_path`, length must be greater than or equal to `1`") # noqa: E501 + + self._store_path = store_path + @property def subtype(self): """Gets the subtype of this ComposerPackageUpload. @@ -2242,6 +2311,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this ComposerPackageUpload. + + 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. + + :return: The tags_static of this ComposerPackageUpload. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this ComposerPackageUpload. + + 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. + + :param tags_static: The tags_static of this ComposerPackageUpload. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this ComposerPackageUpload. @@ -2378,6 +2470,27 @@ def version_orig(self, version_orig): self._version_orig = version_orig + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this ComposerPackageUpload. + + + :return: The vulnerability_counts of this ComposerPackageUpload. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this ComposerPackageUpload. + + + :param vulnerability_counts: The vulnerability_counts of this ComposerPackageUpload. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this ComposerPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/composer_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/composer_package_upload_request.py index 738575fd..d80323e6 100644 --- a/bindings/python/src/cloudsmith_api/models/composer_package_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/composer_package_upload_request.py @@ -33,31 +33,39 @@ class ComposerPackageUploadRequest(object): and the value is json key in definition. """ swagger_types = { + 'is_malware_detected': 'bool', 'package_file': 'str', 'republish': 'bool', 'tags': 'str', - 'version': 'str' + 'version': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { + 'is_malware_detected': 'is_malware_detected', 'package_file': 'package_file', 'republish': 'republish', 'tags': 'tags', - 'version': 'version' + 'version': 'version', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, package_file=None, republish=None, tags=None, version=None, _configuration=None): # noqa: E501 + def __init__(self, is_malware_detected=None, package_file=None, republish=None, tags=None, version=None, vulnerability_counts=None, _configuration=None): # noqa: E501 """ComposerPackageUploadRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration + self._is_malware_detected = None self._package_file = None self._republish = None self._tags = None self._version = None + self._vulnerability_counts = None self.discriminator = None + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected self.package_file = package_file if republish is not None: self.republish = republish @@ -65,6 +73,31 @@ def __init__(self, package_file=None, republish=None, tags=None, version=None, _ self.tags = tags if version is not None: self.version = version + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts + + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this ComposerPackageUploadRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this ComposerPackageUploadRequest. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this ComposerPackageUploadRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this ComposerPackageUploadRequest. + :type: bool + """ + + self._is_malware_detected = is_malware_detected @property def package_file(self): @@ -172,6 +205,27 @@ def version(self, version): self._version = version + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this ComposerPackageUploadRequest. + + + :return: The vulnerability_counts of this ComposerPackageUploadRequest. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this ComposerPackageUploadRequest. + + + :param vulnerability_counts: The vulnerability_counts of this ComposerPackageUploadRequest. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/bindings/python/src/cloudsmith_api/models/conan_package_upload.py b/bindings/python/src/cloudsmith_api/models/conan_package_upload.py index 52ce40dc..be0b443f 100644 --- a/bindings/python/src/cloudsmith_api/models/conan_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/conan_package_upload.py @@ -64,6 +64,7 @@ class ConanPackageUpload(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', + 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -108,18 +109,21 @@ class ConanPackageUpload(object): 'status_str': 'str', 'status_updated_at': 'datetime', 'status_url': 'str', + 'store_path': 'str', 'subtype': 'str', 'summary': 'str', 'sync_finished_at': 'datetime', 'sync_progress': 'int', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -155,6 +159,7 @@ class ConanPackageUpload(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', + 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -199,22 +204,25 @@ class ConanPackageUpload(object): 'status_str': 'status_str', 'status_updated_at': 'status_updated_at', 'status_url': 'status_url', + 'store_path': 'store_path', 'subtype': 'subtype', 'summary': 'summary', 'sync_finished_at': 'sync_finished_at', 'sync_progress': 'sync_progress', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', + 'vulnerability_counts': 'vulnerability_counts', 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, conan_channel=None, conan_prefix=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, conan_channel=None, conan_prefix=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_malware_detected=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 """ConanPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -251,6 +259,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_deleteable = None self._is_downloadable = None self._is_hidden = None + self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -295,18 +304,21 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._status_str = None self._status_updated_at = None self._status_url = None + self._store_path = None self._subtype = None self._summary = None self._sync_finished_at = None self._sync_progress = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -372,6 +384,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -460,6 +474,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.status_updated_at = status_updated_at if status_url is not None: self.status_url = status_url + if store_path is not None: + self.store_path = store_path if subtype is not None: self.subtype = subtype if summary is not None: @@ -472,6 +488,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -484,6 +502,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.version = version if version_orig is not None: self.version_orig = version_orig + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -1178,6 +1198,29 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this ConanPackageUpload. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this ConanPackageUpload. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this ConanPackageUpload. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this ConanPackageUpload. + :type: bool + """ + + self._is_malware_detected = is_malware_detected + @property def is_moveable(self): """Gets the is_moveable of this ConanPackageUpload. @@ -2181,6 +2224,32 @@ def status_url(self, status_url): self._status_url = status_url + @property + def store_path(self): + """Gets the store_path of this ConanPackageUpload. + + Absolute store path for the package, including store hash and name. + + :return: The store_path of this ConanPackageUpload. + :rtype: str + """ + return self._store_path + + @store_path.setter + def store_path(self, store_path): + """Sets the store_path of this ConanPackageUpload. + + Absolute store path for the package, including store hash and name. + + :param store_path: The store_path of this ConanPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + store_path is not None and len(store_path) < 1): + raise ValueError("Invalid value for `store_path`, length must be greater than or equal to `1`") # noqa: E501 + + self._store_path = store_path + @property def subtype(self): """Gets the subtype of this ConanPackageUpload. @@ -2313,6 +2382,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this ConanPackageUpload. + + 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. + + :return: The tags_static of this ConanPackageUpload. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this ConanPackageUpload. + + 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. + + :param tags_static: The tags_static of this ConanPackageUpload. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this ConanPackageUpload. @@ -2449,6 +2541,27 @@ def version_orig(self, version_orig): self._version_orig = version_orig + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this ConanPackageUpload. + + + :return: The vulnerability_counts of this ConanPackageUpload. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this ConanPackageUpload. + + + :param vulnerability_counts: The vulnerability_counts of this ConanPackageUpload. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this ConanPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/conan_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/conan_package_upload_request.py index c7c436d3..a08ecd67 100644 --- a/bindings/python/src/cloudsmith_api/models/conan_package_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/conan_package_upload_request.py @@ -36,29 +36,33 @@ class ConanPackageUploadRequest(object): 'conan_channel': 'str', 'conan_prefix': 'str', 'info_file': 'str', + 'is_malware_detected': 'bool', 'manifest_file': 'str', 'metadata_file': 'str', 'name': 'str', 'package_file': 'str', 'republish': 'bool', 'tags': 'str', - 'version': 'str' + 'version': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { 'conan_channel': 'conan_channel', 'conan_prefix': 'conan_prefix', 'info_file': 'info_file', + 'is_malware_detected': 'is_malware_detected', 'manifest_file': 'manifest_file', 'metadata_file': 'metadata_file', 'name': 'name', 'package_file': 'package_file', 'republish': 'republish', 'tags': 'tags', - 'version': 'version' + 'version': 'version', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, conan_channel=None, conan_prefix=None, info_file=None, manifest_file=None, metadata_file=None, name=None, package_file=None, republish=None, tags=None, version=None, _configuration=None): # noqa: E501 + def __init__(self, conan_channel=None, conan_prefix=None, info_file=None, is_malware_detected=None, manifest_file=None, metadata_file=None, name=None, package_file=None, republish=None, tags=None, version=None, vulnerability_counts=None, _configuration=None): # noqa: E501 """ConanPackageUploadRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -67,6 +71,7 @@ def __init__(self, conan_channel=None, conan_prefix=None, info_file=None, manife self._conan_channel = None self._conan_prefix = None self._info_file = None + self._is_malware_detected = None self._manifest_file = None self._metadata_file = None self._name = None @@ -74,6 +79,7 @@ def __init__(self, conan_channel=None, conan_prefix=None, info_file=None, manife self._republish = None self._tags = None self._version = None + self._vulnerability_counts = None self.discriminator = None if conan_channel is not None: @@ -81,6 +87,8 @@ def __init__(self, conan_channel=None, conan_prefix=None, info_file=None, manife if conan_prefix is not None: self.conan_prefix = conan_prefix self.info_file = info_file + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected self.manifest_file = manifest_file self.metadata_file = metadata_file if name is not None: @@ -92,6 +100,8 @@ def __init__(self, conan_channel=None, conan_prefix=None, info_file=None, manife self.tags = tags if version is not None: self.version = version + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts @property def conan_channel(self): @@ -179,6 +189,29 @@ def info_file(self, info_file): self._info_file = info_file + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this ConanPackageUploadRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this ConanPackageUploadRequest. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this ConanPackageUploadRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this ConanPackageUploadRequest. + :type: bool + """ + + self._is_malware_detected = is_malware_detected + @property def manifest_file(self): """Gets the manifest_file of this ConanPackageUploadRequest. @@ -367,6 +400,27 @@ def version(self, version): self._version = version + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this ConanPackageUploadRequest. + + + :return: The vulnerability_counts of this ConanPackageUploadRequest. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this ConanPackageUploadRequest. + + + :param vulnerability_counts: The vulnerability_counts of this ConanPackageUploadRequest. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/bindings/python/src/cloudsmith_api/models/conda_package_upload.py b/bindings/python/src/cloudsmith_api/models/conda_package_upload.py index 5679d469..4abf22a0 100644 --- a/bindings/python/src/cloudsmith_api/models/conda_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/conda_package_upload.py @@ -62,6 +62,7 @@ class CondaPackageUpload(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', + 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -106,18 +107,21 @@ class CondaPackageUpload(object): 'status_str': 'str', 'status_updated_at': 'datetime', 'status_url': 'str', + 'store_path': 'str', 'subtype': 'str', 'summary': 'str', 'sync_finished_at': 'datetime', 'sync_progress': 'int', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -151,6 +155,7 @@ class CondaPackageUpload(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', + 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -195,22 +200,25 @@ class CondaPackageUpload(object): 'status_str': 'status_str', 'status_updated_at': 'status_updated_at', 'status_url': 'status_url', + 'store_path': 'store_path', 'subtype': 'subtype', 'summary': 'summary', 'sync_finished_at': 'sync_finished_at', 'sync_progress': 'sync_progress', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', + 'vulnerability_counts': 'vulnerability_counts', 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_malware_detected=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 """CondaPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -245,6 +253,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_deleteable = None self._is_downloadable = None self._is_hidden = None + self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -289,18 +298,21 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._status_str = None self._status_updated_at = None self._status_url = None + self._store_path = None self._subtype = None self._summary = None self._sync_finished_at = None self._sync_progress = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -362,6 +374,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -450,6 +464,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.status_updated_at = status_updated_at if status_url is not None: self.status_url = status_url + if store_path is not None: + self.store_path = store_path if subtype is not None: self.subtype = subtype if summary is not None: @@ -462,6 +478,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -474,6 +492,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.version = version if version_orig is not None: self.version_orig = version_orig + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -1110,6 +1130,29 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this CondaPackageUpload. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this CondaPackageUpload. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this CondaPackageUpload. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this CondaPackageUpload. + :type: bool + """ + + self._is_malware_detected = is_malware_detected + @property def is_moveable(self): """Gets the is_moveable of this CondaPackageUpload. @@ -2110,6 +2153,32 @@ def status_url(self, status_url): self._status_url = status_url + @property + def store_path(self): + """Gets the store_path of this CondaPackageUpload. + + Absolute store path for the package, including store hash and name. + + :return: The store_path of this CondaPackageUpload. + :rtype: str + """ + return self._store_path + + @store_path.setter + def store_path(self, store_path): + """Sets the store_path of this CondaPackageUpload. + + Absolute store path for the package, including store hash and name. + + :param store_path: The store_path of this CondaPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + store_path is not None and len(store_path) < 1): + raise ValueError("Invalid value for `store_path`, length must be greater than or equal to `1`") # noqa: E501 + + self._store_path = store_path + @property def subtype(self): """Gets the subtype of this CondaPackageUpload. @@ -2242,6 +2311,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this CondaPackageUpload. + + 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. + + :return: The tags_static of this CondaPackageUpload. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this CondaPackageUpload. + + 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. + + :param tags_static: The tags_static of this CondaPackageUpload. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this CondaPackageUpload. @@ -2375,6 +2467,27 @@ def version_orig(self, version_orig): self._version_orig = version_orig + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this CondaPackageUpload. + + + :return: The vulnerability_counts of this CondaPackageUpload. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this CondaPackageUpload. + + + :param vulnerability_counts: The vulnerability_counts of this CondaPackageUpload. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this CondaPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/conda_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/conda_package_upload_request.py index 0ce3eaea..c8765d25 100644 --- a/bindings/python/src/cloudsmith_api/models/conda_package_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/conda_package_upload_request.py @@ -33,33 +33,66 @@ class CondaPackageUploadRequest(object): and the value is json key in definition. """ swagger_types = { + 'is_malware_detected': 'bool', 'package_file': 'str', 'republish': 'bool', - 'tags': 'str' + 'tags': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { + 'is_malware_detected': 'is_malware_detected', 'package_file': 'package_file', 'republish': 'republish', - 'tags': 'tags' + 'tags': 'tags', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + def __init__(self, is_malware_detected=None, package_file=None, republish=None, tags=None, vulnerability_counts=None, _configuration=None): # noqa: E501 """CondaPackageUploadRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration + self._is_malware_detected = None self._package_file = None self._republish = None self._tags = None + self._vulnerability_counts = None self.discriminator = None + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected self.package_file = package_file if republish is not None: self.republish = republish if tags is not None: self.tags = tags + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts + + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this CondaPackageUploadRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this CondaPackageUploadRequest. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this CondaPackageUploadRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this CondaPackageUploadRequest. + :type: bool + """ + + self._is_malware_detected = is_malware_detected @property def package_file(self): @@ -141,6 +174,27 @@ def tags(self, tags): self._tags = tags + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this CondaPackageUploadRequest. + + + :return: The vulnerability_counts of this CondaPackageUploadRequest. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this CondaPackageUploadRequest. + + + :param vulnerability_counts: The vulnerability_counts of this CondaPackageUploadRequest. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/bindings/python/src/cloudsmith_api/models/cran_package_upload.py b/bindings/python/src/cloudsmith_api/models/cran_package_upload.py index 784a6188..5a12a8b9 100644 --- a/bindings/python/src/cloudsmith_api/models/cran_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/cran_package_upload.py @@ -62,6 +62,7 @@ class CranPackageUpload(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', + 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -107,18 +108,21 @@ class CranPackageUpload(object): 'status_str': 'str', 'status_updated_at': 'datetime', 'status_url': 'str', + 'store_path': 'str', 'subtype': 'str', 'summary': 'str', 'sync_finished_at': 'datetime', 'sync_progress': 'int', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -152,6 +156,7 @@ class CranPackageUpload(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', + 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -197,22 +202,25 @@ class CranPackageUpload(object): 'status_str': 'status_str', 'status_updated_at': 'status_updated_at', 'status_url': 'status_url', + 'store_path': 'store_path', 'subtype': 'subtype', 'summary': 'summary', 'sync_finished_at': 'sync_finished_at', 'sync_progress': 'sync_progress', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', + 'vulnerability_counts': 'vulnerability_counts', 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, r_version=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_malware_detected=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, r_version=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 """CranPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -247,6 +255,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_deleteable = None self._is_downloadable = None self._is_hidden = None + self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -292,18 +301,21 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._status_str = None self._status_updated_at = None self._status_url = None + self._store_path = None self._subtype = None self._summary = None self._sync_finished_at = None self._sync_progress = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -365,6 +377,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -455,6 +469,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.status_updated_at = status_updated_at if status_url is not None: self.status_url = status_url + if store_path is not None: + self.store_path = store_path if subtype is not None: self.subtype = subtype if summary is not None: @@ -467,6 +483,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -479,6 +497,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.version = version if version_orig is not None: self.version_orig = version_orig + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -1115,6 +1135,29 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this CranPackageUpload. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this CranPackageUpload. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this CranPackageUpload. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this CranPackageUpload. + :type: bool + """ + + self._is_malware_detected = is_malware_detected + @property def is_moveable(self): """Gets the is_moveable of this CranPackageUpload. @@ -2144,6 +2187,32 @@ def status_url(self, status_url): self._status_url = status_url + @property + def store_path(self): + """Gets the store_path of this CranPackageUpload. + + Absolute store path for the package, including store hash and name. + + :return: The store_path of this CranPackageUpload. + :rtype: str + """ + return self._store_path + + @store_path.setter + def store_path(self, store_path): + """Sets the store_path of this CranPackageUpload. + + Absolute store path for the package, including store hash and name. + + :param store_path: The store_path of this CranPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + store_path is not None and len(store_path) < 1): + raise ValueError("Invalid value for `store_path`, length must be greater than or equal to `1`") # noqa: E501 + + self._store_path = store_path + @property def subtype(self): """Gets the subtype of this CranPackageUpload. @@ -2276,6 +2345,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this CranPackageUpload. + + 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. + + :return: The tags_static of this CranPackageUpload. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this CranPackageUpload. + + 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. + + :param tags_static: The tags_static of this CranPackageUpload. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this CranPackageUpload. @@ -2409,6 +2501,27 @@ def version_orig(self, version_orig): self._version_orig = version_orig + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this CranPackageUpload. + + + :return: The vulnerability_counts of this CranPackageUpload. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this CranPackageUpload. + + + :param vulnerability_counts: The vulnerability_counts of this CranPackageUpload. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this CranPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/cran_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/cran_package_upload_request.py index c7c5fb53..f0a1b589 100644 --- a/bindings/python/src/cloudsmith_api/models/cran_package_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/cran_package_upload_request.py @@ -34,35 +34,43 @@ class CranPackageUploadRequest(object): """ swagger_types = { 'architecture': 'str', + 'is_malware_detected': 'bool', 'package_file': 'str', 'r_version': 'str', 'republish': 'bool', - 'tags': 'str' + 'tags': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { 'architecture': 'architecture', + 'is_malware_detected': 'is_malware_detected', 'package_file': 'package_file', 'r_version': 'r_version', 'republish': 'republish', - 'tags': 'tags' + 'tags': 'tags', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, architecture=None, package_file=None, r_version=None, republish=None, tags=None, _configuration=None): # noqa: E501 + def __init__(self, architecture=None, is_malware_detected=None, package_file=None, r_version=None, republish=None, tags=None, vulnerability_counts=None, _configuration=None): # noqa: E501 """CranPackageUploadRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration self._architecture = None + self._is_malware_detected = None self._package_file = None self._r_version = None self._republish = None self._tags = None + self._vulnerability_counts = None self.discriminator = None if architecture is not None: self.architecture = architecture + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected self.package_file = package_file if r_version is not None: self.r_version = r_version @@ -70,6 +78,8 @@ def __init__(self, architecture=None, package_file=None, r_version=None, republi self.republish = republish if tags is not None: self.tags = tags + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts @property def architecture(self): @@ -97,6 +107,29 @@ def architecture(self, architecture): self._architecture = architecture + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this CranPackageUploadRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this CranPackageUploadRequest. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this CranPackageUploadRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this CranPackageUploadRequest. + :type: bool + """ + + self._is_malware_detected = is_malware_detected + @property def package_file(self): """Gets the package_file of this CranPackageUploadRequest. @@ -206,6 +239,27 @@ def tags(self, tags): self._tags = tags + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this CranPackageUploadRequest. + + + :return: The vulnerability_counts of this CranPackageUploadRequest. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this CranPackageUploadRequest. + + + :param vulnerability_counts: The vulnerability_counts of this CranPackageUploadRequest. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/bindings/python/src/cloudsmith_api/models/dart_package_upload.py b/bindings/python/src/cloudsmith_api/models/dart_package_upload.py index dbf8370c..385426e0 100644 --- a/bindings/python/src/cloudsmith_api/models/dart_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/dart_package_upload.py @@ -62,6 +62,7 @@ class DartPackageUpload(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', + 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -106,18 +107,21 @@ class DartPackageUpload(object): 'status_str': 'str', 'status_updated_at': 'datetime', 'status_url': 'str', + 'store_path': 'str', 'subtype': 'str', 'summary': 'str', 'sync_finished_at': 'datetime', 'sync_progress': 'int', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -151,6 +155,7 @@ class DartPackageUpload(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', + 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -195,22 +200,25 @@ class DartPackageUpload(object): 'status_str': 'status_str', 'status_updated_at': 'status_updated_at', 'status_url': 'status_url', + 'store_path': 'store_path', 'subtype': 'subtype', 'summary': 'summary', 'sync_finished_at': 'sync_finished_at', 'sync_progress': 'sync_progress', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', + 'vulnerability_counts': 'vulnerability_counts', 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_malware_detected=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 """DartPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -245,6 +253,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_deleteable = None self._is_downloadable = None self._is_hidden = None + self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -289,18 +298,21 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._status_str = None self._status_updated_at = None self._status_url = None + self._store_path = None self._subtype = None self._summary = None self._sync_finished_at = None self._sync_progress = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -362,6 +374,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -450,6 +464,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.status_updated_at = status_updated_at if status_url is not None: self.status_url = status_url + if store_path is not None: + self.store_path = store_path if subtype is not None: self.subtype = subtype if summary is not None: @@ -462,6 +478,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -474,6 +492,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.version = version if version_orig is not None: self.version_orig = version_orig + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -1110,6 +1130,29 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this DartPackageUpload. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this DartPackageUpload. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this DartPackageUpload. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this DartPackageUpload. + :type: bool + """ + + self._is_malware_detected = is_malware_detected + @property def is_moveable(self): """Gets the is_moveable of this DartPackageUpload. @@ -2110,6 +2153,32 @@ def status_url(self, status_url): self._status_url = status_url + @property + def store_path(self): + """Gets the store_path of this DartPackageUpload. + + Absolute store path for the package, including store hash and name. + + :return: The store_path of this DartPackageUpload. + :rtype: str + """ + return self._store_path + + @store_path.setter + def store_path(self, store_path): + """Sets the store_path of this DartPackageUpload. + + Absolute store path for the package, including store hash and name. + + :param store_path: The store_path of this DartPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + store_path is not None and len(store_path) < 1): + raise ValueError("Invalid value for `store_path`, length must be greater than or equal to `1`") # noqa: E501 + + self._store_path = store_path + @property def subtype(self): """Gets the subtype of this DartPackageUpload. @@ -2242,6 +2311,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this DartPackageUpload. + + 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. + + :return: The tags_static of this DartPackageUpload. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this DartPackageUpload. + + 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. + + :param tags_static: The tags_static of this DartPackageUpload. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this DartPackageUpload. @@ -2375,6 +2467,27 @@ def version_orig(self, version_orig): self._version_orig = version_orig + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this DartPackageUpload. + + + :return: The vulnerability_counts of this DartPackageUpload. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this DartPackageUpload. + + + :param vulnerability_counts: The vulnerability_counts of this DartPackageUpload. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this DartPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/dart_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/dart_package_upload_request.py index e171256e..5c0268ef 100644 --- a/bindings/python/src/cloudsmith_api/models/dart_package_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/dart_package_upload_request.py @@ -33,33 +33,66 @@ class DartPackageUploadRequest(object): and the value is json key in definition. """ swagger_types = { + 'is_malware_detected': 'bool', 'package_file': 'str', 'republish': 'bool', - 'tags': 'str' + 'tags': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { + 'is_malware_detected': 'is_malware_detected', 'package_file': 'package_file', 'republish': 'republish', - 'tags': 'tags' + 'tags': 'tags', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + def __init__(self, is_malware_detected=None, package_file=None, republish=None, tags=None, vulnerability_counts=None, _configuration=None): # noqa: E501 """DartPackageUploadRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration + self._is_malware_detected = None self._package_file = None self._republish = None self._tags = None + self._vulnerability_counts = None self.discriminator = None + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected self.package_file = package_file if republish is not None: self.republish = republish if tags is not None: self.tags = tags + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts + + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this DartPackageUploadRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this DartPackageUploadRequest. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this DartPackageUploadRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this DartPackageUploadRequest. + :type: bool + """ + + self._is_malware_detected = is_malware_detected @property def package_file(self): @@ -141,6 +174,27 @@ def tags(self, tags): self._tags = tags + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this DartPackageUploadRequest. + + + :return: The vulnerability_counts of this DartPackageUploadRequest. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this DartPackageUploadRequest. + + + :param vulnerability_counts: The vulnerability_counts of this DartPackageUploadRequest. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/bindings/python/src/cloudsmith_api/models/deb_package_upload.py b/bindings/python/src/cloudsmith_api/models/deb_package_upload.py index c18ce285..c77a8c18 100644 --- a/bindings/python/src/cloudsmith_api/models/deb_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/deb_package_upload.py @@ -62,6 +62,7 @@ class DebPackageUpload(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', + 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -106,18 +107,21 @@ class DebPackageUpload(object): 'status_str': 'str', 'status_updated_at': 'datetime', 'status_url': 'str', + 'store_path': 'str', 'subtype': 'str', 'summary': 'str', 'sync_finished_at': 'datetime', 'sync_progress': 'int', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -151,6 +155,7 @@ class DebPackageUpload(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', + 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -195,22 +200,25 @@ class DebPackageUpload(object): 'status_str': 'status_str', 'status_updated_at': 'status_updated_at', 'status_url': 'status_url', + 'store_path': 'store_path', 'subtype': 'subtype', 'summary': 'summary', 'sync_finished_at': 'sync_finished_at', 'sync_progress': 'sync_progress', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', + 'vulnerability_counts': 'vulnerability_counts', 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_malware_detected=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 """DebPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -245,6 +253,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_deleteable = None self._is_downloadable = None self._is_hidden = None + self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -289,18 +298,21 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._status_str = None self._status_updated_at = None self._status_url = None + self._store_path = None self._subtype = None self._summary = None self._sync_finished_at = None self._sync_progress = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -362,6 +374,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -450,6 +464,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.status_updated_at = status_updated_at if status_url is not None: self.status_url = status_url + if store_path is not None: + self.store_path = store_path if subtype is not None: self.subtype = subtype if summary is not None: @@ -462,6 +478,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -474,6 +492,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.version = version if version_orig is not None: self.version_orig = version_orig + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -1110,6 +1130,29 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this DebPackageUpload. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this DebPackageUpload. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this DebPackageUpload. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this DebPackageUpload. + :type: bool + """ + + self._is_malware_detected = is_malware_detected + @property def is_moveable(self): """Gets the is_moveable of this DebPackageUpload. @@ -2110,6 +2153,32 @@ def status_url(self, status_url): self._status_url = status_url + @property + def store_path(self): + """Gets the store_path of this DebPackageUpload. + + Absolute store path for the package, including store hash and name. + + :return: The store_path of this DebPackageUpload. + :rtype: str + """ + return self._store_path + + @store_path.setter + def store_path(self, store_path): + """Sets the store_path of this DebPackageUpload. + + Absolute store path for the package, including store hash and name. + + :param store_path: The store_path of this DebPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + store_path is not None and len(store_path) < 1): + raise ValueError("Invalid value for `store_path`, length must be greater than or equal to `1`") # noqa: E501 + + self._store_path = store_path + @property def subtype(self): """Gets the subtype of this DebPackageUpload. @@ -2242,6 +2311,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this DebPackageUpload. + + 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. + + :return: The tags_static of this DebPackageUpload. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this DebPackageUpload. + + 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. + + :param tags_static: The tags_static of this DebPackageUpload. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this DebPackageUpload. @@ -2375,6 +2467,27 @@ def version_orig(self, version_orig): self._version_orig = version_orig + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this DebPackageUpload. + + + :return: The vulnerability_counts of this DebPackageUpload. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this DebPackageUpload. + + + :param vulnerability_counts: The vulnerability_counts of this DebPackageUpload. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this DebPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/deb_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/deb_package_upload_request.py index ed8b05be..a8f39dbd 100644 --- a/bindings/python/src/cloudsmith_api/models/deb_package_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/deb_package_upload_request.py @@ -36,23 +36,27 @@ class DebPackageUploadRequest(object): 'changes_file': 'str', 'component': 'str', 'distribution': 'str', + 'is_malware_detected': 'bool', 'package_file': 'str', 'republish': 'bool', 'sources_file': 'str', - 'tags': 'str' + 'tags': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { 'changes_file': 'changes_file', 'component': 'component', 'distribution': 'distribution', + 'is_malware_detected': 'is_malware_detected', 'package_file': 'package_file', 'republish': 'republish', 'sources_file': 'sources_file', - 'tags': 'tags' + 'tags': 'tags', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, changes_file=None, component='main', distribution=None, package_file=None, republish=None, sources_file=None, tags=None, _configuration=None): # noqa: E501 + def __init__(self, changes_file=None, component='main', distribution=None, is_malware_detected=None, package_file=None, republish=None, sources_file=None, tags=None, vulnerability_counts=None, _configuration=None): # noqa: E501 """DebPackageUploadRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -61,10 +65,12 @@ def __init__(self, changes_file=None, component='main', distribution=None, packa self._changes_file = None self._component = None self._distribution = None + self._is_malware_detected = None self._package_file = None self._republish = None self._sources_file = None self._tags = None + self._vulnerability_counts = None self.discriminator = None if changes_file is not None: @@ -72,6 +78,8 @@ def __init__(self, changes_file=None, component='main', distribution=None, packa if component is not None: self.component = component self.distribution = distribution + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected self.package_file = package_file if republish is not None: self.republish = republish @@ -79,6 +87,8 @@ def __init__(self, changes_file=None, component='main', distribution=None, packa self.sources_file = sources_file if tags is not None: self.tags = tags + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts @property def changes_file(self): @@ -166,6 +176,29 @@ def distribution(self, distribution): self._distribution = distribution + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this DebPackageUploadRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this DebPackageUploadRequest. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this DebPackageUploadRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this DebPackageUploadRequest. + :type: bool + """ + + self._is_malware_detected = is_malware_detected + @property def package_file(self): """Gets the package_file of this DebPackageUploadRequest. @@ -272,6 +305,27 @@ def tags(self, tags): self._tags = tags + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this DebPackageUploadRequest. + + + :return: The vulnerability_counts of this DebPackageUploadRequest. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this DebPackageUploadRequest. + + + :param vulnerability_counts: The vulnerability_counts of this DebPackageUploadRequest. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/bindings/python/src/cloudsmith_api/models/docker_package_upload.py b/bindings/python/src/cloudsmith_api/models/docker_package_upload.py index e11964d2..34e3458b 100644 --- a/bindings/python/src/cloudsmith_api/models/docker_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/docker_package_upload.py @@ -62,6 +62,7 @@ class DockerPackageUpload(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', + 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -106,18 +107,21 @@ class DockerPackageUpload(object): 'status_str': 'str', 'status_updated_at': 'datetime', 'status_url': 'str', + 'store_path': 'str', 'subtype': 'str', 'summary': 'str', 'sync_finished_at': 'datetime', 'sync_progress': 'int', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -151,6 +155,7 @@ class DockerPackageUpload(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', + 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -195,22 +200,25 @@ class DockerPackageUpload(object): 'status_str': 'status_str', 'status_updated_at': 'status_updated_at', 'status_url': 'status_url', + 'store_path': 'store_path', 'subtype': 'subtype', 'summary': 'summary', 'sync_finished_at': 'sync_finished_at', 'sync_progress': 'sync_progress', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', + 'vulnerability_counts': 'vulnerability_counts', 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_malware_detected=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 """DockerPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -245,6 +253,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_deleteable = None self._is_downloadable = None self._is_hidden = None + self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -289,18 +298,21 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._status_str = None self._status_updated_at = None self._status_url = None + self._store_path = None self._subtype = None self._summary = None self._sync_finished_at = None self._sync_progress = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -362,6 +374,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -450,6 +464,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.status_updated_at = status_updated_at if status_url is not None: self.status_url = status_url + if store_path is not None: + self.store_path = store_path if subtype is not None: self.subtype = subtype if summary is not None: @@ -462,6 +478,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -474,6 +492,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.version = version if version_orig is not None: self.version_orig = version_orig + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -1110,6 +1130,29 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this DockerPackageUpload. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this DockerPackageUpload. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this DockerPackageUpload. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this DockerPackageUpload. + :type: bool + """ + + self._is_malware_detected = is_malware_detected + @property def is_moveable(self): """Gets the is_moveable of this DockerPackageUpload. @@ -2110,6 +2153,32 @@ def status_url(self, status_url): self._status_url = status_url + @property + def store_path(self): + """Gets the store_path of this DockerPackageUpload. + + Absolute store path for the package, including store hash and name. + + :return: The store_path of this DockerPackageUpload. + :rtype: str + """ + return self._store_path + + @store_path.setter + def store_path(self, store_path): + """Sets the store_path of this DockerPackageUpload. + + Absolute store path for the package, including store hash and name. + + :param store_path: The store_path of this DockerPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + store_path is not None and len(store_path) < 1): + raise ValueError("Invalid value for `store_path`, length must be greater than or equal to `1`") # noqa: E501 + + self._store_path = store_path + @property def subtype(self): """Gets the subtype of this DockerPackageUpload. @@ -2242,6 +2311,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this DockerPackageUpload. + + 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. + + :return: The tags_static of this DockerPackageUpload. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this DockerPackageUpload. + + 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. + + :param tags_static: The tags_static of this DockerPackageUpload. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this DockerPackageUpload. @@ -2375,6 +2467,27 @@ def version_orig(self, version_orig): self._version_orig = version_orig + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this DockerPackageUpload. + + + :return: The vulnerability_counts of this DockerPackageUpload. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this DockerPackageUpload. + + + :param vulnerability_counts: The vulnerability_counts of this DockerPackageUpload. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this DockerPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/docker_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/docker_package_upload_request.py index 07cb7fbd..f0664f73 100644 --- a/bindings/python/src/cloudsmith_api/models/docker_package_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/docker_package_upload_request.py @@ -33,33 +33,66 @@ class DockerPackageUploadRequest(object): and the value is json key in definition. """ swagger_types = { + 'is_malware_detected': 'bool', 'package_file': 'str', 'republish': 'bool', - 'tags': 'str' + 'tags': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { + 'is_malware_detected': 'is_malware_detected', 'package_file': 'package_file', 'republish': 'republish', - 'tags': 'tags' + 'tags': 'tags', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + def __init__(self, is_malware_detected=None, package_file=None, republish=None, tags=None, vulnerability_counts=None, _configuration=None): # noqa: E501 """DockerPackageUploadRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration + self._is_malware_detected = None self._package_file = None self._republish = None self._tags = None + self._vulnerability_counts = None self.discriminator = None + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected self.package_file = package_file if republish is not None: self.republish = republish if tags is not None: self.tags = tags + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts + + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this DockerPackageUploadRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this DockerPackageUploadRequest. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this DockerPackageUploadRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this DockerPackageUploadRequest. + :type: bool + """ + + self._is_malware_detected = is_malware_detected @property def package_file(self): @@ -141,6 +174,27 @@ def tags(self, tags): self._tags = tags + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this DockerPackageUploadRequest. + + + :return: The vulnerability_counts of this DockerPackageUploadRequest. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this DockerPackageUploadRequest. + + + :param vulnerability_counts: The vulnerability_counts of this DockerPackageUploadRequest. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/bindings/python/src/cloudsmith_api/models/generic_package_upload.py b/bindings/python/src/cloudsmith_api/models/generic_package_upload.py index b441b29b..5ffc72f4 100644 --- a/bindings/python/src/cloudsmith_api/models/generic_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/generic_package_upload.py @@ -62,6 +62,7 @@ class GenericPackageUpload(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', + 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -106,18 +107,21 @@ class GenericPackageUpload(object): 'status_str': 'str', 'status_updated_at': 'datetime', 'status_url': 'str', + 'store_path': 'str', 'subtype': 'str', 'summary': 'str', 'sync_finished_at': 'datetime', 'sync_progress': 'int', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -151,6 +155,7 @@ class GenericPackageUpload(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', + 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -195,22 +200,25 @@ class GenericPackageUpload(object): 'status_str': 'status_str', 'status_updated_at': 'status_updated_at', 'status_url': 'status_url', + 'store_path': 'store_path', 'subtype': 'subtype', 'summary': 'summary', 'sync_finished_at': 'sync_finished_at', 'sync_progress': 'sync_progress', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', + 'vulnerability_counts': 'vulnerability_counts', 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_malware_detected=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 """GenericPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -245,6 +253,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_deleteable = None self._is_downloadable = None self._is_hidden = None + self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -289,18 +298,21 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._status_str = None self._status_updated_at = None self._status_url = None + self._store_path = None self._subtype = None self._summary = None self._sync_finished_at = None self._sync_progress = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -362,6 +374,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -450,6 +464,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.status_updated_at = status_updated_at if status_url is not None: self.status_url = status_url + if store_path is not None: + self.store_path = store_path if subtype is not None: self.subtype = subtype if summary is not None: @@ -462,6 +478,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -474,6 +492,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.version = version if version_orig is not None: self.version_orig = version_orig + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -1110,6 +1130,29 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this GenericPackageUpload. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this GenericPackageUpload. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this GenericPackageUpload. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this GenericPackageUpload. + :type: bool + """ + + self._is_malware_detected = is_malware_detected + @property def is_moveable(self): """Gets the is_moveable of this GenericPackageUpload. @@ -2113,6 +2156,32 @@ def status_url(self, status_url): self._status_url = status_url + @property + def store_path(self): + """Gets the store_path of this GenericPackageUpload. + + Absolute store path for the package, including store hash and name. + + :return: The store_path of this GenericPackageUpload. + :rtype: str + """ + return self._store_path + + @store_path.setter + def store_path(self, store_path): + """Sets the store_path of this GenericPackageUpload. + + Absolute store path for the package, including store hash and name. + + :param store_path: The store_path of this GenericPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + store_path is not None and len(store_path) < 1): + raise ValueError("Invalid value for `store_path`, length must be greater than or equal to `1`") # noqa: E501 + + self._store_path = store_path + @property def subtype(self): """Gets the subtype of this GenericPackageUpload. @@ -2245,6 +2314,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this GenericPackageUpload. + + 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. + + :return: The tags_static of this GenericPackageUpload. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this GenericPackageUpload. + + 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. + + :param tags_static: The tags_static of this GenericPackageUpload. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this GenericPackageUpload. @@ -2381,6 +2473,27 @@ def version_orig(self, version_orig): self._version_orig = version_orig + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this GenericPackageUpload. + + + :return: The vulnerability_counts of this GenericPackageUpload. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this GenericPackageUpload. + + + :param vulnerability_counts: The vulnerability_counts of this GenericPackageUpload. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this GenericPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/generic_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/generic_package_upload_request.py index e498fd66..3a5eded2 100644 --- a/bindings/python/src/cloudsmith_api/models/generic_package_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/generic_package_upload_request.py @@ -34,37 +34,45 @@ class GenericPackageUploadRequest(object): """ swagger_types = { 'filepath': 'str', + 'is_malware_detected': 'bool', 'name': 'str', 'package_file': 'str', 'republish': 'bool', 'tags': 'str', - 'version': 'str' + 'version': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { 'filepath': 'filepath', + 'is_malware_detected': 'is_malware_detected', 'name': 'name', 'package_file': 'package_file', 'republish': 'republish', 'tags': 'tags', - 'version': 'version' + 'version': 'version', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, filepath=None, name=None, package_file=None, republish=None, tags=None, version=None, _configuration=None): # noqa: E501 + def __init__(self, filepath=None, is_malware_detected=None, name=None, package_file=None, republish=None, tags=None, version=None, vulnerability_counts=None, _configuration=None): # noqa: E501 """GenericPackageUploadRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration self._filepath = None + self._is_malware_detected = None self._name = None self._package_file = None self._republish = None self._tags = None self._version = None + self._vulnerability_counts = None self.discriminator = None self.filepath = filepath + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected if name is not None: self.name = name self.package_file = package_file @@ -74,6 +82,8 @@ def __init__(self, filepath=None, name=None, package_file=None, republish=None, self.tags = tags if version is not None: self.version = version + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts @property def filepath(self): @@ -106,6 +116,29 @@ def filepath(self, filepath): self._filepath = filepath + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this GenericPackageUploadRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this GenericPackageUploadRequest. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this GenericPackageUploadRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this GenericPackageUploadRequest. + :type: bool + """ + + self._is_malware_detected = is_malware_detected + @property def name(self): """Gets the name of this GenericPackageUploadRequest. @@ -238,6 +271,27 @@ def version(self, version): self._version = version + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this GenericPackageUploadRequest. + + + :return: The vulnerability_counts of this GenericPackageUploadRequest. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this GenericPackageUploadRequest. + + + :param vulnerability_counts: The vulnerability_counts of this GenericPackageUploadRequest. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/bindings/python/src/cloudsmith_api/models/go_package_upload.py b/bindings/python/src/cloudsmith_api/models/go_package_upload.py index f6dfae74..016c1044 100644 --- a/bindings/python/src/cloudsmith_api/models/go_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/go_package_upload.py @@ -62,6 +62,7 @@ class GoPackageUpload(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', + 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -106,18 +107,21 @@ class GoPackageUpload(object): 'status_str': 'str', 'status_updated_at': 'datetime', 'status_url': 'str', + 'store_path': 'str', 'subtype': 'str', 'summary': 'str', 'sync_finished_at': 'datetime', 'sync_progress': 'int', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -151,6 +155,7 @@ class GoPackageUpload(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', + 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -195,22 +200,25 @@ class GoPackageUpload(object): 'status_str': 'status_str', 'status_updated_at': 'status_updated_at', 'status_url': 'status_url', + 'store_path': 'store_path', 'subtype': 'subtype', 'summary': 'summary', 'sync_finished_at': 'sync_finished_at', 'sync_progress': 'sync_progress', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', + 'vulnerability_counts': 'vulnerability_counts', 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_malware_detected=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 """GoPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -245,6 +253,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_deleteable = None self._is_downloadable = None self._is_hidden = None + self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -289,18 +298,21 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._status_str = None self._status_updated_at = None self._status_url = None + self._store_path = None self._subtype = None self._summary = None self._sync_finished_at = None self._sync_progress = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -362,6 +374,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -450,6 +464,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.status_updated_at = status_updated_at if status_url is not None: self.status_url = status_url + if store_path is not None: + self.store_path = store_path if subtype is not None: self.subtype = subtype if summary is not None: @@ -462,6 +478,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -474,6 +492,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.version = version if version_orig is not None: self.version_orig = version_orig + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -1110,6 +1130,29 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this GoPackageUpload. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this GoPackageUpload. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this GoPackageUpload. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this GoPackageUpload. + :type: bool + """ + + self._is_malware_detected = is_malware_detected + @property def is_moveable(self): """Gets the is_moveable of this GoPackageUpload. @@ -2110,6 +2153,32 @@ def status_url(self, status_url): self._status_url = status_url + @property + def store_path(self): + """Gets the store_path of this GoPackageUpload. + + Absolute store path for the package, including store hash and name. + + :return: The store_path of this GoPackageUpload. + :rtype: str + """ + return self._store_path + + @store_path.setter + def store_path(self, store_path): + """Sets the store_path of this GoPackageUpload. + + Absolute store path for the package, including store hash and name. + + :param store_path: The store_path of this GoPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + store_path is not None and len(store_path) < 1): + raise ValueError("Invalid value for `store_path`, length must be greater than or equal to `1`") # noqa: E501 + + self._store_path = store_path + @property def subtype(self): """Gets the subtype of this GoPackageUpload. @@ -2242,6 +2311,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this GoPackageUpload. + + 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. + + :return: The tags_static of this GoPackageUpload. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this GoPackageUpload. + + 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. + + :param tags_static: The tags_static of this GoPackageUpload. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this GoPackageUpload. @@ -2375,6 +2467,27 @@ def version_orig(self, version_orig): self._version_orig = version_orig + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this GoPackageUpload. + + + :return: The vulnerability_counts of this GoPackageUpload. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this GoPackageUpload. + + + :param vulnerability_counts: The vulnerability_counts of this GoPackageUpload. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this GoPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/go_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/go_package_upload_request.py index 0cd8b1a1..5f620d33 100644 --- a/bindings/python/src/cloudsmith_api/models/go_package_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/go_package_upload_request.py @@ -33,33 +33,66 @@ class GoPackageUploadRequest(object): and the value is json key in definition. """ swagger_types = { + 'is_malware_detected': 'bool', 'package_file': 'str', 'republish': 'bool', - 'tags': 'str' + 'tags': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { + 'is_malware_detected': 'is_malware_detected', 'package_file': 'package_file', 'republish': 'republish', - 'tags': 'tags' + 'tags': 'tags', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + def __init__(self, is_malware_detected=None, package_file=None, republish=None, tags=None, vulnerability_counts=None, _configuration=None): # noqa: E501 """GoPackageUploadRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration + self._is_malware_detected = None self._package_file = None self._republish = None self._tags = None + self._vulnerability_counts = None self.discriminator = None + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected self.package_file = package_file if republish is not None: self.republish = republish if tags is not None: self.tags = tags + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts + + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this GoPackageUploadRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this GoPackageUploadRequest. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this GoPackageUploadRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this GoPackageUploadRequest. + :type: bool + """ + + self._is_malware_detected = is_malware_detected @property def package_file(self): @@ -141,6 +174,27 @@ def tags(self, tags): self._tags = tags + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this GoPackageUploadRequest. + + + :return: The vulnerability_counts of this GoPackageUploadRequest. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this GoPackageUploadRequest. + + + :param vulnerability_counts: The vulnerability_counts of this GoPackageUploadRequest. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/bindings/python/src/cloudsmith_api/models/helm_package_upload.py b/bindings/python/src/cloudsmith_api/models/helm_package_upload.py index 59c8f58a..459e7876 100644 --- a/bindings/python/src/cloudsmith_api/models/helm_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/helm_package_upload.py @@ -62,6 +62,7 @@ class HelmPackageUpload(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', + 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -106,18 +107,21 @@ class HelmPackageUpload(object): 'status_str': 'str', 'status_updated_at': 'datetime', 'status_url': 'str', + 'store_path': 'str', 'subtype': 'str', 'summary': 'str', 'sync_finished_at': 'datetime', 'sync_progress': 'int', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -151,6 +155,7 @@ class HelmPackageUpload(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', + 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -195,22 +200,25 @@ class HelmPackageUpload(object): 'status_str': 'status_str', 'status_updated_at': 'status_updated_at', 'status_url': 'status_url', + 'store_path': 'store_path', 'subtype': 'subtype', 'summary': 'summary', 'sync_finished_at': 'sync_finished_at', 'sync_progress': 'sync_progress', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', + 'vulnerability_counts': 'vulnerability_counts', 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_malware_detected=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 """HelmPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -245,6 +253,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_deleteable = None self._is_downloadable = None self._is_hidden = None + self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -289,18 +298,21 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._status_str = None self._status_updated_at = None self._status_url = None + self._store_path = None self._subtype = None self._summary = None self._sync_finished_at = None self._sync_progress = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -362,6 +374,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -450,6 +464,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.status_updated_at = status_updated_at if status_url is not None: self.status_url = status_url + if store_path is not None: + self.store_path = store_path if subtype is not None: self.subtype = subtype if summary is not None: @@ -462,6 +478,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -474,6 +492,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.version = version if version_orig is not None: self.version_orig = version_orig + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -1110,6 +1130,29 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this HelmPackageUpload. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this HelmPackageUpload. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this HelmPackageUpload. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this HelmPackageUpload. + :type: bool + """ + + self._is_malware_detected = is_malware_detected + @property def is_moveable(self): """Gets the is_moveable of this HelmPackageUpload. @@ -2110,6 +2153,32 @@ def status_url(self, status_url): self._status_url = status_url + @property + def store_path(self): + """Gets the store_path of this HelmPackageUpload. + + Absolute store path for the package, including store hash and name. + + :return: The store_path of this HelmPackageUpload. + :rtype: str + """ + return self._store_path + + @store_path.setter + def store_path(self, store_path): + """Sets the store_path of this HelmPackageUpload. + + Absolute store path for the package, including store hash and name. + + :param store_path: The store_path of this HelmPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + store_path is not None and len(store_path) < 1): + raise ValueError("Invalid value for `store_path`, length must be greater than or equal to `1`") # noqa: E501 + + self._store_path = store_path + @property def subtype(self): """Gets the subtype of this HelmPackageUpload. @@ -2242,6 +2311,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this HelmPackageUpload. + + 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. + + :return: The tags_static of this HelmPackageUpload. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this HelmPackageUpload. + + 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. + + :param tags_static: The tags_static of this HelmPackageUpload. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this HelmPackageUpload. @@ -2375,6 +2467,27 @@ def version_orig(self, version_orig): self._version_orig = version_orig + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this HelmPackageUpload. + + + :return: The vulnerability_counts of this HelmPackageUpload. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this HelmPackageUpload. + + + :param vulnerability_counts: The vulnerability_counts of this HelmPackageUpload. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this HelmPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/helm_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/helm_package_upload_request.py index 59333389..92c5a290 100644 --- a/bindings/python/src/cloudsmith_api/models/helm_package_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/helm_package_upload_request.py @@ -33,31 +33,39 @@ class HelmPackageUploadRequest(object): and the value is json key in definition. """ swagger_types = { + 'is_malware_detected': 'bool', 'package_file': 'str', 'provenance_file': 'str', 'republish': 'bool', - 'tags': 'str' + 'tags': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { + 'is_malware_detected': 'is_malware_detected', 'package_file': 'package_file', 'provenance_file': 'provenance_file', 'republish': 'republish', - 'tags': 'tags' + 'tags': 'tags', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, package_file=None, provenance_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + def __init__(self, is_malware_detected=None, package_file=None, provenance_file=None, republish=None, tags=None, vulnerability_counts=None, _configuration=None): # noqa: E501 """HelmPackageUploadRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration + self._is_malware_detected = None self._package_file = None self._provenance_file = None self._republish = None self._tags = None + self._vulnerability_counts = None self.discriminator = None + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected self.package_file = package_file if provenance_file is not None: self.provenance_file = provenance_file @@ -65,6 +73,31 @@ def __init__(self, package_file=None, provenance_file=None, republish=None, tags self.republish = republish if tags is not None: self.tags = tags + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts + + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this HelmPackageUploadRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this HelmPackageUploadRequest. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this HelmPackageUploadRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this HelmPackageUploadRequest. + :type: bool + """ + + self._is_malware_detected = is_malware_detected @property def package_file(self): @@ -172,6 +205,27 @@ def tags(self, tags): self._tags = tags + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this HelmPackageUploadRequest. + + + :return: The vulnerability_counts of this HelmPackageUploadRequest. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this HelmPackageUploadRequest. + + + :param vulnerability_counts: The vulnerability_counts of this HelmPackageUploadRequest. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/bindings/python/src/cloudsmith_api/models/hex_package_upload.py b/bindings/python/src/cloudsmith_api/models/hex_package_upload.py index c5416998..10b24be7 100644 --- a/bindings/python/src/cloudsmith_api/models/hex_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/hex_package_upload.py @@ -62,6 +62,7 @@ class HexPackageUpload(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', + 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -106,18 +107,21 @@ class HexPackageUpload(object): 'status_str': 'str', 'status_updated_at': 'datetime', 'status_url': 'str', + 'store_path': 'str', 'subtype': 'str', 'summary': 'str', 'sync_finished_at': 'datetime', 'sync_progress': 'int', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -151,6 +155,7 @@ class HexPackageUpload(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', + 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -195,22 +200,25 @@ class HexPackageUpload(object): 'status_str': 'status_str', 'status_updated_at': 'status_updated_at', 'status_url': 'status_url', + 'store_path': 'store_path', 'subtype': 'subtype', 'summary': 'summary', 'sync_finished_at': 'sync_finished_at', 'sync_progress': 'sync_progress', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', + 'vulnerability_counts': 'vulnerability_counts', 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_malware_detected=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 """HexPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -245,6 +253,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_deleteable = None self._is_downloadable = None self._is_hidden = None + self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -289,18 +298,21 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._status_str = None self._status_updated_at = None self._status_url = None + self._store_path = None self._subtype = None self._summary = None self._sync_finished_at = None self._sync_progress = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -362,6 +374,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -450,6 +464,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.status_updated_at = status_updated_at if status_url is not None: self.status_url = status_url + if store_path is not None: + self.store_path = store_path if subtype is not None: self.subtype = subtype if summary is not None: @@ -462,6 +478,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -474,6 +492,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.version = version if version_orig is not None: self.version_orig = version_orig + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -1110,6 +1130,29 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this HexPackageUpload. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this HexPackageUpload. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this HexPackageUpload. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this HexPackageUpload. + :type: bool + """ + + self._is_malware_detected = is_malware_detected + @property def is_moveable(self): """Gets the is_moveable of this HexPackageUpload. @@ -2110,6 +2153,32 @@ def status_url(self, status_url): self._status_url = status_url + @property + def store_path(self): + """Gets the store_path of this HexPackageUpload. + + Absolute store path for the package, including store hash and name. + + :return: The store_path of this HexPackageUpload. + :rtype: str + """ + return self._store_path + + @store_path.setter + def store_path(self, store_path): + """Sets the store_path of this HexPackageUpload. + + Absolute store path for the package, including store hash and name. + + :param store_path: The store_path of this HexPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + store_path is not None and len(store_path) < 1): + raise ValueError("Invalid value for `store_path`, length must be greater than or equal to `1`") # noqa: E501 + + self._store_path = store_path + @property def subtype(self): """Gets the subtype of this HexPackageUpload. @@ -2242,6 +2311,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this HexPackageUpload. + + 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. + + :return: The tags_static of this HexPackageUpload. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this HexPackageUpload. + + 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. + + :param tags_static: The tags_static of this HexPackageUpload. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this HexPackageUpload. @@ -2375,6 +2467,27 @@ def version_orig(self, version_orig): self._version_orig = version_orig + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this HexPackageUpload. + + + :return: The vulnerability_counts of this HexPackageUpload. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this HexPackageUpload. + + + :param vulnerability_counts: The vulnerability_counts of this HexPackageUpload. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this HexPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/hex_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/hex_package_upload_request.py index 6bab3bd5..ee455f25 100644 --- a/bindings/python/src/cloudsmith_api/models/hex_package_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/hex_package_upload_request.py @@ -33,33 +33,66 @@ class HexPackageUploadRequest(object): and the value is json key in definition. """ swagger_types = { + 'is_malware_detected': 'bool', 'package_file': 'str', 'republish': 'bool', - 'tags': 'str' + 'tags': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { + 'is_malware_detected': 'is_malware_detected', 'package_file': 'package_file', 'republish': 'republish', - 'tags': 'tags' + 'tags': 'tags', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + def __init__(self, is_malware_detected=None, package_file=None, republish=None, tags=None, vulnerability_counts=None, _configuration=None): # noqa: E501 """HexPackageUploadRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration + self._is_malware_detected = None self._package_file = None self._republish = None self._tags = None + self._vulnerability_counts = None self.discriminator = None + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected self.package_file = package_file if republish is not None: self.republish = republish if tags is not None: self.tags = tags + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts + + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this HexPackageUploadRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this HexPackageUploadRequest. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this HexPackageUploadRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this HexPackageUploadRequest. + :type: bool + """ + + self._is_malware_detected = is_malware_detected @property def package_file(self): @@ -141,6 +174,27 @@ def tags(self, tags): self._tags = tags + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this HexPackageUploadRequest. + + + :return: The vulnerability_counts of this HexPackageUploadRequest. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this HexPackageUploadRequest. + + + :param vulnerability_counts: The vulnerability_counts of this HexPackageUploadRequest. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/bindings/python/src/cloudsmith_api/models/huggingface_package_upload.py b/bindings/python/src/cloudsmith_api/models/huggingface_package_upload.py index 05b22bc7..0edc9787 100644 --- a/bindings/python/src/cloudsmith_api/models/huggingface_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/huggingface_package_upload.py @@ -62,6 +62,7 @@ class HuggingfacePackageUpload(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', + 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -106,18 +107,21 @@ class HuggingfacePackageUpload(object): 'status_str': 'str', 'status_updated_at': 'datetime', 'status_url': 'str', + 'store_path': 'str', 'subtype': 'str', 'summary': 'str', 'sync_finished_at': 'datetime', 'sync_progress': 'int', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -151,6 +155,7 @@ class HuggingfacePackageUpload(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', + 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -195,22 +200,25 @@ class HuggingfacePackageUpload(object): 'status_str': 'status_str', 'status_updated_at': 'status_updated_at', 'status_url': 'status_url', + 'store_path': 'store_path', 'subtype': 'subtype', 'summary': 'summary', 'sync_finished_at': 'sync_finished_at', 'sync_progress': 'sync_progress', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', + 'vulnerability_counts': 'vulnerability_counts', 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_malware_detected=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 """HuggingfacePackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -245,6 +253,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_deleteable = None self._is_downloadable = None self._is_hidden = None + self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -289,18 +298,21 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._status_str = None self._status_updated_at = None self._status_url = None + self._store_path = None self._subtype = None self._summary = None self._sync_finished_at = None self._sync_progress = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -362,6 +374,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -450,6 +464,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.status_updated_at = status_updated_at if status_url is not None: self.status_url = status_url + if store_path is not None: + self.store_path = store_path if subtype is not None: self.subtype = subtype if summary is not None: @@ -462,6 +478,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -474,6 +492,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.version = version if version_orig is not None: self.version_orig = version_orig + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -1110,6 +1130,29 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this HuggingfacePackageUpload. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this HuggingfacePackageUpload. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this HuggingfacePackageUpload. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this HuggingfacePackageUpload. + :type: bool + """ + + self._is_malware_detected = is_malware_detected + @property def is_moveable(self): """Gets the is_moveable of this HuggingfacePackageUpload. @@ -2110,6 +2153,32 @@ def status_url(self, status_url): self._status_url = status_url + @property + def store_path(self): + """Gets the store_path of this HuggingfacePackageUpload. + + Absolute store path for the package, including store hash and name. + + :return: The store_path of this HuggingfacePackageUpload. + :rtype: str + """ + return self._store_path + + @store_path.setter + def store_path(self, store_path): + """Sets the store_path of this HuggingfacePackageUpload. + + Absolute store path for the package, including store hash and name. + + :param store_path: The store_path of this HuggingfacePackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + store_path is not None and len(store_path) < 1): + raise ValueError("Invalid value for `store_path`, length must be greater than or equal to `1`") # noqa: E501 + + self._store_path = store_path + @property def subtype(self): """Gets the subtype of this HuggingfacePackageUpload. @@ -2242,6 +2311,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this HuggingfacePackageUpload. + + 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. + + :return: The tags_static of this HuggingfacePackageUpload. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this HuggingfacePackageUpload. + + 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. + + :param tags_static: The tags_static of this HuggingfacePackageUpload. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this HuggingfacePackageUpload. @@ -2375,6 +2467,27 @@ def version_orig(self, version_orig): self._version_orig = version_orig + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this HuggingfacePackageUpload. + + + :return: The vulnerability_counts of this HuggingfacePackageUpload. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this HuggingfacePackageUpload. + + + :param vulnerability_counts: The vulnerability_counts of this HuggingfacePackageUpload. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this HuggingfacePackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/huggingface_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/huggingface_package_upload_request.py index 0a7a6c47..44541f64 100644 --- a/bindings/python/src/cloudsmith_api/models/huggingface_package_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/huggingface_package_upload_request.py @@ -33,33 +33,66 @@ class HuggingfacePackageUploadRequest(object): and the value is json key in definition. """ swagger_types = { + 'is_malware_detected': 'bool', 'package_file': 'str', 'republish': 'bool', - 'tags': 'str' + 'tags': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { + 'is_malware_detected': 'is_malware_detected', 'package_file': 'package_file', 'republish': 'republish', - 'tags': 'tags' + 'tags': 'tags', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + def __init__(self, is_malware_detected=None, package_file=None, republish=None, tags=None, vulnerability_counts=None, _configuration=None): # noqa: E501 """HuggingfacePackageUploadRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration + self._is_malware_detected = None self._package_file = None self._republish = None self._tags = None + self._vulnerability_counts = None self.discriminator = None + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected self.package_file = package_file if republish is not None: self.republish = republish if tags is not None: self.tags = tags + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts + + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this HuggingfacePackageUploadRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this HuggingfacePackageUploadRequest. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this HuggingfacePackageUploadRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this HuggingfacePackageUploadRequest. + :type: bool + """ + + self._is_malware_detected = is_malware_detected @property def package_file(self): @@ -141,6 +174,27 @@ def tags(self, tags): self._tags = tags + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this HuggingfacePackageUploadRequest. + + + :return: The vulnerability_counts of this HuggingfacePackageUploadRequest. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this HuggingfacePackageUploadRequest. + + + :param vulnerability_counts: The vulnerability_counts of this HuggingfacePackageUploadRequest. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/bindings/python/src/cloudsmith_api/models/inline_response200.py b/bindings/python/src/cloudsmith_api/models/inline_response200.py index 685bbf89..6be8f25d 100644 --- a/bindings/python/src/cloudsmith_api/models/inline_response200.py +++ b/bindings/python/src/cloudsmith_api/models/inline_response200.py @@ -33,46 +33,159 @@ class InlineResponse200(object): and the value is json key in definition. """ swagger_types = { - 'results': 'list[PackageGroup]' + 'allow_open_source_overage': 'bool', + 'bandwidth_overage_limit': 'int', + 'storage_overage_limit': 'int', + 'bandwidth_maximum': 'int', + 'storage_maximum': 'int' } attribute_map = { - 'results': 'results' + 'allow_open_source_overage': 'allow_open_source_overage', + 'bandwidth_overage_limit': 'bandwidth_overage_limit', + 'storage_overage_limit': 'storage_overage_limit', + 'bandwidth_maximum': 'bandwidth_maximum', + 'storage_maximum': 'storage_maximum' } - def __init__(self, results=None, _configuration=None): # noqa: E501 + def __init__(self, allow_open_source_overage=None, bandwidth_overage_limit=None, storage_overage_limit=None, bandwidth_maximum=None, storage_maximum=None, _configuration=None): # noqa: E501 """InlineResponse200 - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration - self._results = None + self._allow_open_source_overage = None + self._bandwidth_overage_limit = None + self._storage_overage_limit = None + self._bandwidth_maximum = None + self._storage_maximum = None self.discriminator = None - self.results = results + if allow_open_source_overage is not None: + self.allow_open_source_overage = allow_open_source_overage + if bandwidth_overage_limit is not None: + self.bandwidth_overage_limit = bandwidth_overage_limit + if storage_overage_limit is not None: + self.storage_overage_limit = storage_overage_limit + if bandwidth_maximum is not None: + self.bandwidth_maximum = bandwidth_maximum + if storage_maximum is not None: + self.storage_maximum = storage_maximum @property - def results(self): - """Gets the results of this InlineResponse200. + def allow_open_source_overage(self): + """Gets the allow_open_source_overage of this InlineResponse200. + Whether on-demand open source overage is allowed. - :return: The results of this InlineResponse200. - :rtype: list[PackageGroup] + :return: The allow_open_source_overage of this InlineResponse200. + :rtype: bool """ - return self._results + return self._allow_open_source_overage - @results.setter - def results(self, results): - """Sets the results of this InlineResponse200. + @allow_open_source_overage.setter + def allow_open_source_overage(self, allow_open_source_overage): + """Sets the allow_open_source_overage of this InlineResponse200. + Whether on-demand open source overage is allowed. - :param results: The results of this InlineResponse200. - :type: list[PackageGroup] + :param allow_open_source_overage: The allow_open_source_overage of this InlineResponse200. + :type: bool """ - if self._configuration.client_side_validation and results is None: - raise ValueError("Invalid value for `results`, must not be `None`") # noqa: E501 - self._results = results + self._allow_open_source_overage = allow_open_source_overage + + @property + def bandwidth_overage_limit(self): + """Gets the bandwidth_overage_limit of this InlineResponse200. + + Effective bandwidth overage limit in GB. + + :return: The bandwidth_overage_limit of this InlineResponse200. + :rtype: int + """ + return self._bandwidth_overage_limit + + @bandwidth_overage_limit.setter + def bandwidth_overage_limit(self, bandwidth_overage_limit): + """Sets the bandwidth_overage_limit of this InlineResponse200. + + Effective bandwidth overage limit in GB. + + :param bandwidth_overage_limit: The bandwidth_overage_limit of this InlineResponse200. + :type: int + """ + + self._bandwidth_overage_limit = bandwidth_overage_limit + + @property + def storage_overage_limit(self): + """Gets the storage_overage_limit of this InlineResponse200. + + Effective storage overage limit in GB. + + :return: The storage_overage_limit of this InlineResponse200. + :rtype: int + """ + return self._storage_overage_limit + + @storage_overage_limit.setter + def storage_overage_limit(self, storage_overage_limit): + """Sets the storage_overage_limit of this InlineResponse200. + + Effective storage overage limit in GB. + + :param storage_overage_limit: The storage_overage_limit of this InlineResponse200. + :type: int + """ + + self._storage_overage_limit = storage_overage_limit + + @property + def bandwidth_maximum(self): + """Gets the bandwidth_maximum of this InlineResponse200. + + Maximum allowed bandwidth overage in GB. + + :return: The bandwidth_maximum of this InlineResponse200. + :rtype: int + """ + return self._bandwidth_maximum + + @bandwidth_maximum.setter + def bandwidth_maximum(self, bandwidth_maximum): + """Sets the bandwidth_maximum of this InlineResponse200. + + Maximum allowed bandwidth overage in GB. + + :param bandwidth_maximum: The bandwidth_maximum of this InlineResponse200. + :type: int + """ + + self._bandwidth_maximum = bandwidth_maximum + + @property + def storage_maximum(self): + """Gets the storage_maximum of this InlineResponse200. + + Maximum allowed storage overage in GB. + + :return: The storage_maximum of this InlineResponse200. + :rtype: int + """ + return self._storage_maximum + + @storage_maximum.setter + def storage_maximum(self, storage_maximum): + """Sets the storage_maximum of this InlineResponse200. + + Maximum allowed storage overage in GB. + + :param storage_maximum: The storage_maximum of this InlineResponse200. + :type: int + """ + + self._storage_maximum = storage_maximum def to_dict(self): """Returns the model properties as a dict""" diff --git a/bindings/python/src/cloudsmith_api/models/inline_response2001.py b/bindings/python/src/cloudsmith_api/models/inline_response2001.py index 5165ee2f..323c8370 100644 --- a/bindings/python/src/cloudsmith_api/models/inline_response2001.py +++ b/bindings/python/src/cloudsmith_api/models/inline_response2001.py @@ -33,46 +33,103 @@ class InlineResponse2001(object): and the value is json key in definition. """ swagger_types = { - 'results': 'list[ConnectedRepository]' + 'allow_open_source_overage': 'bool', + 'bandwidth_overage_limit': 'int', + 'storage_overage_limit': 'int' } attribute_map = { - 'results': 'results' + 'allow_open_source_overage': 'allow_open_source_overage', + 'bandwidth_overage_limit': 'bandwidth_overage_limit', + 'storage_overage_limit': 'storage_overage_limit' } - def __init__(self, results=None, _configuration=None): # noqa: E501 + def __init__(self, allow_open_source_overage=None, bandwidth_overage_limit=None, storage_overage_limit=None, _configuration=None): # noqa: E501 """InlineResponse2001 - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration - self._results = None + self._allow_open_source_overage = None + self._bandwidth_overage_limit = None + self._storage_overage_limit = None self.discriminator = None - self.results = results + if allow_open_source_overage is not None: + self.allow_open_source_overage = allow_open_source_overage + if bandwidth_overage_limit is not None: + self.bandwidth_overage_limit = bandwidth_overage_limit + if storage_overage_limit is not None: + self.storage_overage_limit = storage_overage_limit @property - def results(self): - """Gets the results of this InlineResponse2001. + def allow_open_source_overage(self): + """Gets the allow_open_source_overage of this InlineResponse2001. + Whether on-demand open source overage is allowed. - :return: The results of this InlineResponse2001. - :rtype: list[ConnectedRepository] + :return: The allow_open_source_overage of this InlineResponse2001. + :rtype: bool """ - return self._results + return self._allow_open_source_overage - @results.setter - def results(self, results): - """Sets the results of this InlineResponse2001. + @allow_open_source_overage.setter + def allow_open_source_overage(self, allow_open_source_overage): + """Sets the allow_open_source_overage of this InlineResponse2001. + Whether on-demand open source overage is allowed. - :param results: The results of this InlineResponse2001. - :type: list[ConnectedRepository] + :param allow_open_source_overage: The allow_open_source_overage of this InlineResponse2001. + :type: bool """ - if self._configuration.client_side_validation and results is None: - raise ValueError("Invalid value for `results`, must not be `None`") # noqa: E501 - self._results = results + self._allow_open_source_overage = allow_open_source_overage + + @property + def bandwidth_overage_limit(self): + """Gets the bandwidth_overage_limit of this InlineResponse2001. + + Effective bandwidth overage limit in GB. + + :return: The bandwidth_overage_limit of this InlineResponse2001. + :rtype: int + """ + return self._bandwidth_overage_limit + + @bandwidth_overage_limit.setter + def bandwidth_overage_limit(self, bandwidth_overage_limit): + """Sets the bandwidth_overage_limit of this InlineResponse2001. + + Effective bandwidth overage limit in GB. + + :param bandwidth_overage_limit: The bandwidth_overage_limit of this InlineResponse2001. + :type: int + """ + + self._bandwidth_overage_limit = bandwidth_overage_limit + + @property + def storage_overage_limit(self): + """Gets the storage_overage_limit of this InlineResponse2001. + + Effective storage overage limit in GB. + + :return: The storage_overage_limit of this InlineResponse2001. + :rtype: int + """ + return self._storage_overage_limit + + @storage_overage_limit.setter + def storage_overage_limit(self, storage_overage_limit): + """Sets the storage_overage_limit of this InlineResponse2001. + + Effective storage overage limit in GB. + + :param storage_overage_limit: The storage_overage_limit of this InlineResponse2001. + :type: int + """ + + self._storage_overage_limit = storage_overage_limit def to_dict(self): """Returns the model properties as a dict""" diff --git a/bindings/python/src/cloudsmith_api/models/inline_response2002.py b/bindings/python/src/cloudsmith_api/models/inline_response2002.py index acbca076..c861874c 100644 --- a/bindings/python/src/cloudsmith_api/models/inline_response2002.py +++ b/bindings/python/src/cloudsmith_api/models/inline_response2002.py @@ -33,7 +33,7 @@ class InlineResponse2002(object): and the value is json key in definition. """ swagger_types = { - 'results': 'list[UserAuthenticationToken]' + 'results': 'list[PackageGroup]' } attribute_map = { @@ -57,7 +57,7 @@ def results(self): :return: The results of this InlineResponse2002. - :rtype: list[UserAuthenticationToken] + :rtype: list[PackageGroup] """ return self._results @@ -67,7 +67,7 @@ def results(self, results): :param results: The results of this InlineResponse2002. - :type: list[UserAuthenticationToken] + :type: list[PackageGroup] """ if self._configuration.client_side_validation and results is None: raise ValueError("Invalid value for `results`, must not be `None`") # noqa: E501 diff --git a/bindings/python/src/cloudsmith_api/models/inline_response2003.py b/bindings/python/src/cloudsmith_api/models/inline_response2003.py new file mode 100644 index 00000000..0a9f4d9a --- /dev/null +++ b/bindings/python/src/cloudsmith_api/models/inline_response2003.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + Cloudsmith API (v1) + + The API to the Cloudsmith Service # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudsmith.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration + + +class InlineResponse2003(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'results': 'list[ConnectedRepository]' + } + + attribute_map = { + 'results': 'results' + } + + def __init__(self, results=None, _configuration=None): # noqa: E501 + """InlineResponse2003 - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._results = None + self.discriminator = None + + self.results = results + + @property + def results(self): + """Gets the results of this InlineResponse2003. + + + :return: The results of this InlineResponse2003. + :rtype: list[ConnectedRepository] + """ + return self._results + + @results.setter + def results(self, results): + """Sets the results of this InlineResponse2003. + + + :param results: The results of this InlineResponse2003. + :type: list[ConnectedRepository] + """ + if self._configuration.client_side_validation and results is None: + raise ValueError("Invalid value for `results`, must not be `None`") # noqa: E501 + + self._results = results + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(InlineResponse2003, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InlineResponse2003): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, InlineResponse2003): + return True + + return self.to_dict() != other.to_dict() + diff --git a/bindings/python/src/cloudsmith_api/models/inline_response2004.py b/bindings/python/src/cloudsmith_api/models/inline_response2004.py new file mode 100644 index 00000000..5ba92d83 --- /dev/null +++ b/bindings/python/src/cloudsmith_api/models/inline_response2004.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + Cloudsmith API (v1) + + The API to the Cloudsmith Service # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudsmith.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration + + +class InlineResponse2004(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'results': 'list[UserAuthenticationToken]' + } + + attribute_map = { + 'results': 'results' + } + + def __init__(self, results=None, _configuration=None): # noqa: E501 + """InlineResponse2004 - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._results = None + self.discriminator = None + + self.results = results + + @property + def results(self): + """Gets the results of this InlineResponse2004. + + + :return: The results of this InlineResponse2004. + :rtype: list[UserAuthenticationToken] + """ + return self._results + + @results.setter + def results(self, results): + """Sets the results of this InlineResponse2004. + + + :param results: The results of this InlineResponse2004. + :type: list[UserAuthenticationToken] + """ + if self._configuration.client_side_validation and results is None: + raise ValueError("Invalid value for `results`, must not be `None`") # noqa: E501 + + self._results = results + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(InlineResponse2004, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InlineResponse2004): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, InlineResponse2004): + return True + + return self.to_dict() != other.to_dict() + diff --git a/bindings/python/src/cloudsmith_api/models/luarocks_package_upload.py b/bindings/python/src/cloudsmith_api/models/luarocks_package_upload.py index 86996f98..8e2d91a1 100644 --- a/bindings/python/src/cloudsmith_api/models/luarocks_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/luarocks_package_upload.py @@ -62,6 +62,7 @@ class LuarocksPackageUpload(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', + 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -106,18 +107,21 @@ class LuarocksPackageUpload(object): 'status_str': 'str', 'status_updated_at': 'datetime', 'status_url': 'str', + 'store_path': 'str', 'subtype': 'str', 'summary': 'str', 'sync_finished_at': 'datetime', 'sync_progress': 'int', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -151,6 +155,7 @@ class LuarocksPackageUpload(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', + 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -195,22 +200,25 @@ class LuarocksPackageUpload(object): 'status_str': 'status_str', 'status_updated_at': 'status_updated_at', 'status_url': 'status_url', + 'store_path': 'store_path', 'subtype': 'subtype', 'summary': 'summary', 'sync_finished_at': 'sync_finished_at', 'sync_progress': 'sync_progress', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', + 'vulnerability_counts': 'vulnerability_counts', 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_malware_detected=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 """LuarocksPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -245,6 +253,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_deleteable = None self._is_downloadable = None self._is_hidden = None + self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -289,18 +298,21 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._status_str = None self._status_updated_at = None self._status_url = None + self._store_path = None self._subtype = None self._summary = None self._sync_finished_at = None self._sync_progress = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -362,6 +374,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -450,6 +464,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.status_updated_at = status_updated_at if status_url is not None: self.status_url = status_url + if store_path is not None: + self.store_path = store_path if subtype is not None: self.subtype = subtype if summary is not None: @@ -462,6 +478,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -474,6 +492,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.version = version if version_orig is not None: self.version_orig = version_orig + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -1110,6 +1130,29 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this LuarocksPackageUpload. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this LuarocksPackageUpload. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this LuarocksPackageUpload. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this LuarocksPackageUpload. + :type: bool + """ + + self._is_malware_detected = is_malware_detected + @property def is_moveable(self): """Gets the is_moveable of this LuarocksPackageUpload. @@ -2110,6 +2153,32 @@ def status_url(self, status_url): self._status_url = status_url + @property + def store_path(self): + """Gets the store_path of this LuarocksPackageUpload. + + Absolute store path for the package, including store hash and name. + + :return: The store_path of this LuarocksPackageUpload. + :rtype: str + """ + return self._store_path + + @store_path.setter + def store_path(self, store_path): + """Sets the store_path of this LuarocksPackageUpload. + + Absolute store path for the package, including store hash and name. + + :param store_path: The store_path of this LuarocksPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + store_path is not None and len(store_path) < 1): + raise ValueError("Invalid value for `store_path`, length must be greater than or equal to `1`") # noqa: E501 + + self._store_path = store_path + @property def subtype(self): """Gets the subtype of this LuarocksPackageUpload. @@ -2242,6 +2311,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this LuarocksPackageUpload. + + 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. + + :return: The tags_static of this LuarocksPackageUpload. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this LuarocksPackageUpload. + + 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. + + :param tags_static: The tags_static of this LuarocksPackageUpload. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this LuarocksPackageUpload. @@ -2375,6 +2467,27 @@ def version_orig(self, version_orig): self._version_orig = version_orig + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this LuarocksPackageUpload. + + + :return: The vulnerability_counts of this LuarocksPackageUpload. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this LuarocksPackageUpload. + + + :param vulnerability_counts: The vulnerability_counts of this LuarocksPackageUpload. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this LuarocksPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/luarocks_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/luarocks_package_upload_request.py index ba63584e..ab1c7889 100644 --- a/bindings/python/src/cloudsmith_api/models/luarocks_package_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/luarocks_package_upload_request.py @@ -33,33 +33,66 @@ class LuarocksPackageUploadRequest(object): and the value is json key in definition. """ swagger_types = { + 'is_malware_detected': 'bool', 'package_file': 'str', 'republish': 'bool', - 'tags': 'str' + 'tags': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { + 'is_malware_detected': 'is_malware_detected', 'package_file': 'package_file', 'republish': 'republish', - 'tags': 'tags' + 'tags': 'tags', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + def __init__(self, is_malware_detected=None, package_file=None, republish=None, tags=None, vulnerability_counts=None, _configuration=None): # noqa: E501 """LuarocksPackageUploadRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration + self._is_malware_detected = None self._package_file = None self._republish = None self._tags = None + self._vulnerability_counts = None self.discriminator = None + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected self.package_file = package_file if republish is not None: self.republish = republish if tags is not None: self.tags = tags + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts + + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this LuarocksPackageUploadRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this LuarocksPackageUploadRequest. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this LuarocksPackageUploadRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this LuarocksPackageUploadRequest. + :type: bool + """ + + self._is_malware_detected = is_malware_detected @property def package_file(self): @@ -141,6 +174,27 @@ def tags(self, tags): self._tags = tags + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this LuarocksPackageUploadRequest. + + + :return: The vulnerability_counts of this LuarocksPackageUploadRequest. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this LuarocksPackageUploadRequest. + + + :param vulnerability_counts: The vulnerability_counts of this LuarocksPackageUploadRequest. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/bindings/python/src/cloudsmith_api/models/maven_package_upload.py b/bindings/python/src/cloudsmith_api/models/maven_package_upload.py index 5ced03a3..fecd3f91 100644 --- a/bindings/python/src/cloudsmith_api/models/maven_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/maven_package_upload.py @@ -64,6 +64,7 @@ class MavenPackageUpload(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', + 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -111,18 +112,21 @@ class MavenPackageUpload(object): 'status_str': 'str', 'status_updated_at': 'datetime', 'status_url': 'str', + 'store_path': 'str', 'subtype': 'str', 'summary': 'str', 'sync_finished_at': 'datetime', 'sync_progress': 'int', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -158,6 +162,7 @@ class MavenPackageUpload(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', + 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -205,22 +210,25 @@ class MavenPackageUpload(object): 'status_str': 'status_str', 'status_updated_at': 'status_updated_at', 'status_url': 'status_url', + 'store_path': 'store_path', 'subtype': 'subtype', 'summary': 'summary', 'sync_finished_at': 'sync_finished_at', 'sync_progress': 'sync_progress', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', + 'vulnerability_counts': 'vulnerability_counts', 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, artifact_id=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, group_id=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, packaging=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, sbt_version=None, scala_version=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + def __init__(self, architectures=None, artifact_id=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, group_id=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_malware_detected=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, packaging=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, sbt_version=None, scala_version=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 """MavenPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -257,6 +265,7 @@ def __init__(self, architectures=None, artifact_id=None, cdn_url=None, checksum_ self._is_deleteable = None self._is_downloadable = None self._is_hidden = None + self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -304,18 +313,21 @@ def __init__(self, architectures=None, artifact_id=None, cdn_url=None, checksum_ self._status_str = None self._status_updated_at = None self._status_url = None + self._store_path = None self._subtype = None self._summary = None self._sync_finished_at = None self._sync_progress = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -381,6 +393,8 @@ def __init__(self, architectures=None, artifact_id=None, cdn_url=None, checksum_ self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -475,6 +489,8 @@ def __init__(self, architectures=None, artifact_id=None, cdn_url=None, checksum_ self.status_updated_at = status_updated_at if status_url is not None: self.status_url = status_url + if store_path is not None: + self.store_path = store_path if subtype is not None: self.subtype = subtype if summary is not None: @@ -487,6 +503,8 @@ def __init__(self, architectures=None, artifact_id=None, cdn_url=None, checksum_ self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -499,6 +517,8 @@ def __init__(self, architectures=None, artifact_id=None, cdn_url=None, checksum_ self.version = version if version_orig is not None: self.version_orig = version_orig + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -1187,6 +1207,29 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this MavenPackageUpload. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this MavenPackageUpload. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this MavenPackageUpload. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this MavenPackageUpload. + :type: bool + """ + + self._is_malware_detected = is_malware_detected + @property def is_moveable(self): """Gets the is_moveable of this MavenPackageUpload. @@ -2261,6 +2304,32 @@ def status_url(self, status_url): self._status_url = status_url + @property + def store_path(self): + """Gets the store_path of this MavenPackageUpload. + + Absolute store path for the package, including store hash and name. + + :return: The store_path of this MavenPackageUpload. + :rtype: str + """ + return self._store_path + + @store_path.setter + def store_path(self, store_path): + """Sets the store_path of this MavenPackageUpload. + + Absolute store path for the package, including store hash and name. + + :param store_path: The store_path of this MavenPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + store_path is not None and len(store_path) < 1): + raise ValueError("Invalid value for `store_path`, length must be greater than or equal to `1`") # noqa: E501 + + self._store_path = store_path + @property def subtype(self): """Gets the subtype of this MavenPackageUpload. @@ -2393,6 +2462,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this MavenPackageUpload. + + 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. + + :return: The tags_static of this MavenPackageUpload. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this MavenPackageUpload. + + 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. + + :param tags_static: The tags_static of this MavenPackageUpload. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this MavenPackageUpload. @@ -2529,6 +2621,27 @@ def version_orig(self, version_orig): self._version_orig = version_orig + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this MavenPackageUpload. + + + :return: The vulnerability_counts of this MavenPackageUpload. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this MavenPackageUpload. + + + :param vulnerability_counts: The vulnerability_counts of this MavenPackageUpload. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this MavenPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/maven_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/maven_package_upload_request.py index 9f6369f7..42174ee1 100644 --- a/bindings/python/src/cloudsmith_api/models/maven_package_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/maven_package_upload_request.py @@ -36,6 +36,7 @@ class MavenPackageUploadRequest(object): 'artifact_id': 'str', 'extra_files': 'list[str]', 'group_id': 'str', + 'is_malware_detected': 'bool', 'ivy_file': 'str', 'javadoc_file': 'str', 'package_file': 'str', @@ -47,13 +48,15 @@ class MavenPackageUploadRequest(object): 'sources_file': 'str', 'tags': 'str', 'tests_file': 'str', - 'version': 'str' + 'version': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { 'artifact_id': 'artifact_id', 'extra_files': 'extra_files', 'group_id': 'group_id', + 'is_malware_detected': 'is_malware_detected', 'ivy_file': 'ivy_file', 'javadoc_file': 'javadoc_file', 'package_file': 'package_file', @@ -65,10 +68,11 @@ class MavenPackageUploadRequest(object): 'sources_file': 'sources_file', 'tags': 'tags', 'tests_file': 'tests_file', - 'version': 'version' + 'version': 'version', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, artifact_id=None, extra_files=None, group_id=None, ivy_file=None, javadoc_file=None, package_file=None, packaging=None, pom_file=None, republish=None, sbt_version=None, scala_version=None, sources_file=None, tags=None, tests_file=None, version=None, _configuration=None): # noqa: E501 + def __init__(self, artifact_id=None, extra_files=None, group_id=None, is_malware_detected=None, ivy_file=None, javadoc_file=None, package_file=None, packaging=None, pom_file=None, republish=None, sbt_version=None, scala_version=None, sources_file=None, tags=None, tests_file=None, version=None, vulnerability_counts=None, _configuration=None): # noqa: E501 """MavenPackageUploadRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -77,6 +81,7 @@ def __init__(self, artifact_id=None, extra_files=None, group_id=None, ivy_file=N self._artifact_id = None self._extra_files = None self._group_id = None + self._is_malware_detected = None self._ivy_file = None self._javadoc_file = None self._package_file = None @@ -89,6 +94,7 @@ def __init__(self, artifact_id=None, extra_files=None, group_id=None, ivy_file=N self._tags = None self._tests_file = None self._version = None + self._vulnerability_counts = None self.discriminator = None if artifact_id is not None: @@ -97,6 +103,8 @@ def __init__(self, artifact_id=None, extra_files=None, group_id=None, ivy_file=N self.extra_files = extra_files if group_id is not None: self.group_id = group_id + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected if ivy_file is not None: self.ivy_file = ivy_file if javadoc_file is not None: @@ -120,6 +128,8 @@ def __init__(self, artifact_id=None, extra_files=None, group_id=None, ivy_file=N self.tests_file = tests_file if version is not None: self.version = version + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts @property def artifact_id(self): @@ -196,6 +206,29 @@ def group_id(self, group_id): self._group_id = group_id + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this MavenPackageUploadRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this MavenPackageUploadRequest. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this MavenPackageUploadRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this MavenPackageUploadRequest. + :type: bool + """ + + self._is_malware_detected = is_malware_detected + @property def ivy_file(self): """Gets the ivy_file of this MavenPackageUploadRequest. @@ -506,6 +539,27 @@ def version(self, version): self._version = version + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this MavenPackageUploadRequest. + + + :return: The vulnerability_counts of this MavenPackageUploadRequest. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this MavenPackageUploadRequest. + + + :param vulnerability_counts: The vulnerability_counts of this MavenPackageUploadRequest. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/bindings/python/src/cloudsmith_api/models/mcp_package_upload.py b/bindings/python/src/cloudsmith_api/models/mcp_package_upload.py index 2d674f79..d112c2df 100644 --- a/bindings/python/src/cloudsmith_api/models/mcp_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/mcp_package_upload.py @@ -62,6 +62,7 @@ class McpPackageUpload(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', + 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -106,18 +107,21 @@ class McpPackageUpload(object): 'status_str': 'str', 'status_updated_at': 'datetime', 'status_url': 'str', + 'store_path': 'str', 'subtype': 'str', 'summary': 'str', 'sync_finished_at': 'datetime', 'sync_progress': 'int', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -151,6 +155,7 @@ class McpPackageUpload(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', + 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -195,22 +200,25 @@ class McpPackageUpload(object): 'status_str': 'status_str', 'status_updated_at': 'status_updated_at', 'status_url': 'status_url', + 'store_path': 'store_path', 'subtype': 'subtype', 'summary': 'summary', 'sync_finished_at': 'sync_finished_at', 'sync_progress': 'sync_progress', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', + 'vulnerability_counts': 'vulnerability_counts', 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_malware_detected=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 """McpPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -245,6 +253,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_deleteable = None self._is_downloadable = None self._is_hidden = None + self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -289,18 +298,21 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._status_str = None self._status_updated_at = None self._status_url = None + self._store_path = None self._subtype = None self._summary = None self._sync_finished_at = None self._sync_progress = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -362,6 +374,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -450,6 +464,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.status_updated_at = status_updated_at if status_url is not None: self.status_url = status_url + if store_path is not None: + self.store_path = store_path if subtype is not None: self.subtype = subtype if summary is not None: @@ -462,6 +478,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -474,6 +492,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.version = version if version_orig is not None: self.version_orig = version_orig + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -1110,6 +1130,29 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this McpPackageUpload. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this McpPackageUpload. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this McpPackageUpload. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this McpPackageUpload. + :type: bool + """ + + self._is_malware_detected = is_malware_detected + @property def is_moveable(self): """Gets the is_moveable of this McpPackageUpload. @@ -2110,6 +2153,32 @@ def status_url(self, status_url): self._status_url = status_url + @property + def store_path(self): + """Gets the store_path of this McpPackageUpload. + + Absolute store path for the package, including store hash and name. + + :return: The store_path of this McpPackageUpload. + :rtype: str + """ + return self._store_path + + @store_path.setter + def store_path(self, store_path): + """Sets the store_path of this McpPackageUpload. + + Absolute store path for the package, including store hash and name. + + :param store_path: The store_path of this McpPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + store_path is not None and len(store_path) < 1): + raise ValueError("Invalid value for `store_path`, length must be greater than or equal to `1`") # noqa: E501 + + self._store_path = store_path + @property def subtype(self): """Gets the subtype of this McpPackageUpload. @@ -2242,6 +2311,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this McpPackageUpload. + + 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. + + :return: The tags_static of this McpPackageUpload. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this McpPackageUpload. + + 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. + + :param tags_static: The tags_static of this McpPackageUpload. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this McpPackageUpload. @@ -2378,6 +2470,27 @@ def version_orig(self, version_orig): self._version_orig = version_orig + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this McpPackageUpload. + + + :return: The vulnerability_counts of this McpPackageUpload. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this McpPackageUpload. + + + :param vulnerability_counts: The vulnerability_counts of this McpPackageUpload. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this McpPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/mcp_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/mcp_package_upload_request.py index 2db8655f..5796c407 100644 --- a/bindings/python/src/cloudsmith_api/models/mcp_package_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/mcp_package_upload_request.py @@ -33,31 +33,39 @@ class McpPackageUploadRequest(object): and the value is json key in definition. """ swagger_types = { + 'is_malware_detected': 'bool', 'package_file': 'str', 'republish': 'bool', 'tags': 'str', - 'version': 'str' + 'version': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { + 'is_malware_detected': 'is_malware_detected', 'package_file': 'package_file', 'republish': 'republish', 'tags': 'tags', - 'version': 'version' + 'version': 'version', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, package_file=None, republish=None, tags=None, version=None, _configuration=None): # noqa: E501 + def __init__(self, is_malware_detected=None, package_file=None, republish=None, tags=None, version=None, vulnerability_counts=None, _configuration=None): # noqa: E501 """McpPackageUploadRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration + self._is_malware_detected = None self._package_file = None self._republish = None self._tags = None self._version = None + self._vulnerability_counts = None self.discriminator = None + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected self.package_file = package_file if republish is not None: self.republish = republish @@ -65,6 +73,31 @@ def __init__(self, package_file=None, republish=None, tags=None, version=None, _ self.tags = tags if version is not None: self.version = version + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts + + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this McpPackageUploadRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this McpPackageUploadRequest. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this McpPackageUploadRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this McpPackageUploadRequest. + :type: bool + """ + + self._is_malware_detected = is_malware_detected @property def package_file(self): @@ -172,6 +205,27 @@ def version(self, version): self._version = version + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this McpPackageUploadRequest. + + + :return: The vulnerability_counts of this McpPackageUploadRequest. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this McpPackageUploadRequest. + + + :param vulnerability_counts: The vulnerability_counts of this McpPackageUploadRequest. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/bindings/python/src/cloudsmith_api/models/nix_package_upload.py b/bindings/python/src/cloudsmith_api/models/nix_package_upload.py new file mode 100644 index 00000000..b2046ff0 --- /dev/null +++ b/bindings/python/src/cloudsmith_api/models/nix_package_upload.py @@ -0,0 +1,2563 @@ +# coding: utf-8 + +""" + Cloudsmith API (v1) + + The API to the Cloudsmith Service # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudsmith.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration + + +class NixPackageUpload(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'architectures': 'list[Architecture]', + 'cdn_url': 'str', + 'checksum_md5': 'str', + 'checksum_sha1': 'str', + 'checksum_sha256': 'str', + 'checksum_sha512': 'str', + 'dependencies_checksum_md5': 'str', + 'dependencies_url': 'str', + 'description': 'str', + 'display_name': 'str', + 'distro': 'Distribution', + 'distro_version': 'DistributionVersion', + 'downloads': 'int', + 'epoch': 'int', + 'extension': 'str', + 'filename': 'str', + 'files': 'list[PackageFile]', + 'format': 'str', + 'format_url': 'str', + 'freeable_storage': 'int', + 'fully_qualified_name': 'str', + 'identifier_perm': 'str', + 'identifiers': 'dict(str, str)', + 'indexed': 'bool', + 'is_cancellable': 'bool', + 'is_copyable': 'bool', + 'is_deleteable': 'bool', + 'is_downloadable': 'bool', + 'is_hidden': 'bool', + 'is_malware_detected': 'bool', + 'is_moveable': 'bool', + 'is_quarantinable': 'bool', + 'is_quarantined': 'bool', + 'is_resyncable': 'bool', + 'is_security_scannable': 'bool', + 'is_sync_awaiting': 'bool', + 'is_sync_completed': 'bool', + 'is_sync_failed': 'bool', + 'is_sync_in_flight': 'bool', + 'is_sync_in_progress': 'bool', + 'license': 'str', + 'name': 'str', + 'namespace': 'str', + 'namespace_url': 'str', + 'num_files': 'int', + 'origin_repository': 'str', + 'origin_repository_url': 'str', + 'osi_approved': 'bool', + 'package_type': 'int', + 'policy_violated': 'bool', + 'raw_license': 'str', + 'release': 'str', + 'repository': 'str', + 'repository_url': 'str', + 'security_scan_completed_at': 'datetime', + 'security_scan_started_at': 'datetime', + 'security_scan_status': 'str', + 'security_scan_status_updated_at': 'datetime', + 'self_html_url': 'str', + 'self_url': 'str', + 'self_webapp_url': 'str', + 'signature_url': 'str', + 'size': 'int', + 'slug': 'str', + 'slug_perm': 'str', + 'spdx_license': 'str', + 'stage': 'int', + 'stage_str': 'str', + 'stage_updated_at': 'datetime', + 'status': 'int', + 'status_reason': 'str', + 'status_str': 'str', + 'status_updated_at': 'datetime', + 'status_url': 'str', + 'store_path': 'str', + 'subtype': 'str', + 'summary': 'str', + 'sync_finished_at': 'datetime', + 'sync_progress': 'int', + 'tags_automatic': 'Tags', + 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', + 'type_display': 'str', + 'uploaded_at': 'datetime', + 'uploader': 'str', + 'uploader_url': 'str', + 'version': 'str', + 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', + 'vulnerability_scan_results_url': 'str' + } + + attribute_map = { + 'architectures': 'architectures', + 'cdn_url': 'cdn_url', + 'checksum_md5': 'checksum_md5', + 'checksum_sha1': 'checksum_sha1', + 'checksum_sha256': 'checksum_sha256', + 'checksum_sha512': 'checksum_sha512', + 'dependencies_checksum_md5': 'dependencies_checksum_md5', + 'dependencies_url': 'dependencies_url', + 'description': 'description', + 'display_name': 'display_name', + 'distro': 'distro', + 'distro_version': 'distro_version', + 'downloads': 'downloads', + 'epoch': 'epoch', + 'extension': 'extension', + 'filename': 'filename', + 'files': 'files', + 'format': 'format', + 'format_url': 'format_url', + 'freeable_storage': 'freeable_storage', + 'fully_qualified_name': 'fully_qualified_name', + 'identifier_perm': 'identifier_perm', + 'identifiers': 'identifiers', + 'indexed': 'indexed', + 'is_cancellable': 'is_cancellable', + 'is_copyable': 'is_copyable', + 'is_deleteable': 'is_deleteable', + 'is_downloadable': 'is_downloadable', + 'is_hidden': 'is_hidden', + 'is_malware_detected': 'is_malware_detected', + 'is_moveable': 'is_moveable', + 'is_quarantinable': 'is_quarantinable', + 'is_quarantined': 'is_quarantined', + 'is_resyncable': 'is_resyncable', + 'is_security_scannable': 'is_security_scannable', + 'is_sync_awaiting': 'is_sync_awaiting', + 'is_sync_completed': 'is_sync_completed', + 'is_sync_failed': 'is_sync_failed', + 'is_sync_in_flight': 'is_sync_in_flight', + 'is_sync_in_progress': 'is_sync_in_progress', + 'license': 'license', + 'name': 'name', + 'namespace': 'namespace', + 'namespace_url': 'namespace_url', + 'num_files': 'num_files', + 'origin_repository': 'origin_repository', + 'origin_repository_url': 'origin_repository_url', + 'osi_approved': 'osi_approved', + 'package_type': 'package_type', + 'policy_violated': 'policy_violated', + 'raw_license': 'raw_license', + 'release': 'release', + 'repository': 'repository', + 'repository_url': 'repository_url', + 'security_scan_completed_at': 'security_scan_completed_at', + 'security_scan_started_at': 'security_scan_started_at', + 'security_scan_status': 'security_scan_status', + 'security_scan_status_updated_at': 'security_scan_status_updated_at', + 'self_html_url': 'self_html_url', + 'self_url': 'self_url', + 'self_webapp_url': 'self_webapp_url', + 'signature_url': 'signature_url', + 'size': 'size', + 'slug': 'slug', + 'slug_perm': 'slug_perm', + 'spdx_license': 'spdx_license', + 'stage': 'stage', + 'stage_str': 'stage_str', + 'stage_updated_at': 'stage_updated_at', + 'status': 'status', + 'status_reason': 'status_reason', + 'status_str': 'status_str', + 'status_updated_at': 'status_updated_at', + 'status_url': 'status_url', + 'store_path': 'store_path', + 'subtype': 'subtype', + 'summary': 'summary', + 'sync_finished_at': 'sync_finished_at', + 'sync_progress': 'sync_progress', + 'tags_automatic': 'tags_automatic', + 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', + 'type_display': 'type_display', + 'uploaded_at': 'uploaded_at', + 'uploader': 'uploader', + 'uploader_url': 'uploader_url', + 'version': 'version', + 'version_orig': 'version_orig', + 'vulnerability_counts': 'vulnerability_counts', + 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' + } + + def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_malware_detected=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + """NixPackageUpload - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._architectures = None + self._cdn_url = None + self._checksum_md5 = None + self._checksum_sha1 = None + self._checksum_sha256 = None + self._checksum_sha512 = None + self._dependencies_checksum_md5 = None + self._dependencies_url = None + self._description = None + self._display_name = None + self._distro = None + self._distro_version = None + self._downloads = None + self._epoch = None + self._extension = None + self._filename = None + self._files = None + self._format = None + self._format_url = None + self._freeable_storage = None + self._fully_qualified_name = None + self._identifier_perm = None + self._identifiers = None + self._indexed = None + self._is_cancellable = None + self._is_copyable = None + self._is_deleteable = None + self._is_downloadable = None + self._is_hidden = None + self._is_malware_detected = None + self._is_moveable = None + self._is_quarantinable = None + self._is_quarantined = None + self._is_resyncable = None + self._is_security_scannable = None + self._is_sync_awaiting = None + self._is_sync_completed = None + self._is_sync_failed = None + self._is_sync_in_flight = None + self._is_sync_in_progress = None + self._license = None + self._name = None + self._namespace = None + self._namespace_url = None + self._num_files = None + self._origin_repository = None + self._origin_repository_url = None + self._osi_approved = None + self._package_type = None + self._policy_violated = None + self._raw_license = None + self._release = None + self._repository = None + self._repository_url = None + self._security_scan_completed_at = None + self._security_scan_started_at = None + self._security_scan_status = None + self._security_scan_status_updated_at = None + self._self_html_url = None + self._self_url = None + self._self_webapp_url = None + self._signature_url = None + self._size = None + self._slug = None + self._slug_perm = None + self._spdx_license = None + self._stage = None + self._stage_str = None + self._stage_updated_at = None + self._status = None + self._status_reason = None + self._status_str = None + self._status_updated_at = None + self._status_url = None + self._store_path = None + self._subtype = None + self._summary = None + self._sync_finished_at = None + self._sync_progress = None + self._tags_automatic = None + self._tags_immutable = None + self._tags_static = None + self._type_display = None + self._uploaded_at = None + self._uploader = None + self._uploader_url = None + self._version = None + self._version_orig = None + self._vulnerability_counts = None + self._vulnerability_scan_results_url = None + self.discriminator = None + + if architectures is not None: + self.architectures = architectures + if cdn_url is not None: + self.cdn_url = cdn_url + if checksum_md5 is not None: + self.checksum_md5 = checksum_md5 + if checksum_sha1 is not None: + self.checksum_sha1 = checksum_sha1 + if checksum_sha256 is not None: + self.checksum_sha256 = checksum_sha256 + if checksum_sha512 is not None: + self.checksum_sha512 = checksum_sha512 + if dependencies_checksum_md5 is not None: + self.dependencies_checksum_md5 = dependencies_checksum_md5 + if dependencies_url is not None: + self.dependencies_url = dependencies_url + if description is not None: + self.description = description + if display_name is not None: + self.display_name = display_name + if distro is not None: + self.distro = distro + if distro_version is not None: + self.distro_version = distro_version + if downloads is not None: + self.downloads = downloads + if epoch is not None: + self.epoch = epoch + if extension is not None: + self.extension = extension + if filename is not None: + self.filename = filename + if files is not None: + self.files = files + if format is not None: + self.format = format + if format_url is not None: + self.format_url = format_url + if freeable_storage is not None: + self.freeable_storage = freeable_storage + if fully_qualified_name is not None: + self.fully_qualified_name = fully_qualified_name + if identifier_perm is not None: + self.identifier_perm = identifier_perm + if identifiers is not None: + self.identifiers = identifiers + if indexed is not None: + self.indexed = indexed + if is_cancellable is not None: + self.is_cancellable = is_cancellable + if is_copyable is not None: + self.is_copyable = is_copyable + if is_deleteable is not None: + self.is_deleteable = is_deleteable + if is_downloadable is not None: + self.is_downloadable = is_downloadable + if is_hidden is not None: + self.is_hidden = is_hidden + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected + if is_moveable is not None: + self.is_moveable = is_moveable + if is_quarantinable is not None: + self.is_quarantinable = is_quarantinable + if is_quarantined is not None: + self.is_quarantined = is_quarantined + if is_resyncable is not None: + self.is_resyncable = is_resyncable + if is_security_scannable is not None: + self.is_security_scannable = is_security_scannable + if is_sync_awaiting is not None: + self.is_sync_awaiting = is_sync_awaiting + if is_sync_completed is not None: + self.is_sync_completed = is_sync_completed + if is_sync_failed is not None: + self.is_sync_failed = is_sync_failed + if is_sync_in_flight is not None: + self.is_sync_in_flight = is_sync_in_flight + if is_sync_in_progress is not None: + self.is_sync_in_progress = is_sync_in_progress + if license is not None: + self.license = license + if name is not None: + self.name = name + if namespace is not None: + self.namespace = namespace + if namespace_url is not None: + self.namespace_url = namespace_url + if num_files is not None: + self.num_files = num_files + if origin_repository is not None: + self.origin_repository = origin_repository + if origin_repository_url is not None: + self.origin_repository_url = origin_repository_url + if osi_approved is not None: + self.osi_approved = osi_approved + if package_type is not None: + self.package_type = package_type + if policy_violated is not None: + self.policy_violated = policy_violated + if raw_license is not None: + self.raw_license = raw_license + if release is not None: + self.release = release + if repository is not None: + self.repository = repository + if repository_url is not None: + self.repository_url = repository_url + if security_scan_completed_at is not None: + self.security_scan_completed_at = security_scan_completed_at + if security_scan_started_at is not None: + self.security_scan_started_at = security_scan_started_at + if security_scan_status is not None: + self.security_scan_status = security_scan_status + if security_scan_status_updated_at is not None: + self.security_scan_status_updated_at = security_scan_status_updated_at + if self_html_url is not None: + self.self_html_url = self_html_url + if self_url is not None: + self.self_url = self_url + if self_webapp_url is not None: + self.self_webapp_url = self_webapp_url + if signature_url is not None: + self.signature_url = signature_url + if size is not None: + self.size = size + if slug is not None: + self.slug = slug + if slug_perm is not None: + self.slug_perm = slug_perm + if spdx_license is not None: + self.spdx_license = spdx_license + if stage is not None: + self.stage = stage + if stage_str is not None: + self.stage_str = stage_str + if stage_updated_at is not None: + self.stage_updated_at = stage_updated_at + if status is not None: + self.status = status + if status_reason is not None: + self.status_reason = status_reason + if status_str is not None: + self.status_str = status_str + if status_updated_at is not None: + self.status_updated_at = status_updated_at + if status_url is not None: + self.status_url = status_url + if store_path is not None: + self.store_path = store_path + if subtype is not None: + self.subtype = subtype + if summary is not None: + self.summary = summary + if sync_finished_at is not None: + self.sync_finished_at = sync_finished_at + if sync_progress is not None: + self.sync_progress = sync_progress + if tags_automatic is not None: + self.tags_automatic = tags_automatic + if tags_immutable is not None: + self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static + if type_display is not None: + self.type_display = type_display + if uploaded_at is not None: + self.uploaded_at = uploaded_at + if uploader is not None: + self.uploader = uploader + if uploader_url is not None: + self.uploader_url = uploader_url + if version is not None: + self.version = version + if version_orig is not None: + self.version_orig = version_orig + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts + if vulnerability_scan_results_url is not None: + self.vulnerability_scan_results_url = vulnerability_scan_results_url + + @property + def architectures(self): + """Gets the architectures of this NixPackageUpload. + + + :return: The architectures of this NixPackageUpload. + :rtype: list[Architecture] + """ + return self._architectures + + @architectures.setter + def architectures(self, architectures): + """Sets the architectures of this NixPackageUpload. + + + :param architectures: The architectures of this NixPackageUpload. + :type: list[Architecture] + """ + + self._architectures = architectures + + @property + def cdn_url(self): + """Gets the cdn_url of this NixPackageUpload. + + + :return: The cdn_url of this NixPackageUpload. + :rtype: str + """ + return self._cdn_url + + @cdn_url.setter + def cdn_url(self, cdn_url): + """Sets the cdn_url of this NixPackageUpload. + + + :param cdn_url: The cdn_url of this NixPackageUpload. + :type: str + """ + + self._cdn_url = cdn_url + + @property + def checksum_md5(self): + """Gets the checksum_md5 of this NixPackageUpload. + + + :return: The checksum_md5 of this NixPackageUpload. + :rtype: str + """ + return self._checksum_md5 + + @checksum_md5.setter + def checksum_md5(self, checksum_md5): + """Sets the checksum_md5 of this NixPackageUpload. + + + :param checksum_md5: The checksum_md5 of this NixPackageUpload. + :type: str + """ + + self._checksum_md5 = checksum_md5 + + @property + def checksum_sha1(self): + """Gets the checksum_sha1 of this NixPackageUpload. + + + :return: The checksum_sha1 of this NixPackageUpload. + :rtype: str + """ + return self._checksum_sha1 + + @checksum_sha1.setter + def checksum_sha1(self, checksum_sha1): + """Sets the checksum_sha1 of this NixPackageUpload. + + + :param checksum_sha1: The checksum_sha1 of this NixPackageUpload. + :type: str + """ + + self._checksum_sha1 = checksum_sha1 + + @property + def checksum_sha256(self): + """Gets the checksum_sha256 of this NixPackageUpload. + + + :return: The checksum_sha256 of this NixPackageUpload. + :rtype: str + """ + return self._checksum_sha256 + + @checksum_sha256.setter + def checksum_sha256(self, checksum_sha256): + """Sets the checksum_sha256 of this NixPackageUpload. + + + :param checksum_sha256: The checksum_sha256 of this NixPackageUpload. + :type: str + """ + + self._checksum_sha256 = checksum_sha256 + + @property + def checksum_sha512(self): + """Gets the checksum_sha512 of this NixPackageUpload. + + + :return: The checksum_sha512 of this NixPackageUpload. + :rtype: str + """ + return self._checksum_sha512 + + @checksum_sha512.setter + def checksum_sha512(self, checksum_sha512): + """Sets the checksum_sha512 of this NixPackageUpload. + + + :param checksum_sha512: The checksum_sha512 of this NixPackageUpload. + :type: str + """ + + self._checksum_sha512 = checksum_sha512 + + @property + def dependencies_checksum_md5(self): + """Gets the dependencies_checksum_md5 of this NixPackageUpload. + + A checksum of all of the package's dependencies. + + :return: The dependencies_checksum_md5 of this NixPackageUpload. + :rtype: str + """ + return self._dependencies_checksum_md5 + + @dependencies_checksum_md5.setter + def dependencies_checksum_md5(self, dependencies_checksum_md5): + """Sets the dependencies_checksum_md5 of this NixPackageUpload. + + A checksum of all of the package's dependencies. + + :param dependencies_checksum_md5: The dependencies_checksum_md5 of this NixPackageUpload. + :type: str + """ + + self._dependencies_checksum_md5 = dependencies_checksum_md5 + + @property + def dependencies_url(self): + """Gets the dependencies_url of this NixPackageUpload. + + + :return: The dependencies_url of this NixPackageUpload. + :rtype: str + """ + return self._dependencies_url + + @dependencies_url.setter + def dependencies_url(self, dependencies_url): + """Sets the dependencies_url of this NixPackageUpload. + + + :param dependencies_url: The dependencies_url of this NixPackageUpload. + :type: str + """ + + self._dependencies_url = dependencies_url + + @property + def description(self): + """Gets the description of this NixPackageUpload. + + A textual description of this package. + + :return: The description of this NixPackageUpload. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this NixPackageUpload. + + A textual description of this package. + + :param description: The description of this NixPackageUpload. + :type: str + """ + + self._description = description + + @property + def display_name(self): + """Gets the display_name of this NixPackageUpload. + + + :return: The display_name of this NixPackageUpload. + :rtype: str + """ + return self._display_name + + @display_name.setter + def display_name(self, display_name): + """Sets the display_name of this NixPackageUpload. + + + :param display_name: The display_name of this NixPackageUpload. + :type: str + """ + + self._display_name = display_name + + @property + def distro(self): + """Gets the distro of this NixPackageUpload. + + + :return: The distro of this NixPackageUpload. + :rtype: Distribution + """ + return self._distro + + @distro.setter + def distro(self, distro): + """Sets the distro of this NixPackageUpload. + + + :param distro: The distro of this NixPackageUpload. + :type: Distribution + """ + + self._distro = distro + + @property + def distro_version(self): + """Gets the distro_version of this NixPackageUpload. + + + :return: The distro_version of this NixPackageUpload. + :rtype: DistributionVersion + """ + return self._distro_version + + @distro_version.setter + def distro_version(self, distro_version): + """Sets the distro_version of this NixPackageUpload. + + + :param distro_version: The distro_version of this NixPackageUpload. + :type: DistributionVersion + """ + + self._distro_version = distro_version + + @property + def downloads(self): + """Gets the downloads of this NixPackageUpload. + + + :return: The downloads of this NixPackageUpload. + :rtype: int + """ + return self._downloads + + @downloads.setter + def downloads(self, downloads): + """Sets the downloads of this NixPackageUpload. + + + :param downloads: The downloads of this NixPackageUpload. + :type: int + """ + + self._downloads = downloads + + @property + def epoch(self): + """Gets the epoch of this NixPackageUpload. + + The epoch of the package version (if any). + + :return: The epoch of this NixPackageUpload. + :rtype: int + """ + return self._epoch + + @epoch.setter + def epoch(self, epoch): + """Sets the epoch of this NixPackageUpload. + + The epoch of the package version (if any). + + :param epoch: The epoch of this NixPackageUpload. + :type: int + """ + + self._epoch = epoch + + @property + def extension(self): + """Gets the extension of this NixPackageUpload. + + + :return: The extension of this NixPackageUpload. + :rtype: str + """ + return self._extension + + @extension.setter + def extension(self, extension): + """Sets the extension of this NixPackageUpload. + + + :param extension: The extension of this NixPackageUpload. + :type: str + """ + + self._extension = extension + + @property + def filename(self): + """Gets the filename of this NixPackageUpload. + + + :return: The filename of this NixPackageUpload. + :rtype: str + """ + return self._filename + + @filename.setter + def filename(self, filename): + """Sets the filename of this NixPackageUpload. + + + :param filename: The filename of this NixPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + filename is not None and len(filename) < 1): + raise ValueError("Invalid value for `filename`, length must be greater than or equal to `1`") # noqa: E501 + + self._filename = filename + + @property + def files(self): + """Gets the files of this NixPackageUpload. + + + :return: The files of this NixPackageUpload. + :rtype: list[PackageFile] + """ + return self._files + + @files.setter + def files(self, files): + """Sets the files of this NixPackageUpload. + + + :param files: The files of this NixPackageUpload. + :type: list[PackageFile] + """ + + self._files = files + + @property + def format(self): + """Gets the format of this NixPackageUpload. + + + :return: The format of this NixPackageUpload. + :rtype: str + """ + return self._format + + @format.setter + def format(self, format): + """Sets the format of this NixPackageUpload. + + + :param format: The format of this NixPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + format is not None and len(format) < 1): + raise ValueError("Invalid value for `format`, length must be greater than or equal to `1`") # noqa: E501 + + self._format = format + + @property + def format_url(self): + """Gets the format_url of this NixPackageUpload. + + + :return: The format_url of this NixPackageUpload. + :rtype: str + """ + return self._format_url + + @format_url.setter + def format_url(self, format_url): + """Sets the format_url of this NixPackageUpload. + + + :param format_url: The format_url of this NixPackageUpload. + :type: str + """ + + self._format_url = format_url + + @property + def freeable_storage(self): + """Gets the freeable_storage of this NixPackageUpload. + + Amount of storage that will be freed if this package is deleted + + :return: The freeable_storage of this NixPackageUpload. + :rtype: int + """ + return self._freeable_storage + + @freeable_storage.setter + def freeable_storage(self, freeable_storage): + """Sets the freeable_storage of this NixPackageUpload. + + Amount of storage that will be freed if this package is deleted + + :param freeable_storage: The freeable_storage of this NixPackageUpload. + :type: int + """ + + self._freeable_storage = freeable_storage + + @property + def fully_qualified_name(self): + """Gets the fully_qualified_name of this NixPackageUpload. + + + :return: The fully_qualified_name of this NixPackageUpload. + :rtype: str + """ + return self._fully_qualified_name + + @fully_qualified_name.setter + def fully_qualified_name(self, fully_qualified_name): + """Sets the fully_qualified_name of this NixPackageUpload. + + + :param fully_qualified_name: The fully_qualified_name of this NixPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + fully_qualified_name is not None and len(fully_qualified_name) < 1): + raise ValueError("Invalid value for `fully_qualified_name`, length must be greater than or equal to `1`") # noqa: E501 + + self._fully_qualified_name = fully_qualified_name + + @property + def identifier_perm(self): + """Gets the identifier_perm of this NixPackageUpload. + + Unique and permanent identifier for the package. + + :return: The identifier_perm of this NixPackageUpload. + :rtype: str + """ + return self._identifier_perm + + @identifier_perm.setter + def identifier_perm(self, identifier_perm): + """Sets the identifier_perm of this NixPackageUpload. + + Unique and permanent identifier for the package. + + :param identifier_perm: The identifier_perm of this NixPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + identifier_perm is not None and len(identifier_perm) < 1): + raise ValueError("Invalid value for `identifier_perm`, length must be greater than or equal to `1`") # noqa: E501 + + self._identifier_perm = identifier_perm + + @property + def identifiers(self): + """Gets the identifiers of this NixPackageUpload. + + Return a map of identifier field names and their values. + + :return: The identifiers of this NixPackageUpload. + :rtype: dict(str, str) + """ + return self._identifiers + + @identifiers.setter + def identifiers(self, identifiers): + """Sets the identifiers of this NixPackageUpload. + + Return a map of identifier field names and their values. + + :param identifiers: The identifiers of this NixPackageUpload. + :type: dict(str, str) + """ + + self._identifiers = identifiers + + @property + def indexed(self): + """Gets the indexed of this NixPackageUpload. + + + :return: The indexed of this NixPackageUpload. + :rtype: bool + """ + return self._indexed + + @indexed.setter + def indexed(self, indexed): + """Sets the indexed of this NixPackageUpload. + + + :param indexed: The indexed of this NixPackageUpload. + :type: bool + """ + + self._indexed = indexed + + @property + def is_cancellable(self): + """Gets the is_cancellable of this NixPackageUpload. + + + :return: The is_cancellable of this NixPackageUpload. + :rtype: bool + """ + return self._is_cancellable + + @is_cancellable.setter + def is_cancellable(self, is_cancellable): + """Sets the is_cancellable of this NixPackageUpload. + + + :param is_cancellable: The is_cancellable of this NixPackageUpload. + :type: bool + """ + + self._is_cancellable = is_cancellable + + @property + def is_copyable(self): + """Gets the is_copyable of this NixPackageUpload. + + + :return: The is_copyable of this NixPackageUpload. + :rtype: bool + """ + return self._is_copyable + + @is_copyable.setter + def is_copyable(self, is_copyable): + """Sets the is_copyable of this NixPackageUpload. + + + :param is_copyable: The is_copyable of this NixPackageUpload. + :type: bool + """ + + self._is_copyable = is_copyable + + @property + def is_deleteable(self): + """Gets the is_deleteable of this NixPackageUpload. + + + :return: The is_deleteable of this NixPackageUpload. + :rtype: bool + """ + return self._is_deleteable + + @is_deleteable.setter + def is_deleteable(self, is_deleteable): + """Sets the is_deleteable of this NixPackageUpload. + + + :param is_deleteable: The is_deleteable of this NixPackageUpload. + :type: bool + """ + + self._is_deleteable = is_deleteable + + @property + def is_downloadable(self): + """Gets the is_downloadable of this NixPackageUpload. + + + :return: The is_downloadable of this NixPackageUpload. + :rtype: bool + """ + return self._is_downloadable + + @is_downloadable.setter + def is_downloadable(self, is_downloadable): + """Sets the is_downloadable of this NixPackageUpload. + + + :param is_downloadable: The is_downloadable of this NixPackageUpload. + :type: bool + """ + + self._is_downloadable = is_downloadable + + @property + def is_hidden(self): + """Gets the is_hidden of this NixPackageUpload. + + + :return: The is_hidden of this NixPackageUpload. + :rtype: bool + """ + return self._is_hidden + + @is_hidden.setter + def is_hidden(self, is_hidden): + """Sets the is_hidden of this NixPackageUpload. + + + :param is_hidden: The is_hidden of this NixPackageUpload. + :type: bool + """ + + self._is_hidden = is_hidden + + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this NixPackageUpload. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this NixPackageUpload. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this NixPackageUpload. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this NixPackageUpload. + :type: bool + """ + + self._is_malware_detected = is_malware_detected + + @property + def is_moveable(self): + """Gets the is_moveable of this NixPackageUpload. + + + :return: The is_moveable of this NixPackageUpload. + :rtype: bool + """ + return self._is_moveable + + @is_moveable.setter + def is_moveable(self, is_moveable): + """Sets the is_moveable of this NixPackageUpload. + + + :param is_moveable: The is_moveable of this NixPackageUpload. + :type: bool + """ + + self._is_moveable = is_moveable + + @property + def is_quarantinable(self): + """Gets the is_quarantinable of this NixPackageUpload. + + + :return: The is_quarantinable of this NixPackageUpload. + :rtype: bool + """ + return self._is_quarantinable + + @is_quarantinable.setter + def is_quarantinable(self, is_quarantinable): + """Sets the is_quarantinable of this NixPackageUpload. + + + :param is_quarantinable: The is_quarantinable of this NixPackageUpload. + :type: bool + """ + + self._is_quarantinable = is_quarantinable + + @property + def is_quarantined(self): + """Gets the is_quarantined of this NixPackageUpload. + + + :return: The is_quarantined of this NixPackageUpload. + :rtype: bool + """ + return self._is_quarantined + + @is_quarantined.setter + def is_quarantined(self, is_quarantined): + """Sets the is_quarantined of this NixPackageUpload. + + + :param is_quarantined: The is_quarantined of this NixPackageUpload. + :type: bool + """ + + self._is_quarantined = is_quarantined + + @property + def is_resyncable(self): + """Gets the is_resyncable of this NixPackageUpload. + + + :return: The is_resyncable of this NixPackageUpload. + :rtype: bool + """ + return self._is_resyncable + + @is_resyncable.setter + def is_resyncable(self, is_resyncable): + """Sets the is_resyncable of this NixPackageUpload. + + + :param is_resyncable: The is_resyncable of this NixPackageUpload. + :type: bool + """ + + self._is_resyncable = is_resyncable + + @property + def is_security_scannable(self): + """Gets the is_security_scannable of this NixPackageUpload. + + + :return: The is_security_scannable of this NixPackageUpload. + :rtype: bool + """ + return self._is_security_scannable + + @is_security_scannable.setter + def is_security_scannable(self, is_security_scannable): + """Sets the is_security_scannable of this NixPackageUpload. + + + :param is_security_scannable: The is_security_scannable of this NixPackageUpload. + :type: bool + """ + + self._is_security_scannable = is_security_scannable + + @property + def is_sync_awaiting(self): + """Gets the is_sync_awaiting of this NixPackageUpload. + + + :return: The is_sync_awaiting of this NixPackageUpload. + :rtype: bool + """ + return self._is_sync_awaiting + + @is_sync_awaiting.setter + def is_sync_awaiting(self, is_sync_awaiting): + """Sets the is_sync_awaiting of this NixPackageUpload. + + + :param is_sync_awaiting: The is_sync_awaiting of this NixPackageUpload. + :type: bool + """ + + self._is_sync_awaiting = is_sync_awaiting + + @property + def is_sync_completed(self): + """Gets the is_sync_completed of this NixPackageUpload. + + + :return: The is_sync_completed of this NixPackageUpload. + :rtype: bool + """ + return self._is_sync_completed + + @is_sync_completed.setter + def is_sync_completed(self, is_sync_completed): + """Sets the is_sync_completed of this NixPackageUpload. + + + :param is_sync_completed: The is_sync_completed of this NixPackageUpload. + :type: bool + """ + + self._is_sync_completed = is_sync_completed + + @property + def is_sync_failed(self): + """Gets the is_sync_failed of this NixPackageUpload. + + + :return: The is_sync_failed of this NixPackageUpload. + :rtype: bool + """ + return self._is_sync_failed + + @is_sync_failed.setter + def is_sync_failed(self, is_sync_failed): + """Sets the is_sync_failed of this NixPackageUpload. + + + :param is_sync_failed: The is_sync_failed of this NixPackageUpload. + :type: bool + """ + + self._is_sync_failed = is_sync_failed + + @property + def is_sync_in_flight(self): + """Gets the is_sync_in_flight of this NixPackageUpload. + + + :return: The is_sync_in_flight of this NixPackageUpload. + :rtype: bool + """ + return self._is_sync_in_flight + + @is_sync_in_flight.setter + def is_sync_in_flight(self, is_sync_in_flight): + """Sets the is_sync_in_flight of this NixPackageUpload. + + + :param is_sync_in_flight: The is_sync_in_flight of this NixPackageUpload. + :type: bool + """ + + self._is_sync_in_flight = is_sync_in_flight + + @property + def is_sync_in_progress(self): + """Gets the is_sync_in_progress of this NixPackageUpload. + + + :return: The is_sync_in_progress of this NixPackageUpload. + :rtype: bool + """ + return self._is_sync_in_progress + + @is_sync_in_progress.setter + def is_sync_in_progress(self, is_sync_in_progress): + """Sets the is_sync_in_progress of this NixPackageUpload. + + + :param is_sync_in_progress: The is_sync_in_progress of this NixPackageUpload. + :type: bool + """ + + self._is_sync_in_progress = is_sync_in_progress + + @property + def license(self): + """Gets the license of this NixPackageUpload. + + The license of this package. + + :return: The license of this NixPackageUpload. + :rtype: str + """ + return self._license + + @license.setter + def license(self, license): + """Sets the license of this NixPackageUpload. + + The license of this package. + + :param license: The license of this NixPackageUpload. + :type: str + """ + + self._license = license + + @property + def name(self): + """Gets the name of this NixPackageUpload. + + The name of this package. + + :return: The name of this NixPackageUpload. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this NixPackageUpload. + + The name of this package. + + :param name: The name of this NixPackageUpload. + :type: str + """ + + self._name = name + + @property + def namespace(self): + """Gets the namespace of this NixPackageUpload. + + + :return: The namespace of this NixPackageUpload. + :rtype: str + """ + return self._namespace + + @namespace.setter + def namespace(self, namespace): + """Sets the namespace of this NixPackageUpload. + + + :param namespace: The namespace of this NixPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + namespace is not None and len(namespace) < 1): + raise ValueError("Invalid value for `namespace`, length must be greater than or equal to `1`") # noqa: E501 + + self._namespace = namespace + + @property + def namespace_url(self): + """Gets the namespace_url of this NixPackageUpload. + + + :return: The namespace_url of this NixPackageUpload. + :rtype: str + """ + return self._namespace_url + + @namespace_url.setter + def namespace_url(self, namespace_url): + """Sets the namespace_url of this NixPackageUpload. + + + :param namespace_url: The namespace_url of this NixPackageUpload. + :type: str + """ + + self._namespace_url = namespace_url + + @property + def num_files(self): + """Gets the num_files of this NixPackageUpload. + + + :return: The num_files of this NixPackageUpload. + :rtype: int + """ + return self._num_files + + @num_files.setter + def num_files(self, num_files): + """Sets the num_files of this NixPackageUpload. + + + :param num_files: The num_files of this NixPackageUpload. + :type: int + """ + + self._num_files = num_files + + @property + def origin_repository(self): + """Gets the origin_repository of this NixPackageUpload. + + + :return: The origin_repository of this NixPackageUpload. + :rtype: str + """ + return self._origin_repository + + @origin_repository.setter + def origin_repository(self, origin_repository): + """Sets the origin_repository of this NixPackageUpload. + + + :param origin_repository: The origin_repository of this NixPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + origin_repository is not None and len(origin_repository) < 1): + raise ValueError("Invalid value for `origin_repository`, length must be greater than or equal to `1`") # noqa: E501 + + self._origin_repository = origin_repository + + @property + def origin_repository_url(self): + """Gets the origin_repository_url of this NixPackageUpload. + + + :return: The origin_repository_url of this NixPackageUpload. + :rtype: str + """ + return self._origin_repository_url + + @origin_repository_url.setter + def origin_repository_url(self, origin_repository_url): + """Sets the origin_repository_url of this NixPackageUpload. + + + :param origin_repository_url: The origin_repository_url of this NixPackageUpload. + :type: str + """ + + self._origin_repository_url = origin_repository_url + + @property + def osi_approved(self): + """Gets the osi_approved of this NixPackageUpload. + + Whether the package's SPDX license is OSI-approved. + + :return: The osi_approved of this NixPackageUpload. + :rtype: bool + """ + return self._osi_approved + + @osi_approved.setter + def osi_approved(self, osi_approved): + """Sets the osi_approved of this NixPackageUpload. + + Whether the package's SPDX license is OSI-approved. + + :param osi_approved: The osi_approved of this NixPackageUpload. + :type: bool + """ + + self._osi_approved = osi_approved + + @property + def package_type(self): + """Gets the package_type of this NixPackageUpload. + + The type of package contents. + + :return: The package_type of this NixPackageUpload. + :rtype: int + """ + return self._package_type + + @package_type.setter + def package_type(self, package_type): + """Sets the package_type of this NixPackageUpload. + + The type of package contents. + + :param package_type: The package_type of this NixPackageUpload. + :type: int + """ + + self._package_type = package_type + + @property + def policy_violated(self): + """Gets the policy_violated of this NixPackageUpload. + + Whether or not the package has violated any policy. + + :return: The policy_violated of this NixPackageUpload. + :rtype: bool + """ + return self._policy_violated + + @policy_violated.setter + def policy_violated(self, policy_violated): + """Sets the policy_violated of this NixPackageUpload. + + Whether or not the package has violated any policy. + + :param policy_violated: The policy_violated of this NixPackageUpload. + :type: bool + """ + + self._policy_violated = policy_violated + + @property + def raw_license(self): + """Gets the raw_license of this NixPackageUpload. + + The raw license string. + + :return: The raw_license of this NixPackageUpload. + :rtype: str + """ + return self._raw_license + + @raw_license.setter + def raw_license(self, raw_license): + """Sets the raw_license of this NixPackageUpload. + + The raw license string. + + :param raw_license: The raw_license of this NixPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + raw_license is not None and len(raw_license) < 1): + raise ValueError("Invalid value for `raw_license`, length must be greater than or equal to `1`") # noqa: E501 + + self._raw_license = raw_license + + @property + def release(self): + """Gets the release of this NixPackageUpload. + + The release of the package version (if any). + + :return: The release of this NixPackageUpload. + :rtype: str + """ + return self._release + + @release.setter + def release(self, release): + """Sets the release of this NixPackageUpload. + + The release of the package version (if any). + + :param release: The release of this NixPackageUpload. + :type: str + """ + + self._release = release + + @property + def repository(self): + """Gets the repository of this NixPackageUpload. + + + :return: The repository of this NixPackageUpload. + :rtype: str + """ + return self._repository + + @repository.setter + def repository(self, repository): + """Sets the repository of this NixPackageUpload. + + + :param repository: The repository of this NixPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + repository is not None and len(repository) < 1): + raise ValueError("Invalid value for `repository`, length must be greater than or equal to `1`") # noqa: E501 + + self._repository = repository + + @property + def repository_url(self): + """Gets the repository_url of this NixPackageUpload. + + + :return: The repository_url of this NixPackageUpload. + :rtype: str + """ + return self._repository_url + + @repository_url.setter + def repository_url(self, repository_url): + """Sets the repository_url of this NixPackageUpload. + + + :param repository_url: The repository_url of this NixPackageUpload. + :type: str + """ + + self._repository_url = repository_url + + @property + def security_scan_completed_at(self): + """Gets the security_scan_completed_at of this NixPackageUpload. + + The datetime the security scanning was completed. + + :return: The security_scan_completed_at of this NixPackageUpload. + :rtype: datetime + """ + return self._security_scan_completed_at + + @security_scan_completed_at.setter + def security_scan_completed_at(self, security_scan_completed_at): + """Sets the security_scan_completed_at of this NixPackageUpload. + + The datetime the security scanning was completed. + + :param security_scan_completed_at: The security_scan_completed_at of this NixPackageUpload. + :type: datetime + """ + + self._security_scan_completed_at = security_scan_completed_at + + @property + def security_scan_started_at(self): + """Gets the security_scan_started_at of this NixPackageUpload. + + The datetime the security scanning was started. + + :return: The security_scan_started_at of this NixPackageUpload. + :rtype: datetime + """ + return self._security_scan_started_at + + @security_scan_started_at.setter + def security_scan_started_at(self, security_scan_started_at): + """Sets the security_scan_started_at of this NixPackageUpload. + + The datetime the security scanning was started. + + :param security_scan_started_at: The security_scan_started_at of this NixPackageUpload. + :type: datetime + """ + + self._security_scan_started_at = security_scan_started_at + + @property + def security_scan_status(self): + """Gets the security_scan_status of this NixPackageUpload. + + + :return: The security_scan_status of this NixPackageUpload. + :rtype: str + """ + return self._security_scan_status + + @security_scan_status.setter + def security_scan_status(self, security_scan_status): + """Sets the security_scan_status of this NixPackageUpload. + + + :param security_scan_status: The security_scan_status of this NixPackageUpload. + :type: str + """ + allowed_values = ["Awaiting Security Scan", "Security Scanning in Progress", "Scan Detected Vulnerabilities", "Scan Detected No Vulnerabilities", "Security Scanning Disabled", "Security Scanning Failed", "Security Scanning Skipped", "Security Scanning Not Supported"] # noqa: E501 + if (self._configuration.client_side_validation and + security_scan_status not in allowed_values): + raise ValueError( + "Invalid value for `security_scan_status` ({0}), must be one of {1}" # noqa: E501 + .format(security_scan_status, allowed_values) + ) + + self._security_scan_status = security_scan_status + + @property + def security_scan_status_updated_at(self): + """Gets the security_scan_status_updated_at of this NixPackageUpload. + + The datetime the security scanning status was updated. + + :return: The security_scan_status_updated_at of this NixPackageUpload. + :rtype: datetime + """ + return self._security_scan_status_updated_at + + @security_scan_status_updated_at.setter + def security_scan_status_updated_at(self, security_scan_status_updated_at): + """Sets the security_scan_status_updated_at of this NixPackageUpload. + + The datetime the security scanning status was updated. + + :param security_scan_status_updated_at: The security_scan_status_updated_at of this NixPackageUpload. + :type: datetime + """ + + self._security_scan_status_updated_at = security_scan_status_updated_at + + @property + def self_html_url(self): + """Gets the self_html_url of this NixPackageUpload. + + + :return: The self_html_url of this NixPackageUpload. + :rtype: str + """ + return self._self_html_url + + @self_html_url.setter + def self_html_url(self, self_html_url): + """Sets the self_html_url of this NixPackageUpload. + + + :param self_html_url: The self_html_url of this NixPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + self_html_url is not None and len(self_html_url) < 1): + raise ValueError("Invalid value for `self_html_url`, length must be greater than or equal to `1`") # noqa: E501 + + self._self_html_url = self_html_url + + @property + def self_url(self): + """Gets the self_url of this NixPackageUpload. + + + :return: The self_url of this NixPackageUpload. + :rtype: str + """ + return self._self_url + + @self_url.setter + def self_url(self, self_url): + """Sets the self_url of this NixPackageUpload. + + + :param self_url: The self_url of this NixPackageUpload. + :type: str + """ + + self._self_url = self_url + + @property + def self_webapp_url(self): + """Gets the self_webapp_url of this NixPackageUpload. + + + :return: The self_webapp_url of this NixPackageUpload. + :rtype: str + """ + return self._self_webapp_url + + @self_webapp_url.setter + def self_webapp_url(self, self_webapp_url): + """Sets the self_webapp_url of this NixPackageUpload. + + + :param self_webapp_url: The self_webapp_url of this NixPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + self_webapp_url is not None and len(self_webapp_url) < 1): + raise ValueError("Invalid value for `self_webapp_url`, length must be greater than or equal to `1`") # noqa: E501 + + self._self_webapp_url = self_webapp_url + + @property + def signature_url(self): + """Gets the signature_url of this NixPackageUpload. + + + :return: The signature_url of this NixPackageUpload. + :rtype: str + """ + return self._signature_url + + @signature_url.setter + def signature_url(self, signature_url): + """Sets the signature_url of this NixPackageUpload. + + + :param signature_url: The signature_url of this NixPackageUpload. + :type: str + """ + + self._signature_url = signature_url + + @property + def size(self): + """Gets the size of this NixPackageUpload. + + The calculated size of the package. + + :return: The size of this NixPackageUpload. + :rtype: int + """ + return self._size + + @size.setter + def size(self, size): + """Sets the size of this NixPackageUpload. + + The calculated size of the package. + + :param size: The size of this NixPackageUpload. + :type: int + """ + + self._size = size + + @property + def slug(self): + """Gets the slug of this NixPackageUpload. + + The public unique identifier for the package. + + :return: The slug of this NixPackageUpload. + :rtype: str + """ + return self._slug + + @slug.setter + def slug(self, slug): + """Sets the slug of this NixPackageUpload. + + The public unique identifier for the package. + + :param slug: The slug of this NixPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + slug is not None and len(slug) < 1): + raise ValueError("Invalid value for `slug`, length must be greater than or equal to `1`") # noqa: E501 + if (self._configuration.client_side_validation and + slug is not None and not re.search('^[-a-zA-Z0-9_]+$', slug)): # noqa: E501 + raise ValueError(r"Invalid value for `slug`, must be a follow pattern or equal to `/^[-a-zA-Z0-9_]+$/`") # noqa: E501 + + self._slug = slug + + @property + def slug_perm(self): + """Gets the slug_perm of this NixPackageUpload. + + + :return: The slug_perm of this NixPackageUpload. + :rtype: str + """ + return self._slug_perm + + @slug_perm.setter + def slug_perm(self, slug_perm): + """Sets the slug_perm of this NixPackageUpload. + + + :param slug_perm: The slug_perm of this NixPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + slug_perm is not None and len(slug_perm) < 1): + raise ValueError("Invalid value for `slug_perm`, length must be greater than or equal to `1`") # noqa: E501 + if (self._configuration.client_side_validation and + slug_perm is not None and not re.search('^[-a-zA-Z0-9_]+$', slug_perm)): # noqa: E501 + raise ValueError(r"Invalid value for `slug_perm`, must be a follow pattern or equal to `/^[-a-zA-Z0-9_]+$/`") # noqa: E501 + + self._slug_perm = slug_perm + + @property + def spdx_license(self): + """Gets the spdx_license of this NixPackageUpload. + + The SPDX license identifier for this package. + + :return: The spdx_license of this NixPackageUpload. + :rtype: str + """ + return self._spdx_license + + @spdx_license.setter + def spdx_license(self, spdx_license): + """Sets the spdx_license of this NixPackageUpload. + + The SPDX license identifier for this package. + + :param spdx_license: The spdx_license of this NixPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + spdx_license is not None and len(spdx_license) < 1): + raise ValueError("Invalid value for `spdx_license`, length must be greater than or equal to `1`") # noqa: E501 + + self._spdx_license = spdx_license + + @property + def stage(self): + """Gets the stage of this NixPackageUpload. + + The synchronisation (in progress) stage of the package. + + :return: The stage of this NixPackageUpload. + :rtype: int + """ + return self._stage + + @stage.setter + def stage(self, stage): + """Sets the stage of this NixPackageUpload. + + The synchronisation (in progress) stage of the package. + + :param stage: The stage of this NixPackageUpload. + :type: int + """ + + self._stage = stage + + @property + def stage_str(self): + """Gets the stage_str of this NixPackageUpload. + + + :return: The stage_str of this NixPackageUpload. + :rtype: str + """ + return self._stage_str + + @stage_str.setter + def stage_str(self, stage_str): + """Sets the stage_str of this NixPackageUpload. + + + :param stage_str: The stage_str of this NixPackageUpload. + :type: str + """ + + self._stage_str = stage_str + + @property + def stage_updated_at(self): + """Gets the stage_updated_at of this NixPackageUpload. + + The datetime the package stage was updated at. + + :return: The stage_updated_at of this NixPackageUpload. + :rtype: datetime + """ + return self._stage_updated_at + + @stage_updated_at.setter + def stage_updated_at(self, stage_updated_at): + """Sets the stage_updated_at of this NixPackageUpload. + + The datetime the package stage was updated at. + + :param stage_updated_at: The stage_updated_at of this NixPackageUpload. + :type: datetime + """ + + self._stage_updated_at = stage_updated_at + + @property + def status(self): + """Gets the status of this NixPackageUpload. + + The synchronisation status of the package. + + :return: The status of this NixPackageUpload. + :rtype: int + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this NixPackageUpload. + + The synchronisation status of the package. + + :param status: The status of this NixPackageUpload. + :type: int + """ + + self._status = status + + @property + def status_reason(self): + """Gets the status_reason of this NixPackageUpload. + + A textual description for the synchronous status reason (if any + + :return: The status_reason of this NixPackageUpload. + :rtype: str + """ + return self._status_reason + + @status_reason.setter + def status_reason(self, status_reason): + """Sets the status_reason of this NixPackageUpload. + + A textual description for the synchronous status reason (if any + + :param status_reason: The status_reason of this NixPackageUpload. + :type: str + """ + + self._status_reason = status_reason + + @property + def status_str(self): + """Gets the status_str of this NixPackageUpload. + + + :return: The status_str of this NixPackageUpload. + :rtype: str + """ + return self._status_str + + @status_str.setter + def status_str(self, status_str): + """Sets the status_str of this NixPackageUpload. + + + :param status_str: The status_str of this NixPackageUpload. + :type: str + """ + + self._status_str = status_str + + @property + def status_updated_at(self): + """Gets the status_updated_at of this NixPackageUpload. + + The datetime the package status was updated at. + + :return: The status_updated_at of this NixPackageUpload. + :rtype: datetime + """ + return self._status_updated_at + + @status_updated_at.setter + def status_updated_at(self, status_updated_at): + """Sets the status_updated_at of this NixPackageUpload. + + The datetime the package status was updated at. + + :param status_updated_at: The status_updated_at of this NixPackageUpload. + :type: datetime + """ + + self._status_updated_at = status_updated_at + + @property + def status_url(self): + """Gets the status_url of this NixPackageUpload. + + + :return: The status_url of this NixPackageUpload. + :rtype: str + """ + return self._status_url + + @status_url.setter + def status_url(self, status_url): + """Sets the status_url of this NixPackageUpload. + + + :param status_url: The status_url of this NixPackageUpload. + :type: str + """ + + self._status_url = status_url + + @property + def store_path(self): + """Gets the store_path of this NixPackageUpload. + + Absolute store path for the package, including store hash and name. + + :return: The store_path of this NixPackageUpload. + :rtype: str + """ + return self._store_path + + @store_path.setter + def store_path(self, store_path): + """Sets the store_path of this NixPackageUpload. + + Absolute store path for the package, including store hash and name. + + :param store_path: The store_path of this NixPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + store_path is not None and len(store_path) < 1): + raise ValueError("Invalid value for `store_path`, length must be greater than or equal to `1`") # noqa: E501 + + self._store_path = store_path + + @property + def subtype(self): + """Gets the subtype of this NixPackageUpload. + + + :return: The subtype of this NixPackageUpload. + :rtype: str + """ + return self._subtype + + @subtype.setter + def subtype(self, subtype): + """Sets the subtype of this NixPackageUpload. + + + :param subtype: The subtype of this NixPackageUpload. + :type: str + """ + + self._subtype = subtype + + @property + def summary(self): + """Gets the summary of this NixPackageUpload. + + A one-liner synopsis of this package. + + :return: The summary of this NixPackageUpload. + :rtype: str + """ + return self._summary + + @summary.setter + def summary(self, summary): + """Sets the summary of this NixPackageUpload. + + A one-liner synopsis of this package. + + :param summary: The summary of this NixPackageUpload. + :type: str + """ + + self._summary = summary + + @property + def sync_finished_at(self): + """Gets the sync_finished_at of this NixPackageUpload. + + The datetime the package sync was finished at. + + :return: The sync_finished_at of this NixPackageUpload. + :rtype: datetime + """ + return self._sync_finished_at + + @sync_finished_at.setter + def sync_finished_at(self, sync_finished_at): + """Sets the sync_finished_at of this NixPackageUpload. + + The datetime the package sync was finished at. + + :param sync_finished_at: The sync_finished_at of this NixPackageUpload. + :type: datetime + """ + + self._sync_finished_at = sync_finished_at + + @property + def sync_progress(self): + """Gets the sync_progress of this NixPackageUpload. + + Synchronisation progress (from 0-100) + + :return: The sync_progress of this NixPackageUpload. + :rtype: int + """ + return self._sync_progress + + @sync_progress.setter + def sync_progress(self, sync_progress): + """Sets the sync_progress of this NixPackageUpload. + + Synchronisation progress (from 0-100) + + :param sync_progress: The sync_progress of this NixPackageUpload. + :type: int + """ + + self._sync_progress = sync_progress + + @property + def tags_automatic(self): + """Gets the tags_automatic of this NixPackageUpload. + + + :return: The tags_automatic of this NixPackageUpload. + :rtype: Tags + """ + return self._tags_automatic + + @tags_automatic.setter + def tags_automatic(self, tags_automatic): + """Sets the tags_automatic of this NixPackageUpload. + + + :param tags_automatic: The tags_automatic of this NixPackageUpload. + :type: Tags + """ + + self._tags_automatic = tags_automatic + + @property + def tags_immutable(self): + """Gets the tags_immutable of this NixPackageUpload. + + + :return: The tags_immutable of this NixPackageUpload. + :rtype: Tags + """ + return self._tags_immutable + + @tags_immutable.setter + def tags_immutable(self, tags_immutable): + """Sets the tags_immutable of this NixPackageUpload. + + + :param tags_immutable: The tags_immutable of this NixPackageUpload. + :type: Tags + """ + + self._tags_immutable = tags_immutable + + @property + def tags_static(self): + """Gets the tags_static of this NixPackageUpload. + + 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. + + :return: The tags_static of this NixPackageUpload. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this NixPackageUpload. + + 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. + + :param tags_static: The tags_static of this NixPackageUpload. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + + @property + def type_display(self): + """Gets the type_display of this NixPackageUpload. + + + :return: The type_display of this NixPackageUpload. + :rtype: str + """ + return self._type_display + + @type_display.setter + def type_display(self, type_display): + """Sets the type_display of this NixPackageUpload. + + + :param type_display: The type_display of this NixPackageUpload. + :type: str + """ + + self._type_display = type_display + + @property + def uploaded_at(self): + """Gets the uploaded_at of this NixPackageUpload. + + The date this package was uploaded. + + :return: The uploaded_at of this NixPackageUpload. + :rtype: datetime + """ + return self._uploaded_at + + @uploaded_at.setter + def uploaded_at(self, uploaded_at): + """Sets the uploaded_at of this NixPackageUpload. + + The date this package was uploaded. + + :param uploaded_at: The uploaded_at of this NixPackageUpload. + :type: datetime + """ + + self._uploaded_at = uploaded_at + + @property + def uploader(self): + """Gets the uploader of this NixPackageUpload. + + + :return: The uploader of this NixPackageUpload. + :rtype: str + """ + return self._uploader + + @uploader.setter + def uploader(self, uploader): + """Sets the uploader of this NixPackageUpload. + + + :param uploader: The uploader of this NixPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + uploader is not None and len(uploader) < 1): + raise ValueError("Invalid value for `uploader`, length must be greater than or equal to `1`") # noqa: E501 + + self._uploader = uploader + + @property + def uploader_url(self): + """Gets the uploader_url of this NixPackageUpload. + + + :return: The uploader_url of this NixPackageUpload. + :rtype: str + """ + return self._uploader_url + + @uploader_url.setter + def uploader_url(self, uploader_url): + """Sets the uploader_url of this NixPackageUpload. + + + :param uploader_url: The uploader_url of this NixPackageUpload. + :type: str + """ + + self._uploader_url = uploader_url + + @property + def version(self): + """Gets the version of this NixPackageUpload. + + The raw version for this package. + + :return: The version of this NixPackageUpload. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this NixPackageUpload. + + The raw version for this package. + + :param version: The version of this NixPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + version is not None and len(version) > 255): + raise ValueError("Invalid value for `version`, length must be less than or equal to `255`") # noqa: E501 + + self._version = version + + @property + def version_orig(self): + """Gets the version_orig of this NixPackageUpload. + + + :return: The version_orig of this NixPackageUpload. + :rtype: str + """ + return self._version_orig + + @version_orig.setter + def version_orig(self, version_orig): + """Sets the version_orig of this NixPackageUpload. + + + :param version_orig: The version_orig of this NixPackageUpload. + :type: str + """ + + self._version_orig = version_orig + + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this NixPackageUpload. + + + :return: The vulnerability_counts of this NixPackageUpload. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this NixPackageUpload. + + + :param vulnerability_counts: The vulnerability_counts of this NixPackageUpload. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + + @property + def vulnerability_scan_results_url(self): + """Gets the vulnerability_scan_results_url of this NixPackageUpload. + + + :return: The vulnerability_scan_results_url of this NixPackageUpload. + :rtype: str + """ + return self._vulnerability_scan_results_url + + @vulnerability_scan_results_url.setter + def vulnerability_scan_results_url(self, vulnerability_scan_results_url): + """Sets the vulnerability_scan_results_url of this NixPackageUpload. + + + :param vulnerability_scan_results_url: The vulnerability_scan_results_url of this NixPackageUpload. + :type: str + """ + + self._vulnerability_scan_results_url = vulnerability_scan_results_url + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(NixPackageUpload, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, NixPackageUpload): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, NixPackageUpload): + return True + + return self.to_dict() != other.to_dict() + diff --git a/bindings/python/src/cloudsmith_api/models/nix_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/nix_package_upload_request.py new file mode 100644 index 00000000..0cfc6702 --- /dev/null +++ b/bindings/python/src/cloudsmith_api/models/nix_package_upload_request.py @@ -0,0 +1,308 @@ +# coding: utf-8 + +""" + Cloudsmith API (v1) + + The API to the Cloudsmith Service # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudsmith.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration + + +class NixPackageUploadRequest(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'is_malware_detected': 'bool', + 'narinfo': 'str', + 'package_file': 'str', + 'republish': 'bool', + 'tags': 'str', + 'version': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts' + } + + attribute_map = { + 'is_malware_detected': 'is_malware_detected', + 'narinfo': 'narinfo', + 'package_file': 'package_file', + 'republish': 'republish', + 'tags': 'tags', + 'version': 'version', + 'vulnerability_counts': 'vulnerability_counts' + } + + def __init__(self, is_malware_detected=None, narinfo=None, package_file=None, republish=None, tags=None, version=None, vulnerability_counts=None, _configuration=None): # noqa: E501 + """NixPackageUploadRequest - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._is_malware_detected = None + self._narinfo = None + self._package_file = None + self._republish = None + self._tags = None + self._version = None + self._vulnerability_counts = None + self.discriminator = None + + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected + if narinfo is not None: + self.narinfo = narinfo + self.package_file = package_file + if republish is not None: + self.republish = republish + if tags is not None: + self.tags = tags + if version is not None: + self.version = version + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts + + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this NixPackageUploadRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this NixPackageUploadRequest. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this NixPackageUploadRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this NixPackageUploadRequest. + :type: bool + """ + + self._is_malware_detected = is_malware_detected + + @property + def narinfo(self): + """Gets the narinfo of this NixPackageUploadRequest. + + The narinfo sidecar metadata file (.narinfo). Optional — the package can be completed later by publishing the matching narinfo via the native HTTP PUT path. + + :return: The narinfo of this NixPackageUploadRequest. + :rtype: str + """ + return self._narinfo + + @narinfo.setter + def narinfo(self, narinfo): + """Sets the narinfo of this NixPackageUploadRequest. + + The narinfo sidecar metadata file (.narinfo). Optional — the package can be completed later by publishing the matching narinfo via the native HTTP PUT path. + + :param narinfo: The narinfo of this NixPackageUploadRequest. + :type: str + """ + if (self._configuration.client_side_validation and + narinfo is not None and len(narinfo) < 1): + raise ValueError("Invalid value for `narinfo`, length must be greater than or equal to `1`") # noqa: E501 + + self._narinfo = narinfo + + @property + def package_file(self): + """Gets the package_file of this NixPackageUploadRequest. + + The primary file for the package. + + :return: The package_file of this NixPackageUploadRequest. + :rtype: str + """ + return self._package_file + + @package_file.setter + def package_file(self, package_file): + """Sets the package_file of this NixPackageUploadRequest. + + The primary file for the package. + + :param package_file: The package_file of this NixPackageUploadRequest. + :type: str + """ + if self._configuration.client_side_validation and package_file is None: + raise ValueError("Invalid value for `package_file`, must not be `None`") # noqa: E501 + if (self._configuration.client_side_validation and + package_file is not None and len(package_file) < 1): + raise ValueError("Invalid value for `package_file`, length must be greater than or equal to `1`") # noqa: E501 + + self._package_file = package_file + + @property + def republish(self): + """Gets the republish of this NixPackageUploadRequest. + + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + + :return: The republish of this NixPackageUploadRequest. + :rtype: bool + """ + return self._republish + + @republish.setter + def republish(self, republish): + """Sets the republish of this NixPackageUploadRequest. + + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + + :param republish: The republish of this NixPackageUploadRequest. + :type: bool + """ + + self._republish = republish + + @property + def tags(self): + """Gets the tags of this NixPackageUploadRequest. + + A comma-separated values list of tags to add to the package. + + :return: The tags of this NixPackageUploadRequest. + :rtype: str + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this NixPackageUploadRequest. + + A comma-separated values list of tags to add to the package. + + :param tags: The tags of this NixPackageUploadRequest. + :type: str + """ + if (self._configuration.client_side_validation and + tags is not None and len(tags) > 1024): + raise ValueError("Invalid value for `tags`, length must be less than or equal to `1024`") # noqa: E501 + if (self._configuration.client_side_validation and + tags is not None and len(tags) < 1): + raise ValueError("Invalid value for `tags`, length must be greater than or equal to `1`") # noqa: E501 + + self._tags = tags + + @property + def version(self): + """Gets the version of this NixPackageUploadRequest. + + The raw version for this package. + + :return: The version of this NixPackageUploadRequest. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this NixPackageUploadRequest. + + The raw version for this package. + + :param version: The version of this NixPackageUploadRequest. + :type: str + """ + if (self._configuration.client_side_validation and + version is not None and len(version) > 255): + raise ValueError("Invalid value for `version`, length must be less than or equal to `255`") # noqa: E501 + + self._version = version + + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this NixPackageUploadRequest. + + + :return: The vulnerability_counts of this NixPackageUploadRequest. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this NixPackageUploadRequest. + + + :param vulnerability_counts: The vulnerability_counts of this NixPackageUploadRequest. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(NixPackageUploadRequest, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, NixPackageUploadRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, NixPackageUploadRequest): + return True + + return self.to_dict() != other.to_dict() + diff --git a/bindings/python/src/cloudsmith_api/models/nix_upstream.py b/bindings/python/src/cloudsmith_api/models/nix_upstream.py new file mode 100644 index 00000000..20e97f8e --- /dev/null +++ b/bindings/python/src/cloudsmith_api/models/nix_upstream.py @@ -0,0 +1,872 @@ +# coding: utf-8 + +""" + Cloudsmith API (v1) + + The API to the Cloudsmith Service # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudsmith.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration + + +class NixUpstream(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'auth_mode': 'str', + 'auth_secret': 'str', + 'auth_username': 'str', + 'available': 'bool', + 'can_reindex': 'bool', + 'created_at': 'datetime', + 'disable_reason': 'str', + 'disable_reason_text': 'str', + 'extra_header_1': 'str', + 'extra_header_2': 'str', + 'extra_value_1': 'str', + 'extra_value_2': 'str', + 'has_failed_signature_verification': 'bool', + 'index_package_count': 'int', + 'index_status': 'str', + 'is_active': 'bool', + 'last_indexed': 'str', + 'mode': 'str', + 'name': 'str', + 'pending_validation': 'bool', + 'priority': 'int', + 'slug_perm': 'str', + 'updated_at': 'datetime', + 'upstream_url': 'str', + 'verify_ssl': 'bool' + } + + attribute_map = { + 'auth_mode': 'auth_mode', + 'auth_secret': 'auth_secret', + 'auth_username': 'auth_username', + 'available': 'available', + 'can_reindex': 'can_reindex', + 'created_at': 'created_at', + 'disable_reason': 'disable_reason', + 'disable_reason_text': 'disable_reason_text', + 'extra_header_1': 'extra_header_1', + 'extra_header_2': 'extra_header_2', + 'extra_value_1': 'extra_value_1', + 'extra_value_2': 'extra_value_2', + 'has_failed_signature_verification': 'has_failed_signature_verification', + 'index_package_count': 'index_package_count', + 'index_status': 'index_status', + 'is_active': 'is_active', + 'last_indexed': 'last_indexed', + 'mode': 'mode', + 'name': 'name', + 'pending_validation': 'pending_validation', + 'priority': 'priority', + 'slug_perm': 'slug_perm', + 'updated_at': 'updated_at', + 'upstream_url': 'upstream_url', + 'verify_ssl': 'verify_ssl' + } + + def __init__(self, auth_mode='None', auth_secret=None, auth_username=None, available=None, can_reindex=None, created_at=None, disable_reason='N/A', disable_reason_text=None, extra_header_1=None, extra_header_2=None, extra_value_1=None, extra_value_2=None, has_failed_signature_verification=None, index_package_count=None, index_status=None, is_active=None, last_indexed=None, mode='Proxy Only', name=None, pending_validation=None, priority=None, slug_perm=None, updated_at=None, upstream_url=None, verify_ssl=None, _configuration=None): # noqa: E501 + """NixUpstream - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._auth_mode = None + self._auth_secret = None + self._auth_username = None + self._available = None + self._can_reindex = None + self._created_at = None + self._disable_reason = None + self._disable_reason_text = None + self._extra_header_1 = None + self._extra_header_2 = None + self._extra_value_1 = None + self._extra_value_2 = None + self._has_failed_signature_verification = None + self._index_package_count = None + self._index_status = None + self._is_active = None + self._last_indexed = None + self._mode = None + self._name = None + self._pending_validation = None + self._priority = None + self._slug_perm = None + self._updated_at = None + self._upstream_url = None + self._verify_ssl = None + self.discriminator = None + + if auth_mode is not None: + self.auth_mode = auth_mode + if auth_secret is not None: + self.auth_secret = auth_secret + if auth_username is not None: + self.auth_username = auth_username + if available is not None: + self.available = available + if can_reindex is not None: + self.can_reindex = can_reindex + if created_at is not None: + self.created_at = created_at + if disable_reason is not None: + self.disable_reason = disable_reason + if disable_reason_text is not None: + self.disable_reason_text = disable_reason_text + if extra_header_1 is not None: + self.extra_header_1 = extra_header_1 + if extra_header_2 is not None: + self.extra_header_2 = extra_header_2 + if extra_value_1 is not None: + self.extra_value_1 = extra_value_1 + if extra_value_2 is not None: + self.extra_value_2 = extra_value_2 + if has_failed_signature_verification is not None: + self.has_failed_signature_verification = has_failed_signature_verification + if index_package_count is not None: + self.index_package_count = index_package_count + if index_status is not None: + self.index_status = index_status + if is_active is not None: + self.is_active = is_active + if last_indexed is not None: + self.last_indexed = last_indexed + if mode is not None: + self.mode = mode + self.name = name + if pending_validation is not None: + self.pending_validation = pending_validation + if priority is not None: + self.priority = priority + if slug_perm is not None: + self.slug_perm = slug_perm + if updated_at is not None: + self.updated_at = updated_at + self.upstream_url = upstream_url + if verify_ssl is not None: + self.verify_ssl = verify_ssl + + @property + def auth_mode(self): + """Gets the auth_mode of this NixUpstream. + + The authentication mode to use when accessing this upstream. + + :return: The auth_mode of this NixUpstream. + :rtype: str + """ + return self._auth_mode + + @auth_mode.setter + def auth_mode(self, auth_mode): + """Sets the auth_mode of this NixUpstream. + + The authentication mode to use when accessing this upstream. + + :param auth_mode: The auth_mode of this NixUpstream. + :type: str + """ + allowed_values = ["None", "Username and Password"] # noqa: E501 + if (self._configuration.client_side_validation and + auth_mode not in allowed_values): + raise ValueError( + "Invalid value for `auth_mode` ({0}), must be one of {1}" # noqa: E501 + .format(auth_mode, allowed_values) + ) + + self._auth_mode = auth_mode + + @property + def auth_secret(self): + """Gets the auth_secret of this NixUpstream. + + Secret to provide with requests to upstream. + + :return: The auth_secret of this NixUpstream. + :rtype: str + """ + return self._auth_secret + + @auth_secret.setter + def auth_secret(self, auth_secret): + """Sets the auth_secret of this NixUpstream. + + Secret to provide with requests to upstream. + + :param auth_secret: The auth_secret of this NixUpstream. + :type: str + """ + if (self._configuration.client_side_validation and + auth_secret is not None and len(auth_secret) > 4096): + raise ValueError("Invalid value for `auth_secret`, length must be less than or equal to `4096`") # noqa: E501 + + self._auth_secret = auth_secret + + @property + def auth_username(self): + """Gets the auth_username of this NixUpstream. + + Username to provide with requests to upstream. + + :return: The auth_username of this NixUpstream. + :rtype: str + """ + return self._auth_username + + @auth_username.setter + def auth_username(self, auth_username): + """Sets the auth_username of this NixUpstream. + + Username to provide with requests to upstream. + + :param auth_username: The auth_username of this NixUpstream. + :type: str + """ + if (self._configuration.client_side_validation and + auth_username is not None and len(auth_username) > 64): + raise ValueError("Invalid value for `auth_username`, length must be less than or equal to `64`") # noqa: E501 + + self._auth_username = auth_username + + @property + def available(self): + """Gets the available of this NixUpstream. + + Whether the upstream is available for use. + + :return: The available of this NixUpstream. + :rtype: bool + """ + return self._available + + @available.setter + def available(self, available): + """Sets the available of this NixUpstream. + + Whether the upstream is available for use. + + :param available: The available of this NixUpstream. + :type: bool + """ + + self._available = available + + @property + def can_reindex(self): + """Gets the can_reindex of this NixUpstream. + + Whether the upstream can be reindexed. + + :return: The can_reindex of this NixUpstream. + :rtype: bool + """ + return self._can_reindex + + @can_reindex.setter + def can_reindex(self, can_reindex): + """Sets the can_reindex of this NixUpstream. + + Whether the upstream can be reindexed. + + :param can_reindex: The can_reindex of this NixUpstream. + :type: bool + """ + + self._can_reindex = can_reindex + + @property + def created_at(self): + """Gets the created_at of this NixUpstream. + + The datetime the upstream source was created. + + :return: The created_at of this NixUpstream. + :rtype: datetime + """ + return self._created_at + + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this NixUpstream. + + The datetime the upstream source was created. + + :param created_at: The created_at of this NixUpstream. + :type: datetime + """ + + self._created_at = created_at + + @property + def disable_reason(self): + """Gets the disable_reason of this NixUpstream. + + + :return: The disable_reason of this NixUpstream. + :rtype: str + """ + return self._disable_reason + + @disable_reason.setter + def disable_reason(self, disable_reason): + """Sets the disable_reason of this NixUpstream. + + + :param disable_reason: The disable_reason of this NixUpstream. + :type: str + """ + allowed_values = ["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"] # noqa: E501 + if (self._configuration.client_side_validation and + disable_reason not in allowed_values): + raise ValueError( + "Invalid value for `disable_reason` ({0}), must be one of {1}" # noqa: E501 + .format(disable_reason, allowed_values) + ) + + self._disable_reason = disable_reason + + @property + def disable_reason_text(self): + """Gets the disable_reason_text of this NixUpstream. + + Human-readable explanation of why this upstream is disabled + + :return: The disable_reason_text of this NixUpstream. + :rtype: str + """ + return self._disable_reason_text + + @disable_reason_text.setter + def disable_reason_text(self, disable_reason_text): + """Sets the disable_reason_text of this NixUpstream. + + Human-readable explanation of why this upstream is disabled + + :param disable_reason_text: The disable_reason_text of this NixUpstream. + :type: str + """ + + self._disable_reason_text = disable_reason_text + + @property + def extra_header_1(self): + """Gets the extra_header_1 of this NixUpstream. + + The key for extra header #1 to send to upstream. + + :return: The extra_header_1 of this NixUpstream. + :rtype: str + """ + return self._extra_header_1 + + @extra_header_1.setter + def extra_header_1(self, extra_header_1): + """Sets the extra_header_1 of this NixUpstream. + + The key for extra header #1 to send to upstream. + + :param extra_header_1: The extra_header_1 of this NixUpstream. + :type: str + """ + if (self._configuration.client_side_validation and + extra_header_1 is not None and len(extra_header_1) > 64): + raise ValueError("Invalid value for `extra_header_1`, length must be less than or equal to `64`") # noqa: E501 + if (self._configuration.client_side_validation and + extra_header_1 is not None and not re.search('^[-\\w]+$', extra_header_1)): # noqa: E501 + raise ValueError(r"Invalid value for `extra_header_1`, must be a follow pattern or equal to `/^[-\\w]+$/`") # noqa: E501 + + self._extra_header_1 = extra_header_1 + + @property + def extra_header_2(self): + """Gets the extra_header_2 of this NixUpstream. + + The key for extra header #2 to send to upstream. + + :return: The extra_header_2 of this NixUpstream. + :rtype: str + """ + return self._extra_header_2 + + @extra_header_2.setter + def extra_header_2(self, extra_header_2): + """Sets the extra_header_2 of this NixUpstream. + + The key for extra header #2 to send to upstream. + + :param extra_header_2: The extra_header_2 of this NixUpstream. + :type: str + """ + if (self._configuration.client_side_validation and + extra_header_2 is not None and len(extra_header_2) > 64): + raise ValueError("Invalid value for `extra_header_2`, length must be less than or equal to `64`") # noqa: E501 + if (self._configuration.client_side_validation and + extra_header_2 is not None and not re.search('^[-\\w]+$', extra_header_2)): # noqa: E501 + raise ValueError(r"Invalid value for `extra_header_2`, must be a follow pattern or equal to `/^[-\\w]+$/`") # noqa: E501 + + self._extra_header_2 = extra_header_2 + + @property + def extra_value_1(self): + """Gets the extra_value_1 of this NixUpstream. + + The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. + + :return: The extra_value_1 of this NixUpstream. + :rtype: str + """ + return self._extra_value_1 + + @extra_value_1.setter + def extra_value_1(self, extra_value_1): + """Sets the extra_value_1 of this NixUpstream. + + The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. + + :param extra_value_1: The extra_value_1 of this NixUpstream. + :type: str + """ + if (self._configuration.client_side_validation and + extra_value_1 is not None and len(extra_value_1) > 128): + raise ValueError("Invalid value for `extra_value_1`, length must be less than or equal to `128`") # noqa: E501 + if (self._configuration.client_side_validation and + extra_value_1 is not None and not re.search('^[^\\n\\r]+$', extra_value_1)): # noqa: E501 + raise ValueError(r"Invalid value for `extra_value_1`, must be a follow pattern or equal to `/^[^\\n\\r]+$/`") # noqa: E501 + + self._extra_value_1 = extra_value_1 + + @property + def extra_value_2(self): + """Gets the extra_value_2 of this NixUpstream. + + The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. + + :return: The extra_value_2 of this NixUpstream. + :rtype: str + """ + return self._extra_value_2 + + @extra_value_2.setter + def extra_value_2(self, extra_value_2): + """Sets the extra_value_2 of this NixUpstream. + + The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. + + :param extra_value_2: The extra_value_2 of this NixUpstream. + :type: str + """ + if (self._configuration.client_side_validation and + extra_value_2 is not None and len(extra_value_2) > 128): + raise ValueError("Invalid value for `extra_value_2`, length must be less than or equal to `128`") # noqa: E501 + if (self._configuration.client_side_validation and + extra_value_2 is not None and not re.search('^[^\\n\\r]+$', extra_value_2)): # noqa: E501 + raise ValueError(r"Invalid value for `extra_value_2`, must be a follow pattern or equal to `/^[^\\n\\r]+$/`") # noqa: E501 + + self._extra_value_2 = extra_value_2 + + @property + def has_failed_signature_verification(self): + """Gets the has_failed_signature_verification of this NixUpstream. + + Whether the upstream has failed signature verification. + + :return: The has_failed_signature_verification of this NixUpstream. + :rtype: bool + """ + return self._has_failed_signature_verification + + @has_failed_signature_verification.setter + def has_failed_signature_verification(self, has_failed_signature_verification): + """Sets the has_failed_signature_verification of this NixUpstream. + + Whether the upstream has failed signature verification. + + :param has_failed_signature_verification: The has_failed_signature_verification of this NixUpstream. + :type: bool + """ + + self._has_failed_signature_verification = has_failed_signature_verification + + @property + def index_package_count(self): + """Gets the index_package_count of this NixUpstream. + + The number of packages available in this upstream source + + :return: The index_package_count of this NixUpstream. + :rtype: int + """ + return self._index_package_count + + @index_package_count.setter + def index_package_count(self, index_package_count): + """Sets the index_package_count of this NixUpstream. + + The number of packages available in this upstream source + + :param index_package_count: The index_package_count of this NixUpstream. + :type: int + """ + + self._index_package_count = index_package_count + + @property + def index_status(self): + """Gets the index_status of this NixUpstream. + + The current indexing status of this upstream source + + :return: The index_status of this NixUpstream. + :rtype: str + """ + return self._index_status + + @index_status.setter + def index_status(self, index_status): + """Sets the index_status of this NixUpstream. + + The current indexing status of this upstream source + + :param index_status: The index_status of this NixUpstream. + :type: str + """ + + self._index_status = index_status + + @property + def is_active(self): + """Gets the is_active of this NixUpstream. + + Whether or not this upstream is active and ready for requests. + + :return: The is_active of this NixUpstream. + :rtype: bool + """ + return self._is_active + + @is_active.setter + def is_active(self, is_active): + """Sets the is_active of this NixUpstream. + + Whether or not this upstream is active and ready for requests. + + :param is_active: The is_active of this NixUpstream. + :type: bool + """ + + self._is_active = is_active + + @property + def last_indexed(self): + """Gets the last_indexed of this NixUpstream. + + The last time this upstream source was indexed + + :return: The last_indexed of this NixUpstream. + :rtype: str + """ + return self._last_indexed + + @last_indexed.setter + def last_indexed(self, last_indexed): + """Sets the last_indexed of this NixUpstream. + + The last time this upstream source was indexed + + :param last_indexed: The last_indexed of this NixUpstream. + :type: str + """ + + self._last_indexed = last_indexed + + @property + def mode(self): + """Gets the mode of this NixUpstream. + + The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. + + :return: The mode of this NixUpstream. + :rtype: str + """ + return self._mode + + @mode.setter + def mode(self, mode): + """Sets the mode of this NixUpstream. + + The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. + + :param mode: The mode of this NixUpstream. + :type: str + """ + allowed_values = ["Proxy Only", "Cache and Proxy"] # noqa: E501 + if (self._configuration.client_side_validation and + mode not in allowed_values): + raise ValueError( + "Invalid value for `mode` ({0}), must be one of {1}" # noqa: E501 + .format(mode, allowed_values) + ) + + self._mode = mode + + @property + def name(self): + """Gets the name of this NixUpstream. + + A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. + + :return: The name of this NixUpstream. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this NixUpstream. + + A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. + + :param name: The name of this NixUpstream. + :type: str + """ + if self._configuration.client_side_validation and name is None: + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + if (self._configuration.client_side_validation and + name is not None and len(name) > 64): + raise ValueError("Invalid value for `name`, length must be less than or equal to `64`") # noqa: E501 + if (self._configuration.client_side_validation and + name is not None and len(name) < 1): + raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 + if (self._configuration.client_side_validation and + name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 + raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 + + self._name = name + + @property + def pending_validation(self): + """Gets the pending_validation of this NixUpstream. + + When true, this upstream source is pending validation. + + :return: The pending_validation of this NixUpstream. + :rtype: bool + """ + return self._pending_validation + + @pending_validation.setter + def pending_validation(self, pending_validation): + """Sets the pending_validation of this NixUpstream. + + When true, this upstream source is pending validation. + + :param pending_validation: The pending_validation of this NixUpstream. + :type: bool + """ + + self._pending_validation = pending_validation + + @property + def priority(self): + """Gets the priority of this NixUpstream. + + Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. + + :return: The priority of this NixUpstream. + :rtype: int + """ + return self._priority + + @priority.setter + def priority(self, priority): + """Sets the priority of this NixUpstream. + + Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. + + :param priority: The priority of this NixUpstream. + :type: int + """ + if (self._configuration.client_side_validation and + priority is not None and priority > 32767): # noqa: E501 + raise ValueError("Invalid value for `priority`, must be a value less than or equal to `32767`") # noqa: E501 + if (self._configuration.client_side_validation and + priority is not None and priority < 1): # noqa: E501 + raise ValueError("Invalid value for `priority`, must be a value greater than or equal to `1`") # noqa: E501 + + self._priority = priority + + @property + def slug_perm(self): + """Gets the slug_perm of this NixUpstream. + + + :return: The slug_perm of this NixUpstream. + :rtype: str + """ + return self._slug_perm + + @slug_perm.setter + def slug_perm(self, slug_perm): + """Sets the slug_perm of this NixUpstream. + + + :param slug_perm: The slug_perm of this NixUpstream. + :type: str + """ + if (self._configuration.client_side_validation and + slug_perm is not None and len(slug_perm) < 1): + raise ValueError("Invalid value for `slug_perm`, length must be greater than or equal to `1`") # noqa: E501 + if (self._configuration.client_side_validation and + slug_perm is not None and not re.search('^[-a-zA-Z0-9_]+$', slug_perm)): # noqa: E501 + raise ValueError(r"Invalid value for `slug_perm`, must be a follow pattern or equal to `/^[-a-zA-Z0-9_]+$/`") # noqa: E501 + + self._slug_perm = slug_perm + + @property + def updated_at(self): + """Gets the updated_at of this NixUpstream. + + + :return: The updated_at of this NixUpstream. + :rtype: datetime + """ + return self._updated_at + + @updated_at.setter + def updated_at(self, updated_at): + """Sets the updated_at of this NixUpstream. + + + :param updated_at: The updated_at of this NixUpstream. + :type: datetime + """ + + self._updated_at = updated_at + + @property + def upstream_url(self): + """Gets the upstream_url of this NixUpstream. + + The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. + + :return: The upstream_url of this NixUpstream. + :rtype: str + """ + return self._upstream_url + + @upstream_url.setter + def upstream_url(self, upstream_url): + """Sets the upstream_url of this NixUpstream. + + The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. + + :param upstream_url: The upstream_url of this NixUpstream. + :type: str + """ + if self._configuration.client_side_validation and upstream_url is None: + raise ValueError("Invalid value for `upstream_url`, must not be `None`") # noqa: E501 + if (self._configuration.client_side_validation and + upstream_url is not None and len(upstream_url) > 200): + raise ValueError("Invalid value for `upstream_url`, length must be less than or equal to `200`") # noqa: E501 + if (self._configuration.client_side_validation and + upstream_url is not None and len(upstream_url) < 1): + raise ValueError("Invalid value for `upstream_url`, length must be greater than or equal to `1`") # noqa: E501 + + self._upstream_url = upstream_url + + @property + def verify_ssl(self): + """Gets the verify_ssl of this NixUpstream. + + If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. + + :return: The verify_ssl of this NixUpstream. + :rtype: bool + """ + return self._verify_ssl + + @verify_ssl.setter + def verify_ssl(self, verify_ssl): + """Sets the verify_ssl of this NixUpstream. + + If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. + + :param verify_ssl: The verify_ssl of this NixUpstream. + :type: bool + """ + + self._verify_ssl = verify_ssl + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(NixUpstream, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, NixUpstream): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, NixUpstream): + return True + + return self.to_dict() != other.to_dict() + diff --git a/bindings/python/src/cloudsmith_api/models/nix_upstream_request.py b/bindings/python/src/cloudsmith_api/models/nix_upstream_request.py new file mode 100644 index 00000000..0d981496 --- /dev/null +++ b/bindings/python/src/cloudsmith_api/models/nix_upstream_request.py @@ -0,0 +1,529 @@ +# coding: utf-8 + +""" + Cloudsmith API (v1) + + The API to the Cloudsmith Service # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudsmith.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration + + +class NixUpstreamRequest(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'auth_mode': 'str', + 'auth_secret': 'str', + 'auth_username': 'str', + 'extra_header_1': 'str', + 'extra_header_2': 'str', + 'extra_value_1': 'str', + 'extra_value_2': 'str', + 'is_active': 'bool', + 'mode': 'str', + 'name': 'str', + 'priority': 'int', + 'upstream_url': 'str', + 'verify_ssl': 'bool' + } + + attribute_map = { + 'auth_mode': 'auth_mode', + 'auth_secret': 'auth_secret', + 'auth_username': 'auth_username', + 'extra_header_1': 'extra_header_1', + 'extra_header_2': 'extra_header_2', + 'extra_value_1': 'extra_value_1', + 'extra_value_2': 'extra_value_2', + 'is_active': 'is_active', + 'mode': 'mode', + 'name': 'name', + 'priority': 'priority', + 'upstream_url': 'upstream_url', + 'verify_ssl': 'verify_ssl' + } + + def __init__(self, auth_mode='None', auth_secret=None, auth_username=None, extra_header_1=None, extra_header_2=None, extra_value_1=None, extra_value_2=None, is_active=None, mode='Proxy Only', name=None, priority=None, upstream_url=None, verify_ssl=None, _configuration=None): # noqa: E501 + """NixUpstreamRequest - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._auth_mode = None + self._auth_secret = None + self._auth_username = None + self._extra_header_1 = None + self._extra_header_2 = None + self._extra_value_1 = None + self._extra_value_2 = None + self._is_active = None + self._mode = None + self._name = None + self._priority = None + self._upstream_url = None + self._verify_ssl = None + self.discriminator = None + + if auth_mode is not None: + self.auth_mode = auth_mode + if auth_secret is not None: + self.auth_secret = auth_secret + if auth_username is not None: + self.auth_username = auth_username + if extra_header_1 is not None: + self.extra_header_1 = extra_header_1 + if extra_header_2 is not None: + self.extra_header_2 = extra_header_2 + if extra_value_1 is not None: + self.extra_value_1 = extra_value_1 + if extra_value_2 is not None: + self.extra_value_2 = extra_value_2 + if is_active is not None: + self.is_active = is_active + if mode is not None: + self.mode = mode + self.name = name + if priority is not None: + self.priority = priority + self.upstream_url = upstream_url + if verify_ssl is not None: + self.verify_ssl = verify_ssl + + @property + def auth_mode(self): + """Gets the auth_mode of this NixUpstreamRequest. + + The authentication mode to use when accessing this upstream. + + :return: The auth_mode of this NixUpstreamRequest. + :rtype: str + """ + return self._auth_mode + + @auth_mode.setter + def auth_mode(self, auth_mode): + """Sets the auth_mode of this NixUpstreamRequest. + + The authentication mode to use when accessing this upstream. + + :param auth_mode: The auth_mode of this NixUpstreamRequest. + :type: str + """ + allowed_values = ["None", "Username and Password"] # noqa: E501 + if (self._configuration.client_side_validation and + auth_mode not in allowed_values): + raise ValueError( + "Invalid value for `auth_mode` ({0}), must be one of {1}" # noqa: E501 + .format(auth_mode, allowed_values) + ) + + self._auth_mode = auth_mode + + @property + def auth_secret(self): + """Gets the auth_secret of this NixUpstreamRequest. + + Secret to provide with requests to upstream. + + :return: The auth_secret of this NixUpstreamRequest. + :rtype: str + """ + return self._auth_secret + + @auth_secret.setter + def auth_secret(self, auth_secret): + """Sets the auth_secret of this NixUpstreamRequest. + + Secret to provide with requests to upstream. + + :param auth_secret: The auth_secret of this NixUpstreamRequest. + :type: str + """ + if (self._configuration.client_side_validation and + auth_secret is not None and len(auth_secret) > 4096): + raise ValueError("Invalid value for `auth_secret`, length must be less than or equal to `4096`") # noqa: E501 + + self._auth_secret = auth_secret + + @property + def auth_username(self): + """Gets the auth_username of this NixUpstreamRequest. + + Username to provide with requests to upstream. + + :return: The auth_username of this NixUpstreamRequest. + :rtype: str + """ + return self._auth_username + + @auth_username.setter + def auth_username(self, auth_username): + """Sets the auth_username of this NixUpstreamRequest. + + Username to provide with requests to upstream. + + :param auth_username: The auth_username of this NixUpstreamRequest. + :type: str + """ + if (self._configuration.client_side_validation and + auth_username is not None and len(auth_username) > 64): + raise ValueError("Invalid value for `auth_username`, length must be less than or equal to `64`") # noqa: E501 + + self._auth_username = auth_username + + @property + def extra_header_1(self): + """Gets the extra_header_1 of this NixUpstreamRequest. + + The key for extra header #1 to send to upstream. + + :return: The extra_header_1 of this NixUpstreamRequest. + :rtype: str + """ + return self._extra_header_1 + + @extra_header_1.setter + def extra_header_1(self, extra_header_1): + """Sets the extra_header_1 of this NixUpstreamRequest. + + The key for extra header #1 to send to upstream. + + :param extra_header_1: The extra_header_1 of this NixUpstreamRequest. + :type: str + """ + if (self._configuration.client_side_validation and + extra_header_1 is not None and len(extra_header_1) > 64): + raise ValueError("Invalid value for `extra_header_1`, length must be less than or equal to `64`") # noqa: E501 + if (self._configuration.client_side_validation and + extra_header_1 is not None and not re.search('^[-\\w]+$', extra_header_1)): # noqa: E501 + raise ValueError(r"Invalid value for `extra_header_1`, must be a follow pattern or equal to `/^[-\\w]+$/`") # noqa: E501 + + self._extra_header_1 = extra_header_1 + + @property + def extra_header_2(self): + """Gets the extra_header_2 of this NixUpstreamRequest. + + The key for extra header #2 to send to upstream. + + :return: The extra_header_2 of this NixUpstreamRequest. + :rtype: str + """ + return self._extra_header_2 + + @extra_header_2.setter + def extra_header_2(self, extra_header_2): + """Sets the extra_header_2 of this NixUpstreamRequest. + + The key for extra header #2 to send to upstream. + + :param extra_header_2: The extra_header_2 of this NixUpstreamRequest. + :type: str + """ + if (self._configuration.client_side_validation and + extra_header_2 is not None and len(extra_header_2) > 64): + raise ValueError("Invalid value for `extra_header_2`, length must be less than or equal to `64`") # noqa: E501 + if (self._configuration.client_side_validation and + extra_header_2 is not None and not re.search('^[-\\w]+$', extra_header_2)): # noqa: E501 + raise ValueError(r"Invalid value for `extra_header_2`, must be a follow pattern or equal to `/^[-\\w]+$/`") # noqa: E501 + + self._extra_header_2 = extra_header_2 + + @property + def extra_value_1(self): + """Gets the extra_value_1 of this NixUpstreamRequest. + + The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. + + :return: The extra_value_1 of this NixUpstreamRequest. + :rtype: str + """ + return self._extra_value_1 + + @extra_value_1.setter + def extra_value_1(self, extra_value_1): + """Sets the extra_value_1 of this NixUpstreamRequest. + + The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. + + :param extra_value_1: The extra_value_1 of this NixUpstreamRequest. + :type: str + """ + if (self._configuration.client_side_validation and + extra_value_1 is not None and len(extra_value_1) > 128): + raise ValueError("Invalid value for `extra_value_1`, length must be less than or equal to `128`") # noqa: E501 + if (self._configuration.client_side_validation and + extra_value_1 is not None and not re.search('^[^\\n\\r]+$', extra_value_1)): # noqa: E501 + raise ValueError(r"Invalid value for `extra_value_1`, must be a follow pattern or equal to `/^[^\\n\\r]+$/`") # noqa: E501 + + self._extra_value_1 = extra_value_1 + + @property + def extra_value_2(self): + """Gets the extra_value_2 of this NixUpstreamRequest. + + The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. + + :return: The extra_value_2 of this NixUpstreamRequest. + :rtype: str + """ + return self._extra_value_2 + + @extra_value_2.setter + def extra_value_2(self, extra_value_2): + """Sets the extra_value_2 of this NixUpstreamRequest. + + The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. + + :param extra_value_2: The extra_value_2 of this NixUpstreamRequest. + :type: str + """ + if (self._configuration.client_side_validation and + extra_value_2 is not None and len(extra_value_2) > 128): + raise ValueError("Invalid value for `extra_value_2`, length must be less than or equal to `128`") # noqa: E501 + if (self._configuration.client_side_validation and + extra_value_2 is not None and not re.search('^[^\\n\\r]+$', extra_value_2)): # noqa: E501 + raise ValueError(r"Invalid value for `extra_value_2`, must be a follow pattern or equal to `/^[^\\n\\r]+$/`") # noqa: E501 + + self._extra_value_2 = extra_value_2 + + @property + def is_active(self): + """Gets the is_active of this NixUpstreamRequest. + + Whether or not this upstream is active and ready for requests. + + :return: The is_active of this NixUpstreamRequest. + :rtype: bool + """ + return self._is_active + + @is_active.setter + def is_active(self, is_active): + """Sets the is_active of this NixUpstreamRequest. + + Whether or not this upstream is active and ready for requests. + + :param is_active: The is_active of this NixUpstreamRequest. + :type: bool + """ + + self._is_active = is_active + + @property + def mode(self): + """Gets the mode of this NixUpstreamRequest. + + The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. + + :return: The mode of this NixUpstreamRequest. + :rtype: str + """ + return self._mode + + @mode.setter + def mode(self, mode): + """Sets the mode of this NixUpstreamRequest. + + The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. + + :param mode: The mode of this NixUpstreamRequest. + :type: str + """ + allowed_values = ["Proxy Only", "Cache and Proxy"] # noqa: E501 + if (self._configuration.client_side_validation and + mode not in allowed_values): + raise ValueError( + "Invalid value for `mode` ({0}), must be one of {1}" # noqa: E501 + .format(mode, allowed_values) + ) + + self._mode = mode + + @property + def name(self): + """Gets the name of this NixUpstreamRequest. + + A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. + + :return: The name of this NixUpstreamRequest. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this NixUpstreamRequest. + + A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. + + :param name: The name of this NixUpstreamRequest. + :type: str + """ + if self._configuration.client_side_validation and name is None: + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + if (self._configuration.client_side_validation and + name is not None and len(name) > 64): + raise ValueError("Invalid value for `name`, length must be less than or equal to `64`") # noqa: E501 + if (self._configuration.client_side_validation and + name is not None and len(name) < 1): + raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 + if (self._configuration.client_side_validation and + name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 + raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 + + self._name = name + + @property + def priority(self): + """Gets the priority of this NixUpstreamRequest. + + Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. + + :return: The priority of this NixUpstreamRequest. + :rtype: int + """ + return self._priority + + @priority.setter + def priority(self, priority): + """Sets the priority of this NixUpstreamRequest. + + Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. + + :param priority: The priority of this NixUpstreamRequest. + :type: int + """ + if (self._configuration.client_side_validation and + priority is not None and priority > 32767): # noqa: E501 + raise ValueError("Invalid value for `priority`, must be a value less than or equal to `32767`") # noqa: E501 + if (self._configuration.client_side_validation and + priority is not None and priority < 1): # noqa: E501 + raise ValueError("Invalid value for `priority`, must be a value greater than or equal to `1`") # noqa: E501 + + self._priority = priority + + @property + def upstream_url(self): + """Gets the upstream_url of this NixUpstreamRequest. + + The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. + + :return: The upstream_url of this NixUpstreamRequest. + :rtype: str + """ + return self._upstream_url + + @upstream_url.setter + def upstream_url(self, upstream_url): + """Sets the upstream_url of this NixUpstreamRequest. + + The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. + + :param upstream_url: The upstream_url of this NixUpstreamRequest. + :type: str + """ + if self._configuration.client_side_validation and upstream_url is None: + raise ValueError("Invalid value for `upstream_url`, must not be `None`") # noqa: E501 + if (self._configuration.client_side_validation and + upstream_url is not None and len(upstream_url) > 200): + raise ValueError("Invalid value for `upstream_url`, length must be less than or equal to `200`") # noqa: E501 + if (self._configuration.client_side_validation and + upstream_url is not None and len(upstream_url) < 1): + raise ValueError("Invalid value for `upstream_url`, length must be greater than or equal to `1`") # noqa: E501 + + self._upstream_url = upstream_url + + @property + def verify_ssl(self): + """Gets the verify_ssl of this NixUpstreamRequest. + + If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. + + :return: The verify_ssl of this NixUpstreamRequest. + :rtype: bool + """ + return self._verify_ssl + + @verify_ssl.setter + def verify_ssl(self, verify_ssl): + """Sets the verify_ssl of this NixUpstreamRequest. + + If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. + + :param verify_ssl: The verify_ssl of this NixUpstreamRequest. + :type: bool + """ + + self._verify_ssl = verify_ssl + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(NixUpstreamRequest, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, NixUpstreamRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, NixUpstreamRequest): + return True + + return self.to_dict() != other.to_dict() + diff --git a/bindings/python/src/cloudsmith_api/models/nix_upstream_request_patch.py b/bindings/python/src/cloudsmith_api/models/nix_upstream_request_patch.py new file mode 100644 index 00000000..4808555f --- /dev/null +++ b/bindings/python/src/cloudsmith_api/models/nix_upstream_request_patch.py @@ -0,0 +1,527 @@ +# coding: utf-8 + +""" + Cloudsmith API (v1) + + The API to the Cloudsmith Service # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudsmith.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration + + +class NixUpstreamRequestPatch(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'auth_mode': 'str', + 'auth_secret': 'str', + 'auth_username': 'str', + 'extra_header_1': 'str', + 'extra_header_2': 'str', + 'extra_value_1': 'str', + 'extra_value_2': 'str', + 'is_active': 'bool', + 'mode': 'str', + 'name': 'str', + 'priority': 'int', + 'upstream_url': 'str', + 'verify_ssl': 'bool' + } + + attribute_map = { + 'auth_mode': 'auth_mode', + 'auth_secret': 'auth_secret', + 'auth_username': 'auth_username', + 'extra_header_1': 'extra_header_1', + 'extra_header_2': 'extra_header_2', + 'extra_value_1': 'extra_value_1', + 'extra_value_2': 'extra_value_2', + 'is_active': 'is_active', + 'mode': 'mode', + 'name': 'name', + 'priority': 'priority', + 'upstream_url': 'upstream_url', + 'verify_ssl': 'verify_ssl' + } + + def __init__(self, auth_mode='None', auth_secret=None, auth_username=None, extra_header_1=None, extra_header_2=None, extra_value_1=None, extra_value_2=None, is_active=None, mode='Proxy Only', name=None, priority=None, upstream_url=None, verify_ssl=None, _configuration=None): # noqa: E501 + """NixUpstreamRequestPatch - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._auth_mode = None + self._auth_secret = None + self._auth_username = None + self._extra_header_1 = None + self._extra_header_2 = None + self._extra_value_1 = None + self._extra_value_2 = None + self._is_active = None + self._mode = None + self._name = None + self._priority = None + self._upstream_url = None + self._verify_ssl = None + self.discriminator = None + + if auth_mode is not None: + self.auth_mode = auth_mode + if auth_secret is not None: + self.auth_secret = auth_secret + if auth_username is not None: + self.auth_username = auth_username + if extra_header_1 is not None: + self.extra_header_1 = extra_header_1 + if extra_header_2 is not None: + self.extra_header_2 = extra_header_2 + if extra_value_1 is not None: + self.extra_value_1 = extra_value_1 + if extra_value_2 is not None: + self.extra_value_2 = extra_value_2 + if is_active is not None: + self.is_active = is_active + if mode is not None: + self.mode = mode + if name is not None: + self.name = name + if priority is not None: + self.priority = priority + if upstream_url is not None: + self.upstream_url = upstream_url + if verify_ssl is not None: + self.verify_ssl = verify_ssl + + @property + def auth_mode(self): + """Gets the auth_mode of this NixUpstreamRequestPatch. + + The authentication mode to use when accessing this upstream. + + :return: The auth_mode of this NixUpstreamRequestPatch. + :rtype: str + """ + return self._auth_mode + + @auth_mode.setter + def auth_mode(self, auth_mode): + """Sets the auth_mode of this NixUpstreamRequestPatch. + + The authentication mode to use when accessing this upstream. + + :param auth_mode: The auth_mode of this NixUpstreamRequestPatch. + :type: str + """ + allowed_values = ["None", "Username and Password"] # noqa: E501 + if (self._configuration.client_side_validation and + auth_mode not in allowed_values): + raise ValueError( + "Invalid value for `auth_mode` ({0}), must be one of {1}" # noqa: E501 + .format(auth_mode, allowed_values) + ) + + self._auth_mode = auth_mode + + @property + def auth_secret(self): + """Gets the auth_secret of this NixUpstreamRequestPatch. + + Secret to provide with requests to upstream. + + :return: The auth_secret of this NixUpstreamRequestPatch. + :rtype: str + """ + return self._auth_secret + + @auth_secret.setter + def auth_secret(self, auth_secret): + """Sets the auth_secret of this NixUpstreamRequestPatch. + + Secret to provide with requests to upstream. + + :param auth_secret: The auth_secret of this NixUpstreamRequestPatch. + :type: str + """ + if (self._configuration.client_side_validation and + auth_secret is not None and len(auth_secret) > 4096): + raise ValueError("Invalid value for `auth_secret`, length must be less than or equal to `4096`") # noqa: E501 + + self._auth_secret = auth_secret + + @property + def auth_username(self): + """Gets the auth_username of this NixUpstreamRequestPatch. + + Username to provide with requests to upstream. + + :return: The auth_username of this NixUpstreamRequestPatch. + :rtype: str + """ + return self._auth_username + + @auth_username.setter + def auth_username(self, auth_username): + """Sets the auth_username of this NixUpstreamRequestPatch. + + Username to provide with requests to upstream. + + :param auth_username: The auth_username of this NixUpstreamRequestPatch. + :type: str + """ + if (self._configuration.client_side_validation and + auth_username is not None and len(auth_username) > 64): + raise ValueError("Invalid value for `auth_username`, length must be less than or equal to `64`") # noqa: E501 + + self._auth_username = auth_username + + @property + def extra_header_1(self): + """Gets the extra_header_1 of this NixUpstreamRequestPatch. + + The key for extra header #1 to send to upstream. + + :return: The extra_header_1 of this NixUpstreamRequestPatch. + :rtype: str + """ + return self._extra_header_1 + + @extra_header_1.setter + def extra_header_1(self, extra_header_1): + """Sets the extra_header_1 of this NixUpstreamRequestPatch. + + The key for extra header #1 to send to upstream. + + :param extra_header_1: The extra_header_1 of this NixUpstreamRequestPatch. + :type: str + """ + if (self._configuration.client_side_validation and + extra_header_1 is not None and len(extra_header_1) > 64): + raise ValueError("Invalid value for `extra_header_1`, length must be less than or equal to `64`") # noqa: E501 + if (self._configuration.client_side_validation and + extra_header_1 is not None and not re.search('^[-\\w]+$', extra_header_1)): # noqa: E501 + raise ValueError(r"Invalid value for `extra_header_1`, must be a follow pattern or equal to `/^[-\\w]+$/`") # noqa: E501 + + self._extra_header_1 = extra_header_1 + + @property + def extra_header_2(self): + """Gets the extra_header_2 of this NixUpstreamRequestPatch. + + The key for extra header #2 to send to upstream. + + :return: The extra_header_2 of this NixUpstreamRequestPatch. + :rtype: str + """ + return self._extra_header_2 + + @extra_header_2.setter + def extra_header_2(self, extra_header_2): + """Sets the extra_header_2 of this NixUpstreamRequestPatch. + + The key for extra header #2 to send to upstream. + + :param extra_header_2: The extra_header_2 of this NixUpstreamRequestPatch. + :type: str + """ + if (self._configuration.client_side_validation and + extra_header_2 is not None and len(extra_header_2) > 64): + raise ValueError("Invalid value for `extra_header_2`, length must be less than or equal to `64`") # noqa: E501 + if (self._configuration.client_side_validation and + extra_header_2 is not None and not re.search('^[-\\w]+$', extra_header_2)): # noqa: E501 + raise ValueError(r"Invalid value for `extra_header_2`, must be a follow pattern or equal to `/^[-\\w]+$/`") # noqa: E501 + + self._extra_header_2 = extra_header_2 + + @property + def extra_value_1(self): + """Gets the extra_value_1 of this NixUpstreamRequestPatch. + + The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. + + :return: The extra_value_1 of this NixUpstreamRequestPatch. + :rtype: str + """ + return self._extra_value_1 + + @extra_value_1.setter + def extra_value_1(self, extra_value_1): + """Sets the extra_value_1 of this NixUpstreamRequestPatch. + + The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. + + :param extra_value_1: The extra_value_1 of this NixUpstreamRequestPatch. + :type: str + """ + if (self._configuration.client_side_validation and + extra_value_1 is not None and len(extra_value_1) > 128): + raise ValueError("Invalid value for `extra_value_1`, length must be less than or equal to `128`") # noqa: E501 + if (self._configuration.client_side_validation and + extra_value_1 is not None and not re.search('^[^\\n\\r]+$', extra_value_1)): # noqa: E501 + raise ValueError(r"Invalid value for `extra_value_1`, must be a follow pattern or equal to `/^[^\\n\\r]+$/`") # noqa: E501 + + self._extra_value_1 = extra_value_1 + + @property + def extra_value_2(self): + """Gets the extra_value_2 of this NixUpstreamRequestPatch. + + The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. + + :return: The extra_value_2 of this NixUpstreamRequestPatch. + :rtype: str + """ + return self._extra_value_2 + + @extra_value_2.setter + def extra_value_2(self, extra_value_2): + """Sets the extra_value_2 of this NixUpstreamRequestPatch. + + The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. + + :param extra_value_2: The extra_value_2 of this NixUpstreamRequestPatch. + :type: str + """ + if (self._configuration.client_side_validation and + extra_value_2 is not None and len(extra_value_2) > 128): + raise ValueError("Invalid value for `extra_value_2`, length must be less than or equal to `128`") # noqa: E501 + if (self._configuration.client_side_validation and + extra_value_2 is not None and not re.search('^[^\\n\\r]+$', extra_value_2)): # noqa: E501 + raise ValueError(r"Invalid value for `extra_value_2`, must be a follow pattern or equal to `/^[^\\n\\r]+$/`") # noqa: E501 + + self._extra_value_2 = extra_value_2 + + @property + def is_active(self): + """Gets the is_active of this NixUpstreamRequestPatch. + + Whether or not this upstream is active and ready for requests. + + :return: The is_active of this NixUpstreamRequestPatch. + :rtype: bool + """ + return self._is_active + + @is_active.setter + def is_active(self, is_active): + """Sets the is_active of this NixUpstreamRequestPatch. + + Whether or not this upstream is active and ready for requests. + + :param is_active: The is_active of this NixUpstreamRequestPatch. + :type: bool + """ + + self._is_active = is_active + + @property + def mode(self): + """Gets the mode of this NixUpstreamRequestPatch. + + The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. + + :return: The mode of this NixUpstreamRequestPatch. + :rtype: str + """ + return self._mode + + @mode.setter + def mode(self, mode): + """Sets the mode of this NixUpstreamRequestPatch. + + The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. + + :param mode: The mode of this NixUpstreamRequestPatch. + :type: str + """ + allowed_values = ["Proxy Only", "Cache and Proxy"] # noqa: E501 + if (self._configuration.client_side_validation and + mode not in allowed_values): + raise ValueError( + "Invalid value for `mode` ({0}), must be one of {1}" # noqa: E501 + .format(mode, allowed_values) + ) + + self._mode = mode + + @property + def name(self): + """Gets the name of this NixUpstreamRequestPatch. + + A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. + + :return: The name of this NixUpstreamRequestPatch. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this NixUpstreamRequestPatch. + + A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. + + :param name: The name of this NixUpstreamRequestPatch. + :type: str + """ + if (self._configuration.client_side_validation and + name is not None and len(name) > 64): + raise ValueError("Invalid value for `name`, length must be less than or equal to `64`") # noqa: E501 + if (self._configuration.client_side_validation and + name is not None and len(name) < 1): + raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 + if (self._configuration.client_side_validation and + name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 + raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 + + self._name = name + + @property + def priority(self): + """Gets the priority of this NixUpstreamRequestPatch. + + Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. + + :return: The priority of this NixUpstreamRequestPatch. + :rtype: int + """ + return self._priority + + @priority.setter + def priority(self, priority): + """Sets the priority of this NixUpstreamRequestPatch. + + Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. + + :param priority: The priority of this NixUpstreamRequestPatch. + :type: int + """ + if (self._configuration.client_side_validation and + priority is not None and priority > 32767): # noqa: E501 + raise ValueError("Invalid value for `priority`, must be a value less than or equal to `32767`") # noqa: E501 + if (self._configuration.client_side_validation and + priority is not None and priority < 1): # noqa: E501 + raise ValueError("Invalid value for `priority`, must be a value greater than or equal to `1`") # noqa: E501 + + self._priority = priority + + @property + def upstream_url(self): + """Gets the upstream_url of this NixUpstreamRequestPatch. + + The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. + + :return: The upstream_url of this NixUpstreamRequestPatch. + :rtype: str + """ + return self._upstream_url + + @upstream_url.setter + def upstream_url(self, upstream_url): + """Sets the upstream_url of this NixUpstreamRequestPatch. + + The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. + + :param upstream_url: The upstream_url of this NixUpstreamRequestPatch. + :type: str + """ + if (self._configuration.client_side_validation and + upstream_url is not None and len(upstream_url) > 200): + raise ValueError("Invalid value for `upstream_url`, length must be less than or equal to `200`") # noqa: E501 + if (self._configuration.client_side_validation and + upstream_url is not None and len(upstream_url) < 1): + raise ValueError("Invalid value for `upstream_url`, length must be greater than or equal to `1`") # noqa: E501 + + self._upstream_url = upstream_url + + @property + def verify_ssl(self): + """Gets the verify_ssl of this NixUpstreamRequestPatch. + + If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. + + :return: The verify_ssl of this NixUpstreamRequestPatch. + :rtype: bool + """ + return self._verify_ssl + + @verify_ssl.setter + def verify_ssl(self, verify_ssl): + """Sets the verify_ssl of this NixUpstreamRequestPatch. + + If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. + + :param verify_ssl: The verify_ssl of this NixUpstreamRequestPatch. + :type: bool + """ + + self._verify_ssl = verify_ssl + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(NixUpstreamRequestPatch, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, NixUpstreamRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, NixUpstreamRequestPatch): + return True + + return self.to_dict() != other.to_dict() + diff --git a/bindings/python/src/cloudsmith_api/models/npm_package_upload.py b/bindings/python/src/cloudsmith_api/models/npm_package_upload.py index 4fefaade..bda3c7e4 100644 --- a/bindings/python/src/cloudsmith_api/models/npm_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/npm_package_upload.py @@ -62,6 +62,7 @@ class NpmPackageUpload(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', + 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -106,18 +107,21 @@ class NpmPackageUpload(object): 'status_str': 'str', 'status_updated_at': 'datetime', 'status_url': 'str', + 'store_path': 'str', 'subtype': 'str', 'summary': 'str', 'sync_finished_at': 'datetime', 'sync_progress': 'int', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -151,6 +155,7 @@ class NpmPackageUpload(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', + 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -195,22 +200,25 @@ class NpmPackageUpload(object): 'status_str': 'status_str', 'status_updated_at': 'status_updated_at', 'status_url': 'status_url', + 'store_path': 'store_path', 'subtype': 'subtype', 'summary': 'summary', 'sync_finished_at': 'sync_finished_at', 'sync_progress': 'sync_progress', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', + 'vulnerability_counts': 'vulnerability_counts', 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_malware_detected=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 """NpmPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -245,6 +253,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_deleteable = None self._is_downloadable = None self._is_hidden = None + self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -289,18 +298,21 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._status_str = None self._status_updated_at = None self._status_url = None + self._store_path = None self._subtype = None self._summary = None self._sync_finished_at = None self._sync_progress = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -362,6 +374,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -450,6 +464,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.status_updated_at = status_updated_at if status_url is not None: self.status_url = status_url + if store_path is not None: + self.store_path = store_path if subtype is not None: self.subtype = subtype if summary is not None: @@ -462,6 +478,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -474,6 +492,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.version = version if version_orig is not None: self.version_orig = version_orig + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -1110,6 +1130,29 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this NpmPackageUpload. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this NpmPackageUpload. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this NpmPackageUpload. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this NpmPackageUpload. + :type: bool + """ + + self._is_malware_detected = is_malware_detected + @property def is_moveable(self): """Gets the is_moveable of this NpmPackageUpload. @@ -2110,6 +2153,32 @@ def status_url(self, status_url): self._status_url = status_url + @property + def store_path(self): + """Gets the store_path of this NpmPackageUpload. + + Absolute store path for the package, including store hash and name. + + :return: The store_path of this NpmPackageUpload. + :rtype: str + """ + return self._store_path + + @store_path.setter + def store_path(self, store_path): + """Sets the store_path of this NpmPackageUpload. + + Absolute store path for the package, including store hash and name. + + :param store_path: The store_path of this NpmPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + store_path is not None and len(store_path) < 1): + raise ValueError("Invalid value for `store_path`, length must be greater than or equal to `1`") # noqa: E501 + + self._store_path = store_path + @property def subtype(self): """Gets the subtype of this NpmPackageUpload. @@ -2242,6 +2311,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this NpmPackageUpload. + + 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. + + :return: The tags_static of this NpmPackageUpload. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this NpmPackageUpload. + + 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. + + :param tags_static: The tags_static of this NpmPackageUpload. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this NpmPackageUpload. @@ -2375,6 +2467,27 @@ def version_orig(self, version_orig): self._version_orig = version_orig + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this NpmPackageUpload. + + + :return: The vulnerability_counts of this NpmPackageUpload. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this NpmPackageUpload. + + + :param vulnerability_counts: The vulnerability_counts of this NpmPackageUpload. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this NpmPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/npm_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/npm_package_upload_request.py index fe828c46..3dd80a8e 100644 --- a/bindings/python/src/cloudsmith_api/models/npm_package_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/npm_package_upload_request.py @@ -33,31 +33,39 @@ class NpmPackageUploadRequest(object): and the value is json key in definition. """ swagger_types = { + 'is_malware_detected': 'bool', 'npm_dist_tag': 'str', 'package_file': 'str', 'republish': 'bool', - 'tags': 'str' + 'tags': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { + 'is_malware_detected': 'is_malware_detected', 'npm_dist_tag': 'npm_dist_tag', 'package_file': 'package_file', 'republish': 'republish', - 'tags': 'tags' + 'tags': 'tags', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, npm_dist_tag='latest', package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + def __init__(self, is_malware_detected=None, npm_dist_tag='latest', package_file=None, republish=None, tags=None, vulnerability_counts=None, _configuration=None): # noqa: E501 """NpmPackageUploadRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration + self._is_malware_detected = None self._npm_dist_tag = None self._package_file = None self._republish = None self._tags = None + self._vulnerability_counts = None self.discriminator = None + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected if npm_dist_tag is not None: self.npm_dist_tag = npm_dist_tag self.package_file = package_file @@ -65,6 +73,31 @@ def __init__(self, npm_dist_tag='latest', package_file=None, republish=None, tag self.republish = republish if tags is not None: self.tags = tags + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts + + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this NpmPackageUploadRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this NpmPackageUploadRequest. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this NpmPackageUploadRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this NpmPackageUploadRequest. + :type: bool + """ + + self._is_malware_detected = is_malware_detected @property def npm_dist_tag(self): @@ -172,6 +205,27 @@ def tags(self, tags): self._tags = tags + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this NpmPackageUploadRequest. + + + :return: The vulnerability_counts of this NpmPackageUploadRequest. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this NpmPackageUploadRequest. + + + :param vulnerability_counts: The vulnerability_counts of this NpmPackageUploadRequest. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/bindings/python/src/cloudsmith_api/models/nuget_package_upload.py b/bindings/python/src/cloudsmith_api/models/nuget_package_upload.py index 8bf2794e..8f9e0f32 100644 --- a/bindings/python/src/cloudsmith_api/models/nuget_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/nuget_package_upload.py @@ -62,6 +62,7 @@ class NugetPackageUpload(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', + 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -106,18 +107,21 @@ class NugetPackageUpload(object): 'status_str': 'str', 'status_updated_at': 'datetime', 'status_url': 'str', + 'store_path': 'str', 'subtype': 'str', 'summary': 'str', 'sync_finished_at': 'datetime', 'sync_progress': 'int', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -151,6 +155,7 @@ class NugetPackageUpload(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', + 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -195,22 +200,25 @@ class NugetPackageUpload(object): 'status_str': 'status_str', 'status_updated_at': 'status_updated_at', 'status_url': 'status_url', + 'store_path': 'store_path', 'subtype': 'subtype', 'summary': 'summary', 'sync_finished_at': 'sync_finished_at', 'sync_progress': 'sync_progress', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', + 'vulnerability_counts': 'vulnerability_counts', 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_malware_detected=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 """NugetPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -245,6 +253,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_deleteable = None self._is_downloadable = None self._is_hidden = None + self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -289,18 +298,21 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._status_str = None self._status_updated_at = None self._status_url = None + self._store_path = None self._subtype = None self._summary = None self._sync_finished_at = None self._sync_progress = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -362,6 +374,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -450,6 +464,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.status_updated_at = status_updated_at if status_url is not None: self.status_url = status_url + if store_path is not None: + self.store_path = store_path if subtype is not None: self.subtype = subtype if summary is not None: @@ -462,6 +478,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -474,6 +492,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.version = version if version_orig is not None: self.version_orig = version_orig + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -1110,6 +1130,29 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this NugetPackageUpload. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this NugetPackageUpload. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this NugetPackageUpload. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this NugetPackageUpload. + :type: bool + """ + + self._is_malware_detected = is_malware_detected + @property def is_moveable(self): """Gets the is_moveable of this NugetPackageUpload. @@ -2110,6 +2153,32 @@ def status_url(self, status_url): self._status_url = status_url + @property + def store_path(self): + """Gets the store_path of this NugetPackageUpload. + + Absolute store path for the package, including store hash and name. + + :return: The store_path of this NugetPackageUpload. + :rtype: str + """ + return self._store_path + + @store_path.setter + def store_path(self, store_path): + """Sets the store_path of this NugetPackageUpload. + + Absolute store path for the package, including store hash and name. + + :param store_path: The store_path of this NugetPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + store_path is not None and len(store_path) < 1): + raise ValueError("Invalid value for `store_path`, length must be greater than or equal to `1`") # noqa: E501 + + self._store_path = store_path + @property def subtype(self): """Gets the subtype of this NugetPackageUpload. @@ -2242,6 +2311,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this NugetPackageUpload. + + 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. + + :return: The tags_static of this NugetPackageUpload. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this NugetPackageUpload. + + 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. + + :param tags_static: The tags_static of this NugetPackageUpload. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this NugetPackageUpload. @@ -2375,6 +2467,27 @@ def version_orig(self, version_orig): self._version_orig = version_orig + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this NugetPackageUpload. + + + :return: The vulnerability_counts of this NugetPackageUpload. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this NugetPackageUpload. + + + :param vulnerability_counts: The vulnerability_counts of this NugetPackageUpload. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this NugetPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/nuget_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/nuget_package_upload_request.py index 220b2734..1896c7f5 100644 --- a/bindings/python/src/cloudsmith_api/models/nuget_package_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/nuget_package_upload_request.py @@ -33,31 +33,39 @@ class NugetPackageUploadRequest(object): and the value is json key in definition. """ swagger_types = { + 'is_malware_detected': 'bool', 'package_file': 'str', 'republish': 'bool', 'symbols_file': 'str', - 'tags': 'str' + 'tags': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { + 'is_malware_detected': 'is_malware_detected', 'package_file': 'package_file', 'republish': 'republish', 'symbols_file': 'symbols_file', - 'tags': 'tags' + 'tags': 'tags', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, package_file=None, republish=None, symbols_file=None, tags=None, _configuration=None): # noqa: E501 + def __init__(self, is_malware_detected=None, package_file=None, republish=None, symbols_file=None, tags=None, vulnerability_counts=None, _configuration=None): # noqa: E501 """NugetPackageUploadRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration + self._is_malware_detected = None self._package_file = None self._republish = None self._symbols_file = None self._tags = None + self._vulnerability_counts = None self.discriminator = None + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected self.package_file = package_file if republish is not None: self.republish = republish @@ -65,6 +73,31 @@ def __init__(self, package_file=None, republish=None, symbols_file=None, tags=No self.symbols_file = symbols_file if tags is not None: self.tags = tags + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts + + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this NugetPackageUploadRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this NugetPackageUploadRequest. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this NugetPackageUploadRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this NugetPackageUploadRequest. + :type: bool + """ + + self._is_malware_detected = is_malware_detected @property def package_file(self): @@ -172,6 +205,27 @@ def tags(self, tags): self._tags = tags + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this NugetPackageUploadRequest. + + + :return: The vulnerability_counts of this NugetPackageUploadRequest. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this NugetPackageUploadRequest. + + + :param vulnerability_counts: The vulnerability_counts of this NugetPackageUploadRequest. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/bindings/python/src/cloudsmith_api/models/organization_usage.py b/bindings/python/src/cloudsmith_api/models/organization_usage.py new file mode 100644 index 00000000..f7a19632 --- /dev/null +++ b/bindings/python/src/cloudsmith_api/models/organization_usage.py @@ -0,0 +1,210 @@ +# coding: utf-8 + +""" + Cloudsmith API (v1) + + The API to the Cloudsmith Service # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudsmith.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration + + +class OrganizationUsage(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'bandwidth_maximum': 'int', + 'bandwidth_overage_limit': 'int', + 'storage_maximum': 'int', + 'storage_overage_limit': 'int' + } + + attribute_map = { + 'bandwidth_maximum': 'bandwidth_maximum', + 'bandwidth_overage_limit': 'bandwidth_overage_limit', + 'storage_maximum': 'storage_maximum', + 'storage_overage_limit': 'storage_overage_limit' + } + + def __init__(self, bandwidth_maximum=None, bandwidth_overage_limit=None, storage_maximum=None, storage_overage_limit=None, _configuration=None): # noqa: E501 + """OrganizationUsage - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._bandwidth_maximum = None + self._bandwidth_overage_limit = None + self._storage_maximum = None + self._storage_overage_limit = None + self.discriminator = None + + if bandwidth_maximum is not None: + self.bandwidth_maximum = bandwidth_maximum + if bandwidth_overage_limit is not None: + self.bandwidth_overage_limit = bandwidth_overage_limit + if storage_maximum is not None: + self.storage_maximum = storage_maximum + if storage_overage_limit is not None: + self.storage_overage_limit = storage_overage_limit + + @property + def bandwidth_maximum(self): + """Gets the bandwidth_maximum of this OrganizationUsage. + + The maximum allowed package delivery overage in GB for this product. + + :return: The bandwidth_maximum of this OrganizationUsage. + :rtype: int + """ + return self._bandwidth_maximum + + @bandwidth_maximum.setter + def bandwidth_maximum(self, bandwidth_maximum): + """Sets the bandwidth_maximum of this OrganizationUsage. + + The maximum allowed package delivery overage in GB for this product. + + :param bandwidth_maximum: The bandwidth_maximum of this OrganizationUsage. + :type: int + """ + + self._bandwidth_maximum = bandwidth_maximum + + @property + def bandwidth_overage_limit(self): + """Gets the bandwidth_overage_limit of this OrganizationUsage. + + The on-demand limit for package delivery usage (in GBs). + + :return: The bandwidth_overage_limit of this OrganizationUsage. + :rtype: int + """ + return self._bandwidth_overage_limit + + @bandwidth_overage_limit.setter + def bandwidth_overage_limit(self, bandwidth_overage_limit): + """Sets the bandwidth_overage_limit of this OrganizationUsage. + + The on-demand limit for package delivery usage (in GBs). + + :param bandwidth_overage_limit: The bandwidth_overage_limit of this OrganizationUsage. + :type: int + """ + + self._bandwidth_overage_limit = bandwidth_overage_limit + + @property + def storage_maximum(self): + """Gets the storage_maximum of this OrganizationUsage. + + The maximum allowed artifact data overage in GB for this product. + + :return: The storage_maximum of this OrganizationUsage. + :rtype: int + """ + return self._storage_maximum + + @storage_maximum.setter + def storage_maximum(self, storage_maximum): + """Sets the storage_maximum of this OrganizationUsage. + + The maximum allowed artifact data overage in GB for this product. + + :param storage_maximum: The storage_maximum of this OrganizationUsage. + :type: int + """ + + self._storage_maximum = storage_maximum + + @property + def storage_overage_limit(self): + """Gets the storage_overage_limit of this OrganizationUsage. + + The on-demand limit for artifact data usage (in GBs). + + :return: The storage_overage_limit of this OrganizationUsage. + :rtype: int + """ + return self._storage_overage_limit + + @storage_overage_limit.setter + def storage_overage_limit(self, storage_overage_limit): + """Sets the storage_overage_limit of this OrganizationUsage. + + The on-demand limit for artifact data usage (in GBs). + + :param storage_overage_limit: The storage_overage_limit of this OrganizationUsage. + :type: int + """ + + self._storage_overage_limit = storage_overage_limit + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(OrganizationUsage, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, OrganizationUsage): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, OrganizationUsage): + return True + + return self.to_dict() != other.to_dict() + diff --git a/bindings/python/src/cloudsmith_api/models/organization_usage_update.py b/bindings/python/src/cloudsmith_api/models/organization_usage_update.py new file mode 100644 index 00000000..181bdd31 --- /dev/null +++ b/bindings/python/src/cloudsmith_api/models/organization_usage_update.py @@ -0,0 +1,182 @@ +# coding: utf-8 + +""" + Cloudsmith API (v1) + + The API to the Cloudsmith Service # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudsmith.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration + + +class OrganizationUsageUpdate(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'allow_open_source_overage': 'bool', + 'bandwidth_overage_limit': 'int', + 'storage_overage_limit': 'int' + } + + attribute_map = { + 'allow_open_source_overage': 'allow_open_source_overage', + 'bandwidth_overage_limit': 'bandwidth_overage_limit', + 'storage_overage_limit': 'storage_overage_limit' + } + + def __init__(self, allow_open_source_overage=None, bandwidth_overage_limit=None, storage_overage_limit=None, _configuration=None): # noqa: E501 + """OrganizationUsageUpdate - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._allow_open_source_overage = None + self._bandwidth_overage_limit = None + self._storage_overage_limit = None + self.discriminator = None + + if allow_open_source_overage is not None: + self.allow_open_source_overage = allow_open_source_overage + if bandwidth_overage_limit is not None: + self.bandwidth_overage_limit = bandwidth_overage_limit + if storage_overage_limit is not None: + self.storage_overage_limit = storage_overage_limit + + @property + def allow_open_source_overage(self): + """Gets the allow_open_source_overage of this OrganizationUsageUpdate. + + + :return: The allow_open_source_overage of this OrganizationUsageUpdate. + :rtype: bool + """ + return self._allow_open_source_overage + + @allow_open_source_overage.setter + def allow_open_source_overage(self, allow_open_source_overage): + """Sets the allow_open_source_overage of this OrganizationUsageUpdate. + + + :param allow_open_source_overage: The allow_open_source_overage of this OrganizationUsageUpdate. + :type: bool + """ + + self._allow_open_source_overage = allow_open_source_overage + + @property + def bandwidth_overage_limit(self): + """Gets the bandwidth_overage_limit of this OrganizationUsageUpdate. + + + :return: The bandwidth_overage_limit of this OrganizationUsageUpdate. + :rtype: int + """ + return self._bandwidth_overage_limit + + @bandwidth_overage_limit.setter + def bandwidth_overage_limit(self, bandwidth_overage_limit): + """Sets the bandwidth_overage_limit of this OrganizationUsageUpdate. + + + :param bandwidth_overage_limit: The bandwidth_overage_limit of this OrganizationUsageUpdate. + :type: int + """ + if (self._configuration.client_side_validation and + bandwidth_overage_limit is not None and bandwidth_overage_limit < 0): # noqa: E501 + raise ValueError("Invalid value for `bandwidth_overage_limit`, must be a value greater than or equal to `0`") # noqa: E501 + + self._bandwidth_overage_limit = bandwidth_overage_limit + + @property + def storage_overage_limit(self): + """Gets the storage_overage_limit of this OrganizationUsageUpdate. + + + :return: The storage_overage_limit of this OrganizationUsageUpdate. + :rtype: int + """ + return self._storage_overage_limit + + @storage_overage_limit.setter + def storage_overage_limit(self, storage_overage_limit): + """Sets the storage_overage_limit of this OrganizationUsageUpdate. + + + :param storage_overage_limit: The storage_overage_limit of this OrganizationUsageUpdate. + :type: int + """ + if (self._configuration.client_side_validation and + storage_overage_limit is not None and storage_overage_limit < 0): # noqa: E501 + raise ValueError("Invalid value for `storage_overage_limit`, must be a value greater than or equal to `0`") # noqa: E501 + + self._storage_overage_limit = storage_overage_limit + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(OrganizationUsageUpdate, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, OrganizationUsageUpdate): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, OrganizationUsageUpdate): + return True + + return self.to_dict() != other.to_dict() + diff --git a/bindings/python/src/cloudsmith_api/models/organization_usage_update_request_patch.py b/bindings/python/src/cloudsmith_api/models/organization_usage_update_request_patch.py new file mode 100644 index 00000000..eaf24ff6 --- /dev/null +++ b/bindings/python/src/cloudsmith_api/models/organization_usage_update_request_patch.py @@ -0,0 +1,182 @@ +# coding: utf-8 + +""" + Cloudsmith API (v1) + + The API to the Cloudsmith Service # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudsmith.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration + + +class OrganizationUsageUpdateRequestPatch(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'allow_open_source_overage': 'bool', + 'bandwidth_overage_limit': 'int', + 'storage_overage_limit': 'int' + } + + attribute_map = { + 'allow_open_source_overage': 'allow_open_source_overage', + 'bandwidth_overage_limit': 'bandwidth_overage_limit', + 'storage_overage_limit': 'storage_overage_limit' + } + + def __init__(self, allow_open_source_overage=None, bandwidth_overage_limit=None, storage_overage_limit=None, _configuration=None): # noqa: E501 + """OrganizationUsageUpdateRequestPatch - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._allow_open_source_overage = None + self._bandwidth_overage_limit = None + self._storage_overage_limit = None + self.discriminator = None + + if allow_open_source_overage is not None: + self.allow_open_source_overage = allow_open_source_overage + if bandwidth_overage_limit is not None: + self.bandwidth_overage_limit = bandwidth_overage_limit + if storage_overage_limit is not None: + self.storage_overage_limit = storage_overage_limit + + @property + def allow_open_source_overage(self): + """Gets the allow_open_source_overage of this OrganizationUsageUpdateRequestPatch. + + + :return: The allow_open_source_overage of this OrganizationUsageUpdateRequestPatch. + :rtype: bool + """ + return self._allow_open_source_overage + + @allow_open_source_overage.setter + def allow_open_source_overage(self, allow_open_source_overage): + """Sets the allow_open_source_overage of this OrganizationUsageUpdateRequestPatch. + + + :param allow_open_source_overage: The allow_open_source_overage of this OrganizationUsageUpdateRequestPatch. + :type: bool + """ + + self._allow_open_source_overage = allow_open_source_overage + + @property + def bandwidth_overage_limit(self): + """Gets the bandwidth_overage_limit of this OrganizationUsageUpdateRequestPatch. + + + :return: The bandwidth_overage_limit of this OrganizationUsageUpdateRequestPatch. + :rtype: int + """ + return self._bandwidth_overage_limit + + @bandwidth_overage_limit.setter + def bandwidth_overage_limit(self, bandwidth_overage_limit): + """Sets the bandwidth_overage_limit of this OrganizationUsageUpdateRequestPatch. + + + :param bandwidth_overage_limit: The bandwidth_overage_limit of this OrganizationUsageUpdateRequestPatch. + :type: int + """ + if (self._configuration.client_side_validation and + bandwidth_overage_limit is not None and bandwidth_overage_limit < 0): # noqa: E501 + raise ValueError("Invalid value for `bandwidth_overage_limit`, must be a value greater than or equal to `0`") # noqa: E501 + + self._bandwidth_overage_limit = bandwidth_overage_limit + + @property + def storage_overage_limit(self): + """Gets the storage_overage_limit of this OrganizationUsageUpdateRequestPatch. + + + :return: The storage_overage_limit of this OrganizationUsageUpdateRequestPatch. + :rtype: int + """ + return self._storage_overage_limit + + @storage_overage_limit.setter + def storage_overage_limit(self, storage_overage_limit): + """Sets the storage_overage_limit of this OrganizationUsageUpdateRequestPatch. + + + :param storage_overage_limit: The storage_overage_limit of this OrganizationUsageUpdateRequestPatch. + :type: int + """ + if (self._configuration.client_side_validation and + storage_overage_limit is not None and storage_overage_limit < 0): # noqa: E501 + raise ValueError("Invalid value for `storage_overage_limit`, must be a value greater than or equal to `0`") # noqa: E501 + + self._storage_overage_limit = storage_overage_limit + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(OrganizationUsageUpdateRequestPatch, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, OrganizationUsageUpdateRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, OrganizationUsageUpdateRequestPatch): + return True + + return self.to_dict() != other.to_dict() + diff --git a/bindings/python/src/cloudsmith_api/models/p2_package_upload.py b/bindings/python/src/cloudsmith_api/models/p2_package_upload.py index 754110e6..0ca1cd14 100644 --- a/bindings/python/src/cloudsmith_api/models/p2_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/p2_package_upload.py @@ -62,6 +62,7 @@ class P2PackageUpload(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', + 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -106,18 +107,21 @@ class P2PackageUpload(object): 'status_str': 'str', 'status_updated_at': 'datetime', 'status_url': 'str', + 'store_path': 'str', 'subtype': 'str', 'summary': 'str', 'sync_finished_at': 'datetime', 'sync_progress': 'int', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -151,6 +155,7 @@ class P2PackageUpload(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', + 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -195,22 +200,25 @@ class P2PackageUpload(object): 'status_str': 'status_str', 'status_updated_at': 'status_updated_at', 'status_url': 'status_url', + 'store_path': 'store_path', 'subtype': 'subtype', 'summary': 'summary', 'sync_finished_at': 'sync_finished_at', 'sync_progress': 'sync_progress', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', + 'vulnerability_counts': 'vulnerability_counts', 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_malware_detected=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 """P2PackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -245,6 +253,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_deleteable = None self._is_downloadable = None self._is_hidden = None + self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -289,18 +298,21 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._status_str = None self._status_updated_at = None self._status_url = None + self._store_path = None self._subtype = None self._summary = None self._sync_finished_at = None self._sync_progress = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -362,6 +374,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -450,6 +464,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.status_updated_at = status_updated_at if status_url is not None: self.status_url = status_url + if store_path is not None: + self.store_path = store_path if subtype is not None: self.subtype = subtype if summary is not None: @@ -462,6 +478,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -474,6 +492,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.version = version if version_orig is not None: self.version_orig = version_orig + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -1110,6 +1130,29 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this P2PackageUpload. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this P2PackageUpload. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this P2PackageUpload. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this P2PackageUpload. + :type: bool + """ + + self._is_malware_detected = is_malware_detected + @property def is_moveable(self): """Gets the is_moveable of this P2PackageUpload. @@ -2110,6 +2153,32 @@ def status_url(self, status_url): self._status_url = status_url + @property + def store_path(self): + """Gets the store_path of this P2PackageUpload. + + Absolute store path for the package, including store hash and name. + + :return: The store_path of this P2PackageUpload. + :rtype: str + """ + return self._store_path + + @store_path.setter + def store_path(self, store_path): + """Sets the store_path of this P2PackageUpload. + + Absolute store path for the package, including store hash and name. + + :param store_path: The store_path of this P2PackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + store_path is not None and len(store_path) < 1): + raise ValueError("Invalid value for `store_path`, length must be greater than or equal to `1`") # noqa: E501 + + self._store_path = store_path + @property def subtype(self): """Gets the subtype of this P2PackageUpload. @@ -2242,6 +2311,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this P2PackageUpload. + + 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. + + :return: The tags_static of this P2PackageUpload. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this P2PackageUpload. + + 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. + + :param tags_static: The tags_static of this P2PackageUpload. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this P2PackageUpload. @@ -2375,6 +2467,27 @@ def version_orig(self, version_orig): self._version_orig = version_orig + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this P2PackageUpload. + + + :return: The vulnerability_counts of this P2PackageUpload. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this P2PackageUpload. + + + :param vulnerability_counts: The vulnerability_counts of this P2PackageUpload. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this P2PackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/p2_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/p2_package_upload_request.py index 807fe5e7..1ed26e0c 100644 --- a/bindings/python/src/cloudsmith_api/models/p2_package_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/p2_package_upload_request.py @@ -33,33 +33,66 @@ class P2PackageUploadRequest(object): and the value is json key in definition. """ swagger_types = { + 'is_malware_detected': 'bool', 'package_file': 'str', 'republish': 'bool', - 'tags': 'str' + 'tags': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { + 'is_malware_detected': 'is_malware_detected', 'package_file': 'package_file', 'republish': 'republish', - 'tags': 'tags' + 'tags': 'tags', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + def __init__(self, is_malware_detected=None, package_file=None, republish=None, tags=None, vulnerability_counts=None, _configuration=None): # noqa: E501 """P2PackageUploadRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration + self._is_malware_detected = None self._package_file = None self._republish = None self._tags = None + self._vulnerability_counts = None self.discriminator = None + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected self.package_file = package_file if republish is not None: self.republish = republish if tags is not None: self.tags = tags + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts + + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this P2PackageUploadRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this P2PackageUploadRequest. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this P2PackageUploadRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this P2PackageUploadRequest. + :type: bool + """ + + self._is_malware_detected = is_malware_detected @property def package_file(self): @@ -141,6 +174,27 @@ def tags(self, tags): self._tags = tags + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this P2PackageUploadRequest. + + + :return: The vulnerability_counts of this P2PackageUploadRequest. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this P2PackageUploadRequest. + + + :param vulnerability_counts: The vulnerability_counts of this P2PackageUploadRequest. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/bindings/python/src/cloudsmith_api/models/package.py b/bindings/python/src/cloudsmith_api/models/package.py index 5b92dc2f..3f6203f2 100644 --- a/bindings/python/src/cloudsmith_api/models/package.py +++ b/bindings/python/src/cloudsmith_api/models/package.py @@ -63,6 +63,7 @@ class Package(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', + 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -107,6 +108,7 @@ class Package(object): 'status_str': 'str', 'status_updated_at': 'datetime', 'status_url': 'str', + 'store_path': 'str', 'subtype': 'str', 'summary': 'str', 'sync_finished_at': 'datetime', @@ -114,12 +116,14 @@ class Package(object): 'tags': 'Tags', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -154,6 +158,7 @@ class Package(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', + 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -198,6 +203,7 @@ class Package(object): 'status_str': 'status_str', 'status_updated_at': 'status_updated_at', 'status_url': 'status_url', + 'store_path': 'store_path', 'subtype': 'subtype', 'summary': 'summary', 'sync_finished_at': 'sync_finished_at', @@ -205,16 +211,18 @@ class Package(object): 'tags': 'tags', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', + 'vulnerability_counts': 'vulnerability_counts', 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, filepath=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, filepath=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_malware_detected=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 """Package - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -250,6 +258,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_deleteable = None self._is_downloadable = None self._is_hidden = None + self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -294,6 +303,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._status_str = None self._status_updated_at = None self._status_url = None + self._store_path = None self._subtype = None self._summary = None self._sync_finished_at = None @@ -301,12 +311,14 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._tags = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -370,6 +382,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -458,6 +472,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.status_updated_at = status_updated_at if status_url is not None: self.status_url = status_url + if store_path is not None: + self.store_path = store_path if subtype is not None: self.subtype = subtype if summary is not None: @@ -472,6 +488,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -484,6 +502,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.version = version if version_orig is not None: self.version_orig = version_orig + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -1146,6 +1166,29 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this Package. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this Package. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this Package. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this Package. + :type: bool + """ + + self._is_malware_detected = is_malware_detected + @property def is_moveable(self): """Gets the is_moveable of this Package. @@ -2146,6 +2189,32 @@ def status_url(self, status_url): self._status_url = status_url + @property + def store_path(self): + """Gets the store_path of this Package. + + Absolute store path for the package, including store hash and name. + + :return: The store_path of this Package. + :rtype: str + """ + return self._store_path + + @store_path.setter + def store_path(self, store_path): + """Sets the store_path of this Package. + + Absolute store path for the package, including store hash and name. + + :param store_path: The store_path of this Package. + :type: str + """ + if (self._configuration.client_side_validation and + store_path is not None and len(store_path) < 1): + raise ValueError("Invalid value for `store_path`, length must be greater than or equal to `1`") # noqa: E501 + + self._store_path = store_path + @property def subtype(self): """Gets the subtype of this Package. @@ -2299,6 +2368,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this Package. + + 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. + + :return: The tags_static of this Package. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this Package. + + 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. + + :param tags_static: The tags_static of this Package. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this Package. @@ -2432,6 +2524,27 @@ def version_orig(self, version_orig): self._version_orig = version_orig + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this Package. + + + :return: The vulnerability_counts of this Package. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this Package. + + + :param vulnerability_counts: The vulnerability_counts of this Package. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this Package. diff --git a/bindings/python/src/cloudsmith_api/models/package_copy.py b/bindings/python/src/cloudsmith_api/models/package_copy.py index 2674ee73..eb4c9015 100644 --- a/bindings/python/src/cloudsmith_api/models/package_copy.py +++ b/bindings/python/src/cloudsmith_api/models/package_copy.py @@ -63,6 +63,7 @@ class PackageCopy(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', + 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -107,6 +108,7 @@ class PackageCopy(object): 'status_str': 'str', 'status_updated_at': 'datetime', 'status_url': 'str', + 'store_path': 'str', 'subtype': 'str', 'summary': 'str', 'sync_finished_at': 'datetime', @@ -114,12 +116,14 @@ class PackageCopy(object): 'tags': 'Tags', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -154,6 +158,7 @@ class PackageCopy(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', + 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -198,6 +203,7 @@ class PackageCopy(object): 'status_str': 'status_str', 'status_updated_at': 'status_updated_at', 'status_url': 'status_url', + 'store_path': 'store_path', 'subtype': 'subtype', 'summary': 'summary', 'sync_finished_at': 'sync_finished_at', @@ -205,16 +211,18 @@ class PackageCopy(object): 'tags': 'tags', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', + 'vulnerability_counts': 'vulnerability_counts', 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, filepath=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, filepath=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_malware_detected=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 """PackageCopy - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -250,6 +258,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_deleteable = None self._is_downloadable = None self._is_hidden = None + self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -294,6 +303,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._status_str = None self._status_updated_at = None self._status_url = None + self._store_path = None self._subtype = None self._summary = None self._sync_finished_at = None @@ -301,12 +311,14 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._tags = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -370,6 +382,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -458,6 +472,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.status_updated_at = status_updated_at if status_url is not None: self.status_url = status_url + if store_path is not None: + self.store_path = store_path if subtype is not None: self.subtype = subtype if summary is not None: @@ -472,6 +488,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -484,6 +502,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.version = version if version_orig is not None: self.version_orig = version_orig + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -1146,6 +1166,29 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this PackageCopy. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this PackageCopy. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this PackageCopy. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this PackageCopy. + :type: bool + """ + + self._is_malware_detected = is_malware_detected + @property def is_moveable(self): """Gets the is_moveable of this PackageCopy. @@ -2148,6 +2191,32 @@ def status_url(self, status_url): self._status_url = status_url + @property + def store_path(self): + """Gets the store_path of this PackageCopy. + + Absolute store path for the package, including store hash and name. + + :return: The store_path of this PackageCopy. + :rtype: str + """ + return self._store_path + + @store_path.setter + def store_path(self, store_path): + """Sets the store_path of this PackageCopy. + + Absolute store path for the package, including store hash and name. + + :param store_path: The store_path of this PackageCopy. + :type: str + """ + if (self._configuration.client_side_validation and + store_path is not None and len(store_path) < 1): + raise ValueError("Invalid value for `store_path`, length must be greater than or equal to `1`") # noqa: E501 + + self._store_path = store_path + @property def subtype(self): """Gets the subtype of this PackageCopy. @@ -2301,6 +2370,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this PackageCopy. + + 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. + + :return: The tags_static of this PackageCopy. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this PackageCopy. + + 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. + + :param tags_static: The tags_static of this PackageCopy. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this PackageCopy. @@ -2434,6 +2526,27 @@ def version_orig(self, version_orig): self._version_orig = version_orig + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this PackageCopy. + + + :return: The vulnerability_counts of this PackageCopy. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this PackageCopy. + + + :param vulnerability_counts: The vulnerability_counts of this PackageCopy. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this PackageCopy. diff --git a/bindings/python/src/cloudsmith_api/models/package_copy_request.py b/bindings/python/src/cloudsmith_api/models/package_copy_request.py index 0dbe90c0..0305363e 100644 --- a/bindings/python/src/cloudsmith_api/models/package_copy_request.py +++ b/bindings/python/src/cloudsmith_api/models/package_copy_request.py @@ -34,27 +34,37 @@ class PackageCopyRequest(object): """ swagger_types = { 'destination': 'str', - 'republish': 'bool' + 'is_malware_detected': 'bool', + 'republish': 'bool', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { 'destination': 'destination', - 'republish': 'republish' + 'is_malware_detected': 'is_malware_detected', + 'republish': 'republish', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, destination=None, republish=None, _configuration=None): # noqa: E501 + def __init__(self, destination=None, is_malware_detected=None, republish=None, vulnerability_counts=None, _configuration=None): # noqa: E501 """PackageCopyRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration self._destination = None + self._is_malware_detected = None self._republish = None + self._vulnerability_counts = None self.discriminator = None self.destination = destination + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected if republish is not None: self.republish = republish + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts @property def destination(self): @@ -84,6 +94,29 @@ def destination(self, destination): self._destination = destination + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this PackageCopyRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this PackageCopyRequest. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this PackageCopyRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this PackageCopyRequest. + :type: bool + """ + + self._is_malware_detected = is_malware_detected + @property def republish(self): """Gets the republish of this PackageCopyRequest. @@ -107,6 +140,27 @@ def republish(self, republish): self._republish = republish + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this PackageCopyRequest. + + + :return: The vulnerability_counts of this PackageCopyRequest. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this PackageCopyRequest. + + + :param vulnerability_counts: The vulnerability_counts of this PackageCopyRequest. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/bindings/python/src/cloudsmith_api/models/package_detail.py b/bindings/python/src/cloudsmith_api/models/package_detail.py new file mode 100644 index 00000000..3315c357 --- /dev/null +++ b/bindings/python/src/cloudsmith_api/models/package_detail.py @@ -0,0 +1,2645 @@ +# coding: utf-8 + +""" + Cloudsmith API (v1) + + The API to the Cloudsmith Service # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudsmith.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration + + +class PackageDetail(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'architectures': 'list[Architecture]', + 'cdn_url': 'str', + 'checksum_md5': 'str', + 'checksum_sha1': 'str', + 'checksum_sha256': 'str', + 'checksum_sha512': 'str', + 'dependencies_checksum_md5': 'str', + 'dependencies_url': 'str', + 'description': 'str', + 'display_name': 'str', + 'distro': 'Distribution', + 'distro_version': 'DistributionVersion', + 'downloads': 'int', + 'epoch': 'int', + 'extension': 'str', + 'filename': 'str', + 'filepath': 'str', + 'files': 'list[PackageFile]', + 'format': 'str', + 'format_url': 'str', + 'freeable_storage': 'int', + 'fully_qualified_name': 'str', + 'has_dependencies': 'bool', + 'identifier_perm': 'str', + 'identifiers': 'dict(str, str)', + 'indexed': 'bool', + 'is_cancellable': 'bool', + 'is_copyable': 'bool', + 'is_deleteable': 'bool', + 'is_downloadable': 'bool', + 'is_hidden': 'bool', + 'is_malware_detected': 'bool', + 'is_moveable': 'bool', + 'is_quarantinable': 'bool', + 'is_quarantined': 'bool', + 'is_resyncable': 'bool', + 'is_security_scannable': 'bool', + 'is_sync_awaiting': 'bool', + 'is_sync_completed': 'bool', + 'is_sync_failed': 'bool', + 'is_sync_in_flight': 'bool', + 'is_sync_in_progress': 'bool', + 'license': 'str', + 'name': 'str', + 'namespace': 'str', + 'namespace_url': 'str', + 'num_files': 'int', + 'origin_repository': 'str', + 'origin_repository_url': 'str', + 'osi_approved': 'bool', + 'package_type': 'int', + 'policy_violated': 'bool', + 'raw_license': 'str', + 'release': 'str', + 'repository': 'str', + 'repository_url': 'str', + 'security_scan_completed_at': 'datetime', + 'security_scan_started_at': 'datetime', + 'security_scan_status': 'str', + 'security_scan_status_updated_at': 'datetime', + 'self_html_url': 'str', + 'self_url': 'str', + 'self_webapp_url': 'str', + 'signature_url': 'str', + 'size': 'int', + 'slug': 'str', + 'slug_perm': 'str', + 'spdx_license': 'str', + 'stage': 'int', + 'stage_str': 'str', + 'stage_updated_at': 'datetime', + 'status': 'int', + 'status_reason': 'str', + 'status_str': 'str', + 'status_updated_at': 'datetime', + 'status_url': 'str', + 'store_path': 'str', + 'subtype': 'str', + 'summary': 'str', + 'sync_finished_at': 'datetime', + 'sync_progress': 'int', + 'tags': 'Tags', + 'tags_automatic': 'Tags', + 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', + 'type_display': 'str', + 'uploaded_at': 'datetime', + 'uploader': 'str', + 'uploader_url': 'str', + 'version': 'str', + 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', + 'vulnerability_scan_results_url': 'str' + } + + attribute_map = { + 'architectures': 'architectures', + 'cdn_url': 'cdn_url', + 'checksum_md5': 'checksum_md5', + 'checksum_sha1': 'checksum_sha1', + 'checksum_sha256': 'checksum_sha256', + 'checksum_sha512': 'checksum_sha512', + 'dependencies_checksum_md5': 'dependencies_checksum_md5', + 'dependencies_url': 'dependencies_url', + 'description': 'description', + 'display_name': 'display_name', + 'distro': 'distro', + 'distro_version': 'distro_version', + 'downloads': 'downloads', + 'epoch': 'epoch', + 'extension': 'extension', + 'filename': 'filename', + 'filepath': 'filepath', + 'files': 'files', + 'format': 'format', + 'format_url': 'format_url', + 'freeable_storage': 'freeable_storage', + 'fully_qualified_name': 'fully_qualified_name', + 'has_dependencies': 'has_dependencies', + 'identifier_perm': 'identifier_perm', + 'identifiers': 'identifiers', + 'indexed': 'indexed', + 'is_cancellable': 'is_cancellable', + 'is_copyable': 'is_copyable', + 'is_deleteable': 'is_deleteable', + 'is_downloadable': 'is_downloadable', + 'is_hidden': 'is_hidden', + 'is_malware_detected': 'is_malware_detected', + 'is_moveable': 'is_moveable', + 'is_quarantinable': 'is_quarantinable', + 'is_quarantined': 'is_quarantined', + 'is_resyncable': 'is_resyncable', + 'is_security_scannable': 'is_security_scannable', + 'is_sync_awaiting': 'is_sync_awaiting', + 'is_sync_completed': 'is_sync_completed', + 'is_sync_failed': 'is_sync_failed', + 'is_sync_in_flight': 'is_sync_in_flight', + 'is_sync_in_progress': 'is_sync_in_progress', + 'license': 'license', + 'name': 'name', + 'namespace': 'namespace', + 'namespace_url': 'namespace_url', + 'num_files': 'num_files', + 'origin_repository': 'origin_repository', + 'origin_repository_url': 'origin_repository_url', + 'osi_approved': 'osi_approved', + 'package_type': 'package_type', + 'policy_violated': 'policy_violated', + 'raw_license': 'raw_license', + 'release': 'release', + 'repository': 'repository', + 'repository_url': 'repository_url', + 'security_scan_completed_at': 'security_scan_completed_at', + 'security_scan_started_at': 'security_scan_started_at', + 'security_scan_status': 'security_scan_status', + 'security_scan_status_updated_at': 'security_scan_status_updated_at', + 'self_html_url': 'self_html_url', + 'self_url': 'self_url', + 'self_webapp_url': 'self_webapp_url', + 'signature_url': 'signature_url', + 'size': 'size', + 'slug': 'slug', + 'slug_perm': 'slug_perm', + 'spdx_license': 'spdx_license', + 'stage': 'stage', + 'stage_str': 'stage_str', + 'stage_updated_at': 'stage_updated_at', + 'status': 'status', + 'status_reason': 'status_reason', + 'status_str': 'status_str', + 'status_updated_at': 'status_updated_at', + 'status_url': 'status_url', + 'store_path': 'store_path', + 'subtype': 'subtype', + 'summary': 'summary', + 'sync_finished_at': 'sync_finished_at', + 'sync_progress': 'sync_progress', + 'tags': 'tags', + 'tags_automatic': 'tags_automatic', + 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', + 'type_display': 'type_display', + 'uploaded_at': 'uploaded_at', + 'uploader': 'uploader', + 'uploader_url': 'uploader_url', + 'version': 'version', + 'version_orig': 'version_orig', + 'vulnerability_counts': 'vulnerability_counts', + 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' + } + + def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, filepath=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, has_dependencies=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_malware_detected=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + """PackageDetail - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._architectures = None + self._cdn_url = None + self._checksum_md5 = None + self._checksum_sha1 = None + self._checksum_sha256 = None + self._checksum_sha512 = None + self._dependencies_checksum_md5 = None + self._dependencies_url = None + self._description = None + self._display_name = None + self._distro = None + self._distro_version = None + self._downloads = None + self._epoch = None + self._extension = None + self._filename = None + self._filepath = None + self._files = None + self._format = None + self._format_url = None + self._freeable_storage = None + self._fully_qualified_name = None + self._has_dependencies = None + self._identifier_perm = None + self._identifiers = None + self._indexed = None + self._is_cancellable = None + self._is_copyable = None + self._is_deleteable = None + self._is_downloadable = None + self._is_hidden = None + self._is_malware_detected = None + self._is_moveable = None + self._is_quarantinable = None + self._is_quarantined = None + self._is_resyncable = None + self._is_security_scannable = None + self._is_sync_awaiting = None + self._is_sync_completed = None + self._is_sync_failed = None + self._is_sync_in_flight = None + self._is_sync_in_progress = None + self._license = None + self._name = None + self._namespace = None + self._namespace_url = None + self._num_files = None + self._origin_repository = None + self._origin_repository_url = None + self._osi_approved = None + self._package_type = None + self._policy_violated = None + self._raw_license = None + self._release = None + self._repository = None + self._repository_url = None + self._security_scan_completed_at = None + self._security_scan_started_at = None + self._security_scan_status = None + self._security_scan_status_updated_at = None + self._self_html_url = None + self._self_url = None + self._self_webapp_url = None + self._signature_url = None + self._size = None + self._slug = None + self._slug_perm = None + self._spdx_license = None + self._stage = None + self._stage_str = None + self._stage_updated_at = None + self._status = None + self._status_reason = None + self._status_str = None + self._status_updated_at = None + self._status_url = None + self._store_path = None + self._subtype = None + self._summary = None + self._sync_finished_at = None + self._sync_progress = None + self._tags = None + self._tags_automatic = None + self._tags_immutable = None + self._tags_static = None + self._type_display = None + self._uploaded_at = None + self._uploader = None + self._uploader_url = None + self._version = None + self._version_orig = None + self._vulnerability_counts = None + self._vulnerability_scan_results_url = None + self.discriminator = None + + if architectures is not None: + self.architectures = architectures + if cdn_url is not None: + self.cdn_url = cdn_url + if checksum_md5 is not None: + self.checksum_md5 = checksum_md5 + if checksum_sha1 is not None: + self.checksum_sha1 = checksum_sha1 + if checksum_sha256 is not None: + self.checksum_sha256 = checksum_sha256 + if checksum_sha512 is not None: + self.checksum_sha512 = checksum_sha512 + if dependencies_checksum_md5 is not None: + self.dependencies_checksum_md5 = dependencies_checksum_md5 + if dependencies_url is not None: + self.dependencies_url = dependencies_url + if description is not None: + self.description = description + if display_name is not None: + self.display_name = display_name + if distro is not None: + self.distro = distro + if distro_version is not None: + self.distro_version = distro_version + if downloads is not None: + self.downloads = downloads + if epoch is not None: + self.epoch = epoch + if extension is not None: + self.extension = extension + if filename is not None: + self.filename = filename + if filepath is not None: + self.filepath = filepath + if files is not None: + self.files = files + if format is not None: + self.format = format + if format_url is not None: + self.format_url = format_url + if freeable_storage is not None: + self.freeable_storage = freeable_storage + if fully_qualified_name is not None: + self.fully_qualified_name = fully_qualified_name + if has_dependencies is not None: + self.has_dependencies = has_dependencies + if identifier_perm is not None: + self.identifier_perm = identifier_perm + if identifiers is not None: + self.identifiers = identifiers + if indexed is not None: + self.indexed = indexed + if is_cancellable is not None: + self.is_cancellable = is_cancellable + if is_copyable is not None: + self.is_copyable = is_copyable + if is_deleteable is not None: + self.is_deleteable = is_deleteable + if is_downloadable is not None: + self.is_downloadable = is_downloadable + if is_hidden is not None: + self.is_hidden = is_hidden + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected + if is_moveable is not None: + self.is_moveable = is_moveable + if is_quarantinable is not None: + self.is_quarantinable = is_quarantinable + if is_quarantined is not None: + self.is_quarantined = is_quarantined + if is_resyncable is not None: + self.is_resyncable = is_resyncable + if is_security_scannable is not None: + self.is_security_scannable = is_security_scannable + if is_sync_awaiting is not None: + self.is_sync_awaiting = is_sync_awaiting + if is_sync_completed is not None: + self.is_sync_completed = is_sync_completed + if is_sync_failed is not None: + self.is_sync_failed = is_sync_failed + if is_sync_in_flight is not None: + self.is_sync_in_flight = is_sync_in_flight + if is_sync_in_progress is not None: + self.is_sync_in_progress = is_sync_in_progress + if license is not None: + self.license = license + if name is not None: + self.name = name + if namespace is not None: + self.namespace = namespace + if namespace_url is not None: + self.namespace_url = namespace_url + if num_files is not None: + self.num_files = num_files + if origin_repository is not None: + self.origin_repository = origin_repository + if origin_repository_url is not None: + self.origin_repository_url = origin_repository_url + if osi_approved is not None: + self.osi_approved = osi_approved + if package_type is not None: + self.package_type = package_type + if policy_violated is not None: + self.policy_violated = policy_violated + if raw_license is not None: + self.raw_license = raw_license + if release is not None: + self.release = release + if repository is not None: + self.repository = repository + if repository_url is not None: + self.repository_url = repository_url + if security_scan_completed_at is not None: + self.security_scan_completed_at = security_scan_completed_at + if security_scan_started_at is not None: + self.security_scan_started_at = security_scan_started_at + if security_scan_status is not None: + self.security_scan_status = security_scan_status + if security_scan_status_updated_at is not None: + self.security_scan_status_updated_at = security_scan_status_updated_at + if self_html_url is not None: + self.self_html_url = self_html_url + if self_url is not None: + self.self_url = self_url + if self_webapp_url is not None: + self.self_webapp_url = self_webapp_url + if signature_url is not None: + self.signature_url = signature_url + if size is not None: + self.size = size + if slug is not None: + self.slug = slug + if slug_perm is not None: + self.slug_perm = slug_perm + if spdx_license is not None: + self.spdx_license = spdx_license + if stage is not None: + self.stage = stage + if stage_str is not None: + self.stage_str = stage_str + if stage_updated_at is not None: + self.stage_updated_at = stage_updated_at + if status is not None: + self.status = status + if status_reason is not None: + self.status_reason = status_reason + if status_str is not None: + self.status_str = status_str + if status_updated_at is not None: + self.status_updated_at = status_updated_at + if status_url is not None: + self.status_url = status_url + if store_path is not None: + self.store_path = store_path + if subtype is not None: + self.subtype = subtype + if summary is not None: + self.summary = summary + if sync_finished_at is not None: + self.sync_finished_at = sync_finished_at + if sync_progress is not None: + self.sync_progress = sync_progress + if tags is not None: + self.tags = tags + if tags_automatic is not None: + self.tags_automatic = tags_automatic + if tags_immutable is not None: + self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static + if type_display is not None: + self.type_display = type_display + if uploaded_at is not None: + self.uploaded_at = uploaded_at + if uploader is not None: + self.uploader = uploader + if uploader_url is not None: + self.uploader_url = uploader_url + if version is not None: + self.version = version + if version_orig is not None: + self.version_orig = version_orig + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts + if vulnerability_scan_results_url is not None: + self.vulnerability_scan_results_url = vulnerability_scan_results_url + + @property + def architectures(self): + """Gets the architectures of this PackageDetail. + + + :return: The architectures of this PackageDetail. + :rtype: list[Architecture] + """ + return self._architectures + + @architectures.setter + def architectures(self, architectures): + """Sets the architectures of this PackageDetail. + + + :param architectures: The architectures of this PackageDetail. + :type: list[Architecture] + """ + + self._architectures = architectures + + @property + def cdn_url(self): + """Gets the cdn_url of this PackageDetail. + + + :return: The cdn_url of this PackageDetail. + :rtype: str + """ + return self._cdn_url + + @cdn_url.setter + def cdn_url(self, cdn_url): + """Sets the cdn_url of this PackageDetail. + + + :param cdn_url: The cdn_url of this PackageDetail. + :type: str + """ + + self._cdn_url = cdn_url + + @property + def checksum_md5(self): + """Gets the checksum_md5 of this PackageDetail. + + + :return: The checksum_md5 of this PackageDetail. + :rtype: str + """ + return self._checksum_md5 + + @checksum_md5.setter + def checksum_md5(self, checksum_md5): + """Sets the checksum_md5 of this PackageDetail. + + + :param checksum_md5: The checksum_md5 of this PackageDetail. + :type: str + """ + + self._checksum_md5 = checksum_md5 + + @property + def checksum_sha1(self): + """Gets the checksum_sha1 of this PackageDetail. + + + :return: The checksum_sha1 of this PackageDetail. + :rtype: str + """ + return self._checksum_sha1 + + @checksum_sha1.setter + def checksum_sha1(self, checksum_sha1): + """Sets the checksum_sha1 of this PackageDetail. + + + :param checksum_sha1: The checksum_sha1 of this PackageDetail. + :type: str + """ + + self._checksum_sha1 = checksum_sha1 + + @property + def checksum_sha256(self): + """Gets the checksum_sha256 of this PackageDetail. + + + :return: The checksum_sha256 of this PackageDetail. + :rtype: str + """ + return self._checksum_sha256 + + @checksum_sha256.setter + def checksum_sha256(self, checksum_sha256): + """Sets the checksum_sha256 of this PackageDetail. + + + :param checksum_sha256: The checksum_sha256 of this PackageDetail. + :type: str + """ + + self._checksum_sha256 = checksum_sha256 + + @property + def checksum_sha512(self): + """Gets the checksum_sha512 of this PackageDetail. + + + :return: The checksum_sha512 of this PackageDetail. + :rtype: str + """ + return self._checksum_sha512 + + @checksum_sha512.setter + def checksum_sha512(self, checksum_sha512): + """Sets the checksum_sha512 of this PackageDetail. + + + :param checksum_sha512: The checksum_sha512 of this PackageDetail. + :type: str + """ + + self._checksum_sha512 = checksum_sha512 + + @property + def dependencies_checksum_md5(self): + """Gets the dependencies_checksum_md5 of this PackageDetail. + + A checksum of all of the package's dependencies. + + :return: The dependencies_checksum_md5 of this PackageDetail. + :rtype: str + """ + return self._dependencies_checksum_md5 + + @dependencies_checksum_md5.setter + def dependencies_checksum_md5(self, dependencies_checksum_md5): + """Sets the dependencies_checksum_md5 of this PackageDetail. + + A checksum of all of the package's dependencies. + + :param dependencies_checksum_md5: The dependencies_checksum_md5 of this PackageDetail. + :type: str + """ + + self._dependencies_checksum_md5 = dependencies_checksum_md5 + + @property + def dependencies_url(self): + """Gets the dependencies_url of this PackageDetail. + + + :return: The dependencies_url of this PackageDetail. + :rtype: str + """ + return self._dependencies_url + + @dependencies_url.setter + def dependencies_url(self, dependencies_url): + """Sets the dependencies_url of this PackageDetail. + + + :param dependencies_url: The dependencies_url of this PackageDetail. + :type: str + """ + + self._dependencies_url = dependencies_url + + @property + def description(self): + """Gets the description of this PackageDetail. + + A textual description of this package. + + :return: The description of this PackageDetail. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this PackageDetail. + + A textual description of this package. + + :param description: The description of this PackageDetail. + :type: str + """ + + self._description = description + + @property + def display_name(self): + """Gets the display_name of this PackageDetail. + + + :return: The display_name of this PackageDetail. + :rtype: str + """ + return self._display_name + + @display_name.setter + def display_name(self, display_name): + """Sets the display_name of this PackageDetail. + + + :param display_name: The display_name of this PackageDetail. + :type: str + """ + + self._display_name = display_name + + @property + def distro(self): + """Gets the distro of this PackageDetail. + + + :return: The distro of this PackageDetail. + :rtype: Distribution + """ + return self._distro + + @distro.setter + def distro(self, distro): + """Sets the distro of this PackageDetail. + + + :param distro: The distro of this PackageDetail. + :type: Distribution + """ + + self._distro = distro + + @property + def distro_version(self): + """Gets the distro_version of this PackageDetail. + + + :return: The distro_version of this PackageDetail. + :rtype: DistributionVersion + """ + return self._distro_version + + @distro_version.setter + def distro_version(self, distro_version): + """Sets the distro_version of this PackageDetail. + + + :param distro_version: The distro_version of this PackageDetail. + :type: DistributionVersion + """ + + self._distro_version = distro_version + + @property + def downloads(self): + """Gets the downloads of this PackageDetail. + + + :return: The downloads of this PackageDetail. + :rtype: int + """ + return self._downloads + + @downloads.setter + def downloads(self, downloads): + """Sets the downloads of this PackageDetail. + + + :param downloads: The downloads of this PackageDetail. + :type: int + """ + + self._downloads = downloads + + @property + def epoch(self): + """Gets the epoch of this PackageDetail. + + The epoch of the package version (if any). + + :return: The epoch of this PackageDetail. + :rtype: int + """ + return self._epoch + + @epoch.setter + def epoch(self, epoch): + """Sets the epoch of this PackageDetail. + + The epoch of the package version (if any). + + :param epoch: The epoch of this PackageDetail. + :type: int + """ + + self._epoch = epoch + + @property + def extension(self): + """Gets the extension of this PackageDetail. + + + :return: The extension of this PackageDetail. + :rtype: str + """ + return self._extension + + @extension.setter + def extension(self, extension): + """Sets the extension of this PackageDetail. + + + :param extension: The extension of this PackageDetail. + :type: str + """ + + self._extension = extension + + @property + def filename(self): + """Gets the filename of this PackageDetail. + + + :return: The filename of this PackageDetail. + :rtype: str + """ + return self._filename + + @filename.setter + def filename(self, filename): + """Sets the filename of this PackageDetail. + + + :param filename: The filename of this PackageDetail. + :type: str + """ + if (self._configuration.client_side_validation and + filename is not None and len(filename) < 1): + raise ValueError("Invalid value for `filename`, length must be greater than or equal to `1`") # noqa: E501 + + self._filename = filename + + @property + def filepath(self): + """Gets the filepath of this PackageDetail. + + Full path to the file, including filename e.g. bin/utils/tool.tar.gz + + :return: The filepath of this PackageDetail. + :rtype: str + """ + return self._filepath + + @filepath.setter + def filepath(self, filepath): + """Sets the filepath of this PackageDetail. + + Full path to the file, including filename e.g. bin/utils/tool.tar.gz + + :param filepath: The filepath of this PackageDetail. + :type: str + """ + if (self._configuration.client_side_validation and + filepath is not None and len(filepath) < 1): + raise ValueError("Invalid value for `filepath`, length must be greater than or equal to `1`") # noqa: E501 + + self._filepath = filepath + + @property + def files(self): + """Gets the files of this PackageDetail. + + + :return: The files of this PackageDetail. + :rtype: list[PackageFile] + """ + return self._files + + @files.setter + def files(self, files): + """Sets the files of this PackageDetail. + + + :param files: The files of this PackageDetail. + :type: list[PackageFile] + """ + + self._files = files + + @property + def format(self): + """Gets the format of this PackageDetail. + + + :return: The format of this PackageDetail. + :rtype: str + """ + return self._format + + @format.setter + def format(self, format): + """Sets the format of this PackageDetail. + + + :param format: The format of this PackageDetail. + :type: str + """ + if (self._configuration.client_side_validation and + format is not None and len(format) < 1): + raise ValueError("Invalid value for `format`, length must be greater than or equal to `1`") # noqa: E501 + + self._format = format + + @property + def format_url(self): + """Gets the format_url of this PackageDetail. + + + :return: The format_url of this PackageDetail. + :rtype: str + """ + return self._format_url + + @format_url.setter + def format_url(self, format_url): + """Sets the format_url of this PackageDetail. + + + :param format_url: The format_url of this PackageDetail. + :type: str + """ + + self._format_url = format_url + + @property + def freeable_storage(self): + """Gets the freeable_storage of this PackageDetail. + + Amount of storage that will be freed if this package is deleted + + :return: The freeable_storage of this PackageDetail. + :rtype: int + """ + return self._freeable_storage + + @freeable_storage.setter + def freeable_storage(self, freeable_storage): + """Sets the freeable_storage of this PackageDetail. + + Amount of storage that will be freed if this package is deleted + + :param freeable_storage: The freeable_storage of this PackageDetail. + :type: int + """ + + self._freeable_storage = freeable_storage + + @property + def fully_qualified_name(self): + """Gets the fully_qualified_name of this PackageDetail. + + + :return: The fully_qualified_name of this PackageDetail. + :rtype: str + """ + return self._fully_qualified_name + + @fully_qualified_name.setter + def fully_qualified_name(self, fully_qualified_name): + """Sets the fully_qualified_name of this PackageDetail. + + + :param fully_qualified_name: The fully_qualified_name of this PackageDetail. + :type: str + """ + if (self._configuration.client_side_validation and + fully_qualified_name is not None and len(fully_qualified_name) < 1): + raise ValueError("Invalid value for `fully_qualified_name`, length must be greater than or equal to `1`") # noqa: E501 + + self._fully_qualified_name = fully_qualified_name + + @property + def has_dependencies(self): + """Gets the has_dependencies of this PackageDetail. + + Whether the package has any dependencies (top-level or from its SBOM). + + :return: The has_dependencies of this PackageDetail. + :rtype: bool + """ + return self._has_dependencies + + @has_dependencies.setter + def has_dependencies(self, has_dependencies): + """Sets the has_dependencies of this PackageDetail. + + Whether the package has any dependencies (top-level or from its SBOM). + + :param has_dependencies: The has_dependencies of this PackageDetail. + :type: bool + """ + + self._has_dependencies = has_dependencies + + @property + def identifier_perm(self): + """Gets the identifier_perm of this PackageDetail. + + Unique and permanent identifier for the package. + + :return: The identifier_perm of this PackageDetail. + :rtype: str + """ + return self._identifier_perm + + @identifier_perm.setter + def identifier_perm(self, identifier_perm): + """Sets the identifier_perm of this PackageDetail. + + Unique and permanent identifier for the package. + + :param identifier_perm: The identifier_perm of this PackageDetail. + :type: str + """ + if (self._configuration.client_side_validation and + identifier_perm is not None and len(identifier_perm) < 1): + raise ValueError("Invalid value for `identifier_perm`, length must be greater than or equal to `1`") # noqa: E501 + + self._identifier_perm = identifier_perm + + @property + def identifiers(self): + """Gets the identifiers of this PackageDetail. + + Return a map of identifier field names and their values. + + :return: The identifiers of this PackageDetail. + :rtype: dict(str, str) + """ + return self._identifiers + + @identifiers.setter + def identifiers(self, identifiers): + """Sets the identifiers of this PackageDetail. + + Return a map of identifier field names and their values. + + :param identifiers: The identifiers of this PackageDetail. + :type: dict(str, str) + """ + + self._identifiers = identifiers + + @property + def indexed(self): + """Gets the indexed of this PackageDetail. + + + :return: The indexed of this PackageDetail. + :rtype: bool + """ + return self._indexed + + @indexed.setter + def indexed(self, indexed): + """Sets the indexed of this PackageDetail. + + + :param indexed: The indexed of this PackageDetail. + :type: bool + """ + + self._indexed = indexed + + @property + def is_cancellable(self): + """Gets the is_cancellable of this PackageDetail. + + + :return: The is_cancellable of this PackageDetail. + :rtype: bool + """ + return self._is_cancellable + + @is_cancellable.setter + def is_cancellable(self, is_cancellable): + """Sets the is_cancellable of this PackageDetail. + + + :param is_cancellable: The is_cancellable of this PackageDetail. + :type: bool + """ + + self._is_cancellable = is_cancellable + + @property + def is_copyable(self): + """Gets the is_copyable of this PackageDetail. + + + :return: The is_copyable of this PackageDetail. + :rtype: bool + """ + return self._is_copyable + + @is_copyable.setter + def is_copyable(self, is_copyable): + """Sets the is_copyable of this PackageDetail. + + + :param is_copyable: The is_copyable of this PackageDetail. + :type: bool + """ + + self._is_copyable = is_copyable + + @property + def is_deleteable(self): + """Gets the is_deleteable of this PackageDetail. + + + :return: The is_deleteable of this PackageDetail. + :rtype: bool + """ + return self._is_deleteable + + @is_deleteable.setter + def is_deleteable(self, is_deleteable): + """Sets the is_deleteable of this PackageDetail. + + + :param is_deleteable: The is_deleteable of this PackageDetail. + :type: bool + """ + + self._is_deleteable = is_deleteable + + @property + def is_downloadable(self): + """Gets the is_downloadable of this PackageDetail. + + + :return: The is_downloadable of this PackageDetail. + :rtype: bool + """ + return self._is_downloadable + + @is_downloadable.setter + def is_downloadable(self, is_downloadable): + """Sets the is_downloadable of this PackageDetail. + + + :param is_downloadable: The is_downloadable of this PackageDetail. + :type: bool + """ + + self._is_downloadable = is_downloadable + + @property + def is_hidden(self): + """Gets the is_hidden of this PackageDetail. + + + :return: The is_hidden of this PackageDetail. + :rtype: bool + """ + return self._is_hidden + + @is_hidden.setter + def is_hidden(self, is_hidden): + """Sets the is_hidden of this PackageDetail. + + + :param is_hidden: The is_hidden of this PackageDetail. + :type: bool + """ + + self._is_hidden = is_hidden + + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this PackageDetail. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this PackageDetail. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this PackageDetail. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this PackageDetail. + :type: bool + """ + + self._is_malware_detected = is_malware_detected + + @property + def is_moveable(self): + """Gets the is_moveable of this PackageDetail. + + + :return: The is_moveable of this PackageDetail. + :rtype: bool + """ + return self._is_moveable + + @is_moveable.setter + def is_moveable(self, is_moveable): + """Sets the is_moveable of this PackageDetail. + + + :param is_moveable: The is_moveable of this PackageDetail. + :type: bool + """ + + self._is_moveable = is_moveable + + @property + def is_quarantinable(self): + """Gets the is_quarantinable of this PackageDetail. + + + :return: The is_quarantinable of this PackageDetail. + :rtype: bool + """ + return self._is_quarantinable + + @is_quarantinable.setter + def is_quarantinable(self, is_quarantinable): + """Sets the is_quarantinable of this PackageDetail. + + + :param is_quarantinable: The is_quarantinable of this PackageDetail. + :type: bool + """ + + self._is_quarantinable = is_quarantinable + + @property + def is_quarantined(self): + """Gets the is_quarantined of this PackageDetail. + + + :return: The is_quarantined of this PackageDetail. + :rtype: bool + """ + return self._is_quarantined + + @is_quarantined.setter + def is_quarantined(self, is_quarantined): + """Sets the is_quarantined of this PackageDetail. + + + :param is_quarantined: The is_quarantined of this PackageDetail. + :type: bool + """ + + self._is_quarantined = is_quarantined + + @property + def is_resyncable(self): + """Gets the is_resyncable of this PackageDetail. + + + :return: The is_resyncable of this PackageDetail. + :rtype: bool + """ + return self._is_resyncable + + @is_resyncable.setter + def is_resyncable(self, is_resyncable): + """Sets the is_resyncable of this PackageDetail. + + + :param is_resyncable: The is_resyncable of this PackageDetail. + :type: bool + """ + + self._is_resyncable = is_resyncable + + @property + def is_security_scannable(self): + """Gets the is_security_scannable of this PackageDetail. + + + :return: The is_security_scannable of this PackageDetail. + :rtype: bool + """ + return self._is_security_scannable + + @is_security_scannable.setter + def is_security_scannable(self, is_security_scannable): + """Sets the is_security_scannable of this PackageDetail. + + + :param is_security_scannable: The is_security_scannable of this PackageDetail. + :type: bool + """ + + self._is_security_scannable = is_security_scannable + + @property + def is_sync_awaiting(self): + """Gets the is_sync_awaiting of this PackageDetail. + + + :return: The is_sync_awaiting of this PackageDetail. + :rtype: bool + """ + return self._is_sync_awaiting + + @is_sync_awaiting.setter + def is_sync_awaiting(self, is_sync_awaiting): + """Sets the is_sync_awaiting of this PackageDetail. + + + :param is_sync_awaiting: The is_sync_awaiting of this PackageDetail. + :type: bool + """ + + self._is_sync_awaiting = is_sync_awaiting + + @property + def is_sync_completed(self): + """Gets the is_sync_completed of this PackageDetail. + + + :return: The is_sync_completed of this PackageDetail. + :rtype: bool + """ + return self._is_sync_completed + + @is_sync_completed.setter + def is_sync_completed(self, is_sync_completed): + """Sets the is_sync_completed of this PackageDetail. + + + :param is_sync_completed: The is_sync_completed of this PackageDetail. + :type: bool + """ + + self._is_sync_completed = is_sync_completed + + @property + def is_sync_failed(self): + """Gets the is_sync_failed of this PackageDetail. + + + :return: The is_sync_failed of this PackageDetail. + :rtype: bool + """ + return self._is_sync_failed + + @is_sync_failed.setter + def is_sync_failed(self, is_sync_failed): + """Sets the is_sync_failed of this PackageDetail. + + + :param is_sync_failed: The is_sync_failed of this PackageDetail. + :type: bool + """ + + self._is_sync_failed = is_sync_failed + + @property + def is_sync_in_flight(self): + """Gets the is_sync_in_flight of this PackageDetail. + + + :return: The is_sync_in_flight of this PackageDetail. + :rtype: bool + """ + return self._is_sync_in_flight + + @is_sync_in_flight.setter + def is_sync_in_flight(self, is_sync_in_flight): + """Sets the is_sync_in_flight of this PackageDetail. + + + :param is_sync_in_flight: The is_sync_in_flight of this PackageDetail. + :type: bool + """ + + self._is_sync_in_flight = is_sync_in_flight + + @property + def is_sync_in_progress(self): + """Gets the is_sync_in_progress of this PackageDetail. + + + :return: The is_sync_in_progress of this PackageDetail. + :rtype: bool + """ + return self._is_sync_in_progress + + @is_sync_in_progress.setter + def is_sync_in_progress(self, is_sync_in_progress): + """Sets the is_sync_in_progress of this PackageDetail. + + + :param is_sync_in_progress: The is_sync_in_progress of this PackageDetail. + :type: bool + """ + + self._is_sync_in_progress = is_sync_in_progress + + @property + def license(self): + """Gets the license of this PackageDetail. + + The license of this package. + + :return: The license of this PackageDetail. + :rtype: str + """ + return self._license + + @license.setter + def license(self, license): + """Sets the license of this PackageDetail. + + The license of this package. + + :param license: The license of this PackageDetail. + :type: str + """ + + self._license = license + + @property + def name(self): + """Gets the name of this PackageDetail. + + The name of this package. + + :return: The name of this PackageDetail. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this PackageDetail. + + The name of this package. + + :param name: The name of this PackageDetail. + :type: str + """ + + self._name = name + + @property + def namespace(self): + """Gets the namespace of this PackageDetail. + + + :return: The namespace of this PackageDetail. + :rtype: str + """ + return self._namespace + + @namespace.setter + def namespace(self, namespace): + """Sets the namespace of this PackageDetail. + + + :param namespace: The namespace of this PackageDetail. + :type: str + """ + if (self._configuration.client_side_validation and + namespace is not None and len(namespace) < 1): + raise ValueError("Invalid value for `namespace`, length must be greater than or equal to `1`") # noqa: E501 + + self._namespace = namespace + + @property + def namespace_url(self): + """Gets the namespace_url of this PackageDetail. + + + :return: The namespace_url of this PackageDetail. + :rtype: str + """ + return self._namespace_url + + @namespace_url.setter + def namespace_url(self, namespace_url): + """Sets the namespace_url of this PackageDetail. + + + :param namespace_url: The namespace_url of this PackageDetail. + :type: str + """ + + self._namespace_url = namespace_url + + @property + def num_files(self): + """Gets the num_files of this PackageDetail. + + + :return: The num_files of this PackageDetail. + :rtype: int + """ + return self._num_files + + @num_files.setter + def num_files(self, num_files): + """Sets the num_files of this PackageDetail. + + + :param num_files: The num_files of this PackageDetail. + :type: int + """ + + self._num_files = num_files + + @property + def origin_repository(self): + """Gets the origin_repository of this PackageDetail. + + + :return: The origin_repository of this PackageDetail. + :rtype: str + """ + return self._origin_repository + + @origin_repository.setter + def origin_repository(self, origin_repository): + """Sets the origin_repository of this PackageDetail. + + + :param origin_repository: The origin_repository of this PackageDetail. + :type: str + """ + if (self._configuration.client_side_validation and + origin_repository is not None and len(origin_repository) < 1): + raise ValueError("Invalid value for `origin_repository`, length must be greater than or equal to `1`") # noqa: E501 + + self._origin_repository = origin_repository + + @property + def origin_repository_url(self): + """Gets the origin_repository_url of this PackageDetail. + + + :return: The origin_repository_url of this PackageDetail. + :rtype: str + """ + return self._origin_repository_url + + @origin_repository_url.setter + def origin_repository_url(self, origin_repository_url): + """Sets the origin_repository_url of this PackageDetail. + + + :param origin_repository_url: The origin_repository_url of this PackageDetail. + :type: str + """ + + self._origin_repository_url = origin_repository_url + + @property + def osi_approved(self): + """Gets the osi_approved of this PackageDetail. + + Whether the package's SPDX license is OSI-approved. + + :return: The osi_approved of this PackageDetail. + :rtype: bool + """ + return self._osi_approved + + @osi_approved.setter + def osi_approved(self, osi_approved): + """Sets the osi_approved of this PackageDetail. + + Whether the package's SPDX license is OSI-approved. + + :param osi_approved: The osi_approved of this PackageDetail. + :type: bool + """ + + self._osi_approved = osi_approved + + @property + def package_type(self): + """Gets the package_type of this PackageDetail. + + The type of package contents. + + :return: The package_type of this PackageDetail. + :rtype: int + """ + return self._package_type + + @package_type.setter + def package_type(self, package_type): + """Sets the package_type of this PackageDetail. + + The type of package contents. + + :param package_type: The package_type of this PackageDetail. + :type: int + """ + + self._package_type = package_type + + @property + def policy_violated(self): + """Gets the policy_violated of this PackageDetail. + + Whether or not the package has violated any policy. + + :return: The policy_violated of this PackageDetail. + :rtype: bool + """ + return self._policy_violated + + @policy_violated.setter + def policy_violated(self, policy_violated): + """Sets the policy_violated of this PackageDetail. + + Whether or not the package has violated any policy. + + :param policy_violated: The policy_violated of this PackageDetail. + :type: bool + """ + + self._policy_violated = policy_violated + + @property + def raw_license(self): + """Gets the raw_license of this PackageDetail. + + The raw license string. + + :return: The raw_license of this PackageDetail. + :rtype: str + """ + return self._raw_license + + @raw_license.setter + def raw_license(self, raw_license): + """Sets the raw_license of this PackageDetail. + + The raw license string. + + :param raw_license: The raw_license of this PackageDetail. + :type: str + """ + if (self._configuration.client_side_validation and + raw_license is not None and len(raw_license) < 1): + raise ValueError("Invalid value for `raw_license`, length must be greater than or equal to `1`") # noqa: E501 + + self._raw_license = raw_license + + @property + def release(self): + """Gets the release of this PackageDetail. + + The release of the package version (if any). + + :return: The release of this PackageDetail. + :rtype: str + """ + return self._release + + @release.setter + def release(self, release): + """Sets the release of this PackageDetail. + + The release of the package version (if any). + + :param release: The release of this PackageDetail. + :type: str + """ + + self._release = release + + @property + def repository(self): + """Gets the repository of this PackageDetail. + + + :return: The repository of this PackageDetail. + :rtype: str + """ + return self._repository + + @repository.setter + def repository(self, repository): + """Sets the repository of this PackageDetail. + + + :param repository: The repository of this PackageDetail. + :type: str + """ + if (self._configuration.client_side_validation and + repository is not None and len(repository) < 1): + raise ValueError("Invalid value for `repository`, length must be greater than or equal to `1`") # noqa: E501 + + self._repository = repository + + @property + def repository_url(self): + """Gets the repository_url of this PackageDetail. + + + :return: The repository_url of this PackageDetail. + :rtype: str + """ + return self._repository_url + + @repository_url.setter + def repository_url(self, repository_url): + """Sets the repository_url of this PackageDetail. + + + :param repository_url: The repository_url of this PackageDetail. + :type: str + """ + + self._repository_url = repository_url + + @property + def security_scan_completed_at(self): + """Gets the security_scan_completed_at of this PackageDetail. + + The datetime the security scanning was completed. + + :return: The security_scan_completed_at of this PackageDetail. + :rtype: datetime + """ + return self._security_scan_completed_at + + @security_scan_completed_at.setter + def security_scan_completed_at(self, security_scan_completed_at): + """Sets the security_scan_completed_at of this PackageDetail. + + The datetime the security scanning was completed. + + :param security_scan_completed_at: The security_scan_completed_at of this PackageDetail. + :type: datetime + """ + + self._security_scan_completed_at = security_scan_completed_at + + @property + def security_scan_started_at(self): + """Gets the security_scan_started_at of this PackageDetail. + + The datetime the security scanning was started. + + :return: The security_scan_started_at of this PackageDetail. + :rtype: datetime + """ + return self._security_scan_started_at + + @security_scan_started_at.setter + def security_scan_started_at(self, security_scan_started_at): + """Sets the security_scan_started_at of this PackageDetail. + + The datetime the security scanning was started. + + :param security_scan_started_at: The security_scan_started_at of this PackageDetail. + :type: datetime + """ + + self._security_scan_started_at = security_scan_started_at + + @property + def security_scan_status(self): + """Gets the security_scan_status of this PackageDetail. + + + :return: The security_scan_status of this PackageDetail. + :rtype: str + """ + return self._security_scan_status + + @security_scan_status.setter + def security_scan_status(self, security_scan_status): + """Sets the security_scan_status of this PackageDetail. + + + :param security_scan_status: The security_scan_status of this PackageDetail. + :type: str + """ + allowed_values = ["Awaiting Security Scan", "Security Scanning in Progress", "Scan Detected Vulnerabilities", "Scan Detected No Vulnerabilities", "Security Scanning Disabled", "Security Scanning Failed", "Security Scanning Skipped", "Security Scanning Not Supported"] # noqa: E501 + if (self._configuration.client_side_validation and + security_scan_status not in allowed_values): + raise ValueError( + "Invalid value for `security_scan_status` ({0}), must be one of {1}" # noqa: E501 + .format(security_scan_status, allowed_values) + ) + + self._security_scan_status = security_scan_status + + @property + def security_scan_status_updated_at(self): + """Gets the security_scan_status_updated_at of this PackageDetail. + + The datetime the security scanning status was updated. + + :return: The security_scan_status_updated_at of this PackageDetail. + :rtype: datetime + """ + return self._security_scan_status_updated_at + + @security_scan_status_updated_at.setter + def security_scan_status_updated_at(self, security_scan_status_updated_at): + """Sets the security_scan_status_updated_at of this PackageDetail. + + The datetime the security scanning status was updated. + + :param security_scan_status_updated_at: The security_scan_status_updated_at of this PackageDetail. + :type: datetime + """ + + self._security_scan_status_updated_at = security_scan_status_updated_at + + @property + def self_html_url(self): + """Gets the self_html_url of this PackageDetail. + + + :return: The self_html_url of this PackageDetail. + :rtype: str + """ + return self._self_html_url + + @self_html_url.setter + def self_html_url(self, self_html_url): + """Sets the self_html_url of this PackageDetail. + + + :param self_html_url: The self_html_url of this PackageDetail. + :type: str + """ + if (self._configuration.client_side_validation and + self_html_url is not None and len(self_html_url) < 1): + raise ValueError("Invalid value for `self_html_url`, length must be greater than or equal to `1`") # noqa: E501 + + self._self_html_url = self_html_url + + @property + def self_url(self): + """Gets the self_url of this PackageDetail. + + + :return: The self_url of this PackageDetail. + :rtype: str + """ + return self._self_url + + @self_url.setter + def self_url(self, self_url): + """Sets the self_url of this PackageDetail. + + + :param self_url: The self_url of this PackageDetail. + :type: str + """ + + self._self_url = self_url + + @property + def self_webapp_url(self): + """Gets the self_webapp_url of this PackageDetail. + + + :return: The self_webapp_url of this PackageDetail. + :rtype: str + """ + return self._self_webapp_url + + @self_webapp_url.setter + def self_webapp_url(self, self_webapp_url): + """Sets the self_webapp_url of this PackageDetail. + + + :param self_webapp_url: The self_webapp_url of this PackageDetail. + :type: str + """ + if (self._configuration.client_side_validation and + self_webapp_url is not None and len(self_webapp_url) < 1): + raise ValueError("Invalid value for `self_webapp_url`, length must be greater than or equal to `1`") # noqa: E501 + + self._self_webapp_url = self_webapp_url + + @property + def signature_url(self): + """Gets the signature_url of this PackageDetail. + + + :return: The signature_url of this PackageDetail. + :rtype: str + """ + return self._signature_url + + @signature_url.setter + def signature_url(self, signature_url): + """Sets the signature_url of this PackageDetail. + + + :param signature_url: The signature_url of this PackageDetail. + :type: str + """ + + self._signature_url = signature_url + + @property + def size(self): + """Gets the size of this PackageDetail. + + The calculated size of the package. + + :return: The size of this PackageDetail. + :rtype: int + """ + return self._size + + @size.setter + def size(self, size): + """Sets the size of this PackageDetail. + + The calculated size of the package. + + :param size: The size of this PackageDetail. + :type: int + """ + + self._size = size + + @property + def slug(self): + """Gets the slug of this PackageDetail. + + The public unique identifier for the package. + + :return: The slug of this PackageDetail. + :rtype: str + """ + return self._slug + + @slug.setter + def slug(self, slug): + """Sets the slug of this PackageDetail. + + The public unique identifier for the package. + + :param slug: The slug of this PackageDetail. + :type: str + """ + if (self._configuration.client_side_validation and + slug is not None and len(slug) < 1): + raise ValueError("Invalid value for `slug`, length must be greater than or equal to `1`") # noqa: E501 + if (self._configuration.client_side_validation and + slug is not None and not re.search('^[-a-zA-Z0-9_]+$', slug)): # noqa: E501 + raise ValueError(r"Invalid value for `slug`, must be a follow pattern or equal to `/^[-a-zA-Z0-9_]+$/`") # noqa: E501 + + self._slug = slug + + @property + def slug_perm(self): + """Gets the slug_perm of this PackageDetail. + + + :return: The slug_perm of this PackageDetail. + :rtype: str + """ + return self._slug_perm + + @slug_perm.setter + def slug_perm(self, slug_perm): + """Sets the slug_perm of this PackageDetail. + + + :param slug_perm: The slug_perm of this PackageDetail. + :type: str + """ + if (self._configuration.client_side_validation and + slug_perm is not None and len(slug_perm) < 1): + raise ValueError("Invalid value for `slug_perm`, length must be greater than or equal to `1`") # noqa: E501 + if (self._configuration.client_side_validation and + slug_perm is not None and not re.search('^[-a-zA-Z0-9_]+$', slug_perm)): # noqa: E501 + raise ValueError(r"Invalid value for `slug_perm`, must be a follow pattern or equal to `/^[-a-zA-Z0-9_]+$/`") # noqa: E501 + + self._slug_perm = slug_perm + + @property + def spdx_license(self): + """Gets the spdx_license of this PackageDetail. + + The SPDX license identifier for this package. + + :return: The spdx_license of this PackageDetail. + :rtype: str + """ + return self._spdx_license + + @spdx_license.setter + def spdx_license(self, spdx_license): + """Sets the spdx_license of this PackageDetail. + + The SPDX license identifier for this package. + + :param spdx_license: The spdx_license of this PackageDetail. + :type: str + """ + if (self._configuration.client_side_validation and + spdx_license is not None and len(spdx_license) < 1): + raise ValueError("Invalid value for `spdx_license`, length must be greater than or equal to `1`") # noqa: E501 + + self._spdx_license = spdx_license + + @property + def stage(self): + """Gets the stage of this PackageDetail. + + The synchronisation (in progress) stage of the package. + + :return: The stage of this PackageDetail. + :rtype: int + """ + return self._stage + + @stage.setter + def stage(self, stage): + """Sets the stage of this PackageDetail. + + The synchronisation (in progress) stage of the package. + + :param stage: The stage of this PackageDetail. + :type: int + """ + + self._stage = stage + + @property + def stage_str(self): + """Gets the stage_str of this PackageDetail. + + + :return: The stage_str of this PackageDetail. + :rtype: str + """ + return self._stage_str + + @stage_str.setter + def stage_str(self, stage_str): + """Sets the stage_str of this PackageDetail. + + + :param stage_str: The stage_str of this PackageDetail. + :type: str + """ + + self._stage_str = stage_str + + @property + def stage_updated_at(self): + """Gets the stage_updated_at of this PackageDetail. + + The datetime the package stage was updated at. + + :return: The stage_updated_at of this PackageDetail. + :rtype: datetime + """ + return self._stage_updated_at + + @stage_updated_at.setter + def stage_updated_at(self, stage_updated_at): + """Sets the stage_updated_at of this PackageDetail. + + The datetime the package stage was updated at. + + :param stage_updated_at: The stage_updated_at of this PackageDetail. + :type: datetime + """ + + self._stage_updated_at = stage_updated_at + + @property + def status(self): + """Gets the status of this PackageDetail. + + The synchronisation status of the package. + + :return: The status of this PackageDetail. + :rtype: int + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this PackageDetail. + + The synchronisation status of the package. + + :param status: The status of this PackageDetail. + :type: int + """ + + self._status = status + + @property + def status_reason(self): + """Gets the status_reason of this PackageDetail. + + A textual description for the synchronous status reason (if any + + :return: The status_reason of this PackageDetail. + :rtype: str + """ + return self._status_reason + + @status_reason.setter + def status_reason(self, status_reason): + """Sets the status_reason of this PackageDetail. + + A textual description for the synchronous status reason (if any + + :param status_reason: The status_reason of this PackageDetail. + :type: str + """ + + self._status_reason = status_reason + + @property + def status_str(self): + """Gets the status_str of this PackageDetail. + + + :return: The status_str of this PackageDetail. + :rtype: str + """ + return self._status_str + + @status_str.setter + def status_str(self, status_str): + """Sets the status_str of this PackageDetail. + + + :param status_str: The status_str of this PackageDetail. + :type: str + """ + + self._status_str = status_str + + @property + def status_updated_at(self): + """Gets the status_updated_at of this PackageDetail. + + The datetime the package status was updated at. + + :return: The status_updated_at of this PackageDetail. + :rtype: datetime + """ + return self._status_updated_at + + @status_updated_at.setter + def status_updated_at(self, status_updated_at): + """Sets the status_updated_at of this PackageDetail. + + The datetime the package status was updated at. + + :param status_updated_at: The status_updated_at of this PackageDetail. + :type: datetime + """ + + self._status_updated_at = status_updated_at + + @property + def status_url(self): + """Gets the status_url of this PackageDetail. + + + :return: The status_url of this PackageDetail. + :rtype: str + """ + return self._status_url + + @status_url.setter + def status_url(self, status_url): + """Sets the status_url of this PackageDetail. + + + :param status_url: The status_url of this PackageDetail. + :type: str + """ + + self._status_url = status_url + + @property + def store_path(self): + """Gets the store_path of this PackageDetail. + + Absolute store path for the package, including store hash and name. + + :return: The store_path of this PackageDetail. + :rtype: str + """ + return self._store_path + + @store_path.setter + def store_path(self, store_path): + """Sets the store_path of this PackageDetail. + + Absolute store path for the package, including store hash and name. + + :param store_path: The store_path of this PackageDetail. + :type: str + """ + if (self._configuration.client_side_validation and + store_path is not None and len(store_path) < 1): + raise ValueError("Invalid value for `store_path`, length must be greater than or equal to `1`") # noqa: E501 + + self._store_path = store_path + + @property + def subtype(self): + """Gets the subtype of this PackageDetail. + + + :return: The subtype of this PackageDetail. + :rtype: str + """ + return self._subtype + + @subtype.setter + def subtype(self, subtype): + """Sets the subtype of this PackageDetail. + + + :param subtype: The subtype of this PackageDetail. + :type: str + """ + + self._subtype = subtype + + @property + def summary(self): + """Gets the summary of this PackageDetail. + + A one-liner synopsis of this package. + + :return: The summary of this PackageDetail. + :rtype: str + """ + return self._summary + + @summary.setter + def summary(self, summary): + """Sets the summary of this PackageDetail. + + A one-liner synopsis of this package. + + :param summary: The summary of this PackageDetail. + :type: str + """ + + self._summary = summary + + @property + def sync_finished_at(self): + """Gets the sync_finished_at of this PackageDetail. + + The datetime the package sync was finished at. + + :return: The sync_finished_at of this PackageDetail. + :rtype: datetime + """ + return self._sync_finished_at + + @sync_finished_at.setter + def sync_finished_at(self, sync_finished_at): + """Sets the sync_finished_at of this PackageDetail. + + The datetime the package sync was finished at. + + :param sync_finished_at: The sync_finished_at of this PackageDetail. + :type: datetime + """ + + self._sync_finished_at = sync_finished_at + + @property + def sync_progress(self): + """Gets the sync_progress of this PackageDetail. + + Synchronisation progress (from 0-100) + + :return: The sync_progress of this PackageDetail. + :rtype: int + """ + return self._sync_progress + + @sync_progress.setter + def sync_progress(self, sync_progress): + """Sets the sync_progress of this PackageDetail. + + Synchronisation progress (from 0-100) + + :param sync_progress: The sync_progress of this PackageDetail. + :type: int + """ + + self._sync_progress = sync_progress + + @property + def tags(self): + """Gets the tags of this PackageDetail. + + + :return: The tags of this PackageDetail. + :rtype: Tags + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this PackageDetail. + + + :param tags: The tags of this PackageDetail. + :type: Tags + """ + + self._tags = tags + + @property + def tags_automatic(self): + """Gets the tags_automatic of this PackageDetail. + + + :return: The tags_automatic of this PackageDetail. + :rtype: Tags + """ + return self._tags_automatic + + @tags_automatic.setter + def tags_automatic(self, tags_automatic): + """Sets the tags_automatic of this PackageDetail. + + + :param tags_automatic: The tags_automatic of this PackageDetail. + :type: Tags + """ + + self._tags_automatic = tags_automatic + + @property + def tags_immutable(self): + """Gets the tags_immutable of this PackageDetail. + + + :return: The tags_immutable of this PackageDetail. + :rtype: Tags + """ + return self._tags_immutable + + @tags_immutable.setter + def tags_immutable(self, tags_immutable): + """Sets the tags_immutable of this PackageDetail. + + + :param tags_immutable: The tags_immutable of this PackageDetail. + :type: Tags + """ + + self._tags_immutable = tags_immutable + + @property + def tags_static(self): + """Gets the tags_static of this PackageDetail. + + 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. + + :return: The tags_static of this PackageDetail. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this PackageDetail. + + 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. + + :param tags_static: The tags_static of this PackageDetail. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + + @property + def type_display(self): + """Gets the type_display of this PackageDetail. + + + :return: The type_display of this PackageDetail. + :rtype: str + """ + return self._type_display + + @type_display.setter + def type_display(self, type_display): + """Sets the type_display of this PackageDetail. + + + :param type_display: The type_display of this PackageDetail. + :type: str + """ + + self._type_display = type_display + + @property + def uploaded_at(self): + """Gets the uploaded_at of this PackageDetail. + + The date this package was uploaded. + + :return: The uploaded_at of this PackageDetail. + :rtype: datetime + """ + return self._uploaded_at + + @uploaded_at.setter + def uploaded_at(self, uploaded_at): + """Sets the uploaded_at of this PackageDetail. + + The date this package was uploaded. + + :param uploaded_at: The uploaded_at of this PackageDetail. + :type: datetime + """ + + self._uploaded_at = uploaded_at + + @property + def uploader(self): + """Gets the uploader of this PackageDetail. + + + :return: The uploader of this PackageDetail. + :rtype: str + """ + return self._uploader + + @uploader.setter + def uploader(self, uploader): + """Sets the uploader of this PackageDetail. + + + :param uploader: The uploader of this PackageDetail. + :type: str + """ + if (self._configuration.client_side_validation and + uploader is not None and len(uploader) < 1): + raise ValueError("Invalid value for `uploader`, length must be greater than or equal to `1`") # noqa: E501 + + self._uploader = uploader + + @property + def uploader_url(self): + """Gets the uploader_url of this PackageDetail. + + + :return: The uploader_url of this PackageDetail. + :rtype: str + """ + return self._uploader_url + + @uploader_url.setter + def uploader_url(self, uploader_url): + """Sets the uploader_url of this PackageDetail. + + + :param uploader_url: The uploader_url of this PackageDetail. + :type: str + """ + + self._uploader_url = uploader_url + + @property + def version(self): + """Gets the version of this PackageDetail. + + The raw version for this package. + + :return: The version of this PackageDetail. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this PackageDetail. + + The raw version for this package. + + :param version: The version of this PackageDetail. + :type: str + """ + + self._version = version + + @property + def version_orig(self): + """Gets the version_orig of this PackageDetail. + + + :return: The version_orig of this PackageDetail. + :rtype: str + """ + return self._version_orig + + @version_orig.setter + def version_orig(self, version_orig): + """Sets the version_orig of this PackageDetail. + + + :param version_orig: The version_orig of this PackageDetail. + :type: str + """ + + self._version_orig = version_orig + + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this PackageDetail. + + + :return: The vulnerability_counts of this PackageDetail. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this PackageDetail. + + + :param vulnerability_counts: The vulnerability_counts of this PackageDetail. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + + @property + def vulnerability_scan_results_url(self): + """Gets the vulnerability_scan_results_url of this PackageDetail. + + + :return: The vulnerability_scan_results_url of this PackageDetail. + :rtype: str + """ + return self._vulnerability_scan_results_url + + @vulnerability_scan_results_url.setter + def vulnerability_scan_results_url(self, vulnerability_scan_results_url): + """Sets the vulnerability_scan_results_url of this PackageDetail. + + + :param vulnerability_scan_results_url: The vulnerability_scan_results_url of this PackageDetail. + :type: str + """ + + self._vulnerability_scan_results_url = vulnerability_scan_results_url + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(PackageDetail, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PackageDetail): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PackageDetail): + return True + + return self.to_dict() != other.to_dict() + diff --git a/bindings/python/src/cloudsmith_api/models/package_file_upload_request.py b/bindings/python/src/cloudsmith_api/models/package_file_upload_request.py index 07e0a3cf..0f2a2a45 100644 --- a/bindings/python/src/cloudsmith_api/models/package_file_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/package_file_upload_request.py @@ -88,6 +88,9 @@ def filename(self, filename): """ if self._configuration.client_side_validation and filename is None: raise ValueError("Invalid value for `filename`, must not be `None`") # noqa: E501 + if (self._configuration.client_side_validation and + filename is not None and len(filename) > 255): + raise ValueError("Invalid value for `filename`, length must be less than or equal to `255`") # noqa: E501 if (self._configuration.client_side_validation and filename is not None and len(filename) < 1): raise ValueError("Invalid value for `filename`, length must be greater than or equal to `1`") # noqa: E501 diff --git a/bindings/python/src/cloudsmith_api/models/package_license.py b/bindings/python/src/cloudsmith_api/models/package_license.py index 15985161..7394e081 100644 --- a/bindings/python/src/cloudsmith_api/models/package_license.py +++ b/bindings/python/src/cloudsmith_api/models/package_license.py @@ -33,31 +33,39 @@ class PackageLicense(object): and the value is json key in definition. """ swagger_types = { + 'is_malware_detected': 'bool', 'license_notes': 'str', 'license_override': 'str', 'license_url': 'str', - 'spdx_license': 'str' + 'spdx_license': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { + 'is_malware_detected': 'is_malware_detected', 'license_notes': 'license_notes', 'license_override': 'license_override', 'license_url': 'license_url', - 'spdx_license': 'spdx_license' + 'spdx_license': 'spdx_license', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, license_notes=None, license_override='None', license_url=None, spdx_license=None, _configuration=None): # noqa: E501 + def __init__(self, is_malware_detected=None, license_notes=None, license_override='None', license_url=None, spdx_license=None, vulnerability_counts=None, _configuration=None): # noqa: E501 """PackageLicense - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration + self._is_malware_detected = None self._license_notes = None self._license_override = None self._license_url = None self._spdx_license = None + self._vulnerability_counts = None self.discriminator = None + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected if license_notes is not None: self.license_notes = license_notes if license_override is not None: @@ -65,6 +73,31 @@ def __init__(self, license_notes=None, license_override='None', license_url=None if license_url is not None: self.license_url = license_url self.spdx_license = spdx_license + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts + + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this PackageLicense. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this PackageLicense. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this PackageLicense. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this PackageLicense. + :type: bool + """ + + self._is_malware_detected = is_malware_detected @property def license_notes(self): @@ -171,6 +204,27 @@ def spdx_license(self, spdx_license): self._spdx_license = spdx_license + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this PackageLicense. + + + :return: The vulnerability_counts of this PackageLicense. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this PackageLicense. + + + :param vulnerability_counts: The vulnerability_counts of this PackageLicense. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/bindings/python/src/cloudsmith_api/models/package_license_request_patch.py b/bindings/python/src/cloudsmith_api/models/package_license_request_patch.py index b5af4366..803f7449 100644 --- a/bindings/python/src/cloudsmith_api/models/package_license_request_patch.py +++ b/bindings/python/src/cloudsmith_api/models/package_license_request_patch.py @@ -34,43 +34,52 @@ class PackageLicenseRequestPatch(object): """ swagger_types = { 'action': 'str', + 'is_malware_detected': 'bool', 'license_notes': 'str', 'license_override': 'str', 'license_url': 'str', - 'spdx_license': 'str' + 'spdx_license': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { 'action': 'action', + 'is_malware_detected': 'is_malware_detected', 'license_notes': 'license_notes', 'license_override': 'license_override', 'license_url': 'license_url', - 'spdx_license': 'spdx_license' + 'spdx_license': 'spdx_license', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, action='Update', license_notes=None, license_override='None', license_url=None, spdx_license=None, _configuration=None): # noqa: E501 + def __init__(self, action='Update', is_malware_detected=None, license_notes=None, license_override='None', license_url=None, spdx_license=None, vulnerability_counts=None, _configuration=None): # noqa: E501 """PackageLicenseRequestPatch - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration self._action = None + self._is_malware_detected = None self._license_notes = None self._license_override = None self._license_url = None self._spdx_license = None + self._vulnerability_counts = None self.discriminator = None if action is not None: self.action = action + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected if license_notes is not None: self.license_notes = license_notes if license_override is not None: self.license_override = license_override if license_url is not None: self.license_url = license_url - if spdx_license is not None: - self.spdx_license = spdx_license + self.spdx_license = spdx_license + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts @property def action(self): @@ -100,6 +109,29 @@ def action(self, action): self._action = action + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this PackageLicenseRequestPatch. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this PackageLicenseRequestPatch. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this PackageLicenseRequestPatch. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this PackageLicenseRequestPatch. + :type: bool + """ + + self._is_malware_detected = is_malware_detected + @property def license_notes(self): """Gets the license_notes of this PackageLicenseRequestPatch. @@ -194,6 +226,8 @@ def spdx_license(self, spdx_license): :param spdx_license: The spdx_license of this PackageLicenseRequestPatch. :type: str """ + if self._configuration.client_side_validation and spdx_license is None: + raise ValueError("Invalid value for `spdx_license`, must not be `None`") # noqa: E501 if (self._configuration.client_side_validation and spdx_license is not None and len(spdx_license) > 255): raise ValueError("Invalid value for `spdx_license`, length must be less than or equal to `255`") # noqa: E501 @@ -203,6 +237,27 @@ def spdx_license(self, spdx_license): self._spdx_license = spdx_license + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this PackageLicenseRequestPatch. + + + :return: The vulnerability_counts of this PackageLicenseRequestPatch. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this PackageLicenseRequestPatch. + + + :param vulnerability_counts: The vulnerability_counts of this PackageLicenseRequestPatch. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/bindings/python/src/cloudsmith_api/models/package_move.py b/bindings/python/src/cloudsmith_api/models/package_move.py index e4787975..a609d672 100644 --- a/bindings/python/src/cloudsmith_api/models/package_move.py +++ b/bindings/python/src/cloudsmith_api/models/package_move.py @@ -63,6 +63,7 @@ class PackageMove(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', + 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -107,6 +108,7 @@ class PackageMove(object): 'status_str': 'str', 'status_updated_at': 'datetime', 'status_url': 'str', + 'store_path': 'str', 'subtype': 'str', 'summary': 'str', 'sync_finished_at': 'datetime', @@ -114,12 +116,14 @@ class PackageMove(object): 'tags': 'Tags', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -154,6 +158,7 @@ class PackageMove(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', + 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -198,6 +203,7 @@ class PackageMove(object): 'status_str': 'status_str', 'status_updated_at': 'status_updated_at', 'status_url': 'status_url', + 'store_path': 'store_path', 'subtype': 'subtype', 'summary': 'summary', 'sync_finished_at': 'sync_finished_at', @@ -205,16 +211,18 @@ class PackageMove(object): 'tags': 'tags', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', + 'vulnerability_counts': 'vulnerability_counts', 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, filepath=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, filepath=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_malware_detected=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 """PackageMove - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -250,6 +258,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_deleteable = None self._is_downloadable = None self._is_hidden = None + self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -294,6 +303,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._status_str = None self._status_updated_at = None self._status_url = None + self._store_path = None self._subtype = None self._summary = None self._sync_finished_at = None @@ -301,12 +311,14 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._tags = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -370,6 +382,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -458,6 +472,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.status_updated_at = status_updated_at if status_url is not None: self.status_url = status_url + if store_path is not None: + self.store_path = store_path if subtype is not None: self.subtype = subtype if summary is not None: @@ -472,6 +488,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -484,6 +502,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.version = version if version_orig is not None: self.version_orig = version_orig + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -1146,6 +1166,29 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this PackageMove. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this PackageMove. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this PackageMove. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this PackageMove. + :type: bool + """ + + self._is_malware_detected = is_malware_detected + @property def is_moveable(self): """Gets the is_moveable of this PackageMove. @@ -2148,6 +2191,32 @@ def status_url(self, status_url): self._status_url = status_url + @property + def store_path(self): + """Gets the store_path of this PackageMove. + + Absolute store path for the package, including store hash and name. + + :return: The store_path of this PackageMove. + :rtype: str + """ + return self._store_path + + @store_path.setter + def store_path(self, store_path): + """Sets the store_path of this PackageMove. + + Absolute store path for the package, including store hash and name. + + :param store_path: The store_path of this PackageMove. + :type: str + """ + if (self._configuration.client_side_validation and + store_path is not None and len(store_path) < 1): + raise ValueError("Invalid value for `store_path`, length must be greater than or equal to `1`") # noqa: E501 + + self._store_path = store_path + @property def subtype(self): """Gets the subtype of this PackageMove. @@ -2301,6 +2370,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this PackageMove. + + 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. + + :return: The tags_static of this PackageMove. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this PackageMove. + + 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. + + :param tags_static: The tags_static of this PackageMove. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this PackageMove. @@ -2434,6 +2526,27 @@ def version_orig(self, version_orig): self._version_orig = version_orig + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this PackageMove. + + + :return: The vulnerability_counts of this PackageMove. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this PackageMove. + + + :param vulnerability_counts: The vulnerability_counts of this PackageMove. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this PackageMove. diff --git a/bindings/python/src/cloudsmith_api/models/package_move_request.py b/bindings/python/src/cloudsmith_api/models/package_move_request.py index 287049fa..c1a752ee 100644 --- a/bindings/python/src/cloudsmith_api/models/package_move_request.py +++ b/bindings/python/src/cloudsmith_api/models/package_move_request.py @@ -33,23 +33,33 @@ class PackageMoveRequest(object): and the value is json key in definition. """ swagger_types = { - 'destination': 'str' + 'destination': 'str', + 'is_malware_detected': 'bool', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { - 'destination': 'destination' + 'destination': 'destination', + 'is_malware_detected': 'is_malware_detected', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, destination=None, _configuration=None): # noqa: E501 + def __init__(self, destination=None, is_malware_detected=None, vulnerability_counts=None, _configuration=None): # noqa: E501 """PackageMoveRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration self._destination = None + self._is_malware_detected = None + self._vulnerability_counts = None self.discriminator = None self.destination = destination + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts @property def destination(self): @@ -79,6 +89,50 @@ def destination(self, destination): self._destination = destination + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this PackageMoveRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this PackageMoveRequest. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this PackageMoveRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this PackageMoveRequest. + :type: bool + """ + + self._is_malware_detected = is_malware_detected + + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this PackageMoveRequest. + + + :return: The vulnerability_counts of this PackageMoveRequest. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this PackageMoveRequest. + + + :param vulnerability_counts: The vulnerability_counts of this PackageMoveRequest. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/bindings/python/src/cloudsmith_api/models/package_quarantine.py b/bindings/python/src/cloudsmith_api/models/package_quarantine.py index 6c127f86..652bd598 100644 --- a/bindings/python/src/cloudsmith_api/models/package_quarantine.py +++ b/bindings/python/src/cloudsmith_api/models/package_quarantine.py @@ -63,6 +63,7 @@ class PackageQuarantine(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', + 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -106,6 +107,7 @@ class PackageQuarantine(object): 'status_str': 'str', 'status_updated_at': 'datetime', 'status_url': 'str', + 'store_path': 'str', 'subtype': 'str', 'summary': 'str', 'sync_finished_at': 'datetime', @@ -113,12 +115,14 @@ class PackageQuarantine(object): 'tags': 'Tags', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -153,6 +157,7 @@ class PackageQuarantine(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', + 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -196,6 +201,7 @@ class PackageQuarantine(object): 'status_str': 'status_str', 'status_updated_at': 'status_updated_at', 'status_url': 'status_url', + 'store_path': 'store_path', 'subtype': 'subtype', 'summary': 'summary', 'sync_finished_at': 'sync_finished_at', @@ -203,16 +209,18 @@ class PackageQuarantine(object): 'tags': 'tags', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', + 'vulnerability_counts': 'vulnerability_counts', 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, filepath=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, filepath=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_malware_detected=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 """PackageQuarantine - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -248,6 +256,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_deleteable = None self._is_downloadable = None self._is_hidden = None + self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -291,6 +300,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._status_str = None self._status_updated_at = None self._status_url = None + self._store_path = None self._subtype = None self._summary = None self._sync_finished_at = None @@ -298,12 +308,14 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._tags = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -367,6 +379,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -453,6 +467,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.status_updated_at = status_updated_at if status_url is not None: self.status_url = status_url + if store_path is not None: + self.store_path = store_path if subtype is not None: self.subtype = subtype if summary is not None: @@ -467,6 +483,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -479,6 +497,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.version = version if version_orig is not None: self.version_orig = version_orig + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -1141,6 +1161,29 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this PackageQuarantine. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this PackageQuarantine. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this PackageQuarantine. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this PackageQuarantine. + :type: bool + """ + + self._is_malware_detected = is_malware_detected + @property def is_moveable(self): """Gets the is_moveable of this PackageQuarantine. @@ -2118,6 +2161,32 @@ def status_url(self, status_url): self._status_url = status_url + @property + def store_path(self): + """Gets the store_path of this PackageQuarantine. + + Absolute store path for the package, including store hash and name. + + :return: The store_path of this PackageQuarantine. + :rtype: str + """ + return self._store_path + + @store_path.setter + def store_path(self, store_path): + """Sets the store_path of this PackageQuarantine. + + Absolute store path for the package, including store hash and name. + + :param store_path: The store_path of this PackageQuarantine. + :type: str + """ + if (self._configuration.client_side_validation and + store_path is not None and len(store_path) < 1): + raise ValueError("Invalid value for `store_path`, length must be greater than or equal to `1`") # noqa: E501 + + self._store_path = store_path + @property def subtype(self): """Gets the subtype of this PackageQuarantine. @@ -2271,6 +2340,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this PackageQuarantine. + + 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. + + :return: The tags_static of this PackageQuarantine. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this PackageQuarantine. + + 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. + + :param tags_static: The tags_static of this PackageQuarantine. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this PackageQuarantine. @@ -2404,6 +2496,27 @@ def version_orig(self, version_orig): self._version_orig = version_orig + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this PackageQuarantine. + + + :return: The vulnerability_counts of this PackageQuarantine. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this PackageQuarantine. + + + :param vulnerability_counts: The vulnerability_counts of this PackageQuarantine. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this PackageQuarantine. diff --git a/bindings/python/src/cloudsmith_api/models/package_quarantine_request.py b/bindings/python/src/cloudsmith_api/models/package_quarantine_request.py index fec151dd..9676669d 100644 --- a/bindings/python/src/cloudsmith_api/models/package_quarantine_request.py +++ b/bindings/python/src/cloudsmith_api/models/package_quarantine_request.py @@ -33,29 +33,62 @@ class PackageQuarantineRequest(object): and the value is json key in definition. """ swagger_types = { + 'is_malware_detected': 'bool', 'release': 'bool', - 'restore': 'bool' + 'restore': 'bool', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { + 'is_malware_detected': 'is_malware_detected', 'release': 'release', - 'restore': 'restore' + 'restore': 'restore', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, release=None, restore=None, _configuration=None): # noqa: E501 + def __init__(self, is_malware_detected=None, release=None, restore=None, vulnerability_counts=None, _configuration=None): # noqa: E501 """PackageQuarantineRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration + self._is_malware_detected = None self._release = None self._restore = None + self._vulnerability_counts = None self.discriminator = None + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected if release is not None: self.release = release if restore is not None: self.restore = restore + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts + + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this PackageQuarantineRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this PackageQuarantineRequest. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this PackageQuarantineRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this PackageQuarantineRequest. + :type: bool + """ + + self._is_malware_detected = is_malware_detected @property def release(self): @@ -103,6 +136,27 @@ def restore(self, restore): self._restore = restore + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this PackageQuarantineRequest. + + + :return: The vulnerability_counts of this PackageQuarantineRequest. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this PackageQuarantineRequest. + + + :param vulnerability_counts: The vulnerability_counts of this PackageQuarantineRequest. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/bindings/python/src/cloudsmith_api/models/package_resync.py b/bindings/python/src/cloudsmith_api/models/package_resync.py index ef9c87aa..9fd887f8 100644 --- a/bindings/python/src/cloudsmith_api/models/package_resync.py +++ b/bindings/python/src/cloudsmith_api/models/package_resync.py @@ -63,6 +63,7 @@ class PackageResync(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', + 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -107,6 +108,7 @@ class PackageResync(object): 'status_str': 'str', 'status_updated_at': 'datetime', 'status_url': 'str', + 'store_path': 'str', 'subtype': 'str', 'summary': 'str', 'sync_finished_at': 'datetime', @@ -114,12 +116,14 @@ class PackageResync(object): 'tags': 'Tags', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -154,6 +158,7 @@ class PackageResync(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', + 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -198,6 +203,7 @@ class PackageResync(object): 'status_str': 'status_str', 'status_updated_at': 'status_updated_at', 'status_url': 'status_url', + 'store_path': 'store_path', 'subtype': 'subtype', 'summary': 'summary', 'sync_finished_at': 'sync_finished_at', @@ -205,16 +211,18 @@ class PackageResync(object): 'tags': 'tags', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', + 'vulnerability_counts': 'vulnerability_counts', 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, filepath=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, filepath=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_malware_detected=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 """PackageResync - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -250,6 +258,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_deleteable = None self._is_downloadable = None self._is_hidden = None + self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -294,6 +303,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._status_str = None self._status_updated_at = None self._status_url = None + self._store_path = None self._subtype = None self._summary = None self._sync_finished_at = None @@ -301,12 +311,14 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._tags = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -370,6 +382,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -458,6 +472,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.status_updated_at = status_updated_at if status_url is not None: self.status_url = status_url + if store_path is not None: + self.store_path = store_path if subtype is not None: self.subtype = subtype if summary is not None: @@ -472,6 +488,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -484,6 +502,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.version = version if version_orig is not None: self.version_orig = version_orig + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -1146,6 +1166,29 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this PackageResync. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this PackageResync. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this PackageResync. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this PackageResync. + :type: bool + """ + + self._is_malware_detected = is_malware_detected + @property def is_moveable(self): """Gets the is_moveable of this PackageResync. @@ -2146,6 +2189,32 @@ def status_url(self, status_url): self._status_url = status_url + @property + def store_path(self): + """Gets the store_path of this PackageResync. + + Absolute store path for the package, including store hash and name. + + :return: The store_path of this PackageResync. + :rtype: str + """ + return self._store_path + + @store_path.setter + def store_path(self, store_path): + """Sets the store_path of this PackageResync. + + Absolute store path for the package, including store hash and name. + + :param store_path: The store_path of this PackageResync. + :type: str + """ + if (self._configuration.client_side_validation and + store_path is not None and len(store_path) < 1): + raise ValueError("Invalid value for `store_path`, length must be greater than or equal to `1`") # noqa: E501 + + self._store_path = store_path + @property def subtype(self): """Gets the subtype of this PackageResync. @@ -2299,6 +2368,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this PackageResync. + + 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. + + :return: The tags_static of this PackageResync. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this PackageResync. + + 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. + + :param tags_static: The tags_static of this PackageResync. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this PackageResync. @@ -2432,6 +2524,27 @@ def version_orig(self, version_orig): self._version_orig = version_orig + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this PackageResync. + + + :return: The vulnerability_counts of this PackageResync. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this PackageResync. + + + :param vulnerability_counts: The vulnerability_counts of this PackageResync. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this PackageResync. diff --git a/bindings/python/src/cloudsmith_api/models/package_tag.py b/bindings/python/src/cloudsmith_api/models/package_tag.py index d31f3c09..28655c9b 100644 --- a/bindings/python/src/cloudsmith_api/models/package_tag.py +++ b/bindings/python/src/cloudsmith_api/models/package_tag.py @@ -64,6 +64,7 @@ class PackageTag(object): 'is_downloadable': 'bool', 'is_hidden': 'bool', 'is_immutable': 'bool', + 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -108,18 +109,21 @@ class PackageTag(object): 'status_str': 'str', 'status_updated_at': 'datetime', 'status_url': 'str', + 'store_path': 'str', 'subtype': 'str', 'summary': 'str', 'sync_finished_at': 'datetime', 'sync_progress': 'int', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -155,6 +159,7 @@ class PackageTag(object): 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', 'is_immutable': 'is_immutable', + 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -199,22 +204,25 @@ class PackageTag(object): 'status_str': 'status_str', 'status_updated_at': 'status_updated_at', 'status_url': 'status_url', + 'store_path': 'store_path', 'subtype': 'subtype', 'summary': 'summary', 'sync_finished_at': 'sync_finished_at', 'sync_progress': 'sync_progress', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', + 'vulnerability_counts': 'vulnerability_counts', 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, filepath=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_immutable=False, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, filepath=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_immutable=False, is_malware_detected=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 """PackageTag - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -251,6 +259,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_downloadable = None self._is_hidden = None self._is_immutable = None + self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -295,18 +304,21 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._status_str = None self._status_updated_at = None self._status_url = None + self._store_path = None self._subtype = None self._summary = None self._sync_finished_at = None self._sync_progress = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -372,6 +384,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_hidden = is_hidden if is_immutable is not None: self.is_immutable = is_immutable + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -460,6 +474,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.status_updated_at = status_updated_at if status_url is not None: self.status_url = status_url + if store_path is not None: + self.store_path = store_path if subtype is not None: self.subtype = subtype if summary is not None: @@ -472,6 +488,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -484,6 +502,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.version = version if version_orig is not None: self.version_orig = version_orig + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -1169,6 +1189,29 @@ def is_immutable(self, is_immutable): self._is_immutable = is_immutable + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this PackageTag. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this PackageTag. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this PackageTag. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this PackageTag. + :type: bool + """ + + self._is_malware_detected = is_malware_detected + @property def is_moveable(self): """Gets the is_moveable of this PackageTag. @@ -2169,6 +2212,32 @@ def status_url(self, status_url): self._status_url = status_url + @property + def store_path(self): + """Gets the store_path of this PackageTag. + + Absolute store path for the package, including store hash and name. + + :return: The store_path of this PackageTag. + :rtype: str + """ + return self._store_path + + @store_path.setter + def store_path(self, store_path): + """Sets the store_path of this PackageTag. + + Absolute store path for the package, including store hash and name. + + :param store_path: The store_path of this PackageTag. + :type: str + """ + if (self._configuration.client_side_validation and + store_path is not None and len(store_path) < 1): + raise ValueError("Invalid value for `store_path`, length must be greater than or equal to `1`") # noqa: E501 + + self._store_path = store_path + @property def subtype(self): """Gets the subtype of this PackageTag. @@ -2301,6 +2370,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this PackageTag. + + 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. + + :return: The tags_static of this PackageTag. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this PackageTag. + + 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. + + :param tags_static: The tags_static of this PackageTag. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this PackageTag. @@ -2434,6 +2526,27 @@ def version_orig(self, version_orig): self._version_orig = version_orig + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this PackageTag. + + + :return: The vulnerability_counts of this PackageTag. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this PackageTag. + + + :param vulnerability_counts: The vulnerability_counts of this PackageTag. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this PackageTag. diff --git a/bindings/python/src/cloudsmith_api/models/package_tag_request.py b/bindings/python/src/cloudsmith_api/models/package_tag_request.py index 63cdc649..705ed09f 100644 --- a/bindings/python/src/cloudsmith_api/models/package_tag_request.py +++ b/bindings/python/src/cloudsmith_api/models/package_tag_request.py @@ -35,16 +35,20 @@ class PackageTagRequest(object): swagger_types = { 'action': 'str', 'is_immutable': 'bool', - 'tags': 'list[str]' + 'is_malware_detected': 'bool', + 'tags': 'list[str]', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { 'action': 'action', 'is_immutable': 'is_immutable', - 'tags': 'tags' + 'is_malware_detected': 'is_malware_detected', + 'tags': 'tags', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, action='Add', is_immutable=False, tags=None, _configuration=None): # noqa: E501 + def __init__(self, action='Add', is_immutable=False, is_malware_detected=None, tags=None, vulnerability_counts=None, _configuration=None): # noqa: E501 """PackageTagRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -52,15 +56,21 @@ def __init__(self, action='Add', is_immutable=False, tags=None, _configuration=N self._action = None self._is_immutable = None + self._is_malware_detected = None self._tags = None + self._vulnerability_counts = None self.discriminator = None if action is not None: self.action = action if is_immutable is not None: self.is_immutable = is_immutable + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected if tags is not None: self.tags = tags + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts @property def action(self): @@ -113,6 +123,29 @@ def is_immutable(self, is_immutable): self._is_immutable = is_immutable + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this PackageTagRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this PackageTagRequest. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this PackageTagRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this PackageTagRequest. + :type: bool + """ + + self._is_malware_detected = is_malware_detected + @property def tags(self): """Gets the tags of this PackageTagRequest. @@ -136,6 +169,27 @@ def tags(self, tags): self._tags = tags + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this PackageTagRequest. + + + :return: The vulnerability_counts of this PackageTagRequest. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this PackageTagRequest. + + + :param vulnerability_counts: The vulnerability_counts of this PackageTagRequest. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/bindings/python/src/cloudsmith_api/models/package_vulnerability.py b/bindings/python/src/cloudsmith_api/models/package_vulnerability.py index d814ac54..88faf4d3 100644 --- a/bindings/python/src/cloudsmith_api/models/package_vulnerability.py +++ b/bindings/python/src/cloudsmith_api/models/package_vulnerability.py @@ -34,37 +34,47 @@ class PackageVulnerability(object): """ swagger_types = { 'identifier': 'str', + 'is_malware_detected': 'bool', 'name': 'str', 'url': 'str', - 'version': 'str' + 'version': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { 'identifier': 'identifier', + 'is_malware_detected': 'is_malware_detected', 'name': 'name', 'url': 'url', - 'version': 'version' + 'version': 'version', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, identifier=None, name=None, url=None, version=None, _configuration=None): # noqa: E501 + def __init__(self, identifier=None, is_malware_detected=None, name=None, url=None, version=None, vulnerability_counts=None, _configuration=None): # noqa: E501 """PackageVulnerability - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration self._identifier = None + self._is_malware_detected = None self._name = None self._url = None self._version = None + self._vulnerability_counts = None self.discriminator = None self.identifier = identifier + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected if name is not None: self.name = name if url is not None: self.url = url if version is not None: self.version = version + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts @property def identifier(self): @@ -92,6 +102,29 @@ def identifier(self, identifier): self._identifier = identifier + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this PackageVulnerability. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this PackageVulnerability. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this PackageVulnerability. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this PackageVulnerability. + :type: bool + """ + + self._is_malware_detected = is_malware_detected + @property def name(self): """Gets the name of this PackageVulnerability. @@ -159,6 +192,27 @@ def version(self, version): self._version = version + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this PackageVulnerability. + + + :return: The vulnerability_counts of this PackageVulnerability. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this PackageVulnerability. + + + :param vulnerability_counts: The vulnerability_counts of this PackageVulnerability. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/bindings/python/src/cloudsmith_api/models/python_package_upload.py b/bindings/python/src/cloudsmith_api/models/python_package_upload.py index e07a305d..bfdc93f0 100644 --- a/bindings/python/src/cloudsmith_api/models/python_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/python_package_upload.py @@ -62,6 +62,7 @@ class PythonPackageUpload(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', + 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -106,18 +107,21 @@ class PythonPackageUpload(object): 'status_str': 'str', 'status_updated_at': 'datetime', 'status_url': 'str', + 'store_path': 'str', 'subtype': 'str', 'summary': 'str', 'sync_finished_at': 'datetime', 'sync_progress': 'int', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -151,6 +155,7 @@ class PythonPackageUpload(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', + 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -195,22 +200,25 @@ class PythonPackageUpload(object): 'status_str': 'status_str', 'status_updated_at': 'status_updated_at', 'status_url': 'status_url', + 'store_path': 'store_path', 'subtype': 'subtype', 'summary': 'summary', 'sync_finished_at': 'sync_finished_at', 'sync_progress': 'sync_progress', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', + 'vulnerability_counts': 'vulnerability_counts', 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_malware_detected=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 """PythonPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -245,6 +253,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_deleteable = None self._is_downloadable = None self._is_hidden = None + self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -289,18 +298,21 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._status_str = None self._status_updated_at = None self._status_url = None + self._store_path = None self._subtype = None self._summary = None self._sync_finished_at = None self._sync_progress = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -362,6 +374,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -450,6 +464,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.status_updated_at = status_updated_at if status_url is not None: self.status_url = status_url + if store_path is not None: + self.store_path = store_path if subtype is not None: self.subtype = subtype if summary is not None: @@ -462,6 +478,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -474,6 +492,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.version = version if version_orig is not None: self.version_orig = version_orig + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -1110,6 +1130,29 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this PythonPackageUpload. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this PythonPackageUpload. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this PythonPackageUpload. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this PythonPackageUpload. + :type: bool + """ + + self._is_malware_detected = is_malware_detected + @property def is_moveable(self): """Gets the is_moveable of this PythonPackageUpload. @@ -2110,6 +2153,32 @@ def status_url(self, status_url): self._status_url = status_url + @property + def store_path(self): + """Gets the store_path of this PythonPackageUpload. + + Absolute store path for the package, including store hash and name. + + :return: The store_path of this PythonPackageUpload. + :rtype: str + """ + return self._store_path + + @store_path.setter + def store_path(self, store_path): + """Sets the store_path of this PythonPackageUpload. + + Absolute store path for the package, including store hash and name. + + :param store_path: The store_path of this PythonPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + store_path is not None and len(store_path) < 1): + raise ValueError("Invalid value for `store_path`, length must be greater than or equal to `1`") # noqa: E501 + + self._store_path = store_path + @property def subtype(self): """Gets the subtype of this PythonPackageUpload. @@ -2242,6 +2311,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this PythonPackageUpload. + + 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. + + :return: The tags_static of this PythonPackageUpload. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this PythonPackageUpload. + + 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. + + :param tags_static: The tags_static of this PythonPackageUpload. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this PythonPackageUpload. @@ -2375,6 +2467,27 @@ def version_orig(self, version_orig): self._version_orig = version_orig + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this PythonPackageUpload. + + + :return: The vulnerability_counts of this PythonPackageUpload. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this PythonPackageUpload. + + + :param vulnerability_counts: The vulnerability_counts of this PythonPackageUpload. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this PythonPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/python_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/python_package_upload_request.py index 9fd386ff..45a75242 100644 --- a/bindings/python/src/cloudsmith_api/models/python_package_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/python_package_upload_request.py @@ -33,33 +33,66 @@ class PythonPackageUploadRequest(object): and the value is json key in definition. """ swagger_types = { + 'is_malware_detected': 'bool', 'package_file': 'str', 'republish': 'bool', - 'tags': 'str' + 'tags': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { + 'is_malware_detected': 'is_malware_detected', 'package_file': 'package_file', 'republish': 'republish', - 'tags': 'tags' + 'tags': 'tags', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + def __init__(self, is_malware_detected=None, package_file=None, republish=None, tags=None, vulnerability_counts=None, _configuration=None): # noqa: E501 """PythonPackageUploadRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration + self._is_malware_detected = None self._package_file = None self._republish = None self._tags = None + self._vulnerability_counts = None self.discriminator = None + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected self.package_file = package_file if republish is not None: self.republish = republish if tags is not None: self.tags = tags + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts + + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this PythonPackageUploadRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this PythonPackageUploadRequest. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this PythonPackageUploadRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this PythonPackageUploadRequest. + :type: bool + """ + + self._is_malware_detected = is_malware_detected @property def package_file(self): @@ -141,6 +174,27 @@ def tags(self, tags): self._tags = tags + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this PythonPackageUploadRequest. + + + :return: The vulnerability_counts of this PythonPackageUploadRequest. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this PythonPackageUploadRequest. + + + :param vulnerability_counts: The vulnerability_counts of this PythonPackageUploadRequest. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/bindings/python/src/cloudsmith_api/models/raw_package_upload.py b/bindings/python/src/cloudsmith_api/models/raw_package_upload.py index 35c0040e..e4b96f48 100644 --- a/bindings/python/src/cloudsmith_api/models/raw_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/raw_package_upload.py @@ -62,6 +62,7 @@ class RawPackageUpload(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', + 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -106,18 +107,21 @@ class RawPackageUpload(object): 'status_str': 'str', 'status_updated_at': 'datetime', 'status_url': 'str', + 'store_path': 'str', 'subtype': 'str', 'summary': 'str', 'sync_finished_at': 'datetime', 'sync_progress': 'int', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -151,6 +155,7 @@ class RawPackageUpload(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', + 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -195,22 +200,25 @@ class RawPackageUpload(object): 'status_str': 'status_str', 'status_updated_at': 'status_updated_at', 'status_url': 'status_url', + 'store_path': 'store_path', 'subtype': 'subtype', 'summary': 'summary', 'sync_finished_at': 'sync_finished_at', 'sync_progress': 'sync_progress', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', + 'vulnerability_counts': 'vulnerability_counts', 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_malware_detected=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 """RawPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -245,6 +253,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_deleteable = None self._is_downloadable = None self._is_hidden = None + self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -289,18 +298,21 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._status_str = None self._status_updated_at = None self._status_url = None + self._store_path = None self._subtype = None self._summary = None self._sync_finished_at = None self._sync_progress = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -362,6 +374,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -450,6 +464,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.status_updated_at = status_updated_at if status_url is not None: self.status_url = status_url + if store_path is not None: + self.store_path = store_path if subtype is not None: self.subtype = subtype if summary is not None: @@ -462,6 +478,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -474,6 +492,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.version = version if version_orig is not None: self.version_orig = version_orig + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -1113,6 +1133,29 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this RawPackageUpload. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this RawPackageUpload. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this RawPackageUpload. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this RawPackageUpload. + :type: bool + """ + + self._is_malware_detected = is_malware_detected + @property def is_moveable(self): """Gets the is_moveable of this RawPackageUpload. @@ -2116,6 +2159,32 @@ def status_url(self, status_url): self._status_url = status_url + @property + def store_path(self): + """Gets the store_path of this RawPackageUpload. + + Absolute store path for the package, including store hash and name. + + :return: The store_path of this RawPackageUpload. + :rtype: str + """ + return self._store_path + + @store_path.setter + def store_path(self, store_path): + """Sets the store_path of this RawPackageUpload. + + Absolute store path for the package, including store hash and name. + + :param store_path: The store_path of this RawPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + store_path is not None and len(store_path) < 1): + raise ValueError("Invalid value for `store_path`, length must be greater than or equal to `1`") # noqa: E501 + + self._store_path = store_path + @property def subtype(self): """Gets the subtype of this RawPackageUpload. @@ -2251,6 +2320,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this RawPackageUpload. + + 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. + + :return: The tags_static of this RawPackageUpload. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this RawPackageUpload. + + 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. + + :param tags_static: The tags_static of this RawPackageUpload. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this RawPackageUpload. @@ -2387,6 +2479,27 @@ def version_orig(self, version_orig): self._version_orig = version_orig + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this RawPackageUpload. + + + :return: The vulnerability_counts of this RawPackageUpload. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this RawPackageUpload. + + + :param vulnerability_counts: The vulnerability_counts of this RawPackageUpload. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this RawPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/raw_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/raw_package_upload_request.py index 6db64e5f..2195b0a6 100644 --- a/bindings/python/src/cloudsmith_api/models/raw_package_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/raw_package_upload_request.py @@ -35,26 +35,30 @@ class RawPackageUploadRequest(object): swagger_types = { 'content_type': 'str', 'description': 'str', + 'is_malware_detected': 'bool', 'name': 'str', 'package_file': 'str', 'republish': 'bool', 'summary': 'str', 'tags': 'str', - 'version': 'str' + 'version': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { 'content_type': 'content_type', 'description': 'description', + 'is_malware_detected': 'is_malware_detected', 'name': 'name', 'package_file': 'package_file', 'republish': 'republish', 'summary': 'summary', 'tags': 'tags', - 'version': 'version' + 'version': 'version', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, content_type=None, description=None, name=None, package_file=None, republish=None, summary=None, tags=None, version=None, _configuration=None): # noqa: E501 + def __init__(self, content_type=None, description=None, is_malware_detected=None, name=None, package_file=None, republish=None, summary=None, tags=None, version=None, vulnerability_counts=None, _configuration=None): # noqa: E501 """RawPackageUploadRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -62,18 +66,22 @@ def __init__(self, content_type=None, description=None, name=None, package_file= self._content_type = None self._description = None + self._is_malware_detected = None self._name = None self._package_file = None self._republish = None self._summary = None self._tags = None self._version = None + self._vulnerability_counts = None self.discriminator = None if content_type is not None: self.content_type = content_type if description is not None: self.description = description + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected if name is not None: self.name = name self.package_file = package_file @@ -85,6 +93,8 @@ def __init__(self, content_type=None, description=None, name=None, package_file= self.tags = tags if version is not None: self.version = version + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts @property def content_type(self): @@ -141,6 +151,29 @@ def description(self, description): self._description = description + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this RawPackageUploadRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this RawPackageUploadRequest. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this RawPackageUploadRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this RawPackageUploadRequest. + :type: bool + """ + + self._is_malware_detected = is_malware_detected + @property def name(self): """Gets the name of this RawPackageUploadRequest. @@ -299,6 +332,27 @@ def version(self, version): self._version = version + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this RawPackageUploadRequest. + + + :return: The vulnerability_counts of this RawPackageUploadRequest. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this RawPackageUploadRequest. + + + :param vulnerability_counts: The vulnerability_counts of this RawPackageUploadRequest. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/bindings/python/src/cloudsmith_api/models/recycle_bin_package.py b/bindings/python/src/cloudsmith_api/models/recycle_bin_package.py index 303e8caf..948a79e7 100644 --- a/bindings/python/src/cloudsmith_api/models/recycle_bin_package.py +++ b/bindings/python/src/cloudsmith_api/models/recycle_bin_package.py @@ -41,6 +41,7 @@ class RecycleBinPackage(object): 'identifiers': 'dict(str, str)', 'invoked_retention_rule': 'dict(str, str)', 'is_deleteable': 'bool', + 'is_malware_detected': 'bool', 'is_quarantined': 'bool', 'is_restorable': 'bool', 'name': 'str', @@ -56,7 +57,8 @@ class RecycleBinPackage(object): 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', - 'version': 'str' + 'version': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { @@ -68,6 +70,7 @@ class RecycleBinPackage(object): 'identifiers': 'identifiers', 'invoked_retention_rule': 'invoked_retention_rule', 'is_deleteable': 'is_deleteable', + 'is_malware_detected': 'is_malware_detected', 'is_quarantined': 'is_quarantined', 'is_restorable': 'is_restorable', 'name': 'name', @@ -83,10 +86,11 @@ class RecycleBinPackage(object): 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', - 'version': 'version' + 'version': 'version', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, action_by=None, downloads=None, filename=None, format=None, fully_qualified_name=None, identifiers=None, invoked_retention_rule=None, is_deleteable=None, is_quarantined=None, is_restorable=None, name=None, policy_violated=None, repository=None, security_scan_completed_at=None, security_scan_status='Awaiting Security Scan', size=None, slug_perm=None, status=None, status_updated_at=None, tags=None, type_display=None, uploaded_at=None, uploader=None, version=None, _configuration=None): # noqa: E501 + def __init__(self, action_by=None, downloads=None, filename=None, format=None, fully_qualified_name=None, identifiers=None, invoked_retention_rule=None, is_deleteable=None, is_malware_detected=None, is_quarantined=None, is_restorable=None, name=None, policy_violated=None, repository=None, security_scan_completed_at=None, security_scan_status='Awaiting Security Scan', size=None, slug_perm=None, status=None, status_updated_at=None, tags=None, type_display=None, uploaded_at=None, uploader=None, version=None, vulnerability_counts=None, _configuration=None): # noqa: E501 """RecycleBinPackage - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -100,6 +104,7 @@ def __init__(self, action_by=None, downloads=None, filename=None, format=None, f self._identifiers = None self._invoked_retention_rule = None self._is_deleteable = None + self._is_malware_detected = None self._is_quarantined = None self._is_restorable = None self._name = None @@ -116,6 +121,7 @@ def __init__(self, action_by=None, downloads=None, filename=None, format=None, f self._uploaded_at = None self._uploader = None self._version = None + self._vulnerability_counts = None self.discriminator = None if action_by is not None: @@ -134,6 +140,8 @@ def __init__(self, action_by=None, downloads=None, filename=None, format=None, f self.invoked_retention_rule = invoked_retention_rule if is_deleteable is not None: self.is_deleteable = is_deleteable + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected if is_quarantined is not None: self.is_quarantined = is_quarantined if is_restorable is not None: @@ -166,6 +174,8 @@ def __init__(self, action_by=None, downloads=None, filename=None, format=None, f self.uploader = uploader if version is not None: self.version = version + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts @property def action_by(self): @@ -353,6 +363,29 @@ def is_deleteable(self, is_deleteable): self._is_deleteable = is_deleteable + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this RecycleBinPackage. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this RecycleBinPackage. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this RecycleBinPackage. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this RecycleBinPackage. + :type: bool + """ + + self._is_malware_detected = is_malware_detected + @property def is_quarantined(self): """Gets the is_quarantined of this RecycleBinPackage. @@ -724,6 +757,27 @@ def version(self, version): self._version = version + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this RecycleBinPackage. + + + :return: The vulnerability_counts of this RecycleBinPackage. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this RecycleBinPackage. + + + :param vulnerability_counts: The vulnerability_counts of this RecycleBinPackage. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/bindings/python/src/cloudsmith_api/models/rpm_package_upload.py b/bindings/python/src/cloudsmith_api/models/rpm_package_upload.py index 3f3500e1..c0538938 100644 --- a/bindings/python/src/cloudsmith_api/models/rpm_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/rpm_package_upload.py @@ -62,6 +62,7 @@ class RpmPackageUpload(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', + 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -106,18 +107,21 @@ class RpmPackageUpload(object): 'status_str': 'str', 'status_updated_at': 'datetime', 'status_url': 'str', + 'store_path': 'str', 'subtype': 'str', 'summary': 'str', 'sync_finished_at': 'datetime', 'sync_progress': 'int', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -151,6 +155,7 @@ class RpmPackageUpload(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', + 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -195,22 +200,25 @@ class RpmPackageUpload(object): 'status_str': 'status_str', 'status_updated_at': 'status_updated_at', 'status_url': 'status_url', + 'store_path': 'store_path', 'subtype': 'subtype', 'summary': 'summary', 'sync_finished_at': 'sync_finished_at', 'sync_progress': 'sync_progress', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', + 'vulnerability_counts': 'vulnerability_counts', 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_malware_detected=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 """RpmPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -245,6 +253,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_deleteable = None self._is_downloadable = None self._is_hidden = None + self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -289,18 +298,21 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._status_str = None self._status_updated_at = None self._status_url = None + self._store_path = None self._subtype = None self._summary = None self._sync_finished_at = None self._sync_progress = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -362,6 +374,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -450,6 +464,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.status_updated_at = status_updated_at if status_url is not None: self.status_url = status_url + if store_path is not None: + self.store_path = store_path if subtype is not None: self.subtype = subtype if summary is not None: @@ -462,6 +478,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -474,6 +492,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.version = version if version_orig is not None: self.version_orig = version_orig + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -1110,6 +1130,29 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this RpmPackageUpload. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this RpmPackageUpload. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this RpmPackageUpload. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this RpmPackageUpload. + :type: bool + """ + + self._is_malware_detected = is_malware_detected + @property def is_moveable(self): """Gets the is_moveable of this RpmPackageUpload. @@ -2110,6 +2153,32 @@ def status_url(self, status_url): self._status_url = status_url + @property + def store_path(self): + """Gets the store_path of this RpmPackageUpload. + + Absolute store path for the package, including store hash and name. + + :return: The store_path of this RpmPackageUpload. + :rtype: str + """ + return self._store_path + + @store_path.setter + def store_path(self, store_path): + """Sets the store_path of this RpmPackageUpload. + + Absolute store path for the package, including store hash and name. + + :param store_path: The store_path of this RpmPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + store_path is not None and len(store_path) < 1): + raise ValueError("Invalid value for `store_path`, length must be greater than or equal to `1`") # noqa: E501 + + self._store_path = store_path + @property def subtype(self): """Gets the subtype of this RpmPackageUpload. @@ -2242,6 +2311,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this RpmPackageUpload. + + 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. + + :return: The tags_static of this RpmPackageUpload. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this RpmPackageUpload. + + 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. + + :param tags_static: The tags_static of this RpmPackageUpload. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this RpmPackageUpload. @@ -2375,6 +2467,27 @@ def version_orig(self, version_orig): self._version_orig = version_orig + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this RpmPackageUpload. + + + :return: The vulnerability_counts of this RpmPackageUpload. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this RpmPackageUpload. + + + :param vulnerability_counts: The vulnerability_counts of this RpmPackageUpload. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this RpmPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/rpm_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/rpm_package_upload_request.py index 5099752f..e935c911 100644 --- a/bindings/python/src/cloudsmith_api/models/rpm_package_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/rpm_package_upload_request.py @@ -34,36 +34,46 @@ class RpmPackageUploadRequest(object): """ swagger_types = { 'distribution': 'str', + 'is_malware_detected': 'bool', 'package_file': 'str', 'republish': 'bool', - 'tags': 'str' + 'tags': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { 'distribution': 'distribution', + 'is_malware_detected': 'is_malware_detected', 'package_file': 'package_file', 'republish': 'republish', - 'tags': 'tags' + 'tags': 'tags', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, distribution=None, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + def __init__(self, distribution=None, is_malware_detected=None, package_file=None, republish=None, tags=None, vulnerability_counts=None, _configuration=None): # noqa: E501 """RpmPackageUploadRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration self._distribution = None + self._is_malware_detected = None self._package_file = None self._republish = None self._tags = None + self._vulnerability_counts = None self.discriminator = None self.distribution = distribution + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected self.package_file = package_file if republish is not None: self.republish = republish if tags is not None: self.tags = tags + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts @property def distribution(self): @@ -93,6 +103,29 @@ def distribution(self, distribution): self._distribution = distribution + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this RpmPackageUploadRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this RpmPackageUploadRequest. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this RpmPackageUploadRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this RpmPackageUploadRequest. + :type: bool + """ + + self._is_malware_detected = is_malware_detected + @property def package_file(self): """Gets the package_file of this RpmPackageUploadRequest. @@ -173,6 +206,27 @@ def tags(self, tags): self._tags = tags + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this RpmPackageUploadRequest. + + + :return: The vulnerability_counts of this RpmPackageUploadRequest. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this RpmPackageUploadRequest. + + + :param vulnerability_counts: The vulnerability_counts of this RpmPackageUploadRequest. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/bindings/python/src/cloudsmith_api/models/ruby_package_upload.py b/bindings/python/src/cloudsmith_api/models/ruby_package_upload.py index 3c1b6058..97a1862f 100644 --- a/bindings/python/src/cloudsmith_api/models/ruby_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/ruby_package_upload.py @@ -62,6 +62,7 @@ class RubyPackageUpload(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', + 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -106,18 +107,21 @@ class RubyPackageUpload(object): 'status_str': 'str', 'status_updated_at': 'datetime', 'status_url': 'str', + 'store_path': 'str', 'subtype': 'str', 'summary': 'str', 'sync_finished_at': 'datetime', 'sync_progress': 'int', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -151,6 +155,7 @@ class RubyPackageUpload(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', + 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -195,22 +200,25 @@ class RubyPackageUpload(object): 'status_str': 'status_str', 'status_updated_at': 'status_updated_at', 'status_url': 'status_url', + 'store_path': 'store_path', 'subtype': 'subtype', 'summary': 'summary', 'sync_finished_at': 'sync_finished_at', 'sync_progress': 'sync_progress', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', + 'vulnerability_counts': 'vulnerability_counts', 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_malware_detected=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 """RubyPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -245,6 +253,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_deleteable = None self._is_downloadable = None self._is_hidden = None + self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -289,18 +298,21 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._status_str = None self._status_updated_at = None self._status_url = None + self._store_path = None self._subtype = None self._summary = None self._sync_finished_at = None self._sync_progress = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -362,6 +374,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -450,6 +464,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.status_updated_at = status_updated_at if status_url is not None: self.status_url = status_url + if store_path is not None: + self.store_path = store_path if subtype is not None: self.subtype = subtype if summary is not None: @@ -462,6 +478,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -474,6 +492,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.version = version if version_orig is not None: self.version_orig = version_orig + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -1110,6 +1130,29 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this RubyPackageUpload. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this RubyPackageUpload. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this RubyPackageUpload. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this RubyPackageUpload. + :type: bool + """ + + self._is_malware_detected = is_malware_detected + @property def is_moveable(self): """Gets the is_moveable of this RubyPackageUpload. @@ -2110,6 +2153,32 @@ def status_url(self, status_url): self._status_url = status_url + @property + def store_path(self): + """Gets the store_path of this RubyPackageUpload. + + Absolute store path for the package, including store hash and name. + + :return: The store_path of this RubyPackageUpload. + :rtype: str + """ + return self._store_path + + @store_path.setter + def store_path(self, store_path): + """Sets the store_path of this RubyPackageUpload. + + Absolute store path for the package, including store hash and name. + + :param store_path: The store_path of this RubyPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + store_path is not None and len(store_path) < 1): + raise ValueError("Invalid value for `store_path`, length must be greater than or equal to `1`") # noqa: E501 + + self._store_path = store_path + @property def subtype(self): """Gets the subtype of this RubyPackageUpload. @@ -2242,6 +2311,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this RubyPackageUpload. + + 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. + + :return: The tags_static of this RubyPackageUpload. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this RubyPackageUpload. + + 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. + + :param tags_static: The tags_static of this RubyPackageUpload. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this RubyPackageUpload. @@ -2375,6 +2467,27 @@ def version_orig(self, version_orig): self._version_orig = version_orig + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this RubyPackageUpload. + + + :return: The vulnerability_counts of this RubyPackageUpload. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this RubyPackageUpload. + + + :param vulnerability_counts: The vulnerability_counts of this RubyPackageUpload. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this RubyPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/ruby_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/ruby_package_upload_request.py index 61ff70ce..9de94e2f 100644 --- a/bindings/python/src/cloudsmith_api/models/ruby_package_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/ruby_package_upload_request.py @@ -33,33 +33,66 @@ class RubyPackageUploadRequest(object): and the value is json key in definition. """ swagger_types = { + 'is_malware_detected': 'bool', 'package_file': 'str', 'republish': 'bool', - 'tags': 'str' + 'tags': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { + 'is_malware_detected': 'is_malware_detected', 'package_file': 'package_file', 'republish': 'republish', - 'tags': 'tags' + 'tags': 'tags', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + def __init__(self, is_malware_detected=None, package_file=None, republish=None, tags=None, vulnerability_counts=None, _configuration=None): # noqa: E501 """RubyPackageUploadRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration + self._is_malware_detected = None self._package_file = None self._republish = None self._tags = None + self._vulnerability_counts = None self.discriminator = None + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected self.package_file = package_file if republish is not None: self.republish = republish if tags is not None: self.tags = tags + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts + + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this RubyPackageUploadRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this RubyPackageUploadRequest. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this RubyPackageUploadRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this RubyPackageUploadRequest. + :type: bool + """ + + self._is_malware_detected = is_malware_detected @property def package_file(self): @@ -141,6 +174,27 @@ def tags(self, tags): self._tags = tags + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this RubyPackageUploadRequest. + + + :return: The vulnerability_counts of this RubyPackageUploadRequest. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this RubyPackageUploadRequest. + + + :param vulnerability_counts: The vulnerability_counts of this RubyPackageUploadRequest. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/bindings/python/src/cloudsmith_api/models/swift_package_upload.py b/bindings/python/src/cloudsmith_api/models/swift_package_upload.py index b56138f6..d7573e23 100644 --- a/bindings/python/src/cloudsmith_api/models/swift_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/swift_package_upload.py @@ -64,6 +64,7 @@ class SwiftPackageUpload(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', + 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -111,18 +112,21 @@ class SwiftPackageUpload(object): 'status_str': 'str', 'status_updated_at': 'datetime', 'status_url': 'str', + 'store_path': 'str', 'subtype': 'str', 'summary': 'str', 'sync_finished_at': 'datetime', 'sync_progress': 'int', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -158,6 +162,7 @@ class SwiftPackageUpload(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', + 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -205,22 +210,25 @@ class SwiftPackageUpload(object): 'status_str': 'status_str', 'status_updated_at': 'status_updated_at', 'status_url': 'status_url', + 'store_path': 'store_path', 'subtype': 'subtype', 'summary': 'summary', 'sync_finished_at': 'sync_finished_at', 'sync_progress': 'sync_progress', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', + 'vulnerability_counts': 'vulnerability_counts', 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, author_name=None, author_org=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, license_url=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, readme_url=None, release=None, repository=None, repository_url=None, scope=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + def __init__(self, architectures=None, author_name=None, author_org=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_malware_detected=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, license_url=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, readme_url=None, release=None, repository=None, repository_url=None, scope=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 """SwiftPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -257,6 +265,7 @@ def __init__(self, architectures=None, author_name=None, author_org=None, cdn_ur self._is_deleteable = None self._is_downloadable = None self._is_hidden = None + self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -304,18 +313,21 @@ def __init__(self, architectures=None, author_name=None, author_org=None, cdn_ur self._status_str = None self._status_updated_at = None self._status_url = None + self._store_path = None self._subtype = None self._summary = None self._sync_finished_at = None self._sync_progress = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -381,6 +393,8 @@ def __init__(self, architectures=None, author_name=None, author_org=None, cdn_ur self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -473,6 +487,8 @@ def __init__(self, architectures=None, author_name=None, author_org=None, cdn_ur self.status_updated_at = status_updated_at if status_url is not None: self.status_url = status_url + if store_path is not None: + self.store_path = store_path if subtype is not None: self.subtype = subtype if summary is not None: @@ -485,6 +501,8 @@ def __init__(self, architectures=None, author_name=None, author_org=None, cdn_ur self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -496,6 +514,8 @@ def __init__(self, architectures=None, author_name=None, author_org=None, cdn_ur self.version = version if version_orig is not None: self.version_orig = version_orig + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -1184,6 +1204,29 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this SwiftPackageUpload. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this SwiftPackageUpload. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this SwiftPackageUpload. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this SwiftPackageUpload. + :type: bool + """ + + self._is_malware_detected = is_malware_detected + @property def is_moveable(self): """Gets the is_moveable of this SwiftPackageUpload. @@ -2277,6 +2320,32 @@ def status_url(self, status_url): self._status_url = status_url + @property + def store_path(self): + """Gets the store_path of this SwiftPackageUpload. + + Absolute store path for the package, including store hash and name. + + :return: The store_path of this SwiftPackageUpload. + :rtype: str + """ + return self._store_path + + @store_path.setter + def store_path(self, store_path): + """Sets the store_path of this SwiftPackageUpload. + + Absolute store path for the package, including store hash and name. + + :param store_path: The store_path of this SwiftPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + store_path is not None and len(store_path) < 1): + raise ValueError("Invalid value for `store_path`, length must be greater than or equal to `1`") # noqa: E501 + + self._store_path = store_path + @property def subtype(self): """Gets the subtype of this SwiftPackageUpload. @@ -2409,6 +2478,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this SwiftPackageUpload. + + 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. + + :return: The tags_static of this SwiftPackageUpload. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this SwiftPackageUpload. + + 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. + + :param tags_static: The tags_static of this SwiftPackageUpload. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this SwiftPackageUpload. @@ -2547,6 +2639,27 @@ def version_orig(self, version_orig): self._version_orig = version_orig + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this SwiftPackageUpload. + + + :return: The vulnerability_counts of this SwiftPackageUpload. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this SwiftPackageUpload. + + + :param vulnerability_counts: The vulnerability_counts of this SwiftPackageUpload. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this SwiftPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/swift_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/swift_package_upload_request.py index d5f14ff3..fb43009c 100644 --- a/bindings/python/src/cloudsmith_api/models/swift_package_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/swift_package_upload_request.py @@ -35,6 +35,7 @@ class SwiftPackageUploadRequest(object): swagger_types = { 'author_name': 'str', 'author_org': 'str', + 'is_malware_detected': 'bool', 'license_url': 'str', 'name': 'str', 'package_file': 'str', @@ -43,12 +44,14 @@ class SwiftPackageUploadRequest(object): 'republish': 'bool', 'scope': 'str', 'tags': 'str', - 'version': 'str' + 'version': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { 'author_name': 'author_name', 'author_org': 'author_org', + 'is_malware_detected': 'is_malware_detected', 'license_url': 'license_url', 'name': 'name', 'package_file': 'package_file', @@ -57,10 +60,11 @@ class SwiftPackageUploadRequest(object): 'republish': 'republish', 'scope': 'scope', 'tags': 'tags', - 'version': 'version' + 'version': 'version', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, author_name=None, author_org=None, license_url=None, name=None, package_file=None, readme_url=None, repository_url=None, republish=None, scope=None, tags=None, version=None, _configuration=None): # noqa: E501 + def __init__(self, author_name=None, author_org=None, is_malware_detected=None, license_url=None, name=None, package_file=None, readme_url=None, repository_url=None, republish=None, scope=None, tags=None, version=None, vulnerability_counts=None, _configuration=None): # noqa: E501 """SwiftPackageUploadRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -68,6 +72,7 @@ def __init__(self, author_name=None, author_org=None, license_url=None, name=Non self._author_name = None self._author_org = None + self._is_malware_detected = None self._license_url = None self._name = None self._package_file = None @@ -77,12 +82,15 @@ def __init__(self, author_name=None, author_org=None, license_url=None, name=Non self._scope = None self._tags = None self._version = None + self._vulnerability_counts = None self.discriminator = None if author_name is not None: self.author_name = author_name if author_org is not None: self.author_org = author_org + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected if license_url is not None: self.license_url = license_url self.name = name @@ -97,6 +105,8 @@ def __init__(self, author_name=None, author_org=None, license_url=None, name=Non if tags is not None: self.tags = tags self.version = version + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts @property def author_name(self): @@ -150,6 +160,29 @@ def author_org(self, author_org): self._author_org = author_org + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this SwiftPackageUploadRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this SwiftPackageUploadRequest. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this SwiftPackageUploadRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this SwiftPackageUploadRequest. + :type: bool + """ + + self._is_malware_detected = is_malware_detected + @property def license_url(self): """Gets the license_url of this SwiftPackageUploadRequest. @@ -395,6 +428,27 @@ def version(self, version): self._version = version + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this SwiftPackageUploadRequest. + + + :return: The vulnerability_counts of this SwiftPackageUploadRequest. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this SwiftPackageUploadRequest. + + + :param vulnerability_counts: The vulnerability_counts of this SwiftPackageUploadRequest. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/bindings/python/src/cloudsmith_api/models/terraform_package_upload.py b/bindings/python/src/cloudsmith_api/models/terraform_package_upload.py index 8cb5e1df..cad9603b 100644 --- a/bindings/python/src/cloudsmith_api/models/terraform_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/terraform_package_upload.py @@ -62,6 +62,7 @@ class TerraformPackageUpload(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', + 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -106,18 +107,21 @@ class TerraformPackageUpload(object): 'status_str': 'str', 'status_updated_at': 'datetime', 'status_url': 'str', + 'store_path': 'str', 'subtype': 'str', 'summary': 'str', 'sync_finished_at': 'datetime', 'sync_progress': 'int', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -151,6 +155,7 @@ class TerraformPackageUpload(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', + 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -195,22 +200,25 @@ class TerraformPackageUpload(object): 'status_str': 'status_str', 'status_updated_at': 'status_updated_at', 'status_url': 'status_url', + 'store_path': 'store_path', 'subtype': 'subtype', 'summary': 'summary', 'sync_finished_at': 'sync_finished_at', 'sync_progress': 'sync_progress', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', + 'vulnerability_counts': 'vulnerability_counts', 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_malware_detected=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 """TerraformPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -245,6 +253,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_deleteable = None self._is_downloadable = None self._is_hidden = None + self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -289,18 +298,21 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._status_str = None self._status_updated_at = None self._status_url = None + self._store_path = None self._subtype = None self._summary = None self._sync_finished_at = None self._sync_progress = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -362,6 +374,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -450,6 +464,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.status_updated_at = status_updated_at if status_url is not None: self.status_url = status_url + if store_path is not None: + self.store_path = store_path if subtype is not None: self.subtype = subtype if summary is not None: @@ -462,6 +478,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -474,6 +492,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.version = version if version_orig is not None: self.version_orig = version_orig + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -1110,6 +1130,29 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this TerraformPackageUpload. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this TerraformPackageUpload. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this TerraformPackageUpload. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this TerraformPackageUpload. + :type: bool + """ + + self._is_malware_detected = is_malware_detected + @property def is_moveable(self): """Gets the is_moveable of this TerraformPackageUpload. @@ -2110,6 +2153,32 @@ def status_url(self, status_url): self._status_url = status_url + @property + def store_path(self): + """Gets the store_path of this TerraformPackageUpload. + + Absolute store path for the package, including store hash and name. + + :return: The store_path of this TerraformPackageUpload. + :rtype: str + """ + return self._store_path + + @store_path.setter + def store_path(self, store_path): + """Sets the store_path of this TerraformPackageUpload. + + Absolute store path for the package, including store hash and name. + + :param store_path: The store_path of this TerraformPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + store_path is not None and len(store_path) < 1): + raise ValueError("Invalid value for `store_path`, length must be greater than or equal to `1`") # noqa: E501 + + self._store_path = store_path + @property def subtype(self): """Gets the subtype of this TerraformPackageUpload. @@ -2242,6 +2311,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this TerraformPackageUpload. + + 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. + + :return: The tags_static of this TerraformPackageUpload. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this TerraformPackageUpload. + + 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. + + :param tags_static: The tags_static of this TerraformPackageUpload. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this TerraformPackageUpload. @@ -2375,6 +2467,27 @@ def version_orig(self, version_orig): self._version_orig = version_orig + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this TerraformPackageUpload. + + + :return: The vulnerability_counts of this TerraformPackageUpload. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this TerraformPackageUpload. + + + :param vulnerability_counts: The vulnerability_counts of this TerraformPackageUpload. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this TerraformPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/terraform_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/terraform_package_upload_request.py index 030f5659..0c9892de 100644 --- a/bindings/python/src/cloudsmith_api/models/terraform_package_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/terraform_package_upload_request.py @@ -33,33 +33,66 @@ class TerraformPackageUploadRequest(object): and the value is json key in definition. """ swagger_types = { + 'is_malware_detected': 'bool', 'package_file': 'str', 'republish': 'bool', - 'tags': 'str' + 'tags': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { + 'is_malware_detected': 'is_malware_detected', 'package_file': 'package_file', 'republish': 'republish', - 'tags': 'tags' + 'tags': 'tags', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + def __init__(self, is_malware_detected=None, package_file=None, republish=None, tags=None, vulnerability_counts=None, _configuration=None): # noqa: E501 """TerraformPackageUploadRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration + self._is_malware_detected = None self._package_file = None self._republish = None self._tags = None + self._vulnerability_counts = None self.discriminator = None + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected self.package_file = package_file if republish is not None: self.republish = republish if tags is not None: self.tags = tags + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts + + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this TerraformPackageUploadRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this TerraformPackageUploadRequest. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this TerraformPackageUploadRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this TerraformPackageUploadRequest. + :type: bool + """ + + self._is_malware_detected = is_malware_detected @property def package_file(self): @@ -141,6 +174,27 @@ def tags(self, tags): self._tags = tags + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this TerraformPackageUploadRequest. + + + :return: The vulnerability_counts of this TerraformPackageUploadRequest. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this TerraformPackageUploadRequest. + + + :param vulnerability_counts: The vulnerability_counts of this TerraformPackageUploadRequest. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/bindings/python/src/cloudsmith_api/models/vagrant_package_upload.py b/bindings/python/src/cloudsmith_api/models/vagrant_package_upload.py index 68807bdc..4f7b4e15 100644 --- a/bindings/python/src/cloudsmith_api/models/vagrant_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/vagrant_package_upload.py @@ -62,6 +62,7 @@ class VagrantPackageUpload(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', + 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -107,18 +108,21 @@ class VagrantPackageUpload(object): 'status_str': 'str', 'status_updated_at': 'datetime', 'status_url': 'str', + 'store_path': 'str', 'subtype': 'str', 'summary': 'str', 'sync_finished_at': 'datetime', 'sync_progress': 'int', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -152,6 +156,7 @@ class VagrantPackageUpload(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', + 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -197,22 +202,25 @@ class VagrantPackageUpload(object): 'status_str': 'status_str', 'status_updated_at': 'status_updated_at', 'status_url': 'status_url', + 'store_path': 'store_path', 'subtype': 'subtype', 'summary': 'summary', 'sync_finished_at': 'sync_finished_at', 'sync_progress': 'sync_progress', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', + 'vulnerability_counts': 'vulnerability_counts', 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, provider=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_malware_detected=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, provider=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 """VagrantPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -247,6 +255,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_deleteable = None self._is_downloadable = None self._is_hidden = None + self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -292,18 +301,21 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._status_str = None self._status_updated_at = None self._status_url = None + self._store_path = None self._subtype = None self._summary = None self._sync_finished_at = None self._sync_progress = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -365,6 +377,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -453,6 +467,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.status_updated_at = status_updated_at if status_url is not None: self.status_url = status_url + if store_path is not None: + self.store_path = store_path if subtype is not None: self.subtype = subtype if summary is not None: @@ -465,6 +481,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -476,6 +494,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.version = version if version_orig is not None: self.version_orig = version_orig + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -1112,6 +1132,29 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this VagrantPackageUpload. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this VagrantPackageUpload. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this VagrantPackageUpload. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this VagrantPackageUpload. + :type: bool + """ + + self._is_malware_detected = is_malware_detected + @property def is_moveable(self): """Gets the is_moveable of this VagrantPackageUpload. @@ -2145,6 +2188,32 @@ def status_url(self, status_url): self._status_url = status_url + @property + def store_path(self): + """Gets the store_path of this VagrantPackageUpload. + + Absolute store path for the package, including store hash and name. + + :return: The store_path of this VagrantPackageUpload. + :rtype: str + """ + return self._store_path + + @store_path.setter + def store_path(self, store_path): + """Sets the store_path of this VagrantPackageUpload. + + Absolute store path for the package, including store hash and name. + + :param store_path: The store_path of this VagrantPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + store_path is not None and len(store_path) < 1): + raise ValueError("Invalid value for `store_path`, length must be greater than or equal to `1`") # noqa: E501 + + self._store_path = store_path + @property def subtype(self): """Gets the subtype of this VagrantPackageUpload. @@ -2277,6 +2346,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this VagrantPackageUpload. + + 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. + + :return: The tags_static of this VagrantPackageUpload. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this VagrantPackageUpload. + + 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. + + :param tags_static: The tags_static of this VagrantPackageUpload. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this VagrantPackageUpload. @@ -2415,6 +2507,27 @@ def version_orig(self, version_orig): self._version_orig = version_orig + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this VagrantPackageUpload. + + + :return: The vulnerability_counts of this VagrantPackageUpload. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this VagrantPackageUpload. + + + :param vulnerability_counts: The vulnerability_counts of this VagrantPackageUpload. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this VagrantPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/vagrant_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/vagrant_package_upload_request.py index 9f10044e..0ba08964 100644 --- a/bindings/python/src/cloudsmith_api/models/vagrant_package_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/vagrant_package_upload_request.py @@ -33,37 +33,45 @@ class VagrantPackageUploadRequest(object): and the value is json key in definition. """ swagger_types = { + 'is_malware_detected': 'bool', 'name': 'str', 'package_file': 'str', 'provider': 'str', 'republish': 'bool', 'tags': 'str', - 'version': 'str' + 'version': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { + 'is_malware_detected': 'is_malware_detected', 'name': 'name', 'package_file': 'package_file', 'provider': 'provider', 'republish': 'republish', 'tags': 'tags', - 'version': 'version' + 'version': 'version', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, name=None, package_file=None, provider=None, republish=None, tags=None, version=None, _configuration=None): # noqa: E501 + def __init__(self, is_malware_detected=None, name=None, package_file=None, provider=None, republish=None, tags=None, version=None, vulnerability_counts=None, _configuration=None): # noqa: E501 """VagrantPackageUploadRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration + self._is_malware_detected = None self._name = None self._package_file = None self._provider = None self._republish = None self._tags = None self._version = None + self._vulnerability_counts = None self.discriminator = None + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected self.name = name self.package_file = package_file self.provider = provider @@ -72,6 +80,31 @@ def __init__(self, name=None, package_file=None, provider=None, republish=None, if tags is not None: self.tags = tags self.version = version + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts + + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this VagrantPackageUploadRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this VagrantPackageUploadRequest. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this VagrantPackageUploadRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this VagrantPackageUploadRequest. + :type: bool + """ + + self._is_malware_detected = is_malware_detected @property def name(self): @@ -237,6 +270,27 @@ def version(self, version): self._version = version + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this VagrantPackageUploadRequest. + + + :return: The vulnerability_counts of this VagrantPackageUploadRequest. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this VagrantPackageUploadRequest. + + + :param vulnerability_counts: The vulnerability_counts of this VagrantPackageUploadRequest. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/bindings/python/src/cloudsmith_api/models/vsx_package_upload.py b/bindings/python/src/cloudsmith_api/models/vsx_package_upload.py index 1b0e7eb0..3ee25901 100644 --- a/bindings/python/src/cloudsmith_api/models/vsx_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/vsx_package_upload.py @@ -62,6 +62,7 @@ class VsxPackageUpload(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', + 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -106,18 +107,21 @@ class VsxPackageUpload(object): 'status_str': 'str', 'status_updated_at': 'datetime', 'status_url': 'str', + 'store_path': 'str', 'subtype': 'str', 'summary': 'str', 'sync_finished_at': 'datetime', 'sync_progress': 'int', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -151,6 +155,7 @@ class VsxPackageUpload(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', + 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -195,22 +200,25 @@ class VsxPackageUpload(object): 'status_str': 'status_str', 'status_updated_at': 'status_updated_at', 'status_url': 'status_url', + 'store_path': 'store_path', 'subtype': 'subtype', 'summary': 'summary', 'sync_finished_at': 'sync_finished_at', 'sync_progress': 'sync_progress', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', + 'vulnerability_counts': 'vulnerability_counts', 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_malware_detected=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 """VsxPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -245,6 +253,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_deleteable = None self._is_downloadable = None self._is_hidden = None + self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -289,18 +298,21 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._status_str = None self._status_updated_at = None self._status_url = None + self._store_path = None self._subtype = None self._summary = None self._sync_finished_at = None self._sync_progress = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -362,6 +374,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -450,6 +464,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.status_updated_at = status_updated_at if status_url is not None: self.status_url = status_url + if store_path is not None: + self.store_path = store_path if subtype is not None: self.subtype = subtype if summary is not None: @@ -462,6 +478,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -474,6 +492,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.version = version if version_orig is not None: self.version_orig = version_orig + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -1110,6 +1130,29 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this VsxPackageUpload. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this VsxPackageUpload. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this VsxPackageUpload. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this VsxPackageUpload. + :type: bool + """ + + self._is_malware_detected = is_malware_detected + @property def is_moveable(self): """Gets the is_moveable of this VsxPackageUpload. @@ -2110,6 +2153,32 @@ def status_url(self, status_url): self._status_url = status_url + @property + def store_path(self): + """Gets the store_path of this VsxPackageUpload. + + Absolute store path for the package, including store hash and name. + + :return: The store_path of this VsxPackageUpload. + :rtype: str + """ + return self._store_path + + @store_path.setter + def store_path(self, store_path): + """Sets the store_path of this VsxPackageUpload. + + Absolute store path for the package, including store hash and name. + + :param store_path: The store_path of this VsxPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + store_path is not None and len(store_path) < 1): + raise ValueError("Invalid value for `store_path`, length must be greater than or equal to `1`") # noqa: E501 + + self._store_path = store_path + @property def subtype(self): """Gets the subtype of this VsxPackageUpload. @@ -2242,6 +2311,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this VsxPackageUpload. + + 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. + + :return: The tags_static of this VsxPackageUpload. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this VsxPackageUpload. + + 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. + + :param tags_static: The tags_static of this VsxPackageUpload. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this VsxPackageUpload. @@ -2375,6 +2467,27 @@ def version_orig(self, version_orig): self._version_orig = version_orig + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this VsxPackageUpload. + + + :return: The vulnerability_counts of this VsxPackageUpload. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this VsxPackageUpload. + + + :param vulnerability_counts: The vulnerability_counts of this VsxPackageUpload. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this VsxPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/vsx_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/vsx_package_upload_request.py index d610fbec..2b54b606 100644 --- a/bindings/python/src/cloudsmith_api/models/vsx_package_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/vsx_package_upload_request.py @@ -33,33 +33,66 @@ class VsxPackageUploadRequest(object): and the value is json key in definition. """ swagger_types = { + 'is_malware_detected': 'bool', 'package_file': 'str', 'republish': 'bool', - 'tags': 'str' + 'tags': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { + 'is_malware_detected': 'is_malware_detected', 'package_file': 'package_file', 'republish': 'republish', - 'tags': 'tags' + 'tags': 'tags', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + def __init__(self, is_malware_detected=None, package_file=None, republish=None, tags=None, vulnerability_counts=None, _configuration=None): # noqa: E501 """VsxPackageUploadRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration + self._is_malware_detected = None self._package_file = None self._republish = None self._tags = None + self._vulnerability_counts = None self.discriminator = None + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected self.package_file = package_file if republish is not None: self.republish = republish if tags is not None: self.tags = tags + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts + + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this VsxPackageUploadRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this VsxPackageUploadRequest. + :rtype: bool + """ + return self._is_malware_detected + + @is_malware_detected.setter + def is_malware_detected(self, is_malware_detected): + """Sets the is_malware_detected of this VsxPackageUploadRequest. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this VsxPackageUploadRequest. + :type: bool + """ + + self._is_malware_detected = is_malware_detected @property def package_file(self): @@ -141,6 +174,27 @@ def tags(self, tags): self._tags = tags + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this VsxPackageUploadRequest. + + + :return: The vulnerability_counts of this VsxPackageUploadRequest. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this VsxPackageUploadRequest. + + + :param vulnerability_counts: The vulnerability_counts of this VsxPackageUploadRequest. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/bindings/python/src/cloudsmith_api/models/web_osv_severity_counts.py b/bindings/python/src/cloudsmith_api/models/web_osv_severity_counts.py new file mode 100644 index 00000000..94855662 --- /dev/null +++ b/bindings/python/src/cloudsmith_api/models/web_osv_severity_counts.py @@ -0,0 +1,280 @@ +# coding: utf-8 + +""" + Cloudsmith API (v1) + + The API to the Cloudsmith Service # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudsmith.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration + + +class WebOSVSeverityCounts(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'critical': 'int', + 'high': 'int', + 'low': 'int', + 'malware': 'int', + 'medium': 'int', + 'total': 'int', + 'unknown': 'int' + } + + attribute_map = { + 'critical': 'critical', + 'high': 'high', + 'low': 'low', + 'malware': 'malware', + 'medium': 'medium', + 'total': 'total', + 'unknown': 'unknown' + } + + def __init__(self, critical=None, high=None, low=None, malware=None, medium=None, total=None, unknown=None, _configuration=None): # noqa: E501 + """WebOSVSeverityCounts - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._critical = None + self._high = None + self._low = None + self._malware = None + self._medium = None + self._total = None + self._unknown = None + self.discriminator = None + + if critical is not None: + self.critical = critical + if high is not None: + self.high = high + if low is not None: + self.low = low + if malware is not None: + self.malware = malware + if medium is not None: + self.medium = medium + if total is not None: + self.total = total + if unknown is not None: + self.unknown = unknown + + @property + def critical(self): + """Gets the critical of this WebOSVSeverityCounts. + + + :return: The critical of this WebOSVSeverityCounts. + :rtype: int + """ + return self._critical + + @critical.setter + def critical(self, critical): + """Sets the critical of this WebOSVSeverityCounts. + + + :param critical: The critical of this WebOSVSeverityCounts. + :type: int + """ + + self._critical = critical + + @property + def high(self): + """Gets the high of this WebOSVSeverityCounts. + + + :return: The high of this WebOSVSeverityCounts. + :rtype: int + """ + return self._high + + @high.setter + def high(self, high): + """Sets the high of this WebOSVSeverityCounts. + + + :param high: The high of this WebOSVSeverityCounts. + :type: int + """ + + self._high = high + + @property + def low(self): + """Gets the low of this WebOSVSeverityCounts. + + + :return: The low of this WebOSVSeverityCounts. + :rtype: int + """ + return self._low + + @low.setter + def low(self, low): + """Sets the low of this WebOSVSeverityCounts. + + + :param low: The low of this WebOSVSeverityCounts. + :type: int + """ + + self._low = low + + @property + def malware(self): + """Gets the malware of this WebOSVSeverityCounts. + + + :return: The malware of this WebOSVSeverityCounts. + :rtype: int + """ + return self._malware + + @malware.setter + def malware(self, malware): + """Sets the malware of this WebOSVSeverityCounts. + + + :param malware: The malware of this WebOSVSeverityCounts. + :type: int + """ + + self._malware = malware + + @property + def medium(self): + """Gets the medium of this WebOSVSeverityCounts. + + + :return: The medium of this WebOSVSeverityCounts. + :rtype: int + """ + return self._medium + + @medium.setter + def medium(self, medium): + """Sets the medium of this WebOSVSeverityCounts. + + + :param medium: The medium of this WebOSVSeverityCounts. + :type: int + """ + + self._medium = medium + + @property + def total(self): + """Gets the total of this WebOSVSeverityCounts. + + + :return: The total of this WebOSVSeverityCounts. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this WebOSVSeverityCounts. + + + :param total: The total of this WebOSVSeverityCounts. + :type: int + """ + + self._total = total + + @property + def unknown(self): + """Gets the unknown of this WebOSVSeverityCounts. + + + :return: The unknown of this WebOSVSeverityCounts. + :rtype: int + """ + return self._unknown + + @unknown.setter + def unknown(self, unknown): + """Sets the unknown of this WebOSVSeverityCounts. + + + :param unknown: The unknown of this WebOSVSeverityCounts. + :type: int + """ + + self._unknown = unknown + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(WebOSVSeverityCounts, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, WebOSVSeverityCounts): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, WebOSVSeverityCounts): + return True + + return self.to_dict() != other.to_dict() + diff --git a/bindings/python/src/docs/AlpinePackageUpload.md b/bindings/python/src/docs/AlpinePackageUpload.md index d5bb5afb..bdaa2921 100644 --- a/bindings/python/src/docs/AlpinePackageUpload.md +++ b/bindings/python/src/docs/AlpinePackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -76,18 +77,21 @@ Name | Type | Description | Notes **status_str** | **str** | | [optional] **status_updated_at** | **datetime** | The datetime the package status was updated at. | [optional] **status_url** | **str** | | [optional] +**store_path** | **str** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **str** | | [optional] **summary** | **str** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **datetime** | The datetime the package sync was finished at. | [optional] **sync_progress** | **int** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | 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. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/AlpinePackageUploadRequest.md b/bindings/python/src/docs/AlpinePackageUploadRequest.md index 73671a11..b16a5906 100644 --- a/bindings/python/src/docs/AlpinePackageUploadRequest.md +++ b/bindings/python/src/docs/AlpinePackageUploadRequest.md @@ -4,9 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **distribution** | **str** | The distribution to store the package for. | +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **str** | The primary file for the package. | **republish** | **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **str** | A comma-separated values list of tags to add to the package. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/CargoPackageUpload.md b/bindings/python/src/docs/CargoPackageUpload.md index f6b2638f..b0ec0cd9 100644 --- a/bindings/python/src/docs/CargoPackageUpload.md +++ b/bindings/python/src/docs/CargoPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -76,18 +77,21 @@ Name | Type | Description | Notes **status_str** | **str** | | [optional] **status_updated_at** | **datetime** | The datetime the package status was updated at. | [optional] **status_url** | **str** | | [optional] +**store_path** | **str** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **str** | | [optional] **summary** | **str** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **datetime** | The datetime the package sync was finished at. | [optional] **sync_progress** | **int** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | 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. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/CargoPackageUploadRequest.md b/bindings/python/src/docs/CargoPackageUploadRequest.md index 16652d00..01dab240 100644 --- a/bindings/python/src/docs/CargoPackageUploadRequest.md +++ b/bindings/python/src/docs/CargoPackageUploadRequest.md @@ -3,9 +3,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **str** | The primary file for the package. | **republish** | **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **str** | A comma-separated values list of tags to add to the package. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/CocoapodsPackageUpload.md b/bindings/python/src/docs/CocoapodsPackageUpload.md index 1480d0cf..215ff04f 100644 --- a/bindings/python/src/docs/CocoapodsPackageUpload.md +++ b/bindings/python/src/docs/CocoapodsPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -76,18 +77,21 @@ Name | Type | Description | Notes **status_str** | **str** | | [optional] **status_updated_at** | **datetime** | The datetime the package status was updated at. | [optional] **status_url** | **str** | | [optional] +**store_path** | **str** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **str** | | [optional] **summary** | **str** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **datetime** | The datetime the package sync was finished at. | [optional] **sync_progress** | **int** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | 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. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/CocoapodsPackageUploadRequest.md b/bindings/python/src/docs/CocoapodsPackageUploadRequest.md index 84ff23fb..c260e24a 100644 --- a/bindings/python/src/docs/CocoapodsPackageUploadRequest.md +++ b/bindings/python/src/docs/CocoapodsPackageUploadRequest.md @@ -3,9 +3,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **str** | The primary file for the package. | **republish** | **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **str** | A comma-separated values list of tags to add to the package. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/ComposerPackageUpload.md b/bindings/python/src/docs/ComposerPackageUpload.md index c248a7c2..f814e313 100644 --- a/bindings/python/src/docs/ComposerPackageUpload.md +++ b/bindings/python/src/docs/ComposerPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -76,18 +77,21 @@ Name | Type | Description | Notes **status_str** | **str** | | [optional] **status_updated_at** | **datetime** | The datetime the package status was updated at. | [optional] **status_url** | **str** | | [optional] +**store_path** | **str** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **str** | | [optional] **summary** | **str** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **datetime** | The datetime the package sync was finished at. | [optional] **sync_progress** | **int** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | 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. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/ComposerPackageUploadRequest.md b/bindings/python/src/docs/ComposerPackageUploadRequest.md index 3d0197e2..d6f5a80c 100644 --- a/bindings/python/src/docs/ComposerPackageUploadRequest.md +++ b/bindings/python/src/docs/ComposerPackageUploadRequest.md @@ -3,10 +3,12 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **str** | The primary file for the package. | **republish** | **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **str** | A comma-separated values list of tags to add to the package. | [optional] **version** | **str** | The raw version for this package. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/ConanPackageUpload.md b/bindings/python/src/docs/ConanPackageUpload.md index 903dd86c..b16947ee 100644 --- a/bindings/python/src/docs/ConanPackageUpload.md +++ b/bindings/python/src/docs/ConanPackageUpload.md @@ -34,6 +34,7 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -78,18 +79,21 @@ Name | Type | Description | Notes **status_str** | **str** | | [optional] **status_updated_at** | **datetime** | The datetime the package status was updated at. | [optional] **status_url** | **str** | | [optional] +**store_path** | **str** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **str** | | [optional] **summary** | **str** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **datetime** | The datetime the package sync was finished at. | [optional] **sync_progress** | **int** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | 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. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/ConanPackageUploadRequest.md b/bindings/python/src/docs/ConanPackageUploadRequest.md index 9177ddf4..3b85121f 100644 --- a/bindings/python/src/docs/ConanPackageUploadRequest.md +++ b/bindings/python/src/docs/ConanPackageUploadRequest.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes **conan_channel** | **str** | Conan channel. | [optional] **conan_prefix** | **str** | Conan prefix (User). | [optional] **info_file** | **str** | The info file is an python file containing the package metadata. | +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **manifest_file** | **str** | The info file is an python file containing the package metadata. | **metadata_file** | **str** | The conan file is an python file containing the package metadata. | **name** | **str** | The name of this package. | [optional] @@ -13,6 +14,7 @@ Name | Type | Description | Notes **republish** | **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **str** | A comma-separated values list of tags to add to the package. | [optional] **version** | **str** | The raw version for this package. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/CondaPackageUpload.md b/bindings/python/src/docs/CondaPackageUpload.md index 32a06893..50ce2af1 100644 --- a/bindings/python/src/docs/CondaPackageUpload.md +++ b/bindings/python/src/docs/CondaPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -76,18 +77,21 @@ Name | Type | Description | Notes **status_str** | **str** | | [optional] **status_updated_at** | **datetime** | The datetime the package status was updated at. | [optional] **status_url** | **str** | | [optional] +**store_path** | **str** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **str** | | [optional] **summary** | **str** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **datetime** | The datetime the package sync was finished at. | [optional] **sync_progress** | **int** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | 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. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/CondaPackageUploadRequest.md b/bindings/python/src/docs/CondaPackageUploadRequest.md index e837c937..39c44b2f 100644 --- a/bindings/python/src/docs/CondaPackageUploadRequest.md +++ b/bindings/python/src/docs/CondaPackageUploadRequest.md @@ -3,9 +3,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **str** | The primary file for the package. | **republish** | **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **str** | A comma-separated values list of tags to add to the package. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/CranPackageUpload.md b/bindings/python/src/docs/CranPackageUpload.md index 86429a54..7231f3ff 100644 --- a/bindings/python/src/docs/CranPackageUpload.md +++ b/bindings/python/src/docs/CranPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -77,18 +78,21 @@ Name | Type | Description | Notes **status_str** | **str** | | [optional] **status_updated_at** | **datetime** | The datetime the package status was updated at. | [optional] **status_url** | **str** | | [optional] +**store_path** | **str** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **str** | | [optional] **summary** | **str** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **datetime** | The datetime the package sync was finished at. | [optional] **sync_progress** | **int** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | 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. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/CranPackageUploadRequest.md b/bindings/python/src/docs/CranPackageUploadRequest.md index adf7fe71..a05d6f39 100644 --- a/bindings/python/src/docs/CranPackageUploadRequest.md +++ b/bindings/python/src/docs/CranPackageUploadRequest.md @@ -4,10 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **architecture** | **str** | Binary package uploads for macOS should specify the architecture they were built for. | [optional] +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **str** | The primary file for the package. | **r_version** | **str** | Binary package uploads should specify the version of R they were built for. | [optional] **republish** | **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **str** | A comma-separated values list of tags to add to the package. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/DartPackageUpload.md b/bindings/python/src/docs/DartPackageUpload.md index f5f9e66d..14c16618 100644 --- a/bindings/python/src/docs/DartPackageUpload.md +++ b/bindings/python/src/docs/DartPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -76,18 +77,21 @@ Name | Type | Description | Notes **status_str** | **str** | | [optional] **status_updated_at** | **datetime** | The datetime the package status was updated at. | [optional] **status_url** | **str** | | [optional] +**store_path** | **str** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **str** | | [optional] **summary** | **str** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **datetime** | The datetime the package sync was finished at. | [optional] **sync_progress** | **int** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | 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. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/DartPackageUploadRequest.md b/bindings/python/src/docs/DartPackageUploadRequest.md index 670cd6f4..a01c0d7e 100644 --- a/bindings/python/src/docs/DartPackageUploadRequest.md +++ b/bindings/python/src/docs/DartPackageUploadRequest.md @@ -3,9 +3,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **str** | The primary file for the package. | **republish** | **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **str** | A comma-separated values list of tags to add to the package. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/DebPackageUpload.md b/bindings/python/src/docs/DebPackageUpload.md index 94e57d9e..dd47d1eb 100644 --- a/bindings/python/src/docs/DebPackageUpload.md +++ b/bindings/python/src/docs/DebPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -76,18 +77,21 @@ Name | Type | Description | Notes **status_str** | **str** | | [optional] **status_updated_at** | **datetime** | The datetime the package status was updated at. | [optional] **status_url** | **str** | | [optional] +**store_path** | **str** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **str** | | [optional] **summary** | **str** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **datetime** | The datetime the package sync was finished at. | [optional] **sync_progress** | **int** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | 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. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/DebPackageUploadRequest.md b/bindings/python/src/docs/DebPackageUploadRequest.md index 8fddc1a6..aa451afb 100644 --- a/bindings/python/src/docs/DebPackageUploadRequest.md +++ b/bindings/python/src/docs/DebPackageUploadRequest.md @@ -6,10 +6,12 @@ Name | Type | Description | Notes **changes_file** | **str** | The changes archive containing the changes made to the source and debian packaging files | [optional] **component** | **str** | The component (channel) for the package (e.g. 'main', 'unstable', etc.) | [optional] [default to 'main'] **distribution** | **str** | The distribution to store the package for. | +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **str** | The primary file for the package. | **republish** | **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **sources_file** | **str** | The sources archive containing the source code for the binary | [optional] **tags** | **str** | A comma-separated values list of tags to add to the package. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/DockerPackageUpload.md b/bindings/python/src/docs/DockerPackageUpload.md index c1b4f6bc..ea4aed9f 100644 --- a/bindings/python/src/docs/DockerPackageUpload.md +++ b/bindings/python/src/docs/DockerPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -76,18 +77,21 @@ Name | Type | Description | Notes **status_str** | **str** | | [optional] **status_updated_at** | **datetime** | The datetime the package status was updated at. | [optional] **status_url** | **str** | | [optional] +**store_path** | **str** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **str** | | [optional] **summary** | **str** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **datetime** | The datetime the package sync was finished at. | [optional] **sync_progress** | **int** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | 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. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/DockerPackageUploadRequest.md b/bindings/python/src/docs/DockerPackageUploadRequest.md index 791c5621..78ad18b4 100644 --- a/bindings/python/src/docs/DockerPackageUploadRequest.md +++ b/bindings/python/src/docs/DockerPackageUploadRequest.md @@ -3,9 +3,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **str** | The primary file for the package. | **republish** | **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **str** | A comma-separated values list of tags to add to the package. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/GenericPackageUpload.md b/bindings/python/src/docs/GenericPackageUpload.md index d8a49604..9ab7a371 100644 --- a/bindings/python/src/docs/GenericPackageUpload.md +++ b/bindings/python/src/docs/GenericPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -76,18 +77,21 @@ Name | Type | Description | Notes **status_str** | **str** | | [optional] **status_updated_at** | **datetime** | The datetime the package status was updated at. | [optional] **status_url** | **str** | | [optional] +**store_path** | **str** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **str** | | [optional] **summary** | **str** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **datetime** | The datetime the package sync was finished at. | [optional] **sync_progress** | **int** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | 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. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/GenericPackageUploadRequest.md b/bindings/python/src/docs/GenericPackageUploadRequest.md index 0acaf22a..cdcf7591 100644 --- a/bindings/python/src/docs/GenericPackageUploadRequest.md +++ b/bindings/python/src/docs/GenericPackageUploadRequest.md @@ -4,11 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **filepath** | **str** | The full filepath of the package including filename. | +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **name** | **str** | The name of this package. | [optional] **package_file** | **str** | The primary file for the package. | **republish** | **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **str** | A comma-separated values list of tags to add to the package. | [optional] **version** | **str** | The raw version for this package. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/GoPackageUpload.md b/bindings/python/src/docs/GoPackageUpload.md index 4b731266..b0e3b2a4 100644 --- a/bindings/python/src/docs/GoPackageUpload.md +++ b/bindings/python/src/docs/GoPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -76,18 +77,21 @@ Name | Type | Description | Notes **status_str** | **str** | | [optional] **status_updated_at** | **datetime** | The datetime the package status was updated at. | [optional] **status_url** | **str** | | [optional] +**store_path** | **str** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **str** | | [optional] **summary** | **str** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **datetime** | The datetime the package sync was finished at. | [optional] **sync_progress** | **int** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | 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. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/GoPackageUploadRequest.md b/bindings/python/src/docs/GoPackageUploadRequest.md index 383c6c45..aa8d8ab8 100644 --- a/bindings/python/src/docs/GoPackageUploadRequest.md +++ b/bindings/python/src/docs/GoPackageUploadRequest.md @@ -3,9 +3,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **str** | The primary file for the package. | **republish** | **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **str** | A comma-separated values list of tags to add to the package. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/HelmPackageUpload.md b/bindings/python/src/docs/HelmPackageUpload.md index cd64d129..a00d6bd2 100644 --- a/bindings/python/src/docs/HelmPackageUpload.md +++ b/bindings/python/src/docs/HelmPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -76,18 +77,21 @@ Name | Type | Description | Notes **status_str** | **str** | | [optional] **status_updated_at** | **datetime** | The datetime the package status was updated at. | [optional] **status_url** | **str** | | [optional] +**store_path** | **str** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **str** | | [optional] **summary** | **str** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **datetime** | The datetime the package sync was finished at. | [optional] **sync_progress** | **int** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | 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. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/HelmPackageUploadRequest.md b/bindings/python/src/docs/HelmPackageUploadRequest.md index 40a0e1d0..05eb678a 100644 --- a/bindings/python/src/docs/HelmPackageUploadRequest.md +++ b/bindings/python/src/docs/HelmPackageUploadRequest.md @@ -3,10 +3,12 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **str** | The primary file for the package. | **provenance_file** | **str** | The provenance file containing the signature for the chart. If one is not provided, it will be generated automatically. | [optional] **republish** | **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **str** | A comma-separated values list of tags to add to the package. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/HexPackageUpload.md b/bindings/python/src/docs/HexPackageUpload.md index 7f534543..9bcb85c2 100644 --- a/bindings/python/src/docs/HexPackageUpload.md +++ b/bindings/python/src/docs/HexPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -76,18 +77,21 @@ Name | Type | Description | Notes **status_str** | **str** | | [optional] **status_updated_at** | **datetime** | The datetime the package status was updated at. | [optional] **status_url** | **str** | | [optional] +**store_path** | **str** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **str** | | [optional] **summary** | **str** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **datetime** | The datetime the package sync was finished at. | [optional] **sync_progress** | **int** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | 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. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/HexPackageUploadRequest.md b/bindings/python/src/docs/HexPackageUploadRequest.md index 5439c3a8..992d9fc0 100644 --- a/bindings/python/src/docs/HexPackageUploadRequest.md +++ b/bindings/python/src/docs/HexPackageUploadRequest.md @@ -3,9 +3,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **str** | The primary file for the package. | **republish** | **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **str** | A comma-separated values list of tags to add to the package. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/HuggingfacePackageUpload.md b/bindings/python/src/docs/HuggingfacePackageUpload.md index 1909810c..949781fe 100644 --- a/bindings/python/src/docs/HuggingfacePackageUpload.md +++ b/bindings/python/src/docs/HuggingfacePackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -76,18 +77,21 @@ Name | Type | Description | Notes **status_str** | **str** | | [optional] **status_updated_at** | **datetime** | The datetime the package status was updated at. | [optional] **status_url** | **str** | | [optional] +**store_path** | **str** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **str** | | [optional] **summary** | **str** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **datetime** | The datetime the package sync was finished at. | [optional] **sync_progress** | **int** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | 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. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/HuggingfacePackageUploadRequest.md b/bindings/python/src/docs/HuggingfacePackageUploadRequest.md index 5d66d307..3f82ff33 100644 --- a/bindings/python/src/docs/HuggingfacePackageUploadRequest.md +++ b/bindings/python/src/docs/HuggingfacePackageUploadRequest.md @@ -3,9 +3,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **str** | The primary file for the package. | **republish** | **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **str** | A comma-separated values list of tags to add to the package. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/InlineResponse200.md b/bindings/python/src/docs/InlineResponse200.md index 751cf037..db9cb7b9 100644 --- a/bindings/python/src/docs/InlineResponse200.md +++ b/bindings/python/src/docs/InlineResponse200.md @@ -3,7 +3,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**results** | [**list[PackageGroup]**](PackageGroup.md) | | +**allow_open_source_overage** | **bool** | Whether on-demand open source overage is allowed. | [optional] +**bandwidth_overage_limit** | **int** | Effective bandwidth overage limit in GB. | [optional] +**storage_overage_limit** | **int** | Effective storage overage limit in GB. | [optional] +**bandwidth_maximum** | **int** | Maximum allowed bandwidth overage in GB. | [optional] +**storage_maximum** | **int** | Maximum allowed storage overage in GB. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/InlineResponse2001.md b/bindings/python/src/docs/InlineResponse2001.md index cbd76ec8..41f0d241 100644 --- a/bindings/python/src/docs/InlineResponse2001.md +++ b/bindings/python/src/docs/InlineResponse2001.md @@ -3,7 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**results** | [**list[ConnectedRepository]**](ConnectedRepository.md) | | +**allow_open_source_overage** | **bool** | Whether on-demand open source overage is allowed. | [optional] +**bandwidth_overage_limit** | **int** | Effective bandwidth overage limit in GB. | [optional] +**storage_overage_limit** | **int** | Effective storage overage limit in GB. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/InlineResponse2002.md b/bindings/python/src/docs/InlineResponse2002.md index 48b3318c..66b6782f 100644 --- a/bindings/python/src/docs/InlineResponse2002.md +++ b/bindings/python/src/docs/InlineResponse2002.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**results** | [**list[UserAuthenticationToken]**](UserAuthenticationToken.md) | | +**results** | [**list[PackageGroup]**](PackageGroup.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/InlineResponse2003.md b/bindings/python/src/docs/InlineResponse2003.md new file mode 100644 index 00000000..12139e5f --- /dev/null +++ b/bindings/python/src/docs/InlineResponse2003.md @@ -0,0 +1,10 @@ +# InlineResponse2003 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**results** | [**list[ConnectedRepository]**](ConnectedRepository.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/bindings/python/src/docs/InlineResponse2004.md b/bindings/python/src/docs/InlineResponse2004.md new file mode 100644 index 00000000..92d503a2 --- /dev/null +++ b/bindings/python/src/docs/InlineResponse2004.md @@ -0,0 +1,10 @@ +# InlineResponse2004 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**results** | [**list[UserAuthenticationToken]**](UserAuthenticationToken.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/bindings/python/src/docs/LuarocksPackageUpload.md b/bindings/python/src/docs/LuarocksPackageUpload.md index 82b789a4..3bd4d51c 100644 --- a/bindings/python/src/docs/LuarocksPackageUpload.md +++ b/bindings/python/src/docs/LuarocksPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -76,18 +77,21 @@ Name | Type | Description | Notes **status_str** | **str** | | [optional] **status_updated_at** | **datetime** | The datetime the package status was updated at. | [optional] **status_url** | **str** | | [optional] +**store_path** | **str** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **str** | | [optional] **summary** | **str** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **datetime** | The datetime the package sync was finished at. | [optional] **sync_progress** | **int** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | 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. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/LuarocksPackageUploadRequest.md b/bindings/python/src/docs/LuarocksPackageUploadRequest.md index f29819cb..7876a076 100644 --- a/bindings/python/src/docs/LuarocksPackageUploadRequest.md +++ b/bindings/python/src/docs/LuarocksPackageUploadRequest.md @@ -3,9 +3,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **str** | The primary file for the package. | **republish** | **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **str** | A comma-separated values list of tags to add to the package. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/MavenPackageUpload.md b/bindings/python/src/docs/MavenPackageUpload.md index 0faf1b92..fef09f65 100644 --- a/bindings/python/src/docs/MavenPackageUpload.md +++ b/bindings/python/src/docs/MavenPackageUpload.md @@ -34,6 +34,7 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -81,18 +82,21 @@ Name | Type | Description | Notes **status_str** | **str** | | [optional] **status_updated_at** | **datetime** | The datetime the package status was updated at. | [optional] **status_url** | **str** | | [optional] +**store_path** | **str** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **str** | | [optional] **summary** | **str** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **datetime** | The datetime the package sync was finished at. | [optional] **sync_progress** | **int** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | 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. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/MavenPackageUploadRequest.md b/bindings/python/src/docs/MavenPackageUploadRequest.md index e7e3da78..fbcbbba5 100644 --- a/bindings/python/src/docs/MavenPackageUploadRequest.md +++ b/bindings/python/src/docs/MavenPackageUploadRequest.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes **artifact_id** | **str** | The ID of the artifact. | [optional] **extra_files** | **list[str]** | Extra files to include in the package. This can be a single file or multiple files. | [optional] **group_id** | **str** | Artifact's group ID. | [optional] +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **ivy_file** | **str** | The ivy file is an XML file describing the dependencies of the project. | [optional] **javadoc_file** | **str** | Adds bundled Java documentation to the Maven package | [optional] **package_file** | **str** | The primary file for the package. | @@ -18,6 +19,7 @@ Name | Type | Description | Notes **tags** | **str** | A comma-separated values list of tags to add to the package. | [optional] **tests_file** | **str** | Adds bundled Java tests to the Maven package. | [optional] **version** | **str** | The raw version for this package. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/McpPackageUpload.md b/bindings/python/src/docs/McpPackageUpload.md index bef67488..1ec257b8 100644 --- a/bindings/python/src/docs/McpPackageUpload.md +++ b/bindings/python/src/docs/McpPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -76,18 +77,21 @@ Name | Type | Description | Notes **status_str** | **str** | | [optional] **status_updated_at** | **datetime** | The datetime the package status was updated at. | [optional] **status_url** | **str** | | [optional] +**store_path** | **str** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **str** | | [optional] **summary** | **str** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **datetime** | The datetime the package sync was finished at. | [optional] **sync_progress** | **int** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | 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. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/McpPackageUploadRequest.md b/bindings/python/src/docs/McpPackageUploadRequest.md index a88c529d..f708877d 100644 --- a/bindings/python/src/docs/McpPackageUploadRequest.md +++ b/bindings/python/src/docs/McpPackageUploadRequest.md @@ -3,10 +3,12 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **str** | The primary file for the package. | **republish** | **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **str** | A comma-separated values list of tags to add to the package. | [optional] **version** | **str** | The raw version for this package. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/NixPackageUpload.md b/bindings/python/src/docs/NixPackageUpload.md new file mode 100644 index 00000000..f2d551f5 --- /dev/null +++ b/bindings/python/src/docs/NixPackageUpload.md @@ -0,0 +1,99 @@ +# NixPackageUpload + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**architectures** | [**list[Architecture]**](Architecture.md) | | [optional] +**cdn_url** | **str** | | [optional] +**checksum_md5** | **str** | | [optional] +**checksum_sha1** | **str** | | [optional] +**checksum_sha256** | **str** | | [optional] +**checksum_sha512** | **str** | | [optional] +**dependencies_checksum_md5** | **str** | A checksum of all of the package's dependencies. | [optional] +**dependencies_url** | **str** | | [optional] +**description** | **str** | A textual description of this package. | [optional] +**display_name** | **str** | | [optional] +**distro** | [**Distribution**](Distribution.md) | | [optional] +**distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] +**downloads** | **int** | | [optional] +**epoch** | **int** | The epoch of the package version (if any). | [optional] +**extension** | **str** | | [optional] +**filename** | **str** | | [optional] +**files** | [**list[PackageFile]**](PackageFile.md) | | [optional] +**format** | **str** | | [optional] +**format_url** | **str** | | [optional] +**freeable_storage** | **int** | Amount of storage that will be freed if this package is deleted | [optional] +**fully_qualified_name** | **str** | | [optional] +**identifier_perm** | **str** | Unique and permanent identifier for the package. | [optional] +**identifiers** | **dict(str, str)** | Return a map of identifier field names and their values. | [optional] +**indexed** | **bool** | | [optional] +**is_cancellable** | **bool** | | [optional] +**is_copyable** | **bool** | | [optional] +**is_deleteable** | **bool** | | [optional] +**is_downloadable** | **bool** | | [optional] +**is_hidden** | **bool** | | [optional] +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] +**is_moveable** | **bool** | | [optional] +**is_quarantinable** | **bool** | | [optional] +**is_quarantined** | **bool** | | [optional] +**is_resyncable** | **bool** | | [optional] +**is_security_scannable** | **bool** | | [optional] +**is_sync_awaiting** | **bool** | | [optional] +**is_sync_completed** | **bool** | | [optional] +**is_sync_failed** | **bool** | | [optional] +**is_sync_in_flight** | **bool** | | [optional] +**is_sync_in_progress** | **bool** | | [optional] +**license** | **str** | The license of this package. | [optional] +**name** | **str** | The name of this package. | [optional] +**namespace** | **str** | | [optional] +**namespace_url** | **str** | | [optional] +**num_files** | **int** | | [optional] +**origin_repository** | **str** | | [optional] +**origin_repository_url** | **str** | | [optional] +**osi_approved** | **bool** | Whether the package's SPDX license is OSI-approved. | [optional] +**package_type** | **int** | The type of package contents. | [optional] +**policy_violated** | **bool** | Whether or not the package has violated any policy. | [optional] +**raw_license** | **str** | The raw license string. | [optional] +**release** | **str** | The release of the package version (if any). | [optional] +**repository** | **str** | | [optional] +**repository_url** | **str** | | [optional] +**security_scan_completed_at** | **datetime** | The datetime the security scanning was completed. | [optional] +**security_scan_started_at** | **datetime** | The datetime the security scanning was started. | [optional] +**security_scan_status** | **str** | | [optional] [default to 'Awaiting Security Scan'] +**security_scan_status_updated_at** | **datetime** | The datetime the security scanning status was updated. | [optional] +**self_html_url** | **str** | | [optional] +**self_url** | **str** | | [optional] +**self_webapp_url** | **str** | | [optional] +**signature_url** | **str** | | [optional] +**size** | **int** | The calculated size of the package. | [optional] +**slug** | **str** | The public unique identifier for the package. | [optional] +**slug_perm** | **str** | | [optional] +**spdx_license** | **str** | The SPDX license identifier for this package. | [optional] +**stage** | **int** | The synchronisation (in progress) stage of the package. | [optional] +**stage_str** | **str** | | [optional] +**stage_updated_at** | **datetime** | The datetime the package stage was updated at. | [optional] +**status** | **int** | The synchronisation status of the package. | [optional] +**status_reason** | **str** | A textual description for the synchronous status reason (if any | [optional] +**status_str** | **str** | | [optional] +**status_updated_at** | **datetime** | The datetime the package status was updated at. | [optional] +**status_url** | **str** | | [optional] +**store_path** | **str** | Absolute store path for the package, including store hash and name. | [optional] +**subtype** | **str** | | [optional] +**summary** | **str** | A one-liner synopsis of this package. | [optional] +**sync_finished_at** | **datetime** | The datetime the package sync was finished at. | [optional] +**sync_progress** | **int** | Synchronisation progress (from 0-100) | [optional] +**tags_automatic** | [**Tags**](Tags.md) | | [optional] +**tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | 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. | [optional] +**type_display** | **str** | | [optional] +**uploaded_at** | **datetime** | The date this package was uploaded. | [optional] +**uploader** | **str** | | [optional] +**uploader_url** | **str** | | [optional] +**version** | **str** | The raw version for this package. | [optional] +**version_orig** | **str** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] +**vulnerability_scan_results_url** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/bindings/python/src/docs/NixPackageUploadRequest.md b/bindings/python/src/docs/NixPackageUploadRequest.md new file mode 100644 index 00000000..dbce97dc --- /dev/null +++ b/bindings/python/src/docs/NixPackageUploadRequest.md @@ -0,0 +1,16 @@ +# NixPackageUploadRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] +**narinfo** | **str** | The narinfo sidecar metadata file (<storeHash>.narinfo). Optional — the package can be completed later by publishing the matching narinfo via the native HTTP PUT path. | [optional] +**package_file** | **str** | The primary file for the package. | +**republish** | **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] +**tags** | **str** | A comma-separated values list of tags to add to the package. | [optional] +**version** | **str** | The raw version for this package. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/bindings/python/src/docs/NixUpstream.md b/bindings/python/src/docs/NixUpstream.md new file mode 100644 index 00000000..ce92e303 --- /dev/null +++ b/bindings/python/src/docs/NixUpstream.md @@ -0,0 +1,34 @@ +# NixUpstream + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**auth_mode** | **str** | The authentication mode to use when accessing this upstream. | [optional] [default to 'None'] +**auth_secret** | **str** | Secret to provide with requests to upstream. | [optional] +**auth_username** | **str** | Username to provide with requests to upstream. | [optional] +**available** | **bool** | Whether the upstream is available for use. | [optional] +**can_reindex** | **bool** | Whether the upstream can be reindexed. | [optional] +**created_at** | **datetime** | The datetime the upstream source was created. | [optional] +**disable_reason** | **str** | | [optional] [default to 'N/A'] +**disable_reason_text** | **str** | Human-readable explanation of why this upstream is disabled | [optional] +**extra_header_1** | **str** | The key for extra header #1 to send to upstream. | [optional] +**extra_header_2** | **str** | The key for extra header #2 to send to upstream. | [optional] +**extra_value_1** | **str** | The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] +**extra_value_2** | **str** | The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] +**has_failed_signature_verification** | **bool** | Whether the upstream has failed signature verification. | [optional] +**index_package_count** | **int** | The number of packages available in this upstream source | [optional] +**index_status** | **str** | The current indexing status of this upstream source | [optional] +**is_active** | **bool** | Whether or not this upstream is active and ready for requests. | [optional] +**last_indexed** | **str** | The last time this upstream source was indexed | [optional] +**mode** | **str** | The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. | [optional] [default to 'Proxy Only'] +**name** | **str** | A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. | +**pending_validation** | **bool** | When true, this upstream source is pending validation. | [optional] +**priority** | **int** | Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. | [optional] +**slug_perm** | **str** | | [optional] +**updated_at** | **datetime** | | [optional] +**upstream_url** | **str** | The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. | +**verify_ssl** | **bool** | If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/bindings/python/src/docs/NixUpstreamRequest.md b/bindings/python/src/docs/NixUpstreamRequest.md new file mode 100644 index 00000000..7204de8c --- /dev/null +++ b/bindings/python/src/docs/NixUpstreamRequest.md @@ -0,0 +1,22 @@ +# NixUpstreamRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**auth_mode** | **str** | The authentication mode to use when accessing this upstream. | [optional] [default to 'None'] +**auth_secret** | **str** | Secret to provide with requests to upstream. | [optional] +**auth_username** | **str** | Username to provide with requests to upstream. | [optional] +**extra_header_1** | **str** | The key for extra header #1 to send to upstream. | [optional] +**extra_header_2** | **str** | The key for extra header #2 to send to upstream. | [optional] +**extra_value_1** | **str** | The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] +**extra_value_2** | **str** | The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] +**is_active** | **bool** | Whether or not this upstream is active and ready for requests. | [optional] +**mode** | **str** | The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. | [optional] [default to 'Proxy Only'] +**name** | **str** | A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. | +**priority** | **int** | Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. | [optional] +**upstream_url** | **str** | The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. | +**verify_ssl** | **bool** | If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/bindings/python/src/docs/NixUpstreamRequestPatch.md b/bindings/python/src/docs/NixUpstreamRequestPatch.md new file mode 100644 index 00000000..ea7d8811 --- /dev/null +++ b/bindings/python/src/docs/NixUpstreamRequestPatch.md @@ -0,0 +1,22 @@ +# NixUpstreamRequestPatch + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**auth_mode** | **str** | The authentication mode to use when accessing this upstream. | [optional] [default to 'None'] +**auth_secret** | **str** | Secret to provide with requests to upstream. | [optional] +**auth_username** | **str** | Username to provide with requests to upstream. | [optional] +**extra_header_1** | **str** | The key for extra header #1 to send to upstream. | [optional] +**extra_header_2** | **str** | The key for extra header #2 to send to upstream. | [optional] +**extra_value_1** | **str** | The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] +**extra_value_2** | **str** | The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] +**is_active** | **bool** | Whether or not this upstream is active and ready for requests. | [optional] +**mode** | **str** | The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. | [optional] [default to 'Proxy Only'] +**name** | **str** | A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. | [optional] +**priority** | **int** | Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. | [optional] +**upstream_url** | **str** | The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. | [optional] +**verify_ssl** | **bool** | If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/bindings/python/src/docs/NpmPackageUpload.md b/bindings/python/src/docs/NpmPackageUpload.md index f2cbb265..981c83b5 100644 --- a/bindings/python/src/docs/NpmPackageUpload.md +++ b/bindings/python/src/docs/NpmPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -76,18 +77,21 @@ Name | Type | Description | Notes **status_str** | **str** | | [optional] **status_updated_at** | **datetime** | The datetime the package status was updated at. | [optional] **status_url** | **str** | | [optional] +**store_path** | **str** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **str** | | [optional] **summary** | **str** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **datetime** | The datetime the package sync was finished at. | [optional] **sync_progress** | **int** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | 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. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/NpmPackageUploadRequest.md b/bindings/python/src/docs/NpmPackageUploadRequest.md index a85c2083..ea2fb9e2 100644 --- a/bindings/python/src/docs/NpmPackageUploadRequest.md +++ b/bindings/python/src/docs/NpmPackageUploadRequest.md @@ -3,10 +3,12 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **npm_dist_tag** | **str** | The default npm dist-tag for this package/version - This will replace any other package/version if they are using the same tag. | [optional] [default to 'latest'] **package_file** | **str** | The primary file for the package. | **republish** | **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **str** | A comma-separated values list of tags to add to the package. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/NugetPackageUpload.md b/bindings/python/src/docs/NugetPackageUpload.md index 32d45b3f..220e4bf4 100644 --- a/bindings/python/src/docs/NugetPackageUpload.md +++ b/bindings/python/src/docs/NugetPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -76,18 +77,21 @@ Name | Type | Description | Notes **status_str** | **str** | | [optional] **status_updated_at** | **datetime** | The datetime the package status was updated at. | [optional] **status_url** | **str** | | [optional] +**store_path** | **str** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **str** | | [optional] **summary** | **str** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **datetime** | The datetime the package sync was finished at. | [optional] **sync_progress** | **int** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | 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. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/NugetPackageUploadRequest.md b/bindings/python/src/docs/NugetPackageUploadRequest.md index c4994474..26eeb817 100644 --- a/bindings/python/src/docs/NugetPackageUploadRequest.md +++ b/bindings/python/src/docs/NugetPackageUploadRequest.md @@ -3,10 +3,12 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **str** | The primary file for the package. | **republish** | **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **symbols_file** | **str** | Uploads a symbols file as a separate package | [optional] **tags** | **str** | A comma-separated values list of tags to add to the package. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/OrganizationUsage.md b/bindings/python/src/docs/OrganizationUsage.md new file mode 100644 index 00000000..4876816f --- /dev/null +++ b/bindings/python/src/docs/OrganizationUsage.md @@ -0,0 +1,13 @@ +# OrganizationUsage + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bandwidth_maximum** | **int** | The maximum allowed package delivery overage in GB for this product. | [optional] +**bandwidth_overage_limit** | **int** | The on-demand limit for package delivery usage (in GBs). | [optional] +**storage_maximum** | **int** | The maximum allowed artifact data overage in GB for this product. | [optional] +**storage_overage_limit** | **int** | The on-demand limit for artifact data usage (in GBs). | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/bindings/python/src/docs/OrganizationUsageUpdate.md b/bindings/python/src/docs/OrganizationUsageUpdate.md new file mode 100644 index 00000000..95640d22 --- /dev/null +++ b/bindings/python/src/docs/OrganizationUsageUpdate.md @@ -0,0 +1,12 @@ +# OrganizationUsageUpdate + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allow_open_source_overage** | **bool** | | [optional] +**bandwidth_overage_limit** | **int** | | [optional] +**storage_overage_limit** | **int** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/bindings/python/src/docs/OrganizationUsageUpdateRequestPatch.md b/bindings/python/src/docs/OrganizationUsageUpdateRequestPatch.md new file mode 100644 index 00000000..ef61616f --- /dev/null +++ b/bindings/python/src/docs/OrganizationUsageUpdateRequestPatch.md @@ -0,0 +1,12 @@ +# OrganizationUsageUpdateRequestPatch + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allow_open_source_overage** | **bool** | | [optional] +**bandwidth_overage_limit** | **int** | | [optional] +**storage_overage_limit** | **int** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/bindings/python/src/docs/OrgsApi.md b/bindings/python/src/docs/OrgsApi.md index 4bd789e0..fcf6054b 100644 --- a/bindings/python/src/docs/OrgsApi.md +++ b/bindings/python/src/docs/OrgsApi.md @@ -46,6 +46,7 @@ Method | HTTP request | Description [**orgs_openid_connect_read**](OrgsApi.md#orgs_openid_connect_read) | **GET** /orgs/{org}/openid-connect/{slug_perm}/ | Retrieve a specific OpenID Connect provider setting for the org. [**orgs_openid_connect_update**](OrgsApi.md#orgs_openid_connect_update) | **PUT** /orgs/{org}/openid-connect/{slug_perm}/ | Update a specific OpenID Connect provider setting for the org. [**orgs_read**](OrgsApi.md#orgs_read) | **GET** /orgs/{org}/ | Get the details for the specific organization. +[**orgs_retrieve_usage_limits**](OrgsApi.md#orgs_retrieve_usage_limits) | **GET** /orgs/{org}/usage-limits/ | [**orgs_saml_authentication_partial_update**](OrgsApi.md#orgs_saml_authentication_partial_update) | **PATCH** /orgs/{org}/saml-authentication | Update the SAML Authentication settings for this Organization. [**orgs_saml_authentication_read**](OrgsApi.md#orgs_saml_authentication_read) | **GET** /orgs/{org}/saml-authentication | Retrieve the SAML Authentication settings for this Organization. [**orgs_saml_group_sync_create**](OrgsApi.md#orgs_saml_group_sync_create) | **POST** /orgs/{org}/saml-group-sync/ | Create a new SAML Group Sync mapping within an organization. @@ -68,6 +69,7 @@ Method | HTTP request | Description [**orgs_teams_members_update**](OrgsApi.md#orgs_teams_members_update) | **PUT** /orgs/{org}/teams/{team}/members | Replace all team members. [**orgs_teams_partial_update**](OrgsApi.md#orgs_teams_partial_update) | **PATCH** /orgs/{org}/teams/{team}/ | Update a specific team in a organization. [**orgs_teams_read**](OrgsApi.md#orgs_teams_read) | **GET** /orgs/{org}/teams/{team}/ | Get the details of a specific team within an organization. +[**orgs_update_usage_limits**](OrgsApi.md#orgs_update_usage_limits) | **PATCH** /orgs/{org}/usage-limits/ | [**orgs_vulnerability_policy_create**](OrgsApi.md#orgs_vulnerability_policy_create) | **POST** /orgs/{org}/vulnerability-policy/ | Create a package vulnerability policy. [**orgs_vulnerability_policy_delete**](OrgsApi.md#orgs_vulnerability_policy_delete) | **DELETE** /orgs/{org}/vulnerability-policy/{slug_perm}/ | Delete a package vulnerability policy. [**orgs_vulnerability_policy_evaluation_create**](OrgsApi.md#orgs_vulnerability_policy_evaluation_create) | **POST** /orgs/{org}/vulnerability-policy/{policy_slug_perm}/evaluation/ | Create an evaluation request for this policy. @@ -2648,6 +2650,63 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **orgs_retrieve_usage_limits** +> InlineResponse200 orgs_retrieve_usage_limits(org) + + + + + +### Example +```python +from __future__ import print_function +import time +import cloudsmith_api +from cloudsmith_api.rest import ApiException +from pprint import pprint + +# Configure API key authorization: apikey +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# Configure HTTP basic authorization: basic +configuration = cloudsmith_api.Configuration() +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = cloudsmith_api.OrgsApi(cloudsmith_api.ApiClient(configuration)) +org = 'org_example' # str | + +try: + api_response = api_instance.orgs_retrieve_usage_limits(org) + pprint(api_response) +except ApiException as e: + print("Exception when calling OrgsApi->orgs_retrieve_usage_limits: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org** | **str**| | + +### Return type + +[**InlineResponse200**](InlineResponse200.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **orgs_saml_authentication_partial_update** > OrganizationSAMLAuth orgs_saml_authentication_partial_update(org, data=data) @@ -3981,6 +4040,65 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **orgs_update_usage_limits** +> InlineResponse2001 orgs_update_usage_limits(org, data=data) + + + + + +### Example +```python +from __future__ import print_function +import time +import cloudsmith_api +from cloudsmith_api.rest import ApiException +from pprint import pprint + +# Configure API key authorization: apikey +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# Configure HTTP basic authorization: basic +configuration = cloudsmith_api.Configuration() +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = cloudsmith_api.OrgsApi(cloudsmith_api.ApiClient(configuration)) +org = 'org_example' # str | +data = cloudsmith_api.OrganizationUsageUpdateRequestPatch() # OrganizationUsageUpdateRequestPatch | (optional) + +try: + api_response = api_instance.orgs_update_usage_limits(org, data=data) + pprint(api_response) +except ApiException as e: + print("Exception when calling OrgsApi->orgs_update_usage_limits: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org** | **str**| | + **data** | [**OrganizationUsageUpdateRequestPatch**](OrganizationUsageUpdateRequestPatch.md)| | [optional] + +### Return type + +[**InlineResponse2001**](InlineResponse2001.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **orgs_vulnerability_policy_create** > OrganizationPackageVulnerabilityPolicy orgs_vulnerability_policy_create(org, data=data) diff --git a/bindings/python/src/docs/P2PackageUpload.md b/bindings/python/src/docs/P2PackageUpload.md index ffb065ca..921ae688 100644 --- a/bindings/python/src/docs/P2PackageUpload.md +++ b/bindings/python/src/docs/P2PackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -76,18 +77,21 @@ Name | Type | Description | Notes **status_str** | **str** | | [optional] **status_updated_at** | **datetime** | The datetime the package status was updated at. | [optional] **status_url** | **str** | | [optional] +**store_path** | **str** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **str** | | [optional] **summary** | **str** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **datetime** | The datetime the package sync was finished at. | [optional] **sync_progress** | **int** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | 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. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/P2PackageUploadRequest.md b/bindings/python/src/docs/P2PackageUploadRequest.md index 41b60cc3..79f7dd96 100644 --- a/bindings/python/src/docs/P2PackageUploadRequest.md +++ b/bindings/python/src/docs/P2PackageUploadRequest.md @@ -3,9 +3,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **str** | The primary file for the package. | **republish** | **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **str** | A comma-separated values list of tags to add to the package. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/Package.md b/bindings/python/src/docs/Package.md index 3a29446c..25f93d41 100644 --- a/bindings/python/src/docs/Package.md +++ b/bindings/python/src/docs/Package.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -77,6 +78,7 @@ Name | Type | Description | Notes **status_str** | **str** | | [optional] **status_updated_at** | **datetime** | The datetime the package status was updated at. | [optional] **status_url** | **str** | | [optional] +**store_path** | **str** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **str** | | [optional] **summary** | **str** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **datetime** | The datetime the package sync was finished at. | [optional] @@ -84,12 +86,14 @@ Name | Type | Description | Notes **tags** | [**Tags**](Tags.md) | | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | 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. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/PackageCopy.md b/bindings/python/src/docs/PackageCopy.md index 33886327..9f8564d8 100644 --- a/bindings/python/src/docs/PackageCopy.md +++ b/bindings/python/src/docs/PackageCopy.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -77,6 +78,7 @@ Name | Type | Description | Notes **status_str** | **str** | | [optional] **status_updated_at** | **datetime** | The datetime the package status was updated at. | [optional] **status_url** | **str** | | [optional] +**store_path** | **str** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **str** | | [optional] **summary** | **str** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **datetime** | The datetime the package sync was finished at. | [optional] @@ -84,12 +86,14 @@ Name | Type | Description | Notes **tags** | [**Tags**](Tags.md) | | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | 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. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/PackageCopyRequest.md b/bindings/python/src/docs/PackageCopyRequest.md index 43238c76..59cc9c55 100644 --- a/bindings/python/src/docs/PackageCopyRequest.md +++ b/bindings/python/src/docs/PackageCopyRequest.md @@ -4,7 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **destination** | **str** | The name of the destination repository without the namespace. | +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **republish** | **bool** | If true, the package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/PackageDetail.md b/bindings/python/src/docs/PackageDetail.md new file mode 100644 index 00000000..29ee9d3e --- /dev/null +++ b/bindings/python/src/docs/PackageDetail.md @@ -0,0 +1,102 @@ +# PackageDetail + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**architectures** | [**list[Architecture]**](Architecture.md) | | [optional] +**cdn_url** | **str** | | [optional] +**checksum_md5** | **str** | | [optional] +**checksum_sha1** | **str** | | [optional] +**checksum_sha256** | **str** | | [optional] +**checksum_sha512** | **str** | | [optional] +**dependencies_checksum_md5** | **str** | A checksum of all of the package's dependencies. | [optional] +**dependencies_url** | **str** | | [optional] +**description** | **str** | A textual description of this package. | [optional] +**display_name** | **str** | | [optional] +**distro** | [**Distribution**](Distribution.md) | | [optional] +**distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] +**downloads** | **int** | | [optional] +**epoch** | **int** | The epoch of the package version (if any). | [optional] +**extension** | **str** | | [optional] +**filename** | **str** | | [optional] +**filepath** | **str** | Full path to the file, including filename e.g. bin/utils/tool.tar.gz | [optional] +**files** | [**list[PackageFile]**](PackageFile.md) | | [optional] +**format** | **str** | | [optional] +**format_url** | **str** | | [optional] +**freeable_storage** | **int** | Amount of storage that will be freed if this package is deleted | [optional] +**fully_qualified_name** | **str** | | [optional] +**has_dependencies** | **bool** | Whether the package has any dependencies (top-level or from its SBOM). | [optional] +**identifier_perm** | **str** | Unique and permanent identifier for the package. | [optional] +**identifiers** | **dict(str, str)** | Return a map of identifier field names and their values. | [optional] +**indexed** | **bool** | | [optional] +**is_cancellable** | **bool** | | [optional] +**is_copyable** | **bool** | | [optional] +**is_deleteable** | **bool** | | [optional] +**is_downloadable** | **bool** | | [optional] +**is_hidden** | **bool** | | [optional] +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] +**is_moveable** | **bool** | | [optional] +**is_quarantinable** | **bool** | | [optional] +**is_quarantined** | **bool** | | [optional] +**is_resyncable** | **bool** | | [optional] +**is_security_scannable** | **bool** | | [optional] +**is_sync_awaiting** | **bool** | | [optional] +**is_sync_completed** | **bool** | | [optional] +**is_sync_failed** | **bool** | | [optional] +**is_sync_in_flight** | **bool** | | [optional] +**is_sync_in_progress** | **bool** | | [optional] +**license** | **str** | The license of this package. | [optional] +**name** | **str** | The name of this package. | [optional] +**namespace** | **str** | | [optional] +**namespace_url** | **str** | | [optional] +**num_files** | **int** | | [optional] +**origin_repository** | **str** | | [optional] +**origin_repository_url** | **str** | | [optional] +**osi_approved** | **bool** | Whether the package's SPDX license is OSI-approved. | [optional] +**package_type** | **int** | The type of package contents. | [optional] +**policy_violated** | **bool** | Whether or not the package has violated any policy. | [optional] +**raw_license** | **str** | The raw license string. | [optional] +**release** | **str** | The release of the package version (if any). | [optional] +**repository** | **str** | | [optional] +**repository_url** | **str** | | [optional] +**security_scan_completed_at** | **datetime** | The datetime the security scanning was completed. | [optional] +**security_scan_started_at** | **datetime** | The datetime the security scanning was started. | [optional] +**security_scan_status** | **str** | | [optional] [default to 'Awaiting Security Scan'] +**security_scan_status_updated_at** | **datetime** | The datetime the security scanning status was updated. | [optional] +**self_html_url** | **str** | | [optional] +**self_url** | **str** | | [optional] +**self_webapp_url** | **str** | | [optional] +**signature_url** | **str** | | [optional] +**size** | **int** | The calculated size of the package. | [optional] +**slug** | **str** | The public unique identifier for the package. | [optional] +**slug_perm** | **str** | | [optional] +**spdx_license** | **str** | The SPDX license identifier for this package. | [optional] +**stage** | **int** | The synchronisation (in progress) stage of the package. | [optional] +**stage_str** | **str** | | [optional] +**stage_updated_at** | **datetime** | The datetime the package stage was updated at. | [optional] +**status** | **int** | The synchronisation status of the package. | [optional] +**status_reason** | **str** | A textual description for the synchronous status reason (if any | [optional] +**status_str** | **str** | | [optional] +**status_updated_at** | **datetime** | The datetime the package status was updated at. | [optional] +**status_url** | **str** | | [optional] +**store_path** | **str** | Absolute store path for the package, including store hash and name. | [optional] +**subtype** | **str** | | [optional] +**summary** | **str** | A one-liner synopsis of this package. | [optional] +**sync_finished_at** | **datetime** | The datetime the package sync was finished at. | [optional] +**sync_progress** | **int** | Synchronisation progress (from 0-100) | [optional] +**tags** | [**Tags**](Tags.md) | | [optional] +**tags_automatic** | [**Tags**](Tags.md) | | [optional] +**tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | 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. | [optional] +**type_display** | **str** | | [optional] +**uploaded_at** | **datetime** | The date this package was uploaded. | [optional] +**uploader** | **str** | | [optional] +**uploader_url** | **str** | | [optional] +**version** | **str** | The raw version for this package. | [optional] +**version_orig** | **str** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] +**vulnerability_scan_results_url** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/bindings/python/src/docs/PackageLicense.md b/bindings/python/src/docs/PackageLicense.md index b3b76af8..64c79c8c 100644 --- a/bindings/python/src/docs/PackageLicense.md +++ b/bindings/python/src/docs/PackageLicense.md @@ -3,10 +3,12 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **license_notes** | **str** | | [optional] **license_override** | **str** | | [optional] [default to 'None'] **license_url** | **str** | | [optional] **spdx_license** | **str** | | +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/PackageLicenseRequestPatch.md b/bindings/python/src/docs/PackageLicenseRequestPatch.md index 6f7ca04e..c6a3ddc2 100644 --- a/bindings/python/src/docs/PackageLicenseRequestPatch.md +++ b/bindings/python/src/docs/PackageLicenseRequestPatch.md @@ -4,10 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **action** | **str** | | [optional] [default to 'Update'] +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **license_notes** | **str** | | [optional] **license_override** | **str** | | [optional] [default to 'None'] **license_url** | **str** | | [optional] -**spdx_license** | **str** | | [optional] +**spdx_license** | **str** | | +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/PackageMove.md b/bindings/python/src/docs/PackageMove.md index f0fe7e3e..093964a2 100644 --- a/bindings/python/src/docs/PackageMove.md +++ b/bindings/python/src/docs/PackageMove.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -77,6 +78,7 @@ Name | Type | Description | Notes **status_str** | **str** | | [optional] **status_updated_at** | **datetime** | The datetime the package status was updated at. | [optional] **status_url** | **str** | | [optional] +**store_path** | **str** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **str** | | [optional] **summary** | **str** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **datetime** | The datetime the package sync was finished at. | [optional] @@ -84,12 +86,14 @@ Name | Type | Description | Notes **tags** | [**Tags**](Tags.md) | | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | 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. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/PackageMoveRequest.md b/bindings/python/src/docs/PackageMoveRequest.md index 6965de8d..23f28739 100644 --- a/bindings/python/src/docs/PackageMoveRequest.md +++ b/bindings/python/src/docs/PackageMoveRequest.md @@ -4,6 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **destination** | **str** | The name of the destination repository without the namespace. | +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/PackageQuarantine.md b/bindings/python/src/docs/PackageQuarantine.md index 67185933..01ef7718 100644 --- a/bindings/python/src/docs/PackageQuarantine.md +++ b/bindings/python/src/docs/PackageQuarantine.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -76,6 +77,7 @@ Name | Type | Description | Notes **status_str** | **str** | | [optional] **status_updated_at** | **datetime** | The datetime the package status was updated at. | [optional] **status_url** | **str** | | [optional] +**store_path** | **str** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **str** | | [optional] **summary** | **str** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **datetime** | The datetime the package sync was finished at. | [optional] @@ -83,12 +85,14 @@ Name | Type | Description | Notes **tags** | [**Tags**](Tags.md) | | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | 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. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/PackageQuarantineRequest.md b/bindings/python/src/docs/PackageQuarantineRequest.md index e15a3e1a..5665d280 100644 --- a/bindings/python/src/docs/PackageQuarantineRequest.md +++ b/bindings/python/src/docs/PackageQuarantineRequest.md @@ -3,8 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **release** | **bool** | If true, the package is released from quarantine. | [optional] **restore** | **bool** | If true, the package is released from quarantine. Note: This field is deprecated, please use 'release' instead. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/PackageResync.md b/bindings/python/src/docs/PackageResync.md index 5731c6fa..bd2f3e4a 100644 --- a/bindings/python/src/docs/PackageResync.md +++ b/bindings/python/src/docs/PackageResync.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -77,6 +78,7 @@ Name | Type | Description | Notes **status_str** | **str** | | [optional] **status_updated_at** | **datetime** | The datetime the package status was updated at. | [optional] **status_url** | **str** | | [optional] +**store_path** | **str** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **str** | | [optional] **summary** | **str** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **datetime** | The datetime the package sync was finished at. | [optional] @@ -84,12 +86,14 @@ Name | Type | Description | Notes **tags** | [**Tags**](Tags.md) | | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | 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. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/PackageTag.md b/bindings/python/src/docs/PackageTag.md index 57c73895..64fcf526 100644 --- a/bindings/python/src/docs/PackageTag.md +++ b/bindings/python/src/docs/PackageTag.md @@ -34,6 +34,7 @@ Name | Type | Description | Notes **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] **is_immutable** | **bool** | If true, created tags will be immutable. An immutable flag is a tag that cannot be removed from a package. | [optional] [default to False] +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -78,18 +79,21 @@ Name | Type | Description | Notes **status_str** | **str** | | [optional] **status_updated_at** | **datetime** | The datetime the package status was updated at. | [optional] **status_url** | **str** | | [optional] +**store_path** | **str** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **str** | | [optional] **summary** | **str** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **datetime** | The datetime the package sync was finished at. | [optional] **sync_progress** | **int** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | 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. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/PackageTagRequest.md b/bindings/python/src/docs/PackageTagRequest.md index 40720fa8..6d4a75ba 100644 --- a/bindings/python/src/docs/PackageTagRequest.md +++ b/bindings/python/src/docs/PackageTagRequest.md @@ -5,7 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **action** | **str** | | [optional] [default to 'Add'] **is_immutable** | **bool** | If true, created tags will be immutable. An immutable flag is a tag that cannot be removed from a package. | [optional] [default to False] +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **tags** | **list[str]** | A list of tags to apply the action to. Not required for clears. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/PackageVulnerability.md b/bindings/python/src/docs/PackageVulnerability.md index be865d5c..c47b5f0f 100644 --- a/bindings/python/src/docs/PackageVulnerability.md +++ b/bindings/python/src/docs/PackageVulnerability.md @@ -4,9 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identifier** | **str** | | +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **name** | **str** | The name of this package. | [optional] **url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/PackagesApi.md b/bindings/python/src/docs/PackagesApi.md index 99215a37..56f20acf 100644 --- a/bindings/python/src/docs/PackagesApi.md +++ b/bindings/python/src/docs/PackagesApi.md @@ -35,6 +35,7 @@ Method | HTTP request | Description [**packages_upload_luarocks**](PackagesApi.md#packages_upload_luarocks) | **POST** /packages/{owner}/{repo}/upload/luarocks/ | Create a new LuaRocks package [**packages_upload_maven**](PackagesApi.md#packages_upload_maven) | **POST** /packages/{owner}/{repo}/upload/maven/ | Create a new Maven package [**packages_upload_mcp**](PackagesApi.md#packages_upload_mcp) | **POST** /packages/{owner}/{repo}/upload/mcp/ | Create a new MCP package +[**packages_upload_nix**](PackagesApi.md#packages_upload_nix) | **POST** /packages/{owner}/{repo}/upload/nix/ | Create a new Nix package [**packages_upload_npm**](PackagesApi.md#packages_upload_npm) | **POST** /packages/{owner}/{repo}/upload/npm/ | Create a new npm package [**packages_upload_nuget**](PackagesApi.md#packages_upload_nuget) | **POST** /packages/{owner}/{repo}/upload/nuget/ | Create a new NuGet package [**packages_upload_p2**](PackagesApi.md#packages_upload_p2) | **POST** /packages/{owner}/{repo}/upload/p2/ | Create a new P2 package @@ -64,6 +65,7 @@ Method | HTTP request | Description [**packages_validate_upload_luarocks**](PackagesApi.md#packages_validate_upload_luarocks) | **POST** /packages/{owner}/{repo}/validate-upload/luarocks/ | Validate parameters for create LuaRocks package [**packages_validate_upload_maven**](PackagesApi.md#packages_validate_upload_maven) | **POST** /packages/{owner}/{repo}/validate-upload/maven/ | Validate parameters for create Maven package [**packages_validate_upload_mcp**](PackagesApi.md#packages_validate_upload_mcp) | **POST** /packages/{owner}/{repo}/validate-upload/mcp/ | Validate parameters for create MCP package +[**packages_validate_upload_nix**](PackagesApi.md#packages_validate_upload_nix) | **POST** /packages/{owner}/{repo}/validate-upload/nix/ | Validate parameters for create Nix package [**packages_validate_upload_npm**](PackagesApi.md#packages_validate_upload_npm) | **POST** /packages/{owner}/{repo}/validate-upload/npm/ | Validate parameters for create npm package [**packages_validate_upload_nuget**](PackagesApi.md#packages_validate_upload_nuget) | **POST** /packages/{owner}/{repo}/validate-upload/nuget/ | Validate parameters for create NuGet package [**packages_validate_upload_p2**](PackagesApi.md#packages_validate_upload_p2) | **POST** /packages/{owner}/{repo}/validate-upload/p2/ | Validate parameters for create P2 package @@ -267,7 +269,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **packages_groups_list** -> InlineResponse200 packages_groups_list(owner, repo, page=page, page_size=page_size, group_by=group_by, hide_subcomponents=hide_subcomponents, include_connected_repositories=include_connected_repositories, query=query, sort=sort) +> InlineResponse2002 packages_groups_list(owner, repo, page=page, page_size=page_size, group_by=group_by, hide_subcomponents=hide_subcomponents, include_connected_repositories=include_connected_repositories, query=query, sort=sort) Return a list of Package Groups in a repository. @@ -327,7 +329,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse200**](InlineResponse200.md) +[**InlineResponse2002**](InlineResponse2002.md) ### Authorization @@ -539,7 +541,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **packages_read** -> Package packages_read(owner, repo, identifier, include_connected_repositories=include_connected_repositories) +> PackageDetail packages_read(owner, repo, identifier, include_connected_repositories=include_connected_repositories) Get a specific package in a repository. @@ -589,7 +591,7 @@ Name | Type | Description | Notes ### Return type -[**Package**](Package.md) +[**PackageDetail**](PackageDetail.md) ### Authorization @@ -2034,6 +2036,68 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **packages_upload_nix** +> NixPackageUpload packages_upload_nix(owner, repo, data=data) + +Create a new Nix package + +Create a new Nix package + +### Example +```python +from __future__ import print_function +import time +import cloudsmith_api +from cloudsmith_api.rest import ApiException +from pprint import pprint + +# Configure API key authorization: apikey +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# Configure HTTP basic authorization: basic +configuration = cloudsmith_api.Configuration() +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = cloudsmith_api.PackagesApi(cloudsmith_api.ApiClient(configuration)) +owner = 'owner_example' # str | +repo = 'repo_example' # str | +data = cloudsmith_api.NixPackageUploadRequest() # NixPackageUploadRequest | (optional) + +try: + # Create a new Nix package + api_response = api_instance.packages_upload_nix(owner, repo, data=data) + pprint(api_response) +except ApiException as e: + print("Exception when calling PackagesApi->packages_upload_nix: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **str**| | + **repo** | **str**| | + **data** | [**NixPackageUploadRequest**](NixPackageUploadRequest.md)| | [optional] + +### Return type + +[**NixPackageUpload**](NixPackageUpload.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **packages_upload_npm** > NpmPackageUpload packages_upload_npm(owner, repo, data=data) @@ -3814,6 +3878,67 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **packages_validate_upload_nix** +> packages_validate_upload_nix(owner, repo, data=data) + +Validate parameters for create Nix package + +Validate parameters for create Nix package + +### Example +```python +from __future__ import print_function +import time +import cloudsmith_api +from cloudsmith_api.rest import ApiException +from pprint import pprint + +# Configure API key authorization: apikey +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# Configure HTTP basic authorization: basic +configuration = cloudsmith_api.Configuration() +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = cloudsmith_api.PackagesApi(cloudsmith_api.ApiClient(configuration)) +owner = 'owner_example' # str | +repo = 'repo_example' # str | +data = cloudsmith_api.NixPackageUploadRequest() # NixPackageUploadRequest | (optional) + +try: + # Validate parameters for create Nix package + api_instance.packages_validate_upload_nix(owner, repo, data=data) +except ApiException as e: + print("Exception when calling PackagesApi->packages_validate_upload_nix: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **str**| | + **repo** | **str**| | + **data** | [**NixPackageUploadRequest**](NixPackageUploadRequest.md)| | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **packages_validate_upload_npm** > packages_validate_upload_npm(owner, repo, data=data) diff --git a/bindings/python/src/docs/PythonPackageUpload.md b/bindings/python/src/docs/PythonPackageUpload.md index 88ed3d1e..9f433a47 100644 --- a/bindings/python/src/docs/PythonPackageUpload.md +++ b/bindings/python/src/docs/PythonPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -76,18 +77,21 @@ Name | Type | Description | Notes **status_str** | **str** | | [optional] **status_updated_at** | **datetime** | The datetime the package status was updated at. | [optional] **status_url** | **str** | | [optional] +**store_path** | **str** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **str** | | [optional] **summary** | **str** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **datetime** | The datetime the package sync was finished at. | [optional] **sync_progress** | **int** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | 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. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/PythonPackageUploadRequest.md b/bindings/python/src/docs/PythonPackageUploadRequest.md index d49294b0..7012c360 100644 --- a/bindings/python/src/docs/PythonPackageUploadRequest.md +++ b/bindings/python/src/docs/PythonPackageUploadRequest.md @@ -3,9 +3,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **str** | The primary file for the package. | **republish** | **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **str** | A comma-separated values list of tags to add to the package. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/RawPackageUpload.md b/bindings/python/src/docs/RawPackageUpload.md index 95ed6bab..82ef8a90 100644 --- a/bindings/python/src/docs/RawPackageUpload.md +++ b/bindings/python/src/docs/RawPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -76,18 +77,21 @@ Name | Type | Description | Notes **status_str** | **str** | | [optional] **status_updated_at** | **datetime** | The datetime the package status was updated at. | [optional] **status_url** | **str** | | [optional] +**store_path** | **str** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **str** | | [optional] **summary** | **str** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **datetime** | The datetime the package sync was finished at. | [optional] **sync_progress** | **int** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | 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. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/RawPackageUploadRequest.md b/bindings/python/src/docs/RawPackageUploadRequest.md index 9af8ab1c..fc4afb4b 100644 --- a/bindings/python/src/docs/RawPackageUploadRequest.md +++ b/bindings/python/src/docs/RawPackageUploadRequest.md @@ -5,12 +5,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **content_type** | **str** | A custom content/media (also known as MIME) type to be sent when downloading this file. By default Cloudsmith will attempt to detect the type, but if you need to override it, you can specify it here. | [optional] **description** | **str** | A textual description of this package. | [optional] +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **name** | **str** | The name of this package. | [optional] **package_file** | **str** | The primary file for the package. | **republish** | **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **summary** | **str** | A one-liner synopsis of this package. | [optional] **tags** | **str** | A comma-separated values list of tags to add to the package. | [optional] **version** | **str** | The raw version for this package. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/RecycleBinPackage.md b/bindings/python/src/docs/RecycleBinPackage.md index d3a931ae..5657beb7 100644 --- a/bindings/python/src/docs/RecycleBinPackage.md +++ b/bindings/python/src/docs/RecycleBinPackage.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **identifiers** | **dict(str, str)** | | [optional] **invoked_retention_rule** | **dict(str, str)** | Information about the retention rule that triggered deletion (if any). | [optional] **is_deleteable** | **bool** | | [optional] +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_quarantined** | **bool** | | [optional] **is_restorable** | **bool** | | [optional] **name** | **str** | The name of this package. | [optional] @@ -27,6 +28,7 @@ Name | Type | Description | Notes **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/ReposApi.md b/bindings/python/src/docs/ReposApi.md index 5df0d1f7..fbc4bd63 100644 --- a/bindings/python/src/docs/ReposApi.md +++ b/bindings/python/src/docs/ReposApi.md @@ -124,6 +124,12 @@ Method | HTTP request | Description [**repos_upstream_maven_partial_update**](ReposApi.md#repos_upstream_maven_partial_update) | **PATCH** /repos/{owner}/{identifier}/upstream/maven/{slug_perm}/ | Partially update a Maven upstream config for this repository. [**repos_upstream_maven_read**](ReposApi.md#repos_upstream_maven_read) | **GET** /repos/{owner}/{identifier}/upstream/maven/{slug_perm}/ | Retrieve a Maven upstream config for this repository. [**repos_upstream_maven_update**](ReposApi.md#repos_upstream_maven_update) | **PUT** /repos/{owner}/{identifier}/upstream/maven/{slug_perm}/ | Update a Maven upstream config for this repository. +[**repos_upstream_nix_create**](ReposApi.md#repos_upstream_nix_create) | **POST** /repos/{owner}/{identifier}/upstream/nix/ | Create a Nix upstream config for this repository. +[**repos_upstream_nix_delete**](ReposApi.md#repos_upstream_nix_delete) | **DELETE** /repos/{owner}/{identifier}/upstream/nix/{slug_perm}/ | Delete a Nix upstream config for this repository. +[**repos_upstream_nix_list**](ReposApi.md#repos_upstream_nix_list) | **GET** /repos/{owner}/{identifier}/upstream/nix/ | List Nix upstream configs for this repository. +[**repos_upstream_nix_partial_update**](ReposApi.md#repos_upstream_nix_partial_update) | **PATCH** /repos/{owner}/{identifier}/upstream/nix/{slug_perm}/ | Partially update a Nix upstream config for this repository. +[**repos_upstream_nix_read**](ReposApi.md#repos_upstream_nix_read) | **GET** /repos/{owner}/{identifier}/upstream/nix/{slug_perm}/ | Retrieve a Nix upstream config for this repository. +[**repos_upstream_nix_update**](ReposApi.md#repos_upstream_nix_update) | **PUT** /repos/{owner}/{identifier}/upstream/nix/{slug_perm}/ | Update a Nix upstream config for this repository. [**repos_upstream_npm_create**](ReposApi.md#repos_upstream_npm_create) | **POST** /repos/{owner}/{identifier}/upstream/npm/ | Create a npm upstream config for this repository. [**repos_upstream_npm_delete**](ReposApi.md#repos_upstream_npm_delete) | **DELETE** /repos/{owner}/{identifier}/upstream/npm/{slug_perm}/ | Delete a npm upstream config for this repository. [**repos_upstream_npm_list**](ReposApi.md#repos_upstream_npm_list) | **GET** /repos/{owner}/{identifier}/upstream/npm/ | List npm upstream configs for this repository. @@ -471,7 +477,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **repos_connected_list** -> InlineResponse2001 repos_connected_list(owner, identifier, page=page, page_size=page_size) +> InlineResponse2003 repos_connected_list(owner, identifier, page=page, page_size=page_size) List connected repositories for this repository. @@ -521,7 +527,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse2001**](InlineResponse2001.md) +[**InlineResponse2003**](InlineResponse2003.md) ### Authorization @@ -7651,6 +7657,383 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **repos_upstream_nix_create** +> NixUpstream repos_upstream_nix_create(owner, identifier, data=data) + +Create a Nix upstream config for this repository. + +Create a Nix upstream config for this repository. + +### Example +```python +from __future__ import print_function +import time +import cloudsmith_api +from cloudsmith_api.rest import ApiException +from pprint import pprint + +# Configure API key authorization: apikey +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# Configure HTTP basic authorization: basic +configuration = cloudsmith_api.Configuration() +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = cloudsmith_api.ReposApi(cloudsmith_api.ApiClient(configuration)) +owner = 'owner_example' # str | +identifier = 'identifier_example' # str | +data = cloudsmith_api.NixUpstreamRequest() # NixUpstreamRequest | (optional) + +try: + # Create a Nix upstream config for this repository. + api_response = api_instance.repos_upstream_nix_create(owner, identifier, data=data) + pprint(api_response) +except ApiException as e: + print("Exception when calling ReposApi->repos_upstream_nix_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **str**| | + **identifier** | **str**| | + **data** | [**NixUpstreamRequest**](NixUpstreamRequest.md)| | [optional] + +### Return type + +[**NixUpstream**](NixUpstream.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **repos_upstream_nix_delete** +> repos_upstream_nix_delete(owner, identifier, slug_perm) + +Delete a Nix upstream config for this repository. + +Delete a Nix upstream config for this repository. + +### Example +```python +from __future__ import print_function +import time +import cloudsmith_api +from cloudsmith_api.rest import ApiException +from pprint import pprint + +# Configure API key authorization: apikey +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# Configure HTTP basic authorization: basic +configuration = cloudsmith_api.Configuration() +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = cloudsmith_api.ReposApi(cloudsmith_api.ApiClient(configuration)) +owner = 'owner_example' # str | +identifier = 'identifier_example' # str | +slug_perm = 'slug_perm_example' # str | + +try: + # Delete a Nix upstream config for this repository. + api_instance.repos_upstream_nix_delete(owner, identifier, slug_perm) +except ApiException as e: + print("Exception when calling ReposApi->repos_upstream_nix_delete: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **str**| | + **identifier** | **str**| | + **slug_perm** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **repos_upstream_nix_list** +> list[NixUpstream] repos_upstream_nix_list(owner, identifier, page=page, page_size=page_size) + +List Nix upstream configs for this repository. + +List Nix upstream configs for this repository. + +### Example +```python +from __future__ import print_function +import time +import cloudsmith_api +from cloudsmith_api.rest import ApiException +from pprint import pprint + +# Configure API key authorization: apikey +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# Configure HTTP basic authorization: basic +configuration = cloudsmith_api.Configuration() +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = cloudsmith_api.ReposApi(cloudsmith_api.ApiClient(configuration)) +owner = 'owner_example' # str | +identifier = 'identifier_example' # str | +page = 56 # int | A page number within the paginated result set. (optional) +page_size = 56 # int | Number of results to return per page. (optional) + +try: + # List Nix upstream configs for this repository. + api_response = api_instance.repos_upstream_nix_list(owner, identifier, page=page, page_size=page_size) + pprint(api_response) +except ApiException as e: + print("Exception when calling ReposApi->repos_upstream_nix_list: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **str**| | + **identifier** | **str**| | + **page** | **int**| A page number within the paginated result set. | [optional] + **page_size** | **int**| Number of results to return per page. | [optional] + +### Return type + +[**list[NixUpstream]**](NixUpstream.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **repos_upstream_nix_partial_update** +> NixUpstream repos_upstream_nix_partial_update(owner, identifier, slug_perm, data=data) + +Partially update a Nix upstream config for this repository. + +Partially update a Nix upstream config for this repository. + +### Example +```python +from __future__ import print_function +import time +import cloudsmith_api +from cloudsmith_api.rest import ApiException +from pprint import pprint + +# Configure API key authorization: apikey +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# Configure HTTP basic authorization: basic +configuration = cloudsmith_api.Configuration() +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = cloudsmith_api.ReposApi(cloudsmith_api.ApiClient(configuration)) +owner = 'owner_example' # str | +identifier = 'identifier_example' # str | +slug_perm = 'slug_perm_example' # str | +data = cloudsmith_api.NixUpstreamRequestPatch() # NixUpstreamRequestPatch | (optional) + +try: + # Partially update a Nix upstream config for this repository. + api_response = api_instance.repos_upstream_nix_partial_update(owner, identifier, slug_perm, data=data) + pprint(api_response) +except ApiException as e: + print("Exception when calling ReposApi->repos_upstream_nix_partial_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **str**| | + **identifier** | **str**| | + **slug_perm** | **str**| | + **data** | [**NixUpstreamRequestPatch**](NixUpstreamRequestPatch.md)| | [optional] + +### Return type + +[**NixUpstream**](NixUpstream.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **repos_upstream_nix_read** +> NixUpstream repos_upstream_nix_read(owner, identifier, slug_perm) + +Retrieve a Nix upstream config for this repository. + +Retrieve a Nix upstream config for this repository. + +### Example +```python +from __future__ import print_function +import time +import cloudsmith_api +from cloudsmith_api.rest import ApiException +from pprint import pprint + +# Configure API key authorization: apikey +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# Configure HTTP basic authorization: basic +configuration = cloudsmith_api.Configuration() +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = cloudsmith_api.ReposApi(cloudsmith_api.ApiClient(configuration)) +owner = 'owner_example' # str | +identifier = 'identifier_example' # str | +slug_perm = 'slug_perm_example' # str | + +try: + # Retrieve a Nix upstream config for this repository. + api_response = api_instance.repos_upstream_nix_read(owner, identifier, slug_perm) + pprint(api_response) +except ApiException as e: + print("Exception when calling ReposApi->repos_upstream_nix_read: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **str**| | + **identifier** | **str**| | + **slug_perm** | **str**| | + +### Return type + +[**NixUpstream**](NixUpstream.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **repos_upstream_nix_update** +> NixUpstream repos_upstream_nix_update(owner, identifier, slug_perm, data=data) + +Update a Nix upstream config for this repository. + +Update a Nix upstream config for this repository. + +### Example +```python +from __future__ import print_function +import time +import cloudsmith_api +from cloudsmith_api.rest import ApiException +from pprint import pprint + +# Configure API key authorization: apikey +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# Configure HTTP basic authorization: basic +configuration = cloudsmith_api.Configuration() +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = cloudsmith_api.ReposApi(cloudsmith_api.ApiClient(configuration)) +owner = 'owner_example' # str | +identifier = 'identifier_example' # str | +slug_perm = 'slug_perm_example' # str | +data = cloudsmith_api.NixUpstreamRequest() # NixUpstreamRequest | (optional) + +try: + # Update a Nix upstream config for this repository. + api_response = api_instance.repos_upstream_nix_update(owner, identifier, slug_perm, data=data) + pprint(api_response) +except ApiException as e: + print("Exception when calling ReposApi->repos_upstream_nix_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **str**| | + **identifier** | **str**| | + **slug_perm** | **str**| | + **data** | [**NixUpstreamRequest**](NixUpstreamRequest.md)| | [optional] + +### Return type + +[**NixUpstream**](NixUpstream.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **repos_upstream_npm_create** > NpmUpstream repos_upstream_npm_create(owner, identifier, data=data) diff --git a/bindings/python/src/docs/RpmPackageUpload.md b/bindings/python/src/docs/RpmPackageUpload.md index f61b49bb..e813bcd0 100644 --- a/bindings/python/src/docs/RpmPackageUpload.md +++ b/bindings/python/src/docs/RpmPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -76,18 +77,21 @@ Name | Type | Description | Notes **status_str** | **str** | | [optional] **status_updated_at** | **datetime** | The datetime the package status was updated at. | [optional] **status_url** | **str** | | [optional] +**store_path** | **str** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **str** | | [optional] **summary** | **str** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **datetime** | The datetime the package sync was finished at. | [optional] **sync_progress** | **int** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | 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. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/RpmPackageUploadRequest.md b/bindings/python/src/docs/RpmPackageUploadRequest.md index 925ab077..b5f7dbd3 100644 --- a/bindings/python/src/docs/RpmPackageUploadRequest.md +++ b/bindings/python/src/docs/RpmPackageUploadRequest.md @@ -4,9 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **distribution** | **str** | The distribution to store the package for. | +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **str** | The primary file for the package. | **republish** | **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **str** | A comma-separated values list of tags to add to the package. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/RubyPackageUpload.md b/bindings/python/src/docs/RubyPackageUpload.md index f8cfe0ba..335e7109 100644 --- a/bindings/python/src/docs/RubyPackageUpload.md +++ b/bindings/python/src/docs/RubyPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -76,18 +77,21 @@ Name | Type | Description | Notes **status_str** | **str** | | [optional] **status_updated_at** | **datetime** | The datetime the package status was updated at. | [optional] **status_url** | **str** | | [optional] +**store_path** | **str** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **str** | | [optional] **summary** | **str** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **datetime** | The datetime the package sync was finished at. | [optional] **sync_progress** | **int** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | 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. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/RubyPackageUploadRequest.md b/bindings/python/src/docs/RubyPackageUploadRequest.md index b39bcb08..fc849980 100644 --- a/bindings/python/src/docs/RubyPackageUploadRequest.md +++ b/bindings/python/src/docs/RubyPackageUploadRequest.md @@ -3,9 +3,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **str** | The primary file for the package. | **republish** | **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **str** | A comma-separated values list of tags to add to the package. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/SwiftPackageUpload.md b/bindings/python/src/docs/SwiftPackageUpload.md index 2cc734db..a533a069 100644 --- a/bindings/python/src/docs/SwiftPackageUpload.md +++ b/bindings/python/src/docs/SwiftPackageUpload.md @@ -34,6 +34,7 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -81,18 +82,21 @@ Name | Type | Description | Notes **status_str** | **str** | | [optional] **status_updated_at** | **datetime** | The datetime the package status was updated at. | [optional] **status_url** | **str** | | [optional] +**store_path** | **str** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **str** | | [optional] **summary** | **str** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **datetime** | The datetime the package sync was finished at. | [optional] **sync_progress** | **int** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | 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. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | **version_orig** | **str** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/SwiftPackageUploadRequest.md b/bindings/python/src/docs/SwiftPackageUploadRequest.md index 64bd4f51..43d3bf42 100644 --- a/bindings/python/src/docs/SwiftPackageUploadRequest.md +++ b/bindings/python/src/docs/SwiftPackageUploadRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **author_name** | **str** | The name of the author of the package. | [optional] **author_org** | **str** | The organization of the author. | [optional] +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **license_url** | **str** | The license URL of this package. | [optional] **name** | **str** | The name of this package. | **package_file** | **str** | The primary file for the package. | @@ -14,6 +15,7 @@ Name | Type | Description | Notes **scope** | **str** | A scope provides a namespace for related packages within the package registry. | **tags** | **str** | A comma-separated values list of tags to add to the package. | [optional] **version** | **str** | The raw version for this package. | +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/TerraformPackageUpload.md b/bindings/python/src/docs/TerraformPackageUpload.md index 0dfe41a1..d8b9f85c 100644 --- a/bindings/python/src/docs/TerraformPackageUpload.md +++ b/bindings/python/src/docs/TerraformPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -76,18 +77,21 @@ Name | Type | Description | Notes **status_str** | **str** | | [optional] **status_updated_at** | **datetime** | The datetime the package status was updated at. | [optional] **status_url** | **str** | | [optional] +**store_path** | **str** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **str** | | [optional] **summary** | **str** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **datetime** | The datetime the package sync was finished at. | [optional] **sync_progress** | **int** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | 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. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/TerraformPackageUploadRequest.md b/bindings/python/src/docs/TerraformPackageUploadRequest.md index fd22eb76..4b20f65b 100644 --- a/bindings/python/src/docs/TerraformPackageUploadRequest.md +++ b/bindings/python/src/docs/TerraformPackageUploadRequest.md @@ -3,9 +3,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **str** | The primary file for the package. | **republish** | **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **str** | A comma-separated values list of tags to add to the package. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/UserApi.md b/bindings/python/src/docs/UserApi.md index 32602c5b..3ca5b9a9 100644 --- a/bindings/python/src/docs/UserApi.md +++ b/bindings/python/src/docs/UserApi.md @@ -173,7 +173,7 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **user_tokens_list** -> InlineResponse2002 user_tokens_list(page=page, page_size=page_size) +> InlineResponse2004 user_tokens_list(page=page, page_size=page_size) Retrieve the API key assigned to the user that is currently authenticated. @@ -219,7 +219,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse2002**](InlineResponse2002.md) +[**InlineResponse2004**](InlineResponse2004.md) ### Authorization diff --git a/bindings/python/src/docs/VagrantPackageUpload.md b/bindings/python/src/docs/VagrantPackageUpload.md index cc6c0ae6..3317aa85 100644 --- a/bindings/python/src/docs/VagrantPackageUpload.md +++ b/bindings/python/src/docs/VagrantPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -77,18 +78,21 @@ Name | Type | Description | Notes **status_str** | **str** | | [optional] **status_updated_at** | **datetime** | The datetime the package status was updated at. | [optional] **status_url** | **str** | | [optional] +**store_path** | **str** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **str** | | [optional] **summary** | **str** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **datetime** | The datetime the package sync was finished at. | [optional] **sync_progress** | **int** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | 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. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | **version_orig** | **str** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/VagrantPackageUploadRequest.md b/bindings/python/src/docs/VagrantPackageUploadRequest.md index b987c1fb..d227bc37 100644 --- a/bindings/python/src/docs/VagrantPackageUploadRequest.md +++ b/bindings/python/src/docs/VagrantPackageUploadRequest.md @@ -3,12 +3,14 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **name** | **str** | The name of this package. | **package_file** | **str** | The primary file for the package. | **provider** | **str** | The virtual machine provider for the box. | **republish** | **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **str** | A comma-separated values list of tags to add to the package. | [optional] **version** | **str** | The raw version for this package. | +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/VsxPackageUpload.md b/bindings/python/src/docs/VsxPackageUpload.md index 0fc65778..e41fb873 100644 --- a/bindings/python/src/docs/VsxPackageUpload.md +++ b/bindings/python/src/docs/VsxPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -76,18 +77,21 @@ Name | Type | Description | Notes **status_str** | **str** | | [optional] **status_updated_at** | **datetime** | The datetime the package status was updated at. | [optional] **status_url** | **str** | | [optional] +**store_path** | **str** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **str** | | [optional] **summary** | **str** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **datetime** | The datetime the package sync was finished at. | [optional] **sync_progress** | **int** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | 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. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/VsxPackageUploadRequest.md b/bindings/python/src/docs/VsxPackageUploadRequest.md index ee68e701..35a052a7 100644 --- a/bindings/python/src/docs/VsxPackageUploadRequest.md +++ b/bindings/python/src/docs/VsxPackageUploadRequest.md @@ -3,9 +3,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **str** | The primary file for the package. | **republish** | **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **str** | A comma-separated values list of tags to add to the package. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/WebOSVSeverityCounts.md b/bindings/python/src/docs/WebOSVSeverityCounts.md new file mode 100644 index 00000000..a9810439 --- /dev/null +++ b/bindings/python/src/docs/WebOSVSeverityCounts.md @@ -0,0 +1,16 @@ +# WebOSVSeverityCounts + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**critical** | **int** | | [optional] +**high** | **int** | | [optional] +**low** | **int** | | [optional] +**malware** | **int** | | [optional] +**medium** | **int** | | [optional] +**total** | **int** | | [optional] +**unknown** | **int** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/bindings/python/src/setup.py b/bindings/python/src/setup.py index d8e29f58..b4c64986 100644 --- a/bindings/python/src/setup.py +++ b/bindings/python/src/setup.py @@ -14,7 +14,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "cloudsmith_api" -VERSION = "2.0.29" +VERSION = "2.0.30" # To install the library, run the following # # python setup.py install diff --git a/bindings/python/src/test/test_inline_response2003.py b/bindings/python/src/test/test_inline_response2003.py new file mode 100644 index 00000000..4f39fc83 --- /dev/null +++ b/bindings/python/src/test/test_inline_response2003.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Cloudsmith API (v1) + + The API to the Cloudsmith Service # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudsmith.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudsmith_api +from cloudsmith_api.models.inline_response2003 import InlineResponse2003 # noqa: E501 +from cloudsmith_api.rest import ApiException + + +class TestInlineResponse2003(unittest.TestCase): + """InlineResponse2003 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testInlineResponse2003(self): + """Test InlineResponse2003""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudsmith_api.models.inline_response2003.InlineResponse2003() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/bindings/python/src/test/test_inline_response2004.py b/bindings/python/src/test/test_inline_response2004.py new file mode 100644 index 00000000..ae82b741 --- /dev/null +++ b/bindings/python/src/test/test_inline_response2004.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Cloudsmith API (v1) + + The API to the Cloudsmith Service # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudsmith.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudsmith_api +from cloudsmith_api.models.inline_response2004 import InlineResponse2004 # noqa: E501 +from cloudsmith_api.rest import ApiException + + +class TestInlineResponse2004(unittest.TestCase): + """InlineResponse2004 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testInlineResponse2004(self): + """Test InlineResponse2004""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudsmith_api.models.inline_response2004.InlineResponse2004() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/bindings/python/src/test/test_nix_package_upload.py b/bindings/python/src/test/test_nix_package_upload.py new file mode 100644 index 00000000..08f0ef52 --- /dev/null +++ b/bindings/python/src/test/test_nix_package_upload.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Cloudsmith API (v1) + + The API to the Cloudsmith Service # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudsmith.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudsmith_api +from cloudsmith_api.models.nix_package_upload import NixPackageUpload # noqa: E501 +from cloudsmith_api.rest import ApiException + + +class TestNixPackageUpload(unittest.TestCase): + """NixPackageUpload unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNixPackageUpload(self): + """Test NixPackageUpload""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudsmith_api.models.nix_package_upload.NixPackageUpload() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/bindings/python/src/test/test_nix_package_upload_request.py b/bindings/python/src/test/test_nix_package_upload_request.py new file mode 100644 index 00000000..e55c0e48 --- /dev/null +++ b/bindings/python/src/test/test_nix_package_upload_request.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Cloudsmith API (v1) + + The API to the Cloudsmith Service # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudsmith.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudsmith_api +from cloudsmith_api.models.nix_package_upload_request import NixPackageUploadRequest # noqa: E501 +from cloudsmith_api.rest import ApiException + + +class TestNixPackageUploadRequest(unittest.TestCase): + """NixPackageUploadRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNixPackageUploadRequest(self): + """Test NixPackageUploadRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudsmith_api.models.nix_package_upload_request.NixPackageUploadRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/bindings/python/src/test/test_nix_upstream.py b/bindings/python/src/test/test_nix_upstream.py new file mode 100644 index 00000000..a65072b7 --- /dev/null +++ b/bindings/python/src/test/test_nix_upstream.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Cloudsmith API (v1) + + The API to the Cloudsmith Service # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudsmith.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudsmith_api +from cloudsmith_api.models.nix_upstream import NixUpstream # noqa: E501 +from cloudsmith_api.rest import ApiException + + +class TestNixUpstream(unittest.TestCase): + """NixUpstream unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNixUpstream(self): + """Test NixUpstream""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudsmith_api.models.nix_upstream.NixUpstream() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/bindings/python/src/test/test_nix_upstream_request.py b/bindings/python/src/test/test_nix_upstream_request.py new file mode 100644 index 00000000..307c3261 --- /dev/null +++ b/bindings/python/src/test/test_nix_upstream_request.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Cloudsmith API (v1) + + The API to the Cloudsmith Service # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudsmith.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudsmith_api +from cloudsmith_api.models.nix_upstream_request import NixUpstreamRequest # noqa: E501 +from cloudsmith_api.rest import ApiException + + +class TestNixUpstreamRequest(unittest.TestCase): + """NixUpstreamRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNixUpstreamRequest(self): + """Test NixUpstreamRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudsmith_api.models.nix_upstream_request.NixUpstreamRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/bindings/python/src/test/test_nix_upstream_request_patch.py b/bindings/python/src/test/test_nix_upstream_request_patch.py new file mode 100644 index 00000000..1d022bc4 --- /dev/null +++ b/bindings/python/src/test/test_nix_upstream_request_patch.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Cloudsmith API (v1) + + The API to the Cloudsmith Service # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudsmith.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudsmith_api +from cloudsmith_api.models.nix_upstream_request_patch import NixUpstreamRequestPatch # noqa: E501 +from cloudsmith_api.rest import ApiException + + +class TestNixUpstreamRequestPatch(unittest.TestCase): + """NixUpstreamRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNixUpstreamRequestPatch(self): + """Test NixUpstreamRequestPatch""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudsmith_api.models.nix_upstream_request_patch.NixUpstreamRequestPatch() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/bindings/python/src/test/test_organization_usage.py b/bindings/python/src/test/test_organization_usage.py new file mode 100644 index 00000000..cc524375 --- /dev/null +++ b/bindings/python/src/test/test_organization_usage.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Cloudsmith API (v1) + + The API to the Cloudsmith Service # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudsmith.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudsmith_api +from cloudsmith_api.models.organization_usage import OrganizationUsage # noqa: E501 +from cloudsmith_api.rest import ApiException + + +class TestOrganizationUsage(unittest.TestCase): + """OrganizationUsage unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testOrganizationUsage(self): + """Test OrganizationUsage""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudsmith_api.models.organization_usage.OrganizationUsage() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/bindings/python/src/test/test_organization_usage_update.py b/bindings/python/src/test/test_organization_usage_update.py new file mode 100644 index 00000000..e64fa268 --- /dev/null +++ b/bindings/python/src/test/test_organization_usage_update.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Cloudsmith API (v1) + + The API to the Cloudsmith Service # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudsmith.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudsmith_api +from cloudsmith_api.models.organization_usage_update import OrganizationUsageUpdate # noqa: E501 +from cloudsmith_api.rest import ApiException + + +class TestOrganizationUsageUpdate(unittest.TestCase): + """OrganizationUsageUpdate unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testOrganizationUsageUpdate(self): + """Test OrganizationUsageUpdate""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudsmith_api.models.organization_usage_update.OrganizationUsageUpdate() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/bindings/python/src/test/test_organization_usage_update_request_patch.py b/bindings/python/src/test/test_organization_usage_update_request_patch.py new file mode 100644 index 00000000..b8f8b53f --- /dev/null +++ b/bindings/python/src/test/test_organization_usage_update_request_patch.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Cloudsmith API (v1) + + The API to the Cloudsmith Service # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudsmith.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudsmith_api +from cloudsmith_api.models.organization_usage_update_request_patch import OrganizationUsageUpdateRequestPatch # noqa: E501 +from cloudsmith_api.rest import ApiException + + +class TestOrganizationUsageUpdateRequestPatch(unittest.TestCase): + """OrganizationUsageUpdateRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testOrganizationUsageUpdateRequestPatch(self): + """Test OrganizationUsageUpdateRequestPatch""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudsmith_api.models.organization_usage_update_request_patch.OrganizationUsageUpdateRequestPatch() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/bindings/python/src/test/test_orgs_api.py b/bindings/python/src/test/test_orgs_api.py index e16001bd..d9d8c19a 100644 --- a/bindings/python/src/test/test_orgs_api.py +++ b/bindings/python/src/test/test_orgs_api.py @@ -323,6 +323,12 @@ def test_orgs_read(self): """ pass + def test_orgs_retrieve_usage_limits(self): + """Test case for orgs_retrieve_usage_limits + + """ + pass + def test_orgs_saml_authentication_partial_update(self): """Test case for orgs_saml_authentication_partial_update @@ -477,6 +483,12 @@ def test_orgs_teams_read(self): """ pass + def test_orgs_update_usage_limits(self): + """Test case for orgs_update_usage_limits + + """ + pass + def test_orgs_vulnerability_policy_create(self): """Test case for orgs_vulnerability_policy_create diff --git a/bindings/python/src/test/test_package_detail.py b/bindings/python/src/test/test_package_detail.py new file mode 100644 index 00000000..642463ba --- /dev/null +++ b/bindings/python/src/test/test_package_detail.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Cloudsmith API (v1) + + The API to the Cloudsmith Service # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudsmith.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudsmith_api +from cloudsmith_api.models.package_detail import PackageDetail # noqa: E501 +from cloudsmith_api.rest import ApiException + + +class TestPackageDetail(unittest.TestCase): + """PackageDetail unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPackageDetail(self): + """Test PackageDetail""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudsmith_api.models.package_detail.PackageDetail() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/bindings/python/src/test/test_packages_api.py b/bindings/python/src/test/test_packages_api.py index 2b7a95b5..43f08253 100644 --- a/bindings/python/src/test/test_packages_api.py +++ b/bindings/python/src/test/test_packages_api.py @@ -246,6 +246,13 @@ def test_packages_upload_mcp(self): """ pass + def test_packages_upload_nix(self): + """Test case for packages_upload_nix + + Create a new Nix package # noqa: E501 + """ + pass + def test_packages_upload_npm(self): """Test case for packages_upload_npm @@ -449,6 +456,13 @@ def test_packages_validate_upload_mcp(self): """ pass + def test_packages_validate_upload_nix(self): + """Test case for packages_validate_upload_nix + + Validate parameters for create Nix package # noqa: E501 + """ + pass + def test_packages_validate_upload_npm(self): """Test case for packages_validate_upload_npm diff --git a/bindings/python/src/test/test_repos_api.py b/bindings/python/src/test/test_repos_api.py index cb86a027..25765805 100644 --- a/bindings/python/src/test/test_repos_api.py +++ b/bindings/python/src/test/test_repos_api.py @@ -868,6 +868,48 @@ def test_repos_upstream_maven_update(self): """ pass + def test_repos_upstream_nix_create(self): + """Test case for repos_upstream_nix_create + + Create a Nix upstream config for this repository. # noqa: E501 + """ + pass + + def test_repos_upstream_nix_delete(self): + """Test case for repos_upstream_nix_delete + + Delete a Nix upstream config for this repository. # noqa: E501 + """ + pass + + def test_repos_upstream_nix_list(self): + """Test case for repos_upstream_nix_list + + List Nix upstream configs for this repository. # noqa: E501 + """ + pass + + def test_repos_upstream_nix_partial_update(self): + """Test case for repos_upstream_nix_partial_update + + Partially update a Nix upstream config for this repository. # noqa: E501 + """ + pass + + def test_repos_upstream_nix_read(self): + """Test case for repos_upstream_nix_read + + Retrieve a Nix upstream config for this repository. # noqa: E501 + """ + pass + + def test_repos_upstream_nix_update(self): + """Test case for repos_upstream_nix_update + + Update a Nix upstream config for this repository. # noqa: E501 + """ + pass + def test_repos_upstream_npm_create(self): """Test case for repos_upstream_npm_create diff --git a/bindings/python/src/test/test_web_osv_severity_counts.py b/bindings/python/src/test/test_web_osv_severity_counts.py new file mode 100644 index 00000000..b9f631e0 --- /dev/null +++ b/bindings/python/src/test/test_web_osv_severity_counts.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Cloudsmith API (v1) + + The API to the Cloudsmith Service # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudsmith.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudsmith_api +from cloudsmith_api.models.web_osv_severity_counts import WebOSVSeverityCounts # noqa: E501 +from cloudsmith_api.rest import ApiException + + +class TestWebOSVSeverityCounts(unittest.TestCase): + """WebOSVSeverityCounts unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testWebOSVSeverityCounts(self): + """Test WebOSVSeverityCounts""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudsmith_api.models.web_osv_severity_counts.WebOSVSeverityCounts() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/bindings/ruby/src/README.md b/bindings/ruby/src/README.md index 0a1e054e..4353fb94 100644 --- a/bindings/ruby/src/README.md +++ b/bindings/ruby/src/README.md @@ -7,7 +7,7 @@ The API to the Cloudsmith Service This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: - API version: v1 -- Package version: 2.0.29 +- Package version: 2.0.30 - Build package: io.swagger.codegen.languages.RubyClientCodegen For more information, please visit [https://help.cloudsmith.io](https://help.cloudsmith.io) @@ -24,15 +24,15 @@ gem build cloudsmith-api.gemspec Then either install the gem locally: ```shell -gem install ./cloudsmith-api-2.0.29.gem +gem install ./cloudsmith-api-2.0.30.gem ``` -(for development, run `gem install --dev ./cloudsmith-api-2.0.29.gem` to install the development dependencies) +(for development, run `gem install --dev ./cloudsmith-api-2.0.30.gem` to install the development dependencies) or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/). Finally add this to the Gemfile: - gem 'cloudsmith-api', '~> 2.0.29' + gem 'cloudsmith-api', '~> 2.0.30' ### Install from Git @@ -165,6 +165,7 @@ Class | Method | HTTP request | Description *CloudsmithApi::OrgsApi* | [**orgs_openid_connect_read**](docs/OrgsApi.md#orgs_openid_connect_read) | **GET** /orgs/{org}/openid-connect/{slug_perm}/ | Retrieve a specific OpenID Connect provider setting for the org. *CloudsmithApi::OrgsApi* | [**orgs_openid_connect_update**](docs/OrgsApi.md#orgs_openid_connect_update) | **PUT** /orgs/{org}/openid-connect/{slug_perm}/ | Update a specific OpenID Connect provider setting for the org. *CloudsmithApi::OrgsApi* | [**orgs_read**](docs/OrgsApi.md#orgs_read) | **GET** /orgs/{org}/ | Get the details for the specific organization. +*CloudsmithApi::OrgsApi* | [**orgs_retrieve_usage_limits**](docs/OrgsApi.md#orgs_retrieve_usage_limits) | **GET** /orgs/{org}/usage-limits/ | *CloudsmithApi::OrgsApi* | [**orgs_saml_authentication_partial_update**](docs/OrgsApi.md#orgs_saml_authentication_partial_update) | **PATCH** /orgs/{org}/saml-authentication | Update the SAML Authentication settings for this Organization. *CloudsmithApi::OrgsApi* | [**orgs_saml_authentication_read**](docs/OrgsApi.md#orgs_saml_authentication_read) | **GET** /orgs/{org}/saml-authentication | Retrieve the SAML Authentication settings for this Organization. *CloudsmithApi::OrgsApi* | [**orgs_saml_group_sync_create**](docs/OrgsApi.md#orgs_saml_group_sync_create) | **POST** /orgs/{org}/saml-group-sync/ | Create a new SAML Group Sync mapping within an organization. @@ -187,6 +188,7 @@ Class | Method | HTTP request | Description *CloudsmithApi::OrgsApi* | [**orgs_teams_members_update**](docs/OrgsApi.md#orgs_teams_members_update) | **PUT** /orgs/{org}/teams/{team}/members | Replace all team members. *CloudsmithApi::OrgsApi* | [**orgs_teams_partial_update**](docs/OrgsApi.md#orgs_teams_partial_update) | **PATCH** /orgs/{org}/teams/{team}/ | Update a specific team in a organization. *CloudsmithApi::OrgsApi* | [**orgs_teams_read**](docs/OrgsApi.md#orgs_teams_read) | **GET** /orgs/{org}/teams/{team}/ | Get the details of a specific team within an organization. +*CloudsmithApi::OrgsApi* | [**orgs_update_usage_limits**](docs/OrgsApi.md#orgs_update_usage_limits) | **PATCH** /orgs/{org}/usage-limits/ | *CloudsmithApi::OrgsApi* | [**orgs_vulnerability_policy_create**](docs/OrgsApi.md#orgs_vulnerability_policy_create) | **POST** /orgs/{org}/vulnerability-policy/ | Create a package vulnerability policy. *CloudsmithApi::OrgsApi* | [**orgs_vulnerability_policy_delete**](docs/OrgsApi.md#orgs_vulnerability_policy_delete) | **DELETE** /orgs/{org}/vulnerability-policy/{slug_perm}/ | Delete a package vulnerability policy. *CloudsmithApi::OrgsApi* | [**orgs_vulnerability_policy_evaluation_create**](docs/OrgsApi.md#orgs_vulnerability_policy_evaluation_create) | **POST** /orgs/{org}/vulnerability-policy/{policy_slug_perm}/evaluation/ | Create an evaluation request for this policy. @@ -228,6 +230,7 @@ Class | Method | HTTP request | Description *CloudsmithApi::PackagesApi* | [**packages_upload_luarocks**](docs/PackagesApi.md#packages_upload_luarocks) | **POST** /packages/{owner}/{repo}/upload/luarocks/ | Create a new LuaRocks package *CloudsmithApi::PackagesApi* | [**packages_upload_maven**](docs/PackagesApi.md#packages_upload_maven) | **POST** /packages/{owner}/{repo}/upload/maven/ | Create a new Maven package *CloudsmithApi::PackagesApi* | [**packages_upload_mcp**](docs/PackagesApi.md#packages_upload_mcp) | **POST** /packages/{owner}/{repo}/upload/mcp/ | Create a new MCP package +*CloudsmithApi::PackagesApi* | [**packages_upload_nix**](docs/PackagesApi.md#packages_upload_nix) | **POST** /packages/{owner}/{repo}/upload/nix/ | Create a new Nix package *CloudsmithApi::PackagesApi* | [**packages_upload_npm**](docs/PackagesApi.md#packages_upload_npm) | **POST** /packages/{owner}/{repo}/upload/npm/ | Create a new npm package *CloudsmithApi::PackagesApi* | [**packages_upload_nuget**](docs/PackagesApi.md#packages_upload_nuget) | **POST** /packages/{owner}/{repo}/upload/nuget/ | Create a new NuGet package *CloudsmithApi::PackagesApi* | [**packages_upload_p2**](docs/PackagesApi.md#packages_upload_p2) | **POST** /packages/{owner}/{repo}/upload/p2/ | Create a new P2 package @@ -257,6 +260,7 @@ Class | Method | HTTP request | Description *CloudsmithApi::PackagesApi* | [**packages_validate_upload_luarocks**](docs/PackagesApi.md#packages_validate_upload_luarocks) | **POST** /packages/{owner}/{repo}/validate-upload/luarocks/ | Validate parameters for create LuaRocks package *CloudsmithApi::PackagesApi* | [**packages_validate_upload_maven**](docs/PackagesApi.md#packages_validate_upload_maven) | **POST** /packages/{owner}/{repo}/validate-upload/maven/ | Validate parameters for create Maven package *CloudsmithApi::PackagesApi* | [**packages_validate_upload_mcp**](docs/PackagesApi.md#packages_validate_upload_mcp) | **POST** /packages/{owner}/{repo}/validate-upload/mcp/ | Validate parameters for create MCP package +*CloudsmithApi::PackagesApi* | [**packages_validate_upload_nix**](docs/PackagesApi.md#packages_validate_upload_nix) | **POST** /packages/{owner}/{repo}/validate-upload/nix/ | Validate parameters for create Nix package *CloudsmithApi::PackagesApi* | [**packages_validate_upload_npm**](docs/PackagesApi.md#packages_validate_upload_npm) | **POST** /packages/{owner}/{repo}/validate-upload/npm/ | Validate parameters for create npm package *CloudsmithApi::PackagesApi* | [**packages_validate_upload_nuget**](docs/PackagesApi.md#packages_validate_upload_nuget) | **POST** /packages/{owner}/{repo}/validate-upload/nuget/ | Validate parameters for create NuGet package *CloudsmithApi::PackagesApi* | [**packages_validate_upload_p2**](docs/PackagesApi.md#packages_validate_upload_p2) | **POST** /packages/{owner}/{repo}/validate-upload/p2/ | Validate parameters for create P2 package @@ -395,6 +399,12 @@ Class | Method | HTTP request | Description *CloudsmithApi::ReposApi* | [**repos_upstream_maven_partial_update**](docs/ReposApi.md#repos_upstream_maven_partial_update) | **PATCH** /repos/{owner}/{identifier}/upstream/maven/{slug_perm}/ | Partially update a Maven upstream config for this repository. *CloudsmithApi::ReposApi* | [**repos_upstream_maven_read**](docs/ReposApi.md#repos_upstream_maven_read) | **GET** /repos/{owner}/{identifier}/upstream/maven/{slug_perm}/ | Retrieve a Maven upstream config for this repository. *CloudsmithApi::ReposApi* | [**repos_upstream_maven_update**](docs/ReposApi.md#repos_upstream_maven_update) | **PUT** /repos/{owner}/{identifier}/upstream/maven/{slug_perm}/ | Update a Maven upstream config for this repository. +*CloudsmithApi::ReposApi* | [**repos_upstream_nix_create**](docs/ReposApi.md#repos_upstream_nix_create) | **POST** /repos/{owner}/{identifier}/upstream/nix/ | Create a Nix upstream config for this repository. +*CloudsmithApi::ReposApi* | [**repos_upstream_nix_delete**](docs/ReposApi.md#repos_upstream_nix_delete) | **DELETE** /repos/{owner}/{identifier}/upstream/nix/{slug_perm}/ | Delete a Nix upstream config for this repository. +*CloudsmithApi::ReposApi* | [**repos_upstream_nix_list**](docs/ReposApi.md#repos_upstream_nix_list) | **GET** /repos/{owner}/{identifier}/upstream/nix/ | List Nix upstream configs for this repository. +*CloudsmithApi::ReposApi* | [**repos_upstream_nix_partial_update**](docs/ReposApi.md#repos_upstream_nix_partial_update) | **PATCH** /repos/{owner}/{identifier}/upstream/nix/{slug_perm}/ | Partially update a Nix upstream config for this repository. +*CloudsmithApi::ReposApi* | [**repos_upstream_nix_read**](docs/ReposApi.md#repos_upstream_nix_read) | **GET** /repos/{owner}/{identifier}/upstream/nix/{slug_perm}/ | Retrieve a Nix upstream config for this repository. +*CloudsmithApi::ReposApi* | [**repos_upstream_nix_update**](docs/ReposApi.md#repos_upstream_nix_update) | **PUT** /repos/{owner}/{identifier}/upstream/nix/{slug_perm}/ | Update a Nix upstream config for this repository. *CloudsmithApi::ReposApi* | [**repos_upstream_npm_create**](docs/ReposApi.md#repos_upstream_npm_create) | **POST** /repos/{owner}/{identifier}/upstream/npm/ | Create a npm upstream config for this repository. *CloudsmithApi::ReposApi* | [**repos_upstream_npm_delete**](docs/ReposApi.md#repos_upstream_npm_delete) | **DELETE** /repos/{owner}/{identifier}/upstream/npm/{slug_perm}/ | Delete a npm upstream config for this repository. *CloudsmithApi::ReposApi* | [**repos_upstream_npm_list**](docs/ReposApi.md#repos_upstream_npm_list) | **GET** /repos/{owner}/{identifier}/upstream/npm/ | List npm upstream configs for this repository. @@ -555,6 +565,8 @@ Class | Method | HTTP request | Description - [CloudsmithApi::InlineResponse200](docs/InlineResponse200.md) - [CloudsmithApi::InlineResponse2001](docs/InlineResponse2001.md) - [CloudsmithApi::InlineResponse2002](docs/InlineResponse2002.md) + - [CloudsmithApi::InlineResponse2003](docs/InlineResponse2003.md) + - [CloudsmithApi::InlineResponse2004](docs/InlineResponse2004.md) - [CloudsmithApi::LuarocksPackageUpload](docs/LuarocksPackageUpload.md) - [CloudsmithApi::LuarocksPackageUploadRequest](docs/LuarocksPackageUploadRequest.md) - [CloudsmithApi::MavenPackageUpload](docs/MavenPackageUpload.md) @@ -570,6 +582,11 @@ Class | Method | HTTP request | Description - [CloudsmithApi::NestedLicensePolicy](docs/NestedLicensePolicy.md) - [CloudsmithApi::NestedVulnerabilityPolicy](docs/NestedVulnerabilityPolicy.md) - [CloudsmithApi::NestedVulnerabilityScanResults](docs/NestedVulnerabilityScanResults.md) + - [CloudsmithApi::NixPackageUpload](docs/NixPackageUpload.md) + - [CloudsmithApi::NixPackageUploadRequest](docs/NixPackageUploadRequest.md) + - [CloudsmithApi::NixUpstream](docs/NixUpstream.md) + - [CloudsmithApi::NixUpstreamRequest](docs/NixUpstreamRequest.md) + - [CloudsmithApi::NixUpstreamRequestPatch](docs/NixUpstreamRequestPatch.md) - [CloudsmithApi::NpmPackageUpload](docs/NpmPackageUpload.md) - [CloudsmithApi::NpmPackageUploadRequest](docs/NpmPackageUploadRequest.md) - [CloudsmithApi::NpmUpstream](docs/NpmUpstream.md) @@ -611,6 +628,9 @@ Class | Method | HTTP request | Description - [CloudsmithApi::OrganizationTeamRequest](docs/OrganizationTeamRequest.md) - [CloudsmithApi::OrganizationTeamRequestPatch](docs/OrganizationTeamRequestPatch.md) - [CloudsmithApi::OrganizationTeamServiceMember](docs/OrganizationTeamServiceMember.md) + - [CloudsmithApi::OrganizationUsage](docs/OrganizationUsage.md) + - [CloudsmithApi::OrganizationUsageUpdate](docs/OrganizationUsageUpdate.md) + - [CloudsmithApi::OrganizationUsageUpdateRequestPatch](docs/OrganizationUsageUpdateRequestPatch.md) - [CloudsmithApi::P2PackageUpload](docs/P2PackageUpload.md) - [CloudsmithApi::P2PackageUploadRequest](docs/P2PackageUploadRequest.md) - [CloudsmithApi::Package](docs/Package.md) @@ -623,6 +643,7 @@ Class | Method | HTTP request | Description - [CloudsmithApi::PackageDenyPolicyRequestPatch](docs/PackageDenyPolicyRequestPatch.md) - [CloudsmithApi::PackageDependencies](docs/PackageDependencies.md) - [CloudsmithApi::PackageDependency](docs/PackageDependency.md) + - [CloudsmithApi::PackageDetail](docs/PackageDetail.md) - [CloudsmithApi::PackageFile](docs/PackageFile.md) - [CloudsmithApi::PackageFilePartsUpload](docs/PackageFilePartsUpload.md) - [CloudsmithApi::PackageFileUpload](docs/PackageFileUpload.md) @@ -760,6 +781,7 @@ Class | Method | HTTP request | Description - [CloudsmithApi::VulnerabilityScanResults](docs/VulnerabilityScanResults.md) - [CloudsmithApi::VulnerabilityScanResultsList](docs/VulnerabilityScanResultsList.md) - [CloudsmithApi::VulnerabilityScanVersion](docs/VulnerabilityScanVersion.md) + - [CloudsmithApi::WebOSVSeverityCounts](docs/WebOSVSeverityCounts.md) - [CloudsmithApi::WebhookTemplate](docs/WebhookTemplate.md) diff --git a/bindings/ruby/src/build.json b/bindings/ruby/src/build.json index 44df3834..e3544aae 100644 --- a/bindings/ruby/src/build.json +++ b/bindings/ruby/src/build.json @@ -8,7 +8,7 @@ "gemName": "cloudsmith-api", "gemRequiredRubyVersion": ">= 1.9", "gemSummary": "Cloudsmith API", - "gemVersion": "2.0.29", + "gemVersion": "2.0.30", "hideGenerationTimestamp": true, "moduleName": "CloudsmithApi", "sortParamsByRequiredFlag": true diff --git a/bindings/ruby/src/docs/AlpinePackageUpload.md b/bindings/ruby/src/docs/AlpinePackageUpload.md index f37b68c2..48b6f9df 100644 --- a/bindings/ruby/src/docs/AlpinePackageUpload.md +++ b/bindings/ruby/src/docs/AlpinePackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -76,18 +77,21 @@ Name | Type | Description | Notes **status_str** | **String** | | [optional] **status_updated_at** | **DateTime** | The datetime the package status was updated at. | [optional] **status_url** | **String** | | [optional] +**store_path** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **DateTime** | The datetime the package sync was finished at. | [optional] **sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | 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. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/AlpinePackageUploadRequest.md b/bindings/ruby/src/docs/AlpinePackageUploadRequest.md index 02ac5af7..8bc5f429 100644 --- a/bindings/ruby/src/docs/AlpinePackageUploadRequest.md +++ b/bindings/ruby/src/docs/AlpinePackageUploadRequest.md @@ -4,8 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **distribution** | **String** | The distribution to store the package for. | +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **String** | The primary file for the package. | **republish** | **BOOLEAN** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/CargoPackageUpload.md b/bindings/ruby/src/docs/CargoPackageUpload.md index 55616766..b5d43e01 100644 --- a/bindings/ruby/src/docs/CargoPackageUpload.md +++ b/bindings/ruby/src/docs/CargoPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -76,18 +77,21 @@ Name | Type | Description | Notes **status_str** | **String** | | [optional] **status_updated_at** | **DateTime** | The datetime the package status was updated at. | [optional] **status_url** | **String** | | [optional] +**store_path** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **DateTime** | The datetime the package sync was finished at. | [optional] **sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | 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. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/CargoPackageUploadRequest.md b/bindings/ruby/src/docs/CargoPackageUploadRequest.md index 49ffb8b8..ca0ab2a0 100644 --- a/bindings/ruby/src/docs/CargoPackageUploadRequest.md +++ b/bindings/ruby/src/docs/CargoPackageUploadRequest.md @@ -3,8 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **String** | The primary file for the package. | **republish** | **BOOLEAN** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/CocoapodsPackageUpload.md b/bindings/ruby/src/docs/CocoapodsPackageUpload.md index 448b8d40..ac34ec28 100644 --- a/bindings/ruby/src/docs/CocoapodsPackageUpload.md +++ b/bindings/ruby/src/docs/CocoapodsPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -76,18 +77,21 @@ Name | Type | Description | Notes **status_str** | **String** | | [optional] **status_updated_at** | **DateTime** | The datetime the package status was updated at. | [optional] **status_url** | **String** | | [optional] +**store_path** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **DateTime** | The datetime the package sync was finished at. | [optional] **sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | 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. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/CocoapodsPackageUploadRequest.md b/bindings/ruby/src/docs/CocoapodsPackageUploadRequest.md index 0543d164..98299cf0 100644 --- a/bindings/ruby/src/docs/CocoapodsPackageUploadRequest.md +++ b/bindings/ruby/src/docs/CocoapodsPackageUploadRequest.md @@ -3,8 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **String** | The primary file for the package. | **republish** | **BOOLEAN** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/ComposerPackageUpload.md b/bindings/ruby/src/docs/ComposerPackageUpload.md index c6dae012..b81fe1fb 100644 --- a/bindings/ruby/src/docs/ComposerPackageUpload.md +++ b/bindings/ruby/src/docs/ComposerPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -76,18 +77,21 @@ Name | Type | Description | Notes **status_str** | **String** | | [optional] **status_updated_at** | **DateTime** | The datetime the package status was updated at. | [optional] **status_url** | **String** | | [optional] +**store_path** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **DateTime** | The datetime the package sync was finished at. | [optional] **sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | 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. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/ComposerPackageUploadRequest.md b/bindings/ruby/src/docs/ComposerPackageUploadRequest.md index 148267ed..cb870c55 100644 --- a/bindings/ruby/src/docs/ComposerPackageUploadRequest.md +++ b/bindings/ruby/src/docs/ComposerPackageUploadRequest.md @@ -3,9 +3,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **String** | The primary file for the package. | **republish** | **BOOLEAN** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] **version** | **String** | The raw version for this package. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/ConanPackageUpload.md b/bindings/ruby/src/docs/ConanPackageUpload.md index 24ecf92a..ae7ef2e6 100644 --- a/bindings/ruby/src/docs/ConanPackageUpload.md +++ b/bindings/ruby/src/docs/ConanPackageUpload.md @@ -34,6 +34,7 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -78,18 +79,21 @@ Name | Type | Description | Notes **status_str** | **String** | | [optional] **status_updated_at** | **DateTime** | The datetime the package status was updated at. | [optional] **status_url** | **String** | | [optional] +**store_path** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **DateTime** | The datetime the package sync was finished at. | [optional] **sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | 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. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/ConanPackageUploadRequest.md b/bindings/ruby/src/docs/ConanPackageUploadRequest.md index 3be765bb..6b819f13 100644 --- a/bindings/ruby/src/docs/ConanPackageUploadRequest.md +++ b/bindings/ruby/src/docs/ConanPackageUploadRequest.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes **conan_channel** | **String** | Conan channel. | [optional] **conan_prefix** | **String** | Conan prefix (User). | [optional] **info_file** | **String** | The info file is an python file containing the package metadata. | +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **manifest_file** | **String** | The info file is an python file containing the package metadata. | **metadata_file** | **String** | The conan file is an python file containing the package metadata. | **name** | **String** | The name of this package. | [optional] @@ -13,5 +14,6 @@ Name | Type | Description | Notes **republish** | **BOOLEAN** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] **version** | **String** | The raw version for this package. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/CondaPackageUpload.md b/bindings/ruby/src/docs/CondaPackageUpload.md index a177a11d..52da76f1 100644 --- a/bindings/ruby/src/docs/CondaPackageUpload.md +++ b/bindings/ruby/src/docs/CondaPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -76,18 +77,21 @@ Name | Type | Description | Notes **status_str** | **String** | | [optional] **status_updated_at** | **DateTime** | The datetime the package status was updated at. | [optional] **status_url** | **String** | | [optional] +**store_path** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **DateTime** | The datetime the package sync was finished at. | [optional] **sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | 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. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/CondaPackageUploadRequest.md b/bindings/ruby/src/docs/CondaPackageUploadRequest.md index bde344a5..f1ad328c 100644 --- a/bindings/ruby/src/docs/CondaPackageUploadRequest.md +++ b/bindings/ruby/src/docs/CondaPackageUploadRequest.md @@ -3,8 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **String** | The primary file for the package. | **republish** | **BOOLEAN** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/CranPackageUpload.md b/bindings/ruby/src/docs/CranPackageUpload.md index fb307ec6..6980a638 100644 --- a/bindings/ruby/src/docs/CranPackageUpload.md +++ b/bindings/ruby/src/docs/CranPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -77,18 +78,21 @@ Name | Type | Description | Notes **status_str** | **String** | | [optional] **status_updated_at** | **DateTime** | The datetime the package status was updated at. | [optional] **status_url** | **String** | | [optional] +**store_path** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **DateTime** | The datetime the package sync was finished at. | [optional] **sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | 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. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/CranPackageUploadRequest.md b/bindings/ruby/src/docs/CranPackageUploadRequest.md index 88171cb6..9e2e31e8 100644 --- a/bindings/ruby/src/docs/CranPackageUploadRequest.md +++ b/bindings/ruby/src/docs/CranPackageUploadRequest.md @@ -4,9 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **architecture** | **String** | Binary package uploads for macOS should specify the architecture they were built for. | [optional] +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **String** | The primary file for the package. | **r_version** | **String** | Binary package uploads should specify the version of R they were built for. | [optional] **republish** | **BOOLEAN** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/DartPackageUpload.md b/bindings/ruby/src/docs/DartPackageUpload.md index 7e5f8a45..8422c847 100644 --- a/bindings/ruby/src/docs/DartPackageUpload.md +++ b/bindings/ruby/src/docs/DartPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -76,18 +77,21 @@ Name | Type | Description | Notes **status_str** | **String** | | [optional] **status_updated_at** | **DateTime** | The datetime the package status was updated at. | [optional] **status_url** | **String** | | [optional] +**store_path** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **DateTime** | The datetime the package sync was finished at. | [optional] **sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | 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. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/DartPackageUploadRequest.md b/bindings/ruby/src/docs/DartPackageUploadRequest.md index 09e0075d..4e16d319 100644 --- a/bindings/ruby/src/docs/DartPackageUploadRequest.md +++ b/bindings/ruby/src/docs/DartPackageUploadRequest.md @@ -3,8 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **String** | The primary file for the package. | **republish** | **BOOLEAN** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/DebPackageUpload.md b/bindings/ruby/src/docs/DebPackageUpload.md index d8470a8e..8ede3ed1 100644 --- a/bindings/ruby/src/docs/DebPackageUpload.md +++ b/bindings/ruby/src/docs/DebPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -76,18 +77,21 @@ Name | Type | Description | Notes **status_str** | **String** | | [optional] **status_updated_at** | **DateTime** | The datetime the package status was updated at. | [optional] **status_url** | **String** | | [optional] +**store_path** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **DateTime** | The datetime the package sync was finished at. | [optional] **sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | 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. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/DebPackageUploadRequest.md b/bindings/ruby/src/docs/DebPackageUploadRequest.md index 1b1b13b0..c14b7581 100644 --- a/bindings/ruby/src/docs/DebPackageUploadRequest.md +++ b/bindings/ruby/src/docs/DebPackageUploadRequest.md @@ -6,9 +6,11 @@ Name | Type | Description | Notes **changes_file** | **String** | The changes archive containing the changes made to the source and debian packaging files | [optional] **component** | **String** | The component (channel) for the package (e.g. 'main', 'unstable', etc.) | [optional] [default to 'main'] **distribution** | **String** | The distribution to store the package for. | +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **String** | The primary file for the package. | **republish** | **BOOLEAN** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **sources_file** | **String** | The sources archive containing the source code for the binary | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/DockerPackageUpload.md b/bindings/ruby/src/docs/DockerPackageUpload.md index 275d27bc..e2f7cc7a 100644 --- a/bindings/ruby/src/docs/DockerPackageUpload.md +++ b/bindings/ruby/src/docs/DockerPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -76,18 +77,21 @@ Name | Type | Description | Notes **status_str** | **String** | | [optional] **status_updated_at** | **DateTime** | The datetime the package status was updated at. | [optional] **status_url** | **String** | | [optional] +**store_path** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **DateTime** | The datetime the package sync was finished at. | [optional] **sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | 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. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/DockerPackageUploadRequest.md b/bindings/ruby/src/docs/DockerPackageUploadRequest.md index 600ba9ed..86b184ce 100644 --- a/bindings/ruby/src/docs/DockerPackageUploadRequest.md +++ b/bindings/ruby/src/docs/DockerPackageUploadRequest.md @@ -3,8 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **String** | The primary file for the package. | **republish** | **BOOLEAN** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/GenericPackageUpload.md b/bindings/ruby/src/docs/GenericPackageUpload.md index 88cc360d..16c6f2ce 100644 --- a/bindings/ruby/src/docs/GenericPackageUpload.md +++ b/bindings/ruby/src/docs/GenericPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -76,18 +77,21 @@ Name | Type | Description | Notes **status_str** | **String** | | [optional] **status_updated_at** | **DateTime** | The datetime the package status was updated at. | [optional] **status_url** | **String** | | [optional] +**store_path** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **DateTime** | The datetime the package sync was finished at. | [optional] **sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | 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. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/GenericPackageUploadRequest.md b/bindings/ruby/src/docs/GenericPackageUploadRequest.md index 021d86df..fabf220d 100644 --- a/bindings/ruby/src/docs/GenericPackageUploadRequest.md +++ b/bindings/ruby/src/docs/GenericPackageUploadRequest.md @@ -4,10 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **filepath** | **String** | The full filepath of the package including filename. | +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **name** | **String** | The name of this package. | [optional] **package_file** | **String** | The primary file for the package. | **republish** | **BOOLEAN** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] **version** | **String** | The raw version for this package. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/GoPackageUpload.md b/bindings/ruby/src/docs/GoPackageUpload.md index 0d4b2ebe..c3fc66d8 100644 --- a/bindings/ruby/src/docs/GoPackageUpload.md +++ b/bindings/ruby/src/docs/GoPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -76,18 +77,21 @@ Name | Type | Description | Notes **status_str** | **String** | | [optional] **status_updated_at** | **DateTime** | The datetime the package status was updated at. | [optional] **status_url** | **String** | | [optional] +**store_path** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **DateTime** | The datetime the package sync was finished at. | [optional] **sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | 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. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/GoPackageUploadRequest.md b/bindings/ruby/src/docs/GoPackageUploadRequest.md index 4cd65974..6007e35f 100644 --- a/bindings/ruby/src/docs/GoPackageUploadRequest.md +++ b/bindings/ruby/src/docs/GoPackageUploadRequest.md @@ -3,8 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **String** | The primary file for the package. | **republish** | **BOOLEAN** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/HelmPackageUpload.md b/bindings/ruby/src/docs/HelmPackageUpload.md index be57fed0..3124f6d2 100644 --- a/bindings/ruby/src/docs/HelmPackageUpload.md +++ b/bindings/ruby/src/docs/HelmPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -76,18 +77,21 @@ Name | Type | Description | Notes **status_str** | **String** | | [optional] **status_updated_at** | **DateTime** | The datetime the package status was updated at. | [optional] **status_url** | **String** | | [optional] +**store_path** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **DateTime** | The datetime the package sync was finished at. | [optional] **sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | 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. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/HelmPackageUploadRequest.md b/bindings/ruby/src/docs/HelmPackageUploadRequest.md index a37db62a..5e29c272 100644 --- a/bindings/ruby/src/docs/HelmPackageUploadRequest.md +++ b/bindings/ruby/src/docs/HelmPackageUploadRequest.md @@ -3,9 +3,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **String** | The primary file for the package. | **provenance_file** | **String** | The provenance file containing the signature for the chart. If one is not provided, it will be generated automatically. | [optional] **republish** | **BOOLEAN** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/HexPackageUpload.md b/bindings/ruby/src/docs/HexPackageUpload.md index 6482f8dd..e0b1f02d 100644 --- a/bindings/ruby/src/docs/HexPackageUpload.md +++ b/bindings/ruby/src/docs/HexPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -76,18 +77,21 @@ Name | Type | Description | Notes **status_str** | **String** | | [optional] **status_updated_at** | **DateTime** | The datetime the package status was updated at. | [optional] **status_url** | **String** | | [optional] +**store_path** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **DateTime** | The datetime the package sync was finished at. | [optional] **sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | 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. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/HexPackageUploadRequest.md b/bindings/ruby/src/docs/HexPackageUploadRequest.md index 2398d935..407f2612 100644 --- a/bindings/ruby/src/docs/HexPackageUploadRequest.md +++ b/bindings/ruby/src/docs/HexPackageUploadRequest.md @@ -3,8 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **String** | The primary file for the package. | **republish** | **BOOLEAN** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/HuggingfacePackageUpload.md b/bindings/ruby/src/docs/HuggingfacePackageUpload.md index 67e4194c..f9c8c60f 100644 --- a/bindings/ruby/src/docs/HuggingfacePackageUpload.md +++ b/bindings/ruby/src/docs/HuggingfacePackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -76,18 +77,21 @@ Name | Type | Description | Notes **status_str** | **String** | | [optional] **status_updated_at** | **DateTime** | The datetime the package status was updated at. | [optional] **status_url** | **String** | | [optional] +**store_path** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **DateTime** | The datetime the package sync was finished at. | [optional] **sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | 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. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/HuggingfacePackageUploadRequest.md b/bindings/ruby/src/docs/HuggingfacePackageUploadRequest.md index 746e0fc7..db479d97 100644 --- a/bindings/ruby/src/docs/HuggingfacePackageUploadRequest.md +++ b/bindings/ruby/src/docs/HuggingfacePackageUploadRequest.md @@ -3,8 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **String** | The primary file for the package. | **republish** | **BOOLEAN** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/InlineResponse200.md b/bindings/ruby/src/docs/InlineResponse200.md index 43a9ce7f..78429dab 100644 --- a/bindings/ruby/src/docs/InlineResponse200.md +++ b/bindings/ruby/src/docs/InlineResponse200.md @@ -3,6 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**results** | [**Array<PackageGroup>**](PackageGroup.md) | | +**allow_open_source_overage** | **BOOLEAN** | Whether on-demand open source overage is allowed. | [optional] +**bandwidth_overage_limit** | **Integer** | Effective bandwidth overage limit in GB. | [optional] +**storage_overage_limit** | **Integer** | Effective storage overage limit in GB. | [optional] +**bandwidth_maximum** | **Integer** | Maximum allowed bandwidth overage in GB. | [optional] +**storage_maximum** | **Integer** | Maximum allowed storage overage in GB. | [optional] diff --git a/bindings/ruby/src/docs/InlineResponse2001.md b/bindings/ruby/src/docs/InlineResponse2001.md index eca2c5d0..95f8f9ba 100644 --- a/bindings/ruby/src/docs/InlineResponse2001.md +++ b/bindings/ruby/src/docs/InlineResponse2001.md @@ -3,6 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**results** | [**Array<ConnectedRepository>**](ConnectedRepository.md) | | +**allow_open_source_overage** | **BOOLEAN** | Whether on-demand open source overage is allowed. | [optional] +**bandwidth_overage_limit** | **Integer** | Effective bandwidth overage limit in GB. | [optional] +**storage_overage_limit** | **Integer** | Effective storage overage limit in GB. | [optional] diff --git a/bindings/ruby/src/docs/InlineResponse2002.md b/bindings/ruby/src/docs/InlineResponse2002.md index 2e791457..88460756 100644 --- a/bindings/ruby/src/docs/InlineResponse2002.md +++ b/bindings/ruby/src/docs/InlineResponse2002.md @@ -3,6 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**results** | [**Array<UserAuthenticationToken>**](UserAuthenticationToken.md) | | +**results** | [**Array<PackageGroup>**](PackageGroup.md) | | diff --git a/bindings/ruby/src/docs/InlineResponse2003.md b/bindings/ruby/src/docs/InlineResponse2003.md new file mode 100644 index 00000000..5a1f9de0 --- /dev/null +++ b/bindings/ruby/src/docs/InlineResponse2003.md @@ -0,0 +1,8 @@ +# CloudsmithApi::InlineResponse2003 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**results** | [**Array<ConnectedRepository>**](ConnectedRepository.md) | | + + diff --git a/bindings/ruby/src/docs/InlineResponse2004.md b/bindings/ruby/src/docs/InlineResponse2004.md new file mode 100644 index 00000000..466eb917 --- /dev/null +++ b/bindings/ruby/src/docs/InlineResponse2004.md @@ -0,0 +1,8 @@ +# CloudsmithApi::InlineResponse2004 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**results** | [**Array<UserAuthenticationToken>**](UserAuthenticationToken.md) | | + + diff --git a/bindings/ruby/src/docs/LuarocksPackageUpload.md b/bindings/ruby/src/docs/LuarocksPackageUpload.md index 4496aafb..e053a8ef 100644 --- a/bindings/ruby/src/docs/LuarocksPackageUpload.md +++ b/bindings/ruby/src/docs/LuarocksPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -76,18 +77,21 @@ Name | Type | Description | Notes **status_str** | **String** | | [optional] **status_updated_at** | **DateTime** | The datetime the package status was updated at. | [optional] **status_url** | **String** | | [optional] +**store_path** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **DateTime** | The datetime the package sync was finished at. | [optional] **sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | 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. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/LuarocksPackageUploadRequest.md b/bindings/ruby/src/docs/LuarocksPackageUploadRequest.md index 3caec220..5b96921f 100644 --- a/bindings/ruby/src/docs/LuarocksPackageUploadRequest.md +++ b/bindings/ruby/src/docs/LuarocksPackageUploadRequest.md @@ -3,8 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **String** | The primary file for the package. | **republish** | **BOOLEAN** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/MavenPackageUpload.md b/bindings/ruby/src/docs/MavenPackageUpload.md index 1159d850..505f2f6d 100644 --- a/bindings/ruby/src/docs/MavenPackageUpload.md +++ b/bindings/ruby/src/docs/MavenPackageUpload.md @@ -34,6 +34,7 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -81,18 +82,21 @@ Name | Type | Description | Notes **status_str** | **String** | | [optional] **status_updated_at** | **DateTime** | The datetime the package status was updated at. | [optional] **status_url** | **String** | | [optional] +**store_path** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **DateTime** | The datetime the package sync was finished at. | [optional] **sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | 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. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/MavenPackageUploadRequest.md b/bindings/ruby/src/docs/MavenPackageUploadRequest.md index 1d07db6e..fddc8a56 100644 --- a/bindings/ruby/src/docs/MavenPackageUploadRequest.md +++ b/bindings/ruby/src/docs/MavenPackageUploadRequest.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes **artifact_id** | **String** | The ID of the artifact. | [optional] **extra_files** | **Array<String>** | Extra files to include in the package. This can be a single file or multiple files. | [optional] **group_id** | **String** | Artifact's group ID. | [optional] +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **ivy_file** | **String** | The ivy file is an XML file describing the dependencies of the project. | [optional] **javadoc_file** | **String** | Adds bundled Java documentation to the Maven package | [optional] **package_file** | **String** | The primary file for the package. | @@ -18,5 +19,6 @@ Name | Type | Description | Notes **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] **tests_file** | **String** | Adds bundled Java tests to the Maven package. | [optional] **version** | **String** | The raw version for this package. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/McpPackageUpload.md b/bindings/ruby/src/docs/McpPackageUpload.md index 82602c35..0bd12898 100644 --- a/bindings/ruby/src/docs/McpPackageUpload.md +++ b/bindings/ruby/src/docs/McpPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -76,18 +77,21 @@ Name | Type | Description | Notes **status_str** | **String** | | [optional] **status_updated_at** | **DateTime** | The datetime the package status was updated at. | [optional] **status_url** | **String** | | [optional] +**store_path** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **DateTime** | The datetime the package sync was finished at. | [optional] **sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | 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. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/McpPackageUploadRequest.md b/bindings/ruby/src/docs/McpPackageUploadRequest.md index c8b43974..ba573f82 100644 --- a/bindings/ruby/src/docs/McpPackageUploadRequest.md +++ b/bindings/ruby/src/docs/McpPackageUploadRequest.md @@ -3,9 +3,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **String** | The primary file for the package. | **republish** | **BOOLEAN** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] **version** | **String** | The raw version for this package. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/NixPackageUpload.md b/bindings/ruby/src/docs/NixPackageUpload.md new file mode 100644 index 00000000..0db35e73 --- /dev/null +++ b/bindings/ruby/src/docs/NixPackageUpload.md @@ -0,0 +1,97 @@ +# CloudsmithApi::NixPackageUpload + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**architectures** | [**Array<Architecture>**](Architecture.md) | | [optional] +**cdn_url** | **String** | | [optional] +**checksum_md5** | **String** | | [optional] +**checksum_sha1** | **String** | | [optional] +**checksum_sha256** | **String** | | [optional] +**checksum_sha512** | **String** | | [optional] +**dependencies_checksum_md5** | **String** | A checksum of all of the package's dependencies. | [optional] +**dependencies_url** | **String** | | [optional] +**description** | **String** | A textual description of this package. | [optional] +**display_name** | **String** | | [optional] +**distro** | [**Distribution**](Distribution.md) | | [optional] +**distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] +**downloads** | **Integer** | | [optional] +**epoch** | **Integer** | The epoch of the package version (if any). | [optional] +**extension** | **String** | | [optional] +**filename** | **String** | | [optional] +**files** | [**Array<PackageFile>**](PackageFile.md) | | [optional] +**format** | **String** | | [optional] +**format_url** | **String** | | [optional] +**freeable_storage** | **Integer** | Amount of storage that will be freed if this package is deleted | [optional] +**fully_qualified_name** | **String** | | [optional] +**identifier_perm** | **String** | Unique and permanent identifier for the package. | [optional] +**identifiers** | **Hash<String, String>** | Return a map of identifier field names and their values. | [optional] +**indexed** | **BOOLEAN** | | [optional] +**is_cancellable** | **BOOLEAN** | | [optional] +**is_copyable** | **BOOLEAN** | | [optional] +**is_deleteable** | **BOOLEAN** | | [optional] +**is_downloadable** | **BOOLEAN** | | [optional] +**is_hidden** | **BOOLEAN** | | [optional] +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] +**is_moveable** | **BOOLEAN** | | [optional] +**is_quarantinable** | **BOOLEAN** | | [optional] +**is_quarantined** | **BOOLEAN** | | [optional] +**is_resyncable** | **BOOLEAN** | | [optional] +**is_security_scannable** | **BOOLEAN** | | [optional] +**is_sync_awaiting** | **BOOLEAN** | | [optional] +**is_sync_completed** | **BOOLEAN** | | [optional] +**is_sync_failed** | **BOOLEAN** | | [optional] +**is_sync_in_flight** | **BOOLEAN** | | [optional] +**is_sync_in_progress** | **BOOLEAN** | | [optional] +**license** | **String** | The license of this package. | [optional] +**name** | **String** | The name of this package. | [optional] +**namespace** | **String** | | [optional] +**namespace_url** | **String** | | [optional] +**num_files** | **Integer** | | [optional] +**origin_repository** | **String** | | [optional] +**origin_repository_url** | **String** | | [optional] +**osi_approved** | **BOOLEAN** | Whether the package's SPDX license is OSI-approved. | [optional] +**package_type** | **Integer** | The type of package contents. | [optional] +**policy_violated** | **BOOLEAN** | Whether or not the package has violated any policy. | [optional] +**raw_license** | **String** | The raw license string. | [optional] +**release** | **String** | The release of the package version (if any). | [optional] +**repository** | **String** | | [optional] +**repository_url** | **String** | | [optional] +**security_scan_completed_at** | **DateTime** | The datetime the security scanning was completed. | [optional] +**security_scan_started_at** | **DateTime** | The datetime the security scanning was started. | [optional] +**security_scan_status** | **String** | | [optional] [default to 'Awaiting Security Scan'] +**security_scan_status_updated_at** | **DateTime** | The datetime the security scanning status was updated. | [optional] +**self_html_url** | **String** | | [optional] +**self_url** | **String** | | [optional] +**self_webapp_url** | **String** | | [optional] +**signature_url** | **String** | | [optional] +**size** | **Integer** | The calculated size of the package. | [optional] +**slug** | **String** | The public unique identifier for the package. | [optional] +**slug_perm** | **String** | | [optional] +**spdx_license** | **String** | The SPDX license identifier for this package. | [optional] +**stage** | **Integer** | The synchronisation (in progress) stage of the package. | [optional] +**stage_str** | **String** | | [optional] +**stage_updated_at** | **DateTime** | The datetime the package stage was updated at. | [optional] +**status** | **Integer** | The synchronisation status of the package. | [optional] +**status_reason** | **String** | A textual description for the synchronous status reason (if any | [optional] +**status_str** | **String** | | [optional] +**status_updated_at** | **DateTime** | The datetime the package status was updated at. | [optional] +**status_url** | **String** | | [optional] +**store_path** | **String** | Absolute store path for the package, including store hash and name. | [optional] +**subtype** | **String** | | [optional] +**summary** | **String** | A one-liner synopsis of this package. | [optional] +**sync_finished_at** | **DateTime** | The datetime the package sync was finished at. | [optional] +**sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional] +**tags_automatic** | [**Tags**](Tags.md) | | [optional] +**tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | 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. | [optional] +**type_display** | **String** | | [optional] +**uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] +**uploader** | **String** | | [optional] +**uploader_url** | **String** | | [optional] +**version** | **String** | The raw version for this package. | [optional] +**version_orig** | **String** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] +**vulnerability_scan_results_url** | **String** | | [optional] + + diff --git a/bindings/ruby/src/docs/NixPackageUploadRequest.md b/bindings/ruby/src/docs/NixPackageUploadRequest.md new file mode 100644 index 00000000..f03b890e --- /dev/null +++ b/bindings/ruby/src/docs/NixPackageUploadRequest.md @@ -0,0 +1,14 @@ +# CloudsmithApi::NixPackageUploadRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] +**narinfo** | **String** | The narinfo sidecar metadata file (<storeHash>.narinfo). Optional — the package can be completed later by publishing the matching narinfo via the native HTTP PUT path. | [optional] +**package_file** | **String** | The primary file for the package. | +**republish** | **BOOLEAN** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] +**tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] +**version** | **String** | The raw version for this package. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] + + diff --git a/bindings/ruby/src/docs/NixUpstream.md b/bindings/ruby/src/docs/NixUpstream.md new file mode 100644 index 00000000..9736c56c --- /dev/null +++ b/bindings/ruby/src/docs/NixUpstream.md @@ -0,0 +1,32 @@ +# CloudsmithApi::NixUpstream + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**auth_mode** | **String** | The authentication mode to use when accessing this upstream. | [optional] [default to 'None'] +**auth_secret** | **String** | Secret to provide with requests to upstream. | [optional] +**auth_username** | **String** | Username to provide with requests to upstream. | [optional] +**available** | **BOOLEAN** | Whether the upstream is available for use. | [optional] +**can_reindex** | **BOOLEAN** | Whether the upstream can be reindexed. | [optional] +**created_at** | **DateTime** | The datetime the upstream source was created. | [optional] +**disable_reason** | **String** | | [optional] [default to 'N/A'] +**disable_reason_text** | **String** | Human-readable explanation of why this upstream is disabled | [optional] +**extra_header_1** | **String** | The key for extra header #1 to send to upstream. | [optional] +**extra_header_2** | **String** | The key for extra header #2 to send to upstream. | [optional] +**extra_value_1** | **String** | The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] +**extra_value_2** | **String** | The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] +**has_failed_signature_verification** | **BOOLEAN** | Whether the upstream has failed signature verification. | [optional] +**index_package_count** | **Integer** | The number of packages available in this upstream source | [optional] +**index_status** | **String** | The current indexing status of this upstream source | [optional] +**is_active** | **BOOLEAN** | Whether or not this upstream is active and ready for requests. | [optional] +**last_indexed** | **String** | The last time this upstream source was indexed | [optional] +**mode** | **String** | The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. | [optional] [default to 'Proxy Only'] +**name** | **String** | A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. | +**pending_validation** | **BOOLEAN** | When true, this upstream source is pending validation. | [optional] +**priority** | **Integer** | Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. | [optional] +**slug_perm** | **String** | | [optional] +**updated_at** | **DateTime** | | [optional] +**upstream_url** | **String** | The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. | +**verify_ssl** | **BOOLEAN** | If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. | [optional] + + diff --git a/bindings/ruby/src/docs/NixUpstreamRequest.md b/bindings/ruby/src/docs/NixUpstreamRequest.md new file mode 100644 index 00000000..a755a032 --- /dev/null +++ b/bindings/ruby/src/docs/NixUpstreamRequest.md @@ -0,0 +1,20 @@ +# CloudsmithApi::NixUpstreamRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**auth_mode** | **String** | The authentication mode to use when accessing this upstream. | [optional] [default to 'None'] +**auth_secret** | **String** | Secret to provide with requests to upstream. | [optional] +**auth_username** | **String** | Username to provide with requests to upstream. | [optional] +**extra_header_1** | **String** | The key for extra header #1 to send to upstream. | [optional] +**extra_header_2** | **String** | The key for extra header #2 to send to upstream. | [optional] +**extra_value_1** | **String** | The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] +**extra_value_2** | **String** | The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] +**is_active** | **BOOLEAN** | Whether or not this upstream is active and ready for requests. | [optional] +**mode** | **String** | The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. | [optional] [default to 'Proxy Only'] +**name** | **String** | A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. | +**priority** | **Integer** | Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. | [optional] +**upstream_url** | **String** | The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. | +**verify_ssl** | **BOOLEAN** | If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. | [optional] + + diff --git a/bindings/ruby/src/docs/NixUpstreamRequestPatch.md b/bindings/ruby/src/docs/NixUpstreamRequestPatch.md new file mode 100644 index 00000000..d19b447e --- /dev/null +++ b/bindings/ruby/src/docs/NixUpstreamRequestPatch.md @@ -0,0 +1,20 @@ +# CloudsmithApi::NixUpstreamRequestPatch + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**auth_mode** | **String** | The authentication mode to use when accessing this upstream. | [optional] [default to 'None'] +**auth_secret** | **String** | Secret to provide with requests to upstream. | [optional] +**auth_username** | **String** | Username to provide with requests to upstream. | [optional] +**extra_header_1** | **String** | The key for extra header #1 to send to upstream. | [optional] +**extra_header_2** | **String** | The key for extra header #2 to send to upstream. | [optional] +**extra_value_1** | **String** | The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] +**extra_value_2** | **String** | The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] +**is_active** | **BOOLEAN** | Whether or not this upstream is active and ready for requests. | [optional] +**mode** | **String** | The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. | [optional] [default to 'Proxy Only'] +**name** | **String** | A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. | [optional] +**priority** | **Integer** | Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. | [optional] +**upstream_url** | **String** | The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. | [optional] +**verify_ssl** | **BOOLEAN** | If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. | [optional] + + diff --git a/bindings/ruby/src/docs/NpmPackageUpload.md b/bindings/ruby/src/docs/NpmPackageUpload.md index 34920076..a32ffc8b 100644 --- a/bindings/ruby/src/docs/NpmPackageUpload.md +++ b/bindings/ruby/src/docs/NpmPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -76,18 +77,21 @@ Name | Type | Description | Notes **status_str** | **String** | | [optional] **status_updated_at** | **DateTime** | The datetime the package status was updated at. | [optional] **status_url** | **String** | | [optional] +**store_path** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **DateTime** | The datetime the package sync was finished at. | [optional] **sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | 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. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/NpmPackageUploadRequest.md b/bindings/ruby/src/docs/NpmPackageUploadRequest.md index de4d85aa..1662ac9d 100644 --- a/bindings/ruby/src/docs/NpmPackageUploadRequest.md +++ b/bindings/ruby/src/docs/NpmPackageUploadRequest.md @@ -3,9 +3,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **npm_dist_tag** | **String** | The default npm dist-tag for this package/version - This will replace any other package/version if they are using the same tag. | [optional] [default to 'latest'] **package_file** | **String** | The primary file for the package. | **republish** | **BOOLEAN** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/NugetPackageUpload.md b/bindings/ruby/src/docs/NugetPackageUpload.md index 77340689..5680cad6 100644 --- a/bindings/ruby/src/docs/NugetPackageUpload.md +++ b/bindings/ruby/src/docs/NugetPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -76,18 +77,21 @@ Name | Type | Description | Notes **status_str** | **String** | | [optional] **status_updated_at** | **DateTime** | The datetime the package status was updated at. | [optional] **status_url** | **String** | | [optional] +**store_path** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **DateTime** | The datetime the package sync was finished at. | [optional] **sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | 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. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/NugetPackageUploadRequest.md b/bindings/ruby/src/docs/NugetPackageUploadRequest.md index 222a52ea..e2c041c8 100644 --- a/bindings/ruby/src/docs/NugetPackageUploadRequest.md +++ b/bindings/ruby/src/docs/NugetPackageUploadRequest.md @@ -3,9 +3,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **String** | The primary file for the package. | **republish** | **BOOLEAN** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **symbols_file** | **String** | Uploads a symbols file as a separate package | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/OrganizationUsage.md b/bindings/ruby/src/docs/OrganizationUsage.md new file mode 100644 index 00000000..1b767fd2 --- /dev/null +++ b/bindings/ruby/src/docs/OrganizationUsage.md @@ -0,0 +1,11 @@ +# CloudsmithApi::OrganizationUsage + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bandwidth_maximum** | **Integer** | The maximum allowed package delivery overage in GB for this product. | [optional] +**bandwidth_overage_limit** | **Integer** | The on-demand limit for package delivery usage (in GBs). | [optional] +**storage_maximum** | **Integer** | The maximum allowed artifact data overage in GB for this product. | [optional] +**storage_overage_limit** | **Integer** | The on-demand limit for artifact data usage (in GBs). | [optional] + + diff --git a/bindings/ruby/src/docs/OrganizationUsageUpdate.md b/bindings/ruby/src/docs/OrganizationUsageUpdate.md new file mode 100644 index 00000000..35c87fb7 --- /dev/null +++ b/bindings/ruby/src/docs/OrganizationUsageUpdate.md @@ -0,0 +1,10 @@ +# CloudsmithApi::OrganizationUsageUpdate + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allow_open_source_overage** | **BOOLEAN** | | [optional] +**bandwidth_overage_limit** | **Integer** | | [optional] +**storage_overage_limit** | **Integer** | | [optional] + + diff --git a/bindings/ruby/src/docs/OrganizationUsageUpdateRequestPatch.md b/bindings/ruby/src/docs/OrganizationUsageUpdateRequestPatch.md new file mode 100644 index 00000000..e7dc6548 --- /dev/null +++ b/bindings/ruby/src/docs/OrganizationUsageUpdateRequestPatch.md @@ -0,0 +1,10 @@ +# CloudsmithApi::OrganizationUsageUpdateRequestPatch + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allow_open_source_overage** | **BOOLEAN** | | [optional] +**bandwidth_overage_limit** | **Integer** | | [optional] +**storage_overage_limit** | **Integer** | | [optional] + + diff --git a/bindings/ruby/src/docs/OrgsApi.md b/bindings/ruby/src/docs/OrgsApi.md index 6c7af04a..ea9023c9 100644 --- a/bindings/ruby/src/docs/OrgsApi.md +++ b/bindings/ruby/src/docs/OrgsApi.md @@ -46,6 +46,7 @@ Method | HTTP request | Description [**orgs_openid_connect_read**](OrgsApi.md#orgs_openid_connect_read) | **GET** /orgs/{org}/openid-connect/{slug_perm}/ | Retrieve a specific OpenID Connect provider setting for the org. [**orgs_openid_connect_update**](OrgsApi.md#orgs_openid_connect_update) | **PUT** /orgs/{org}/openid-connect/{slug_perm}/ | Update a specific OpenID Connect provider setting for the org. [**orgs_read**](OrgsApi.md#orgs_read) | **GET** /orgs/{org}/ | Get the details for the specific organization. +[**orgs_retrieve_usage_limits**](OrgsApi.md#orgs_retrieve_usage_limits) | **GET** /orgs/{org}/usage-limits/ | [**orgs_saml_authentication_partial_update**](OrgsApi.md#orgs_saml_authentication_partial_update) | **PATCH** /orgs/{org}/saml-authentication | Update the SAML Authentication settings for this Organization. [**orgs_saml_authentication_read**](OrgsApi.md#orgs_saml_authentication_read) | **GET** /orgs/{org}/saml-authentication | Retrieve the SAML Authentication settings for this Organization. [**orgs_saml_group_sync_create**](OrgsApi.md#orgs_saml_group_sync_create) | **POST** /orgs/{org}/saml-group-sync/ | Create a new SAML Group Sync mapping within an organization. @@ -68,6 +69,7 @@ Method | HTTP request | Description [**orgs_teams_members_update**](OrgsApi.md#orgs_teams_members_update) | **PUT** /orgs/{org}/teams/{team}/members | Replace all team members. [**orgs_teams_partial_update**](OrgsApi.md#orgs_teams_partial_update) | **PATCH** /orgs/{org}/teams/{team}/ | Update a specific team in a organization. [**orgs_teams_read**](OrgsApi.md#orgs_teams_read) | **GET** /orgs/{org}/teams/{team}/ | Get the details of a specific team within an organization. +[**orgs_update_usage_limits**](OrgsApi.md#orgs_update_usage_limits) | **PATCH** /orgs/{org}/usage-limits/ | [**orgs_vulnerability_policy_create**](OrgsApi.md#orgs_vulnerability_policy_create) | **POST** /orgs/{org}/vulnerability-policy/ | Create a package vulnerability policy. [**orgs_vulnerability_policy_delete**](OrgsApi.md#orgs_vulnerability_policy_delete) | **DELETE** /orgs/{org}/vulnerability-policy/{slug_perm}/ | Delete a package vulnerability policy. [**orgs_vulnerability_policy_evaluation_create**](OrgsApi.md#orgs_vulnerability_policy_evaluation_create) | **POST** /orgs/{org}/vulnerability-policy/{policy_slug_perm}/evaluation/ | Create an evaluation request for this policy. @@ -2727,6 +2729,63 @@ Name | Type | Description | Notes +# **orgs_retrieve_usage_limits** +> InlineResponse200 orgs_retrieve_usage_limits(org) + + + + + +### Example +```ruby +# load the gem +require 'cloudsmith-api' +# setup authorization +CloudsmithApi.configure do |config| + # Configure API key authorization: apikey + config.api_key['X-Api-Key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + #config.api_key_prefix['X-Api-Key'] = 'Bearer' + + # Configure HTTP basic authorization: basic + config.username = 'YOUR USERNAME' + config.password = 'YOUR PASSWORD' +end + +api_instance = CloudsmithApi::OrgsApi.new + +org = 'org_example' # String | + + +begin + result = api_instance.orgs_retrieve_usage_limits(org) + p result +rescue CloudsmithApi::ApiError => e + puts "Exception when calling OrgsApi->orgs_retrieve_usage_limits: #{e}" +end +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org** | **String**| | + +### Return type + +[**InlineResponse200**](InlineResponse200.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + + # **orgs_saml_authentication_partial_update** > OrganizationSAMLAuth orgs_saml_authentication_partial_update(org, opts) @@ -4095,6 +4154,67 @@ Name | Type | Description | Notes +# **orgs_update_usage_limits** +> InlineResponse2001 orgs_update_usage_limits(org, opts) + + + + + +### Example +```ruby +# load the gem +require 'cloudsmith-api' +# setup authorization +CloudsmithApi.configure do |config| + # Configure API key authorization: apikey + config.api_key['X-Api-Key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + #config.api_key_prefix['X-Api-Key'] = 'Bearer' + + # Configure HTTP basic authorization: basic + config.username = 'YOUR USERNAME' + config.password = 'YOUR PASSWORD' +end + +api_instance = CloudsmithApi::OrgsApi.new + +org = 'org_example' # String | + +opts = { + data: CloudsmithApi::OrganizationUsageUpdateRequestPatch.new # OrganizationUsageUpdateRequestPatch | +} + +begin + result = api_instance.orgs_update_usage_limits(org, opts) + p result +rescue CloudsmithApi::ApiError => e + puts "Exception when calling OrgsApi->orgs_update_usage_limits: #{e}" +end +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org** | **String**| | + **data** | [**OrganizationUsageUpdateRequestPatch**](OrganizationUsageUpdateRequestPatch.md)| | [optional] + +### Return type + +[**InlineResponse2001**](InlineResponse2001.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + + # **orgs_vulnerability_policy_create** > OrganizationPackageVulnerabilityPolicy orgs_vulnerability_policy_create(org, opts) diff --git a/bindings/ruby/src/docs/P2PackageUpload.md b/bindings/ruby/src/docs/P2PackageUpload.md index 97db0025..75602d6c 100644 --- a/bindings/ruby/src/docs/P2PackageUpload.md +++ b/bindings/ruby/src/docs/P2PackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -76,18 +77,21 @@ Name | Type | Description | Notes **status_str** | **String** | | [optional] **status_updated_at** | **DateTime** | The datetime the package status was updated at. | [optional] **status_url** | **String** | | [optional] +**store_path** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **DateTime** | The datetime the package sync was finished at. | [optional] **sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | 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. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/P2PackageUploadRequest.md b/bindings/ruby/src/docs/P2PackageUploadRequest.md index 312ee4af..a34a0ec0 100644 --- a/bindings/ruby/src/docs/P2PackageUploadRequest.md +++ b/bindings/ruby/src/docs/P2PackageUploadRequest.md @@ -3,8 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **String** | The primary file for the package. | **republish** | **BOOLEAN** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/Package.md b/bindings/ruby/src/docs/Package.md index 2f593a03..246319ba 100644 --- a/bindings/ruby/src/docs/Package.md +++ b/bindings/ruby/src/docs/Package.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -77,6 +78,7 @@ Name | Type | Description | Notes **status_str** | **String** | | [optional] **status_updated_at** | **DateTime** | The datetime the package status was updated at. | [optional] **status_url** | **String** | | [optional] +**store_path** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **DateTime** | The datetime the package sync was finished at. | [optional] @@ -84,12 +86,14 @@ Name | Type | Description | Notes **tags** | [**Tags**](Tags.md) | | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | 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. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/PackageCopy.md b/bindings/ruby/src/docs/PackageCopy.md index e426846f..4f120c7a 100644 --- a/bindings/ruby/src/docs/PackageCopy.md +++ b/bindings/ruby/src/docs/PackageCopy.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -77,6 +78,7 @@ Name | Type | Description | Notes **status_str** | **String** | | [optional] **status_updated_at** | **DateTime** | The datetime the package status was updated at. | [optional] **status_url** | **String** | | [optional] +**store_path** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **DateTime** | The datetime the package sync was finished at. | [optional] @@ -84,12 +86,14 @@ Name | Type | Description | Notes **tags** | [**Tags**](Tags.md) | | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | 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. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/PackageCopyRequest.md b/bindings/ruby/src/docs/PackageCopyRequest.md index a63fe6cb..7de64b9b 100644 --- a/bindings/ruby/src/docs/PackageCopyRequest.md +++ b/bindings/ruby/src/docs/PackageCopyRequest.md @@ -4,6 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **destination** | **String** | The name of the destination repository without the namespace. | +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **republish** | **BOOLEAN** | If true, the package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/PackageDetail.md b/bindings/ruby/src/docs/PackageDetail.md new file mode 100644 index 00000000..37b7fdc8 --- /dev/null +++ b/bindings/ruby/src/docs/PackageDetail.md @@ -0,0 +1,100 @@ +# CloudsmithApi::PackageDetail + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**architectures** | [**Array<Architecture>**](Architecture.md) | | [optional] +**cdn_url** | **String** | | [optional] +**checksum_md5** | **String** | | [optional] +**checksum_sha1** | **String** | | [optional] +**checksum_sha256** | **String** | | [optional] +**checksum_sha512** | **String** | | [optional] +**dependencies_checksum_md5** | **String** | A checksum of all of the package's dependencies. | [optional] +**dependencies_url** | **String** | | [optional] +**description** | **String** | A textual description of this package. | [optional] +**display_name** | **String** | | [optional] +**distro** | [**Distribution**](Distribution.md) | | [optional] +**distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] +**downloads** | **Integer** | | [optional] +**epoch** | **Integer** | The epoch of the package version (if any). | [optional] +**extension** | **String** | | [optional] +**filename** | **String** | | [optional] +**filepath** | **String** | Full path to the file, including filename e.g. bin/utils/tool.tar.gz | [optional] +**files** | [**Array<PackageFile>**](PackageFile.md) | | [optional] +**format** | **String** | | [optional] +**format_url** | **String** | | [optional] +**freeable_storage** | **Integer** | Amount of storage that will be freed if this package is deleted | [optional] +**fully_qualified_name** | **String** | | [optional] +**has_dependencies** | **BOOLEAN** | Whether the package has any dependencies (top-level or from its SBOM). | [optional] +**identifier_perm** | **String** | Unique and permanent identifier for the package. | [optional] +**identifiers** | **Hash<String, String>** | Return a map of identifier field names and their values. | [optional] +**indexed** | **BOOLEAN** | | [optional] +**is_cancellable** | **BOOLEAN** | | [optional] +**is_copyable** | **BOOLEAN** | | [optional] +**is_deleteable** | **BOOLEAN** | | [optional] +**is_downloadable** | **BOOLEAN** | | [optional] +**is_hidden** | **BOOLEAN** | | [optional] +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] +**is_moveable** | **BOOLEAN** | | [optional] +**is_quarantinable** | **BOOLEAN** | | [optional] +**is_quarantined** | **BOOLEAN** | | [optional] +**is_resyncable** | **BOOLEAN** | | [optional] +**is_security_scannable** | **BOOLEAN** | | [optional] +**is_sync_awaiting** | **BOOLEAN** | | [optional] +**is_sync_completed** | **BOOLEAN** | | [optional] +**is_sync_failed** | **BOOLEAN** | | [optional] +**is_sync_in_flight** | **BOOLEAN** | | [optional] +**is_sync_in_progress** | **BOOLEAN** | | [optional] +**license** | **String** | The license of this package. | [optional] +**name** | **String** | The name of this package. | [optional] +**namespace** | **String** | | [optional] +**namespace_url** | **String** | | [optional] +**num_files** | **Integer** | | [optional] +**origin_repository** | **String** | | [optional] +**origin_repository_url** | **String** | | [optional] +**osi_approved** | **BOOLEAN** | Whether the package's SPDX license is OSI-approved. | [optional] +**package_type** | **Integer** | The type of package contents. | [optional] +**policy_violated** | **BOOLEAN** | Whether or not the package has violated any policy. | [optional] +**raw_license** | **String** | The raw license string. | [optional] +**release** | **String** | The release of the package version (if any). | [optional] +**repository** | **String** | | [optional] +**repository_url** | **String** | | [optional] +**security_scan_completed_at** | **DateTime** | The datetime the security scanning was completed. | [optional] +**security_scan_started_at** | **DateTime** | The datetime the security scanning was started. | [optional] +**security_scan_status** | **String** | | [optional] [default to 'Awaiting Security Scan'] +**security_scan_status_updated_at** | **DateTime** | The datetime the security scanning status was updated. | [optional] +**self_html_url** | **String** | | [optional] +**self_url** | **String** | | [optional] +**self_webapp_url** | **String** | | [optional] +**signature_url** | **String** | | [optional] +**size** | **Integer** | The calculated size of the package. | [optional] +**slug** | **String** | The public unique identifier for the package. | [optional] +**slug_perm** | **String** | | [optional] +**spdx_license** | **String** | The SPDX license identifier for this package. | [optional] +**stage** | **Integer** | The synchronisation (in progress) stage of the package. | [optional] +**stage_str** | **String** | | [optional] +**stage_updated_at** | **DateTime** | The datetime the package stage was updated at. | [optional] +**status** | **Integer** | The synchronisation status of the package. | [optional] +**status_reason** | **String** | A textual description for the synchronous status reason (if any | [optional] +**status_str** | **String** | | [optional] +**status_updated_at** | **DateTime** | The datetime the package status was updated at. | [optional] +**status_url** | **String** | | [optional] +**store_path** | **String** | Absolute store path for the package, including store hash and name. | [optional] +**subtype** | **String** | | [optional] +**summary** | **String** | A one-liner synopsis of this package. | [optional] +**sync_finished_at** | **DateTime** | The datetime the package sync was finished at. | [optional] +**sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional] +**tags** | [**Tags**](Tags.md) | | [optional] +**tags_automatic** | [**Tags**](Tags.md) | | [optional] +**tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | 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. | [optional] +**type_display** | **String** | | [optional] +**uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] +**uploader** | **String** | | [optional] +**uploader_url** | **String** | | [optional] +**version** | **String** | The raw version for this package. | [optional] +**version_orig** | **String** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] +**vulnerability_scan_results_url** | **String** | | [optional] + + diff --git a/bindings/ruby/src/docs/PackageLicense.md b/bindings/ruby/src/docs/PackageLicense.md index ff49c85c..2be9c951 100644 --- a/bindings/ruby/src/docs/PackageLicense.md +++ b/bindings/ruby/src/docs/PackageLicense.md @@ -3,9 +3,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **license_notes** | **String** | | [optional] **license_override** | **String** | | [optional] [default to 'None'] **license_url** | **String** | | [optional] **spdx_license** | **String** | | +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/PackageLicenseRequestPatch.md b/bindings/ruby/src/docs/PackageLicenseRequestPatch.md index 0b9c8d86..17409381 100644 --- a/bindings/ruby/src/docs/PackageLicenseRequestPatch.md +++ b/bindings/ruby/src/docs/PackageLicenseRequestPatch.md @@ -4,9 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **action** | **String** | | [optional] [default to 'Update'] +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **license_notes** | **String** | | [optional] **license_override** | **String** | | [optional] [default to 'None'] **license_url** | **String** | | [optional] -**spdx_license** | **String** | | [optional] +**spdx_license** | **String** | | +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/PackageMove.md b/bindings/ruby/src/docs/PackageMove.md index b83e51f9..923b4cec 100644 --- a/bindings/ruby/src/docs/PackageMove.md +++ b/bindings/ruby/src/docs/PackageMove.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -77,6 +78,7 @@ Name | Type | Description | Notes **status_str** | **String** | | [optional] **status_updated_at** | **DateTime** | The datetime the package status was updated at. | [optional] **status_url** | **String** | | [optional] +**store_path** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **DateTime** | The datetime the package sync was finished at. | [optional] @@ -84,12 +86,14 @@ Name | Type | Description | Notes **tags** | [**Tags**](Tags.md) | | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | 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. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/PackageMoveRequest.md b/bindings/ruby/src/docs/PackageMoveRequest.md index 47e829f0..e9da22be 100644 --- a/bindings/ruby/src/docs/PackageMoveRequest.md +++ b/bindings/ruby/src/docs/PackageMoveRequest.md @@ -4,5 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **destination** | **String** | The name of the destination repository without the namespace. | +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/PackageQuarantine.md b/bindings/ruby/src/docs/PackageQuarantine.md index f7914aaf..4ece37a0 100644 --- a/bindings/ruby/src/docs/PackageQuarantine.md +++ b/bindings/ruby/src/docs/PackageQuarantine.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -76,6 +77,7 @@ Name | Type | Description | Notes **status_str** | **String** | | [optional] **status_updated_at** | **DateTime** | The datetime the package status was updated at. | [optional] **status_url** | **String** | | [optional] +**store_path** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **DateTime** | The datetime the package sync was finished at. | [optional] @@ -83,12 +85,14 @@ Name | Type | Description | Notes **tags** | [**Tags**](Tags.md) | | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | 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. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/PackageQuarantineRequest.md b/bindings/ruby/src/docs/PackageQuarantineRequest.md index 5392352c..bc5efd91 100644 --- a/bindings/ruby/src/docs/PackageQuarantineRequest.md +++ b/bindings/ruby/src/docs/PackageQuarantineRequest.md @@ -3,7 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **release** | **BOOLEAN** | If true, the package is released from quarantine. | [optional] **restore** | **BOOLEAN** | If true, the package is released from quarantine. Note: This field is deprecated, please use 'release' instead. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/PackageResync.md b/bindings/ruby/src/docs/PackageResync.md index b54f736e..e8f447fe 100644 --- a/bindings/ruby/src/docs/PackageResync.md +++ b/bindings/ruby/src/docs/PackageResync.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -77,6 +78,7 @@ Name | Type | Description | Notes **status_str** | **String** | | [optional] **status_updated_at** | **DateTime** | The datetime the package status was updated at. | [optional] **status_url** | **String** | | [optional] +**store_path** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **DateTime** | The datetime the package sync was finished at. | [optional] @@ -84,12 +86,14 @@ Name | Type | Description | Notes **tags** | [**Tags**](Tags.md) | | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | 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. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/PackageTag.md b/bindings/ruby/src/docs/PackageTag.md index 6e2cb1ca..88a408dd 100644 --- a/bindings/ruby/src/docs/PackageTag.md +++ b/bindings/ruby/src/docs/PackageTag.md @@ -34,6 +34,7 @@ Name | Type | Description | Notes **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] **is_immutable** | **BOOLEAN** | If true, created tags will be immutable. An immutable flag is a tag that cannot be removed from a package. | [optional] [default to false] +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -78,18 +79,21 @@ Name | Type | Description | Notes **status_str** | **String** | | [optional] **status_updated_at** | **DateTime** | The datetime the package status was updated at. | [optional] **status_url** | **String** | | [optional] +**store_path** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **DateTime** | The datetime the package sync was finished at. | [optional] **sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | 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. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/PackageTagRequest.md b/bindings/ruby/src/docs/PackageTagRequest.md index a360cfe9..bea90d98 100644 --- a/bindings/ruby/src/docs/PackageTagRequest.md +++ b/bindings/ruby/src/docs/PackageTagRequest.md @@ -5,6 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **action** | **String** | | [optional] [default to 'Add'] **is_immutable** | **BOOLEAN** | If true, created tags will be immutable. An immutable flag is a tag that cannot be removed from a package. | [optional] [default to false] +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **tags** | **Array<String>** | A list of tags to apply the action to. Not required for clears. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/PackageVulnerability.md b/bindings/ruby/src/docs/PackageVulnerability.md index 56d4ae15..372b9bfa 100644 --- a/bindings/ruby/src/docs/PackageVulnerability.md +++ b/bindings/ruby/src/docs/PackageVulnerability.md @@ -4,8 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identifier** | **String** | | +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **name** | **String** | The name of this package. | [optional] **url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/PackagesApi.md b/bindings/ruby/src/docs/PackagesApi.md index dd066849..803253bc 100644 --- a/bindings/ruby/src/docs/PackagesApi.md +++ b/bindings/ruby/src/docs/PackagesApi.md @@ -35,6 +35,7 @@ Method | HTTP request | Description [**packages_upload_luarocks**](PackagesApi.md#packages_upload_luarocks) | **POST** /packages/{owner}/{repo}/upload/luarocks/ | Create a new LuaRocks package [**packages_upload_maven**](PackagesApi.md#packages_upload_maven) | **POST** /packages/{owner}/{repo}/upload/maven/ | Create a new Maven package [**packages_upload_mcp**](PackagesApi.md#packages_upload_mcp) | **POST** /packages/{owner}/{repo}/upload/mcp/ | Create a new MCP package +[**packages_upload_nix**](PackagesApi.md#packages_upload_nix) | **POST** /packages/{owner}/{repo}/upload/nix/ | Create a new Nix package [**packages_upload_npm**](PackagesApi.md#packages_upload_npm) | **POST** /packages/{owner}/{repo}/upload/npm/ | Create a new npm package [**packages_upload_nuget**](PackagesApi.md#packages_upload_nuget) | **POST** /packages/{owner}/{repo}/upload/nuget/ | Create a new NuGet package [**packages_upload_p2**](PackagesApi.md#packages_upload_p2) | **POST** /packages/{owner}/{repo}/upload/p2/ | Create a new P2 package @@ -64,6 +65,7 @@ Method | HTTP request | Description [**packages_validate_upload_luarocks**](PackagesApi.md#packages_validate_upload_luarocks) | **POST** /packages/{owner}/{repo}/validate-upload/luarocks/ | Validate parameters for create LuaRocks package [**packages_validate_upload_maven**](PackagesApi.md#packages_validate_upload_maven) | **POST** /packages/{owner}/{repo}/validate-upload/maven/ | Validate parameters for create Maven package [**packages_validate_upload_mcp**](PackagesApi.md#packages_validate_upload_mcp) | **POST** /packages/{owner}/{repo}/validate-upload/mcp/ | Validate parameters for create MCP package +[**packages_validate_upload_nix**](PackagesApi.md#packages_validate_upload_nix) | **POST** /packages/{owner}/{repo}/validate-upload/nix/ | Validate parameters for create Nix package [**packages_validate_upload_npm**](PackagesApi.md#packages_validate_upload_npm) | **POST** /packages/{owner}/{repo}/validate-upload/npm/ | Validate parameters for create npm package [**packages_validate_upload_nuget**](PackagesApi.md#packages_validate_upload_nuget) | **POST** /packages/{owner}/{repo}/validate-upload/nuget/ | Validate parameters for create NuGet package [**packages_validate_upload_p2**](PackagesApi.md#packages_validate_upload_p2) | **POST** /packages/{owner}/{repo}/validate-upload/p2/ | Validate parameters for create P2 package @@ -277,7 +279,7 @@ Name | Type | Description | Notes # **packages_groups_list** -> InlineResponse200 packages_groups_list(owner, repo, opts) +> InlineResponse2002 packages_groups_list(owner, repo, opts) Return a list of Package Groups in a repository. @@ -340,7 +342,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse200**](InlineResponse200.md) +[**InlineResponse2002**](InlineResponse2002.md) ### Authorization @@ -563,7 +565,7 @@ Name | Type | Description | Notes # **packages_read** -> Package packages_read(owner, repo, identifier, opts) +> PackageDetail packages_read(owner, repo, identifier, opts) Get a specific package in a repository. @@ -617,7 +619,7 @@ Name | Type | Description | Notes ### Return type -[**Package**](Package.md) +[**PackageDetail**](PackageDetail.md) ### Authorization @@ -2132,6 +2134,71 @@ Name | Type | Description | Notes +# **packages_upload_nix** +> NixPackageUpload packages_upload_nix(owner, repo, opts) + +Create a new Nix package + +Create a new Nix package + +### Example +```ruby +# load the gem +require 'cloudsmith-api' +# setup authorization +CloudsmithApi.configure do |config| + # Configure API key authorization: apikey + config.api_key['X-Api-Key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + #config.api_key_prefix['X-Api-Key'] = 'Bearer' + + # Configure HTTP basic authorization: basic + config.username = 'YOUR USERNAME' + config.password = 'YOUR PASSWORD' +end + +api_instance = CloudsmithApi::PackagesApi.new + +owner = 'owner_example' # String | + +repo = 'repo_example' # String | + +opts = { + data: CloudsmithApi::NixPackageUploadRequest.new # NixPackageUploadRequest | +} + +begin + #Create a new Nix package + result = api_instance.packages_upload_nix(owner, repo, opts) + p result +rescue CloudsmithApi::ApiError => e + puts "Exception when calling PackagesApi->packages_upload_nix: #{e}" +end +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **repo** | **String**| | + **data** | [**NixPackageUploadRequest**](NixPackageUploadRequest.md)| | [optional] + +### Return type + +[**NixPackageUpload**](NixPackageUpload.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + + # **packages_upload_npm** > NpmPackageUpload packages_upload_npm(owner, repo, opts) @@ -3999,6 +4066,70 @@ nil (empty response body) +# **packages_validate_upload_nix** +> packages_validate_upload_nix(owner, repo, opts) + +Validate parameters for create Nix package + +Validate parameters for create Nix package + +### Example +```ruby +# load the gem +require 'cloudsmith-api' +# setup authorization +CloudsmithApi.configure do |config| + # Configure API key authorization: apikey + config.api_key['X-Api-Key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + #config.api_key_prefix['X-Api-Key'] = 'Bearer' + + # Configure HTTP basic authorization: basic + config.username = 'YOUR USERNAME' + config.password = 'YOUR PASSWORD' +end + +api_instance = CloudsmithApi::PackagesApi.new + +owner = 'owner_example' # String | + +repo = 'repo_example' # String | + +opts = { + data: CloudsmithApi::NixPackageUploadRequest.new # NixPackageUploadRequest | +} + +begin + #Validate parameters for create Nix package + api_instance.packages_validate_upload_nix(owner, repo, opts) +rescue CloudsmithApi::ApiError => e + puts "Exception when calling PackagesApi->packages_validate_upload_nix: #{e}" +end +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **repo** | **String**| | + **data** | [**NixPackageUploadRequest**](NixPackageUploadRequest.md)| | [optional] + +### Return type + +nil (empty response body) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + + # **packages_validate_upload_npm** > packages_validate_upload_npm(owner, repo, opts) diff --git a/bindings/ruby/src/docs/PythonPackageUpload.md b/bindings/ruby/src/docs/PythonPackageUpload.md index e99dec37..8b04f649 100644 --- a/bindings/ruby/src/docs/PythonPackageUpload.md +++ b/bindings/ruby/src/docs/PythonPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -76,18 +77,21 @@ Name | Type | Description | Notes **status_str** | **String** | | [optional] **status_updated_at** | **DateTime** | The datetime the package status was updated at. | [optional] **status_url** | **String** | | [optional] +**store_path** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **DateTime** | The datetime the package sync was finished at. | [optional] **sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | 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. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/PythonPackageUploadRequest.md b/bindings/ruby/src/docs/PythonPackageUploadRequest.md index 784b1ad6..33dc13ac 100644 --- a/bindings/ruby/src/docs/PythonPackageUploadRequest.md +++ b/bindings/ruby/src/docs/PythonPackageUploadRequest.md @@ -3,8 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **String** | The primary file for the package. | **republish** | **BOOLEAN** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/RawPackageUpload.md b/bindings/ruby/src/docs/RawPackageUpload.md index 5b138eee..4ccec8b1 100644 --- a/bindings/ruby/src/docs/RawPackageUpload.md +++ b/bindings/ruby/src/docs/RawPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -76,18 +77,21 @@ Name | Type | Description | Notes **status_str** | **String** | | [optional] **status_updated_at** | **DateTime** | The datetime the package status was updated at. | [optional] **status_url** | **String** | | [optional] +**store_path** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **DateTime** | The datetime the package sync was finished at. | [optional] **sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | 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. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/RawPackageUploadRequest.md b/bindings/ruby/src/docs/RawPackageUploadRequest.md index ac191af1..5382da04 100644 --- a/bindings/ruby/src/docs/RawPackageUploadRequest.md +++ b/bindings/ruby/src/docs/RawPackageUploadRequest.md @@ -5,11 +5,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **content_type** | **String** | A custom content/media (also known as MIME) type to be sent when downloading this file. By default Cloudsmith will attempt to detect the type, but if you need to override it, you can specify it here. | [optional] **description** | **String** | A textual description of this package. | [optional] +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **name** | **String** | The name of this package. | [optional] **package_file** | **String** | The primary file for the package. | **republish** | **BOOLEAN** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] **version** | **String** | The raw version for this package. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/RecycleBinPackage.md b/bindings/ruby/src/docs/RecycleBinPackage.md index 5b1b1a88..2526e06d 100644 --- a/bindings/ruby/src/docs/RecycleBinPackage.md +++ b/bindings/ruby/src/docs/RecycleBinPackage.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **identifiers** | **Hash<String, String>** | | [optional] **invoked_retention_rule** | **Hash<String, String>** | Information about the retention rule that triggered deletion (if any). | [optional] **is_deleteable** | **BOOLEAN** | | [optional] +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_quarantined** | **BOOLEAN** | | [optional] **is_restorable** | **BOOLEAN** | | [optional] **name** | **String** | The name of this package. | [optional] @@ -27,5 +28,6 @@ Name | Type | Description | Notes **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/ReposApi.md b/bindings/ruby/src/docs/ReposApi.md index 96d86614..256d34d5 100644 --- a/bindings/ruby/src/docs/ReposApi.md +++ b/bindings/ruby/src/docs/ReposApi.md @@ -124,6 +124,12 @@ Method | HTTP request | Description [**repos_upstream_maven_partial_update**](ReposApi.md#repos_upstream_maven_partial_update) | **PATCH** /repos/{owner}/{identifier}/upstream/maven/{slug_perm}/ | Partially update a Maven upstream config for this repository. [**repos_upstream_maven_read**](ReposApi.md#repos_upstream_maven_read) | **GET** /repos/{owner}/{identifier}/upstream/maven/{slug_perm}/ | Retrieve a Maven upstream config for this repository. [**repos_upstream_maven_update**](ReposApi.md#repos_upstream_maven_update) | **PUT** /repos/{owner}/{identifier}/upstream/maven/{slug_perm}/ | Update a Maven upstream config for this repository. +[**repos_upstream_nix_create**](ReposApi.md#repos_upstream_nix_create) | **POST** /repos/{owner}/{identifier}/upstream/nix/ | Create a Nix upstream config for this repository. +[**repos_upstream_nix_delete**](ReposApi.md#repos_upstream_nix_delete) | **DELETE** /repos/{owner}/{identifier}/upstream/nix/{slug_perm}/ | Delete a Nix upstream config for this repository. +[**repos_upstream_nix_list**](ReposApi.md#repos_upstream_nix_list) | **GET** /repos/{owner}/{identifier}/upstream/nix/ | List Nix upstream configs for this repository. +[**repos_upstream_nix_partial_update**](ReposApi.md#repos_upstream_nix_partial_update) | **PATCH** /repos/{owner}/{identifier}/upstream/nix/{slug_perm}/ | Partially update a Nix upstream config for this repository. +[**repos_upstream_nix_read**](ReposApi.md#repos_upstream_nix_read) | **GET** /repos/{owner}/{identifier}/upstream/nix/{slug_perm}/ | Retrieve a Nix upstream config for this repository. +[**repos_upstream_nix_update**](ReposApi.md#repos_upstream_nix_update) | **PUT** /repos/{owner}/{identifier}/upstream/nix/{slug_perm}/ | Update a Nix upstream config for this repository. [**repos_upstream_npm_create**](ReposApi.md#repos_upstream_npm_create) | **POST** /repos/{owner}/{identifier}/upstream/npm/ | Create a npm upstream config for this repository. [**repos_upstream_npm_delete**](ReposApi.md#repos_upstream_npm_delete) | **DELETE** /repos/{owner}/{identifier}/upstream/npm/{slug_perm}/ | Delete a npm upstream config for this repository. [**repos_upstream_npm_list**](ReposApi.md#repos_upstream_npm_list) | **GET** /repos/{owner}/{identifier}/upstream/npm/ | List npm upstream configs for this repository. @@ -481,7 +487,7 @@ nil (empty response body) # **repos_connected_list** -> InlineResponse2001 repos_connected_list(owner, identifier, opts) +> InlineResponse2003 repos_connected_list(owner, identifier, opts) List connected repositories for this repository. @@ -534,7 +540,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse2001**](InlineResponse2001.md) +[**InlineResponse2003**](InlineResponse2003.md) ### Authorization @@ -7983,6 +7989,401 @@ Name | Type | Description | Notes +# **repos_upstream_nix_create** +> NixUpstream repos_upstream_nix_create(owner, identifier, opts) + +Create a Nix upstream config for this repository. + +Create a Nix upstream config for this repository. + +### Example +```ruby +# load the gem +require 'cloudsmith-api' +# setup authorization +CloudsmithApi.configure do |config| + # Configure API key authorization: apikey + config.api_key['X-Api-Key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + #config.api_key_prefix['X-Api-Key'] = 'Bearer' + + # Configure HTTP basic authorization: basic + config.username = 'YOUR USERNAME' + config.password = 'YOUR PASSWORD' +end + +api_instance = CloudsmithApi::ReposApi.new + +owner = 'owner_example' # String | + +identifier = 'identifier_example' # String | + +opts = { + data: CloudsmithApi::NixUpstreamRequest.new # NixUpstreamRequest | +} + +begin + #Create a Nix upstream config for this repository. + result = api_instance.repos_upstream_nix_create(owner, identifier, opts) + p result +rescue CloudsmithApi::ApiError => e + puts "Exception when calling ReposApi->repos_upstream_nix_create: #{e}" +end +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **identifier** | **String**| | + **data** | [**NixUpstreamRequest**](NixUpstreamRequest.md)| | [optional] + +### Return type + +[**NixUpstream**](NixUpstream.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + + +# **repos_upstream_nix_delete** +> repos_upstream_nix_delete(owner, identifier, slug_perm) + +Delete a Nix upstream config for this repository. + +Delete a Nix upstream config for this repository. + +### Example +```ruby +# load the gem +require 'cloudsmith-api' +# setup authorization +CloudsmithApi.configure do |config| + # Configure API key authorization: apikey + config.api_key['X-Api-Key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + #config.api_key_prefix['X-Api-Key'] = 'Bearer' + + # Configure HTTP basic authorization: basic + config.username = 'YOUR USERNAME' + config.password = 'YOUR PASSWORD' +end + +api_instance = CloudsmithApi::ReposApi.new + +owner = 'owner_example' # String | + +identifier = 'identifier_example' # String | + +slug_perm = 'slug_perm_example' # String | + + +begin + #Delete a Nix upstream config for this repository. + api_instance.repos_upstream_nix_delete(owner, identifier, slug_perm) +rescue CloudsmithApi::ApiError => e + puts "Exception when calling ReposApi->repos_upstream_nix_delete: #{e}" +end +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **identifier** | **String**| | + **slug_perm** | **String**| | + +### Return type + +nil (empty response body) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + + +# **repos_upstream_nix_list** +> Array<NixUpstream> repos_upstream_nix_list(owner, identifier, opts) + +List Nix upstream configs for this repository. + +List Nix upstream configs for this repository. + +### Example +```ruby +# load the gem +require 'cloudsmith-api' +# setup authorization +CloudsmithApi.configure do |config| + # Configure API key authorization: apikey + config.api_key['X-Api-Key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + #config.api_key_prefix['X-Api-Key'] = 'Bearer' + + # Configure HTTP basic authorization: basic + config.username = 'YOUR USERNAME' + config.password = 'YOUR PASSWORD' +end + +api_instance = CloudsmithApi::ReposApi.new + +owner = 'owner_example' # String | + +identifier = 'identifier_example' # String | + +opts = { + page: 56, # Integer | A page number within the paginated result set. + page_size: 56 # Integer | Number of results to return per page. +} + +begin + #List Nix upstream configs for this repository. + result = api_instance.repos_upstream_nix_list(owner, identifier, opts) + p result +rescue CloudsmithApi::ApiError => e + puts "Exception when calling ReposApi->repos_upstream_nix_list: #{e}" +end +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **identifier** | **String**| | + **page** | **Integer**| A page number within the paginated result set. | [optional] + **page_size** | **Integer**| Number of results to return per page. | [optional] + +### Return type + +[**Array<NixUpstream>**](NixUpstream.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + + +# **repos_upstream_nix_partial_update** +> NixUpstream repos_upstream_nix_partial_update(owner, identifier, slug_perm, opts) + +Partially update a Nix upstream config for this repository. + +Partially update a Nix upstream config for this repository. + +### Example +```ruby +# load the gem +require 'cloudsmith-api' +# setup authorization +CloudsmithApi.configure do |config| + # Configure API key authorization: apikey + config.api_key['X-Api-Key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + #config.api_key_prefix['X-Api-Key'] = 'Bearer' + + # Configure HTTP basic authorization: basic + config.username = 'YOUR USERNAME' + config.password = 'YOUR PASSWORD' +end + +api_instance = CloudsmithApi::ReposApi.new + +owner = 'owner_example' # String | + +identifier = 'identifier_example' # String | + +slug_perm = 'slug_perm_example' # String | + +opts = { + data: CloudsmithApi::NixUpstreamRequestPatch.new # NixUpstreamRequestPatch | +} + +begin + #Partially update a Nix upstream config for this repository. + result = api_instance.repos_upstream_nix_partial_update(owner, identifier, slug_perm, opts) + p result +rescue CloudsmithApi::ApiError => e + puts "Exception when calling ReposApi->repos_upstream_nix_partial_update: #{e}" +end +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **identifier** | **String**| | + **slug_perm** | **String**| | + **data** | [**NixUpstreamRequestPatch**](NixUpstreamRequestPatch.md)| | [optional] + +### Return type + +[**NixUpstream**](NixUpstream.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + + +# **repos_upstream_nix_read** +> NixUpstream repos_upstream_nix_read(owner, identifier, slug_perm) + +Retrieve a Nix upstream config for this repository. + +Retrieve a Nix upstream config for this repository. + +### Example +```ruby +# load the gem +require 'cloudsmith-api' +# setup authorization +CloudsmithApi.configure do |config| + # Configure API key authorization: apikey + config.api_key['X-Api-Key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + #config.api_key_prefix['X-Api-Key'] = 'Bearer' + + # Configure HTTP basic authorization: basic + config.username = 'YOUR USERNAME' + config.password = 'YOUR PASSWORD' +end + +api_instance = CloudsmithApi::ReposApi.new + +owner = 'owner_example' # String | + +identifier = 'identifier_example' # String | + +slug_perm = 'slug_perm_example' # String | + + +begin + #Retrieve a Nix upstream config for this repository. + result = api_instance.repos_upstream_nix_read(owner, identifier, slug_perm) + p result +rescue CloudsmithApi::ApiError => e + puts "Exception when calling ReposApi->repos_upstream_nix_read: #{e}" +end +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **identifier** | **String**| | + **slug_perm** | **String**| | + +### Return type + +[**NixUpstream**](NixUpstream.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + + +# **repos_upstream_nix_update** +> NixUpstream repos_upstream_nix_update(owner, identifier, slug_perm, opts) + +Update a Nix upstream config for this repository. + +Update a Nix upstream config for this repository. + +### Example +```ruby +# load the gem +require 'cloudsmith-api' +# setup authorization +CloudsmithApi.configure do |config| + # Configure API key authorization: apikey + config.api_key['X-Api-Key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + #config.api_key_prefix['X-Api-Key'] = 'Bearer' + + # Configure HTTP basic authorization: basic + config.username = 'YOUR USERNAME' + config.password = 'YOUR PASSWORD' +end + +api_instance = CloudsmithApi::ReposApi.new + +owner = 'owner_example' # String | + +identifier = 'identifier_example' # String | + +slug_perm = 'slug_perm_example' # String | + +opts = { + data: CloudsmithApi::NixUpstreamRequest.new # NixUpstreamRequest | +} + +begin + #Update a Nix upstream config for this repository. + result = api_instance.repos_upstream_nix_update(owner, identifier, slug_perm, opts) + p result +rescue CloudsmithApi::ApiError => e + puts "Exception when calling ReposApi->repos_upstream_nix_update: #{e}" +end +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **identifier** | **String**| | + **slug_perm** | **String**| | + **data** | [**NixUpstreamRequest**](NixUpstreamRequest.md)| | [optional] + +### Return type + +[**NixUpstream**](NixUpstream.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + + # **repos_upstream_npm_create** > NpmUpstream repos_upstream_npm_create(owner, identifier, opts) diff --git a/bindings/ruby/src/docs/RpmPackageUpload.md b/bindings/ruby/src/docs/RpmPackageUpload.md index 65fbe6bc..49ecb33e 100644 --- a/bindings/ruby/src/docs/RpmPackageUpload.md +++ b/bindings/ruby/src/docs/RpmPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -76,18 +77,21 @@ Name | Type | Description | Notes **status_str** | **String** | | [optional] **status_updated_at** | **DateTime** | The datetime the package status was updated at. | [optional] **status_url** | **String** | | [optional] +**store_path** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **DateTime** | The datetime the package sync was finished at. | [optional] **sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | 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. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/RpmPackageUploadRequest.md b/bindings/ruby/src/docs/RpmPackageUploadRequest.md index 07dfaf8d..c1ad6e5d 100644 --- a/bindings/ruby/src/docs/RpmPackageUploadRequest.md +++ b/bindings/ruby/src/docs/RpmPackageUploadRequest.md @@ -4,8 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **distribution** | **String** | The distribution to store the package for. | +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **String** | The primary file for the package. | **republish** | **BOOLEAN** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/RubyPackageUpload.md b/bindings/ruby/src/docs/RubyPackageUpload.md index 1457909b..37d45f5a 100644 --- a/bindings/ruby/src/docs/RubyPackageUpload.md +++ b/bindings/ruby/src/docs/RubyPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -76,18 +77,21 @@ Name | Type | Description | Notes **status_str** | **String** | | [optional] **status_updated_at** | **DateTime** | The datetime the package status was updated at. | [optional] **status_url** | **String** | | [optional] +**store_path** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **DateTime** | The datetime the package sync was finished at. | [optional] **sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | 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. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/RubyPackageUploadRequest.md b/bindings/ruby/src/docs/RubyPackageUploadRequest.md index bdf89e50..962381a9 100644 --- a/bindings/ruby/src/docs/RubyPackageUploadRequest.md +++ b/bindings/ruby/src/docs/RubyPackageUploadRequest.md @@ -3,8 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **String** | The primary file for the package. | **republish** | **BOOLEAN** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/SwiftPackageUpload.md b/bindings/ruby/src/docs/SwiftPackageUpload.md index 02b0095d..2bd73726 100644 --- a/bindings/ruby/src/docs/SwiftPackageUpload.md +++ b/bindings/ruby/src/docs/SwiftPackageUpload.md @@ -34,6 +34,7 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -81,18 +82,21 @@ Name | Type | Description | Notes **status_str** | **String** | | [optional] **status_updated_at** | **DateTime** | The datetime the package status was updated at. | [optional] **status_url** | **String** | | [optional] +**store_path** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **DateTime** | The datetime the package sync was finished at. | [optional] **sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | 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. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | **version_orig** | **String** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/SwiftPackageUploadRequest.md b/bindings/ruby/src/docs/SwiftPackageUploadRequest.md index 3961ef1b..d5744106 100644 --- a/bindings/ruby/src/docs/SwiftPackageUploadRequest.md +++ b/bindings/ruby/src/docs/SwiftPackageUploadRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **author_name** | **String** | The name of the author of the package. | [optional] **author_org** | **String** | The organization of the author. | [optional] +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **license_url** | **String** | The license URL of this package. | [optional] **name** | **String** | The name of this package. | **package_file** | **String** | The primary file for the package. | @@ -14,5 +15,6 @@ Name | Type | Description | Notes **scope** | **String** | A scope provides a namespace for related packages within the package registry. | **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] **version** | **String** | The raw version for this package. | +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/TerraformPackageUpload.md b/bindings/ruby/src/docs/TerraformPackageUpload.md index 0a76b6ae..ff1b7e0e 100644 --- a/bindings/ruby/src/docs/TerraformPackageUpload.md +++ b/bindings/ruby/src/docs/TerraformPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -76,18 +77,21 @@ Name | Type | Description | Notes **status_str** | **String** | | [optional] **status_updated_at** | **DateTime** | The datetime the package status was updated at. | [optional] **status_url** | **String** | | [optional] +**store_path** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **DateTime** | The datetime the package sync was finished at. | [optional] **sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | 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. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/TerraformPackageUploadRequest.md b/bindings/ruby/src/docs/TerraformPackageUploadRequest.md index 19f4c087..d0e3478b 100644 --- a/bindings/ruby/src/docs/TerraformPackageUploadRequest.md +++ b/bindings/ruby/src/docs/TerraformPackageUploadRequest.md @@ -3,8 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **String** | The primary file for the package. | **republish** | **BOOLEAN** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/UserApi.md b/bindings/ruby/src/docs/UserApi.md index 1041aa22..a5a4be00 100644 --- a/bindings/ruby/src/docs/UserApi.md +++ b/bindings/ruby/src/docs/UserApi.md @@ -170,7 +170,7 @@ This endpoint does not need any parameter. # **user_tokens_list** -> InlineResponse2002 user_tokens_list(opts) +> InlineResponse2004 user_tokens_list(opts) Retrieve the API key assigned to the user that is currently authenticated. @@ -217,7 +217,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse2002**](InlineResponse2002.md) +[**InlineResponse2004**](InlineResponse2004.md) ### Authorization diff --git a/bindings/ruby/src/docs/VagrantPackageUpload.md b/bindings/ruby/src/docs/VagrantPackageUpload.md index c5a59c29..d843c898 100644 --- a/bindings/ruby/src/docs/VagrantPackageUpload.md +++ b/bindings/ruby/src/docs/VagrantPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -77,18 +78,21 @@ Name | Type | Description | Notes **status_str** | **String** | | [optional] **status_updated_at** | **DateTime** | The datetime the package status was updated at. | [optional] **status_url** | **String** | | [optional] +**store_path** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **DateTime** | The datetime the package sync was finished at. | [optional] **sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | 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. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | **version_orig** | **String** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/VagrantPackageUploadRequest.md b/bindings/ruby/src/docs/VagrantPackageUploadRequest.md index 5e93a431..cf0665b9 100644 --- a/bindings/ruby/src/docs/VagrantPackageUploadRequest.md +++ b/bindings/ruby/src/docs/VagrantPackageUploadRequest.md @@ -3,11 +3,13 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **name** | **String** | The name of this package. | **package_file** | **String** | The primary file for the package. | **provider** | **String** | The virtual machine provider for the box. | **republish** | **BOOLEAN** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] **version** | **String** | The raw version for this package. | +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/VsxPackageUpload.md b/bindings/ruby/src/docs/VsxPackageUpload.md index 093647dd..e9fbf250 100644 --- a/bindings/ruby/src/docs/VsxPackageUpload.md +++ b/bindings/ruby/src/docs/VsxPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -76,18 +77,21 @@ Name | Type | Description | Notes **status_str** | **String** | | [optional] **status_updated_at** | **DateTime** | The datetime the package status was updated at. | [optional] **status_url** | **String** | | [optional] +**store_path** | **String** | Absolute store path for the package, including store hash and name. | [optional] **subtype** | **String** | | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **sync_finished_at** | **DateTime** | The datetime the package sync was finished at. | [optional] **sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | 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. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/VsxPackageUploadRequest.md b/bindings/ruby/src/docs/VsxPackageUploadRequest.md index dcfab844..00baca8f 100644 --- a/bindings/ruby/src/docs/VsxPackageUploadRequest.md +++ b/bindings/ruby/src/docs/VsxPackageUploadRequest.md @@ -3,8 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **String** | The primary file for the package. | **republish** | **BOOLEAN** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/WebOSVSeverityCounts.md b/bindings/ruby/src/docs/WebOSVSeverityCounts.md new file mode 100644 index 00000000..2f6ca7d6 --- /dev/null +++ b/bindings/ruby/src/docs/WebOSVSeverityCounts.md @@ -0,0 +1,14 @@ +# CloudsmithApi::WebOSVSeverityCounts + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**critical** | **Integer** | | [optional] +**high** | **Integer** | | [optional] +**low** | **Integer** | | [optional] +**malware** | **Integer** | | [optional] +**medium** | **Integer** | | [optional] +**total** | **Integer** | | [optional] +**unknown** | **Integer** | | [optional] + + diff --git a/bindings/ruby/src/lib/cloudsmith-api.rb b/bindings/ruby/src/lib/cloudsmith-api.rb index 1b35c217..298bdbc9 100644 --- a/bindings/ruby/src/lib/cloudsmith-api.rb +++ b/bindings/ruby/src/lib/cloudsmith-api.rb @@ -116,6 +116,8 @@ require 'cloudsmith-api/models/inline_response_200' require 'cloudsmith-api/models/inline_response_200_1' require 'cloudsmith-api/models/inline_response_200_2' +require 'cloudsmith-api/models/inline_response_200_3' +require 'cloudsmith-api/models/inline_response_200_4' require 'cloudsmith-api/models/luarocks_package_upload' require 'cloudsmith-api/models/luarocks_package_upload_request' require 'cloudsmith-api/models/maven_package_upload' @@ -131,6 +133,11 @@ require 'cloudsmith-api/models/nested_license_policy' require 'cloudsmith-api/models/nested_vulnerability_policy' require 'cloudsmith-api/models/nested_vulnerability_scan_results' +require 'cloudsmith-api/models/nix_package_upload' +require 'cloudsmith-api/models/nix_package_upload_request' +require 'cloudsmith-api/models/nix_upstream' +require 'cloudsmith-api/models/nix_upstream_request' +require 'cloudsmith-api/models/nix_upstream_request_patch' require 'cloudsmith-api/models/npm_package_upload' require 'cloudsmith-api/models/npm_package_upload_request' require 'cloudsmith-api/models/npm_upstream' @@ -172,6 +179,9 @@ require 'cloudsmith-api/models/organization_team_request' require 'cloudsmith-api/models/organization_team_request_patch' require 'cloudsmith-api/models/organization_team_service_member' +require 'cloudsmith-api/models/organization_usage' +require 'cloudsmith-api/models/organization_usage_update' +require 'cloudsmith-api/models/organization_usage_update_request_patch' require 'cloudsmith-api/models/p2_package_upload' require 'cloudsmith-api/models/p2_package_upload_request' require 'cloudsmith-api/models/package' @@ -184,6 +194,7 @@ require 'cloudsmith-api/models/package_deny_policy_request_patch' require 'cloudsmith-api/models/package_dependencies' require 'cloudsmith-api/models/package_dependency' +require 'cloudsmith-api/models/package_detail' require 'cloudsmith-api/models/package_file' require 'cloudsmith-api/models/package_file_parts_upload' require 'cloudsmith-api/models/package_file_upload' @@ -321,6 +332,7 @@ require 'cloudsmith-api/models/vulnerability_scan_results' require 'cloudsmith-api/models/vulnerability_scan_results_list' require 'cloudsmith-api/models/vulnerability_scan_version' +require 'cloudsmith-api/models/web_osv_severity_counts' require 'cloudsmith-api/models/webhook_template' # APIs diff --git a/bindings/ruby/src/lib/cloudsmith-api/api/orgs_api.rb b/bindings/ruby/src/lib/cloudsmith-api/api/orgs_api.rb index c9c00cb5..d446448b 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/api/orgs_api.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/api/orgs_api.rb @@ -2561,6 +2561,58 @@ def orgs_read_with_http_info(org, opts = {}) end return data, status_code, headers end + # + # @param org + # @param [Hash] opts the optional parameters + # @return [InlineResponse200] + def orgs_retrieve_usage_limits(org, opts = {}) + data, _status_code, _headers = orgs_retrieve_usage_limits_with_http_info(org, opts) + data + end + + # + # @param org + # @param [Hash] opts the optional parameters + # @return [Array<(InlineResponse200, Fixnum, Hash)>] InlineResponse200 data, response status code and response headers + def orgs_retrieve_usage_limits_with_http_info(org, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_retrieve_usage_limits ...' + end + # verify the required parameter 'org' is set + if @api_client.config.client_side_validation && org.nil? + fail ArgumentError, "Missing the required parameter 'org' when calling OrgsApi.orgs_retrieve_usage_limits" + end + # resource path + local_var_path = '/orgs/{org}/usage-limits/'.sub('{' + 'org' + '}', org.to_s) + + # query parameters + query_params = {} + + # header parameters + header_params = {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) + # HTTP header 'Content-Type' + header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) + + # form parameters + form_params = {} + + # http body (model) + post_body = nil + auth_names = ['apikey', 'basic'] + data, status_code, headers = @api_client.call_api(:GET, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => 'InlineResponse200') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: OrgsApi#orgs_retrieve_usage_limits\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end # Update the SAML Authentication settings for this Organization. # Update the SAML Authentication settings for this Organization. # @param org @@ -3862,6 +3914,60 @@ def orgs_teams_read_with_http_info(org, team, opts = {}) end return data, status_code, headers end + # + # @param org + # @param [Hash] opts the optional parameters + # @option opts [OrganizationUsageUpdateRequestPatch] :data + # @return [InlineResponse2001] + def orgs_update_usage_limits(org, opts = {}) + data, _status_code, _headers = orgs_update_usage_limits_with_http_info(org, opts) + data + end + + # + # @param org + # @param [Hash] opts the optional parameters + # @option opts [OrganizationUsageUpdateRequestPatch] :data + # @return [Array<(InlineResponse2001, Fixnum, Hash)>] InlineResponse2001 data, response status code and response headers + def orgs_update_usage_limits_with_http_info(org, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_update_usage_limits ...' + end + # verify the required parameter 'org' is set + if @api_client.config.client_side_validation && org.nil? + fail ArgumentError, "Missing the required parameter 'org' when calling OrgsApi.orgs_update_usage_limits" + end + # resource path + local_var_path = '/orgs/{org}/usage-limits/'.sub('{' + 'org' + '}', org.to_s) + + # query parameters + query_params = {} + + # header parameters + header_params = {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) + # HTTP header 'Content-Type' + header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) + + # form parameters + form_params = {} + + # http body (model) + post_body = @api_client.object_to_http_body(opts[:'data']) + auth_names = ['apikey', 'basic'] + data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => 'InlineResponse2001') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: OrgsApi#orgs_update_usage_limits\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end # Create a package vulnerability policy. # Create a package vulnerability policy. # @param org diff --git a/bindings/ruby/src/lib/cloudsmith-api/api/packages_api.rb b/bindings/ruby/src/lib/cloudsmith-api/api/packages_api.rb index 87a964f0..80287665 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/api/packages_api.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/api/packages_api.rb @@ -233,7 +233,7 @@ def packages_dependencies_with_http_info(owner, repo, identifier, opts = {}) # @option opts [BOOLEAN] :include_connected_repositories If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. (default to false) # @option opts [String] :query A search term for querying names, filenames, versions, distributions, architectures, formats, or statuses of packages. (default to ) # @option opts [String] :sort A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name, count, num_downloads, size, last_push, backend_kind. (default to name) - # @return [InlineResponse200] + # @return [InlineResponse2002] def packages_groups_list(owner, repo, opts = {}) data, _status_code, _headers = packages_groups_list_with_http_info(owner, repo, opts) data @@ -251,7 +251,7 @@ def packages_groups_list(owner, repo, opts = {}) # @option opts [BOOLEAN] :include_connected_repositories If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. # @option opts [String] :query A search term for querying names, filenames, versions, distributions, architectures, formats, or statuses of packages. # @option opts [String] :sort A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name, count, num_downloads, size, last_push, backend_kind. - # @return [Array<(InlineResponse200, Fixnum, Hash)>] InlineResponse200 data, response status code and response headers + # @return [Array<(InlineResponse2002, Fixnum, Hash)>] InlineResponse2002 data, response status code and response headers def packages_groups_list_with_http_info(owner, repo, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PackagesApi.packages_groups_list ...' @@ -296,7 +296,7 @@ def packages_groups_list_with_http_info(owner, repo, opts = {}) :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'InlineResponse200') + :return_type => 'InlineResponse2002') if @api_client.config.debugging @api_client.config.logger.debug "API called: PackagesApi#packages_groups_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end @@ -520,7 +520,7 @@ def packages_quarantine_with_http_info(owner, repo, identifier, opts = {}) # @param identifier # @param [Hash] opts the optional parameters # @option opts [BOOLEAN] :include_connected_repositories If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. (default to false) - # @return [Package] + # @return [PackageDetail] def packages_read(owner, repo, identifier, opts = {}) data, _status_code, _headers = packages_read_with_http_info(owner, repo, identifier, opts) data @@ -533,7 +533,7 @@ def packages_read(owner, repo, identifier, opts = {}) # @param identifier # @param [Hash] opts the optional parameters # @option opts [BOOLEAN] :include_connected_repositories If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. - # @return [Array<(Package, Fixnum, Hash)>] Package data, response status code and response headers + # @return [Array<(PackageDetail, Fixnum, Hash)>] PackageDetail data, response status code and response headers def packages_read_with_http_info(owner, repo, identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PackagesApi.packages_read ...' @@ -576,7 +576,7 @@ def packages_read_with_http_info(owner, repo, identifier, opts = {}) :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'Package') + :return_type => 'PackageDetail') if @api_client.config.debugging @api_client.config.logger.debug "API called: PackagesApi#packages_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end @@ -2035,6 +2035,68 @@ def packages_upload_mcp_with_http_info(owner, repo, opts = {}) end return data, status_code, headers end + # Create a new Nix package + # Create a new Nix package + # @param owner + # @param repo + # @param [Hash] opts the optional parameters + # @option opts [NixPackageUploadRequest] :data + # @return [NixPackageUpload] + def packages_upload_nix(owner, repo, opts = {}) + data, _status_code, _headers = packages_upload_nix_with_http_info(owner, repo, opts) + data + end + + # Create a new Nix package + # Create a new Nix package + # @param owner + # @param repo + # @param [Hash] opts the optional parameters + # @option opts [NixPackageUploadRequest] :data + # @return [Array<(NixPackageUpload, Fixnum, Hash)>] NixPackageUpload data, response status code and response headers + def packages_upload_nix_with_http_info(owner, repo, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: PackagesApi.packages_upload_nix ...' + end + # verify the required parameter 'owner' is set + if @api_client.config.client_side_validation && owner.nil? + fail ArgumentError, "Missing the required parameter 'owner' when calling PackagesApi.packages_upload_nix" + end + # verify the required parameter 'repo' is set + if @api_client.config.client_side_validation && repo.nil? + fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_upload_nix" + end + # resource path + local_var_path = '/packages/{owner}/{repo}/upload/nix/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + + # query parameters + query_params = {} + + # header parameters + header_params = {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) + # HTTP header 'Content-Type' + header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) + + # form parameters + form_params = {} + + # http body (model) + post_body = @api_client.object_to_http_body(opts[:'data']) + auth_names = ['apikey', 'basic'] + data, status_code, headers = @api_client.call_api(:POST, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => 'NixPackageUpload') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: PackagesApi#packages_upload_nix\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end # Create a new npm package # Create a new npm package # @param owner @@ -3815,6 +3877,67 @@ def packages_validate_upload_mcp_with_http_info(owner, repo, opts = {}) end return data, status_code, headers end + # Validate parameters for create Nix package + # Validate parameters for create Nix package + # @param owner + # @param repo + # @param [Hash] opts the optional parameters + # @option opts [NixPackageUploadRequest] :data + # @return [nil] + def packages_validate_upload_nix(owner, repo, opts = {}) + packages_validate_upload_nix_with_http_info(owner, repo, opts) + nil + end + + # Validate parameters for create Nix package + # Validate parameters for create Nix package + # @param owner + # @param repo + # @param [Hash] opts the optional parameters + # @option opts [NixPackageUploadRequest] :data + # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers + def packages_validate_upload_nix_with_http_info(owner, repo, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: PackagesApi.packages_validate_upload_nix ...' + end + # verify the required parameter 'owner' is set + if @api_client.config.client_side_validation && owner.nil? + fail ArgumentError, "Missing the required parameter 'owner' when calling PackagesApi.packages_validate_upload_nix" + end + # verify the required parameter 'repo' is set + if @api_client.config.client_side_validation && repo.nil? + fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_validate_upload_nix" + end + # resource path + local_var_path = '/packages/{owner}/{repo}/validate-upload/nix/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + + # query parameters + query_params = {} + + # header parameters + header_params = {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) + # HTTP header 'Content-Type' + header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) + + # form parameters + form_params = {} + + # http body (model) + post_body = @api_client.object_to_http_body(opts[:'data']) + auth_names = ['apikey', 'basic'] + data, status_code, headers = @api_client.call_api(:POST, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: PackagesApi#packages_validate_upload_nix\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end # Validate parameters for create npm package # Validate parameters for create npm package # @param owner diff --git a/bindings/ruby/src/lib/cloudsmith-api/api/repos_api.rb b/bindings/ruby/src/lib/cloudsmith-api/api/repos_api.rb index 896d7bc4..7c07f49d 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/api/repos_api.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/api/repos_api.rb @@ -335,7 +335,7 @@ def repos_connected_delete_with_http_info(owner, identifier, slug_perm, opts = { # @param [Hash] opts the optional parameters # @option opts [Integer] :page A page number within the paginated result set. # @option opts [Integer] :page_size Number of results to return per page. - # @return [InlineResponse2001] + # @return [InlineResponse2003] def repos_connected_list(owner, identifier, opts = {}) data, _status_code, _headers = repos_connected_list_with_http_info(owner, identifier, opts) data @@ -348,7 +348,7 @@ def repos_connected_list(owner, identifier, opts = {}) # @param [Hash] opts the optional parameters # @option opts [Integer] :page A page number within the paginated result set. # @option opts [Integer] :page_size Number of results to return per page. - # @return [Array<(InlineResponse2001, Fixnum, Hash)>] InlineResponse2001 data, response status code and response headers + # @return [Array<(InlineResponse2003, Fixnum, Hash)>] InlineResponse2003 data, response status code and response headers def repos_connected_list_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_connected_list ...' @@ -388,7 +388,7 @@ def repos_connected_list_with_http_info(owner, identifier, opts = {}) :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'InlineResponse2001') + :return_type => 'InlineResponse2003') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_connected_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end @@ -7772,6 +7772,401 @@ def repos_upstream_maven_update_with_http_info(owner, identifier, slug_perm, opt end return data, status_code, headers end + # Create a Nix upstream config for this repository. + # Create a Nix upstream config for this repository. + # @param owner + # @param identifier + # @param [Hash] opts the optional parameters + # @option opts [NixUpstreamRequest] :data + # @return [NixUpstream] + def repos_upstream_nix_create(owner, identifier, opts = {}) + data, _status_code, _headers = repos_upstream_nix_create_with_http_info(owner, identifier, opts) + data + end + + # Create a Nix upstream config for this repository. + # Create a Nix upstream config for this repository. + # @param owner + # @param identifier + # @param [Hash] opts the optional parameters + # @option opts [NixUpstreamRequest] :data + # @return [Array<(NixUpstream, Fixnum, Hash)>] NixUpstream data, response status code and response headers + def repos_upstream_nix_create_with_http_info(owner, identifier, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_nix_create ...' + end + # verify the required parameter 'owner' is set + if @api_client.config.client_side_validation && owner.nil? + fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_nix_create" + end + # verify the required parameter 'identifier' is set + if @api_client.config.client_side_validation && identifier.nil? + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_nix_create" + end + # resource path + local_var_path = '/repos/{owner}/{identifier}/upstream/nix/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) + + # query parameters + query_params = {} + + # header parameters + header_params = {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) + # HTTP header 'Content-Type' + header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) + + # form parameters + form_params = {} + + # http body (model) + post_body = @api_client.object_to_http_body(opts[:'data']) + auth_names = ['apikey', 'basic'] + data, status_code, headers = @api_client.call_api(:POST, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => 'NixUpstream') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: ReposApi#repos_upstream_nix_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Delete a Nix upstream config for this repository. + # Delete a Nix upstream config for this repository. + # @param owner + # @param identifier + # @param slug_perm + # @param [Hash] opts the optional parameters + # @return [nil] + def repos_upstream_nix_delete(owner, identifier, slug_perm, opts = {}) + repos_upstream_nix_delete_with_http_info(owner, identifier, slug_perm, opts) + nil + end + + # Delete a Nix upstream config for this repository. + # Delete a Nix upstream config for this repository. + # @param owner + # @param identifier + # @param slug_perm + # @param [Hash] opts the optional parameters + # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers + def repos_upstream_nix_delete_with_http_info(owner, identifier, slug_perm, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_nix_delete ...' + end + # verify the required parameter 'owner' is set + if @api_client.config.client_side_validation && owner.nil? + fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_nix_delete" + end + # verify the required parameter 'identifier' is set + if @api_client.config.client_side_validation && identifier.nil? + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_nix_delete" + end + # verify the required parameter 'slug_perm' is set + if @api_client.config.client_side_validation && slug_perm.nil? + fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_nix_delete" + end + # resource path + local_var_path = '/repos/{owner}/{identifier}/upstream/nix/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) + + # query parameters + query_params = {} + + # header parameters + header_params = {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) + # HTTP header 'Content-Type' + header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) + + # form parameters + form_params = {} + + # http body (model) + post_body = nil + auth_names = ['apikey', 'basic'] + data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: ReposApi#repos_upstream_nix_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # List Nix upstream configs for this repository. + # List Nix upstream configs for this repository. + # @param owner + # @param identifier + # @param [Hash] opts the optional parameters + # @option opts [Integer] :page A page number within the paginated result set. + # @option opts [Integer] :page_size Number of results to return per page. + # @return [Array] + def repos_upstream_nix_list(owner, identifier, opts = {}) + data, _status_code, _headers = repos_upstream_nix_list_with_http_info(owner, identifier, opts) + data + end + + # List Nix upstream configs for this repository. + # List Nix upstream configs for this repository. + # @param owner + # @param identifier + # @param [Hash] opts the optional parameters + # @option opts [Integer] :page A page number within the paginated result set. + # @option opts [Integer] :page_size Number of results to return per page. + # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers + def repos_upstream_nix_list_with_http_info(owner, identifier, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_nix_list ...' + end + # verify the required parameter 'owner' is set + if @api_client.config.client_side_validation && owner.nil? + fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_nix_list" + end + # verify the required parameter 'identifier' is set + if @api_client.config.client_side_validation && identifier.nil? + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_nix_list" + end + # resource path + local_var_path = '/repos/{owner}/{identifier}/upstream/nix/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) + + # query parameters + query_params = {} + query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? + query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil? + + # header parameters + header_params = {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) + # HTTP header 'Content-Type' + header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) + + # form parameters + form_params = {} + + # http body (model) + post_body = nil + auth_names = ['apikey', 'basic'] + data, status_code, headers = @api_client.call_api(:GET, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => 'Array') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: ReposApi#repos_upstream_nix_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Partially update a Nix upstream config for this repository. + # Partially update a Nix upstream config for this repository. + # @param owner + # @param identifier + # @param slug_perm + # @param [Hash] opts the optional parameters + # @option opts [NixUpstreamRequestPatch] :data + # @return [NixUpstream] + def repos_upstream_nix_partial_update(owner, identifier, slug_perm, opts = {}) + data, _status_code, _headers = repos_upstream_nix_partial_update_with_http_info(owner, identifier, slug_perm, opts) + data + end + + # Partially update a Nix upstream config for this repository. + # Partially update a Nix upstream config for this repository. + # @param owner + # @param identifier + # @param slug_perm + # @param [Hash] opts the optional parameters + # @option opts [NixUpstreamRequestPatch] :data + # @return [Array<(NixUpstream, Fixnum, Hash)>] NixUpstream data, response status code and response headers + def repos_upstream_nix_partial_update_with_http_info(owner, identifier, slug_perm, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_nix_partial_update ...' + end + # verify the required parameter 'owner' is set + if @api_client.config.client_side_validation && owner.nil? + fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_nix_partial_update" + end + # verify the required parameter 'identifier' is set + if @api_client.config.client_side_validation && identifier.nil? + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_nix_partial_update" + end + # verify the required parameter 'slug_perm' is set + if @api_client.config.client_side_validation && slug_perm.nil? + fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_nix_partial_update" + end + # resource path + local_var_path = '/repos/{owner}/{identifier}/upstream/nix/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) + + # query parameters + query_params = {} + + # header parameters + header_params = {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) + # HTTP header 'Content-Type' + header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) + + # form parameters + form_params = {} + + # http body (model) + post_body = @api_client.object_to_http_body(opts[:'data']) + auth_names = ['apikey', 'basic'] + data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => 'NixUpstream') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: ReposApi#repos_upstream_nix_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Retrieve a Nix upstream config for this repository. + # Retrieve a Nix upstream config for this repository. + # @param owner + # @param identifier + # @param slug_perm + # @param [Hash] opts the optional parameters + # @return [NixUpstream] + def repos_upstream_nix_read(owner, identifier, slug_perm, opts = {}) + data, _status_code, _headers = repos_upstream_nix_read_with_http_info(owner, identifier, slug_perm, opts) + data + end + + # Retrieve a Nix upstream config for this repository. + # Retrieve a Nix upstream config for this repository. + # @param owner + # @param identifier + # @param slug_perm + # @param [Hash] opts the optional parameters + # @return [Array<(NixUpstream, Fixnum, Hash)>] NixUpstream data, response status code and response headers + def repos_upstream_nix_read_with_http_info(owner, identifier, slug_perm, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_nix_read ...' + end + # verify the required parameter 'owner' is set + if @api_client.config.client_side_validation && owner.nil? + fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_nix_read" + end + # verify the required parameter 'identifier' is set + if @api_client.config.client_side_validation && identifier.nil? + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_nix_read" + end + # verify the required parameter 'slug_perm' is set + if @api_client.config.client_side_validation && slug_perm.nil? + fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_nix_read" + end + # resource path + local_var_path = '/repos/{owner}/{identifier}/upstream/nix/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) + + # query parameters + query_params = {} + + # header parameters + header_params = {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) + # HTTP header 'Content-Type' + header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) + + # form parameters + form_params = {} + + # http body (model) + post_body = nil + auth_names = ['apikey', 'basic'] + data, status_code, headers = @api_client.call_api(:GET, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => 'NixUpstream') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: ReposApi#repos_upstream_nix_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Update a Nix upstream config for this repository. + # Update a Nix upstream config for this repository. + # @param owner + # @param identifier + # @param slug_perm + # @param [Hash] opts the optional parameters + # @option opts [NixUpstreamRequest] :data + # @return [NixUpstream] + def repos_upstream_nix_update(owner, identifier, slug_perm, opts = {}) + data, _status_code, _headers = repos_upstream_nix_update_with_http_info(owner, identifier, slug_perm, opts) + data + end + + # Update a Nix upstream config for this repository. + # Update a Nix upstream config for this repository. + # @param owner + # @param identifier + # @param slug_perm + # @param [Hash] opts the optional parameters + # @option opts [NixUpstreamRequest] :data + # @return [Array<(NixUpstream, Fixnum, Hash)>] NixUpstream data, response status code and response headers + def repos_upstream_nix_update_with_http_info(owner, identifier, slug_perm, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_nix_update ...' + end + # verify the required parameter 'owner' is set + if @api_client.config.client_side_validation && owner.nil? + fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_nix_update" + end + # verify the required parameter 'identifier' is set + if @api_client.config.client_side_validation && identifier.nil? + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_nix_update" + end + # verify the required parameter 'slug_perm' is set + if @api_client.config.client_side_validation && slug_perm.nil? + fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_nix_update" + end + # resource path + local_var_path = '/repos/{owner}/{identifier}/upstream/nix/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) + + # query parameters + query_params = {} + + # header parameters + header_params = {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) + # HTTP header 'Content-Type' + header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) + + # form parameters + form_params = {} + + # http body (model) + post_body = @api_client.object_to_http_body(opts[:'data']) + auth_names = ['apikey', 'basic'] + data, status_code, headers = @api_client.call_api(:PUT, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => 'NixUpstream') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: ReposApi#repos_upstream_nix_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end # Create a npm upstream config for this repository. # Create a npm upstream config for this repository. # @param owner diff --git a/bindings/ruby/src/lib/cloudsmith-api/api/user_api.rb b/bindings/ruby/src/lib/cloudsmith-api/api/user_api.rb index 6693eeba..2f71f707 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/api/user_api.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/api/user_api.rb @@ -170,7 +170,7 @@ def user_tokens_create_with_http_info(opts = {}) # @param [Hash] opts the optional parameters # @option opts [Integer] :page A page number within the paginated result set. # @option opts [Integer] :page_size Number of results to return per page. - # @return [InlineResponse2002] + # @return [InlineResponse2004] def user_tokens_list(opts = {}) data, _status_code, _headers = user_tokens_list_with_http_info(opts) data @@ -181,7 +181,7 @@ def user_tokens_list(opts = {}) # @param [Hash] opts the optional parameters # @option opts [Integer] :page A page number within the paginated result set. # @option opts [Integer] :page_size Number of results to return per page. - # @return [Array<(InlineResponse2002, Fixnum, Hash)>] InlineResponse2002 data, response status code and response headers + # @return [Array<(InlineResponse2004, Fixnum, Hash)>] InlineResponse2004 data, response status code and response headers def user_tokens_list_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: UserApi.user_tokens_list ...' @@ -213,7 +213,7 @@ def user_tokens_list_with_http_info(opts = {}) :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'InlineResponse2002') + :return_type => 'InlineResponse2004') if @api_client.config.debugging @api_client.config.logger.debug "API called: UserApi#user_tokens_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/alpine_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/alpine_package_upload.rb index 54566d47..737f22ae 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/alpine_package_upload.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/alpine_package_upload.rb @@ -78,6 +78,9 @@ class AlpinePackageUpload attr_accessor :is_hidden + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -184,6 +187,9 @@ class AlpinePackageUpload attr_accessor :status_url + # Absolute store path for the package, including store hash and name. + attr_accessor :store_path + attr_accessor :subtype # A one-liner synopsis of this package. @@ -199,6 +205,9 @@ class AlpinePackageUpload attr_accessor :tags_immutable + # 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. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -213,6 +222,8 @@ class AlpinePackageUpload attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -269,6 +280,7 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', + :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -313,18 +325,21 @@ def self.attribute_map :'status_str' => :'status_str', :'status_updated_at' => :'status_updated_at', :'status_url' => :'status_url', + :'store_path' => :'store_path', :'subtype' => :'subtype', :'summary' => :'summary', :'sync_finished_at' => :'sync_finished_at', :'sync_progress' => :'sync_progress', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', + :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -361,6 +376,7 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', + :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -405,18 +421,21 @@ def self.swagger_types :'status_str' => :'String', :'status_updated_at' => :'DateTime', :'status_url' => :'String', + :'store_path' => :'String', :'subtype' => :'String', :'summary' => :'String', :'sync_finished_at' => :'DateTime', :'sync_progress' => :'Integer', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -551,6 +570,10 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -729,6 +752,10 @@ def initialize(attributes = {}) self.status_url = attributes[:'status_url'] end + if attributes.has_key?(:'store_path') + self.store_path = attributes[:'store_path'] + end + if attributes.has_key?(:'subtype') self.subtype = attributes[:'subtype'] end @@ -753,6 +780,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -777,6 +810,10 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end + if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -841,6 +878,7 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && + is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -885,18 +923,21 @@ def ==(o) status_str == o.status_str && status_updated_at == o.status_updated_at && status_url == o.status_url && + store_path == o.store_path && subtype == o.subtype && summary == o.summary && sync_finished_at == o.sync_finished_at && sync_progress == o.sync_progress && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -909,7 +950,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [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 + [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 end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/alpine_package_upload_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/alpine_package_upload_request.rb index 67c25135..c21de2e1 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/alpine_package_upload_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/alpine_package_upload_request.rb @@ -17,6 +17,9 @@ class AlpinePackageUploadRequest # The distribution to store the package for. attr_accessor :distribution + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + # The primary file for the package. attr_accessor :package_file @@ -26,13 +29,17 @@ class AlpinePackageUploadRequest # A comma-separated values list of tags to add to the package. attr_accessor :tags + attr_accessor :vulnerability_counts + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'distribution' => :'distribution', + :'is_malware_detected' => :'is_malware_detected', :'package_file' => :'package_file', :'republish' => :'republish', - :'tags' => :'tags' + :'tags' => :'tags', + :'vulnerability_counts' => :'vulnerability_counts' } end @@ -40,9 +47,11 @@ def self.attribute_map def self.swagger_types { :'distribution' => :'String', + :'is_malware_detected' => :'BOOLEAN', :'package_file' => :'String', :'republish' => :'BOOLEAN', - :'tags' => :'String' + :'tags' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -58,6 +67,10 @@ def initialize(attributes = {}) self.distribution = attributes[:'distribution'] end + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] end @@ -69,6 +82,10 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end + + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -100,9 +117,11 @@ def ==(o) return true if self.equal?(o) self.class == o.class && distribution == o.distribution && + is_malware_detected == o.is_malware_detected && package_file == o.package_file && republish == o.republish && - tags == o.tags + tags == o.tags && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -114,7 +133,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [distribution, package_file, republish, tags].hash + [distribution, is_malware_detected, package_file, republish, tags, vulnerability_counts].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/cargo_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/cargo_package_upload.rb index c5d9ac6d..fe20a9ca 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/cargo_package_upload.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/cargo_package_upload.rb @@ -78,6 +78,9 @@ class CargoPackageUpload attr_accessor :is_hidden + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -184,6 +187,9 @@ class CargoPackageUpload attr_accessor :status_url + # Absolute store path for the package, including store hash and name. + attr_accessor :store_path + attr_accessor :subtype # A one-liner synopsis of this package. @@ -199,6 +205,9 @@ class CargoPackageUpload attr_accessor :tags_immutable + # 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. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -213,6 +222,8 @@ class CargoPackageUpload attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -269,6 +280,7 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', + :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -313,18 +325,21 @@ def self.attribute_map :'status_str' => :'status_str', :'status_updated_at' => :'status_updated_at', :'status_url' => :'status_url', + :'store_path' => :'store_path', :'subtype' => :'subtype', :'summary' => :'summary', :'sync_finished_at' => :'sync_finished_at', :'sync_progress' => :'sync_progress', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', + :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -361,6 +376,7 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', + :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -405,18 +421,21 @@ def self.swagger_types :'status_str' => :'String', :'status_updated_at' => :'DateTime', :'status_url' => :'String', + :'store_path' => :'String', :'subtype' => :'String', :'summary' => :'String', :'sync_finished_at' => :'DateTime', :'sync_progress' => :'Integer', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -551,6 +570,10 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -729,6 +752,10 @@ def initialize(attributes = {}) self.status_url = attributes[:'status_url'] end + if attributes.has_key?(:'store_path') + self.store_path = attributes[:'store_path'] + end + if attributes.has_key?(:'subtype') self.subtype = attributes[:'subtype'] end @@ -753,6 +780,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -777,6 +810,10 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end + if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -841,6 +878,7 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && + is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -885,18 +923,21 @@ def ==(o) status_str == o.status_str && status_updated_at == o.status_updated_at && status_url == o.status_url && + store_path == o.store_path && subtype == o.subtype && summary == o.summary && sync_finished_at == o.sync_finished_at && sync_progress == o.sync_progress && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -909,7 +950,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [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 + [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 end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/cargo_package_upload_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/cargo_package_upload_request.rb index 94b1712b..a6b7cd1b 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/cargo_package_upload_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/cargo_package_upload_request.rb @@ -14,6 +14,9 @@ module CloudsmithApi class CargoPackageUploadRequest + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + # The primary file for the package. attr_accessor :package_file @@ -23,21 +26,27 @@ class CargoPackageUploadRequest # A comma-separated values list of tags to add to the package. attr_accessor :tags + attr_accessor :vulnerability_counts + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { + :'is_malware_detected' => :'is_malware_detected', :'package_file' => :'package_file', :'republish' => :'republish', - :'tags' => :'tags' + :'tags' => :'tags', + :'vulnerability_counts' => :'vulnerability_counts' } end # Attribute type mapping. def self.swagger_types { + :'is_malware_detected' => :'BOOLEAN', :'package_file' => :'String', :'republish' => :'BOOLEAN', - :'tags' => :'String' + :'tags' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -49,6 +58,10 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] end @@ -60,6 +73,10 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end + + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -85,9 +102,11 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && + is_malware_detected == o.is_malware_detected && package_file == o.package_file && republish == o.republish && - tags == o.tags + tags == o.tags && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -99,7 +118,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [package_file, republish, tags].hash + [is_malware_detected, package_file, republish, tags, vulnerability_counts].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/cocoapods_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/cocoapods_package_upload.rb index 4283bee8..63ec11ab 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/cocoapods_package_upload.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/cocoapods_package_upload.rb @@ -78,6 +78,9 @@ class CocoapodsPackageUpload attr_accessor :is_hidden + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -184,6 +187,9 @@ class CocoapodsPackageUpload attr_accessor :status_url + # Absolute store path for the package, including store hash and name. + attr_accessor :store_path + attr_accessor :subtype # A one-liner synopsis of this package. @@ -199,6 +205,9 @@ class CocoapodsPackageUpload attr_accessor :tags_immutable + # 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. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -213,6 +222,8 @@ class CocoapodsPackageUpload attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -269,6 +280,7 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', + :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -313,18 +325,21 @@ def self.attribute_map :'status_str' => :'status_str', :'status_updated_at' => :'status_updated_at', :'status_url' => :'status_url', + :'store_path' => :'store_path', :'subtype' => :'subtype', :'summary' => :'summary', :'sync_finished_at' => :'sync_finished_at', :'sync_progress' => :'sync_progress', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', + :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -361,6 +376,7 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', + :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -405,18 +421,21 @@ def self.swagger_types :'status_str' => :'String', :'status_updated_at' => :'DateTime', :'status_url' => :'String', + :'store_path' => :'String', :'subtype' => :'String', :'summary' => :'String', :'sync_finished_at' => :'DateTime', :'sync_progress' => :'Integer', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -551,6 +570,10 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -729,6 +752,10 @@ def initialize(attributes = {}) self.status_url = attributes[:'status_url'] end + if attributes.has_key?(:'store_path') + self.store_path = attributes[:'store_path'] + end + if attributes.has_key?(:'subtype') self.subtype = attributes[:'subtype'] end @@ -753,6 +780,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -777,6 +810,10 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end + if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -841,6 +878,7 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && + is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -885,18 +923,21 @@ def ==(o) status_str == o.status_str && status_updated_at == o.status_updated_at && status_url == o.status_url && + store_path == o.store_path && subtype == o.subtype && summary == o.summary && sync_finished_at == o.sync_finished_at && sync_progress == o.sync_progress && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -909,7 +950,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [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 + [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 end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/cocoapods_package_upload_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/cocoapods_package_upload_request.rb index 6402fcf8..f85c2827 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/cocoapods_package_upload_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/cocoapods_package_upload_request.rb @@ -14,6 +14,9 @@ module CloudsmithApi class CocoapodsPackageUploadRequest + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + # The primary file for the package. attr_accessor :package_file @@ -23,21 +26,27 @@ class CocoapodsPackageUploadRequest # A comma-separated values list of tags to add to the package. attr_accessor :tags + attr_accessor :vulnerability_counts + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { + :'is_malware_detected' => :'is_malware_detected', :'package_file' => :'package_file', :'republish' => :'republish', - :'tags' => :'tags' + :'tags' => :'tags', + :'vulnerability_counts' => :'vulnerability_counts' } end # Attribute type mapping. def self.swagger_types { + :'is_malware_detected' => :'BOOLEAN', :'package_file' => :'String', :'republish' => :'BOOLEAN', - :'tags' => :'String' + :'tags' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -49,6 +58,10 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] end @@ -60,6 +73,10 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end + + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -85,9 +102,11 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && + is_malware_detected == o.is_malware_detected && package_file == o.package_file && republish == o.republish && - tags == o.tags + tags == o.tags && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -99,7 +118,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [package_file, republish, tags].hash + [is_malware_detected, package_file, republish, tags, vulnerability_counts].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/composer_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/composer_package_upload.rb index 12853cb8..2e72f709 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/composer_package_upload.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/composer_package_upload.rb @@ -78,6 +78,9 @@ class ComposerPackageUpload attr_accessor :is_hidden + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -184,6 +187,9 @@ class ComposerPackageUpload attr_accessor :status_url + # Absolute store path for the package, including store hash and name. + attr_accessor :store_path + attr_accessor :subtype # A one-liner synopsis of this package. @@ -199,6 +205,9 @@ class ComposerPackageUpload attr_accessor :tags_immutable + # 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. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -213,6 +222,8 @@ class ComposerPackageUpload attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -269,6 +280,7 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', + :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -313,18 +325,21 @@ def self.attribute_map :'status_str' => :'status_str', :'status_updated_at' => :'status_updated_at', :'status_url' => :'status_url', + :'store_path' => :'store_path', :'subtype' => :'subtype', :'summary' => :'summary', :'sync_finished_at' => :'sync_finished_at', :'sync_progress' => :'sync_progress', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', + :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -361,6 +376,7 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', + :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -405,18 +421,21 @@ def self.swagger_types :'status_str' => :'String', :'status_updated_at' => :'DateTime', :'status_url' => :'String', + :'store_path' => :'String', :'subtype' => :'String', :'summary' => :'String', :'sync_finished_at' => :'DateTime', :'sync_progress' => :'Integer', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -551,6 +570,10 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -729,6 +752,10 @@ def initialize(attributes = {}) self.status_url = attributes[:'status_url'] end + if attributes.has_key?(:'store_path') + self.store_path = attributes[:'store_path'] + end + if attributes.has_key?(:'subtype') self.subtype = attributes[:'subtype'] end @@ -753,6 +780,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -777,6 +810,10 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end + if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -841,6 +878,7 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && + is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -885,18 +923,21 @@ def ==(o) status_str == o.status_str && status_updated_at == o.status_updated_at && status_url == o.status_url && + store_path == o.store_path && subtype == o.subtype && summary == o.summary && sync_finished_at == o.sync_finished_at && sync_progress == o.sync_progress && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -909,7 +950,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [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 + [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 end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/composer_package_upload_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/composer_package_upload_request.rb index 0e20133f..3cd91a51 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/composer_package_upload_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/composer_package_upload_request.rb @@ -14,6 +14,9 @@ module CloudsmithApi class ComposerPackageUploadRequest + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + # The primary file for the package. attr_accessor :package_file @@ -26,23 +29,29 @@ class ComposerPackageUploadRequest # The raw version for this package. attr_accessor :version + attr_accessor :vulnerability_counts + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { + :'is_malware_detected' => :'is_malware_detected', :'package_file' => :'package_file', :'republish' => :'republish', :'tags' => :'tags', - :'version' => :'version' + :'version' => :'version', + :'vulnerability_counts' => :'vulnerability_counts' } end # Attribute type mapping. def self.swagger_types { + :'is_malware_detected' => :'BOOLEAN', :'package_file' => :'String', :'republish' => :'BOOLEAN', :'tags' => :'String', - :'version' => :'String' + :'version' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -54,6 +63,10 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] end @@ -69,6 +82,10 @@ def initialize(attributes = {}) if attributes.has_key?(:'version') self.version = attributes[:'version'] end + + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -94,10 +111,12 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && + is_malware_detected == o.is_malware_detected && package_file == o.package_file && republish == o.republish && tags == o.tags && - version == o.version + version == o.version && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -109,7 +128,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [package_file, republish, tags, version].hash + [is_malware_detected, package_file, republish, tags, version, vulnerability_counts].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/conan_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/conan_package_upload.rb index 45df0cb5..5449391e 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/conan_package_upload.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/conan_package_upload.rb @@ -84,6 +84,9 @@ class ConanPackageUpload attr_accessor :is_hidden + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -190,6 +193,9 @@ class ConanPackageUpload attr_accessor :status_url + # Absolute store path for the package, including store hash and name. + attr_accessor :store_path + attr_accessor :subtype # A one-liner synopsis of this package. @@ -205,6 +211,9 @@ class ConanPackageUpload attr_accessor :tags_immutable + # 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. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -219,6 +228,8 @@ class ConanPackageUpload attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -277,6 +288,7 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', + :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -321,18 +333,21 @@ def self.attribute_map :'status_str' => :'status_str', :'status_updated_at' => :'status_updated_at', :'status_url' => :'status_url', + :'store_path' => :'store_path', :'subtype' => :'subtype', :'summary' => :'summary', :'sync_finished_at' => :'sync_finished_at', :'sync_progress' => :'sync_progress', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', + :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -371,6 +386,7 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', + :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -415,18 +431,21 @@ def self.swagger_types :'status_str' => :'String', :'status_updated_at' => :'DateTime', :'status_url' => :'String', + :'store_path' => :'String', :'subtype' => :'String', :'summary' => :'String', :'sync_finished_at' => :'DateTime', :'sync_progress' => :'Integer', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -569,6 +588,10 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -747,6 +770,10 @@ def initialize(attributes = {}) self.status_url = attributes[:'status_url'] end + if attributes.has_key?(:'store_path') + self.store_path = attributes[:'store_path'] + end + if attributes.has_key?(:'subtype') self.subtype = attributes[:'subtype'] end @@ -771,6 +798,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -795,6 +828,10 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end + if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -861,6 +898,7 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && + is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -905,18 +943,21 @@ def ==(o) status_str == o.status_str && status_updated_at == o.status_updated_at && status_url == o.status_url && + store_path == o.store_path && subtype == o.subtype && summary == o.summary && sync_finished_at == o.sync_finished_at && sync_progress == o.sync_progress && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -929,7 +970,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, conan_channel, conan_prefix, 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 + [architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, conan_channel, conan_prefix, 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 end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/conan_package_upload_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/conan_package_upload_request.rb index fb50c78b..813ece12 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/conan_package_upload_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/conan_package_upload_request.rb @@ -23,6 +23,9 @@ class ConanPackageUploadRequest # The info file is an python file containing the package metadata. attr_accessor :info_file + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + # The info file is an python file containing the package metadata. attr_accessor :manifest_file @@ -44,19 +47,23 @@ class ConanPackageUploadRequest # The raw version for this package. attr_accessor :version + attr_accessor :vulnerability_counts + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'conan_channel' => :'conan_channel', :'conan_prefix' => :'conan_prefix', :'info_file' => :'info_file', + :'is_malware_detected' => :'is_malware_detected', :'manifest_file' => :'manifest_file', :'metadata_file' => :'metadata_file', :'name' => :'name', :'package_file' => :'package_file', :'republish' => :'republish', :'tags' => :'tags', - :'version' => :'version' + :'version' => :'version', + :'vulnerability_counts' => :'vulnerability_counts' } end @@ -66,13 +73,15 @@ def self.swagger_types :'conan_channel' => :'String', :'conan_prefix' => :'String', :'info_file' => :'String', + :'is_malware_detected' => :'BOOLEAN', :'manifest_file' => :'String', :'metadata_file' => :'String', :'name' => :'String', :'package_file' => :'String', :'republish' => :'BOOLEAN', :'tags' => :'String', - :'version' => :'String' + :'version' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -96,6 +105,10 @@ def initialize(attributes = {}) self.info_file = attributes[:'info_file'] end + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'manifest_file') self.manifest_file = attributes[:'manifest_file'] end @@ -123,6 +136,10 @@ def initialize(attributes = {}) if attributes.has_key?(:'version') self.version = attributes[:'version'] end + + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -166,13 +183,15 @@ def ==(o) conan_channel == o.conan_channel && conan_prefix == o.conan_prefix && info_file == o.info_file && + is_malware_detected == o.is_malware_detected && manifest_file == o.manifest_file && metadata_file == o.metadata_file && name == o.name && package_file == o.package_file && republish == o.republish && tags == o.tags && - version == o.version + version == o.version && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -184,7 +203,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [conan_channel, conan_prefix, info_file, manifest_file, metadata_file, name, package_file, republish, tags, version].hash + [conan_channel, conan_prefix, info_file, is_malware_detected, manifest_file, metadata_file, name, package_file, republish, tags, version, vulnerability_counts].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/conda_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/conda_package_upload.rb index 93d80004..a5f417e9 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/conda_package_upload.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/conda_package_upload.rb @@ -78,6 +78,9 @@ class CondaPackageUpload attr_accessor :is_hidden + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -184,6 +187,9 @@ class CondaPackageUpload attr_accessor :status_url + # Absolute store path for the package, including store hash and name. + attr_accessor :store_path + attr_accessor :subtype # A one-liner synopsis of this package. @@ -199,6 +205,9 @@ class CondaPackageUpload attr_accessor :tags_immutable + # 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. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -213,6 +222,8 @@ class CondaPackageUpload attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -269,6 +280,7 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', + :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -313,18 +325,21 @@ def self.attribute_map :'status_str' => :'status_str', :'status_updated_at' => :'status_updated_at', :'status_url' => :'status_url', + :'store_path' => :'store_path', :'subtype' => :'subtype', :'summary' => :'summary', :'sync_finished_at' => :'sync_finished_at', :'sync_progress' => :'sync_progress', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', + :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -361,6 +376,7 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', + :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -405,18 +421,21 @@ def self.swagger_types :'status_str' => :'String', :'status_updated_at' => :'DateTime', :'status_url' => :'String', + :'store_path' => :'String', :'subtype' => :'String', :'summary' => :'String', :'sync_finished_at' => :'DateTime', :'sync_progress' => :'Integer', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -551,6 +570,10 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -729,6 +752,10 @@ def initialize(attributes = {}) self.status_url = attributes[:'status_url'] end + if attributes.has_key?(:'store_path') + self.store_path = attributes[:'store_path'] + end + if attributes.has_key?(:'subtype') self.subtype = attributes[:'subtype'] end @@ -753,6 +780,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -777,6 +810,10 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end + if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -841,6 +878,7 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && + is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -885,18 +923,21 @@ def ==(o) status_str == o.status_str && status_updated_at == o.status_updated_at && status_url == o.status_url && + store_path == o.store_path && subtype == o.subtype && summary == o.summary && sync_finished_at == o.sync_finished_at && sync_progress == o.sync_progress && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -909,7 +950,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [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 + [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 end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/conda_package_upload_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/conda_package_upload_request.rb index 583cbedb..6b9e3a8c 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/conda_package_upload_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/conda_package_upload_request.rb @@ -14,6 +14,9 @@ module CloudsmithApi class CondaPackageUploadRequest + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + # The primary file for the package. attr_accessor :package_file @@ -23,21 +26,27 @@ class CondaPackageUploadRequest # A comma-separated values list of tags to add to the package. attr_accessor :tags + attr_accessor :vulnerability_counts + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { + :'is_malware_detected' => :'is_malware_detected', :'package_file' => :'package_file', :'republish' => :'republish', - :'tags' => :'tags' + :'tags' => :'tags', + :'vulnerability_counts' => :'vulnerability_counts' } end # Attribute type mapping. def self.swagger_types { + :'is_malware_detected' => :'BOOLEAN', :'package_file' => :'String', :'republish' => :'BOOLEAN', - :'tags' => :'String' + :'tags' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -49,6 +58,10 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] end @@ -60,6 +73,10 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end + + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -85,9 +102,11 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && + is_malware_detected == o.is_malware_detected && package_file == o.package_file && republish == o.republish && - tags == o.tags + tags == o.tags && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -99,7 +118,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [package_file, republish, tags].hash + [is_malware_detected, package_file, republish, tags, vulnerability_counts].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/cran_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/cran_package_upload.rb index 7dfb5d07..a3266a03 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/cran_package_upload.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/cran_package_upload.rb @@ -78,6 +78,9 @@ class CranPackageUpload attr_accessor :is_hidden + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -187,6 +190,9 @@ class CranPackageUpload attr_accessor :status_url + # Absolute store path for the package, including store hash and name. + attr_accessor :store_path + attr_accessor :subtype # A one-liner synopsis of this package. @@ -202,6 +208,9 @@ class CranPackageUpload attr_accessor :tags_immutable + # 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. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -216,6 +225,8 @@ class CranPackageUpload attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -272,6 +283,7 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', + :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -317,18 +329,21 @@ def self.attribute_map :'status_str' => :'status_str', :'status_updated_at' => :'status_updated_at', :'status_url' => :'status_url', + :'store_path' => :'store_path', :'subtype' => :'subtype', :'summary' => :'summary', :'sync_finished_at' => :'sync_finished_at', :'sync_progress' => :'sync_progress', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', + :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -365,6 +380,7 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', + :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -410,18 +426,21 @@ def self.swagger_types :'status_str' => :'String', :'status_updated_at' => :'DateTime', :'status_url' => :'String', + :'store_path' => :'String', :'subtype' => :'String', :'summary' => :'String', :'sync_finished_at' => :'DateTime', :'sync_progress' => :'Integer', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -556,6 +575,10 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -738,6 +761,10 @@ def initialize(attributes = {}) self.status_url = attributes[:'status_url'] end + if attributes.has_key?(:'store_path') + self.store_path = attributes[:'store_path'] + end + if attributes.has_key?(:'subtype') self.subtype = attributes[:'subtype'] end @@ -762,6 +789,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -786,6 +819,10 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end + if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -850,6 +887,7 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && + is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -895,18 +933,21 @@ def ==(o) status_str == o.status_str && status_updated_at == o.status_updated_at && status_url == o.status_url && + store_path == o.store_path && subtype == o.subtype && summary == o.summary && sync_finished_at == o.sync_finished_at && sync_progress == o.sync_progress && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -919,7 +960,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [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, r_version, 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 + [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, r_version, 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 end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/cran_package_upload_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/cran_package_upload_request.rb index 473a0af8..f6f03ef2 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/cran_package_upload_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/cran_package_upload_request.rb @@ -17,6 +17,9 @@ class CranPackageUploadRequest # Binary package uploads for macOS should specify the architecture they were built for. attr_accessor :architecture + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + # The primary file for the package. attr_accessor :package_file @@ -29,14 +32,18 @@ class CranPackageUploadRequest # A comma-separated values list of tags to add to the package. attr_accessor :tags + attr_accessor :vulnerability_counts + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'architecture' => :'architecture', + :'is_malware_detected' => :'is_malware_detected', :'package_file' => :'package_file', :'r_version' => :'r_version', :'republish' => :'republish', - :'tags' => :'tags' + :'tags' => :'tags', + :'vulnerability_counts' => :'vulnerability_counts' } end @@ -44,10 +51,12 @@ def self.attribute_map def self.swagger_types { :'architecture' => :'String', + :'is_malware_detected' => :'BOOLEAN', :'package_file' => :'String', :'r_version' => :'String', :'republish' => :'BOOLEAN', - :'tags' => :'String' + :'tags' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -63,6 +72,10 @@ def initialize(attributes = {}) self.architecture = attributes[:'architecture'] end + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] end @@ -78,6 +91,10 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end + + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -104,10 +121,12 @@ def ==(o) return true if self.equal?(o) self.class == o.class && architecture == o.architecture && + is_malware_detected == o.is_malware_detected && package_file == o.package_file && r_version == o.r_version && republish == o.republish && - tags == o.tags + tags == o.tags && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -119,7 +138,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [architecture, package_file, r_version, republish, tags].hash + [architecture, is_malware_detected, package_file, r_version, republish, tags, vulnerability_counts].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/dart_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/dart_package_upload.rb index b6902043..36434b9c 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/dart_package_upload.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/dart_package_upload.rb @@ -78,6 +78,9 @@ class DartPackageUpload attr_accessor :is_hidden + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -184,6 +187,9 @@ class DartPackageUpload attr_accessor :status_url + # Absolute store path for the package, including store hash and name. + attr_accessor :store_path + attr_accessor :subtype # A one-liner synopsis of this package. @@ -199,6 +205,9 @@ class DartPackageUpload attr_accessor :tags_immutable + # 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. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -213,6 +222,8 @@ class DartPackageUpload attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -269,6 +280,7 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', + :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -313,18 +325,21 @@ def self.attribute_map :'status_str' => :'status_str', :'status_updated_at' => :'status_updated_at', :'status_url' => :'status_url', + :'store_path' => :'store_path', :'subtype' => :'subtype', :'summary' => :'summary', :'sync_finished_at' => :'sync_finished_at', :'sync_progress' => :'sync_progress', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', + :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -361,6 +376,7 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', + :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -405,18 +421,21 @@ def self.swagger_types :'status_str' => :'String', :'status_updated_at' => :'DateTime', :'status_url' => :'String', + :'store_path' => :'String', :'subtype' => :'String', :'summary' => :'String', :'sync_finished_at' => :'DateTime', :'sync_progress' => :'Integer', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -551,6 +570,10 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -729,6 +752,10 @@ def initialize(attributes = {}) self.status_url = attributes[:'status_url'] end + if attributes.has_key?(:'store_path') + self.store_path = attributes[:'store_path'] + end + if attributes.has_key?(:'subtype') self.subtype = attributes[:'subtype'] end @@ -753,6 +780,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -777,6 +810,10 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end + if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -841,6 +878,7 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && + is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -885,18 +923,21 @@ def ==(o) status_str == o.status_str && status_updated_at == o.status_updated_at && status_url == o.status_url && + store_path == o.store_path && subtype == o.subtype && summary == o.summary && sync_finished_at == o.sync_finished_at && sync_progress == o.sync_progress && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -909,7 +950,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [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 + [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 end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/dart_package_upload_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/dart_package_upload_request.rb index 43332f46..3aa60a57 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/dart_package_upload_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/dart_package_upload_request.rb @@ -14,6 +14,9 @@ module CloudsmithApi class DartPackageUploadRequest + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + # The primary file for the package. attr_accessor :package_file @@ -23,21 +26,27 @@ class DartPackageUploadRequest # A comma-separated values list of tags to add to the package. attr_accessor :tags + attr_accessor :vulnerability_counts + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { + :'is_malware_detected' => :'is_malware_detected', :'package_file' => :'package_file', :'republish' => :'republish', - :'tags' => :'tags' + :'tags' => :'tags', + :'vulnerability_counts' => :'vulnerability_counts' } end # Attribute type mapping. def self.swagger_types { + :'is_malware_detected' => :'BOOLEAN', :'package_file' => :'String', :'republish' => :'BOOLEAN', - :'tags' => :'String' + :'tags' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -49,6 +58,10 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] end @@ -60,6 +73,10 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end + + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -85,9 +102,11 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && + is_malware_detected == o.is_malware_detected && package_file == o.package_file && republish == o.republish && - tags == o.tags + tags == o.tags && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -99,7 +118,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [package_file, republish, tags].hash + [is_malware_detected, package_file, republish, tags, vulnerability_counts].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/deb_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/deb_package_upload.rb index 84a7f384..7a0ce694 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/deb_package_upload.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/deb_package_upload.rb @@ -78,6 +78,9 @@ class DebPackageUpload attr_accessor :is_hidden + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -184,6 +187,9 @@ class DebPackageUpload attr_accessor :status_url + # Absolute store path for the package, including store hash and name. + attr_accessor :store_path + attr_accessor :subtype # A one-liner synopsis of this package. @@ -199,6 +205,9 @@ class DebPackageUpload attr_accessor :tags_immutable + # 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. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -213,6 +222,8 @@ class DebPackageUpload attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -269,6 +280,7 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', + :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -313,18 +325,21 @@ def self.attribute_map :'status_str' => :'status_str', :'status_updated_at' => :'status_updated_at', :'status_url' => :'status_url', + :'store_path' => :'store_path', :'subtype' => :'subtype', :'summary' => :'summary', :'sync_finished_at' => :'sync_finished_at', :'sync_progress' => :'sync_progress', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', + :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -361,6 +376,7 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', + :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -405,18 +421,21 @@ def self.swagger_types :'status_str' => :'String', :'status_updated_at' => :'DateTime', :'status_url' => :'String', + :'store_path' => :'String', :'subtype' => :'String', :'summary' => :'String', :'sync_finished_at' => :'DateTime', :'sync_progress' => :'Integer', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -551,6 +570,10 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -729,6 +752,10 @@ def initialize(attributes = {}) self.status_url = attributes[:'status_url'] end + if attributes.has_key?(:'store_path') + self.store_path = attributes[:'store_path'] + end + if attributes.has_key?(:'subtype') self.subtype = attributes[:'subtype'] end @@ -753,6 +780,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -777,6 +810,10 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end + if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -841,6 +878,7 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && + is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -885,18 +923,21 @@ def ==(o) status_str == o.status_str && status_updated_at == o.status_updated_at && status_url == o.status_url && + store_path == o.store_path && subtype == o.subtype && summary == o.summary && sync_finished_at == o.sync_finished_at && sync_progress == o.sync_progress && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -909,7 +950,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [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 + [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 end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/deb_package_upload_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/deb_package_upload_request.rb index cc5ba04a..fb1c986a 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/deb_package_upload_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/deb_package_upload_request.rb @@ -23,6 +23,9 @@ class DebPackageUploadRequest # The distribution to store the package for. attr_accessor :distribution + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + # The primary file for the package. attr_accessor :package_file @@ -35,16 +38,20 @@ class DebPackageUploadRequest # A comma-separated values list of tags to add to the package. attr_accessor :tags + attr_accessor :vulnerability_counts + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'changes_file' => :'changes_file', :'component' => :'component', :'distribution' => :'distribution', + :'is_malware_detected' => :'is_malware_detected', :'package_file' => :'package_file', :'republish' => :'republish', :'sources_file' => :'sources_file', - :'tags' => :'tags' + :'tags' => :'tags', + :'vulnerability_counts' => :'vulnerability_counts' } end @@ -54,10 +61,12 @@ def self.swagger_types :'changes_file' => :'String', :'component' => :'String', :'distribution' => :'String', + :'is_malware_detected' => :'BOOLEAN', :'package_file' => :'String', :'republish' => :'BOOLEAN', :'sources_file' => :'String', - :'tags' => :'String' + :'tags' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -83,6 +92,10 @@ def initialize(attributes = {}) self.distribution = attributes[:'distribution'] end + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] end @@ -98,6 +111,10 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end + + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -131,10 +148,12 @@ def ==(o) changes_file == o.changes_file && component == o.component && distribution == o.distribution && + is_malware_detected == o.is_malware_detected && package_file == o.package_file && republish == o.republish && sources_file == o.sources_file && - tags == o.tags + tags == o.tags && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -146,7 +165,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [changes_file, component, distribution, package_file, republish, sources_file, tags].hash + [changes_file, component, distribution, is_malware_detected, package_file, republish, sources_file, tags, vulnerability_counts].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/docker_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/docker_package_upload.rb index 2039148d..502c9cfa 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/docker_package_upload.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/docker_package_upload.rb @@ -78,6 +78,9 @@ class DockerPackageUpload attr_accessor :is_hidden + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -184,6 +187,9 @@ class DockerPackageUpload attr_accessor :status_url + # Absolute store path for the package, including store hash and name. + attr_accessor :store_path + attr_accessor :subtype # A one-liner synopsis of this package. @@ -199,6 +205,9 @@ class DockerPackageUpload attr_accessor :tags_immutable + # 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. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -213,6 +222,8 @@ class DockerPackageUpload attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -269,6 +280,7 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', + :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -313,18 +325,21 @@ def self.attribute_map :'status_str' => :'status_str', :'status_updated_at' => :'status_updated_at', :'status_url' => :'status_url', + :'store_path' => :'store_path', :'subtype' => :'subtype', :'summary' => :'summary', :'sync_finished_at' => :'sync_finished_at', :'sync_progress' => :'sync_progress', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', + :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -361,6 +376,7 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', + :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -405,18 +421,21 @@ def self.swagger_types :'status_str' => :'String', :'status_updated_at' => :'DateTime', :'status_url' => :'String', + :'store_path' => :'String', :'subtype' => :'String', :'summary' => :'String', :'sync_finished_at' => :'DateTime', :'sync_progress' => :'Integer', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -551,6 +570,10 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -729,6 +752,10 @@ def initialize(attributes = {}) self.status_url = attributes[:'status_url'] end + if attributes.has_key?(:'store_path') + self.store_path = attributes[:'store_path'] + end + if attributes.has_key?(:'subtype') self.subtype = attributes[:'subtype'] end @@ -753,6 +780,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -777,6 +810,10 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end + if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -841,6 +878,7 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && + is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -885,18 +923,21 @@ def ==(o) status_str == o.status_str && status_updated_at == o.status_updated_at && status_url == o.status_url && + store_path == o.store_path && subtype == o.subtype && summary == o.summary && sync_finished_at == o.sync_finished_at && sync_progress == o.sync_progress && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -909,7 +950,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [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 + [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 end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/docker_package_upload_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/docker_package_upload_request.rb index 8f86a6a7..a86bd7a0 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/docker_package_upload_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/docker_package_upload_request.rb @@ -14,6 +14,9 @@ module CloudsmithApi class DockerPackageUploadRequest + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + # The primary file for the package. attr_accessor :package_file @@ -23,21 +26,27 @@ class DockerPackageUploadRequest # A comma-separated values list of tags to add to the package. attr_accessor :tags + attr_accessor :vulnerability_counts + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { + :'is_malware_detected' => :'is_malware_detected', :'package_file' => :'package_file', :'republish' => :'republish', - :'tags' => :'tags' + :'tags' => :'tags', + :'vulnerability_counts' => :'vulnerability_counts' } end # Attribute type mapping. def self.swagger_types { + :'is_malware_detected' => :'BOOLEAN', :'package_file' => :'String', :'republish' => :'BOOLEAN', - :'tags' => :'String' + :'tags' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -49,6 +58,10 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] end @@ -60,6 +73,10 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end + + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -85,9 +102,11 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && + is_malware_detected == o.is_malware_detected && package_file == o.package_file && republish == o.republish && - tags == o.tags + tags == o.tags && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -99,7 +118,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [package_file, republish, tags].hash + [is_malware_detected, package_file, republish, tags, vulnerability_counts].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/generic_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/generic_package_upload.rb index 09a75fad..8daa77d9 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/generic_package_upload.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/generic_package_upload.rb @@ -78,6 +78,9 @@ class GenericPackageUpload attr_accessor :is_hidden + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -184,6 +187,9 @@ class GenericPackageUpload attr_accessor :status_url + # Absolute store path for the package, including store hash and name. + attr_accessor :store_path + attr_accessor :subtype # A one-liner synopsis of this package. @@ -199,6 +205,9 @@ class GenericPackageUpload attr_accessor :tags_immutable + # 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. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -213,6 +222,8 @@ class GenericPackageUpload attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -269,6 +280,7 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', + :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -313,18 +325,21 @@ def self.attribute_map :'status_str' => :'status_str', :'status_updated_at' => :'status_updated_at', :'status_url' => :'status_url', + :'store_path' => :'store_path', :'subtype' => :'subtype', :'summary' => :'summary', :'sync_finished_at' => :'sync_finished_at', :'sync_progress' => :'sync_progress', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', + :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -361,6 +376,7 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', + :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -405,18 +421,21 @@ def self.swagger_types :'status_str' => :'String', :'status_updated_at' => :'DateTime', :'status_url' => :'String', + :'store_path' => :'String', :'subtype' => :'String', :'summary' => :'String', :'sync_finished_at' => :'DateTime', :'sync_progress' => :'Integer', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -551,6 +570,10 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -729,6 +752,10 @@ def initialize(attributes = {}) self.status_url = attributes[:'status_url'] end + if attributes.has_key?(:'store_path') + self.store_path = attributes[:'store_path'] + end + if attributes.has_key?(:'subtype') self.subtype = attributes[:'subtype'] end @@ -753,6 +780,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -777,6 +810,10 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end + if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -841,6 +878,7 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && + is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -885,18 +923,21 @@ def ==(o) status_str == o.status_str && status_updated_at == o.status_updated_at && status_url == o.status_url && + store_path == o.store_path && subtype == o.subtype && summary == o.summary && sync_finished_at == o.sync_finished_at && sync_progress == o.sync_progress && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -909,7 +950,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [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 + [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 end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/generic_package_upload_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/generic_package_upload_request.rb index 0c2929f4..bb934e9c 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/generic_package_upload_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/generic_package_upload_request.rb @@ -17,6 +17,9 @@ class GenericPackageUploadRequest # The full filepath of the package including filename. attr_accessor :filepath + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + # The name of this package. attr_accessor :name @@ -32,15 +35,19 @@ class GenericPackageUploadRequest # The raw version for this package. attr_accessor :version + attr_accessor :vulnerability_counts + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'filepath' => :'filepath', + :'is_malware_detected' => :'is_malware_detected', :'name' => :'name', :'package_file' => :'package_file', :'republish' => :'republish', :'tags' => :'tags', - :'version' => :'version' + :'version' => :'version', + :'vulnerability_counts' => :'vulnerability_counts' } end @@ -48,11 +55,13 @@ def self.attribute_map def self.swagger_types { :'filepath' => :'String', + :'is_malware_detected' => :'BOOLEAN', :'name' => :'String', :'package_file' => :'String', :'republish' => :'BOOLEAN', :'tags' => :'String', - :'version' => :'String' + :'version' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -68,6 +77,10 @@ def initialize(attributes = {}) self.filepath = attributes[:'filepath'] end + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'name') self.name = attributes[:'name'] end @@ -87,6 +100,10 @@ def initialize(attributes = {}) if attributes.has_key?(:'version') self.version = attributes[:'version'] end + + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -118,11 +135,13 @@ def ==(o) return true if self.equal?(o) self.class == o.class && filepath == o.filepath && + is_malware_detected == o.is_malware_detected && name == o.name && package_file == o.package_file && republish == o.republish && tags == o.tags && - version == o.version + version == o.version && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -134,7 +153,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [filepath, name, package_file, republish, tags, version].hash + [filepath, is_malware_detected, name, package_file, republish, tags, version, vulnerability_counts].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/go_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/go_package_upload.rb index 01915cc7..99b69784 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/go_package_upload.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/go_package_upload.rb @@ -78,6 +78,9 @@ class GoPackageUpload attr_accessor :is_hidden + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -184,6 +187,9 @@ class GoPackageUpload attr_accessor :status_url + # Absolute store path for the package, including store hash and name. + attr_accessor :store_path + attr_accessor :subtype # A one-liner synopsis of this package. @@ -199,6 +205,9 @@ class GoPackageUpload attr_accessor :tags_immutable + # 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. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -213,6 +222,8 @@ class GoPackageUpload attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -269,6 +280,7 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', + :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -313,18 +325,21 @@ def self.attribute_map :'status_str' => :'status_str', :'status_updated_at' => :'status_updated_at', :'status_url' => :'status_url', + :'store_path' => :'store_path', :'subtype' => :'subtype', :'summary' => :'summary', :'sync_finished_at' => :'sync_finished_at', :'sync_progress' => :'sync_progress', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', + :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -361,6 +376,7 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', + :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -405,18 +421,21 @@ def self.swagger_types :'status_str' => :'String', :'status_updated_at' => :'DateTime', :'status_url' => :'String', + :'store_path' => :'String', :'subtype' => :'String', :'summary' => :'String', :'sync_finished_at' => :'DateTime', :'sync_progress' => :'Integer', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -551,6 +570,10 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -729,6 +752,10 @@ def initialize(attributes = {}) self.status_url = attributes[:'status_url'] end + if attributes.has_key?(:'store_path') + self.store_path = attributes[:'store_path'] + end + if attributes.has_key?(:'subtype') self.subtype = attributes[:'subtype'] end @@ -753,6 +780,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -777,6 +810,10 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end + if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -841,6 +878,7 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && + is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -885,18 +923,21 @@ def ==(o) status_str == o.status_str && status_updated_at == o.status_updated_at && status_url == o.status_url && + store_path == o.store_path && subtype == o.subtype && summary == o.summary && sync_finished_at == o.sync_finished_at && sync_progress == o.sync_progress && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -909,7 +950,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [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 + [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 end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/go_package_upload_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/go_package_upload_request.rb index 1fa593fb..6ae5718a 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/go_package_upload_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/go_package_upload_request.rb @@ -14,6 +14,9 @@ module CloudsmithApi class GoPackageUploadRequest + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + # The primary file for the package. attr_accessor :package_file @@ -23,21 +26,27 @@ class GoPackageUploadRequest # A comma-separated values list of tags to add to the package. attr_accessor :tags + attr_accessor :vulnerability_counts + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { + :'is_malware_detected' => :'is_malware_detected', :'package_file' => :'package_file', :'republish' => :'republish', - :'tags' => :'tags' + :'tags' => :'tags', + :'vulnerability_counts' => :'vulnerability_counts' } end # Attribute type mapping. def self.swagger_types { + :'is_malware_detected' => :'BOOLEAN', :'package_file' => :'String', :'republish' => :'BOOLEAN', - :'tags' => :'String' + :'tags' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -49,6 +58,10 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] end @@ -60,6 +73,10 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end + + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -85,9 +102,11 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && + is_malware_detected == o.is_malware_detected && package_file == o.package_file && republish == o.republish && - tags == o.tags + tags == o.tags && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -99,7 +118,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [package_file, republish, tags].hash + [is_malware_detected, package_file, republish, tags, vulnerability_counts].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/helm_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/helm_package_upload.rb index 20e43abd..85a35ac5 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/helm_package_upload.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/helm_package_upload.rb @@ -78,6 +78,9 @@ class HelmPackageUpload attr_accessor :is_hidden + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -184,6 +187,9 @@ class HelmPackageUpload attr_accessor :status_url + # Absolute store path for the package, including store hash and name. + attr_accessor :store_path + attr_accessor :subtype # A one-liner synopsis of this package. @@ -199,6 +205,9 @@ class HelmPackageUpload attr_accessor :tags_immutable + # 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. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -213,6 +222,8 @@ class HelmPackageUpload attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -269,6 +280,7 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', + :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -313,18 +325,21 @@ def self.attribute_map :'status_str' => :'status_str', :'status_updated_at' => :'status_updated_at', :'status_url' => :'status_url', + :'store_path' => :'store_path', :'subtype' => :'subtype', :'summary' => :'summary', :'sync_finished_at' => :'sync_finished_at', :'sync_progress' => :'sync_progress', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', + :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -361,6 +376,7 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', + :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -405,18 +421,21 @@ def self.swagger_types :'status_str' => :'String', :'status_updated_at' => :'DateTime', :'status_url' => :'String', + :'store_path' => :'String', :'subtype' => :'String', :'summary' => :'String', :'sync_finished_at' => :'DateTime', :'sync_progress' => :'Integer', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -551,6 +570,10 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -729,6 +752,10 @@ def initialize(attributes = {}) self.status_url = attributes[:'status_url'] end + if attributes.has_key?(:'store_path') + self.store_path = attributes[:'store_path'] + end + if attributes.has_key?(:'subtype') self.subtype = attributes[:'subtype'] end @@ -753,6 +780,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -777,6 +810,10 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end + if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -841,6 +878,7 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && + is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -885,18 +923,21 @@ def ==(o) status_str == o.status_str && status_updated_at == o.status_updated_at && status_url == o.status_url && + store_path == o.store_path && subtype == o.subtype && summary == o.summary && sync_finished_at == o.sync_finished_at && sync_progress == o.sync_progress && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -909,7 +950,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [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 + [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 end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/helm_package_upload_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/helm_package_upload_request.rb index 9c5ab9c6..0076deb6 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/helm_package_upload_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/helm_package_upload_request.rb @@ -14,6 +14,9 @@ module CloudsmithApi class HelmPackageUploadRequest + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + # The primary file for the package. attr_accessor :package_file @@ -26,23 +29,29 @@ class HelmPackageUploadRequest # A comma-separated values list of tags to add to the package. attr_accessor :tags + attr_accessor :vulnerability_counts + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { + :'is_malware_detected' => :'is_malware_detected', :'package_file' => :'package_file', :'provenance_file' => :'provenance_file', :'republish' => :'republish', - :'tags' => :'tags' + :'tags' => :'tags', + :'vulnerability_counts' => :'vulnerability_counts' } end # Attribute type mapping. def self.swagger_types { + :'is_malware_detected' => :'BOOLEAN', :'package_file' => :'String', :'provenance_file' => :'String', :'republish' => :'BOOLEAN', - :'tags' => :'String' + :'tags' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -54,6 +63,10 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] end @@ -69,6 +82,10 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end + + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -94,10 +111,12 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && + is_malware_detected == o.is_malware_detected && package_file == o.package_file && provenance_file == o.provenance_file && republish == o.republish && - tags == o.tags + tags == o.tags && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -109,7 +128,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [package_file, provenance_file, republish, tags].hash + [is_malware_detected, package_file, provenance_file, republish, tags, vulnerability_counts].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/hex_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/hex_package_upload.rb index 9f67a29c..6acd90c0 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/hex_package_upload.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/hex_package_upload.rb @@ -78,6 +78,9 @@ class HexPackageUpload attr_accessor :is_hidden + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -184,6 +187,9 @@ class HexPackageUpload attr_accessor :status_url + # Absolute store path for the package, including store hash and name. + attr_accessor :store_path + attr_accessor :subtype # A one-liner synopsis of this package. @@ -199,6 +205,9 @@ class HexPackageUpload attr_accessor :tags_immutable + # 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. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -213,6 +222,8 @@ class HexPackageUpload attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -269,6 +280,7 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', + :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -313,18 +325,21 @@ def self.attribute_map :'status_str' => :'status_str', :'status_updated_at' => :'status_updated_at', :'status_url' => :'status_url', + :'store_path' => :'store_path', :'subtype' => :'subtype', :'summary' => :'summary', :'sync_finished_at' => :'sync_finished_at', :'sync_progress' => :'sync_progress', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', + :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -361,6 +376,7 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', + :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -405,18 +421,21 @@ def self.swagger_types :'status_str' => :'String', :'status_updated_at' => :'DateTime', :'status_url' => :'String', + :'store_path' => :'String', :'subtype' => :'String', :'summary' => :'String', :'sync_finished_at' => :'DateTime', :'sync_progress' => :'Integer', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -551,6 +570,10 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -729,6 +752,10 @@ def initialize(attributes = {}) self.status_url = attributes[:'status_url'] end + if attributes.has_key?(:'store_path') + self.store_path = attributes[:'store_path'] + end + if attributes.has_key?(:'subtype') self.subtype = attributes[:'subtype'] end @@ -753,6 +780,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -777,6 +810,10 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end + if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -841,6 +878,7 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && + is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -885,18 +923,21 @@ def ==(o) status_str == o.status_str && status_updated_at == o.status_updated_at && status_url == o.status_url && + store_path == o.store_path && subtype == o.subtype && summary == o.summary && sync_finished_at == o.sync_finished_at && sync_progress == o.sync_progress && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -909,7 +950,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [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 + [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 end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/hex_package_upload_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/hex_package_upload_request.rb index eafbbe6f..8904d139 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/hex_package_upload_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/hex_package_upload_request.rb @@ -14,6 +14,9 @@ module CloudsmithApi class HexPackageUploadRequest + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + # The primary file for the package. attr_accessor :package_file @@ -23,21 +26,27 @@ class HexPackageUploadRequest # A comma-separated values list of tags to add to the package. attr_accessor :tags + attr_accessor :vulnerability_counts + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { + :'is_malware_detected' => :'is_malware_detected', :'package_file' => :'package_file', :'republish' => :'republish', - :'tags' => :'tags' + :'tags' => :'tags', + :'vulnerability_counts' => :'vulnerability_counts' } end # Attribute type mapping. def self.swagger_types { + :'is_malware_detected' => :'BOOLEAN', :'package_file' => :'String', :'republish' => :'BOOLEAN', - :'tags' => :'String' + :'tags' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -49,6 +58,10 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] end @@ -60,6 +73,10 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end + + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -85,9 +102,11 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && + is_malware_detected == o.is_malware_detected && package_file == o.package_file && republish == o.republish && - tags == o.tags + tags == o.tags && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -99,7 +118,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [package_file, republish, tags].hash + [is_malware_detected, package_file, republish, tags, vulnerability_counts].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/huggingface_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/huggingface_package_upload.rb index 511068c7..a89b7edd 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/huggingface_package_upload.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/huggingface_package_upload.rb @@ -78,6 +78,9 @@ class HuggingfacePackageUpload attr_accessor :is_hidden + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -184,6 +187,9 @@ class HuggingfacePackageUpload attr_accessor :status_url + # Absolute store path for the package, including store hash and name. + attr_accessor :store_path + attr_accessor :subtype # A one-liner synopsis of this package. @@ -199,6 +205,9 @@ class HuggingfacePackageUpload attr_accessor :tags_immutable + # 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. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -213,6 +222,8 @@ class HuggingfacePackageUpload attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -269,6 +280,7 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', + :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -313,18 +325,21 @@ def self.attribute_map :'status_str' => :'status_str', :'status_updated_at' => :'status_updated_at', :'status_url' => :'status_url', + :'store_path' => :'store_path', :'subtype' => :'subtype', :'summary' => :'summary', :'sync_finished_at' => :'sync_finished_at', :'sync_progress' => :'sync_progress', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', + :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -361,6 +376,7 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', + :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -405,18 +421,21 @@ def self.swagger_types :'status_str' => :'String', :'status_updated_at' => :'DateTime', :'status_url' => :'String', + :'store_path' => :'String', :'subtype' => :'String', :'summary' => :'String', :'sync_finished_at' => :'DateTime', :'sync_progress' => :'Integer', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -551,6 +570,10 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -729,6 +752,10 @@ def initialize(attributes = {}) self.status_url = attributes[:'status_url'] end + if attributes.has_key?(:'store_path') + self.store_path = attributes[:'store_path'] + end + if attributes.has_key?(:'subtype') self.subtype = attributes[:'subtype'] end @@ -753,6 +780,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -777,6 +810,10 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end + if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -841,6 +878,7 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && + is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -885,18 +923,21 @@ def ==(o) status_str == o.status_str && status_updated_at == o.status_updated_at && status_url == o.status_url && + store_path == o.store_path && subtype == o.subtype && summary == o.summary && sync_finished_at == o.sync_finished_at && sync_progress == o.sync_progress && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -909,7 +950,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [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 + [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 end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/huggingface_package_upload_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/huggingface_package_upload_request.rb index 46ebe25c..39e4d138 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/huggingface_package_upload_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/huggingface_package_upload_request.rb @@ -14,6 +14,9 @@ module CloudsmithApi class HuggingfacePackageUploadRequest + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + # The primary file for the package. attr_accessor :package_file @@ -23,21 +26,27 @@ class HuggingfacePackageUploadRequest # A comma-separated values list of tags to add to the package. attr_accessor :tags + attr_accessor :vulnerability_counts + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { + :'is_malware_detected' => :'is_malware_detected', :'package_file' => :'package_file', :'republish' => :'republish', - :'tags' => :'tags' + :'tags' => :'tags', + :'vulnerability_counts' => :'vulnerability_counts' } end # Attribute type mapping. def self.swagger_types { + :'is_malware_detected' => :'BOOLEAN', :'package_file' => :'String', :'republish' => :'BOOLEAN', - :'tags' => :'String' + :'tags' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -49,6 +58,10 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] end @@ -60,6 +73,10 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end + + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -85,9 +102,11 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && + is_malware_detected == o.is_malware_detected && package_file == o.package_file && republish == o.republish && - tags == o.tags + tags == o.tags && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -99,7 +118,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [package_file, republish, tags].hash + [is_malware_detected, package_file, republish, tags, vulnerability_counts].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/inline_response_200.rb b/bindings/ruby/src/lib/cloudsmith-api/models/inline_response_200.rb index c31821d1..8dae94be 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/inline_response_200.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/inline_response_200.rb @@ -14,19 +14,40 @@ module CloudsmithApi class InlineResponse200 - attr_accessor :results + # Whether on-demand open source overage is allowed. + attr_accessor :allow_open_source_overage + + # Effective bandwidth overage limit in GB. + attr_accessor :bandwidth_overage_limit + + # Effective storage overage limit in GB. + attr_accessor :storage_overage_limit + + # Maximum allowed bandwidth overage in GB. + attr_accessor :bandwidth_maximum + + # Maximum allowed storage overage in GB. + attr_accessor :storage_maximum # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'results' => :'results' + :'allow_open_source_overage' => :'allow_open_source_overage', + :'bandwidth_overage_limit' => :'bandwidth_overage_limit', + :'storage_overage_limit' => :'storage_overage_limit', + :'bandwidth_maximum' => :'bandwidth_maximum', + :'storage_maximum' => :'storage_maximum' } end # Attribute type mapping. def self.swagger_types { - :'results' => :'Array' + :'allow_open_source_overage' => :'BOOLEAN', + :'bandwidth_overage_limit' => :'Integer', + :'storage_overage_limit' => :'Integer', + :'bandwidth_maximum' => :'Integer', + :'storage_maximum' => :'Integer' } end @@ -38,10 +59,24 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } - if attributes.has_key?(:'results') - if (value = attributes[:'results']).is_a?(Array) - self.results = value - end + if attributes.has_key?(:'allow_open_source_overage') + self.allow_open_source_overage = attributes[:'allow_open_source_overage'] + end + + if attributes.has_key?(:'bandwidth_overage_limit') + self.bandwidth_overage_limit = attributes[:'bandwidth_overage_limit'] + end + + if attributes.has_key?(:'storage_overage_limit') + self.storage_overage_limit = attributes[:'storage_overage_limit'] + end + + if attributes.has_key?(:'bandwidth_maximum') + self.bandwidth_maximum = attributes[:'bandwidth_maximum'] + end + + if attributes.has_key?(:'storage_maximum') + self.storage_maximum = attributes[:'storage_maximum'] end end @@ -49,17 +84,12 @@ def initialize(attributes = {}) # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - if @results.nil? - invalid_properties.push('invalid value for "results", results cannot be nil.') - end - invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return false if @results.nil? true end @@ -68,7 +98,11 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - results == o.results + allow_open_source_overage == o.allow_open_source_overage && + bandwidth_overage_limit == o.bandwidth_overage_limit && + storage_overage_limit == o.storage_overage_limit && + bandwidth_maximum == o.bandwidth_maximum && + storage_maximum == o.storage_maximum end # @see the `==` method @@ -80,7 +114,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [results].hash + [allow_open_source_overage, bandwidth_overage_limit, storage_overage_limit, bandwidth_maximum, storage_maximum].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/inline_response_200_1.rb b/bindings/ruby/src/lib/cloudsmith-api/models/inline_response_200_1.rb index 3ef28721..d1be5086 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/inline_response_200_1.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/inline_response_200_1.rb @@ -14,19 +14,30 @@ module CloudsmithApi class InlineResponse2001 - attr_accessor :results + # Whether on-demand open source overage is allowed. + attr_accessor :allow_open_source_overage + + # Effective bandwidth overage limit in GB. + attr_accessor :bandwidth_overage_limit + + # Effective storage overage limit in GB. + attr_accessor :storage_overage_limit # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'results' => :'results' + :'allow_open_source_overage' => :'allow_open_source_overage', + :'bandwidth_overage_limit' => :'bandwidth_overage_limit', + :'storage_overage_limit' => :'storage_overage_limit' } end # Attribute type mapping. def self.swagger_types { - :'results' => :'Array' + :'allow_open_source_overage' => :'BOOLEAN', + :'bandwidth_overage_limit' => :'Integer', + :'storage_overage_limit' => :'Integer' } end @@ -38,10 +49,16 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } - if attributes.has_key?(:'results') - if (value = attributes[:'results']).is_a?(Array) - self.results = value - end + if attributes.has_key?(:'allow_open_source_overage') + self.allow_open_source_overage = attributes[:'allow_open_source_overage'] + end + + if attributes.has_key?(:'bandwidth_overage_limit') + self.bandwidth_overage_limit = attributes[:'bandwidth_overage_limit'] + end + + if attributes.has_key?(:'storage_overage_limit') + self.storage_overage_limit = attributes[:'storage_overage_limit'] end end @@ -49,17 +66,12 @@ def initialize(attributes = {}) # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - if @results.nil? - invalid_properties.push('invalid value for "results", results cannot be nil.') - end - invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return false if @results.nil? true end @@ -68,7 +80,9 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - results == o.results + allow_open_source_overage == o.allow_open_source_overage && + bandwidth_overage_limit == o.bandwidth_overage_limit && + storage_overage_limit == o.storage_overage_limit end # @see the `==` method @@ -80,7 +94,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [results].hash + [allow_open_source_overage, bandwidth_overage_limit, storage_overage_limit].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/inline_response_200_2.rb b/bindings/ruby/src/lib/cloudsmith-api/models/inline_response_200_2.rb index ebcbe6b9..3e0980fa 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/inline_response_200_2.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/inline_response_200_2.rb @@ -26,7 +26,7 @@ def self.attribute_map # Attribute type mapping. def self.swagger_types { - :'results' => :'Array' + :'results' => :'Array' } end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/inline_response_200_3.rb b/bindings/ruby/src/lib/cloudsmith-api/models/inline_response_200_3.rb new file mode 100644 index 00000000..f1e37f3e --- /dev/null +++ b/bindings/ruby/src/lib/cloudsmith-api/models/inline_response_200_3.rb @@ -0,0 +1,191 @@ +=begin +#Cloudsmith API (v1) + +#The API to the Cloudsmith Service + +OpenAPI spec version: v1 +Contact: support@cloudsmith.io +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.50 + +=end + +require 'date' + +module CloudsmithApi +class InlineResponse2003 + attr_accessor :results + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'results' => :'results' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'results' => :'Array' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + + if attributes.has_key?(:'results') + if (value = attributes[:'results']).is_a?(Array) + self.results = value + end + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + if @results.nil? + invalid_properties.push('invalid value for "results", results cannot be nil.') + end + + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + return false if @results.nil? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + results == o.results + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [results].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = CloudsmithApi.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + +end +end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/inline_response_200_4.rb b/bindings/ruby/src/lib/cloudsmith-api/models/inline_response_200_4.rb new file mode 100644 index 00000000..8b3ed644 --- /dev/null +++ b/bindings/ruby/src/lib/cloudsmith-api/models/inline_response_200_4.rb @@ -0,0 +1,191 @@ +=begin +#Cloudsmith API (v1) + +#The API to the Cloudsmith Service + +OpenAPI spec version: v1 +Contact: support@cloudsmith.io +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.50 + +=end + +require 'date' + +module CloudsmithApi +class InlineResponse2004 + attr_accessor :results + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'results' => :'results' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'results' => :'Array' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + + if attributes.has_key?(:'results') + if (value = attributes[:'results']).is_a?(Array) + self.results = value + end + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + if @results.nil? + invalid_properties.push('invalid value for "results", results cannot be nil.') + end + + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + return false if @results.nil? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + results == o.results + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [results].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = CloudsmithApi.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + +end +end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/luarocks_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/luarocks_package_upload.rb index 12145de4..a36fd126 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/luarocks_package_upload.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/luarocks_package_upload.rb @@ -78,6 +78,9 @@ class LuarocksPackageUpload attr_accessor :is_hidden + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -184,6 +187,9 @@ class LuarocksPackageUpload attr_accessor :status_url + # Absolute store path for the package, including store hash and name. + attr_accessor :store_path + attr_accessor :subtype # A one-liner synopsis of this package. @@ -199,6 +205,9 @@ class LuarocksPackageUpload attr_accessor :tags_immutable + # 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. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -213,6 +222,8 @@ class LuarocksPackageUpload attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -269,6 +280,7 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', + :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -313,18 +325,21 @@ def self.attribute_map :'status_str' => :'status_str', :'status_updated_at' => :'status_updated_at', :'status_url' => :'status_url', + :'store_path' => :'store_path', :'subtype' => :'subtype', :'summary' => :'summary', :'sync_finished_at' => :'sync_finished_at', :'sync_progress' => :'sync_progress', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', + :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -361,6 +376,7 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', + :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -405,18 +421,21 @@ def self.swagger_types :'status_str' => :'String', :'status_updated_at' => :'DateTime', :'status_url' => :'String', + :'store_path' => :'String', :'subtype' => :'String', :'summary' => :'String', :'sync_finished_at' => :'DateTime', :'sync_progress' => :'Integer', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -551,6 +570,10 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -729,6 +752,10 @@ def initialize(attributes = {}) self.status_url = attributes[:'status_url'] end + if attributes.has_key?(:'store_path') + self.store_path = attributes[:'store_path'] + end + if attributes.has_key?(:'subtype') self.subtype = attributes[:'subtype'] end @@ -753,6 +780,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -777,6 +810,10 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end + if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -841,6 +878,7 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && + is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -885,18 +923,21 @@ def ==(o) status_str == o.status_str && status_updated_at == o.status_updated_at && status_url == o.status_url && + store_path == o.store_path && subtype == o.subtype && summary == o.summary && sync_finished_at == o.sync_finished_at && sync_progress == o.sync_progress && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -909,7 +950,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [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 + [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 end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/luarocks_package_upload_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/luarocks_package_upload_request.rb index 3af112f6..b522fee8 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/luarocks_package_upload_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/luarocks_package_upload_request.rb @@ -14,6 +14,9 @@ module CloudsmithApi class LuarocksPackageUploadRequest + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + # The primary file for the package. attr_accessor :package_file @@ -23,21 +26,27 @@ class LuarocksPackageUploadRequest # A comma-separated values list of tags to add to the package. attr_accessor :tags + attr_accessor :vulnerability_counts + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { + :'is_malware_detected' => :'is_malware_detected', :'package_file' => :'package_file', :'republish' => :'republish', - :'tags' => :'tags' + :'tags' => :'tags', + :'vulnerability_counts' => :'vulnerability_counts' } end # Attribute type mapping. def self.swagger_types { + :'is_malware_detected' => :'BOOLEAN', :'package_file' => :'String', :'republish' => :'BOOLEAN', - :'tags' => :'String' + :'tags' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -49,6 +58,10 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] end @@ -60,6 +73,10 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end + + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -85,9 +102,11 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && + is_malware_detected == o.is_malware_detected && package_file == o.package_file && republish == o.republish && - tags == o.tags + tags == o.tags && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -99,7 +118,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [package_file, republish, tags].hash + [is_malware_detected, package_file, republish, tags, vulnerability_counts].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/maven_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/maven_package_upload.rb index 6be19c6d..3dea1ed5 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/maven_package_upload.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/maven_package_upload.rb @@ -84,6 +84,9 @@ class MavenPackageUpload attr_accessor :is_hidden + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -197,6 +200,9 @@ class MavenPackageUpload attr_accessor :status_url + # Absolute store path for the package, including store hash and name. + attr_accessor :store_path + attr_accessor :subtype # A one-liner synopsis of this package. @@ -212,6 +218,9 @@ class MavenPackageUpload attr_accessor :tags_immutable + # 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. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -226,6 +235,8 @@ class MavenPackageUpload attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -284,6 +295,7 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', + :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -331,18 +343,21 @@ def self.attribute_map :'status_str' => :'status_str', :'status_updated_at' => :'status_updated_at', :'status_url' => :'status_url', + :'store_path' => :'store_path', :'subtype' => :'subtype', :'summary' => :'summary', :'sync_finished_at' => :'sync_finished_at', :'sync_progress' => :'sync_progress', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', + :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -381,6 +396,7 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', + :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -428,18 +444,21 @@ def self.swagger_types :'status_str' => :'String', :'status_updated_at' => :'DateTime', :'status_url' => :'String', + :'store_path' => :'String', :'subtype' => :'String', :'summary' => :'String', :'sync_finished_at' => :'DateTime', :'sync_progress' => :'Integer', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -582,6 +601,10 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -772,6 +795,10 @@ def initialize(attributes = {}) self.status_url = attributes[:'status_url'] end + if attributes.has_key?(:'store_path') + self.store_path = attributes[:'store_path'] + end + if attributes.has_key?(:'subtype') self.subtype = attributes[:'subtype'] end @@ -796,6 +823,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -820,6 +853,10 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end + if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -886,6 +923,7 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && + is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -933,18 +971,21 @@ def ==(o) status_str == o.status_str && status_updated_at == o.status_updated_at && status_url == o.status_url && + store_path == o.store_path && subtype == o.subtype && summary == o.summary && sync_finished_at == o.sync_finished_at && sync_progress == o.sync_progress && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -957,7 +998,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [architectures, artifact_id, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, dependencies_checksum_md5, dependencies_url, description, display_name, distro, distro_version, downloads, epoch, extension, filename, files, format, format_url, freeable_storage, fully_qualified_name, group_id, identifier_perm, identifiers, indexed, is_cancellable, is_copyable, is_deleteable, is_downloadable, is_hidden, is_moveable, is_quarantinable, is_quarantined, is_resyncable, is_security_scannable, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, license, name, namespace, namespace_url, num_files, origin_repository, origin_repository_url, osi_approved, package_type, packaging, policy_violated, raw_license, release, repository, repository_url, sbt_version, scala_version, security_scan_completed_at, security_scan_started_at, security_scan_status, security_scan_status_updated_at, self_html_url, self_url, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash + [architectures, artifact_id, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, dependencies_checksum_md5, dependencies_url, description, display_name, distro, distro_version, downloads, epoch, extension, filename, files, format, format_url, freeable_storage, fully_qualified_name, group_id, identifier_perm, identifiers, indexed, is_cancellable, is_copyable, is_deleteable, is_downloadable, is_hidden, is_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, packaging, policy_violated, raw_license, release, repository, repository_url, sbt_version, scala_version, security_scan_completed_at, security_scan_started_at, security_scan_status, security_scan_status_updated_at, self_html_url, self_url, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, 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 end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/maven_package_upload_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/maven_package_upload_request.rb index cdc25493..7e08c2bf 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/maven_package_upload_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/maven_package_upload_request.rb @@ -23,6 +23,9 @@ class MavenPackageUploadRequest # Artifact's group ID. attr_accessor :group_id + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + # The ivy file is an XML file describing the dependencies of the project. attr_accessor :ivy_file @@ -57,12 +60,15 @@ class MavenPackageUploadRequest # The raw version for this package. attr_accessor :version + attr_accessor :vulnerability_counts + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'artifact_id' => :'artifact_id', :'extra_files' => :'extra_files', :'group_id' => :'group_id', + :'is_malware_detected' => :'is_malware_detected', :'ivy_file' => :'ivy_file', :'javadoc_file' => :'javadoc_file', :'package_file' => :'package_file', @@ -74,7 +80,8 @@ def self.attribute_map :'sources_file' => :'sources_file', :'tags' => :'tags', :'tests_file' => :'tests_file', - :'version' => :'version' + :'version' => :'version', + :'vulnerability_counts' => :'vulnerability_counts' } end @@ -84,6 +91,7 @@ def self.swagger_types :'artifact_id' => :'String', :'extra_files' => :'Array', :'group_id' => :'String', + :'is_malware_detected' => :'BOOLEAN', :'ivy_file' => :'String', :'javadoc_file' => :'String', :'package_file' => :'String', @@ -95,7 +103,8 @@ def self.swagger_types :'sources_file' => :'String', :'tags' => :'String', :'tests_file' => :'String', - :'version' => :'String' + :'version' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -121,6 +130,10 @@ def initialize(attributes = {}) self.group_id = attributes[:'group_id'] end + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'ivy_file') self.ivy_file = attributes[:'ivy_file'] end @@ -168,6 +181,10 @@ def initialize(attributes = {}) if attributes.has_key?(:'version') self.version = attributes[:'version'] end + + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -196,6 +213,7 @@ def ==(o) artifact_id == o.artifact_id && extra_files == o.extra_files && group_id == o.group_id && + is_malware_detected == o.is_malware_detected && ivy_file == o.ivy_file && javadoc_file == o.javadoc_file && package_file == o.package_file && @@ -207,7 +225,8 @@ def ==(o) sources_file == o.sources_file && tags == o.tags && tests_file == o.tests_file && - version == o.version + version == o.version && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -219,7 +238,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [artifact_id, extra_files, group_id, ivy_file, javadoc_file, package_file, packaging, pom_file, republish, sbt_version, scala_version, sources_file, tags, tests_file, version].hash + [artifact_id, extra_files, group_id, is_malware_detected, ivy_file, javadoc_file, package_file, packaging, pom_file, republish, sbt_version, scala_version, sources_file, tags, tests_file, version, vulnerability_counts].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/mcp_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/mcp_package_upload.rb index 2c178e8a..35678e23 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/mcp_package_upload.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/mcp_package_upload.rb @@ -78,6 +78,9 @@ class McpPackageUpload attr_accessor :is_hidden + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -184,6 +187,9 @@ class McpPackageUpload attr_accessor :status_url + # Absolute store path for the package, including store hash and name. + attr_accessor :store_path + attr_accessor :subtype # A one-liner synopsis of this package. @@ -199,6 +205,9 @@ class McpPackageUpload attr_accessor :tags_immutable + # 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. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -213,6 +222,8 @@ class McpPackageUpload attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -269,6 +280,7 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', + :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -313,18 +325,21 @@ def self.attribute_map :'status_str' => :'status_str', :'status_updated_at' => :'status_updated_at', :'status_url' => :'status_url', + :'store_path' => :'store_path', :'subtype' => :'subtype', :'summary' => :'summary', :'sync_finished_at' => :'sync_finished_at', :'sync_progress' => :'sync_progress', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', + :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -361,6 +376,7 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', + :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -405,18 +421,21 @@ def self.swagger_types :'status_str' => :'String', :'status_updated_at' => :'DateTime', :'status_url' => :'String', + :'store_path' => :'String', :'subtype' => :'String', :'summary' => :'String', :'sync_finished_at' => :'DateTime', :'sync_progress' => :'Integer', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -551,6 +570,10 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -729,6 +752,10 @@ def initialize(attributes = {}) self.status_url = attributes[:'status_url'] end + if attributes.has_key?(:'store_path') + self.store_path = attributes[:'store_path'] + end + if attributes.has_key?(:'subtype') self.subtype = attributes[:'subtype'] end @@ -753,6 +780,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -777,6 +810,10 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end + if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -841,6 +878,7 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && + is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -885,18 +923,21 @@ def ==(o) status_str == o.status_str && status_updated_at == o.status_updated_at && status_url == o.status_url && + store_path == o.store_path && subtype == o.subtype && summary == o.summary && sync_finished_at == o.sync_finished_at && sync_progress == o.sync_progress && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -909,7 +950,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [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 + [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 end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/mcp_package_upload_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/mcp_package_upload_request.rb index 3fceb8d5..22f8454d 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/mcp_package_upload_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/mcp_package_upload_request.rb @@ -14,6 +14,9 @@ module CloudsmithApi class McpPackageUploadRequest + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + # The primary file for the package. attr_accessor :package_file @@ -26,23 +29,29 @@ class McpPackageUploadRequest # The raw version for this package. attr_accessor :version + attr_accessor :vulnerability_counts + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { + :'is_malware_detected' => :'is_malware_detected', :'package_file' => :'package_file', :'republish' => :'republish', :'tags' => :'tags', - :'version' => :'version' + :'version' => :'version', + :'vulnerability_counts' => :'vulnerability_counts' } end # Attribute type mapping. def self.swagger_types { + :'is_malware_detected' => :'BOOLEAN', :'package_file' => :'String', :'republish' => :'BOOLEAN', :'tags' => :'String', - :'version' => :'String' + :'version' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -54,6 +63,10 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] end @@ -69,6 +82,10 @@ def initialize(attributes = {}) if attributes.has_key?(:'version') self.version = attributes[:'version'] end + + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -94,10 +111,12 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && + is_malware_detected == o.is_malware_detected && package_file == o.package_file && republish == o.republish && tags == o.tags && - version == o.version + version == o.version && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -109,7 +128,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [package_file, republish, tags, version].hash + [is_malware_detected, package_file, republish, tags, version, vulnerability_counts].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/nix_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/nix_package_upload.rb new file mode 100644 index 00000000..cc52aa91 --- /dev/null +++ b/bindings/ruby/src/lib/cloudsmith-api/models/nix_package_upload.rb @@ -0,0 +1,1061 @@ +=begin +#Cloudsmith API (v1) + +#The API to the Cloudsmith Service + +OpenAPI spec version: v1 +Contact: support@cloudsmith.io +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.50 + +=end + +require 'date' + +module CloudsmithApi +class NixPackageUpload + attr_accessor :architectures + + attr_accessor :cdn_url + + attr_accessor :checksum_md5 + + attr_accessor :checksum_sha1 + + attr_accessor :checksum_sha256 + + attr_accessor :checksum_sha512 + + # A checksum of all of the package's dependencies. + attr_accessor :dependencies_checksum_md5 + + attr_accessor :dependencies_url + + # A textual description of this package. + attr_accessor :description + + attr_accessor :display_name + + attr_accessor :distro + + attr_accessor :distro_version + + attr_accessor :downloads + + # The epoch of the package version (if any). + attr_accessor :epoch + + attr_accessor :extension + + attr_accessor :filename + + attr_accessor :files + + attr_accessor :format + + attr_accessor :format_url + + # Amount of storage that will be freed if this package is deleted + attr_accessor :freeable_storage + + attr_accessor :fully_qualified_name + + # Unique and permanent identifier for the package. + attr_accessor :identifier_perm + + # Return a map of identifier field names and their values. + attr_accessor :identifiers + + attr_accessor :indexed + + attr_accessor :is_cancellable + + attr_accessor :is_copyable + + attr_accessor :is_deleteable + + attr_accessor :is_downloadable + + attr_accessor :is_hidden + + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + + attr_accessor :is_moveable + + attr_accessor :is_quarantinable + + attr_accessor :is_quarantined + + attr_accessor :is_resyncable + + attr_accessor :is_security_scannable + + attr_accessor :is_sync_awaiting + + attr_accessor :is_sync_completed + + attr_accessor :is_sync_failed + + attr_accessor :is_sync_in_flight + + attr_accessor :is_sync_in_progress + + # The license of this package. + attr_accessor :license + + # The name of this package. + attr_accessor :name + + attr_accessor :namespace + + attr_accessor :namespace_url + + attr_accessor :num_files + + attr_accessor :origin_repository + + attr_accessor :origin_repository_url + + # Whether the package's SPDX license is OSI-approved. + attr_accessor :osi_approved + + # The type of package contents. + attr_accessor :package_type + + # Whether or not the package has violated any policy. + attr_accessor :policy_violated + + # The raw license string. + attr_accessor :raw_license + + # The release of the package version (if any). + attr_accessor :release + + attr_accessor :repository + + attr_accessor :repository_url + + # The datetime the security scanning was completed. + attr_accessor :security_scan_completed_at + + # The datetime the security scanning was started. + attr_accessor :security_scan_started_at + + attr_accessor :security_scan_status + + # The datetime the security scanning status was updated. + attr_accessor :security_scan_status_updated_at + + attr_accessor :self_html_url + + attr_accessor :self_url + + attr_accessor :self_webapp_url + + attr_accessor :signature_url + + # The calculated size of the package. + attr_accessor :size + + # The public unique identifier for the package. + attr_accessor :slug + + attr_accessor :slug_perm + + # The SPDX license identifier for this package. + attr_accessor :spdx_license + + # The synchronisation (in progress) stage of the package. + attr_accessor :stage + + attr_accessor :stage_str + + # The datetime the package stage was updated at. + attr_accessor :stage_updated_at + + # The synchronisation status of the package. + attr_accessor :status + + # A textual description for the synchronous status reason (if any + attr_accessor :status_reason + + attr_accessor :status_str + + # The datetime the package status was updated at. + attr_accessor :status_updated_at + + attr_accessor :status_url + + # Absolute store path for the package, including store hash and name. + attr_accessor :store_path + + attr_accessor :subtype + + # A one-liner synopsis of this package. + attr_accessor :summary + + # The datetime the package sync was finished at. + attr_accessor :sync_finished_at + + # Synchronisation progress (from 0-100) + attr_accessor :sync_progress + + attr_accessor :tags_automatic + + attr_accessor :tags_immutable + + # 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. + attr_accessor :tags_static + + attr_accessor :type_display + + # The date this package was uploaded. + attr_accessor :uploaded_at + + attr_accessor :uploader + + attr_accessor :uploader_url + + # The raw version for this package. + attr_accessor :version + + attr_accessor :version_orig + + attr_accessor :vulnerability_counts + + attr_accessor :vulnerability_scan_results_url + + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'architectures' => :'architectures', + :'cdn_url' => :'cdn_url', + :'checksum_md5' => :'checksum_md5', + :'checksum_sha1' => :'checksum_sha1', + :'checksum_sha256' => :'checksum_sha256', + :'checksum_sha512' => :'checksum_sha512', + :'dependencies_checksum_md5' => :'dependencies_checksum_md5', + :'dependencies_url' => :'dependencies_url', + :'description' => :'description', + :'display_name' => :'display_name', + :'distro' => :'distro', + :'distro_version' => :'distro_version', + :'downloads' => :'downloads', + :'epoch' => :'epoch', + :'extension' => :'extension', + :'filename' => :'filename', + :'files' => :'files', + :'format' => :'format', + :'format_url' => :'format_url', + :'freeable_storage' => :'freeable_storage', + :'fully_qualified_name' => :'fully_qualified_name', + :'identifier_perm' => :'identifier_perm', + :'identifiers' => :'identifiers', + :'indexed' => :'indexed', + :'is_cancellable' => :'is_cancellable', + :'is_copyable' => :'is_copyable', + :'is_deleteable' => :'is_deleteable', + :'is_downloadable' => :'is_downloadable', + :'is_hidden' => :'is_hidden', + :'is_malware_detected' => :'is_malware_detected', + :'is_moveable' => :'is_moveable', + :'is_quarantinable' => :'is_quarantinable', + :'is_quarantined' => :'is_quarantined', + :'is_resyncable' => :'is_resyncable', + :'is_security_scannable' => :'is_security_scannable', + :'is_sync_awaiting' => :'is_sync_awaiting', + :'is_sync_completed' => :'is_sync_completed', + :'is_sync_failed' => :'is_sync_failed', + :'is_sync_in_flight' => :'is_sync_in_flight', + :'is_sync_in_progress' => :'is_sync_in_progress', + :'license' => :'license', + :'name' => :'name', + :'namespace' => :'namespace', + :'namespace_url' => :'namespace_url', + :'num_files' => :'num_files', + :'origin_repository' => :'origin_repository', + :'origin_repository_url' => :'origin_repository_url', + :'osi_approved' => :'osi_approved', + :'package_type' => :'package_type', + :'policy_violated' => :'policy_violated', + :'raw_license' => :'raw_license', + :'release' => :'release', + :'repository' => :'repository', + :'repository_url' => :'repository_url', + :'security_scan_completed_at' => :'security_scan_completed_at', + :'security_scan_started_at' => :'security_scan_started_at', + :'security_scan_status' => :'security_scan_status', + :'security_scan_status_updated_at' => :'security_scan_status_updated_at', + :'self_html_url' => :'self_html_url', + :'self_url' => :'self_url', + :'self_webapp_url' => :'self_webapp_url', + :'signature_url' => :'signature_url', + :'size' => :'size', + :'slug' => :'slug', + :'slug_perm' => :'slug_perm', + :'spdx_license' => :'spdx_license', + :'stage' => :'stage', + :'stage_str' => :'stage_str', + :'stage_updated_at' => :'stage_updated_at', + :'status' => :'status', + :'status_reason' => :'status_reason', + :'status_str' => :'status_str', + :'status_updated_at' => :'status_updated_at', + :'status_url' => :'status_url', + :'store_path' => :'store_path', + :'subtype' => :'subtype', + :'summary' => :'summary', + :'sync_finished_at' => :'sync_finished_at', + :'sync_progress' => :'sync_progress', + :'tags_automatic' => :'tags_automatic', + :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', + :'type_display' => :'type_display', + :'uploaded_at' => :'uploaded_at', + :'uploader' => :'uploader', + :'uploader_url' => :'uploader_url', + :'version' => :'version', + :'version_orig' => :'version_orig', + :'vulnerability_counts' => :'vulnerability_counts', + :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'architectures' => :'Array', + :'cdn_url' => :'String', + :'checksum_md5' => :'String', + :'checksum_sha1' => :'String', + :'checksum_sha256' => :'String', + :'checksum_sha512' => :'String', + :'dependencies_checksum_md5' => :'String', + :'dependencies_url' => :'String', + :'description' => :'String', + :'display_name' => :'String', + :'distro' => :'Distribution', + :'distro_version' => :'DistributionVersion', + :'downloads' => :'Integer', + :'epoch' => :'Integer', + :'extension' => :'String', + :'filename' => :'String', + :'files' => :'Array', + :'format' => :'String', + :'format_url' => :'String', + :'freeable_storage' => :'Integer', + :'fully_qualified_name' => :'String', + :'identifier_perm' => :'String', + :'identifiers' => :'Hash', + :'indexed' => :'BOOLEAN', + :'is_cancellable' => :'BOOLEAN', + :'is_copyable' => :'BOOLEAN', + :'is_deleteable' => :'BOOLEAN', + :'is_downloadable' => :'BOOLEAN', + :'is_hidden' => :'BOOLEAN', + :'is_malware_detected' => :'BOOLEAN', + :'is_moveable' => :'BOOLEAN', + :'is_quarantinable' => :'BOOLEAN', + :'is_quarantined' => :'BOOLEAN', + :'is_resyncable' => :'BOOLEAN', + :'is_security_scannable' => :'BOOLEAN', + :'is_sync_awaiting' => :'BOOLEAN', + :'is_sync_completed' => :'BOOLEAN', + :'is_sync_failed' => :'BOOLEAN', + :'is_sync_in_flight' => :'BOOLEAN', + :'is_sync_in_progress' => :'BOOLEAN', + :'license' => :'String', + :'name' => :'String', + :'namespace' => :'String', + :'namespace_url' => :'String', + :'num_files' => :'Integer', + :'origin_repository' => :'String', + :'origin_repository_url' => :'String', + :'osi_approved' => :'BOOLEAN', + :'package_type' => :'Integer', + :'policy_violated' => :'BOOLEAN', + :'raw_license' => :'String', + :'release' => :'String', + :'repository' => :'String', + :'repository_url' => :'String', + :'security_scan_completed_at' => :'DateTime', + :'security_scan_started_at' => :'DateTime', + :'security_scan_status' => :'String', + :'security_scan_status_updated_at' => :'DateTime', + :'self_html_url' => :'String', + :'self_url' => :'String', + :'self_webapp_url' => :'String', + :'signature_url' => :'String', + :'size' => :'Integer', + :'slug' => :'String', + :'slug_perm' => :'String', + :'spdx_license' => :'String', + :'stage' => :'Integer', + :'stage_str' => :'String', + :'stage_updated_at' => :'DateTime', + :'status' => :'Integer', + :'status_reason' => :'String', + :'status_str' => :'String', + :'status_updated_at' => :'DateTime', + :'status_url' => :'String', + :'store_path' => :'String', + :'subtype' => :'String', + :'summary' => :'String', + :'sync_finished_at' => :'DateTime', + :'sync_progress' => :'Integer', + :'tags_automatic' => :'Tags', + :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', + :'type_display' => :'String', + :'uploaded_at' => :'DateTime', + :'uploader' => :'String', + :'uploader_url' => :'String', + :'version' => :'String', + :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', + :'vulnerability_scan_results_url' => :'String' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + + if attributes.has_key?(:'architectures') + if (value = attributes[:'architectures']).is_a?(Array) + self.architectures = value + end + end + + if attributes.has_key?(:'cdn_url') + self.cdn_url = attributes[:'cdn_url'] + end + + if attributes.has_key?(:'checksum_md5') + self.checksum_md5 = attributes[:'checksum_md5'] + end + + if attributes.has_key?(:'checksum_sha1') + self.checksum_sha1 = attributes[:'checksum_sha1'] + end + + if attributes.has_key?(:'checksum_sha256') + self.checksum_sha256 = attributes[:'checksum_sha256'] + end + + if attributes.has_key?(:'checksum_sha512') + self.checksum_sha512 = attributes[:'checksum_sha512'] + end + + if attributes.has_key?(:'dependencies_checksum_md5') + self.dependencies_checksum_md5 = attributes[:'dependencies_checksum_md5'] + end + + if attributes.has_key?(:'dependencies_url') + self.dependencies_url = attributes[:'dependencies_url'] + end + + if attributes.has_key?(:'description') + self.description = attributes[:'description'] + end + + if attributes.has_key?(:'display_name') + self.display_name = attributes[:'display_name'] + end + + if attributes.has_key?(:'distro') + self.distro = attributes[:'distro'] + end + + if attributes.has_key?(:'distro_version') + self.distro_version = attributes[:'distro_version'] + end + + if attributes.has_key?(:'downloads') + self.downloads = attributes[:'downloads'] + end + + if attributes.has_key?(:'epoch') + self.epoch = attributes[:'epoch'] + end + + if attributes.has_key?(:'extension') + self.extension = attributes[:'extension'] + end + + if attributes.has_key?(:'filename') + self.filename = attributes[:'filename'] + end + + if attributes.has_key?(:'files') + if (value = attributes[:'files']).is_a?(Array) + self.files = value + end + end + + if attributes.has_key?(:'format') + self.format = attributes[:'format'] + end + + if attributes.has_key?(:'format_url') + self.format_url = attributes[:'format_url'] + end + + if attributes.has_key?(:'freeable_storage') + self.freeable_storage = attributes[:'freeable_storage'] + end + + if attributes.has_key?(:'fully_qualified_name') + self.fully_qualified_name = attributes[:'fully_qualified_name'] + end + + if attributes.has_key?(:'identifier_perm') + self.identifier_perm = attributes[:'identifier_perm'] + end + + if attributes.has_key?(:'identifiers') + if (value = attributes[:'identifiers']).is_a?(Hash) + self.identifiers = value + end + end + + if attributes.has_key?(:'indexed') + self.indexed = attributes[:'indexed'] + end + + if attributes.has_key?(:'is_cancellable') + self.is_cancellable = attributes[:'is_cancellable'] + end + + if attributes.has_key?(:'is_copyable') + self.is_copyable = attributes[:'is_copyable'] + end + + if attributes.has_key?(:'is_deleteable') + self.is_deleteable = attributes[:'is_deleteable'] + end + + if attributes.has_key?(:'is_downloadable') + self.is_downloadable = attributes[:'is_downloadable'] + end + + if attributes.has_key?(:'is_hidden') + self.is_hidden = attributes[:'is_hidden'] + end + + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + + if attributes.has_key?(:'is_moveable') + self.is_moveable = attributes[:'is_moveable'] + end + + if attributes.has_key?(:'is_quarantinable') + self.is_quarantinable = attributes[:'is_quarantinable'] + end + + if attributes.has_key?(:'is_quarantined') + self.is_quarantined = attributes[:'is_quarantined'] + end + + if attributes.has_key?(:'is_resyncable') + self.is_resyncable = attributes[:'is_resyncable'] + end + + if attributes.has_key?(:'is_security_scannable') + self.is_security_scannable = attributes[:'is_security_scannable'] + end + + if attributes.has_key?(:'is_sync_awaiting') + self.is_sync_awaiting = attributes[:'is_sync_awaiting'] + end + + if attributes.has_key?(:'is_sync_completed') + self.is_sync_completed = attributes[:'is_sync_completed'] + end + + if attributes.has_key?(:'is_sync_failed') + self.is_sync_failed = attributes[:'is_sync_failed'] + end + + if attributes.has_key?(:'is_sync_in_flight') + self.is_sync_in_flight = attributes[:'is_sync_in_flight'] + end + + if attributes.has_key?(:'is_sync_in_progress') + self.is_sync_in_progress = attributes[:'is_sync_in_progress'] + end + + if attributes.has_key?(:'license') + self.license = attributes[:'license'] + end + + if attributes.has_key?(:'name') + self.name = attributes[:'name'] + end + + if attributes.has_key?(:'namespace') + self.namespace = attributes[:'namespace'] + end + + if attributes.has_key?(:'namespace_url') + self.namespace_url = attributes[:'namespace_url'] + end + + if attributes.has_key?(:'num_files') + self.num_files = attributes[:'num_files'] + end + + if attributes.has_key?(:'origin_repository') + self.origin_repository = attributes[:'origin_repository'] + end + + if attributes.has_key?(:'origin_repository_url') + self.origin_repository_url = attributes[:'origin_repository_url'] + end + + if attributes.has_key?(:'osi_approved') + self.osi_approved = attributes[:'osi_approved'] + end + + if attributes.has_key?(:'package_type') + self.package_type = attributes[:'package_type'] + end + + if attributes.has_key?(:'policy_violated') + self.policy_violated = attributes[:'policy_violated'] + end + + if attributes.has_key?(:'raw_license') + self.raw_license = attributes[:'raw_license'] + end + + if attributes.has_key?(:'release') + self.release = attributes[:'release'] + end + + if attributes.has_key?(:'repository') + self.repository = attributes[:'repository'] + end + + if attributes.has_key?(:'repository_url') + self.repository_url = attributes[:'repository_url'] + end + + if attributes.has_key?(:'security_scan_completed_at') + self.security_scan_completed_at = attributes[:'security_scan_completed_at'] + end + + if attributes.has_key?(:'security_scan_started_at') + self.security_scan_started_at = attributes[:'security_scan_started_at'] + end + + if attributes.has_key?(:'security_scan_status') + self.security_scan_status = attributes[:'security_scan_status'] + else + self.security_scan_status = 'Awaiting Security Scan' + end + + if attributes.has_key?(:'security_scan_status_updated_at') + self.security_scan_status_updated_at = attributes[:'security_scan_status_updated_at'] + end + + if attributes.has_key?(:'self_html_url') + self.self_html_url = attributes[:'self_html_url'] + end + + if attributes.has_key?(:'self_url') + self.self_url = attributes[:'self_url'] + end + + if attributes.has_key?(:'self_webapp_url') + self.self_webapp_url = attributes[:'self_webapp_url'] + end + + if attributes.has_key?(:'signature_url') + self.signature_url = attributes[:'signature_url'] + end + + if attributes.has_key?(:'size') + self.size = attributes[:'size'] + end + + if attributes.has_key?(:'slug') + self.slug = attributes[:'slug'] + end + + if attributes.has_key?(:'slug_perm') + self.slug_perm = attributes[:'slug_perm'] + end + + if attributes.has_key?(:'spdx_license') + self.spdx_license = attributes[:'spdx_license'] + end + + if attributes.has_key?(:'stage') + self.stage = attributes[:'stage'] + end + + if attributes.has_key?(:'stage_str') + self.stage_str = attributes[:'stage_str'] + end + + if attributes.has_key?(:'stage_updated_at') + self.stage_updated_at = attributes[:'stage_updated_at'] + end + + if attributes.has_key?(:'status') + self.status = attributes[:'status'] + end + + if attributes.has_key?(:'status_reason') + self.status_reason = attributes[:'status_reason'] + end + + if attributes.has_key?(:'status_str') + self.status_str = attributes[:'status_str'] + end + + if attributes.has_key?(:'status_updated_at') + self.status_updated_at = attributes[:'status_updated_at'] + end + + if attributes.has_key?(:'status_url') + self.status_url = attributes[:'status_url'] + end + + if attributes.has_key?(:'store_path') + self.store_path = attributes[:'store_path'] + end + + if attributes.has_key?(:'subtype') + self.subtype = attributes[:'subtype'] + end + + if attributes.has_key?(:'summary') + self.summary = attributes[:'summary'] + end + + if attributes.has_key?(:'sync_finished_at') + self.sync_finished_at = attributes[:'sync_finished_at'] + end + + if attributes.has_key?(:'sync_progress') + self.sync_progress = attributes[:'sync_progress'] + end + + if attributes.has_key?(:'tags_automatic') + self.tags_automatic = attributes[:'tags_automatic'] + end + + if attributes.has_key?(:'tags_immutable') + self.tags_immutable = attributes[:'tags_immutable'] + end + + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + + if attributes.has_key?(:'type_display') + self.type_display = attributes[:'type_display'] + end + + if attributes.has_key?(:'uploaded_at') + self.uploaded_at = attributes[:'uploaded_at'] + end + + if attributes.has_key?(:'uploader') + self.uploader = attributes[:'uploader'] + end + + if attributes.has_key?(:'uploader_url') + self.uploader_url = attributes[:'uploader_url'] + end + + if attributes.has_key?(:'version') + self.version = attributes[:'version'] + end + + if attributes.has_key?(:'version_orig') + self.version_orig = attributes[:'version_orig'] + end + + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end + + if attributes.has_key?(:'vulnerability_scan_results_url') + self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + security_scan_status_validator = EnumAttributeValidator.new('String', ['Awaiting Security Scan', 'Security Scanning in Progress', 'Scan Detected Vulnerabilities', 'Scan Detected No Vulnerabilities', 'Security Scanning Disabled', 'Security Scanning Failed', 'Security Scanning Skipped', 'Security Scanning Not Supported']) + return false unless security_scan_status_validator.valid?(@security_scan_status) + true + end + + # Custom attribute writer method checking allowed values (enum). + # @param [Object] security_scan_status Object to be assigned + def security_scan_status=(security_scan_status) + validator = EnumAttributeValidator.new('String', ['Awaiting Security Scan', 'Security Scanning in Progress', 'Scan Detected Vulnerabilities', 'Scan Detected No Vulnerabilities', 'Security Scanning Disabled', 'Security Scanning Failed', 'Security Scanning Skipped', 'Security Scanning Not Supported']) + unless validator.valid?(security_scan_status) + fail ArgumentError, 'invalid value for "security_scan_status", must be one of #{validator.allowable_values}.' + end + @security_scan_status = security_scan_status + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + architectures == o.architectures && + cdn_url == o.cdn_url && + checksum_md5 == o.checksum_md5 && + checksum_sha1 == o.checksum_sha1 && + checksum_sha256 == o.checksum_sha256 && + checksum_sha512 == o.checksum_sha512 && + dependencies_checksum_md5 == o.dependencies_checksum_md5 && + dependencies_url == o.dependencies_url && + description == o.description && + display_name == o.display_name && + distro == o.distro && + distro_version == o.distro_version && + downloads == o.downloads && + epoch == o.epoch && + extension == o.extension && + filename == o.filename && + files == o.files && + format == o.format && + format_url == o.format_url && + freeable_storage == o.freeable_storage && + fully_qualified_name == o.fully_qualified_name && + identifier_perm == o.identifier_perm && + identifiers == o.identifiers && + indexed == o.indexed && + is_cancellable == o.is_cancellable && + is_copyable == o.is_copyable && + is_deleteable == o.is_deleteable && + is_downloadable == o.is_downloadable && + is_hidden == o.is_hidden && + is_malware_detected == o.is_malware_detected && + is_moveable == o.is_moveable && + is_quarantinable == o.is_quarantinable && + is_quarantined == o.is_quarantined && + is_resyncable == o.is_resyncable && + is_security_scannable == o.is_security_scannable && + is_sync_awaiting == o.is_sync_awaiting && + is_sync_completed == o.is_sync_completed && + is_sync_failed == o.is_sync_failed && + is_sync_in_flight == o.is_sync_in_flight && + is_sync_in_progress == o.is_sync_in_progress && + license == o.license && + name == o.name && + namespace == o.namespace && + namespace_url == o.namespace_url && + num_files == o.num_files && + origin_repository == o.origin_repository && + origin_repository_url == o.origin_repository_url && + osi_approved == o.osi_approved && + package_type == o.package_type && + policy_violated == o.policy_violated && + raw_license == o.raw_license && + release == o.release && + repository == o.repository && + repository_url == o.repository_url && + security_scan_completed_at == o.security_scan_completed_at && + security_scan_started_at == o.security_scan_started_at && + security_scan_status == o.security_scan_status && + security_scan_status_updated_at == o.security_scan_status_updated_at && + self_html_url == o.self_html_url && + self_url == o.self_url && + self_webapp_url == o.self_webapp_url && + signature_url == o.signature_url && + size == o.size && + slug == o.slug && + slug_perm == o.slug_perm && + spdx_license == o.spdx_license && + stage == o.stage && + stage_str == o.stage_str && + stage_updated_at == o.stage_updated_at && + status == o.status && + status_reason == o.status_reason && + status_str == o.status_str && + status_updated_at == o.status_updated_at && + status_url == o.status_url && + store_path == o.store_path && + subtype == o.subtype && + summary == o.summary && + sync_finished_at == o.sync_finished_at && + sync_progress == o.sync_progress && + tags_automatic == o.tags_automatic && + tags_immutable == o.tags_immutable && + tags_static == o.tags_static && + type_display == o.type_display && + uploaded_at == o.uploaded_at && + uploader == o.uploader && + uploader_url == o.uploader_url && + version == o.version && + version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && + vulnerability_scan_results_url == o.vulnerability_scan_results_url + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [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 + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = CloudsmithApi.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + +end +end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/nix_package_upload_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/nix_package_upload_request.rb new file mode 100644 index 00000000..6ed90eb9 --- /dev/null +++ b/bindings/ruby/src/lib/cloudsmith-api/models/nix_package_upload_request.rb @@ -0,0 +1,249 @@ +=begin +#Cloudsmith API (v1) + +#The API to the Cloudsmith Service + +OpenAPI spec version: v1 +Contact: support@cloudsmith.io +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.50 + +=end + +require 'date' + +module CloudsmithApi +class NixPackageUploadRequest + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + + # The narinfo sidecar metadata file (.narinfo). Optional — the package can be completed later by publishing the matching narinfo via the native HTTP PUT path. + attr_accessor :narinfo + + # The primary file for the package. + attr_accessor :package_file + + # If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + attr_accessor :republish + + # A comma-separated values list of tags to add to the package. + attr_accessor :tags + + # The raw version for this package. + attr_accessor :version + + attr_accessor :vulnerability_counts + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'is_malware_detected' => :'is_malware_detected', + :'narinfo' => :'narinfo', + :'package_file' => :'package_file', + :'republish' => :'republish', + :'tags' => :'tags', + :'version' => :'version', + :'vulnerability_counts' => :'vulnerability_counts' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'is_malware_detected' => :'BOOLEAN', + :'narinfo' => :'String', + :'package_file' => :'String', + :'republish' => :'BOOLEAN', + :'tags' => :'String', + :'version' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + + if attributes.has_key?(:'narinfo') + self.narinfo = attributes[:'narinfo'] + end + + if attributes.has_key?(:'package_file') + self.package_file = attributes[:'package_file'] + end + + if attributes.has_key?(:'republish') + self.republish = attributes[:'republish'] + end + + if attributes.has_key?(:'tags') + self.tags = attributes[:'tags'] + end + + if attributes.has_key?(:'version') + self.version = attributes[:'version'] + end + + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + if @package_file.nil? + invalid_properties.push('invalid value for "package_file", package_file cannot be nil.') + end + + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + return false if @package_file.nil? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + is_malware_detected == o.is_malware_detected && + narinfo == o.narinfo && + package_file == o.package_file && + republish == o.republish && + tags == o.tags && + version == o.version && + vulnerability_counts == o.vulnerability_counts + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [is_malware_detected, narinfo, package_file, republish, tags, version, vulnerability_counts].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = CloudsmithApi.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + +end +end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/nix_upstream.rb b/bindings/ruby/src/lib/cloudsmith-api/models/nix_upstream.rb new file mode 100644 index 00000000..027dc3ec --- /dev/null +++ b/bindings/ruby/src/lib/cloudsmith-api/models/nix_upstream.rb @@ -0,0 +1,496 @@ +=begin +#Cloudsmith API (v1) + +#The API to the Cloudsmith Service + +OpenAPI spec version: v1 +Contact: support@cloudsmith.io +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.50 + +=end + +require 'date' + +module CloudsmithApi +class NixUpstream + # The authentication mode to use when accessing this upstream. + attr_accessor :auth_mode + + # Secret to provide with requests to upstream. + attr_accessor :auth_secret + + # Username to provide with requests to upstream. + attr_accessor :auth_username + + # Whether the upstream is available for use. + attr_accessor :available + + # Whether the upstream can be reindexed. + attr_accessor :can_reindex + + # The datetime the upstream source was created. + attr_accessor :created_at + + attr_accessor :disable_reason + + # Human-readable explanation of why this upstream is disabled + attr_accessor :disable_reason_text + + # The key for extra header #1 to send to upstream. + attr_accessor :extra_header_1 + + # The key for extra header #2 to send to upstream. + attr_accessor :extra_header_2 + + # The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. + attr_accessor :extra_value_1 + + # The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. + attr_accessor :extra_value_2 + + # Whether the upstream has failed signature verification. + attr_accessor :has_failed_signature_verification + + # The number of packages available in this upstream source + attr_accessor :index_package_count + + # The current indexing status of this upstream source + attr_accessor :index_status + + # Whether or not this upstream is active and ready for requests. + attr_accessor :is_active + + # The last time this upstream source was indexed + attr_accessor :last_indexed + + # The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. + attr_accessor :mode + + # A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. + attr_accessor :name + + # When true, this upstream source is pending validation. + attr_accessor :pending_validation + + # Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. + attr_accessor :priority + + attr_accessor :slug_perm + + attr_accessor :updated_at + + # The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. + attr_accessor :upstream_url + + # If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. + attr_accessor :verify_ssl + + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'auth_mode' => :'auth_mode', + :'auth_secret' => :'auth_secret', + :'auth_username' => :'auth_username', + :'available' => :'available', + :'can_reindex' => :'can_reindex', + :'created_at' => :'created_at', + :'disable_reason' => :'disable_reason', + :'disable_reason_text' => :'disable_reason_text', + :'extra_header_1' => :'extra_header_1', + :'extra_header_2' => :'extra_header_2', + :'extra_value_1' => :'extra_value_1', + :'extra_value_2' => :'extra_value_2', + :'has_failed_signature_verification' => :'has_failed_signature_verification', + :'index_package_count' => :'index_package_count', + :'index_status' => :'index_status', + :'is_active' => :'is_active', + :'last_indexed' => :'last_indexed', + :'mode' => :'mode', + :'name' => :'name', + :'pending_validation' => :'pending_validation', + :'priority' => :'priority', + :'slug_perm' => :'slug_perm', + :'updated_at' => :'updated_at', + :'upstream_url' => :'upstream_url', + :'verify_ssl' => :'verify_ssl' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'auth_mode' => :'String', + :'auth_secret' => :'String', + :'auth_username' => :'String', + :'available' => :'BOOLEAN', + :'can_reindex' => :'BOOLEAN', + :'created_at' => :'DateTime', + :'disable_reason' => :'String', + :'disable_reason_text' => :'String', + :'extra_header_1' => :'String', + :'extra_header_2' => :'String', + :'extra_value_1' => :'String', + :'extra_value_2' => :'String', + :'has_failed_signature_verification' => :'BOOLEAN', + :'index_package_count' => :'Integer', + :'index_status' => :'String', + :'is_active' => :'BOOLEAN', + :'last_indexed' => :'String', + :'mode' => :'String', + :'name' => :'String', + :'pending_validation' => :'BOOLEAN', + :'priority' => :'Integer', + :'slug_perm' => :'String', + :'updated_at' => :'DateTime', + :'upstream_url' => :'String', + :'verify_ssl' => :'BOOLEAN' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + + if attributes.has_key?(:'auth_mode') + self.auth_mode = attributes[:'auth_mode'] + else + self.auth_mode = 'None' + end + + if attributes.has_key?(:'auth_secret') + self.auth_secret = attributes[:'auth_secret'] + end + + if attributes.has_key?(:'auth_username') + self.auth_username = attributes[:'auth_username'] + end + + if attributes.has_key?(:'available') + self.available = attributes[:'available'] + end + + if attributes.has_key?(:'can_reindex') + self.can_reindex = attributes[:'can_reindex'] + end + + if attributes.has_key?(:'created_at') + self.created_at = attributes[:'created_at'] + end + + if attributes.has_key?(:'disable_reason') + self.disable_reason = attributes[:'disable_reason'] + else + self.disable_reason = 'N/A' + end + + if attributes.has_key?(:'disable_reason_text') + self.disable_reason_text = attributes[:'disable_reason_text'] + end + + if attributes.has_key?(:'extra_header_1') + self.extra_header_1 = attributes[:'extra_header_1'] + end + + if attributes.has_key?(:'extra_header_2') + self.extra_header_2 = attributes[:'extra_header_2'] + end + + if attributes.has_key?(:'extra_value_1') + self.extra_value_1 = attributes[:'extra_value_1'] + end + + if attributes.has_key?(:'extra_value_2') + self.extra_value_2 = attributes[:'extra_value_2'] + end + + if attributes.has_key?(:'has_failed_signature_verification') + self.has_failed_signature_verification = attributes[:'has_failed_signature_verification'] + end + + if attributes.has_key?(:'index_package_count') + self.index_package_count = attributes[:'index_package_count'] + end + + if attributes.has_key?(:'index_status') + self.index_status = attributes[:'index_status'] + end + + if attributes.has_key?(:'is_active') + self.is_active = attributes[:'is_active'] + end + + if attributes.has_key?(:'last_indexed') + self.last_indexed = attributes[:'last_indexed'] + end + + if attributes.has_key?(:'mode') + self.mode = attributes[:'mode'] + else + self.mode = 'Proxy Only' + end + + if attributes.has_key?(:'name') + self.name = attributes[:'name'] + end + + if attributes.has_key?(:'pending_validation') + self.pending_validation = attributes[:'pending_validation'] + end + + if attributes.has_key?(:'priority') + self.priority = attributes[:'priority'] + end + + if attributes.has_key?(:'slug_perm') + self.slug_perm = attributes[:'slug_perm'] + end + + if attributes.has_key?(:'updated_at') + self.updated_at = attributes[:'updated_at'] + end + + if attributes.has_key?(:'upstream_url') + self.upstream_url = attributes[:'upstream_url'] + end + + if attributes.has_key?(:'verify_ssl') + self.verify_ssl = attributes[:'verify_ssl'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + if @name.nil? + invalid_properties.push('invalid value for "name", name cannot be nil.') + end + + if @upstream_url.nil? + invalid_properties.push('invalid value for "upstream_url", upstream_url cannot be nil.') + end + + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + auth_mode_validator = EnumAttributeValidator.new('String', ['None', 'Username and Password']) + return false unless auth_mode_validator.valid?(@auth_mode) + 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']) + return false unless disable_reason_validator.valid?(@disable_reason) + mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + return false unless mode_validator.valid?(@mode) + return false if @name.nil? + return false if @upstream_url.nil? + true + end + + # Custom attribute writer method checking allowed values (enum). + # @param [Object] auth_mode Object to be assigned + def auth_mode=(auth_mode) + validator = EnumAttributeValidator.new('String', ['None', 'Username and Password']) + unless validator.valid?(auth_mode) + fail ArgumentError, 'invalid value for "auth_mode", must be one of #{validator.allowable_values}.' + end + @auth_mode = auth_mode + end + + # Custom attribute writer method checking allowed values (enum). + # @param [Object] disable_reason Object to be assigned + def disable_reason=(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']) + unless validator.valid?(disable_reason) + fail ArgumentError, 'invalid value for "disable_reason", must be one of #{validator.allowable_values}.' + end + @disable_reason = disable_reason + end + + # Custom attribute writer method checking allowed values (enum). + # @param [Object] mode Object to be assigned + def mode=(mode) + validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + unless validator.valid?(mode) + fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.' + end + @mode = mode + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + auth_mode == o.auth_mode && + auth_secret == o.auth_secret && + auth_username == o.auth_username && + available == o.available && + can_reindex == o.can_reindex && + created_at == o.created_at && + disable_reason == o.disable_reason && + disable_reason_text == o.disable_reason_text && + extra_header_1 == o.extra_header_1 && + extra_header_2 == o.extra_header_2 && + extra_value_1 == o.extra_value_1 && + extra_value_2 == o.extra_value_2 && + has_failed_signature_verification == o.has_failed_signature_verification && + index_package_count == o.index_package_count && + index_status == o.index_status && + is_active == o.is_active && + last_indexed == o.last_indexed && + mode == o.mode && + name == o.name && + pending_validation == o.pending_validation && + priority == o.priority && + slug_perm == o.slug_perm && + updated_at == o.updated_at && + upstream_url == o.upstream_url && + verify_ssl == o.verify_ssl + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [auth_mode, auth_secret, auth_username, available, can_reindex, created_at, disable_reason, disable_reason_text, extra_header_1, extra_header_2, extra_value_1, extra_value_2, has_failed_signature_verification, index_package_count, index_status, is_active, last_indexed, mode, name, pending_validation, priority, slug_perm, updated_at, upstream_url, verify_ssl].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = CloudsmithApi.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + +end +end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/nix_upstream_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/nix_upstream_request.rb new file mode 100644 index 00000000..5290b2f7 --- /dev/null +++ b/bindings/ruby/src/lib/cloudsmith-api/models/nix_upstream_request.rb @@ -0,0 +1,365 @@ +=begin +#Cloudsmith API (v1) + +#The API to the Cloudsmith Service + +OpenAPI spec version: v1 +Contact: support@cloudsmith.io +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.50 + +=end + +require 'date' + +module CloudsmithApi +class NixUpstreamRequest + # The authentication mode to use when accessing this upstream. + attr_accessor :auth_mode + + # Secret to provide with requests to upstream. + attr_accessor :auth_secret + + # Username to provide with requests to upstream. + attr_accessor :auth_username + + # The key for extra header #1 to send to upstream. + attr_accessor :extra_header_1 + + # The key for extra header #2 to send to upstream. + attr_accessor :extra_header_2 + + # The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. + attr_accessor :extra_value_1 + + # The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. + attr_accessor :extra_value_2 + + # Whether or not this upstream is active and ready for requests. + attr_accessor :is_active + + # The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. + attr_accessor :mode + + # A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. + attr_accessor :name + + # Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. + attr_accessor :priority + + # The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. + attr_accessor :upstream_url + + # If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. + attr_accessor :verify_ssl + + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'auth_mode' => :'auth_mode', + :'auth_secret' => :'auth_secret', + :'auth_username' => :'auth_username', + :'extra_header_1' => :'extra_header_1', + :'extra_header_2' => :'extra_header_2', + :'extra_value_1' => :'extra_value_1', + :'extra_value_2' => :'extra_value_2', + :'is_active' => :'is_active', + :'mode' => :'mode', + :'name' => :'name', + :'priority' => :'priority', + :'upstream_url' => :'upstream_url', + :'verify_ssl' => :'verify_ssl' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'auth_mode' => :'String', + :'auth_secret' => :'String', + :'auth_username' => :'String', + :'extra_header_1' => :'String', + :'extra_header_2' => :'String', + :'extra_value_1' => :'String', + :'extra_value_2' => :'String', + :'is_active' => :'BOOLEAN', + :'mode' => :'String', + :'name' => :'String', + :'priority' => :'Integer', + :'upstream_url' => :'String', + :'verify_ssl' => :'BOOLEAN' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + + if attributes.has_key?(:'auth_mode') + self.auth_mode = attributes[:'auth_mode'] + else + self.auth_mode = 'None' + end + + if attributes.has_key?(:'auth_secret') + self.auth_secret = attributes[:'auth_secret'] + end + + if attributes.has_key?(:'auth_username') + self.auth_username = attributes[:'auth_username'] + end + + if attributes.has_key?(:'extra_header_1') + self.extra_header_1 = attributes[:'extra_header_1'] + end + + if attributes.has_key?(:'extra_header_2') + self.extra_header_2 = attributes[:'extra_header_2'] + end + + if attributes.has_key?(:'extra_value_1') + self.extra_value_1 = attributes[:'extra_value_1'] + end + + if attributes.has_key?(:'extra_value_2') + self.extra_value_2 = attributes[:'extra_value_2'] + end + + if attributes.has_key?(:'is_active') + self.is_active = attributes[:'is_active'] + end + + if attributes.has_key?(:'mode') + self.mode = attributes[:'mode'] + else + self.mode = 'Proxy Only' + end + + if attributes.has_key?(:'name') + self.name = attributes[:'name'] + end + + if attributes.has_key?(:'priority') + self.priority = attributes[:'priority'] + end + + if attributes.has_key?(:'upstream_url') + self.upstream_url = attributes[:'upstream_url'] + end + + if attributes.has_key?(:'verify_ssl') + self.verify_ssl = attributes[:'verify_ssl'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + if @name.nil? + invalid_properties.push('invalid value for "name", name cannot be nil.') + end + + if @upstream_url.nil? + invalid_properties.push('invalid value for "upstream_url", upstream_url cannot be nil.') + end + + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + auth_mode_validator = EnumAttributeValidator.new('String', ['None', 'Username and Password']) + return false unless auth_mode_validator.valid?(@auth_mode) + mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + return false unless mode_validator.valid?(@mode) + return false if @name.nil? + return false if @upstream_url.nil? + true + end + + # Custom attribute writer method checking allowed values (enum). + # @param [Object] auth_mode Object to be assigned + def auth_mode=(auth_mode) + validator = EnumAttributeValidator.new('String', ['None', 'Username and Password']) + unless validator.valid?(auth_mode) + fail ArgumentError, 'invalid value for "auth_mode", must be one of #{validator.allowable_values}.' + end + @auth_mode = auth_mode + end + + # Custom attribute writer method checking allowed values (enum). + # @param [Object] mode Object to be assigned + def mode=(mode) + validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + unless validator.valid?(mode) + fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.' + end + @mode = mode + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + auth_mode == o.auth_mode && + auth_secret == o.auth_secret && + auth_username == o.auth_username && + extra_header_1 == o.extra_header_1 && + extra_header_2 == o.extra_header_2 && + extra_value_1 == o.extra_value_1 && + extra_value_2 == o.extra_value_2 && + is_active == o.is_active && + mode == o.mode && + name == o.name && + priority == o.priority && + upstream_url == o.upstream_url && + verify_ssl == o.verify_ssl + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [auth_mode, auth_secret, auth_username, extra_header_1, extra_header_2, extra_value_1, extra_value_2, is_active, mode, name, priority, upstream_url, verify_ssl].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = CloudsmithApi.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + +end +end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/nix_upstream_request_patch.rb b/bindings/ruby/src/lib/cloudsmith-api/models/nix_upstream_request_patch.rb new file mode 100644 index 00000000..e0c977d4 --- /dev/null +++ b/bindings/ruby/src/lib/cloudsmith-api/models/nix_upstream_request_patch.rb @@ -0,0 +1,355 @@ +=begin +#Cloudsmith API (v1) + +#The API to the Cloudsmith Service + +OpenAPI spec version: v1 +Contact: support@cloudsmith.io +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.50 + +=end + +require 'date' + +module CloudsmithApi +class NixUpstreamRequestPatch + # The authentication mode to use when accessing this upstream. + attr_accessor :auth_mode + + # Secret to provide with requests to upstream. + attr_accessor :auth_secret + + # Username to provide with requests to upstream. + attr_accessor :auth_username + + # The key for extra header #1 to send to upstream. + attr_accessor :extra_header_1 + + # The key for extra header #2 to send to upstream. + attr_accessor :extra_header_2 + + # The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. + attr_accessor :extra_value_1 + + # The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. + attr_accessor :extra_value_2 + + # Whether or not this upstream is active and ready for requests. + attr_accessor :is_active + + # The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. + attr_accessor :mode + + # A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. + attr_accessor :name + + # Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. + attr_accessor :priority + + # The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. + attr_accessor :upstream_url + + # If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. + attr_accessor :verify_ssl + + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'auth_mode' => :'auth_mode', + :'auth_secret' => :'auth_secret', + :'auth_username' => :'auth_username', + :'extra_header_1' => :'extra_header_1', + :'extra_header_2' => :'extra_header_2', + :'extra_value_1' => :'extra_value_1', + :'extra_value_2' => :'extra_value_2', + :'is_active' => :'is_active', + :'mode' => :'mode', + :'name' => :'name', + :'priority' => :'priority', + :'upstream_url' => :'upstream_url', + :'verify_ssl' => :'verify_ssl' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'auth_mode' => :'String', + :'auth_secret' => :'String', + :'auth_username' => :'String', + :'extra_header_1' => :'String', + :'extra_header_2' => :'String', + :'extra_value_1' => :'String', + :'extra_value_2' => :'String', + :'is_active' => :'BOOLEAN', + :'mode' => :'String', + :'name' => :'String', + :'priority' => :'Integer', + :'upstream_url' => :'String', + :'verify_ssl' => :'BOOLEAN' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + + if attributes.has_key?(:'auth_mode') + self.auth_mode = attributes[:'auth_mode'] + else + self.auth_mode = 'None' + end + + if attributes.has_key?(:'auth_secret') + self.auth_secret = attributes[:'auth_secret'] + end + + if attributes.has_key?(:'auth_username') + self.auth_username = attributes[:'auth_username'] + end + + if attributes.has_key?(:'extra_header_1') + self.extra_header_1 = attributes[:'extra_header_1'] + end + + if attributes.has_key?(:'extra_header_2') + self.extra_header_2 = attributes[:'extra_header_2'] + end + + if attributes.has_key?(:'extra_value_1') + self.extra_value_1 = attributes[:'extra_value_1'] + end + + if attributes.has_key?(:'extra_value_2') + self.extra_value_2 = attributes[:'extra_value_2'] + end + + if attributes.has_key?(:'is_active') + self.is_active = attributes[:'is_active'] + end + + if attributes.has_key?(:'mode') + self.mode = attributes[:'mode'] + else + self.mode = 'Proxy Only' + end + + if attributes.has_key?(:'name') + self.name = attributes[:'name'] + end + + if attributes.has_key?(:'priority') + self.priority = attributes[:'priority'] + end + + if attributes.has_key?(:'upstream_url') + self.upstream_url = attributes[:'upstream_url'] + end + + if attributes.has_key?(:'verify_ssl') + self.verify_ssl = attributes[:'verify_ssl'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + auth_mode_validator = EnumAttributeValidator.new('String', ['None', 'Username and Password']) + return false unless auth_mode_validator.valid?(@auth_mode) + mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + return false unless mode_validator.valid?(@mode) + true + end + + # Custom attribute writer method checking allowed values (enum). + # @param [Object] auth_mode Object to be assigned + def auth_mode=(auth_mode) + validator = EnumAttributeValidator.new('String', ['None', 'Username and Password']) + unless validator.valid?(auth_mode) + fail ArgumentError, 'invalid value for "auth_mode", must be one of #{validator.allowable_values}.' + end + @auth_mode = auth_mode + end + + # Custom attribute writer method checking allowed values (enum). + # @param [Object] mode Object to be assigned + def mode=(mode) + validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + unless validator.valid?(mode) + fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.' + end + @mode = mode + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + auth_mode == o.auth_mode && + auth_secret == o.auth_secret && + auth_username == o.auth_username && + extra_header_1 == o.extra_header_1 && + extra_header_2 == o.extra_header_2 && + extra_value_1 == o.extra_value_1 && + extra_value_2 == o.extra_value_2 && + is_active == o.is_active && + mode == o.mode && + name == o.name && + priority == o.priority && + upstream_url == o.upstream_url && + verify_ssl == o.verify_ssl + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [auth_mode, auth_secret, auth_username, extra_header_1, extra_header_2, extra_value_1, extra_value_2, is_active, mode, name, priority, upstream_url, verify_ssl].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = CloudsmithApi.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + +end +end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/npm_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/npm_package_upload.rb index c1f4e5ce..4f671a59 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/npm_package_upload.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/npm_package_upload.rb @@ -78,6 +78,9 @@ class NpmPackageUpload attr_accessor :is_hidden + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -184,6 +187,9 @@ class NpmPackageUpload attr_accessor :status_url + # Absolute store path for the package, including store hash and name. + attr_accessor :store_path + attr_accessor :subtype # A one-liner synopsis of this package. @@ -199,6 +205,9 @@ class NpmPackageUpload attr_accessor :tags_immutable + # 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. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -213,6 +222,8 @@ class NpmPackageUpload attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -269,6 +280,7 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', + :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -313,18 +325,21 @@ def self.attribute_map :'status_str' => :'status_str', :'status_updated_at' => :'status_updated_at', :'status_url' => :'status_url', + :'store_path' => :'store_path', :'subtype' => :'subtype', :'summary' => :'summary', :'sync_finished_at' => :'sync_finished_at', :'sync_progress' => :'sync_progress', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', + :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -361,6 +376,7 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', + :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -405,18 +421,21 @@ def self.swagger_types :'status_str' => :'String', :'status_updated_at' => :'DateTime', :'status_url' => :'String', + :'store_path' => :'String', :'subtype' => :'String', :'summary' => :'String', :'sync_finished_at' => :'DateTime', :'sync_progress' => :'Integer', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -551,6 +570,10 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -729,6 +752,10 @@ def initialize(attributes = {}) self.status_url = attributes[:'status_url'] end + if attributes.has_key?(:'store_path') + self.store_path = attributes[:'store_path'] + end + if attributes.has_key?(:'subtype') self.subtype = attributes[:'subtype'] end @@ -753,6 +780,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -777,6 +810,10 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end + if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -841,6 +878,7 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && + is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -885,18 +923,21 @@ def ==(o) status_str == o.status_str && status_updated_at == o.status_updated_at && status_url == o.status_url && + store_path == o.store_path && subtype == o.subtype && summary == o.summary && sync_finished_at == o.sync_finished_at && sync_progress == o.sync_progress && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -909,7 +950,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [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 + [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 end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/npm_package_upload_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/npm_package_upload_request.rb index cc7c9362..9db52e38 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/npm_package_upload_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/npm_package_upload_request.rb @@ -14,6 +14,9 @@ module CloudsmithApi class NpmPackageUploadRequest + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + # The default npm dist-tag for this package/version - This will replace any other package/version if they are using the same tag. attr_accessor :npm_dist_tag @@ -26,23 +29,29 @@ class NpmPackageUploadRequest # A comma-separated values list of tags to add to the package. attr_accessor :tags + attr_accessor :vulnerability_counts + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { + :'is_malware_detected' => :'is_malware_detected', :'npm_dist_tag' => :'npm_dist_tag', :'package_file' => :'package_file', :'republish' => :'republish', - :'tags' => :'tags' + :'tags' => :'tags', + :'vulnerability_counts' => :'vulnerability_counts' } end # Attribute type mapping. def self.swagger_types { + :'is_malware_detected' => :'BOOLEAN', :'npm_dist_tag' => :'String', :'package_file' => :'String', :'republish' => :'BOOLEAN', - :'tags' => :'String' + :'tags' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -54,6 +63,10 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'npm_dist_tag') self.npm_dist_tag = attributes[:'npm_dist_tag'] else @@ -71,6 +84,10 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end + + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -96,10 +113,12 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && + is_malware_detected == o.is_malware_detected && npm_dist_tag == o.npm_dist_tag && package_file == o.package_file && republish == o.republish && - tags == o.tags + tags == o.tags && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -111,7 +130,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [npm_dist_tag, package_file, republish, tags].hash + [is_malware_detected, npm_dist_tag, package_file, republish, tags, vulnerability_counts].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/nuget_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/nuget_package_upload.rb index f19656f2..61cdf1c4 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/nuget_package_upload.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/nuget_package_upload.rb @@ -78,6 +78,9 @@ class NugetPackageUpload attr_accessor :is_hidden + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -184,6 +187,9 @@ class NugetPackageUpload attr_accessor :status_url + # Absolute store path for the package, including store hash and name. + attr_accessor :store_path + attr_accessor :subtype # A one-liner synopsis of this package. @@ -199,6 +205,9 @@ class NugetPackageUpload attr_accessor :tags_immutable + # 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. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -213,6 +222,8 @@ class NugetPackageUpload attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -269,6 +280,7 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', + :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -313,18 +325,21 @@ def self.attribute_map :'status_str' => :'status_str', :'status_updated_at' => :'status_updated_at', :'status_url' => :'status_url', + :'store_path' => :'store_path', :'subtype' => :'subtype', :'summary' => :'summary', :'sync_finished_at' => :'sync_finished_at', :'sync_progress' => :'sync_progress', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', + :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -361,6 +376,7 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', + :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -405,18 +421,21 @@ def self.swagger_types :'status_str' => :'String', :'status_updated_at' => :'DateTime', :'status_url' => :'String', + :'store_path' => :'String', :'subtype' => :'String', :'summary' => :'String', :'sync_finished_at' => :'DateTime', :'sync_progress' => :'Integer', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -551,6 +570,10 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -729,6 +752,10 @@ def initialize(attributes = {}) self.status_url = attributes[:'status_url'] end + if attributes.has_key?(:'store_path') + self.store_path = attributes[:'store_path'] + end + if attributes.has_key?(:'subtype') self.subtype = attributes[:'subtype'] end @@ -753,6 +780,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -777,6 +810,10 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end + if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -841,6 +878,7 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && + is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -885,18 +923,21 @@ def ==(o) status_str == o.status_str && status_updated_at == o.status_updated_at && status_url == o.status_url && + store_path == o.store_path && subtype == o.subtype && summary == o.summary && sync_finished_at == o.sync_finished_at && sync_progress == o.sync_progress && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -909,7 +950,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [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 + [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 end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/nuget_package_upload_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/nuget_package_upload_request.rb index ed1f8939..3ac2a574 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/nuget_package_upload_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/nuget_package_upload_request.rb @@ -14,6 +14,9 @@ module CloudsmithApi class NugetPackageUploadRequest + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + # The primary file for the package. attr_accessor :package_file @@ -26,23 +29,29 @@ class NugetPackageUploadRequest # A comma-separated values list of tags to add to the package. attr_accessor :tags + attr_accessor :vulnerability_counts + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { + :'is_malware_detected' => :'is_malware_detected', :'package_file' => :'package_file', :'republish' => :'republish', :'symbols_file' => :'symbols_file', - :'tags' => :'tags' + :'tags' => :'tags', + :'vulnerability_counts' => :'vulnerability_counts' } end # Attribute type mapping. def self.swagger_types { + :'is_malware_detected' => :'BOOLEAN', :'package_file' => :'String', :'republish' => :'BOOLEAN', :'symbols_file' => :'String', - :'tags' => :'String' + :'tags' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -54,6 +63,10 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] end @@ -69,6 +82,10 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end + + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -94,10 +111,12 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && + is_malware_detected == o.is_malware_detected && package_file == o.package_file && republish == o.republish && symbols_file == o.symbols_file && - tags == o.tags + tags == o.tags && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -109,7 +128,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [package_file, republish, symbols_file, tags].hash + [is_malware_detected, package_file, republish, symbols_file, tags, vulnerability_counts].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/organization_usage.rb b/bindings/ruby/src/lib/cloudsmith-api/models/organization_usage.rb new file mode 100644 index 00000000..be042e60 --- /dev/null +++ b/bindings/ruby/src/lib/cloudsmith-api/models/organization_usage.rb @@ -0,0 +1,215 @@ +=begin +#Cloudsmith API (v1) + +#The API to the Cloudsmith Service + +OpenAPI spec version: v1 +Contact: support@cloudsmith.io +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.50 + +=end + +require 'date' + +module CloudsmithApi +class OrganizationUsage + # The maximum allowed package delivery overage in GB for this product. + attr_accessor :bandwidth_maximum + + # The on-demand limit for package delivery usage (in GBs). + attr_accessor :bandwidth_overage_limit + + # The maximum allowed artifact data overage in GB for this product. + attr_accessor :storage_maximum + + # The on-demand limit for artifact data usage (in GBs). + attr_accessor :storage_overage_limit + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'bandwidth_maximum' => :'bandwidth_maximum', + :'bandwidth_overage_limit' => :'bandwidth_overage_limit', + :'storage_maximum' => :'storage_maximum', + :'storage_overage_limit' => :'storage_overage_limit' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'bandwidth_maximum' => :'Integer', + :'bandwidth_overage_limit' => :'Integer', + :'storage_maximum' => :'Integer', + :'storage_overage_limit' => :'Integer' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + + if attributes.has_key?(:'bandwidth_maximum') + self.bandwidth_maximum = attributes[:'bandwidth_maximum'] + end + + if attributes.has_key?(:'bandwidth_overage_limit') + self.bandwidth_overage_limit = attributes[:'bandwidth_overage_limit'] + end + + if attributes.has_key?(:'storage_maximum') + self.storage_maximum = attributes[:'storage_maximum'] + end + + if attributes.has_key?(:'storage_overage_limit') + self.storage_overage_limit = attributes[:'storage_overage_limit'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + bandwidth_maximum == o.bandwidth_maximum && + bandwidth_overage_limit == o.bandwidth_overage_limit && + storage_maximum == o.storage_maximum && + storage_overage_limit == o.storage_overage_limit + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [bandwidth_maximum, bandwidth_overage_limit, storage_maximum, storage_overage_limit].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = CloudsmithApi.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + +end +end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/organization_usage_update.rb b/bindings/ruby/src/lib/cloudsmith-api/models/organization_usage_update.rb new file mode 100644 index 00000000..fc8b2175 --- /dev/null +++ b/bindings/ruby/src/lib/cloudsmith-api/models/organization_usage_update.rb @@ -0,0 +1,202 @@ +=begin +#Cloudsmith API (v1) + +#The API to the Cloudsmith Service + +OpenAPI spec version: v1 +Contact: support@cloudsmith.io +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.50 + +=end + +require 'date' + +module CloudsmithApi +class OrganizationUsageUpdate + attr_accessor :allow_open_source_overage + + attr_accessor :bandwidth_overage_limit + + attr_accessor :storage_overage_limit + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'allow_open_source_overage' => :'allow_open_source_overage', + :'bandwidth_overage_limit' => :'bandwidth_overage_limit', + :'storage_overage_limit' => :'storage_overage_limit' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'allow_open_source_overage' => :'BOOLEAN', + :'bandwidth_overage_limit' => :'Integer', + :'storage_overage_limit' => :'Integer' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + + if attributes.has_key?(:'allow_open_source_overage') + self.allow_open_source_overage = attributes[:'allow_open_source_overage'] + end + + if attributes.has_key?(:'bandwidth_overage_limit') + self.bandwidth_overage_limit = attributes[:'bandwidth_overage_limit'] + end + + if attributes.has_key?(:'storage_overage_limit') + self.storage_overage_limit = attributes[:'storage_overage_limit'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + allow_open_source_overage == o.allow_open_source_overage && + bandwidth_overage_limit == o.bandwidth_overage_limit && + storage_overage_limit == o.storage_overage_limit + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [allow_open_source_overage, bandwidth_overage_limit, storage_overage_limit].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = CloudsmithApi.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + +end +end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/organization_usage_update_request_patch.rb b/bindings/ruby/src/lib/cloudsmith-api/models/organization_usage_update_request_patch.rb new file mode 100644 index 00000000..f67480ed --- /dev/null +++ b/bindings/ruby/src/lib/cloudsmith-api/models/organization_usage_update_request_patch.rb @@ -0,0 +1,202 @@ +=begin +#Cloudsmith API (v1) + +#The API to the Cloudsmith Service + +OpenAPI spec version: v1 +Contact: support@cloudsmith.io +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.50 + +=end + +require 'date' + +module CloudsmithApi +class OrganizationUsageUpdateRequestPatch + attr_accessor :allow_open_source_overage + + attr_accessor :bandwidth_overage_limit + + attr_accessor :storage_overage_limit + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'allow_open_source_overage' => :'allow_open_source_overage', + :'bandwidth_overage_limit' => :'bandwidth_overage_limit', + :'storage_overage_limit' => :'storage_overage_limit' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'allow_open_source_overage' => :'BOOLEAN', + :'bandwidth_overage_limit' => :'Integer', + :'storage_overage_limit' => :'Integer' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + + if attributes.has_key?(:'allow_open_source_overage') + self.allow_open_source_overage = attributes[:'allow_open_source_overage'] + end + + if attributes.has_key?(:'bandwidth_overage_limit') + self.bandwidth_overage_limit = attributes[:'bandwidth_overage_limit'] + end + + if attributes.has_key?(:'storage_overage_limit') + self.storage_overage_limit = attributes[:'storage_overage_limit'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + allow_open_source_overage == o.allow_open_source_overage && + bandwidth_overage_limit == o.bandwidth_overage_limit && + storage_overage_limit == o.storage_overage_limit + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [allow_open_source_overage, bandwidth_overage_limit, storage_overage_limit].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = CloudsmithApi.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + +end +end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/p2_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/p2_package_upload.rb index ac4ecedd..8c7f407c 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/p2_package_upload.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/p2_package_upload.rb @@ -78,6 +78,9 @@ class P2PackageUpload attr_accessor :is_hidden + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -184,6 +187,9 @@ class P2PackageUpload attr_accessor :status_url + # Absolute store path for the package, including store hash and name. + attr_accessor :store_path + attr_accessor :subtype # A one-liner synopsis of this package. @@ -199,6 +205,9 @@ class P2PackageUpload attr_accessor :tags_immutable + # 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. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -213,6 +222,8 @@ class P2PackageUpload attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -269,6 +280,7 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', + :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -313,18 +325,21 @@ def self.attribute_map :'status_str' => :'status_str', :'status_updated_at' => :'status_updated_at', :'status_url' => :'status_url', + :'store_path' => :'store_path', :'subtype' => :'subtype', :'summary' => :'summary', :'sync_finished_at' => :'sync_finished_at', :'sync_progress' => :'sync_progress', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', + :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -361,6 +376,7 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', + :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -405,18 +421,21 @@ def self.swagger_types :'status_str' => :'String', :'status_updated_at' => :'DateTime', :'status_url' => :'String', + :'store_path' => :'String', :'subtype' => :'String', :'summary' => :'String', :'sync_finished_at' => :'DateTime', :'sync_progress' => :'Integer', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -551,6 +570,10 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -729,6 +752,10 @@ def initialize(attributes = {}) self.status_url = attributes[:'status_url'] end + if attributes.has_key?(:'store_path') + self.store_path = attributes[:'store_path'] + end + if attributes.has_key?(:'subtype') self.subtype = attributes[:'subtype'] end @@ -753,6 +780,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -777,6 +810,10 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end + if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -841,6 +878,7 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && + is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -885,18 +923,21 @@ def ==(o) status_str == o.status_str && status_updated_at == o.status_updated_at && status_url == o.status_url && + store_path == o.store_path && subtype == o.subtype && summary == o.summary && sync_finished_at == o.sync_finished_at && sync_progress == o.sync_progress && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -909,7 +950,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [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 + [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 end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/p2_package_upload_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/p2_package_upload_request.rb index 1a02d8d3..287d4599 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/p2_package_upload_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/p2_package_upload_request.rb @@ -14,6 +14,9 @@ module CloudsmithApi class P2PackageUploadRequest + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + # The primary file for the package. attr_accessor :package_file @@ -23,21 +26,27 @@ class P2PackageUploadRequest # A comma-separated values list of tags to add to the package. attr_accessor :tags + attr_accessor :vulnerability_counts + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { + :'is_malware_detected' => :'is_malware_detected', :'package_file' => :'package_file', :'republish' => :'republish', - :'tags' => :'tags' + :'tags' => :'tags', + :'vulnerability_counts' => :'vulnerability_counts' } end # Attribute type mapping. def self.swagger_types { + :'is_malware_detected' => :'BOOLEAN', :'package_file' => :'String', :'republish' => :'BOOLEAN', - :'tags' => :'String' + :'tags' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -49,6 +58,10 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] end @@ -60,6 +73,10 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end + + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -85,9 +102,11 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && + is_malware_detected == o.is_malware_detected && package_file == o.package_file && republish == o.republish && - tags == o.tags + tags == o.tags && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -99,7 +118,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [package_file, republish, tags].hash + [is_malware_detected, package_file, republish, tags, vulnerability_counts].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/package.rb b/bindings/ruby/src/lib/cloudsmith-api/models/package.rb index e8079f22..7b01cd53 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/package.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/package.rb @@ -81,6 +81,9 @@ class Package attr_accessor :is_hidden + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -187,6 +190,9 @@ class Package attr_accessor :status_url + # Absolute store path for the package, including store hash and name. + attr_accessor :store_path + attr_accessor :subtype # A one-liner synopsis of this package. @@ -204,6 +210,9 @@ class Package attr_accessor :tags_immutable + # 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. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -218,6 +227,8 @@ class Package attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -275,6 +286,7 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', + :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -319,6 +331,7 @@ def self.attribute_map :'status_str' => :'status_str', :'status_updated_at' => :'status_updated_at', :'status_url' => :'status_url', + :'store_path' => :'store_path', :'subtype' => :'subtype', :'summary' => :'summary', :'sync_finished_at' => :'sync_finished_at', @@ -326,12 +339,14 @@ def self.attribute_map :'tags' => :'tags', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', + :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -369,6 +384,7 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', + :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -413,6 +429,7 @@ def self.swagger_types :'status_str' => :'String', :'status_updated_at' => :'DateTime', :'status_url' => :'String', + :'store_path' => :'String', :'subtype' => :'String', :'summary' => :'String', :'sync_finished_at' => :'DateTime', @@ -420,12 +437,14 @@ def self.swagger_types :'tags' => :'Tags', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -564,6 +583,10 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -742,6 +765,10 @@ def initialize(attributes = {}) self.status_url = attributes[:'status_url'] end + if attributes.has_key?(:'store_path') + self.store_path = attributes[:'store_path'] + end + if attributes.has_key?(:'subtype') self.subtype = attributes[:'subtype'] end @@ -770,6 +797,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -794,6 +827,10 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end + if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -859,6 +896,7 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && + is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -903,6 +941,7 @@ def ==(o) status_str == o.status_str && status_updated_at == o.status_updated_at && status_url == o.status_url && + store_path == o.store_path && subtype == o.subtype && summary == o.summary && sync_finished_at == o.sync_finished_at && @@ -910,12 +949,14 @@ def ==(o) tags == o.tags && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -928,7 +969,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [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, filepath, 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, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash + [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, filepath, 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, tags_automatic, tags_immutable, tags_static, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_counts, vulnerability_scan_results_url].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/package_copy.rb b/bindings/ruby/src/lib/cloudsmith-api/models/package_copy.rb index 33e58894..d1541ce1 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/package_copy.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/package_copy.rb @@ -81,6 +81,9 @@ class PackageCopy attr_accessor :is_hidden + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -188,6 +191,9 @@ class PackageCopy attr_accessor :status_url + # Absolute store path for the package, including store hash and name. + attr_accessor :store_path + attr_accessor :subtype # A one-liner synopsis of this package. @@ -205,6 +211,9 @@ class PackageCopy attr_accessor :tags_immutable + # 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. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -219,6 +228,8 @@ class PackageCopy attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -276,6 +287,7 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', + :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -320,6 +332,7 @@ def self.attribute_map :'status_str' => :'status_str', :'status_updated_at' => :'status_updated_at', :'status_url' => :'status_url', + :'store_path' => :'store_path', :'subtype' => :'subtype', :'summary' => :'summary', :'sync_finished_at' => :'sync_finished_at', @@ -327,12 +340,14 @@ def self.attribute_map :'tags' => :'tags', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', + :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -370,6 +385,7 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', + :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -414,6 +430,7 @@ def self.swagger_types :'status_str' => :'String', :'status_updated_at' => :'DateTime', :'status_url' => :'String', + :'store_path' => :'String', :'subtype' => :'String', :'summary' => :'String', :'sync_finished_at' => :'DateTime', @@ -421,12 +438,14 @@ def self.swagger_types :'tags' => :'Tags', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -565,6 +584,10 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -743,6 +766,10 @@ def initialize(attributes = {}) self.status_url = attributes[:'status_url'] end + if attributes.has_key?(:'store_path') + self.store_path = attributes[:'store_path'] + end + if attributes.has_key?(:'subtype') self.subtype = attributes[:'subtype'] end @@ -771,6 +798,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -795,6 +828,10 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end + if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -860,6 +897,7 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && + is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -904,6 +942,7 @@ def ==(o) status_str == o.status_str && status_updated_at == o.status_updated_at && status_url == o.status_url && + store_path == o.store_path && subtype == o.subtype && summary == o.summary && sync_finished_at == o.sync_finished_at && @@ -911,12 +950,14 @@ def ==(o) tags == o.tags && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -929,7 +970,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [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, filepath, 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, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash + [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, filepath, 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, tags_automatic, tags_immutable, tags_static, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_counts, vulnerability_scan_results_url].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/package_copy_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/package_copy_request.rb index bfbd9757..2a1a4d5d 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/package_copy_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/package_copy_request.rb @@ -17,14 +17,21 @@ class PackageCopyRequest # The name of the destination repository without the namespace. attr_accessor :destination + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + # If true, the package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. attr_accessor :republish + attr_accessor :vulnerability_counts + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'destination' => :'destination', - :'republish' => :'republish' + :'is_malware_detected' => :'is_malware_detected', + :'republish' => :'republish', + :'vulnerability_counts' => :'vulnerability_counts' } end @@ -32,7 +39,9 @@ def self.attribute_map def self.swagger_types { :'destination' => :'String', - :'republish' => :'BOOLEAN' + :'is_malware_detected' => :'BOOLEAN', + :'republish' => :'BOOLEAN', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -48,9 +57,17 @@ def initialize(attributes = {}) self.destination = attributes[:'destination'] end + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'republish') self.republish = attributes[:'republish'] end + + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -77,7 +94,9 @@ def ==(o) return true if self.equal?(o) self.class == o.class && destination == o.destination && - republish == o.republish + is_malware_detected == o.is_malware_detected && + republish == o.republish && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -89,7 +108,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [destination, republish].hash + [destination, is_malware_detected, republish, vulnerability_counts].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/package_detail.rb b/bindings/ruby/src/lib/cloudsmith-api/models/package_detail.rb new file mode 100644 index 00000000..3df2247e --- /dev/null +++ b/bindings/ruby/src/lib/cloudsmith-api/models/package_detail.rb @@ -0,0 +1,1090 @@ +=begin +#Cloudsmith API (v1) + +#The API to the Cloudsmith Service + +OpenAPI spec version: v1 +Contact: support@cloudsmith.io +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.50 + +=end + +require 'date' + +module CloudsmithApi +class PackageDetail + attr_accessor :architectures + + attr_accessor :cdn_url + + attr_accessor :checksum_md5 + + attr_accessor :checksum_sha1 + + attr_accessor :checksum_sha256 + + attr_accessor :checksum_sha512 + + # A checksum of all of the package's dependencies. + attr_accessor :dependencies_checksum_md5 + + attr_accessor :dependencies_url + + # A textual description of this package. + attr_accessor :description + + attr_accessor :display_name + + attr_accessor :distro + + attr_accessor :distro_version + + attr_accessor :downloads + + # The epoch of the package version (if any). + attr_accessor :epoch + + attr_accessor :extension + + attr_accessor :filename + + # Full path to the file, including filename e.g. bin/utils/tool.tar.gz + attr_accessor :filepath + + attr_accessor :files + + attr_accessor :format + + attr_accessor :format_url + + # Amount of storage that will be freed if this package is deleted + attr_accessor :freeable_storage + + attr_accessor :fully_qualified_name + + # Whether the package has any dependencies (top-level or from its SBOM). + attr_accessor :has_dependencies + + # Unique and permanent identifier for the package. + attr_accessor :identifier_perm + + # Return a map of identifier field names and their values. + attr_accessor :identifiers + + attr_accessor :indexed + + attr_accessor :is_cancellable + + attr_accessor :is_copyable + + attr_accessor :is_deleteable + + attr_accessor :is_downloadable + + attr_accessor :is_hidden + + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + + attr_accessor :is_moveable + + attr_accessor :is_quarantinable + + attr_accessor :is_quarantined + + attr_accessor :is_resyncable + + attr_accessor :is_security_scannable + + attr_accessor :is_sync_awaiting + + attr_accessor :is_sync_completed + + attr_accessor :is_sync_failed + + attr_accessor :is_sync_in_flight + + attr_accessor :is_sync_in_progress + + # The license of this package. + attr_accessor :license + + # The name of this package. + attr_accessor :name + + attr_accessor :namespace + + attr_accessor :namespace_url + + attr_accessor :num_files + + attr_accessor :origin_repository + + attr_accessor :origin_repository_url + + # Whether the package's SPDX license is OSI-approved. + attr_accessor :osi_approved + + # The type of package contents. + attr_accessor :package_type + + # Whether or not the package has violated any policy. + attr_accessor :policy_violated + + # The raw license string. + attr_accessor :raw_license + + # The release of the package version (if any). + attr_accessor :release + + attr_accessor :repository + + attr_accessor :repository_url + + # The datetime the security scanning was completed. + attr_accessor :security_scan_completed_at + + # The datetime the security scanning was started. + attr_accessor :security_scan_started_at + + attr_accessor :security_scan_status + + # The datetime the security scanning status was updated. + attr_accessor :security_scan_status_updated_at + + attr_accessor :self_html_url + + attr_accessor :self_url + + attr_accessor :self_webapp_url + + attr_accessor :signature_url + + # The calculated size of the package. + attr_accessor :size + + # The public unique identifier for the package. + attr_accessor :slug + + attr_accessor :slug_perm + + # The SPDX license identifier for this package. + attr_accessor :spdx_license + + # The synchronisation (in progress) stage of the package. + attr_accessor :stage + + attr_accessor :stage_str + + # The datetime the package stage was updated at. + attr_accessor :stage_updated_at + + # The synchronisation status of the package. + attr_accessor :status + + # A textual description for the synchronous status reason (if any + attr_accessor :status_reason + + attr_accessor :status_str + + # The datetime the package status was updated at. + attr_accessor :status_updated_at + + attr_accessor :status_url + + # Absolute store path for the package, including store hash and name. + attr_accessor :store_path + + attr_accessor :subtype + + # A one-liner synopsis of this package. + attr_accessor :summary + + # The datetime the package sync was finished at. + attr_accessor :sync_finished_at + + # Synchronisation progress (from 0-100) + attr_accessor :sync_progress + + attr_accessor :tags + + attr_accessor :tags_automatic + + attr_accessor :tags_immutable + + # 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. + attr_accessor :tags_static + + attr_accessor :type_display + + # The date this package was uploaded. + attr_accessor :uploaded_at + + attr_accessor :uploader + + attr_accessor :uploader_url + + # The raw version for this package. + attr_accessor :version + + attr_accessor :version_orig + + attr_accessor :vulnerability_counts + + attr_accessor :vulnerability_scan_results_url + + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'architectures' => :'architectures', + :'cdn_url' => :'cdn_url', + :'checksum_md5' => :'checksum_md5', + :'checksum_sha1' => :'checksum_sha1', + :'checksum_sha256' => :'checksum_sha256', + :'checksum_sha512' => :'checksum_sha512', + :'dependencies_checksum_md5' => :'dependencies_checksum_md5', + :'dependencies_url' => :'dependencies_url', + :'description' => :'description', + :'display_name' => :'display_name', + :'distro' => :'distro', + :'distro_version' => :'distro_version', + :'downloads' => :'downloads', + :'epoch' => :'epoch', + :'extension' => :'extension', + :'filename' => :'filename', + :'filepath' => :'filepath', + :'files' => :'files', + :'format' => :'format', + :'format_url' => :'format_url', + :'freeable_storage' => :'freeable_storage', + :'fully_qualified_name' => :'fully_qualified_name', + :'has_dependencies' => :'has_dependencies', + :'identifier_perm' => :'identifier_perm', + :'identifiers' => :'identifiers', + :'indexed' => :'indexed', + :'is_cancellable' => :'is_cancellable', + :'is_copyable' => :'is_copyable', + :'is_deleteable' => :'is_deleteable', + :'is_downloadable' => :'is_downloadable', + :'is_hidden' => :'is_hidden', + :'is_malware_detected' => :'is_malware_detected', + :'is_moveable' => :'is_moveable', + :'is_quarantinable' => :'is_quarantinable', + :'is_quarantined' => :'is_quarantined', + :'is_resyncable' => :'is_resyncable', + :'is_security_scannable' => :'is_security_scannable', + :'is_sync_awaiting' => :'is_sync_awaiting', + :'is_sync_completed' => :'is_sync_completed', + :'is_sync_failed' => :'is_sync_failed', + :'is_sync_in_flight' => :'is_sync_in_flight', + :'is_sync_in_progress' => :'is_sync_in_progress', + :'license' => :'license', + :'name' => :'name', + :'namespace' => :'namespace', + :'namespace_url' => :'namespace_url', + :'num_files' => :'num_files', + :'origin_repository' => :'origin_repository', + :'origin_repository_url' => :'origin_repository_url', + :'osi_approved' => :'osi_approved', + :'package_type' => :'package_type', + :'policy_violated' => :'policy_violated', + :'raw_license' => :'raw_license', + :'release' => :'release', + :'repository' => :'repository', + :'repository_url' => :'repository_url', + :'security_scan_completed_at' => :'security_scan_completed_at', + :'security_scan_started_at' => :'security_scan_started_at', + :'security_scan_status' => :'security_scan_status', + :'security_scan_status_updated_at' => :'security_scan_status_updated_at', + :'self_html_url' => :'self_html_url', + :'self_url' => :'self_url', + :'self_webapp_url' => :'self_webapp_url', + :'signature_url' => :'signature_url', + :'size' => :'size', + :'slug' => :'slug', + :'slug_perm' => :'slug_perm', + :'spdx_license' => :'spdx_license', + :'stage' => :'stage', + :'stage_str' => :'stage_str', + :'stage_updated_at' => :'stage_updated_at', + :'status' => :'status', + :'status_reason' => :'status_reason', + :'status_str' => :'status_str', + :'status_updated_at' => :'status_updated_at', + :'status_url' => :'status_url', + :'store_path' => :'store_path', + :'subtype' => :'subtype', + :'summary' => :'summary', + :'sync_finished_at' => :'sync_finished_at', + :'sync_progress' => :'sync_progress', + :'tags' => :'tags', + :'tags_automatic' => :'tags_automatic', + :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', + :'type_display' => :'type_display', + :'uploaded_at' => :'uploaded_at', + :'uploader' => :'uploader', + :'uploader_url' => :'uploader_url', + :'version' => :'version', + :'version_orig' => :'version_orig', + :'vulnerability_counts' => :'vulnerability_counts', + :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'architectures' => :'Array', + :'cdn_url' => :'String', + :'checksum_md5' => :'String', + :'checksum_sha1' => :'String', + :'checksum_sha256' => :'String', + :'checksum_sha512' => :'String', + :'dependencies_checksum_md5' => :'String', + :'dependencies_url' => :'String', + :'description' => :'String', + :'display_name' => :'String', + :'distro' => :'Distribution', + :'distro_version' => :'DistributionVersion', + :'downloads' => :'Integer', + :'epoch' => :'Integer', + :'extension' => :'String', + :'filename' => :'String', + :'filepath' => :'String', + :'files' => :'Array', + :'format' => :'String', + :'format_url' => :'String', + :'freeable_storage' => :'Integer', + :'fully_qualified_name' => :'String', + :'has_dependencies' => :'BOOLEAN', + :'identifier_perm' => :'String', + :'identifiers' => :'Hash', + :'indexed' => :'BOOLEAN', + :'is_cancellable' => :'BOOLEAN', + :'is_copyable' => :'BOOLEAN', + :'is_deleteable' => :'BOOLEAN', + :'is_downloadable' => :'BOOLEAN', + :'is_hidden' => :'BOOLEAN', + :'is_malware_detected' => :'BOOLEAN', + :'is_moveable' => :'BOOLEAN', + :'is_quarantinable' => :'BOOLEAN', + :'is_quarantined' => :'BOOLEAN', + :'is_resyncable' => :'BOOLEAN', + :'is_security_scannable' => :'BOOLEAN', + :'is_sync_awaiting' => :'BOOLEAN', + :'is_sync_completed' => :'BOOLEAN', + :'is_sync_failed' => :'BOOLEAN', + :'is_sync_in_flight' => :'BOOLEAN', + :'is_sync_in_progress' => :'BOOLEAN', + :'license' => :'String', + :'name' => :'String', + :'namespace' => :'String', + :'namespace_url' => :'String', + :'num_files' => :'Integer', + :'origin_repository' => :'String', + :'origin_repository_url' => :'String', + :'osi_approved' => :'BOOLEAN', + :'package_type' => :'Integer', + :'policy_violated' => :'BOOLEAN', + :'raw_license' => :'String', + :'release' => :'String', + :'repository' => :'String', + :'repository_url' => :'String', + :'security_scan_completed_at' => :'DateTime', + :'security_scan_started_at' => :'DateTime', + :'security_scan_status' => :'String', + :'security_scan_status_updated_at' => :'DateTime', + :'self_html_url' => :'String', + :'self_url' => :'String', + :'self_webapp_url' => :'String', + :'signature_url' => :'String', + :'size' => :'Integer', + :'slug' => :'String', + :'slug_perm' => :'String', + :'spdx_license' => :'String', + :'stage' => :'Integer', + :'stage_str' => :'String', + :'stage_updated_at' => :'DateTime', + :'status' => :'Integer', + :'status_reason' => :'String', + :'status_str' => :'String', + :'status_updated_at' => :'DateTime', + :'status_url' => :'String', + :'store_path' => :'String', + :'subtype' => :'String', + :'summary' => :'String', + :'sync_finished_at' => :'DateTime', + :'sync_progress' => :'Integer', + :'tags' => :'Tags', + :'tags_automatic' => :'Tags', + :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', + :'type_display' => :'String', + :'uploaded_at' => :'DateTime', + :'uploader' => :'String', + :'uploader_url' => :'String', + :'version' => :'String', + :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', + :'vulnerability_scan_results_url' => :'String' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + + if attributes.has_key?(:'architectures') + if (value = attributes[:'architectures']).is_a?(Array) + self.architectures = value + end + end + + if attributes.has_key?(:'cdn_url') + self.cdn_url = attributes[:'cdn_url'] + end + + if attributes.has_key?(:'checksum_md5') + self.checksum_md5 = attributes[:'checksum_md5'] + end + + if attributes.has_key?(:'checksum_sha1') + self.checksum_sha1 = attributes[:'checksum_sha1'] + end + + if attributes.has_key?(:'checksum_sha256') + self.checksum_sha256 = attributes[:'checksum_sha256'] + end + + if attributes.has_key?(:'checksum_sha512') + self.checksum_sha512 = attributes[:'checksum_sha512'] + end + + if attributes.has_key?(:'dependencies_checksum_md5') + self.dependencies_checksum_md5 = attributes[:'dependencies_checksum_md5'] + end + + if attributes.has_key?(:'dependencies_url') + self.dependencies_url = attributes[:'dependencies_url'] + end + + if attributes.has_key?(:'description') + self.description = attributes[:'description'] + end + + if attributes.has_key?(:'display_name') + self.display_name = attributes[:'display_name'] + end + + if attributes.has_key?(:'distro') + self.distro = attributes[:'distro'] + end + + if attributes.has_key?(:'distro_version') + self.distro_version = attributes[:'distro_version'] + end + + if attributes.has_key?(:'downloads') + self.downloads = attributes[:'downloads'] + end + + if attributes.has_key?(:'epoch') + self.epoch = attributes[:'epoch'] + end + + if attributes.has_key?(:'extension') + self.extension = attributes[:'extension'] + end + + if attributes.has_key?(:'filename') + self.filename = attributes[:'filename'] + end + + if attributes.has_key?(:'filepath') + self.filepath = attributes[:'filepath'] + end + + if attributes.has_key?(:'files') + if (value = attributes[:'files']).is_a?(Array) + self.files = value + end + end + + if attributes.has_key?(:'format') + self.format = attributes[:'format'] + end + + if attributes.has_key?(:'format_url') + self.format_url = attributes[:'format_url'] + end + + if attributes.has_key?(:'freeable_storage') + self.freeable_storage = attributes[:'freeable_storage'] + end + + if attributes.has_key?(:'fully_qualified_name') + self.fully_qualified_name = attributes[:'fully_qualified_name'] + end + + if attributes.has_key?(:'has_dependencies') + self.has_dependencies = attributes[:'has_dependencies'] + end + + if attributes.has_key?(:'identifier_perm') + self.identifier_perm = attributes[:'identifier_perm'] + end + + if attributes.has_key?(:'identifiers') + if (value = attributes[:'identifiers']).is_a?(Hash) + self.identifiers = value + end + end + + if attributes.has_key?(:'indexed') + self.indexed = attributes[:'indexed'] + end + + if attributes.has_key?(:'is_cancellable') + self.is_cancellable = attributes[:'is_cancellable'] + end + + if attributes.has_key?(:'is_copyable') + self.is_copyable = attributes[:'is_copyable'] + end + + if attributes.has_key?(:'is_deleteable') + self.is_deleteable = attributes[:'is_deleteable'] + end + + if attributes.has_key?(:'is_downloadable') + self.is_downloadable = attributes[:'is_downloadable'] + end + + if attributes.has_key?(:'is_hidden') + self.is_hidden = attributes[:'is_hidden'] + end + + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + + if attributes.has_key?(:'is_moveable') + self.is_moveable = attributes[:'is_moveable'] + end + + if attributes.has_key?(:'is_quarantinable') + self.is_quarantinable = attributes[:'is_quarantinable'] + end + + if attributes.has_key?(:'is_quarantined') + self.is_quarantined = attributes[:'is_quarantined'] + end + + if attributes.has_key?(:'is_resyncable') + self.is_resyncable = attributes[:'is_resyncable'] + end + + if attributes.has_key?(:'is_security_scannable') + self.is_security_scannable = attributes[:'is_security_scannable'] + end + + if attributes.has_key?(:'is_sync_awaiting') + self.is_sync_awaiting = attributes[:'is_sync_awaiting'] + end + + if attributes.has_key?(:'is_sync_completed') + self.is_sync_completed = attributes[:'is_sync_completed'] + end + + if attributes.has_key?(:'is_sync_failed') + self.is_sync_failed = attributes[:'is_sync_failed'] + end + + if attributes.has_key?(:'is_sync_in_flight') + self.is_sync_in_flight = attributes[:'is_sync_in_flight'] + end + + if attributes.has_key?(:'is_sync_in_progress') + self.is_sync_in_progress = attributes[:'is_sync_in_progress'] + end + + if attributes.has_key?(:'license') + self.license = attributes[:'license'] + end + + if attributes.has_key?(:'name') + self.name = attributes[:'name'] + end + + if attributes.has_key?(:'namespace') + self.namespace = attributes[:'namespace'] + end + + if attributes.has_key?(:'namespace_url') + self.namespace_url = attributes[:'namespace_url'] + end + + if attributes.has_key?(:'num_files') + self.num_files = attributes[:'num_files'] + end + + if attributes.has_key?(:'origin_repository') + self.origin_repository = attributes[:'origin_repository'] + end + + if attributes.has_key?(:'origin_repository_url') + self.origin_repository_url = attributes[:'origin_repository_url'] + end + + if attributes.has_key?(:'osi_approved') + self.osi_approved = attributes[:'osi_approved'] + end + + if attributes.has_key?(:'package_type') + self.package_type = attributes[:'package_type'] + end + + if attributes.has_key?(:'policy_violated') + self.policy_violated = attributes[:'policy_violated'] + end + + if attributes.has_key?(:'raw_license') + self.raw_license = attributes[:'raw_license'] + end + + if attributes.has_key?(:'release') + self.release = attributes[:'release'] + end + + if attributes.has_key?(:'repository') + self.repository = attributes[:'repository'] + end + + if attributes.has_key?(:'repository_url') + self.repository_url = attributes[:'repository_url'] + end + + if attributes.has_key?(:'security_scan_completed_at') + self.security_scan_completed_at = attributes[:'security_scan_completed_at'] + end + + if attributes.has_key?(:'security_scan_started_at') + self.security_scan_started_at = attributes[:'security_scan_started_at'] + end + + if attributes.has_key?(:'security_scan_status') + self.security_scan_status = attributes[:'security_scan_status'] + else + self.security_scan_status = 'Awaiting Security Scan' + end + + if attributes.has_key?(:'security_scan_status_updated_at') + self.security_scan_status_updated_at = attributes[:'security_scan_status_updated_at'] + end + + if attributes.has_key?(:'self_html_url') + self.self_html_url = attributes[:'self_html_url'] + end + + if attributes.has_key?(:'self_url') + self.self_url = attributes[:'self_url'] + end + + if attributes.has_key?(:'self_webapp_url') + self.self_webapp_url = attributes[:'self_webapp_url'] + end + + if attributes.has_key?(:'signature_url') + self.signature_url = attributes[:'signature_url'] + end + + if attributes.has_key?(:'size') + self.size = attributes[:'size'] + end + + if attributes.has_key?(:'slug') + self.slug = attributes[:'slug'] + end + + if attributes.has_key?(:'slug_perm') + self.slug_perm = attributes[:'slug_perm'] + end + + if attributes.has_key?(:'spdx_license') + self.spdx_license = attributes[:'spdx_license'] + end + + if attributes.has_key?(:'stage') + self.stage = attributes[:'stage'] + end + + if attributes.has_key?(:'stage_str') + self.stage_str = attributes[:'stage_str'] + end + + if attributes.has_key?(:'stage_updated_at') + self.stage_updated_at = attributes[:'stage_updated_at'] + end + + if attributes.has_key?(:'status') + self.status = attributes[:'status'] + end + + if attributes.has_key?(:'status_reason') + self.status_reason = attributes[:'status_reason'] + end + + if attributes.has_key?(:'status_str') + self.status_str = attributes[:'status_str'] + end + + if attributes.has_key?(:'status_updated_at') + self.status_updated_at = attributes[:'status_updated_at'] + end + + if attributes.has_key?(:'status_url') + self.status_url = attributes[:'status_url'] + end + + if attributes.has_key?(:'store_path') + self.store_path = attributes[:'store_path'] + end + + if attributes.has_key?(:'subtype') + self.subtype = attributes[:'subtype'] + end + + if attributes.has_key?(:'summary') + self.summary = attributes[:'summary'] + end + + if attributes.has_key?(:'sync_finished_at') + self.sync_finished_at = attributes[:'sync_finished_at'] + end + + if attributes.has_key?(:'sync_progress') + self.sync_progress = attributes[:'sync_progress'] + end + + if attributes.has_key?(:'tags') + self.tags = attributes[:'tags'] + end + + if attributes.has_key?(:'tags_automatic') + self.tags_automatic = attributes[:'tags_automatic'] + end + + if attributes.has_key?(:'tags_immutable') + self.tags_immutable = attributes[:'tags_immutable'] + end + + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + + if attributes.has_key?(:'type_display') + self.type_display = attributes[:'type_display'] + end + + if attributes.has_key?(:'uploaded_at') + self.uploaded_at = attributes[:'uploaded_at'] + end + + if attributes.has_key?(:'uploader') + self.uploader = attributes[:'uploader'] + end + + if attributes.has_key?(:'uploader_url') + self.uploader_url = attributes[:'uploader_url'] + end + + if attributes.has_key?(:'version') + self.version = attributes[:'version'] + end + + if attributes.has_key?(:'version_orig') + self.version_orig = attributes[:'version_orig'] + end + + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end + + if attributes.has_key?(:'vulnerability_scan_results_url') + self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + security_scan_status_validator = EnumAttributeValidator.new('String', ['Awaiting Security Scan', 'Security Scanning in Progress', 'Scan Detected Vulnerabilities', 'Scan Detected No Vulnerabilities', 'Security Scanning Disabled', 'Security Scanning Failed', 'Security Scanning Skipped', 'Security Scanning Not Supported']) + return false unless security_scan_status_validator.valid?(@security_scan_status) + true + end + + # Custom attribute writer method checking allowed values (enum). + # @param [Object] security_scan_status Object to be assigned + def security_scan_status=(security_scan_status) + validator = EnumAttributeValidator.new('String', ['Awaiting Security Scan', 'Security Scanning in Progress', 'Scan Detected Vulnerabilities', 'Scan Detected No Vulnerabilities', 'Security Scanning Disabled', 'Security Scanning Failed', 'Security Scanning Skipped', 'Security Scanning Not Supported']) + unless validator.valid?(security_scan_status) + fail ArgumentError, 'invalid value for "security_scan_status", must be one of #{validator.allowable_values}.' + end + @security_scan_status = security_scan_status + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + architectures == o.architectures && + cdn_url == o.cdn_url && + checksum_md5 == o.checksum_md5 && + checksum_sha1 == o.checksum_sha1 && + checksum_sha256 == o.checksum_sha256 && + checksum_sha512 == o.checksum_sha512 && + dependencies_checksum_md5 == o.dependencies_checksum_md5 && + dependencies_url == o.dependencies_url && + description == o.description && + display_name == o.display_name && + distro == o.distro && + distro_version == o.distro_version && + downloads == o.downloads && + epoch == o.epoch && + extension == o.extension && + filename == o.filename && + filepath == o.filepath && + files == o.files && + format == o.format && + format_url == o.format_url && + freeable_storage == o.freeable_storage && + fully_qualified_name == o.fully_qualified_name && + has_dependencies == o.has_dependencies && + identifier_perm == o.identifier_perm && + identifiers == o.identifiers && + indexed == o.indexed && + is_cancellable == o.is_cancellable && + is_copyable == o.is_copyable && + is_deleteable == o.is_deleteable && + is_downloadable == o.is_downloadable && + is_hidden == o.is_hidden && + is_malware_detected == o.is_malware_detected && + is_moveable == o.is_moveable && + is_quarantinable == o.is_quarantinable && + is_quarantined == o.is_quarantined && + is_resyncable == o.is_resyncable && + is_security_scannable == o.is_security_scannable && + is_sync_awaiting == o.is_sync_awaiting && + is_sync_completed == o.is_sync_completed && + is_sync_failed == o.is_sync_failed && + is_sync_in_flight == o.is_sync_in_flight && + is_sync_in_progress == o.is_sync_in_progress && + license == o.license && + name == o.name && + namespace == o.namespace && + namespace_url == o.namespace_url && + num_files == o.num_files && + origin_repository == o.origin_repository && + origin_repository_url == o.origin_repository_url && + osi_approved == o.osi_approved && + package_type == o.package_type && + policy_violated == o.policy_violated && + raw_license == o.raw_license && + release == o.release && + repository == o.repository && + repository_url == o.repository_url && + security_scan_completed_at == o.security_scan_completed_at && + security_scan_started_at == o.security_scan_started_at && + security_scan_status == o.security_scan_status && + security_scan_status_updated_at == o.security_scan_status_updated_at && + self_html_url == o.self_html_url && + self_url == o.self_url && + self_webapp_url == o.self_webapp_url && + signature_url == o.signature_url && + size == o.size && + slug == o.slug && + slug_perm == o.slug_perm && + spdx_license == o.spdx_license && + stage == o.stage && + stage_str == o.stage_str && + stage_updated_at == o.stage_updated_at && + status == o.status && + status_reason == o.status_reason && + status_str == o.status_str && + status_updated_at == o.status_updated_at && + status_url == o.status_url && + store_path == o.store_path && + subtype == o.subtype && + summary == o.summary && + sync_finished_at == o.sync_finished_at && + sync_progress == o.sync_progress && + tags == o.tags && + tags_automatic == o.tags_automatic && + tags_immutable == o.tags_immutable && + tags_static == o.tags_static && + type_display == o.type_display && + uploaded_at == o.uploaded_at && + uploader == o.uploader && + uploader_url == o.uploader_url && + version == o.version && + version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && + vulnerability_scan_results_url == o.vulnerability_scan_results_url + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [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, filepath, files, format, format_url, freeable_storage, fully_qualified_name, has_dependencies, 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, tags_automatic, tags_immutable, tags_static, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_counts, vulnerability_scan_results_url].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = CloudsmithApi.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + +end +end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/package_license.rb b/bindings/ruby/src/lib/cloudsmith-api/models/package_license.rb index 23fd45e3..fee05201 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/package_license.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/package_license.rb @@ -14,6 +14,9 @@ module CloudsmithApi class PackageLicense + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + attr_accessor :license_notes attr_accessor :license_override @@ -22,6 +25,8 @@ class PackageLicense attr_accessor :spdx_license + attr_accessor :vulnerability_counts + class EnumAttributeValidator attr_reader :datatype attr_reader :allowable_values @@ -47,20 +52,24 @@ def valid?(value) # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { + :'is_malware_detected' => :'is_malware_detected', :'license_notes' => :'license_notes', :'license_override' => :'license_override', :'license_url' => :'license_url', - :'spdx_license' => :'spdx_license' + :'spdx_license' => :'spdx_license', + :'vulnerability_counts' => :'vulnerability_counts' } end # Attribute type mapping. def self.swagger_types { + :'is_malware_detected' => :'BOOLEAN', :'license_notes' => :'String', :'license_override' => :'String', :'license_url' => :'String', - :'spdx_license' => :'String' + :'spdx_license' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -72,6 +81,10 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'license_notes') self.license_notes = attributes[:'license_notes'] end @@ -89,6 +102,10 @@ def initialize(attributes = {}) if attributes.has_key?(:'spdx_license') self.spdx_license = attributes[:'spdx_license'] end + + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -126,10 +143,12 @@ def license_override=(license_override) def ==(o) return true if self.equal?(o) self.class == o.class && + is_malware_detected == o.is_malware_detected && license_notes == o.license_notes && license_override == o.license_override && license_url == o.license_url && - spdx_license == o.spdx_license + spdx_license == o.spdx_license && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -141,7 +160,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [license_notes, license_override, license_url, spdx_license].hash + [is_malware_detected, license_notes, license_override, license_url, spdx_license, vulnerability_counts].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/package_license_request_patch.rb b/bindings/ruby/src/lib/cloudsmith-api/models/package_license_request_patch.rb index a6805449..0462ee91 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/package_license_request_patch.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/package_license_request_patch.rb @@ -16,6 +16,9 @@ module CloudsmithApi class PackageLicenseRequestPatch attr_accessor :action + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + attr_accessor :license_notes attr_accessor :license_override @@ -24,6 +27,8 @@ class PackageLicenseRequestPatch attr_accessor :spdx_license + attr_accessor :vulnerability_counts + class EnumAttributeValidator attr_reader :datatype attr_reader :allowable_values @@ -50,10 +55,12 @@ def valid?(value) def self.attribute_map { :'action' => :'action', + :'is_malware_detected' => :'is_malware_detected', :'license_notes' => :'license_notes', :'license_override' => :'license_override', :'license_url' => :'license_url', - :'spdx_license' => :'spdx_license' + :'spdx_license' => :'spdx_license', + :'vulnerability_counts' => :'vulnerability_counts' } end @@ -61,10 +68,12 @@ def self.attribute_map def self.swagger_types { :'action' => :'String', + :'is_malware_detected' => :'BOOLEAN', :'license_notes' => :'String', :'license_override' => :'String', :'license_url' => :'String', - :'spdx_license' => :'String' + :'spdx_license' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -82,6 +91,10 @@ def initialize(attributes = {}) self.action = 'Update' end + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'license_notes') self.license_notes = attributes[:'license_notes'] end @@ -99,12 +112,20 @@ def initialize(attributes = {}) if attributes.has_key?(:'spdx_license') self.spdx_license = attributes[:'spdx_license'] end + + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new + if @spdx_license.nil? + invalid_properties.push('invalid value for "spdx_license", spdx_license cannot be nil.') + end + invalid_properties end @@ -115,6 +136,7 @@ def valid? return false unless action_validator.valid?(@action) license_override_validator = EnumAttributeValidator.new('String', ['None', 'Ignored', 'Purchased']) return false unless license_override_validator.valid?(@license_override) + return false if @spdx_license.nil? true end @@ -144,10 +166,12 @@ def ==(o) return true if self.equal?(o) self.class == o.class && action == o.action && + is_malware_detected == o.is_malware_detected && license_notes == o.license_notes && license_override == o.license_override && license_url == o.license_url && - spdx_license == o.spdx_license + spdx_license == o.spdx_license && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -159,7 +183,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [action, license_notes, license_override, license_url, spdx_license].hash + [action, is_malware_detected, license_notes, license_override, license_url, spdx_license, vulnerability_counts].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/package_move.rb b/bindings/ruby/src/lib/cloudsmith-api/models/package_move.rb index f7e308d2..29c40365 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/package_move.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/package_move.rb @@ -81,6 +81,9 @@ class PackageMove attr_accessor :is_hidden + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -188,6 +191,9 @@ class PackageMove attr_accessor :status_url + # Absolute store path for the package, including store hash and name. + attr_accessor :store_path + attr_accessor :subtype # A one-liner synopsis of this package. @@ -205,6 +211,9 @@ class PackageMove attr_accessor :tags_immutable + # 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. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -219,6 +228,8 @@ class PackageMove attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -276,6 +287,7 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', + :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -320,6 +332,7 @@ def self.attribute_map :'status_str' => :'status_str', :'status_updated_at' => :'status_updated_at', :'status_url' => :'status_url', + :'store_path' => :'store_path', :'subtype' => :'subtype', :'summary' => :'summary', :'sync_finished_at' => :'sync_finished_at', @@ -327,12 +340,14 @@ def self.attribute_map :'tags' => :'tags', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', + :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -370,6 +385,7 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', + :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -414,6 +430,7 @@ def self.swagger_types :'status_str' => :'String', :'status_updated_at' => :'DateTime', :'status_url' => :'String', + :'store_path' => :'String', :'subtype' => :'String', :'summary' => :'String', :'sync_finished_at' => :'DateTime', @@ -421,12 +438,14 @@ def self.swagger_types :'tags' => :'Tags', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -565,6 +584,10 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -743,6 +766,10 @@ def initialize(attributes = {}) self.status_url = attributes[:'status_url'] end + if attributes.has_key?(:'store_path') + self.store_path = attributes[:'store_path'] + end + if attributes.has_key?(:'subtype') self.subtype = attributes[:'subtype'] end @@ -771,6 +798,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -795,6 +828,10 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end + if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -860,6 +897,7 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && + is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -904,6 +942,7 @@ def ==(o) status_str == o.status_str && status_updated_at == o.status_updated_at && status_url == o.status_url && + store_path == o.store_path && subtype == o.subtype && summary == o.summary && sync_finished_at == o.sync_finished_at && @@ -911,12 +950,14 @@ def ==(o) tags == o.tags && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -929,7 +970,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [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, filepath, 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, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash + [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, filepath, 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, tags_automatic, tags_immutable, tags_static, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_counts, vulnerability_scan_results_url].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/package_move_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/package_move_request.rb index 25c41edc..d751540b 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/package_move_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/package_move_request.rb @@ -17,17 +17,26 @@ class PackageMoveRequest # The name of the destination repository without the namespace. attr_accessor :destination + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + + attr_accessor :vulnerability_counts + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'destination' => :'destination' + :'destination' => :'destination', + :'is_malware_detected' => :'is_malware_detected', + :'vulnerability_counts' => :'vulnerability_counts' } end # Attribute type mapping. def self.swagger_types { - :'destination' => :'String' + :'destination' => :'String', + :'is_malware_detected' => :'BOOLEAN', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -42,6 +51,14 @@ def initialize(attributes = {}) if attributes.has_key?(:'destination') self.destination = attributes[:'destination'] end + + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -67,7 +84,9 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - destination == o.destination + destination == o.destination && + is_malware_detected == o.is_malware_detected && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -79,7 +98,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [destination].hash + [destination, is_malware_detected, vulnerability_counts].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/package_quarantine.rb b/bindings/ruby/src/lib/cloudsmith-api/models/package_quarantine.rb index 0d195617..37fa7cee 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/package_quarantine.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/package_quarantine.rb @@ -81,6 +81,9 @@ class PackageQuarantine attr_accessor :is_hidden + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -184,6 +187,9 @@ class PackageQuarantine attr_accessor :status_url + # Absolute store path for the package, including store hash and name. + attr_accessor :store_path + attr_accessor :subtype # A one-liner synopsis of this package. @@ -201,6 +207,9 @@ class PackageQuarantine attr_accessor :tags_immutable + # 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. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -215,6 +224,8 @@ class PackageQuarantine attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -272,6 +283,7 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', + :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -315,6 +327,7 @@ def self.attribute_map :'status_str' => :'status_str', :'status_updated_at' => :'status_updated_at', :'status_url' => :'status_url', + :'store_path' => :'store_path', :'subtype' => :'subtype', :'summary' => :'summary', :'sync_finished_at' => :'sync_finished_at', @@ -322,12 +335,14 @@ def self.attribute_map :'tags' => :'tags', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', + :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -365,6 +380,7 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', + :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -408,6 +424,7 @@ def self.swagger_types :'status_str' => :'String', :'status_updated_at' => :'DateTime', :'status_url' => :'String', + :'store_path' => :'String', :'subtype' => :'String', :'summary' => :'String', :'sync_finished_at' => :'DateTime', @@ -415,12 +432,14 @@ def self.swagger_types :'tags' => :'Tags', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -559,6 +578,10 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -733,6 +756,10 @@ def initialize(attributes = {}) self.status_url = attributes[:'status_url'] end + if attributes.has_key?(:'store_path') + self.store_path = attributes[:'store_path'] + end + if attributes.has_key?(:'subtype') self.subtype = attributes[:'subtype'] end @@ -761,6 +788,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -785,6 +818,10 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end + if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -850,6 +887,7 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && + is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -893,6 +931,7 @@ def ==(o) status_str == o.status_str && status_updated_at == o.status_updated_at && status_url == o.status_url && + store_path == o.store_path && subtype == o.subtype && summary == o.summary && sync_finished_at == o.sync_finished_at && @@ -900,12 +939,14 @@ def ==(o) tags == o.tags && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -918,7 +959,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [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, filepath, 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, 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, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash + [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, filepath, 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, 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, tags_automatic, tags_immutable, tags_static, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_counts, vulnerability_scan_results_url].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/package_quarantine_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/package_quarantine_request.rb index d6c853e7..74e4fc0e 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/package_quarantine_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/package_quarantine_request.rb @@ -14,25 +14,34 @@ module CloudsmithApi class PackageQuarantineRequest + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + # If true, the package is released from quarantine. attr_accessor :release # If true, the package is released from quarantine. Note: This field is deprecated, please use 'release' instead. attr_accessor :restore + attr_accessor :vulnerability_counts + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { + :'is_malware_detected' => :'is_malware_detected', :'release' => :'release', - :'restore' => :'restore' + :'restore' => :'restore', + :'vulnerability_counts' => :'vulnerability_counts' } end # Attribute type mapping. def self.swagger_types { + :'is_malware_detected' => :'BOOLEAN', :'release' => :'BOOLEAN', - :'restore' => :'BOOLEAN' + :'restore' => :'BOOLEAN', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -44,6 +53,10 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'release') self.release = attributes[:'release'] end @@ -51,6 +64,10 @@ def initialize(attributes = {}) if attributes.has_key?(:'restore') self.restore = attributes[:'restore'] end + + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -71,8 +88,10 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && + is_malware_detected == o.is_malware_detected && release == o.release && - restore == o.restore + restore == o.restore && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -84,7 +103,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [release, restore].hash + [is_malware_detected, release, restore, vulnerability_counts].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/package_resync.rb b/bindings/ruby/src/lib/cloudsmith-api/models/package_resync.rb index bcab7672..b9449aab 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/package_resync.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/package_resync.rb @@ -81,6 +81,9 @@ class PackageResync attr_accessor :is_hidden + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -187,6 +190,9 @@ class PackageResync attr_accessor :status_url + # Absolute store path for the package, including store hash and name. + attr_accessor :store_path + attr_accessor :subtype # A one-liner synopsis of this package. @@ -204,6 +210,9 @@ class PackageResync attr_accessor :tags_immutable + # 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. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -218,6 +227,8 @@ class PackageResync attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -275,6 +286,7 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', + :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -319,6 +331,7 @@ def self.attribute_map :'status_str' => :'status_str', :'status_updated_at' => :'status_updated_at', :'status_url' => :'status_url', + :'store_path' => :'store_path', :'subtype' => :'subtype', :'summary' => :'summary', :'sync_finished_at' => :'sync_finished_at', @@ -326,12 +339,14 @@ def self.attribute_map :'tags' => :'tags', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', + :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -369,6 +384,7 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', + :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -413,6 +429,7 @@ def self.swagger_types :'status_str' => :'String', :'status_updated_at' => :'DateTime', :'status_url' => :'String', + :'store_path' => :'String', :'subtype' => :'String', :'summary' => :'String', :'sync_finished_at' => :'DateTime', @@ -420,12 +437,14 @@ def self.swagger_types :'tags' => :'Tags', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -564,6 +583,10 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -742,6 +765,10 @@ def initialize(attributes = {}) self.status_url = attributes[:'status_url'] end + if attributes.has_key?(:'store_path') + self.store_path = attributes[:'store_path'] + end + if attributes.has_key?(:'subtype') self.subtype = attributes[:'subtype'] end @@ -770,6 +797,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -794,6 +827,10 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end + if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -859,6 +896,7 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && + is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -903,6 +941,7 @@ def ==(o) status_str == o.status_str && status_updated_at == o.status_updated_at && status_url == o.status_url && + store_path == o.store_path && subtype == o.subtype && summary == o.summary && sync_finished_at == o.sync_finished_at && @@ -910,12 +949,14 @@ def ==(o) tags == o.tags && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -928,7 +969,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [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, filepath, 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, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash + [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, filepath, 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, tags_automatic, tags_immutable, tags_static, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_counts, vulnerability_scan_results_url].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/package_tag.rb b/bindings/ruby/src/lib/cloudsmith-api/models/package_tag.rb index f74defa9..0f518639 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/package_tag.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/package_tag.rb @@ -84,6 +84,9 @@ class PackageTag # If true, created tags will be immutable. An immutable flag is a tag that cannot be removed from a package. attr_accessor :is_immutable + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -190,6 +193,9 @@ class PackageTag attr_accessor :status_url + # Absolute store path for the package, including store hash and name. + attr_accessor :store_path + attr_accessor :subtype # A one-liner synopsis of this package. @@ -205,6 +211,9 @@ class PackageTag attr_accessor :tags_immutable + # 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. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -219,6 +228,8 @@ class PackageTag attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -277,6 +288,7 @@ def self.attribute_map :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', :'is_immutable' => :'is_immutable', + :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -321,18 +333,21 @@ def self.attribute_map :'status_str' => :'status_str', :'status_updated_at' => :'status_updated_at', :'status_url' => :'status_url', + :'store_path' => :'store_path', :'subtype' => :'subtype', :'summary' => :'summary', :'sync_finished_at' => :'sync_finished_at', :'sync_progress' => :'sync_progress', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', + :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -371,6 +386,7 @@ def self.swagger_types :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', :'is_immutable' => :'BOOLEAN', + :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -415,18 +431,21 @@ def self.swagger_types :'status_str' => :'String', :'status_updated_at' => :'DateTime', :'status_url' => :'String', + :'store_path' => :'String', :'subtype' => :'String', :'summary' => :'String', :'sync_finished_at' => :'DateTime', :'sync_progress' => :'Integer', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -571,6 +590,10 @@ def initialize(attributes = {}) self.is_immutable = false end + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -749,6 +772,10 @@ def initialize(attributes = {}) self.status_url = attributes[:'status_url'] end + if attributes.has_key?(:'store_path') + self.store_path = attributes[:'store_path'] + end + if attributes.has_key?(:'subtype') self.subtype = attributes[:'subtype'] end @@ -773,6 +800,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -797,6 +830,10 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end + if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -863,6 +900,7 @@ def ==(o) is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && is_immutable == o.is_immutable && + is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -907,18 +945,21 @@ def ==(o) status_str == o.status_str && status_updated_at == o.status_updated_at && status_url == o.status_url && + store_path == o.store_path && subtype == o.subtype && summary == o.summary && sync_finished_at == o.sync_finished_at && sync_progress == o.sync_progress && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -931,7 +972,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [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, filepath, files, format, format_url, freeable_storage, fully_qualified_name, identifier_perm, identifiers, indexed, is_cancellable, is_copyable, is_deleteable, is_downloadable, is_hidden, is_immutable, 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 + [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, filepath, files, format, format_url, freeable_storage, fully_qualified_name, identifier_perm, identifiers, indexed, is_cancellable, is_copyable, is_deleteable, is_downloadable, is_hidden, is_immutable, 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 end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/package_tag_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/package_tag_request.rb index a561a14b..e3187586 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/package_tag_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/package_tag_request.rb @@ -19,9 +19,14 @@ class PackageTagRequest # If true, created tags will be immutable. An immutable flag is a tag that cannot be removed from a package. attr_accessor :is_immutable + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + # A list of tags to apply the action to. Not required for clears. attr_accessor :tags + attr_accessor :vulnerability_counts + class EnumAttributeValidator attr_reader :datatype attr_reader :allowable_values @@ -49,7 +54,9 @@ def self.attribute_map { :'action' => :'action', :'is_immutable' => :'is_immutable', - :'tags' => :'tags' + :'is_malware_detected' => :'is_malware_detected', + :'tags' => :'tags', + :'vulnerability_counts' => :'vulnerability_counts' } end @@ -58,7 +65,9 @@ def self.swagger_types { :'action' => :'String', :'is_immutable' => :'BOOLEAN', - :'tags' => :'Array' + :'is_malware_detected' => :'BOOLEAN', + :'tags' => :'Array', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -82,11 +91,19 @@ def initialize(attributes = {}) self.is_immutable = false end + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'tags') if (value = attributes[:'tags']).is_a?(Array) self.tags = value end end + + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -121,7 +138,9 @@ def ==(o) self.class == o.class && action == o.action && is_immutable == o.is_immutable && - tags == o.tags + is_malware_detected == o.is_malware_detected && + tags == o.tags && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -133,7 +152,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [action, is_immutable, tags].hash + [action, is_immutable, is_malware_detected, tags, vulnerability_counts].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/package_vulnerability.rb b/bindings/ruby/src/lib/cloudsmith-api/models/package_vulnerability.rb index 6151ebde..a6ed93e6 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/package_vulnerability.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/package_vulnerability.rb @@ -16,6 +16,9 @@ module CloudsmithApi class PackageVulnerability attr_accessor :identifier + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + # The name of this package. attr_accessor :name @@ -24,13 +27,17 @@ class PackageVulnerability # The raw version for this package. attr_accessor :version + attr_accessor :vulnerability_counts + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'identifier' => :'identifier', + :'is_malware_detected' => :'is_malware_detected', :'name' => :'name', :'url' => :'url', - :'version' => :'version' + :'version' => :'version', + :'vulnerability_counts' => :'vulnerability_counts' } end @@ -38,9 +45,11 @@ def self.attribute_map def self.swagger_types { :'identifier' => :'String', + :'is_malware_detected' => :'BOOLEAN', :'name' => :'String', :'url' => :'String', - :'version' => :'String' + :'version' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -56,6 +65,10 @@ def initialize(attributes = {}) self.identifier = attributes[:'identifier'] end + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'name') self.name = attributes[:'name'] end @@ -67,6 +80,10 @@ def initialize(attributes = {}) if attributes.has_key?(:'version') self.version = attributes[:'version'] end + + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -93,9 +110,11 @@ def ==(o) return true if self.equal?(o) self.class == o.class && identifier == o.identifier && + is_malware_detected == o.is_malware_detected && name == o.name && url == o.url && - version == o.version + version == o.version && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -107,7 +126,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [identifier, name, url, version].hash + [identifier, is_malware_detected, name, url, version, vulnerability_counts].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/python_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/python_package_upload.rb index 5d2a80b8..75e5221d 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/python_package_upload.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/python_package_upload.rb @@ -78,6 +78,9 @@ class PythonPackageUpload attr_accessor :is_hidden + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -184,6 +187,9 @@ class PythonPackageUpload attr_accessor :status_url + # Absolute store path for the package, including store hash and name. + attr_accessor :store_path + attr_accessor :subtype # A one-liner synopsis of this package. @@ -199,6 +205,9 @@ class PythonPackageUpload attr_accessor :tags_immutable + # 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. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -213,6 +222,8 @@ class PythonPackageUpload attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -269,6 +280,7 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', + :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -313,18 +325,21 @@ def self.attribute_map :'status_str' => :'status_str', :'status_updated_at' => :'status_updated_at', :'status_url' => :'status_url', + :'store_path' => :'store_path', :'subtype' => :'subtype', :'summary' => :'summary', :'sync_finished_at' => :'sync_finished_at', :'sync_progress' => :'sync_progress', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', + :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -361,6 +376,7 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', + :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -405,18 +421,21 @@ def self.swagger_types :'status_str' => :'String', :'status_updated_at' => :'DateTime', :'status_url' => :'String', + :'store_path' => :'String', :'subtype' => :'String', :'summary' => :'String', :'sync_finished_at' => :'DateTime', :'sync_progress' => :'Integer', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -551,6 +570,10 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -729,6 +752,10 @@ def initialize(attributes = {}) self.status_url = attributes[:'status_url'] end + if attributes.has_key?(:'store_path') + self.store_path = attributes[:'store_path'] + end + if attributes.has_key?(:'subtype') self.subtype = attributes[:'subtype'] end @@ -753,6 +780,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -777,6 +810,10 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end + if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -841,6 +878,7 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && + is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -885,18 +923,21 @@ def ==(o) status_str == o.status_str && status_updated_at == o.status_updated_at && status_url == o.status_url && + store_path == o.store_path && subtype == o.subtype && summary == o.summary && sync_finished_at == o.sync_finished_at && sync_progress == o.sync_progress && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -909,7 +950,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [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 + [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 end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/python_package_upload_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/python_package_upload_request.rb index dc1bcf91..36cd9561 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/python_package_upload_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/python_package_upload_request.rb @@ -14,6 +14,9 @@ module CloudsmithApi class PythonPackageUploadRequest + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + # The primary file for the package. attr_accessor :package_file @@ -23,21 +26,27 @@ class PythonPackageUploadRequest # A comma-separated values list of tags to add to the package. attr_accessor :tags + attr_accessor :vulnerability_counts + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { + :'is_malware_detected' => :'is_malware_detected', :'package_file' => :'package_file', :'republish' => :'republish', - :'tags' => :'tags' + :'tags' => :'tags', + :'vulnerability_counts' => :'vulnerability_counts' } end # Attribute type mapping. def self.swagger_types { + :'is_malware_detected' => :'BOOLEAN', :'package_file' => :'String', :'republish' => :'BOOLEAN', - :'tags' => :'String' + :'tags' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -49,6 +58,10 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] end @@ -60,6 +73,10 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end + + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -85,9 +102,11 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && + is_malware_detected == o.is_malware_detected && package_file == o.package_file && republish == o.republish && - tags == o.tags + tags == o.tags && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -99,7 +118,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [package_file, republish, tags].hash + [is_malware_detected, package_file, republish, tags, vulnerability_counts].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/raw_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/raw_package_upload.rb index e4d8ee77..39107546 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/raw_package_upload.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/raw_package_upload.rb @@ -78,6 +78,9 @@ class RawPackageUpload attr_accessor :is_hidden + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -184,6 +187,9 @@ class RawPackageUpload attr_accessor :status_url + # Absolute store path for the package, including store hash and name. + attr_accessor :store_path + attr_accessor :subtype # A one-liner synopsis of this package. @@ -199,6 +205,9 @@ class RawPackageUpload attr_accessor :tags_immutable + # 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. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -213,6 +222,8 @@ class RawPackageUpload attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -269,6 +280,7 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', + :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -313,18 +325,21 @@ def self.attribute_map :'status_str' => :'status_str', :'status_updated_at' => :'status_updated_at', :'status_url' => :'status_url', + :'store_path' => :'store_path', :'subtype' => :'subtype', :'summary' => :'summary', :'sync_finished_at' => :'sync_finished_at', :'sync_progress' => :'sync_progress', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', + :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -361,6 +376,7 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', + :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -405,18 +421,21 @@ def self.swagger_types :'status_str' => :'String', :'status_updated_at' => :'DateTime', :'status_url' => :'String', + :'store_path' => :'String', :'subtype' => :'String', :'summary' => :'String', :'sync_finished_at' => :'DateTime', :'sync_progress' => :'Integer', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -551,6 +570,10 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -729,6 +752,10 @@ def initialize(attributes = {}) self.status_url = attributes[:'status_url'] end + if attributes.has_key?(:'store_path') + self.store_path = attributes[:'store_path'] + end + if attributes.has_key?(:'subtype') self.subtype = attributes[:'subtype'] end @@ -753,6 +780,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -777,6 +810,10 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end + if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -841,6 +878,7 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && + is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -885,18 +923,21 @@ def ==(o) status_str == o.status_str && status_updated_at == o.status_updated_at && status_url == o.status_url && + store_path == o.store_path && subtype == o.subtype && summary == o.summary && sync_finished_at == o.sync_finished_at && sync_progress == o.sync_progress && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -909,7 +950,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [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 + [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 end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/raw_package_upload_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/raw_package_upload_request.rb index d3031305..bc7aa494 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/raw_package_upload_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/raw_package_upload_request.rb @@ -20,6 +20,9 @@ class RawPackageUploadRequest # A textual description of this package. attr_accessor :description + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + # The name of this package. attr_accessor :name @@ -38,17 +41,21 @@ class RawPackageUploadRequest # The raw version for this package. attr_accessor :version + attr_accessor :vulnerability_counts + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'content_type' => :'content_type', :'description' => :'description', + :'is_malware_detected' => :'is_malware_detected', :'name' => :'name', :'package_file' => :'package_file', :'republish' => :'republish', :'summary' => :'summary', :'tags' => :'tags', - :'version' => :'version' + :'version' => :'version', + :'vulnerability_counts' => :'vulnerability_counts' } end @@ -57,12 +64,14 @@ def self.swagger_types { :'content_type' => :'String', :'description' => :'String', + :'is_malware_detected' => :'BOOLEAN', :'name' => :'String', :'package_file' => :'String', :'republish' => :'BOOLEAN', :'summary' => :'String', :'tags' => :'String', - :'version' => :'String' + :'version' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -82,6 +91,10 @@ def initialize(attributes = {}) self.description = attributes[:'description'] end + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'name') self.name = attributes[:'name'] end @@ -105,6 +118,10 @@ def initialize(attributes = {}) if attributes.has_key?(:'version') self.version = attributes[:'version'] end + + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -132,12 +149,14 @@ def ==(o) self.class == o.class && content_type == o.content_type && description == o.description && + is_malware_detected == o.is_malware_detected && name == o.name && package_file == o.package_file && republish == o.republish && summary == o.summary && tags == o.tags && - version == o.version + version == o.version && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -149,7 +168,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [content_type, description, name, package_file, republish, summary, tags, version].hash + [content_type, description, is_malware_detected, name, package_file, republish, summary, tags, version, vulnerability_counts].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/recycle_bin_package.rb b/bindings/ruby/src/lib/cloudsmith-api/models/recycle_bin_package.rb index 7e27293d..9823f232 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/recycle_bin_package.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/recycle_bin_package.rb @@ -33,6 +33,9 @@ class RecycleBinPackage attr_accessor :is_deleteable + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + attr_accessor :is_quarantined attr_accessor :is_restorable @@ -73,6 +76,8 @@ class RecycleBinPackage # The raw version for this package. attr_accessor :version + attr_accessor :vulnerability_counts + class EnumAttributeValidator attr_reader :datatype attr_reader :allowable_values @@ -106,6 +111,7 @@ def self.attribute_map :'identifiers' => :'identifiers', :'invoked_retention_rule' => :'invoked_retention_rule', :'is_deleteable' => :'is_deleteable', + :'is_malware_detected' => :'is_malware_detected', :'is_quarantined' => :'is_quarantined', :'is_restorable' => :'is_restorable', :'name' => :'name', @@ -121,7 +127,8 @@ def self.attribute_map :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', - :'version' => :'version' + :'version' => :'version', + :'vulnerability_counts' => :'vulnerability_counts' } end @@ -136,6 +143,7 @@ def self.swagger_types :'identifiers' => :'Hash', :'invoked_retention_rule' => :'Hash', :'is_deleteable' => :'BOOLEAN', + :'is_malware_detected' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', :'is_restorable' => :'BOOLEAN', :'name' => :'String', @@ -151,7 +159,8 @@ def self.swagger_types :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', - :'version' => :'String' + :'version' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -199,6 +208,10 @@ def initialize(attributes = {}) self.is_deleteable = attributes[:'is_deleteable'] end + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'is_quarantined') self.is_quarantined = attributes[:'is_quarantined'] end @@ -264,6 +277,10 @@ def initialize(attributes = {}) if attributes.has_key?(:'version') self.version = attributes[:'version'] end + + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -304,6 +321,7 @@ def ==(o) identifiers == o.identifiers && invoked_retention_rule == o.invoked_retention_rule && is_deleteable == o.is_deleteable && + is_malware_detected == o.is_malware_detected && is_quarantined == o.is_quarantined && is_restorable == o.is_restorable && name == o.name && @@ -319,7 +337,8 @@ def ==(o) type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && - version == o.version + version == o.version && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -331,7 +350,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [action_by, downloads, filename, format, fully_qualified_name, identifiers, invoked_retention_rule, is_deleteable, is_quarantined, is_restorable, name, policy_violated, repository, security_scan_completed_at, security_scan_status, size, slug_perm, status, status_updated_at, tags, type_display, uploaded_at, uploader, version].hash + [action_by, downloads, filename, format, fully_qualified_name, identifiers, invoked_retention_rule, is_deleteable, is_malware_detected, is_quarantined, is_restorable, name, policy_violated, repository, security_scan_completed_at, security_scan_status, size, slug_perm, status, status_updated_at, tags, type_display, uploaded_at, uploader, version, vulnerability_counts].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/rpm_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/rpm_package_upload.rb index c63d9cee..1a2a66fe 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/rpm_package_upload.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/rpm_package_upload.rb @@ -78,6 +78,9 @@ class RpmPackageUpload attr_accessor :is_hidden + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -184,6 +187,9 @@ class RpmPackageUpload attr_accessor :status_url + # Absolute store path for the package, including store hash and name. + attr_accessor :store_path + attr_accessor :subtype # A one-liner synopsis of this package. @@ -199,6 +205,9 @@ class RpmPackageUpload attr_accessor :tags_immutable + # 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. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -213,6 +222,8 @@ class RpmPackageUpload attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -269,6 +280,7 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', + :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -313,18 +325,21 @@ def self.attribute_map :'status_str' => :'status_str', :'status_updated_at' => :'status_updated_at', :'status_url' => :'status_url', + :'store_path' => :'store_path', :'subtype' => :'subtype', :'summary' => :'summary', :'sync_finished_at' => :'sync_finished_at', :'sync_progress' => :'sync_progress', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', + :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -361,6 +376,7 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', + :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -405,18 +421,21 @@ def self.swagger_types :'status_str' => :'String', :'status_updated_at' => :'DateTime', :'status_url' => :'String', + :'store_path' => :'String', :'subtype' => :'String', :'summary' => :'String', :'sync_finished_at' => :'DateTime', :'sync_progress' => :'Integer', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -551,6 +570,10 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -729,6 +752,10 @@ def initialize(attributes = {}) self.status_url = attributes[:'status_url'] end + if attributes.has_key?(:'store_path') + self.store_path = attributes[:'store_path'] + end + if attributes.has_key?(:'subtype') self.subtype = attributes[:'subtype'] end @@ -753,6 +780,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -777,6 +810,10 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end + if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -841,6 +878,7 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && + is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -885,18 +923,21 @@ def ==(o) status_str == o.status_str && status_updated_at == o.status_updated_at && status_url == o.status_url && + store_path == o.store_path && subtype == o.subtype && summary == o.summary && sync_finished_at == o.sync_finished_at && sync_progress == o.sync_progress && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -909,7 +950,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [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 + [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 end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/rpm_package_upload_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/rpm_package_upload_request.rb index eb3f6961..8681cc1a 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/rpm_package_upload_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/rpm_package_upload_request.rb @@ -17,6 +17,9 @@ class RpmPackageUploadRequest # The distribution to store the package for. attr_accessor :distribution + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + # The primary file for the package. attr_accessor :package_file @@ -26,13 +29,17 @@ class RpmPackageUploadRequest # A comma-separated values list of tags to add to the package. attr_accessor :tags + attr_accessor :vulnerability_counts + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'distribution' => :'distribution', + :'is_malware_detected' => :'is_malware_detected', :'package_file' => :'package_file', :'republish' => :'republish', - :'tags' => :'tags' + :'tags' => :'tags', + :'vulnerability_counts' => :'vulnerability_counts' } end @@ -40,9 +47,11 @@ def self.attribute_map def self.swagger_types { :'distribution' => :'String', + :'is_malware_detected' => :'BOOLEAN', :'package_file' => :'String', :'republish' => :'BOOLEAN', - :'tags' => :'String' + :'tags' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -58,6 +67,10 @@ def initialize(attributes = {}) self.distribution = attributes[:'distribution'] end + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] end @@ -69,6 +82,10 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end + + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -100,9 +117,11 @@ def ==(o) return true if self.equal?(o) self.class == o.class && distribution == o.distribution && + is_malware_detected == o.is_malware_detected && package_file == o.package_file && republish == o.republish && - tags == o.tags + tags == o.tags && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -114,7 +133,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [distribution, package_file, republish, tags].hash + [distribution, is_malware_detected, package_file, republish, tags, vulnerability_counts].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/ruby_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/ruby_package_upload.rb index e90383ea..85bad6ff 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/ruby_package_upload.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/ruby_package_upload.rb @@ -78,6 +78,9 @@ class RubyPackageUpload attr_accessor :is_hidden + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -184,6 +187,9 @@ class RubyPackageUpload attr_accessor :status_url + # Absolute store path for the package, including store hash and name. + attr_accessor :store_path + attr_accessor :subtype # A one-liner synopsis of this package. @@ -199,6 +205,9 @@ class RubyPackageUpload attr_accessor :tags_immutable + # 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. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -213,6 +222,8 @@ class RubyPackageUpload attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -269,6 +280,7 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', + :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -313,18 +325,21 @@ def self.attribute_map :'status_str' => :'status_str', :'status_updated_at' => :'status_updated_at', :'status_url' => :'status_url', + :'store_path' => :'store_path', :'subtype' => :'subtype', :'summary' => :'summary', :'sync_finished_at' => :'sync_finished_at', :'sync_progress' => :'sync_progress', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', + :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -361,6 +376,7 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', + :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -405,18 +421,21 @@ def self.swagger_types :'status_str' => :'String', :'status_updated_at' => :'DateTime', :'status_url' => :'String', + :'store_path' => :'String', :'subtype' => :'String', :'summary' => :'String', :'sync_finished_at' => :'DateTime', :'sync_progress' => :'Integer', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -551,6 +570,10 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -729,6 +752,10 @@ def initialize(attributes = {}) self.status_url = attributes[:'status_url'] end + if attributes.has_key?(:'store_path') + self.store_path = attributes[:'store_path'] + end + if attributes.has_key?(:'subtype') self.subtype = attributes[:'subtype'] end @@ -753,6 +780,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -777,6 +810,10 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end + if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -841,6 +878,7 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && + is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -885,18 +923,21 @@ def ==(o) status_str == o.status_str && status_updated_at == o.status_updated_at && status_url == o.status_url && + store_path == o.store_path && subtype == o.subtype && summary == o.summary && sync_finished_at == o.sync_finished_at && sync_progress == o.sync_progress && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -909,7 +950,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [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 + [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 end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/ruby_package_upload_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/ruby_package_upload_request.rb index e178976d..58728218 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/ruby_package_upload_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/ruby_package_upload_request.rb @@ -14,6 +14,9 @@ module CloudsmithApi class RubyPackageUploadRequest + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + # The primary file for the package. attr_accessor :package_file @@ -23,21 +26,27 @@ class RubyPackageUploadRequest # A comma-separated values list of tags to add to the package. attr_accessor :tags + attr_accessor :vulnerability_counts + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { + :'is_malware_detected' => :'is_malware_detected', :'package_file' => :'package_file', :'republish' => :'republish', - :'tags' => :'tags' + :'tags' => :'tags', + :'vulnerability_counts' => :'vulnerability_counts' } end # Attribute type mapping. def self.swagger_types { + :'is_malware_detected' => :'BOOLEAN', :'package_file' => :'String', :'republish' => :'BOOLEAN', - :'tags' => :'String' + :'tags' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -49,6 +58,10 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] end @@ -60,6 +73,10 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end + + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -85,9 +102,11 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && + is_malware_detected == o.is_malware_detected && package_file == o.package_file && republish == o.republish && - tags == o.tags + tags == o.tags && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -99,7 +118,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [package_file, republish, tags].hash + [is_malware_detected, package_file, republish, tags, vulnerability_counts].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/swift_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/swift_package_upload.rb index 78f9883b..677d3371 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/swift_package_upload.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/swift_package_upload.rb @@ -84,6 +84,9 @@ class SwiftPackageUpload attr_accessor :is_hidden + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -200,6 +203,9 @@ class SwiftPackageUpload attr_accessor :status_url + # Absolute store path for the package, including store hash and name. + attr_accessor :store_path + attr_accessor :subtype # A one-liner synopsis of this package. @@ -215,6 +221,9 @@ class SwiftPackageUpload attr_accessor :tags_immutable + # 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. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -229,6 +238,8 @@ class SwiftPackageUpload attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -287,6 +298,7 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', + :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -334,18 +346,21 @@ def self.attribute_map :'status_str' => :'status_str', :'status_updated_at' => :'status_updated_at', :'status_url' => :'status_url', + :'store_path' => :'store_path', :'subtype' => :'subtype', :'summary' => :'summary', :'sync_finished_at' => :'sync_finished_at', :'sync_progress' => :'sync_progress', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', + :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -384,6 +399,7 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', + :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -431,18 +447,21 @@ def self.swagger_types :'status_str' => :'String', :'status_updated_at' => :'DateTime', :'status_url' => :'String', + :'store_path' => :'String', :'subtype' => :'String', :'summary' => :'String', :'sync_finished_at' => :'DateTime', :'sync_progress' => :'Integer', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -585,6 +604,10 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -775,6 +798,10 @@ def initialize(attributes = {}) self.status_url = attributes[:'status_url'] end + if attributes.has_key?(:'store_path') + self.store_path = attributes[:'store_path'] + end + if attributes.has_key?(:'subtype') self.subtype = attributes[:'subtype'] end @@ -799,6 +826,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -823,6 +856,10 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end + if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -904,6 +941,7 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && + is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -951,18 +989,21 @@ def ==(o) status_str == o.status_str && status_updated_at == o.status_updated_at && status_url == o.status_url && + store_path == o.store_path && subtype == o.subtype && summary == o.summary && sync_finished_at == o.sync_finished_at && sync_progress == o.sync_progress && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -975,7 +1016,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [architectures, author_name, author_org, 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, license_url, name, namespace, namespace_url, num_files, origin_repository, origin_repository_url, osi_approved, package_type, policy_violated, raw_license, readme_url, release, repository, repository_url, scope, 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 + [architectures, author_name, author_org, 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, license_url, name, namespace, namespace_url, num_files, origin_repository, origin_repository_url, osi_approved, package_type, policy_violated, raw_license, readme_url, release, repository, repository_url, scope, 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 end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/swift_package_upload_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/swift_package_upload_request.rb index efe5d770..6a262e96 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/swift_package_upload_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/swift_package_upload_request.rb @@ -20,6 +20,9 @@ class SwiftPackageUploadRequest # The organization of the author. attr_accessor :author_org + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + # The license URL of this package. attr_accessor :license_url @@ -47,11 +50,14 @@ class SwiftPackageUploadRequest # The raw version for this package. attr_accessor :version + attr_accessor :vulnerability_counts + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'author_name' => :'author_name', :'author_org' => :'author_org', + :'is_malware_detected' => :'is_malware_detected', :'license_url' => :'license_url', :'name' => :'name', :'package_file' => :'package_file', @@ -60,7 +66,8 @@ def self.attribute_map :'republish' => :'republish', :'scope' => :'scope', :'tags' => :'tags', - :'version' => :'version' + :'version' => :'version', + :'vulnerability_counts' => :'vulnerability_counts' } end @@ -69,6 +76,7 @@ def self.swagger_types { :'author_name' => :'String', :'author_org' => :'String', + :'is_malware_detected' => :'BOOLEAN', :'license_url' => :'String', :'name' => :'String', :'package_file' => :'String', @@ -77,7 +85,8 @@ def self.swagger_types :'republish' => :'BOOLEAN', :'scope' => :'String', :'tags' => :'String', - :'version' => :'String' + :'version' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -97,6 +106,10 @@ def initialize(attributes = {}) self.author_org = attributes[:'author_org'] end + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'license_url') self.license_url = attributes[:'license_url'] end @@ -132,6 +145,10 @@ def initialize(attributes = {}) if attributes.has_key?(:'version') self.version = attributes[:'version'] end + + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -174,6 +191,7 @@ def ==(o) self.class == o.class && author_name == o.author_name && author_org == o.author_org && + is_malware_detected == o.is_malware_detected && license_url == o.license_url && name == o.name && package_file == o.package_file && @@ -182,7 +200,8 @@ def ==(o) republish == o.republish && scope == o.scope && tags == o.tags && - version == o.version + version == o.version && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -194,7 +213,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [author_name, author_org, license_url, name, package_file, readme_url, repository_url, republish, scope, tags, version].hash + [author_name, author_org, is_malware_detected, license_url, name, package_file, readme_url, repository_url, republish, scope, tags, version, vulnerability_counts].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/terraform_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/terraform_package_upload.rb index cc08ef8b..c7856fea 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/terraform_package_upload.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/terraform_package_upload.rb @@ -78,6 +78,9 @@ class TerraformPackageUpload attr_accessor :is_hidden + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -184,6 +187,9 @@ class TerraformPackageUpload attr_accessor :status_url + # Absolute store path for the package, including store hash and name. + attr_accessor :store_path + attr_accessor :subtype # A one-liner synopsis of this package. @@ -199,6 +205,9 @@ class TerraformPackageUpload attr_accessor :tags_immutable + # 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. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -213,6 +222,8 @@ class TerraformPackageUpload attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -269,6 +280,7 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', + :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -313,18 +325,21 @@ def self.attribute_map :'status_str' => :'status_str', :'status_updated_at' => :'status_updated_at', :'status_url' => :'status_url', + :'store_path' => :'store_path', :'subtype' => :'subtype', :'summary' => :'summary', :'sync_finished_at' => :'sync_finished_at', :'sync_progress' => :'sync_progress', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', + :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -361,6 +376,7 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', + :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -405,18 +421,21 @@ def self.swagger_types :'status_str' => :'String', :'status_updated_at' => :'DateTime', :'status_url' => :'String', + :'store_path' => :'String', :'subtype' => :'String', :'summary' => :'String', :'sync_finished_at' => :'DateTime', :'sync_progress' => :'Integer', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -551,6 +570,10 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -729,6 +752,10 @@ def initialize(attributes = {}) self.status_url = attributes[:'status_url'] end + if attributes.has_key?(:'store_path') + self.store_path = attributes[:'store_path'] + end + if attributes.has_key?(:'subtype') self.subtype = attributes[:'subtype'] end @@ -753,6 +780,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -777,6 +810,10 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end + if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -841,6 +878,7 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && + is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -885,18 +923,21 @@ def ==(o) status_str == o.status_str && status_updated_at == o.status_updated_at && status_url == o.status_url && + store_path == o.store_path && subtype == o.subtype && summary == o.summary && sync_finished_at == o.sync_finished_at && sync_progress == o.sync_progress && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -909,7 +950,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [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 + [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 end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/terraform_package_upload_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/terraform_package_upload_request.rb index ebb83bb7..780a52d9 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/terraform_package_upload_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/terraform_package_upload_request.rb @@ -14,6 +14,9 @@ module CloudsmithApi class TerraformPackageUploadRequest + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + # The primary file for the package. attr_accessor :package_file @@ -23,21 +26,27 @@ class TerraformPackageUploadRequest # A comma-separated values list of tags to add to the package. attr_accessor :tags + attr_accessor :vulnerability_counts + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { + :'is_malware_detected' => :'is_malware_detected', :'package_file' => :'package_file', :'republish' => :'republish', - :'tags' => :'tags' + :'tags' => :'tags', + :'vulnerability_counts' => :'vulnerability_counts' } end # Attribute type mapping. def self.swagger_types { + :'is_malware_detected' => :'BOOLEAN', :'package_file' => :'String', :'republish' => :'BOOLEAN', - :'tags' => :'String' + :'tags' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -49,6 +58,10 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] end @@ -60,6 +73,10 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end + + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -85,9 +102,11 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && + is_malware_detected == o.is_malware_detected && package_file == o.package_file && republish == o.republish && - tags == o.tags + tags == o.tags && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -99,7 +118,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [package_file, republish, tags].hash + [is_malware_detected, package_file, republish, tags, vulnerability_counts].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/vagrant_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/vagrant_package_upload.rb index 81a1a690..052d2052 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/vagrant_package_upload.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/vagrant_package_upload.rb @@ -78,6 +78,9 @@ class VagrantPackageUpload attr_accessor :is_hidden + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -187,6 +190,9 @@ class VagrantPackageUpload attr_accessor :status_url + # Absolute store path for the package, including store hash and name. + attr_accessor :store_path + attr_accessor :subtype # A one-liner synopsis of this package. @@ -202,6 +208,9 @@ class VagrantPackageUpload attr_accessor :tags_immutable + # 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. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -216,6 +225,8 @@ class VagrantPackageUpload attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -272,6 +283,7 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', + :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -317,18 +329,21 @@ def self.attribute_map :'status_str' => :'status_str', :'status_updated_at' => :'status_updated_at', :'status_url' => :'status_url', + :'store_path' => :'store_path', :'subtype' => :'subtype', :'summary' => :'summary', :'sync_finished_at' => :'sync_finished_at', :'sync_progress' => :'sync_progress', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', + :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -365,6 +380,7 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', + :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -410,18 +426,21 @@ def self.swagger_types :'status_str' => :'String', :'status_updated_at' => :'DateTime', :'status_url' => :'String', + :'store_path' => :'String', :'subtype' => :'String', :'summary' => :'String', :'sync_finished_at' => :'DateTime', :'sync_progress' => :'Integer', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -556,6 +575,10 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -738,6 +761,10 @@ def initialize(attributes = {}) self.status_url = attributes[:'status_url'] end + if attributes.has_key?(:'store_path') + self.store_path = attributes[:'store_path'] + end + if attributes.has_key?(:'subtype') self.subtype = attributes[:'subtype'] end @@ -762,6 +789,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -786,6 +819,10 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end + if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -865,6 +902,7 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && + is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -910,18 +948,21 @@ def ==(o) status_str == o.status_str && status_updated_at == o.status_updated_at && status_url == o.status_url && + store_path == o.store_path && subtype == o.subtype && summary == o.summary && sync_finished_at == o.sync_finished_at && sync_progress == o.sync_progress && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -934,7 +975,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [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, provider, 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 + [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, provider, 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 end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/vagrant_package_upload_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/vagrant_package_upload_request.rb index e9b8e5b5..ff52aa5d 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/vagrant_package_upload_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/vagrant_package_upload_request.rb @@ -14,6 +14,9 @@ module CloudsmithApi class VagrantPackageUploadRequest + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + # The name of this package. attr_accessor :name @@ -32,27 +35,33 @@ class VagrantPackageUploadRequest # The raw version for this package. attr_accessor :version + attr_accessor :vulnerability_counts + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { + :'is_malware_detected' => :'is_malware_detected', :'name' => :'name', :'package_file' => :'package_file', :'provider' => :'provider', :'republish' => :'republish', :'tags' => :'tags', - :'version' => :'version' + :'version' => :'version', + :'vulnerability_counts' => :'vulnerability_counts' } end # Attribute type mapping. def self.swagger_types { + :'is_malware_detected' => :'BOOLEAN', :'name' => :'String', :'package_file' => :'String', :'provider' => :'String', :'republish' => :'BOOLEAN', :'tags' => :'String', - :'version' => :'String' + :'version' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -64,6 +73,10 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'name') self.name = attributes[:'name'] end @@ -87,6 +100,10 @@ def initialize(attributes = {}) if attributes.has_key?(:'version') self.version = attributes[:'version'] end + + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -127,12 +144,14 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && + is_malware_detected == o.is_malware_detected && name == o.name && package_file == o.package_file && provider == o.provider && republish == o.republish && tags == o.tags && - version == o.version + version == o.version && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -144,7 +163,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [name, package_file, provider, republish, tags, version].hash + [is_malware_detected, name, package_file, provider, republish, tags, version, vulnerability_counts].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/vsx_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/vsx_package_upload.rb index 3177084d..0d05a747 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/vsx_package_upload.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/vsx_package_upload.rb @@ -78,6 +78,9 @@ class VsxPackageUpload attr_accessor :is_hidden + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -184,6 +187,9 @@ class VsxPackageUpload attr_accessor :status_url + # Absolute store path for the package, including store hash and name. + attr_accessor :store_path + attr_accessor :subtype # A one-liner synopsis of this package. @@ -199,6 +205,9 @@ class VsxPackageUpload attr_accessor :tags_immutable + # 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. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -213,6 +222,8 @@ class VsxPackageUpload attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -269,6 +280,7 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', + :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -313,18 +325,21 @@ def self.attribute_map :'status_str' => :'status_str', :'status_updated_at' => :'status_updated_at', :'status_url' => :'status_url', + :'store_path' => :'store_path', :'subtype' => :'subtype', :'summary' => :'summary', :'sync_finished_at' => :'sync_finished_at', :'sync_progress' => :'sync_progress', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', + :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -361,6 +376,7 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', + :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -405,18 +421,21 @@ def self.swagger_types :'status_str' => :'String', :'status_updated_at' => :'DateTime', :'status_url' => :'String', + :'store_path' => :'String', :'subtype' => :'String', :'summary' => :'String', :'sync_finished_at' => :'DateTime', :'sync_progress' => :'Integer', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -551,6 +570,10 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -729,6 +752,10 @@ def initialize(attributes = {}) self.status_url = attributes[:'status_url'] end + if attributes.has_key?(:'store_path') + self.store_path = attributes[:'store_path'] + end + if attributes.has_key?(:'subtype') self.subtype = attributes[:'subtype'] end @@ -753,6 +780,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -777,6 +810,10 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end + if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -841,6 +878,7 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && + is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -885,18 +923,21 @@ def ==(o) status_str == o.status_str && status_updated_at == o.status_updated_at && status_url == o.status_url && + store_path == o.store_path && subtype == o.subtype && summary == o.summary && sync_finished_at == o.sync_finished_at && sync_progress == o.sync_progress && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -909,7 +950,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [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 + [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 end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/vsx_package_upload_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/vsx_package_upload_request.rb index 09f7c9ce..2586804f 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/vsx_package_upload_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/vsx_package_upload_request.rb @@ -14,6 +14,9 @@ module CloudsmithApi class VsxPackageUploadRequest + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + # The primary file for the package. attr_accessor :package_file @@ -23,21 +26,27 @@ class VsxPackageUploadRequest # A comma-separated values list of tags to add to the package. attr_accessor :tags + attr_accessor :vulnerability_counts + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { + :'is_malware_detected' => :'is_malware_detected', :'package_file' => :'package_file', :'republish' => :'republish', - :'tags' => :'tags' + :'tags' => :'tags', + :'vulnerability_counts' => :'vulnerability_counts' } end # Attribute type mapping. def self.swagger_types { + :'is_malware_detected' => :'BOOLEAN', :'package_file' => :'String', :'republish' => :'BOOLEAN', - :'tags' => :'String' + :'tags' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -49,6 +58,10 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] end @@ -60,6 +73,10 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end + + if attributes.has_key?(:'vulnerability_counts') + self.vulnerability_counts = attributes[:'vulnerability_counts'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -85,9 +102,11 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && + is_malware_detected == o.is_malware_detected && package_file == o.package_file && republish == o.republish && - tags == o.tags + tags == o.tags && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -99,7 +118,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [package_file, republish, tags].hash + [is_malware_detected, package_file, republish, tags, vulnerability_counts].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/web_osv_severity_counts.rb b/bindings/ruby/src/lib/cloudsmith-api/models/web_osv_severity_counts.rb new file mode 100644 index 00000000..601f7e80 --- /dev/null +++ b/bindings/ruby/src/lib/cloudsmith-api/models/web_osv_severity_counts.rb @@ -0,0 +1,239 @@ +=begin +#Cloudsmith API (v1) + +#The API to the Cloudsmith Service + +OpenAPI spec version: v1 +Contact: support@cloudsmith.io +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.50 + +=end + +require 'date' + +module CloudsmithApi +# Per-severity OSV vulnerability counts for non-hidden matches. Requires Ultra plan. +class WebOSVSeverityCounts + attr_accessor :critical + + attr_accessor :high + + attr_accessor :low + + attr_accessor :malware + + attr_accessor :medium + + attr_accessor :total + + attr_accessor :unknown + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'critical' => :'critical', + :'high' => :'high', + :'low' => :'low', + :'malware' => :'malware', + :'medium' => :'medium', + :'total' => :'total', + :'unknown' => :'unknown' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'critical' => :'Integer', + :'high' => :'Integer', + :'low' => :'Integer', + :'malware' => :'Integer', + :'medium' => :'Integer', + :'total' => :'Integer', + :'unknown' => :'Integer' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + + if attributes.has_key?(:'critical') + self.critical = attributes[:'critical'] + end + + if attributes.has_key?(:'high') + self.high = attributes[:'high'] + end + + if attributes.has_key?(:'low') + self.low = attributes[:'low'] + end + + if attributes.has_key?(:'malware') + self.malware = attributes[:'malware'] + end + + if attributes.has_key?(:'medium') + self.medium = attributes[:'medium'] + end + + if attributes.has_key?(:'total') + self.total = attributes[:'total'] + end + + if attributes.has_key?(:'unknown') + self.unknown = attributes[:'unknown'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + critical == o.critical && + high == o.high && + low == o.low && + malware == o.malware && + medium == o.medium && + total == o.total && + unknown == o.unknown + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [critical, high, low, malware, medium, total, unknown].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = CloudsmithApi.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + +end +end diff --git a/bindings/ruby/src/lib/cloudsmith-api/version.rb b/bindings/ruby/src/lib/cloudsmith-api/version.rb index 4c545dd2..cf4554ae 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/version.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/version.rb @@ -11,5 +11,5 @@ =end module CloudsmithApi - VERSION = '2.0.29' + VERSION = '2.0.30' end diff --git a/bindings/ruby/src/spec/api/orgs_api_spec.rb b/bindings/ruby/src/spec/api/orgs_api_spec.rb index dbb443ee..ca0bcf74 100644 --- a/bindings/ruby/src/spec/api/orgs_api_spec.rb +++ b/bindings/ruby/src/spec/api/orgs_api_spec.rb @@ -606,6 +606,17 @@ end end + # unit tests for orgs_retrieve_usage_limits + # + # @param org + # @param [Hash] opts the optional parameters + # @return [InlineResponse200] + describe 'orgs_retrieve_usage_limits test' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + # unit tests for orgs_saml_authentication_partial_update # Update the SAML Authentication settings for this Organization. # Update the SAML Authentication settings for this Organization. @@ -901,6 +912,18 @@ end end + # unit tests for orgs_update_usage_limits + # + # @param org + # @param [Hash] opts the optional parameters + # @option opts [OrganizationUsageUpdateRequestPatch] :data + # @return [InlineResponse2001] + describe 'orgs_update_usage_limits test' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + # unit tests for orgs_vulnerability_policy_create # Create a package vulnerability policy. # Create a package vulnerability policy. diff --git a/bindings/ruby/src/spec/api/packages_api_spec.rb b/bindings/ruby/src/spec/api/packages_api_spec.rb index dd1e5e6d..f4f7701a 100644 --- a/bindings/ruby/src/spec/api/packages_api_spec.rb +++ b/bindings/ruby/src/spec/api/packages_api_spec.rb @@ -89,7 +89,7 @@ # @option opts [BOOLEAN] :include_connected_repositories If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. # @option opts [String] :query A search term for querying names, filenames, versions, distributions, architectures, formats, or statuses of packages. # @option opts [String] :sort A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name, count, num_downloads, size, last_push, backend_kind. - # @return [InlineResponse200] + # @return [InlineResponse2002] describe 'packages_groups_list test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -152,7 +152,7 @@ # @param identifier # @param [Hash] opts the optional parameters # @option opts [BOOLEAN] :include_connected_repositories If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. - # @return [Package] + # @return [PackageDetail] describe 'packages_read test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -484,6 +484,20 @@ end end + # unit tests for packages_upload_nix + # Create a new Nix package + # Create a new Nix package + # @param owner + # @param repo + # @param [Hash] opts the optional parameters + # @option opts [NixPackageUploadRequest] :data + # @return [NixPackageUpload] + describe 'packages_upload_nix test' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + # unit tests for packages_upload_npm # Create a new npm package # Create a new npm package @@ -890,6 +904,20 @@ end end + # unit tests for packages_validate_upload_nix + # Validate parameters for create Nix package + # Validate parameters for create Nix package + # @param owner + # @param repo + # @param [Hash] opts the optional parameters + # @option opts [NixPackageUploadRequest] :data + # @return [nil] + describe 'packages_validate_upload_nix test' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + # unit tests for packages_validate_upload_npm # Validate parameters for create npm package # Validate parameters for create npm package diff --git a/bindings/ruby/src/spec/api/repos_api_spec.rb b/bindings/ruby/src/spec/api/repos_api_spec.rb index 02ff9338..d7da4745 100644 --- a/bindings/ruby/src/spec/api/repos_api_spec.rb +++ b/bindings/ruby/src/spec/api/repos_api_spec.rb @@ -108,7 +108,7 @@ # @param [Hash] opts the optional parameters # @option opts [Integer] :page A page number within the paginated result set. # @option opts [Integer] :page_size Number of results to return per page. - # @return [InlineResponse2001] + # @return [InlineResponse2003] describe 'repos_connected_list test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -1745,6 +1745,93 @@ end end + # unit tests for repos_upstream_nix_create + # Create a Nix upstream config for this repository. + # Create a Nix upstream config for this repository. + # @param owner + # @param identifier + # @param [Hash] opts the optional parameters + # @option opts [NixUpstreamRequest] :data + # @return [NixUpstream] + describe 'repos_upstream_nix_create test' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + # unit tests for repos_upstream_nix_delete + # Delete a Nix upstream config for this repository. + # Delete a Nix upstream config for this repository. + # @param owner + # @param identifier + # @param slug_perm + # @param [Hash] opts the optional parameters + # @return [nil] + describe 'repos_upstream_nix_delete test' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + # unit tests for repos_upstream_nix_list + # List Nix upstream configs for this repository. + # List Nix upstream configs for this repository. + # @param owner + # @param identifier + # @param [Hash] opts the optional parameters + # @option opts [Integer] :page A page number within the paginated result set. + # @option opts [Integer] :page_size Number of results to return per page. + # @return [Array] + describe 'repos_upstream_nix_list test' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + # unit tests for repos_upstream_nix_partial_update + # Partially update a Nix upstream config for this repository. + # Partially update a Nix upstream config for this repository. + # @param owner + # @param identifier + # @param slug_perm + # @param [Hash] opts the optional parameters + # @option opts [NixUpstreamRequestPatch] :data + # @return [NixUpstream] + describe 'repos_upstream_nix_partial_update test' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + # unit tests for repos_upstream_nix_read + # Retrieve a Nix upstream config for this repository. + # Retrieve a Nix upstream config for this repository. + # @param owner + # @param identifier + # @param slug_perm + # @param [Hash] opts the optional parameters + # @return [NixUpstream] + describe 'repos_upstream_nix_read test' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + # unit tests for repos_upstream_nix_update + # Update a Nix upstream config for this repository. + # Update a Nix upstream config for this repository. + # @param owner + # @param identifier + # @param slug_perm + # @param [Hash] opts the optional parameters + # @option opts [NixUpstreamRequest] :data + # @return [NixUpstream] + describe 'repos_upstream_nix_update test' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + # unit tests for repos_upstream_npm_create # Create a npm upstream config for this repository. # Create a npm upstream config for this repository. diff --git a/bindings/ruby/src/spec/api/user_api_spec.rb b/bindings/ruby/src/spec/api/user_api_spec.rb index 5f01bfa6..b72aabde 100644 --- a/bindings/ruby/src/spec/api/user_api_spec.rb +++ b/bindings/ruby/src/spec/api/user_api_spec.rb @@ -72,7 +72,7 @@ # @param [Hash] opts the optional parameters # @option opts [Integer] :page A page number within the paginated result set. # @option opts [Integer] :page_size Number of results to return per page. - # @return [InlineResponse2002] + # @return [InlineResponse2004] describe 'user_tokens_list test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/alpine_package_upload_request_spec.rb b/bindings/ruby/src/spec/models/alpine_package_upload_request_spec.rb index 71ce1aca..a898c7dd 100644 --- a/bindings/ruby/src/spec/models/alpine_package_upload_request_spec.rb +++ b/bindings/ruby/src/spec/models/alpine_package_upload_request_spec.rb @@ -38,6 +38,12 @@ end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "package_file"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -56,4 +62,10 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/bindings/ruby/src/spec/models/alpine_package_upload_spec.rb b/bindings/ruby/src/spec/models/alpine_package_upload_spec.rb index 82a0c541..3b82dadc 100644 --- a/bindings/ruby/src/spec/models/alpine_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/alpine_package_upload_spec.rb @@ -206,6 +206,12 @@ end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "is_moveable"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -474,6 +480,12 @@ end end + describe 'test attribute "store_path"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "subtype"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -510,6 +522,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -546,6 +564,12 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/cargo_package_upload_request_spec.rb b/bindings/ruby/src/spec/models/cargo_package_upload_request_spec.rb index f1457b0b..ce493954 100644 --- a/bindings/ruby/src/spec/models/cargo_package_upload_request_spec.rb +++ b/bindings/ruby/src/spec/models/cargo_package_upload_request_spec.rb @@ -32,6 +32,12 @@ expect(@instance).to be_instance_of(CloudsmithApi::CargoPackageUploadRequest) end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "package_file"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -50,4 +56,10 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/bindings/ruby/src/spec/models/cargo_package_upload_spec.rb b/bindings/ruby/src/spec/models/cargo_package_upload_spec.rb index a7f0b004..2bad45f5 100644 --- a/bindings/ruby/src/spec/models/cargo_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/cargo_package_upload_spec.rb @@ -206,6 +206,12 @@ end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "is_moveable"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -474,6 +480,12 @@ end end + describe 'test attribute "store_path"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "subtype"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -510,6 +522,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -546,6 +564,12 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/cocoapods_package_upload_request_spec.rb b/bindings/ruby/src/spec/models/cocoapods_package_upload_request_spec.rb index d0575bed..a86c1572 100644 --- a/bindings/ruby/src/spec/models/cocoapods_package_upload_request_spec.rb +++ b/bindings/ruby/src/spec/models/cocoapods_package_upload_request_spec.rb @@ -32,6 +32,12 @@ expect(@instance).to be_instance_of(CloudsmithApi::CocoapodsPackageUploadRequest) end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "package_file"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -50,4 +56,10 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/bindings/ruby/src/spec/models/cocoapods_package_upload_spec.rb b/bindings/ruby/src/spec/models/cocoapods_package_upload_spec.rb index 83cd73b9..02c3ed76 100644 --- a/bindings/ruby/src/spec/models/cocoapods_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/cocoapods_package_upload_spec.rb @@ -206,6 +206,12 @@ end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "is_moveable"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -474,6 +480,12 @@ end end + describe 'test attribute "store_path"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "subtype"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -510,6 +522,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -546,6 +564,12 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/composer_package_upload_request_spec.rb b/bindings/ruby/src/spec/models/composer_package_upload_request_spec.rb index 1a47f072..ef6e8219 100644 --- a/bindings/ruby/src/spec/models/composer_package_upload_request_spec.rb +++ b/bindings/ruby/src/spec/models/composer_package_upload_request_spec.rb @@ -32,6 +32,12 @@ expect(@instance).to be_instance_of(CloudsmithApi::ComposerPackageUploadRequest) end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "package_file"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -56,4 +62,10 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/bindings/ruby/src/spec/models/composer_package_upload_spec.rb b/bindings/ruby/src/spec/models/composer_package_upload_spec.rb index 67b5acfa..116fe258 100644 --- a/bindings/ruby/src/spec/models/composer_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/composer_package_upload_spec.rb @@ -206,6 +206,12 @@ end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "is_moveable"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -474,6 +480,12 @@ end end + describe 'test attribute "store_path"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "subtype"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -510,6 +522,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -546,6 +564,12 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/conan_package_upload_request_spec.rb b/bindings/ruby/src/spec/models/conan_package_upload_request_spec.rb index 5589ff88..ecd9f727 100644 --- a/bindings/ruby/src/spec/models/conan_package_upload_request_spec.rb +++ b/bindings/ruby/src/spec/models/conan_package_upload_request_spec.rb @@ -50,6 +50,12 @@ end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "manifest_file"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -92,4 +98,10 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/bindings/ruby/src/spec/models/conan_package_upload_spec.rb b/bindings/ruby/src/spec/models/conan_package_upload_spec.rb index 778eb3de..b477bd3f 100644 --- a/bindings/ruby/src/spec/models/conan_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/conan_package_upload_spec.rb @@ -218,6 +218,12 @@ end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "is_moveable"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -486,6 +492,12 @@ end end + describe 'test attribute "store_path"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "subtype"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -522,6 +534,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -558,6 +576,12 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/conda_package_upload_request_spec.rb b/bindings/ruby/src/spec/models/conda_package_upload_request_spec.rb index acd13807..859a04ab 100644 --- a/bindings/ruby/src/spec/models/conda_package_upload_request_spec.rb +++ b/bindings/ruby/src/spec/models/conda_package_upload_request_spec.rb @@ -32,6 +32,12 @@ expect(@instance).to be_instance_of(CloudsmithApi::CondaPackageUploadRequest) end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "package_file"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -50,4 +56,10 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/bindings/ruby/src/spec/models/conda_package_upload_spec.rb b/bindings/ruby/src/spec/models/conda_package_upload_spec.rb index 1e605148..0feb2b0a 100644 --- a/bindings/ruby/src/spec/models/conda_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/conda_package_upload_spec.rb @@ -206,6 +206,12 @@ end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "is_moveable"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -474,6 +480,12 @@ end end + describe 'test attribute "store_path"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "subtype"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -510,6 +522,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -546,6 +564,12 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/cran_package_upload_request_spec.rb b/bindings/ruby/src/spec/models/cran_package_upload_request_spec.rb index fe20ae94..0d696dfa 100644 --- a/bindings/ruby/src/spec/models/cran_package_upload_request_spec.rb +++ b/bindings/ruby/src/spec/models/cran_package_upload_request_spec.rb @@ -38,6 +38,12 @@ end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "package_file"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -62,4 +68,10 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/bindings/ruby/src/spec/models/cran_package_upload_spec.rb b/bindings/ruby/src/spec/models/cran_package_upload_spec.rb index 7822f3bd..ec9189f6 100644 --- a/bindings/ruby/src/spec/models/cran_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/cran_package_upload_spec.rb @@ -206,6 +206,12 @@ end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "is_moveable"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -480,6 +486,12 @@ end end + describe 'test attribute "store_path"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "subtype"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -516,6 +528,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -552,6 +570,12 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/dart_package_upload_request_spec.rb b/bindings/ruby/src/spec/models/dart_package_upload_request_spec.rb index 3fbfaf8f..e927501a 100644 --- a/bindings/ruby/src/spec/models/dart_package_upload_request_spec.rb +++ b/bindings/ruby/src/spec/models/dart_package_upload_request_spec.rb @@ -32,6 +32,12 @@ expect(@instance).to be_instance_of(CloudsmithApi::DartPackageUploadRequest) end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "package_file"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -50,4 +56,10 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/bindings/ruby/src/spec/models/dart_package_upload_spec.rb b/bindings/ruby/src/spec/models/dart_package_upload_spec.rb index 94a90201..08643762 100644 --- a/bindings/ruby/src/spec/models/dart_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/dart_package_upload_spec.rb @@ -206,6 +206,12 @@ end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "is_moveable"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -474,6 +480,12 @@ end end + describe 'test attribute "store_path"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "subtype"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -510,6 +522,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -546,6 +564,12 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/deb_package_upload_request_spec.rb b/bindings/ruby/src/spec/models/deb_package_upload_request_spec.rb index ddfe8a2c..136a832d 100644 --- a/bindings/ruby/src/spec/models/deb_package_upload_request_spec.rb +++ b/bindings/ruby/src/spec/models/deb_package_upload_request_spec.rb @@ -50,6 +50,12 @@ end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "package_file"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -74,4 +80,10 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/bindings/ruby/src/spec/models/deb_package_upload_spec.rb b/bindings/ruby/src/spec/models/deb_package_upload_spec.rb index 63f100b6..c1d826c2 100644 --- a/bindings/ruby/src/spec/models/deb_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/deb_package_upload_spec.rb @@ -206,6 +206,12 @@ end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "is_moveable"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -474,6 +480,12 @@ end end + describe 'test attribute "store_path"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "subtype"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -510,6 +522,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -546,6 +564,12 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/docker_package_upload_request_spec.rb b/bindings/ruby/src/spec/models/docker_package_upload_request_spec.rb index b2d880e7..e7576500 100644 --- a/bindings/ruby/src/spec/models/docker_package_upload_request_spec.rb +++ b/bindings/ruby/src/spec/models/docker_package_upload_request_spec.rb @@ -32,6 +32,12 @@ expect(@instance).to be_instance_of(CloudsmithApi::DockerPackageUploadRequest) end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "package_file"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -50,4 +56,10 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/bindings/ruby/src/spec/models/docker_package_upload_spec.rb b/bindings/ruby/src/spec/models/docker_package_upload_spec.rb index 12ef45e1..fc801e84 100644 --- a/bindings/ruby/src/spec/models/docker_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/docker_package_upload_spec.rb @@ -206,6 +206,12 @@ end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "is_moveable"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -474,6 +480,12 @@ end end + describe 'test attribute "store_path"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "subtype"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -510,6 +522,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -546,6 +564,12 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/generic_package_upload_request_spec.rb b/bindings/ruby/src/spec/models/generic_package_upload_request_spec.rb index 774ab93d..2474b51d 100644 --- a/bindings/ruby/src/spec/models/generic_package_upload_request_spec.rb +++ b/bindings/ruby/src/spec/models/generic_package_upload_request_spec.rb @@ -38,6 +38,12 @@ end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "name"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -68,4 +74,10 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/bindings/ruby/src/spec/models/generic_package_upload_spec.rb b/bindings/ruby/src/spec/models/generic_package_upload_spec.rb index bc24e81e..2eac702a 100644 --- a/bindings/ruby/src/spec/models/generic_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/generic_package_upload_spec.rb @@ -206,6 +206,12 @@ end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "is_moveable"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -474,6 +480,12 @@ end end + describe 'test attribute "store_path"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "subtype"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -510,6 +522,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -546,6 +564,12 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/go_package_upload_request_spec.rb b/bindings/ruby/src/spec/models/go_package_upload_request_spec.rb index 3112ecbc..8e13db4e 100644 --- a/bindings/ruby/src/spec/models/go_package_upload_request_spec.rb +++ b/bindings/ruby/src/spec/models/go_package_upload_request_spec.rb @@ -32,6 +32,12 @@ expect(@instance).to be_instance_of(CloudsmithApi::GoPackageUploadRequest) end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "package_file"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -50,4 +56,10 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/bindings/ruby/src/spec/models/go_package_upload_spec.rb b/bindings/ruby/src/spec/models/go_package_upload_spec.rb index 63788b8a..2dd72561 100644 --- a/bindings/ruby/src/spec/models/go_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/go_package_upload_spec.rb @@ -206,6 +206,12 @@ end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "is_moveable"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -474,6 +480,12 @@ end end + describe 'test attribute "store_path"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "subtype"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -510,6 +522,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -546,6 +564,12 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/helm_package_upload_request_spec.rb b/bindings/ruby/src/spec/models/helm_package_upload_request_spec.rb index 0799d92b..9a033f3a 100644 --- a/bindings/ruby/src/spec/models/helm_package_upload_request_spec.rb +++ b/bindings/ruby/src/spec/models/helm_package_upload_request_spec.rb @@ -32,6 +32,12 @@ expect(@instance).to be_instance_of(CloudsmithApi::HelmPackageUploadRequest) end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "package_file"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -56,4 +62,10 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/bindings/ruby/src/spec/models/helm_package_upload_spec.rb b/bindings/ruby/src/spec/models/helm_package_upload_spec.rb index 55b4501a..56aeb33f 100644 --- a/bindings/ruby/src/spec/models/helm_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/helm_package_upload_spec.rb @@ -206,6 +206,12 @@ end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "is_moveable"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -474,6 +480,12 @@ end end + describe 'test attribute "store_path"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "subtype"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -510,6 +522,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -546,6 +564,12 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/hex_package_upload_request_spec.rb b/bindings/ruby/src/spec/models/hex_package_upload_request_spec.rb index 605e9a9f..e2ed984d 100644 --- a/bindings/ruby/src/spec/models/hex_package_upload_request_spec.rb +++ b/bindings/ruby/src/spec/models/hex_package_upload_request_spec.rb @@ -32,6 +32,12 @@ expect(@instance).to be_instance_of(CloudsmithApi::HexPackageUploadRequest) end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "package_file"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -50,4 +56,10 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/bindings/ruby/src/spec/models/hex_package_upload_spec.rb b/bindings/ruby/src/spec/models/hex_package_upload_spec.rb index 646d8678..694c5130 100644 --- a/bindings/ruby/src/spec/models/hex_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/hex_package_upload_spec.rb @@ -206,6 +206,12 @@ end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "is_moveable"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -474,6 +480,12 @@ end end + describe 'test attribute "store_path"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "subtype"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -510,6 +522,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -546,6 +564,12 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/huggingface_package_upload_request_spec.rb b/bindings/ruby/src/spec/models/huggingface_package_upload_request_spec.rb index 99c8209c..c7dc1298 100644 --- a/bindings/ruby/src/spec/models/huggingface_package_upload_request_spec.rb +++ b/bindings/ruby/src/spec/models/huggingface_package_upload_request_spec.rb @@ -32,6 +32,12 @@ expect(@instance).to be_instance_of(CloudsmithApi::HuggingfacePackageUploadRequest) end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "package_file"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -50,4 +56,10 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/bindings/ruby/src/spec/models/huggingface_package_upload_spec.rb b/bindings/ruby/src/spec/models/huggingface_package_upload_spec.rb index 514be615..0a8c92f4 100644 --- a/bindings/ruby/src/spec/models/huggingface_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/huggingface_package_upload_spec.rb @@ -206,6 +206,12 @@ end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "is_moveable"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -474,6 +480,12 @@ end end + describe 'test attribute "store_path"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "subtype"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -510,6 +522,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -546,6 +564,12 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/inline_response_200_1_spec.rb b/bindings/ruby/src/spec/models/inline_response_200_1_spec.rb index e31afb85..fc300ff0 100644 --- a/bindings/ruby/src/spec/models/inline_response_200_1_spec.rb +++ b/bindings/ruby/src/spec/models/inline_response_200_1_spec.rb @@ -32,7 +32,19 @@ expect(@instance).to be_instance_of(CloudsmithApi::InlineResponse2001) end end - describe 'test attribute "results"' do + describe 'test attribute "allow_open_source_overage"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "bandwidth_overage_limit"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "storage_overage_limit"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end diff --git a/bindings/ruby/src/spec/models/inline_response_200_3_spec.rb b/bindings/ruby/src/spec/models/inline_response_200_3_spec.rb new file mode 100644 index 00000000..0784a945 --- /dev/null +++ b/bindings/ruby/src/spec/models/inline_response_200_3_spec.rb @@ -0,0 +1,41 @@ +=begin +#Cloudsmith API (v1) + +#The API to the Cloudsmith Service + +OpenAPI spec version: v1 +Contact: support@cloudsmith.io +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.50 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for CloudsmithApi::InlineResponse2003 +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'InlineResponse2003' do + before do + # run before each test + @instance = CloudsmithApi::InlineResponse2003.new + end + + after do + # run after each test + end + + describe 'test an instance of InlineResponse2003' do + it 'should create an instance of InlineResponse2003' do + expect(@instance).to be_instance_of(CloudsmithApi::InlineResponse2003) + end + end + describe 'test attribute "results"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/bindings/ruby/src/spec/models/inline_response_200_4_spec.rb b/bindings/ruby/src/spec/models/inline_response_200_4_spec.rb new file mode 100644 index 00000000..c571d2d1 --- /dev/null +++ b/bindings/ruby/src/spec/models/inline_response_200_4_spec.rb @@ -0,0 +1,41 @@ +=begin +#Cloudsmith API (v1) + +#The API to the Cloudsmith Service + +OpenAPI spec version: v1 +Contact: support@cloudsmith.io +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.50 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for CloudsmithApi::InlineResponse2004 +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'InlineResponse2004' do + before do + # run before each test + @instance = CloudsmithApi::InlineResponse2004.new + end + + after do + # run after each test + end + + describe 'test an instance of InlineResponse2004' do + it 'should create an instance of InlineResponse2004' do + expect(@instance).to be_instance_of(CloudsmithApi::InlineResponse2004) + end + end + describe 'test attribute "results"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/bindings/ruby/src/spec/models/inline_response_200_spec.rb b/bindings/ruby/src/spec/models/inline_response_200_spec.rb index e419a8b0..b6c958cb 100644 --- a/bindings/ruby/src/spec/models/inline_response_200_spec.rb +++ b/bindings/ruby/src/spec/models/inline_response_200_spec.rb @@ -32,7 +32,31 @@ expect(@instance).to be_instance_of(CloudsmithApi::InlineResponse200) end end - describe 'test attribute "results"' do + describe 'test attribute "allow_open_source_overage"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "bandwidth_overage_limit"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "storage_overage_limit"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "bandwidth_maximum"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "storage_maximum"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end diff --git a/bindings/ruby/src/spec/models/luarocks_package_upload_request_spec.rb b/bindings/ruby/src/spec/models/luarocks_package_upload_request_spec.rb index 2883344f..0d461e36 100644 --- a/bindings/ruby/src/spec/models/luarocks_package_upload_request_spec.rb +++ b/bindings/ruby/src/spec/models/luarocks_package_upload_request_spec.rb @@ -32,6 +32,12 @@ expect(@instance).to be_instance_of(CloudsmithApi::LuarocksPackageUploadRequest) end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "package_file"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -50,4 +56,10 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/bindings/ruby/src/spec/models/luarocks_package_upload_spec.rb b/bindings/ruby/src/spec/models/luarocks_package_upload_spec.rb index 5f82df35..00ab3ac1 100644 --- a/bindings/ruby/src/spec/models/luarocks_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/luarocks_package_upload_spec.rb @@ -206,6 +206,12 @@ end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "is_moveable"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -474,6 +480,12 @@ end end + describe 'test attribute "store_path"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "subtype"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -510,6 +522,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -546,6 +564,12 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/maven_package_upload_request_spec.rb b/bindings/ruby/src/spec/models/maven_package_upload_request_spec.rb index 3832d141..29135f2b 100644 --- a/bindings/ruby/src/spec/models/maven_package_upload_request_spec.rb +++ b/bindings/ruby/src/spec/models/maven_package_upload_request_spec.rb @@ -50,6 +50,12 @@ end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "ivy_file"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -122,4 +128,10 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/bindings/ruby/src/spec/models/maven_package_upload_spec.rb b/bindings/ruby/src/spec/models/maven_package_upload_spec.rb index ac94db4f..231fc11e 100644 --- a/bindings/ruby/src/spec/models/maven_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/maven_package_upload_spec.rb @@ -218,6 +218,12 @@ end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "is_moveable"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -504,6 +510,12 @@ end end + describe 'test attribute "store_path"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "subtype"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -540,6 +552,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -576,6 +594,12 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/mcp_package_upload_request_spec.rb b/bindings/ruby/src/spec/models/mcp_package_upload_request_spec.rb index 19fd180d..66cb00fd 100644 --- a/bindings/ruby/src/spec/models/mcp_package_upload_request_spec.rb +++ b/bindings/ruby/src/spec/models/mcp_package_upload_request_spec.rb @@ -32,6 +32,12 @@ expect(@instance).to be_instance_of(CloudsmithApi::McpPackageUploadRequest) end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "package_file"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -56,4 +62,10 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/bindings/ruby/src/spec/models/mcp_package_upload_spec.rb b/bindings/ruby/src/spec/models/mcp_package_upload_spec.rb index e66d5382..1218a1e7 100644 --- a/bindings/ruby/src/spec/models/mcp_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/mcp_package_upload_spec.rb @@ -206,6 +206,12 @@ end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "is_moveable"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -474,6 +480,12 @@ end end + describe 'test attribute "store_path"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "subtype"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -510,6 +522,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -546,6 +564,12 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/nix_package_upload_request_spec.rb b/bindings/ruby/src/spec/models/nix_package_upload_request_spec.rb new file mode 100644 index 00000000..34a4c78d --- /dev/null +++ b/bindings/ruby/src/spec/models/nix_package_upload_request_spec.rb @@ -0,0 +1,77 @@ +=begin +#Cloudsmith API (v1) + +#The API to the Cloudsmith Service + +OpenAPI spec version: v1 +Contact: support@cloudsmith.io +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.50 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for CloudsmithApi::NixPackageUploadRequest +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'NixPackageUploadRequest' do + before do + # run before each test + @instance = CloudsmithApi::NixPackageUploadRequest.new + end + + after do + # run after each test + end + + describe 'test an instance of NixPackageUploadRequest' do + it 'should create an instance of NixPackageUploadRequest' do + expect(@instance).to be_instance_of(CloudsmithApi::NixPackageUploadRequest) + end + end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "narinfo"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "package_file"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "republish"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "tags"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "version"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/bindings/ruby/src/spec/models/nix_package_upload_spec.rb b/bindings/ruby/src/spec/models/nix_package_upload_spec.rb new file mode 100644 index 00000000..6bd46f01 --- /dev/null +++ b/bindings/ruby/src/spec/models/nix_package_upload_spec.rb @@ -0,0 +1,579 @@ +=begin +#Cloudsmith API (v1) + +#The API to the Cloudsmith Service + +OpenAPI spec version: v1 +Contact: support@cloudsmith.io +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.50 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for CloudsmithApi::NixPackageUpload +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'NixPackageUpload' do + before do + # run before each test + @instance = CloudsmithApi::NixPackageUpload.new + end + + after do + # run after each test + end + + describe 'test an instance of NixPackageUpload' do + it 'should create an instance of NixPackageUpload' do + expect(@instance).to be_instance_of(CloudsmithApi::NixPackageUpload) + end + end + describe 'test attribute "architectures"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "cdn_url"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "checksum_md5"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "checksum_sha1"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "checksum_sha256"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "checksum_sha512"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "dependencies_checksum_md5"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "dependencies_url"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "description"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "display_name"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "distro"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "distro_version"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "downloads"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "epoch"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "extension"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "filename"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "files"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "format"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "format_url"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "freeable_storage"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "fully_qualified_name"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "identifier_perm"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "identifiers"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "indexed"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "is_cancellable"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "is_copyable"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "is_deleteable"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "is_downloadable"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "is_hidden"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "is_moveable"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "is_quarantinable"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "is_quarantined"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "is_resyncable"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "is_security_scannable"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "is_sync_awaiting"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "is_sync_completed"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "is_sync_failed"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "is_sync_in_flight"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "is_sync_in_progress"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "license"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "name"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "namespace"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "namespace_url"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "num_files"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "origin_repository"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "origin_repository_url"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "osi_approved"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "package_type"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "policy_violated"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "raw_license"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "release"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "repository"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "repository_url"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "security_scan_completed_at"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "security_scan_started_at"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "security_scan_status"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Awaiting Security Scan", "Security Scanning in Progress", "Scan Detected Vulnerabilities", "Scan Detected No Vulnerabilities", "Security Scanning Disabled", "Security Scanning Failed", "Security Scanning Skipped", "Security Scanning Not Supported"]) + # validator.allowable_values.each do |value| + # expect { @instance.security_scan_status = value }.not_to raise_error + # end + end + end + + describe 'test attribute "security_scan_status_updated_at"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "self_html_url"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "self_url"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "self_webapp_url"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "signature_url"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "size"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "slug"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "slug_perm"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "spdx_license"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "stage"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "stage_str"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "stage_updated_at"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "status"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "status_reason"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "status_str"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "status_updated_at"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "status_url"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "store_path"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "subtype"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "summary"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "sync_finished_at"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "sync_progress"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "tags_automatic"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "tags_immutable"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "type_display"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "uploaded_at"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "uploader"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "uploader_url"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "version"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "version_orig"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "vulnerability_scan_results_url"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/bindings/ruby/src/spec/models/nix_upstream_request_patch_spec.rb b/bindings/ruby/src/spec/models/nix_upstream_request_patch_spec.rb new file mode 100644 index 00000000..587d36b1 --- /dev/null +++ b/bindings/ruby/src/spec/models/nix_upstream_request_patch_spec.rb @@ -0,0 +1,121 @@ +=begin +#Cloudsmith API (v1) + +#The API to the Cloudsmith Service + +OpenAPI spec version: v1 +Contact: support@cloudsmith.io +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.50 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for CloudsmithApi::NixUpstreamRequestPatch +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'NixUpstreamRequestPatch' do + before do + # run before each test + @instance = CloudsmithApi::NixUpstreamRequestPatch.new + end + + after do + # run after each test + end + + describe 'test an instance of NixUpstreamRequestPatch' do + it 'should create an instance of NixUpstreamRequestPatch' do + expect(@instance).to be_instance_of(CloudsmithApi::NixUpstreamRequestPatch) + end + end + describe 'test attribute "auth_mode"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["None", "Username and Password"]) + # validator.allowable_values.each do |value| + # expect { @instance.auth_mode = value }.not_to raise_error + # end + end + end + + describe 'test attribute "auth_secret"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "auth_username"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "extra_header_1"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "extra_header_2"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "extra_value_1"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "extra_value_2"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "is_active"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "mode"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy"]) + # validator.allowable_values.each do |value| + # expect { @instance.mode = value }.not_to raise_error + # end + end + end + + describe 'test attribute "name"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "priority"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "upstream_url"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "verify_ssl"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/bindings/ruby/src/spec/models/nix_upstream_request_spec.rb b/bindings/ruby/src/spec/models/nix_upstream_request_spec.rb new file mode 100644 index 00000000..254c0aab --- /dev/null +++ b/bindings/ruby/src/spec/models/nix_upstream_request_spec.rb @@ -0,0 +1,121 @@ +=begin +#Cloudsmith API (v1) + +#The API to the Cloudsmith Service + +OpenAPI spec version: v1 +Contact: support@cloudsmith.io +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.50 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for CloudsmithApi::NixUpstreamRequest +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'NixUpstreamRequest' do + before do + # run before each test + @instance = CloudsmithApi::NixUpstreamRequest.new + end + + after do + # run after each test + end + + describe 'test an instance of NixUpstreamRequest' do + it 'should create an instance of NixUpstreamRequest' do + expect(@instance).to be_instance_of(CloudsmithApi::NixUpstreamRequest) + end + end + describe 'test attribute "auth_mode"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["None", "Username and Password"]) + # validator.allowable_values.each do |value| + # expect { @instance.auth_mode = value }.not_to raise_error + # end + end + end + + describe 'test attribute "auth_secret"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "auth_username"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "extra_header_1"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "extra_header_2"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "extra_value_1"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "extra_value_2"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "is_active"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "mode"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy"]) + # validator.allowable_values.each do |value| + # expect { @instance.mode = value }.not_to raise_error + # end + end + end + + describe 'test attribute "name"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "priority"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "upstream_url"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "verify_ssl"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/bindings/ruby/src/spec/models/nix_upstream_spec.rb b/bindings/ruby/src/spec/models/nix_upstream_spec.rb new file mode 100644 index 00000000..5a553448 --- /dev/null +++ b/bindings/ruby/src/spec/models/nix_upstream_spec.rb @@ -0,0 +1,197 @@ +=begin +#Cloudsmith API (v1) + +#The API to the Cloudsmith Service + +OpenAPI spec version: v1 +Contact: support@cloudsmith.io +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.50 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for CloudsmithApi::NixUpstream +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'NixUpstream' do + before do + # run before each test + @instance = CloudsmithApi::NixUpstream.new + end + + after do + # run after each test + end + + describe 'test an instance of NixUpstream' do + it 'should create an instance of NixUpstream' do + expect(@instance).to be_instance_of(CloudsmithApi::NixUpstream) + end + end + describe 'test attribute "auth_mode"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["None", "Username and Password"]) + # validator.allowable_values.each do |value| + # expect { @instance.auth_mode = value }.not_to raise_error + # end + end + end + + describe 'test attribute "auth_secret"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "auth_username"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "available"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "can_reindex"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "created_at"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "disable_reason"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # validator = Petstore::EnumTest::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"]) + # validator.allowable_values.each do |value| + # expect { @instance.disable_reason = value }.not_to raise_error + # end + end + end + + describe 'test attribute "disable_reason_text"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "extra_header_1"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "extra_header_2"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "extra_value_1"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "extra_value_2"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "has_failed_signature_verification"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "index_package_count"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "index_status"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "is_active"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "last_indexed"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "mode"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy"]) + # validator.allowable_values.each do |value| + # expect { @instance.mode = value }.not_to raise_error + # end + end + end + + describe 'test attribute "name"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "pending_validation"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "priority"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "slug_perm"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "updated_at"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "upstream_url"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "verify_ssl"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/bindings/ruby/src/spec/models/npm_package_upload_request_spec.rb b/bindings/ruby/src/spec/models/npm_package_upload_request_spec.rb index eda889af..14e57f86 100644 --- a/bindings/ruby/src/spec/models/npm_package_upload_request_spec.rb +++ b/bindings/ruby/src/spec/models/npm_package_upload_request_spec.rb @@ -32,6 +32,12 @@ expect(@instance).to be_instance_of(CloudsmithApi::NpmPackageUploadRequest) end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "npm_dist_tag"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -56,4 +62,10 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/bindings/ruby/src/spec/models/npm_package_upload_spec.rb b/bindings/ruby/src/spec/models/npm_package_upload_spec.rb index e95b7592..b6d5e2b5 100644 --- a/bindings/ruby/src/spec/models/npm_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/npm_package_upload_spec.rb @@ -206,6 +206,12 @@ end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "is_moveable"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -474,6 +480,12 @@ end end + describe 'test attribute "store_path"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "subtype"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -510,6 +522,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -546,6 +564,12 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/nuget_package_upload_request_spec.rb b/bindings/ruby/src/spec/models/nuget_package_upload_request_spec.rb index 84a6c7df..7e70ac50 100644 --- a/bindings/ruby/src/spec/models/nuget_package_upload_request_spec.rb +++ b/bindings/ruby/src/spec/models/nuget_package_upload_request_spec.rb @@ -32,6 +32,12 @@ expect(@instance).to be_instance_of(CloudsmithApi::NugetPackageUploadRequest) end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "package_file"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -56,4 +62,10 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/bindings/ruby/src/spec/models/nuget_package_upload_spec.rb b/bindings/ruby/src/spec/models/nuget_package_upload_spec.rb index c7de23e6..ec3234ae 100644 --- a/bindings/ruby/src/spec/models/nuget_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/nuget_package_upload_spec.rb @@ -206,6 +206,12 @@ end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "is_moveable"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -474,6 +480,12 @@ end end + describe 'test attribute "store_path"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "subtype"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -510,6 +522,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -546,6 +564,12 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/organization_usage_spec.rb b/bindings/ruby/src/spec/models/organization_usage_spec.rb new file mode 100644 index 00000000..0a211388 --- /dev/null +++ b/bindings/ruby/src/spec/models/organization_usage_spec.rb @@ -0,0 +1,59 @@ +=begin +#Cloudsmith API (v1) + +#The API to the Cloudsmith Service + +OpenAPI spec version: v1 +Contact: support@cloudsmith.io +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.50 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for CloudsmithApi::OrganizationUsage +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'OrganizationUsage' do + before do + # run before each test + @instance = CloudsmithApi::OrganizationUsage.new + end + + after do + # run after each test + end + + describe 'test an instance of OrganizationUsage' do + it 'should create an instance of OrganizationUsage' do + expect(@instance).to be_instance_of(CloudsmithApi::OrganizationUsage) + end + end + describe 'test attribute "bandwidth_maximum"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "bandwidth_overage_limit"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "storage_maximum"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "storage_overage_limit"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/bindings/ruby/src/spec/models/organization_usage_update_request_patch_spec.rb b/bindings/ruby/src/spec/models/organization_usage_update_request_patch_spec.rb new file mode 100644 index 00000000..d453ab43 --- /dev/null +++ b/bindings/ruby/src/spec/models/organization_usage_update_request_patch_spec.rb @@ -0,0 +1,53 @@ +=begin +#Cloudsmith API (v1) + +#The API to the Cloudsmith Service + +OpenAPI spec version: v1 +Contact: support@cloudsmith.io +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.50 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for CloudsmithApi::OrganizationUsageUpdateRequestPatch +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'OrganizationUsageUpdateRequestPatch' do + before do + # run before each test + @instance = CloudsmithApi::OrganizationUsageUpdateRequestPatch.new + end + + after do + # run after each test + end + + describe 'test an instance of OrganizationUsageUpdateRequestPatch' do + it 'should create an instance of OrganizationUsageUpdateRequestPatch' do + expect(@instance).to be_instance_of(CloudsmithApi::OrganizationUsageUpdateRequestPatch) + end + end + describe 'test attribute "allow_open_source_overage"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "bandwidth_overage_limit"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "storage_overage_limit"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/bindings/ruby/src/spec/models/organization_usage_update_spec.rb b/bindings/ruby/src/spec/models/organization_usage_update_spec.rb new file mode 100644 index 00000000..440b175b --- /dev/null +++ b/bindings/ruby/src/spec/models/organization_usage_update_spec.rb @@ -0,0 +1,53 @@ +=begin +#Cloudsmith API (v1) + +#The API to the Cloudsmith Service + +OpenAPI spec version: v1 +Contact: support@cloudsmith.io +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.50 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for CloudsmithApi::OrganizationUsageUpdate +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'OrganizationUsageUpdate' do + before do + # run before each test + @instance = CloudsmithApi::OrganizationUsageUpdate.new + end + + after do + # run after each test + end + + describe 'test an instance of OrganizationUsageUpdate' do + it 'should create an instance of OrganizationUsageUpdate' do + expect(@instance).to be_instance_of(CloudsmithApi::OrganizationUsageUpdate) + end + end + describe 'test attribute "allow_open_source_overage"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "bandwidth_overage_limit"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "storage_overage_limit"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/bindings/ruby/src/spec/models/p2_package_upload_request_spec.rb b/bindings/ruby/src/spec/models/p2_package_upload_request_spec.rb index 953d7753..78ad7ecc 100644 --- a/bindings/ruby/src/spec/models/p2_package_upload_request_spec.rb +++ b/bindings/ruby/src/spec/models/p2_package_upload_request_spec.rb @@ -32,6 +32,12 @@ expect(@instance).to be_instance_of(CloudsmithApi::P2PackageUploadRequest) end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "package_file"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -50,4 +56,10 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/bindings/ruby/src/spec/models/p2_package_upload_spec.rb b/bindings/ruby/src/spec/models/p2_package_upload_spec.rb index 4bea2841..10e5ff5c 100644 --- a/bindings/ruby/src/spec/models/p2_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/p2_package_upload_spec.rb @@ -206,6 +206,12 @@ end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "is_moveable"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -474,6 +480,12 @@ end end + describe 'test attribute "store_path"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "subtype"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -510,6 +522,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -546,6 +564,12 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/package_copy_request_spec.rb b/bindings/ruby/src/spec/models/package_copy_request_spec.rb index 345a1d3b..dba57d57 100644 --- a/bindings/ruby/src/spec/models/package_copy_request_spec.rb +++ b/bindings/ruby/src/spec/models/package_copy_request_spec.rb @@ -38,10 +38,22 @@ end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "republish"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/bindings/ruby/src/spec/models/package_copy_spec.rb b/bindings/ruby/src/spec/models/package_copy_spec.rb index 6598d423..a4057dd7 100644 --- a/bindings/ruby/src/spec/models/package_copy_spec.rb +++ b/bindings/ruby/src/spec/models/package_copy_spec.rb @@ -212,6 +212,12 @@ end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "is_moveable"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -480,6 +486,12 @@ end end + describe 'test attribute "store_path"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "subtype"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -522,6 +534,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -558,6 +576,12 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/package_detail_spec.rb b/bindings/ruby/src/spec/models/package_detail_spec.rb new file mode 100644 index 00000000..eb8e043e --- /dev/null +++ b/bindings/ruby/src/spec/models/package_detail_spec.rb @@ -0,0 +1,597 @@ +=begin +#Cloudsmith API (v1) + +#The API to the Cloudsmith Service + +OpenAPI spec version: v1 +Contact: support@cloudsmith.io +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.50 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for CloudsmithApi::PackageDetail +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'PackageDetail' do + before do + # run before each test + @instance = CloudsmithApi::PackageDetail.new + end + + after do + # run after each test + end + + describe 'test an instance of PackageDetail' do + it 'should create an instance of PackageDetail' do + expect(@instance).to be_instance_of(CloudsmithApi::PackageDetail) + end + end + describe 'test attribute "architectures"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "cdn_url"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "checksum_md5"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "checksum_sha1"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "checksum_sha256"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "checksum_sha512"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "dependencies_checksum_md5"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "dependencies_url"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "description"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "display_name"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "distro"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "distro_version"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "downloads"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "epoch"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "extension"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "filename"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "filepath"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "files"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "format"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "format_url"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "freeable_storage"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "fully_qualified_name"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "has_dependencies"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "identifier_perm"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "identifiers"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "indexed"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "is_cancellable"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "is_copyable"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "is_deleteable"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "is_downloadable"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "is_hidden"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "is_moveable"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "is_quarantinable"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "is_quarantined"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "is_resyncable"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "is_security_scannable"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "is_sync_awaiting"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "is_sync_completed"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "is_sync_failed"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "is_sync_in_flight"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "is_sync_in_progress"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "license"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "name"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "namespace"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "namespace_url"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "num_files"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "origin_repository"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "origin_repository_url"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "osi_approved"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "package_type"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "policy_violated"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "raw_license"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "release"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "repository"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "repository_url"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "security_scan_completed_at"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "security_scan_started_at"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "security_scan_status"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Awaiting Security Scan", "Security Scanning in Progress", "Scan Detected Vulnerabilities", "Scan Detected No Vulnerabilities", "Security Scanning Disabled", "Security Scanning Failed", "Security Scanning Skipped", "Security Scanning Not Supported"]) + # validator.allowable_values.each do |value| + # expect { @instance.security_scan_status = value }.not_to raise_error + # end + end + end + + describe 'test attribute "security_scan_status_updated_at"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "self_html_url"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "self_url"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "self_webapp_url"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "signature_url"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "size"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "slug"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "slug_perm"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "spdx_license"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "stage"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "stage_str"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "stage_updated_at"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "status"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "status_reason"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "status_str"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "status_updated_at"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "status_url"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "store_path"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "subtype"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "summary"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "sync_finished_at"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "sync_progress"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "tags"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "tags_automatic"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "tags_immutable"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "type_display"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "uploaded_at"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "uploader"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "uploader_url"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "version"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "version_orig"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "vulnerability_scan_results_url"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/bindings/ruby/src/spec/models/package_license_request_patch_spec.rb b/bindings/ruby/src/spec/models/package_license_request_patch_spec.rb index 7de70278..27b131d6 100644 --- a/bindings/ruby/src/spec/models/package_license_request_patch_spec.rb +++ b/bindings/ruby/src/spec/models/package_license_request_patch_spec.rb @@ -42,6 +42,12 @@ end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "license_notes"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -70,4 +76,10 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/bindings/ruby/src/spec/models/package_license_spec.rb b/bindings/ruby/src/spec/models/package_license_spec.rb index f6e39ef1..de9edd26 100644 --- a/bindings/ruby/src/spec/models/package_license_spec.rb +++ b/bindings/ruby/src/spec/models/package_license_spec.rb @@ -32,6 +32,12 @@ expect(@instance).to be_instance_of(CloudsmithApi::PackageLicense) end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "license_notes"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -60,4 +66,10 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/bindings/ruby/src/spec/models/package_move_request_spec.rb b/bindings/ruby/src/spec/models/package_move_request_spec.rb index cd484ac6..9c4f3f3d 100644 --- a/bindings/ruby/src/spec/models/package_move_request_spec.rb +++ b/bindings/ruby/src/spec/models/package_move_request_spec.rb @@ -38,4 +38,16 @@ end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/bindings/ruby/src/spec/models/package_move_spec.rb b/bindings/ruby/src/spec/models/package_move_spec.rb index 2ba939d0..2d808818 100644 --- a/bindings/ruby/src/spec/models/package_move_spec.rb +++ b/bindings/ruby/src/spec/models/package_move_spec.rb @@ -212,6 +212,12 @@ end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "is_moveable"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -480,6 +486,12 @@ end end + describe 'test attribute "store_path"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "subtype"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -522,6 +534,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -558,6 +576,12 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/package_quarantine_request_spec.rb b/bindings/ruby/src/spec/models/package_quarantine_request_spec.rb index 09d0e611..ad395abd 100644 --- a/bindings/ruby/src/spec/models/package_quarantine_request_spec.rb +++ b/bindings/ruby/src/spec/models/package_quarantine_request_spec.rb @@ -32,6 +32,12 @@ expect(@instance).to be_instance_of(CloudsmithApi::PackageQuarantineRequest) end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "release"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -44,4 +50,10 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/bindings/ruby/src/spec/models/package_quarantine_spec.rb b/bindings/ruby/src/spec/models/package_quarantine_spec.rb index f5a6dfe5..443167ae 100644 --- a/bindings/ruby/src/spec/models/package_quarantine_spec.rb +++ b/bindings/ruby/src/spec/models/package_quarantine_spec.rb @@ -212,6 +212,12 @@ end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "is_moveable"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -474,6 +480,12 @@ end end + describe 'test attribute "store_path"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "subtype"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -516,6 +528,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -552,6 +570,12 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/package_resync_spec.rb b/bindings/ruby/src/spec/models/package_resync_spec.rb index ce606666..8e1d249f 100644 --- a/bindings/ruby/src/spec/models/package_resync_spec.rb +++ b/bindings/ruby/src/spec/models/package_resync_spec.rb @@ -212,6 +212,12 @@ end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "is_moveable"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -480,6 +486,12 @@ end end + describe 'test attribute "store_path"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "subtype"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -522,6 +534,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -558,6 +576,12 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/package_spec.rb b/bindings/ruby/src/spec/models/package_spec.rb index 10f88d01..0eb21ad0 100644 --- a/bindings/ruby/src/spec/models/package_spec.rb +++ b/bindings/ruby/src/spec/models/package_spec.rb @@ -212,6 +212,12 @@ end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "is_moveable"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -480,6 +486,12 @@ end end + describe 'test attribute "store_path"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "subtype"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -522,6 +534,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -558,6 +576,12 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/package_tag_request_spec.rb b/bindings/ruby/src/spec/models/package_tag_request_spec.rb index 710eccfb..4626b2bd 100644 --- a/bindings/ruby/src/spec/models/package_tag_request_spec.rb +++ b/bindings/ruby/src/spec/models/package_tag_request_spec.rb @@ -48,10 +48,22 @@ end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "tags"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/bindings/ruby/src/spec/models/package_tag_spec.rb b/bindings/ruby/src/spec/models/package_tag_spec.rb index 00ebfdc7..9ca50533 100644 --- a/bindings/ruby/src/spec/models/package_tag_spec.rb +++ b/bindings/ruby/src/spec/models/package_tag_spec.rb @@ -218,6 +218,12 @@ end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "is_moveable"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -486,6 +492,12 @@ end end + describe 'test attribute "store_path"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "subtype"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -522,6 +534,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -558,6 +576,12 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/package_vulnerability_spec.rb b/bindings/ruby/src/spec/models/package_vulnerability_spec.rb index e1acc570..52900c60 100644 --- a/bindings/ruby/src/spec/models/package_vulnerability_spec.rb +++ b/bindings/ruby/src/spec/models/package_vulnerability_spec.rb @@ -38,6 +38,12 @@ end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "name"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -56,4 +62,10 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/bindings/ruby/src/spec/models/python_package_upload_request_spec.rb b/bindings/ruby/src/spec/models/python_package_upload_request_spec.rb index cd88003a..43831904 100644 --- a/bindings/ruby/src/spec/models/python_package_upload_request_spec.rb +++ b/bindings/ruby/src/spec/models/python_package_upload_request_spec.rb @@ -32,6 +32,12 @@ expect(@instance).to be_instance_of(CloudsmithApi::PythonPackageUploadRequest) end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "package_file"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -50,4 +56,10 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/bindings/ruby/src/spec/models/python_package_upload_spec.rb b/bindings/ruby/src/spec/models/python_package_upload_spec.rb index bcf8b5f5..2ddb4c16 100644 --- a/bindings/ruby/src/spec/models/python_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/python_package_upload_spec.rb @@ -206,6 +206,12 @@ end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "is_moveable"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -474,6 +480,12 @@ end end + describe 'test attribute "store_path"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "subtype"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -510,6 +522,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -546,6 +564,12 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/raw_package_upload_request_spec.rb b/bindings/ruby/src/spec/models/raw_package_upload_request_spec.rb index 65133d2c..599552ce 100644 --- a/bindings/ruby/src/spec/models/raw_package_upload_request_spec.rb +++ b/bindings/ruby/src/spec/models/raw_package_upload_request_spec.rb @@ -44,6 +44,12 @@ end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "name"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -80,4 +86,10 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/bindings/ruby/src/spec/models/raw_package_upload_spec.rb b/bindings/ruby/src/spec/models/raw_package_upload_spec.rb index 35c35c0a..4c50b71c 100644 --- a/bindings/ruby/src/spec/models/raw_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/raw_package_upload_spec.rb @@ -206,6 +206,12 @@ end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "is_moveable"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -474,6 +480,12 @@ end end + describe 'test attribute "store_path"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "subtype"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -510,6 +522,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -546,6 +564,12 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/recycle_bin_package_spec.rb b/bindings/ruby/src/spec/models/recycle_bin_package_spec.rb index 09477e6d..404c8110 100644 --- a/bindings/ruby/src/spec/models/recycle_bin_package_spec.rb +++ b/bindings/ruby/src/spec/models/recycle_bin_package_spec.rb @@ -80,6 +80,12 @@ end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "is_quarantined"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -180,4 +186,10 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/bindings/ruby/src/spec/models/rpm_package_upload_request_spec.rb b/bindings/ruby/src/spec/models/rpm_package_upload_request_spec.rb index 7a25435d..7270d711 100644 --- a/bindings/ruby/src/spec/models/rpm_package_upload_request_spec.rb +++ b/bindings/ruby/src/spec/models/rpm_package_upload_request_spec.rb @@ -38,6 +38,12 @@ end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "package_file"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -56,4 +62,10 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/bindings/ruby/src/spec/models/rpm_package_upload_spec.rb b/bindings/ruby/src/spec/models/rpm_package_upload_spec.rb index 5e58016a..08b80269 100644 --- a/bindings/ruby/src/spec/models/rpm_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/rpm_package_upload_spec.rb @@ -206,6 +206,12 @@ end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "is_moveable"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -474,6 +480,12 @@ end end + describe 'test attribute "store_path"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "subtype"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -510,6 +522,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -546,6 +564,12 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/ruby_package_upload_request_spec.rb b/bindings/ruby/src/spec/models/ruby_package_upload_request_spec.rb index 7db22695..9e08c7d3 100644 --- a/bindings/ruby/src/spec/models/ruby_package_upload_request_spec.rb +++ b/bindings/ruby/src/spec/models/ruby_package_upload_request_spec.rb @@ -32,6 +32,12 @@ expect(@instance).to be_instance_of(CloudsmithApi::RubyPackageUploadRequest) end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "package_file"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -50,4 +56,10 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/bindings/ruby/src/spec/models/ruby_package_upload_spec.rb b/bindings/ruby/src/spec/models/ruby_package_upload_spec.rb index 92c400ef..4eaba6ae 100644 --- a/bindings/ruby/src/spec/models/ruby_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/ruby_package_upload_spec.rb @@ -206,6 +206,12 @@ end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "is_moveable"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -474,6 +480,12 @@ end end + describe 'test attribute "store_path"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "subtype"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -510,6 +522,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -546,6 +564,12 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/swift_package_upload_request_spec.rb b/bindings/ruby/src/spec/models/swift_package_upload_request_spec.rb index f6a5a53b..edf1715e 100644 --- a/bindings/ruby/src/spec/models/swift_package_upload_request_spec.rb +++ b/bindings/ruby/src/spec/models/swift_package_upload_request_spec.rb @@ -44,6 +44,12 @@ end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "license_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -98,4 +104,10 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/bindings/ruby/src/spec/models/swift_package_upload_spec.rb b/bindings/ruby/src/spec/models/swift_package_upload_spec.rb index 50c7067c..ccc805ff 100644 --- a/bindings/ruby/src/spec/models/swift_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/swift_package_upload_spec.rb @@ -218,6 +218,12 @@ end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "is_moveable"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -504,6 +510,12 @@ end end + describe 'test attribute "store_path"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "subtype"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -540,6 +552,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -576,6 +594,12 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/terraform_package_upload_request_spec.rb b/bindings/ruby/src/spec/models/terraform_package_upload_request_spec.rb index ae305dc3..2a258b16 100644 --- a/bindings/ruby/src/spec/models/terraform_package_upload_request_spec.rb +++ b/bindings/ruby/src/spec/models/terraform_package_upload_request_spec.rb @@ -32,6 +32,12 @@ expect(@instance).to be_instance_of(CloudsmithApi::TerraformPackageUploadRequest) end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "package_file"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -50,4 +56,10 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/bindings/ruby/src/spec/models/terraform_package_upload_spec.rb b/bindings/ruby/src/spec/models/terraform_package_upload_spec.rb index 3c902a0e..70334952 100644 --- a/bindings/ruby/src/spec/models/terraform_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/terraform_package_upload_spec.rb @@ -206,6 +206,12 @@ end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "is_moveable"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -474,6 +480,12 @@ end end + describe 'test attribute "store_path"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "subtype"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -510,6 +522,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -546,6 +564,12 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/vagrant_package_upload_request_spec.rb b/bindings/ruby/src/spec/models/vagrant_package_upload_request_spec.rb index baae4b26..ad742194 100644 --- a/bindings/ruby/src/spec/models/vagrant_package_upload_request_spec.rb +++ b/bindings/ruby/src/spec/models/vagrant_package_upload_request_spec.rb @@ -32,6 +32,12 @@ expect(@instance).to be_instance_of(CloudsmithApi::VagrantPackageUploadRequest) end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "name"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -68,4 +74,10 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/bindings/ruby/src/spec/models/vagrant_package_upload_spec.rb b/bindings/ruby/src/spec/models/vagrant_package_upload_spec.rb index 3904085f..e8766075 100644 --- a/bindings/ruby/src/spec/models/vagrant_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/vagrant_package_upload_spec.rb @@ -206,6 +206,12 @@ end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "is_moveable"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -480,6 +486,12 @@ end end + describe 'test attribute "store_path"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "subtype"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -516,6 +528,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -552,6 +570,12 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/vsx_package_upload_request_spec.rb b/bindings/ruby/src/spec/models/vsx_package_upload_request_spec.rb index a6ce9664..551e2dea 100644 --- a/bindings/ruby/src/spec/models/vsx_package_upload_request_spec.rb +++ b/bindings/ruby/src/spec/models/vsx_package_upload_request_spec.rb @@ -32,6 +32,12 @@ expect(@instance).to be_instance_of(CloudsmithApi::VsxPackageUploadRequest) end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "package_file"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -50,4 +56,10 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/bindings/ruby/src/spec/models/vsx_package_upload_spec.rb b/bindings/ruby/src/spec/models/vsx_package_upload_spec.rb index 0310b1ee..fff6759c 100644 --- a/bindings/ruby/src/spec/models/vsx_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/vsx_package_upload_spec.rb @@ -206,6 +206,12 @@ end end + describe 'test attribute "is_malware_detected"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "is_moveable"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -474,6 +480,12 @@ end end + describe 'test attribute "store_path"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "subtype"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -510,6 +522,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -546,6 +564,12 @@ end end + describe 'test attribute "vulnerability_counts"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/web_osv_severity_counts_spec.rb b/bindings/ruby/src/spec/models/web_osv_severity_counts_spec.rb new file mode 100644 index 00000000..b7b3f3a0 --- /dev/null +++ b/bindings/ruby/src/spec/models/web_osv_severity_counts_spec.rb @@ -0,0 +1,77 @@ +=begin +#Cloudsmith API (v1) + +#The API to the Cloudsmith Service + +OpenAPI spec version: v1 +Contact: support@cloudsmith.io +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.50 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for CloudsmithApi::WebOSVSeverityCounts +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'WebOSVSeverityCounts' do + before do + # run before each test + @instance = CloudsmithApi::WebOSVSeverityCounts.new + end + + after do + # run after each test + end + + describe 'test an instance of WebOSVSeverityCounts' do + it 'should create an instance of WebOSVSeverityCounts' do + expect(@instance).to be_instance_of(CloudsmithApi::WebOSVSeverityCounts) + end + end + describe 'test attribute "critical"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "high"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "low"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "malware"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "medium"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "total"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "unknown"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/scripts/common.sh b/scripts/common.sh index d2d9cd63..bf64397e 100755 --- a/scripts/common.sh +++ b/scripts/common.sh @@ -3,7 +3,7 @@ language=${1:-""} api_url=${2:-${api_url:-"https://api.cloudsmith.io/"}} api_version=$(curl -s "${api_url}status/check/basic/" | jq -r '.version') openapi_url="${api_url}?format=openapi" -package_version="2.0.29" +package_version="2.0.30" swagger_codegen_cli_image="swaggerapi/swagger-codegen-cli:v2.4.50" location=$(curl -s $openapi_url | grep Location | cut -d' ' -f2)