From e7f905f91723cdc807495adf5cc2eb5126cab547 Mon Sep 17 00:00:00 2001 From: cloudsmith-bot Date: Wed, 9 Sep 2026 08:55:12 +0000 Subject: [PATCH] Update Go API bindings to version 0.0.64 --- .openapi-generator/FILES | 10 + README.md | 15 +- api/openapi.yaml | 2267 +++++++---------- api_audit_log.go | 2 +- api_badges.go | 2 +- api_broadcasts.go | 2 +- api_bulk_action.go | 2 +- api_distros.go | 2 +- api_entitlements.go | 2 +- api_files.go | 2 +- api_formats.go | 2 +- api_metrics.go | 2 +- api_namespaces.go | 2 +- api_openid.go | 2 +- api_orgs.go | 859 ++++++- api_packages.go | 4 +- api_quota.go | 2 +- api_rates.go | 2 +- api_recycle_bin.go | 2 +- api_repos.go | 2 +- api_status.go | 2 +- api_storage_regions.go | 2 +- api_user.go | 2 +- api_users.go | 2 +- api_vulnerabilities.go | 2 +- api_webhooks.go | 2 +- bin/generate | 2 +- client.go | 4 +- configuration.go | 4 +- docs/AlpinePackageUpload.md | 88 +- docs/AlpinePackageUploadRequest.md | 62 - docs/CargoPackageUpload.md | 88 +- docs/CargoPackageUploadRequest.md | 62 - docs/CocoapodsPackageUpload.md | 88 +- docs/CocoapodsPackageUploadRequest.md | 62 - docs/ComposerPackageUpload.md | 88 +- docs/ComposerPackageUploadRequest.md | 62 - docs/ConanPackageUpload.md | 88 +- docs/ConanPackageUploadRequest.md | 62 - docs/CondaPackageUpload.md | 88 +- docs/CondaPackageUploadRequest.md | 62 - docs/ConnectedRepository.md | 78 + docs/ConnectedRepositoryTargetSummary.md | 134 + docs/ConnectedRepositoryUpstream.md | 102 + docs/CranPackageUpload.md | 88 +- docs/CranPackageUploadRequest.md | 62 - docs/DartPackageUpload.md | 88 +- docs/DartPackageUploadRequest.md | 62 - docs/DebPackageUpload.md | 88 +- docs/DebPackageUploadRequest.md | 62 - docs/DockerPackageUpload.md | 88 +- docs/DockerPackageUploadRequest.md | 62 - docs/GenericPackageUpload.md | 88 +- docs/GenericPackageUploadRequest.md | 62 - docs/GoPackageUpload.md | 88 +- docs/GoPackageUploadRequest.md | 62 - docs/HelmPackageUpload.md | 88 +- docs/HelmPackageUploadRequest.md | 62 - docs/HexPackageUpload.md | 88 +- docs/HexPackageUploadRequest.md | 62 - docs/HuggingfacePackageUpload.md | 88 +- docs/HuggingfacePackageUploadRequest.md | 62 - docs/LuarocksPackageUpload.md | 88 +- docs/LuarocksPackageUploadRequest.md | 62 - docs/MavenPackageUpload.md | 88 +- docs/MavenPackageUploadRequest.md | 62 - docs/McpPackageUpload.md | 88 +- docs/McpPackageUploadRequest.md | 62 - docs/NixPackageUpload.md | 88 +- docs/NixPackageUploadRequest.md | 62 - docs/NpmPackageUpload.md | 88 +- docs/NpmPackageUploadRequest.md | 62 - docs/NugetPackageUpload.md | 88 +- docs/NugetPackageUploadRequest.md | 62 - docs/OrganizationApiKeyRule.md | 269 ++ docs/OrganizationApiKeyRuleRequest.md | 165 ++ docs/OrganizationApiKeyRuleRequestPatch.md | 170 ++ docs/OrgsApi.md | 442 ++++ docs/P2PackageUpload.md | 88 +- docs/P2PackageUploadRequest.md | 62 - docs/Package.md | 26 + docs/PackageCopy.md | 88 +- docs/PackageCopyRequest.md | 62 - docs/PackageDetail.md | 26 + docs/PackageLicense.md | 62 - docs/PackageLicenseRequestPatch.md | 62 - docs/PackageMove.md | 88 +- docs/PackageMoveRequest.md | 62 - docs/PackageQuarantine.md | 88 +- docs/PackageQuarantineRequest.md | 62 - docs/PackageResync.md | 88 +- docs/PackageTag.md | 88 +- docs/PackageTagRequest.md | 62 - docs/PackageVulnerability.md | 62 - docs/PackagesApi.md | 4 +- docs/PythonPackageUpload.md | 88 +- docs/PythonPackageUploadRequest.md | 62 - docs/RawPackageUpload.md | 88 +- docs/RawPackageUploadRequest.md | 62 - docs/RpmPackageUpload.md | 88 +- docs/RpmPackageUploadRequest.md | 62 - docs/RubyPackageUpload.md | 88 +- docs/RubyPackageUploadRequest.md | 62 - docs/SwiftPackageUpload.md | 88 +- docs/SwiftPackageUploadRequest.md | 62 - docs/TerraformPackageUpload.md | 88 +- docs/TerraformPackageUploadRequest.md | 62 - docs/VagrantPackageUpload.md | 88 +- docs/VagrantPackageUploadRequest.md | 62 - docs/VsxPackageUpload.md | 88 +- docs/VsxPackageUploadRequest.md | 62 - model_allocated_limit.go | 2 +- model_allocated_limit_raw.go | 2 +- model_alpine_package_upload.go | 170 +- model_alpine_package_upload_request.go | 90 +- model_alpine_upstream.go | 2 +- model_alpine_upstream_request.go | 2 +- model_alpine_upstream_request_patch.go | 2 +- model_architecture.go | 2 +- model_broadcast_token.go | 2 +- model_broadcast_token_input.go | 2 +- model_cargo_package_upload.go | 170 +- model_cargo_package_upload_request.go | 90 +- model_cargo_upstream.go | 2 +- model_cargo_upstream_request.go | 2 +- model_cargo_upstream_request_patch.go | 2 +- model_cocoapods_package_upload.go | 170 +- model_cocoapods_package_upload_request.go | 90 +- model_common_bandwidth_metrics.go | 2 +- model_common_bandwidth_metrics_value.go | 2 +- model_common_downloads_metrics.go | 2 +- model_common_downloads_metrics_value.go | 2 +- model_common_metrics.go | 2 +- model_composer_package_upload.go | 170 +- model_composer_package_upload_request.go | 90 +- model_composer_upstream.go | 2 +- model_composer_upstream_request.go | 2 +- model_composer_upstream_request_patch.go | 2 +- model_conan_package_upload.go | 170 +- model_conan_package_upload_request.go | 90 +- model_conda_package_upload.go | 170 +- model_conda_package_upload_request.go | 90 +- model_conda_upstream.go | 2 +- model_conda_upstream_request.go | 2 +- model_conda_upstream_request_patch.go | 2 +- model_connected_repository.go | 119 +- model_connected_repository_request.go | 2 +- model_connected_repository_request_patch.go | 2 +- model_connected_repository_target_summary.go | 265 ++ model_connected_repository_upstream.go | 214 ++ model_cran_package_upload.go | 170 +- model_cran_package_upload_request.go | 90 +- model_cran_upstream.go | 2 +- model_cran_upstream_request.go | 2 +- model_cran_upstream_request_patch.go | 2 +- model_dart_package_upload.go | 170 +- model_dart_package_upload_request.go | 90 +- model_dart_upstream.go | 2 +- model_dart_upstream_request.go | 2 +- model_dart_upstream_request_patch.go | 2 +- model_deb_package_upload.go | 170 +- model_deb_package_upload_request.go | 90 +- model_deb_upstream.go | 2 +- model_deb_upstream_request.go | 2 +- model_deb_upstream_request_patch.go | 2 +- model_distribution.go | 2 +- model_distribution_full.go | 2 +- model_distribution_version.go | 2 +- model_docker_package_upload.go | 170 +- model_docker_package_upload_request.go | 90 +- model_docker_upstream.go | 2 +- model_docker_upstream_request.go | 2 +- model_docker_upstream_request_patch.go | 2 +- model_dynamic_mapping.go | 2 +- model_entitlement_usage_metrics.go | 2 +- model_error_detail.go | 2 +- model_eula.go | 2 +- model_format.go | 2 +- model_format_support.go | 2 +- model_format_support_upstream.go | 2 +- model_generic_package_upload.go | 170 +- model_generic_package_upload_request.go | 90 +- model_generic_upstream.go | 2 +- model_generic_upstream_request.go | 2 +- model_generic_upstream_request_patch.go | 2 +- model_geo_ip_location.go | 2 +- model_go_package_upload.go | 170 +- model_go_package_upload_request.go | 90 +- model_go_upstream.go | 2 +- model_go_upstream_request.go | 2 +- model_go_upstream_request_patch.go | 2 +- model_helm_package_upload.go | 170 +- model_helm_package_upload_request.go | 90 +- model_helm_upstream.go | 2 +- model_helm_upstream_request.go | 2 +- model_helm_upstream_request_patch.go | 2 +- model_hex_package_upload.go | 170 +- model_hex_package_upload_request.go | 90 +- model_hex_upstream.go | 2 +- model_hex_upstream_request.go | 2 +- model_hex_upstream_request_patch.go | 2 +- model_history.go | 2 +- model_history_fieldset.go | 2 +- model_history_fieldset_raw.go | 2 +- model_huggingface_package_upload.go | 170 +- model_huggingface_package_upload_request.go | 90 +- model_huggingface_upstream.go | 2 +- model_huggingface_upstream_request.go | 2 +- model_huggingface_upstream_request_patch.go | 2 +- model_luarocks_package_upload.go | 170 +- model_luarocks_package_upload_request.go | 90 +- model_maven_package_upload.go | 170 +- model_maven_package_upload_request.go | 90 +- model_maven_upstream.go | 2 +- model_maven_upstream_request.go | 2 +- model_maven_upstream_request_patch.go | 2 +- model_mcp_package_upload.go | 170 +- model_mcp_package_upload_request.go | 90 +- model_member_teams.go | 2 +- model_namespace.go | 2 +- model_namespace_audit_log.go | 2 +- model_nested_license_policy.go | 2 +- model_nested_vulnerability_policy.go | 2 +- model_nested_vulnerability_scan_results.go | 2 +- model_nix_package_upload.go | 170 +- model_nix_package_upload_request.go | 90 +- model_nix_upstream.go | 2 +- model_nix_upstream_request.go | 2 +- model_nix_upstream_request_patch.go | 2 +- model_npm_package_upload.go | 170 +- model_npm_package_upload_request.go | 90 +- model_npm_upstream.go | 2 +- model_npm_upstream_request.go | 2 +- model_npm_upstream_request_patch.go | 2 +- model_nuget_package_upload.go | 170 +- model_nuget_package_upload_request.go | 90 +- model_nuget_upstream.go | 2 +- model_nuget_upstream_request.go | 2 +- model_nuget_upstream_request_patch.go | 2 +- model_oidc_1.go | 2 +- model_oidc_request.go | 2 +- model_organization.go | 2 +- model_organization_api_key_rule.go | 482 ++++ model_organization_api_key_rule_request.go | 331 +++ ...organization_api_key_rule_request_patch.go | 318 +++ ..._organization_custom_domain_nested_repo.go | 2 +- model_organization_custom_domains.go | 2 +- model_organization_group_sync.go | 2 +- model_organization_group_sync_request.go | 2 +- model_organization_group_sync_status.go | 2 +- model_organization_invite.go | 2 +- model_organization_invite_extend.go | 2 +- model_organization_invite_request.go | 2 +- model_organization_invite_update.go | 2 +- ...rganization_invite_update_request_patch.go | 2 +- model_organization_membership.go | 2 +- model_organization_membership_role_update.go | 2 +- ...on_membership_role_update_request_patch.go | 2 +- ...ganization_membership_visibility_update.go | 2 +- ...bership_visibility_update_request_patch.go | 2 +- model_organization_package_license_policy.go | 2 +- ...nization_package_license_policy_request.go | 2 +- ...on_package_license_policy_request_patch.go | 2 +- ...ganization_package_vulnerability_policy.go | 2 +- ...on_package_vulnerability_policy_request.go | 2 +- ...kage_vulnerability_policy_request_patch.go | 2 +- model_organization_saml_auth.go | 2 +- model_organization_saml_auth_request_patch.go | 2 +- model_organization_team.go | 2 +- model_organization_team_invite.go | 2 +- model_organization_team_members.go | 2 +- model_organization_team_request.go | 2 +- model_organization_team_request_patch.go | 2 +- model_organization_team_service_member.go | 2 +- model_organization_usage.go | 2 +- model_organization_usage_update.go | 2 +- ...organization_usage_update_request_patch.go | 2 +- ...orgs_retrieve_usage_limits_200_response.go | 2 +- ...l_orgs_update_usage_limits_200_response.go | 2 +- model_p2_package_upload.go | 170 +- model_p2_package_upload_request.go | 90 +- model_package.go | 44 +- model_package_bulk_action.go | 2 +- model_package_bulk_action_response.go | 2 +- model_package_copy.go | 170 +- model_package_copy_request.go | 90 +- model_package_deny_policy.go | 2 +- model_package_deny_policy_request.go | 2 +- model_package_deny_policy_request_patch.go | 2 +- model_package_dependencies.go | 2 +- model_package_dependency.go | 2 +- model_package_detail.go | 44 +- model_package_file.go | 2 +- model_package_file_parts_upload.go | 2 +- model_package_file_upload.go | 2 +- model_package_file_upload_request.go | 2 +- model_package_group.go | 2 +- model_package_license.go | 96 +- ...ckage_license_policy_evaluation_request.go | 2 +- model_package_license_policy_violation_log.go | 2 +- ...icense_policy_violation_log_cursor_page.go | 2 +- model_package_license_request_patch.go | 98 +- model_package_move.go | 170 +- model_package_move_request.go | 90 +- model_package_quarantine.go | 170 +- model_package_quarantine_request.go | 90 +- model_package_recycle_bin.go | 2 +- model_package_resync.go | 170 +- model_package_status.go | 2 +- model_package_tag.go | 138 +- model_package_tag_request.go | 90 +- model_package_usage_metrics.go | 2 +- model_package_vulnerability.go | 90 +- ...vulnerability_policy_evaluation_request.go | 2 +- ...kage_vulnerability_policy_violation_log.go | 2 +- ...bility_policy_violation_log_cursor_page.go | 2 +- model_packages_groups_list_200_response.go | 2 +- model_provider_settings.go | 2 +- model_provider_settings_write.go | 2 +- model_provider_settings_write_request.go | 2 +- ...l_provider_settings_write_request_patch.go | 2 +- model_python_package_upload.go | 170 +- model_python_package_upload_request.go | 90 +- model_python_upstream.go | 2 +- model_python_upstream_request.go | 2 +- model_python_upstream_request_patch.go | 2 +- model_quota.go | 2 +- model_quota_history.go | 2 +- model_rate_check.go | 2 +- model_raw_package_upload.go | 170 +- model_raw_package_upload_request.go | 90 +- model_recycle_bin_package.go | 2 +- model_repos_connected_list_200_response.go | 2 +- model_repository.go | 2 +- model_repository_audit_log.go | 2 +- model_repository_create.go | 2 +- model_repository_create_request.go | 2 +- model_repository_ecdsa_key.go | 2 +- model_repository_ecdsa_key_create.go | 2 +- model_repository_ed25519_key.go | 2 +- model_repository_ed25519_key_create.go | 2 +- model_repository_geo_ip_cidr.go | 2 +- model_repository_geo_ip_country_code.go | 2 +- model_repository_geo_ip_rules.go | 2 +- model_repository_geo_ip_rules_request.go | 2 +- ...l_repository_geo_ip_rules_request_patch.go | 2 +- model_repository_geo_ip_status.go | 2 +- model_repository_geo_ip_test_address.go | 2 +- ...repository_geo_ip_test_address_response.go | 2 +- ...itory_geo_ip_test_address_response_dict.go | 2 +- model_repository_gpg_key.go | 2 +- model_repository_gpg_key_create.go | 2 +- model_repository_privilege_dict.go | 2 +- model_repository_privilege_input.go | 2 +- model_repository_privilege_input_request.go | 2 +- ...epository_privilege_input_request_patch.go | 2 +- model_repository_request_patch.go | 2 +- model_repository_retention_rules.go | 2 +- ...epository_retention_rules_request_patch.go | 2 +- model_repository_rsa_key.go | 2 +- model_repository_rsa_key_create.go | 2 +- model_repository_token.go | 2 +- model_repository_token_private_broadcasts.go | 2 +- ...sitory_token_private_broadcasts_request.go | 2 +- model_repository_token_refresh.go | 2 +- model_repository_token_refresh_request.go | 2 +- model_repository_token_request.go | 2 +- model_repository_token_request_patch.go | 2 +- model_repository_token_sync.go | 2 +- model_repository_token_sync_request.go | 2 +- model_repository_transfer_region.go | 2 +- model_repository_transfer_region_request.go | 2 +- model_repository_webhook.go | 2 +- model_repository_webhook_request.go | 2 +- model_repository_webhook_request_patch.go | 2 +- model_repository_x509_ecdsa_certificate.go | 2 +- model_repository_x509_rsa_certificate.go | 2 +- model_resources_rate_check.go | 2 +- model_rpm_package_upload.go | 170 +- model_rpm_package_upload_request.go | 90 +- model_rpm_upstream.go | 2 +- model_rpm_upstream_request.go | 2 +- model_rpm_upstream_request_patch.go | 2 +- model_ruby_package_upload.go | 170 +- model_ruby_package_upload_request.go | 90 +- model_ruby_upstream.go | 2 +- model_ruby_upstream_request.go | 2 +- model_ruby_upstream_request_patch.go | 2 +- model_service.go | 2 +- model_service_request.go | 2 +- model_service_request_patch.go | 2 +- model_service_teams.go | 2 +- model_status_basic.go | 2 +- model_storage_allocated_limit.go | 2 +- model_storage_allocated_limit_raw.go | 2 +- model_storage_region.go | 2 +- model_storage_usage.go | 2 +- model_storage_usage_raw.go | 2 +- model_swift_package_upload.go | 170 +- model_swift_package_upload_request.go | 90 +- model_swift_upstream.go | 2 +- model_swift_upstream_request.go | 2 +- model_swift_upstream_request_patch.go | 2 +- model_terraform_package_upload.go | 170 +- model_terraform_package_upload_request.go | 90 +- model_usage.go | 2 +- model_usage_fieldset.go | 2 +- model_usage_limits.go | 2 +- model_usage_limits_raw.go | 2 +- model_usage_raw.go | 2 +- model_user_auth_token.go | 2 +- model_user_auth_token_request.go | 2 +- model_user_authentication_token.go | 2 +- model_user_brief.go | 2 +- model_user_profile.go | 2 +- model_user_tokens_list_200_response.go | 2 +- model_vagrant_package_upload.go | 170 +- model_vagrant_package_upload_request.go | 90 +- model_vsx_package_upload.go | 170 +- model_vsx_package_upload_request.go | 90 +- model_vulnerability.go | 2 +- model_vulnerability_scan.go | 2 +- model_vulnerability_scan_results.go | 2 +- model_vulnerability_scan_results_list.go | 2 +- model_vulnerability_scan_version.go | 2 +- model_web_osv_severity_counts.go | 2 +- model_webhook_template.go | 2 +- response.go | 2 +- utils.go | 2 +- 429 files changed, 8400 insertions(+), 13152 deletions(-) create mode 100644 docs/ConnectedRepositoryTargetSummary.md create mode 100644 docs/ConnectedRepositoryUpstream.md create mode 100644 docs/OrganizationApiKeyRule.md create mode 100644 docs/OrganizationApiKeyRuleRequest.md create mode 100644 docs/OrganizationApiKeyRuleRequestPatch.md create mode 100644 model_connected_repository_target_summary.go create mode 100644 model_connected_repository_upstream.go create mode 100644 model_organization_api_key_rule.go create mode 100644 model_organization_api_key_rule_request.go create mode 100644 model_organization_api_key_rule_request_patch.go diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 29f5704d..3f2f741e 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -68,6 +68,8 @@ docs/CondaUpstreamRequestPatch.md docs/ConnectedRepository.md docs/ConnectedRepositoryRequest.md docs/ConnectedRepositoryRequestPatch.md +docs/ConnectedRepositoryTargetSummary.md +docs/ConnectedRepositoryUpstream.md docs/CranPackageUpload.md docs/CranPackageUploadRequest.md docs/CranUpstream.md @@ -167,6 +169,9 @@ docs/Oidc1.md docs/OidcRequest.md docs/OpenidApi.md docs/Organization.md +docs/OrganizationApiKeyRule.md +docs/OrganizationApiKeyRuleRequest.md +docs/OrganizationApiKeyRuleRequestPatch.md docs/OrganizationCustomDomainNestedRepo.md docs/OrganizationCustomDomains.md docs/OrganizationGroupSync.md @@ -401,6 +406,8 @@ model_conda_upstream_request_patch.go model_connected_repository.go model_connected_repository_request.go model_connected_repository_request_patch.go +model_connected_repository_target_summary.go +model_connected_repository_upstream.go model_cran_package_upload.go model_cran_package_upload_request.go model_cran_upstream.go @@ -493,6 +500,9 @@ model_nuget_upstream_request_patch.go model_oidc_1.go model_oidc_request.go model_organization.go +model_organization_api_key_rule.go +model_organization_api_key_rule_request.go +model_organization_api_key_rule_request_patch.go model_organization_custom_domain_nested_repo.go model_organization_custom_domains.go model_organization_group_sync.go diff --git a/README.md b/README.md index 7f46ec5e..42a180da 100644 --- a/README.md +++ b/README.md @@ -5,8 +5,8 @@ The API to the Cloudsmith Service ## Overview This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. -- API version: 1.1358.3 -- Package version: 0.0.63 +- API version: 1.1388.0 +- Package version: 0.0.64 - Generator version: 7.9.0 - Build package: org.openapitools.codegen.languages.GoClientCodegen For more information, please visit [https://help.cloudsmith.io](https://help.cloudsmith.io) @@ -110,6 +110,12 @@ Class | Method | HTTP request | Description *NamespacesApi* | [**NamespacesList**](docs/NamespacesApi.md#namespaceslist) | **Get** /namespaces/ | Get a list of all namespaces the user belongs to. *NamespacesApi* | [**NamespacesRead**](docs/NamespacesApi.md#namespacesread) | **Get** /namespaces/{slug}/ | Get a specific namespace that the user belongs to. *OpenidApi* | [**OpenidCreate**](docs/OpenidApi.md#openidcreate) | **Post** /openid/{owner}/ | Get a JWT token for a configured service account belonging to the requesting org. +*OrgsApi* | [**OrgsApiKeyRulesCreate**](docs/OrgsApi.md#orgsapikeyrulescreate) | **Post** /orgs/{org}/api-key-rules/ | Create an API key rule. +*OrgsApi* | [**OrgsApiKeyRulesDelete**](docs/OrgsApi.md#orgsapikeyrulesdelete) | **Delete** /orgs/{org}/api-key-rules/{slug_perm}/ | Delete an API key rule. +*OrgsApi* | [**OrgsApiKeyRulesList**](docs/OrgsApi.md#orgsapikeyruleslist) | **Get** /orgs/{org}/api-key-rules/ | List all API key rules for the organization. +*OrgsApi* | [**OrgsApiKeyRulesPartialUpdate**](docs/OrgsApi.md#orgsapikeyrulespartialupdate) | **Patch** /orgs/{org}/api-key-rules/{slug_perm}/ | Update an API key rule. +*OrgsApi* | [**OrgsApiKeyRulesRead**](docs/OrgsApi.md#orgsapikeyrulesread) | **Get** /orgs/{org}/api-key-rules/{slug_perm}/ | Retrieve an API key rule. +*OrgsApi* | [**OrgsApiKeyRulesUpdate**](docs/OrgsApi.md#orgsapikeyrulesupdate) | **Put** /orgs/{org}/api-key-rules/{slug_perm}/ | Full update of an API key rule. *OrgsApi* | [**OrgsCustomDomainsList**](docs/OrgsApi.md#orgscustomdomainslist) | **Get** /orgs/{org}/custom-domains/ | Get the details for all custom domains. *OrgsApi* | [**OrgsDelete**](docs/OrgsApi.md#orgsdelete) | **Delete** /orgs/{org}/ | Delete the specified organization. *OrgsApi* | [**OrgsDenyPolicyCreate**](docs/OrgsApi.md#orgsdenypolicycreate) | **Post** /orgs/{org}/deny-policy/ | Create a package deny policy. @@ -490,6 +496,8 @@ Class | Method | HTTP request | Description - [ConnectedRepository](docs/ConnectedRepository.md) - [ConnectedRepositoryRequest](docs/ConnectedRepositoryRequest.md) - [ConnectedRepositoryRequestPatch](docs/ConnectedRepositoryRequestPatch.md) + - [ConnectedRepositoryTargetSummary](docs/ConnectedRepositoryTargetSummary.md) + - [ConnectedRepositoryUpstream](docs/ConnectedRepositoryUpstream.md) - [CranPackageUpload](docs/CranPackageUpload.md) - [CranPackageUploadRequest](docs/CranPackageUploadRequest.md) - [CranUpstream](docs/CranUpstream.md) @@ -582,6 +590,9 @@ Class | Method | HTTP request | Description - [Oidc1](docs/Oidc1.md) - [OidcRequest](docs/OidcRequest.md) - [Organization](docs/Organization.md) + - [OrganizationApiKeyRule](docs/OrganizationApiKeyRule.md) + - [OrganizationApiKeyRuleRequest](docs/OrganizationApiKeyRuleRequest.md) + - [OrganizationApiKeyRuleRequestPatch](docs/OrganizationApiKeyRuleRequestPatch.md) - [OrganizationCustomDomainNestedRepo](docs/OrganizationCustomDomainNestedRepo.md) - [OrganizationCustomDomains](docs/OrganizationCustomDomains.md) - [OrganizationGroupSync](docs/OrganizationGroupSync.md) diff --git a/api/openapi.yaml b/api/openapi.yaml index f898c90c..385748b5 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -10,7 +10,7 @@ info: url: https://opensource.org/licenses/MIT termsOfService: https://help.cloudsmith.io title: Cloudsmith API (v1) - version: 1.1358.3 + version: 1.1388.0 servers: - url: https://api.cloudsmith.io/ security: @@ -1736,6 +1736,234 @@ paths: summary: Get the details for the specific organization. tags: - orgs + /orgs/{org}/api-key-rules/: + get: + description: List all API key rules for the organization. + operationId: orgs_api-key-rules_list + parameters: + - in: path + name: org + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/OrganizationApiKeyRule' + type: array + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorDetail' + description: Request could not be processed (see detail). + "422": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorDetail' + description: Missing or invalid parameters (see detail). + summary: List all API key rules for the organization. + tags: + - orgs + post: + description: Create an API key rule. + operationId: orgs_api-key-rules_create + parameters: + - in: path + name: org + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/OrganizationApiKeyRuleRequest' + required: false + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/OrganizationApiKeyRule' + description: Created + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorDetail' + description: Request could not be processed (see detail). + "422": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorDetail' + description: Missing or invalid parameters (see detail). + summary: Create an API key rule. + tags: + - orgs + x-codegen-request-body-name: data + /orgs/{org}/api-key-rules/{slug_perm}/: + delete: + description: Delete an API key rule. + operationId: orgs_api-key-rules_delete + parameters: + - in: path + name: org + required: true + schema: + type: string + - in: path + name: slug_perm + required: true + schema: + type: string + responses: + "204": + content: {} + description: No Content + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorDetail' + description: Request could not be processed (see detail). + "422": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorDetail' + description: Missing or invalid parameters (see detail). + summary: Delete an API key rule. + tags: + - orgs + get: + description: Retrieve an API key rule. + operationId: orgs_api-key-rules_read + parameters: + - in: path + name: org + required: true + schema: + type: string + - in: path + name: slug_perm + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/OrganizationApiKeyRule' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorDetail' + description: Request could not be processed (see detail). + "422": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorDetail' + description: Missing or invalid parameters (see detail). + summary: Retrieve an API key rule. + tags: + - orgs + patch: + description: Update an API key rule. + operationId: orgs_api-key-rules_partial_update + parameters: + - in: path + name: org + required: true + schema: + type: string + - in: path + name: slug_perm + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/OrganizationApiKeyRuleRequestPatch' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/OrganizationApiKeyRule' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorDetail' + description: Request could not be processed (see detail). + "422": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorDetail' + description: Missing or invalid parameters (see detail). + summary: Update an API key rule. + tags: + - orgs + x-codegen-request-body-name: data + put: + description: Full update of an API key rule. + operationId: orgs_api-key-rules_update + parameters: + - in: path + name: org + required: true + schema: + type: string + - in: path + name: slug_perm + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/OrganizationApiKeyRuleRequest' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/OrganizationApiKeyRule' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorDetail' + description: Request could not be processed (see detail). + "422": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorDetail' + description: Missing or invalid parameters (see detail). + summary: Full update of an API key rule. + tags: + - orgs + x-codegen-request-body-name: data /orgs/{org}/custom-domains/: get: description: Get the details for all custom domains. @@ -4933,7 +5161,9 @@ paths: default: false type: boolean - description: "A search term for querying names, filenames, versions, distributions,\ - \ architectures, formats or statuses of packages." + \ architectures, formats, statuses or display sources (display_source:upstream,\ + \ display_source:manual_upload, display_source:connected_repository) of\ + \ packages." in: query name: query schema: @@ -19300,6 +19530,169 @@ components: required: - name type: object + OrganizationApiKeyRule: + example: + is_enabled: true + max_age_hours: 171976566 + rule_type: All Accounts + updated_at: 2000-01-23T04:56:07.000+00:00 + enforce_refresh: true + created_at: 2000-01-23T04:56:07.000+00:00 + last_applied_at: 2000-01-23T04:56:07.000+00:00 + slug_perm: slug_perm + slug: slug + properties: + created_at: + format: date-time + readOnly: true + title: Created at + type: string + enforce_refresh: + description: "When enabled, API keys that violate the organization's rule\ + \ will be replaced automatically." + title: Enforce automatic API key refresh + type: boolean + is_enabled: + description: Whether this rule is currently active and enforced. + title: Policy enabled + type: boolean + last_applied_at: + description: The last time this rule was evaluated and applied by the expiry + task. + format: date-time + readOnly: true + title: Last applied at + type: string + max_age_hours: + description: The maximum permitted age of an API key for use in the organization. + API keys older than this will no longer have access until they are refreshed. + To disable the rule unset this value. + maximum: 2147483647 + minimum: 24 + nullable: true + title: Maximum permitted API key age + type: integer + rule_type: + description: "Specify which account types this rule applies to: all accounts\ + \ (deprecated — prefer separate service/user rules), service accounts\ + \ only, or user accounts only." + enum: + - All Accounts + - Service Accounts + - User Accounts + title: Rule type + type: string + slug: + description: Human-readable identifier for the rule type. Automatically + generated based on the rule type. + format: slug + minLength: 1 + pattern: "^[-a-zA-Z0-9_]+$" + readOnly: true + title: Slug + type: string + slug_perm: + description: An auto-generated id that uniquely identifies the API key policy. + format: slug + minLength: 1 + pattern: "^[-a-zA-Z0-9_]+$" + readOnly: true + title: Slug perm + type: string + updated_at: + format: date-time + readOnly: true + title: Updated at + type: string + required: + - rule_type + type: object + OrganizationApiKeyRuleRequest: + example: + is_enabled: true + max_age_hours: 171976566 + rule_type: All Accounts + enforce_refresh: true + refresh_immediately: true + properties: + enforce_refresh: + description: "When enabled, API keys that violate the organization's rule\ + \ will be replaced automatically." + title: Enforce automatic API key refresh + type: boolean + is_enabled: + description: Whether this rule is currently active and enforced. + title: Policy enabled + type: boolean + max_age_hours: + description: The maximum permitted age of an API key for use in the organization. + API keys older than this will no longer have access until they are refreshed. + To disable the rule unset this value. + maximum: 2147483647 + minimum: 24 + nullable: true + title: Maximum permitted API key age + type: integer + refresh_immediately: + description: "If set to True, API keys that violate this rule will be replaced\ + \ immediately after the request is made. There is no way to undo this." + title: Refresh immediately + type: boolean + rule_type: + description: "Specify which account types this rule applies to: all accounts\ + \ (deprecated — prefer separate service/user rules), service accounts\ + \ only, or user accounts only." + enum: + - All Accounts + - Service Accounts + - User Accounts + title: Rule type + type: string + required: + - rule_type + type: object + OrganizationApiKeyRuleRequestPatch: + example: + is_enabled: true + max_age_hours: 171976566 + rule_type: All Accounts + enforce_refresh: true + refresh_immediately: true + properties: + enforce_refresh: + description: "When enabled, API keys that violate the organization's rule\ + \ will be replaced automatically." + title: Enforce automatic API key refresh + type: boolean + is_enabled: + description: Whether this rule is currently active and enforced. + title: Policy enabled + type: boolean + max_age_hours: + description: The maximum permitted age of an API key for use in the organization. + API keys older than this will no longer have access until they are refreshed. + To disable the rule unset this value. + maximum: 2147483647 + minimum: 24 + nullable: true + title: Maximum permitted API key age + type: integer + refresh_immediately: + description: "If set to True, API keys that violate this rule will be replaced\ + \ immediately after the request is made. There is no way to undo this." + title: Refresh immediately + type: boolean + rule_type: + description: "Specify which account types this rule applies to: all accounts\ + \ (deprecated — prefer separate service/user rules), service accounts\ + \ only, or user accounts only." + enum: + - All Accounts + - Service Accounts + - User Accounts + title: Rule type + type: string + type: object OrganizationCustomDomainNestedRepo: example: name: name @@ -19809,62 +20202,10 @@ components: title: User url type: string type: object - WebOSVSeverityCounts: - description: Per-severity OSV vulnerability counts for non-hidden matches. Requires - Ultra plan. - example: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 - nullable: true - properties: - critical: - readOnly: true - title: Critical - type: integer - high: - readOnly: true - title: High - type: integer - low: - readOnly: true - title: Low - type: integer - malware: - readOnly: true - title: Malware - type: integer - medium: - readOnly: true - title: Medium - type: integer - total: - readOnly: true - title: Total - type: integer - unknown: - readOnly: true - title: Unknown - type: integer - type: object - x-nullable: true PackageVulnerability: example: identifier: identifier name: name - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 - is_malware_detected: true version: version url: https://openapi-generator.tech properties: @@ -19872,12 +20213,6 @@ components: minLength: 1 title: Identifier type: string - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean name: description: The name of this package. nullable: true @@ -19896,8 +20231,6 @@ components: readOnly: true title: Version type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' required: - identifier type: object @@ -19976,15 +20309,6 @@ components: package: identifier: identifier name: name - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 - is_malware_detected: true version: version url: https://openapi-generator.tech reasons: @@ -21615,15 +21939,6 @@ components: package: identifier: identifier name: name - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 - is_malware_detected: true version: version url: https://openapi-generator.tech reasons: @@ -21996,6 +22311,49 @@ components: \ tags, but doesn't distinguish them from mutable. To see which tags are immutable\ \ specifically, see the tags_immutable field." type: object + WebOSVSeverityCounts: + description: Per-severity OSV vulnerability counts for non-hidden matches. Requires + Ultra plan. + example: + high: 1 + total: 7 + malware: 1 + critical: 7 + low: 1 + medium: 6 + unknown: 1 + nullable: true + properties: + critical: + readOnly: true + title: Critical + type: integer + high: + readOnly: true + title: High + type: integer + low: + readOnly: true + title: Low + type: integer + malware: + readOnly: true + title: Malware + type: integer + medium: + readOnly: true + title: Medium + type: integer + total: + readOnly: true + title: Total + type: integer + unknown: + readOnly: true + title: Unknown + type: integer + type: object + x-nullable: true Package: example: architectures: @@ -22027,6 +22385,7 @@ components: version_orig: version_orig namespace_url: https://openapi-generator.tech display_name: display_name + display_source: display_source slug_perm: slug_perm spdx_license: spdx_license version: version @@ -22117,13 +22476,13 @@ components: checksum_md5: checksum_md5 sync_progress: 4 vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 + high: 1 + total: 7 + malware: 1 + critical: 7 low: 1 - medium: 5 - unknown: 7 + medium: 6 + unknown: 1 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -22187,6 +22546,15 @@ components: readOnly: true title: Display name type: string + display_source: + description: "Where the package originated, for example: 'upstream' (proxied/cached\ + \ from a configured upstream), 'connected_repository' (blended in from\ + \ a connected target repository), or 'manual_upload' (uploaded directly\ + \ to Cloudsmith)." + minLength: 1 + readOnly: true + title: Display source + type: string distro: $ref: '#/components/schemas/Distribution' distro_version: @@ -22663,16 +23031,7 @@ components: AlpinePackageUploadRequest: example: republish: true - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 distribution: distribution - is_malware_detected: true package_file: package_file tags: tags properties: @@ -22681,12 +23040,6 @@ components: minLength: 1 title: Distribution type: string - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean package_file: description: The primary file for the package. minLength: 1 @@ -22705,8 +23058,6 @@ components: nullable: true title: Tags type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' required: - distribution - package_file @@ -22721,7 +23072,6 @@ components: security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 release: release - is_malware_detected: true package_type: 5 repository: repository origin_repository: origin_repository @@ -22741,6 +23091,7 @@ components: version_orig: version_orig namespace_url: https://openapi-generator.tech display_name: display_name + display_source: display_source slug_perm: slug_perm spdx_license: spdx_license version: version @@ -22829,14 +23180,6 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 3 - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -22900,6 +23243,15 @@ components: readOnly: true title: Display name type: string + display_source: + description: "Where the package originated, for example: 'upstream' (proxied/cached\ + \ from a configured upstream), 'connected_repository' (blended in from\ + \ a connected target repository), or 'manual_upload' (uploaded directly\ + \ to Cloudsmith)." + minLength: 1 + readOnly: true + title: Display source + type: string distro: $ref: '#/components/schemas/Distribution' distro_version: @@ -22987,12 +23339,6 @@ components: readOnly: true title: Is hidden type: boolean - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean is_moveable: readOnly: true title: Is moveable @@ -23314,8 +23660,6 @@ components: readOnly: true title: Version orig type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -23325,24 +23669,9 @@ components: CargoPackageUploadRequest: example: republish: true - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 - is_malware_detected: true package_file: package_file tags: tags properties: - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean package_file: description: The primary file for the package. minLength: 1 @@ -23361,8 +23690,6 @@ components: nullable: true title: Tags type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' required: - package_file type: object @@ -23376,7 +23703,6 @@ components: security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 release: release - is_malware_detected: true package_type: 5 repository: repository origin_repository: origin_repository @@ -23396,6 +23722,7 @@ components: version_orig: version_orig namespace_url: https://openapi-generator.tech display_name: display_name + display_source: display_source slug_perm: slug_perm spdx_license: spdx_license version: version @@ -23484,14 +23811,6 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 3 - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -23555,6 +23874,15 @@ components: readOnly: true title: Display name type: string + display_source: + description: "Where the package originated, for example: 'upstream' (proxied/cached\ + \ from a configured upstream), 'connected_repository' (blended in from\ + \ a connected target repository), or 'manual_upload' (uploaded directly\ + \ to Cloudsmith)." + minLength: 1 + readOnly: true + title: Display source + type: string distro: $ref: '#/components/schemas/Distribution' distro_version: @@ -23642,12 +23970,6 @@ components: readOnly: true title: Is hidden type: boolean - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean is_moveable: readOnly: true title: Is moveable @@ -23969,8 +24291,6 @@ components: readOnly: true title: Version orig type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -23980,24 +24300,9 @@ components: CocoapodsPackageUploadRequest: example: republish: true - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 - is_malware_detected: true package_file: package_file tags: tags properties: - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean package_file: description: The primary file for the package. minLength: 1 @@ -24016,8 +24321,6 @@ components: nullable: true title: Tags type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' required: - package_file type: object @@ -24031,7 +24334,6 @@ components: security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 release: release - is_malware_detected: true package_type: 5 repository: repository origin_repository: origin_repository @@ -24051,6 +24353,7 @@ components: version_orig: version_orig namespace_url: https://openapi-generator.tech display_name: display_name + display_source: display_source slug_perm: slug_perm spdx_license: spdx_license version: version @@ -24139,14 +24442,6 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 3 - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -24210,6 +24505,15 @@ components: readOnly: true title: Display name type: string + display_source: + description: "Where the package originated, for example: 'upstream' (proxied/cached\ + \ from a configured upstream), 'connected_repository' (blended in from\ + \ a connected target repository), or 'manual_upload' (uploaded directly\ + \ to Cloudsmith)." + minLength: 1 + readOnly: true + title: Display source + type: string distro: $ref: '#/components/schemas/Distribution' distro_version: @@ -24297,12 +24601,6 @@ components: readOnly: true title: Is hidden type: boolean - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean is_moveable: readOnly: true title: Is moveable @@ -24624,8 +24922,6 @@ components: readOnly: true title: Version orig type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -24635,25 +24931,10 @@ components: ComposerPackageUploadRequest: example: republish: true - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 - is_malware_detected: true package_file: package_file version: version tags: tags properties: - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean package_file: description: The primary file for the package. minLength: 1 @@ -24678,8 +24959,6 @@ components: nullable: true title: Version type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' required: - package_file type: object @@ -24693,7 +24972,6 @@ components: security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 release: release - is_malware_detected: true package_type: 5 repository: repository origin_repository: origin_repository @@ -24713,6 +24991,7 @@ components: version_orig: version_orig namespace_url: https://openapi-generator.tech display_name: display_name + display_source: display_source slug_perm: slug_perm spdx_license: spdx_license version: version @@ -24801,14 +25080,6 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 3 - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -24872,6 +25143,15 @@ components: readOnly: true title: Display name type: string + display_source: + description: "Where the package originated, for example: 'upstream' (proxied/cached\ + \ from a configured upstream), 'connected_repository' (blended in from\ + \ a connected target repository), or 'manual_upload' (uploaded directly\ + \ to Cloudsmith)." + minLength: 1 + readOnly: true + title: Display source + type: string distro: $ref: '#/components/schemas/Distribution' distro_version: @@ -24959,12 +25239,6 @@ components: readOnly: true title: Is hidden type: boolean - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean is_moveable: readOnly: true title: Is moveable @@ -25286,8 +25560,6 @@ components: readOnly: true title: Version orig type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -25299,15 +25571,6 @@ components: republish: true name: name metadata_file: metadata_file - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 - is_malware_detected: true package_file: package_file conan_prefix: conan_prefix version: version @@ -25335,12 +25598,6 @@ components: minLength: 1 title: Info file type: string - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean manifest_file: description: The info file is an python file containing the package metadata. minLength: 1 @@ -25381,8 +25638,6 @@ components: nullable: true title: Version type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' required: - info_file - manifest_file @@ -25399,7 +25654,6 @@ components: security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 release: release - is_malware_detected: true package_type: 5 repository: repository origin_repository: origin_repository @@ -25419,6 +25673,7 @@ components: version_orig: version_orig namespace_url: https://openapi-generator.tech display_name: display_name + display_source: display_source slug_perm: slug_perm spdx_license: spdx_license version: version @@ -25509,14 +25764,6 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 3 - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -25594,6 +25841,15 @@ components: readOnly: true title: Display name type: string + display_source: + description: "Where the package originated, for example: 'upstream' (proxied/cached\ + \ from a configured upstream), 'connected_repository' (blended in from\ + \ a connected target repository), or 'manual_upload' (uploaded directly\ + \ to Cloudsmith)." + minLength: 1 + readOnly: true + title: Display source + type: string distro: $ref: '#/components/schemas/Distribution' distro_version: @@ -25681,12 +25937,6 @@ components: readOnly: true title: Is hidden type: boolean - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean is_moveable: readOnly: true title: Is moveable @@ -26008,8 +26258,6 @@ components: readOnly: true title: Version orig type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -26019,24 +26267,9 @@ components: CondaPackageUploadRequest: example: republish: true - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 - is_malware_detected: true package_file: package_file tags: tags properties: - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean package_file: description: The primary file for the package. minLength: 1 @@ -26055,8 +26288,6 @@ components: nullable: true title: Tags type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' required: - package_file type: object @@ -26070,7 +26301,6 @@ components: security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 release: release - is_malware_detected: true package_type: 5 repository: repository origin_repository: origin_repository @@ -26090,6 +26320,7 @@ components: version_orig: version_orig namespace_url: https://openapi-generator.tech display_name: display_name + display_source: display_source slug_perm: slug_perm spdx_license: spdx_license version: version @@ -26178,14 +26409,6 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 3 - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -26249,6 +26472,15 @@ components: readOnly: true title: Display name type: string + display_source: + description: "Where the package originated, for example: 'upstream' (proxied/cached\ + \ from a configured upstream), 'connected_repository' (blended in from\ + \ a connected target repository), or 'manual_upload' (uploaded directly\ + \ to Cloudsmith)." + minLength: 1 + readOnly: true + title: Display source + type: string distro: $ref: '#/components/schemas/Distribution' distro_version: @@ -26336,12 +26568,6 @@ components: readOnly: true title: Is hidden type: boolean - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean is_moveable: readOnly: true title: Is moveable @@ -26663,8 +26889,6 @@ components: readOnly: true title: Version orig type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -26675,15 +26899,6 @@ components: example: republish: true r_version: r_version - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 - is_malware_detected: true package_file: package_file architecture: architecture tags: tags @@ -26694,12 +26909,6 @@ components: minLength: 1 title: Architecture type: string - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean package_file: description: The primary file for the package. minLength: 1 @@ -26726,8 +26935,6 @@ components: nullable: true title: Tags type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' required: - package_file type: object @@ -26741,7 +26948,6 @@ components: security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 release: release - is_malware_detected: true package_type: 5 repository: repository origin_repository: origin_repository @@ -26761,6 +26967,7 @@ components: version_orig: version_orig namespace_url: https://openapi-generator.tech display_name: display_name + display_source: display_source slug_perm: slug_perm spdx_license: spdx_license version: version @@ -26849,14 +27056,6 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 3 - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -26921,6 +27120,15 @@ components: readOnly: true title: Display name type: string + display_source: + description: "Where the package originated, for example: 'upstream' (proxied/cached\ + \ from a configured upstream), 'connected_repository' (blended in from\ + \ a connected target repository), or 'manual_upload' (uploaded directly\ + \ to Cloudsmith)." + minLength: 1 + readOnly: true + title: Display source + type: string distro: $ref: '#/components/schemas/Distribution' distro_version: @@ -27008,12 +27216,6 @@ components: readOnly: true title: Is hidden type: boolean - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean is_moveable: readOnly: true title: Is moveable @@ -27343,8 +27545,6 @@ components: readOnly: true title: Version orig type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -27354,24 +27554,9 @@ components: DartPackageUploadRequest: example: republish: true - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 - is_malware_detected: true package_file: package_file tags: tags properties: - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean package_file: description: The primary file for the package. minLength: 1 @@ -27390,8 +27575,6 @@ components: nullable: true title: Tags type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' required: - package_file type: object @@ -27405,7 +27588,6 @@ components: security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 release: release - is_malware_detected: true package_type: 5 repository: repository origin_repository: origin_repository @@ -27425,6 +27607,7 @@ components: version_orig: version_orig namespace_url: https://openapi-generator.tech display_name: display_name + display_source: display_source slug_perm: slug_perm spdx_license: spdx_license version: version @@ -27513,14 +27696,6 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 3 - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -27584,6 +27759,15 @@ components: readOnly: true title: Display name type: string + display_source: + description: "Where the package originated, for example: 'upstream' (proxied/cached\ + \ from a configured upstream), 'connected_repository' (blended in from\ + \ a connected target repository), or 'manual_upload' (uploaded directly\ + \ to Cloudsmith)." + minLength: 1 + readOnly: true + title: Display source + type: string distro: $ref: '#/components/schemas/Distribution' distro_version: @@ -27671,12 +27855,6 @@ components: readOnly: true title: Is hidden type: boolean - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean is_moveable: readOnly: true title: Is moveable @@ -27998,8 +28176,6 @@ components: readOnly: true title: Version orig type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -28012,16 +28188,7 @@ components: component: main republish: true changes_file: changes_file - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 distribution: distribution - is_malware_detected: true package_file: package_file tags: tags properties: @@ -28046,12 +28213,6 @@ components: minLength: 1 title: Distribution type: string - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean package_file: description: The primary file for the package. minLength: 1 @@ -28076,8 +28237,6 @@ components: nullable: true title: Tags type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' required: - distribution - package_file @@ -28092,7 +28251,6 @@ components: security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 release: release - is_malware_detected: true package_type: 5 repository: repository origin_repository: origin_repository @@ -28112,6 +28270,7 @@ components: version_orig: version_orig namespace_url: https://openapi-generator.tech display_name: display_name + display_source: display_source slug_perm: slug_perm spdx_license: spdx_license version: version @@ -28200,14 +28359,6 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 3 - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -28271,6 +28422,15 @@ components: readOnly: true title: Display name type: string + display_source: + description: "Where the package originated, for example: 'upstream' (proxied/cached\ + \ from a configured upstream), 'connected_repository' (blended in from\ + \ a connected target repository), or 'manual_upload' (uploaded directly\ + \ to Cloudsmith)." + minLength: 1 + readOnly: true + title: Display source + type: string distro: $ref: '#/components/schemas/Distribution' distro_version: @@ -28358,12 +28518,6 @@ components: readOnly: true title: Is hidden type: boolean - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean is_moveable: readOnly: true title: Is moveable @@ -28685,8 +28839,6 @@ components: readOnly: true title: Version orig type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -28696,24 +28848,9 @@ components: DockerPackageUploadRequest: example: republish: true - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 - is_malware_detected: true package_file: package_file tags: tags properties: - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean package_file: description: The primary file for the package. minLength: 1 @@ -28732,8 +28869,6 @@ components: nullable: true title: Tags type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' required: - package_file type: object @@ -28747,7 +28882,6 @@ components: security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 release: release - is_malware_detected: true package_type: 5 repository: repository origin_repository: origin_repository @@ -28767,6 +28901,7 @@ components: version_orig: version_orig namespace_url: https://openapi-generator.tech display_name: display_name + display_source: display_source slug_perm: slug_perm spdx_license: spdx_license version: version @@ -28855,14 +28990,6 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 3 - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -28926,6 +29053,15 @@ components: readOnly: true title: Display name type: string + display_source: + description: "Where the package originated, for example: 'upstream' (proxied/cached\ + \ from a configured upstream), 'connected_repository' (blended in from\ + \ a connected target repository), or 'manual_upload' (uploaded directly\ + \ to Cloudsmith)." + minLength: 1 + readOnly: true + title: Display source + type: string distro: $ref: '#/components/schemas/Distribution' distro_version: @@ -29013,12 +29149,6 @@ components: readOnly: true title: Is hidden type: boolean - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean is_moveable: readOnly: true title: Is moveable @@ -29340,8 +29470,6 @@ components: readOnly: true title: Version orig type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -29353,15 +29481,6 @@ components: filepath: filepath republish: true name: name - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 - is_malware_detected: true package_file: package_file version: version tags: tags @@ -29372,12 +29491,6 @@ components: minLength: 1 title: Filepath type: string - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean name: description: The name of this package. maxLength: 200 @@ -29408,8 +29521,6 @@ components: nullable: true title: Version type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' required: - filepath - package_file @@ -29424,7 +29535,6 @@ components: security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 release: release - is_malware_detected: true package_type: 5 repository: repository origin_repository: origin_repository @@ -29444,6 +29554,7 @@ components: version_orig: version_orig namespace_url: https://openapi-generator.tech display_name: display_name + display_source: display_source slug_perm: slug_perm spdx_license: spdx_license version: version @@ -29532,14 +29643,6 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 3 - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -29603,6 +29706,15 @@ components: readOnly: true title: Display name type: string + display_source: + description: "Where the package originated, for example: 'upstream' (proxied/cached\ + \ from a configured upstream), 'connected_repository' (blended in from\ + \ a connected target repository), or 'manual_upload' (uploaded directly\ + \ to Cloudsmith)." + minLength: 1 + readOnly: true + title: Display source + type: string distro: $ref: '#/components/schemas/Distribution' distro_version: @@ -29690,12 +29802,6 @@ components: readOnly: true title: Is hidden type: boolean - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean is_moveable: readOnly: true title: Is moveable @@ -30017,8 +30123,6 @@ components: readOnly: true title: Version orig type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -30028,24 +30132,9 @@ components: GoPackageUploadRequest: example: republish: true - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 - is_malware_detected: true package_file: package_file tags: tags properties: - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean package_file: description: The primary file for the package. minLength: 1 @@ -30064,8 +30153,6 @@ components: nullable: true title: Tags type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' required: - package_file type: object @@ -30079,7 +30166,6 @@ components: security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 release: release - is_malware_detected: true package_type: 5 repository: repository origin_repository: origin_repository @@ -30099,6 +30185,7 @@ components: version_orig: version_orig namespace_url: https://openapi-generator.tech display_name: display_name + display_source: display_source slug_perm: slug_perm spdx_license: spdx_license version: version @@ -30187,14 +30274,6 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 3 - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -30258,6 +30337,15 @@ components: readOnly: true title: Display name type: string + display_source: + description: "Where the package originated, for example: 'upstream' (proxied/cached\ + \ from a configured upstream), 'connected_repository' (blended in from\ + \ a connected target repository), or 'manual_upload' (uploaded directly\ + \ to Cloudsmith)." + minLength: 1 + readOnly: true + title: Display source + type: string distro: $ref: '#/components/schemas/Distribution' distro_version: @@ -30345,12 +30433,6 @@ components: readOnly: true title: Is hidden type: boolean - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean is_moveable: readOnly: true title: Is moveable @@ -30672,8 +30754,6 @@ components: readOnly: true title: Version orig type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -30684,24 +30764,9 @@ components: example: provenance_file: provenance_file republish: true - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 - is_malware_detected: true package_file: package_file tags: tags properties: - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean package_file: description: The primary file for the package. minLength: 1 @@ -30727,8 +30792,6 @@ components: nullable: true title: Tags type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' required: - package_file type: object @@ -30742,7 +30805,6 @@ components: security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 release: release - is_malware_detected: true package_type: 5 repository: repository origin_repository: origin_repository @@ -30762,6 +30824,7 @@ components: version_orig: version_orig namespace_url: https://openapi-generator.tech display_name: display_name + display_source: display_source slug_perm: slug_perm spdx_license: spdx_license version: version @@ -30850,14 +30913,6 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 3 - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -30921,6 +30976,15 @@ components: readOnly: true title: Display name type: string + display_source: + description: "Where the package originated, for example: 'upstream' (proxied/cached\ + \ from a configured upstream), 'connected_repository' (blended in from\ + \ a connected target repository), or 'manual_upload' (uploaded directly\ + \ to Cloudsmith)." + minLength: 1 + readOnly: true + title: Display source + type: string distro: $ref: '#/components/schemas/Distribution' distro_version: @@ -31008,12 +31072,6 @@ components: readOnly: true title: Is hidden type: boolean - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean is_moveable: readOnly: true title: Is moveable @@ -31335,8 +31393,6 @@ components: readOnly: true title: Version orig type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -31346,24 +31402,9 @@ components: HexPackageUploadRequest: example: republish: true - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 - is_malware_detected: true package_file: package_file tags: tags properties: - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean package_file: description: The primary file for the package. minLength: 1 @@ -31382,8 +31423,6 @@ components: nullable: true title: Tags type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' required: - package_file type: object @@ -31397,7 +31436,6 @@ components: security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 release: release - is_malware_detected: true package_type: 5 repository: repository origin_repository: origin_repository @@ -31417,6 +31455,7 @@ components: version_orig: version_orig namespace_url: https://openapi-generator.tech display_name: display_name + display_source: display_source slug_perm: slug_perm spdx_license: spdx_license version: version @@ -31505,14 +31544,6 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 3 - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -31576,6 +31607,15 @@ components: readOnly: true title: Display name type: string + display_source: + description: "Where the package originated, for example: 'upstream' (proxied/cached\ + \ from a configured upstream), 'connected_repository' (blended in from\ + \ a connected target repository), or 'manual_upload' (uploaded directly\ + \ to Cloudsmith)." + minLength: 1 + readOnly: true + title: Display source + type: string distro: $ref: '#/components/schemas/Distribution' distro_version: @@ -31663,12 +31703,6 @@ components: readOnly: true title: Is hidden type: boolean - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean is_moveable: readOnly: true title: Is moveable @@ -31990,8 +32024,6 @@ components: readOnly: true title: Version orig type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -32001,24 +32033,9 @@ components: HuggingfacePackageUploadRequest: example: republish: true - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 - is_malware_detected: true package_file: package_file tags: tags properties: - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean package_file: description: The primary file for the package. minLength: 1 @@ -32037,8 +32054,6 @@ components: nullable: true title: Tags type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' required: - package_file type: object @@ -32052,7 +32067,6 @@ components: security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 release: release - is_malware_detected: true package_type: 5 repository: repository origin_repository: origin_repository @@ -32072,6 +32086,7 @@ components: version_orig: version_orig namespace_url: https://openapi-generator.tech display_name: display_name + display_source: display_source slug_perm: slug_perm spdx_license: spdx_license version: version @@ -32160,14 +32175,6 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 3 - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -32231,6 +32238,15 @@ components: readOnly: true title: Display name type: string + display_source: + description: "Where the package originated, for example: 'upstream' (proxied/cached\ + \ from a configured upstream), 'connected_repository' (blended in from\ + \ a connected target repository), or 'manual_upload' (uploaded directly\ + \ to Cloudsmith)." + minLength: 1 + readOnly: true + title: Display source + type: string distro: $ref: '#/components/schemas/Distribution' distro_version: @@ -32318,12 +32334,6 @@ components: readOnly: true title: Is hidden type: boolean - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean is_moveable: readOnly: true title: Is moveable @@ -32645,8 +32655,6 @@ components: readOnly: true title: Version orig type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -32656,24 +32664,9 @@ components: LuarocksPackageUploadRequest: example: republish: true - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 - is_malware_detected: true package_file: package_file tags: tags properties: - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean package_file: description: The primary file for the package. minLength: 1 @@ -32692,8 +32685,6 @@ components: nullable: true title: Tags type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' required: - package_file type: object @@ -32707,7 +32698,6 @@ components: security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 release: release - is_malware_detected: true package_type: 5 repository: repository origin_repository: origin_repository @@ -32727,6 +32717,7 @@ components: version_orig: version_orig namespace_url: https://openapi-generator.tech display_name: display_name + display_source: display_source slug_perm: slug_perm spdx_license: spdx_license version: version @@ -32815,14 +32806,6 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 3 - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -32886,6 +32869,15 @@ components: readOnly: true title: Display name type: string + display_source: + description: "Where the package originated, for example: 'upstream' (proxied/cached\ + \ from a configured upstream), 'connected_repository' (blended in from\ + \ a connected target repository), or 'manual_upload' (uploaded directly\ + \ to Cloudsmith)." + minLength: 1 + readOnly: true + title: Display source + type: string distro: $ref: '#/components/schemas/Distribution' distro_version: @@ -32973,12 +32965,6 @@ components: readOnly: true title: Is hidden type: boolean - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean is_moveable: readOnly: true title: Is moveable @@ -33300,8 +33286,6 @@ components: readOnly: true title: Version orig type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -33311,17 +33295,8 @@ components: MavenPackageUploadRequest: example: javadoc_file: javadoc_file - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 packaging: packaging artifact_id: artifact_id - is_malware_detected: true package_file: package_file version: version pom_file: pom_file @@ -33357,12 +33332,6 @@ components: nullable: true title: Group id type: string - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean ivy_file: description: The ivy file is an XML file describing the dependencies of the project. @@ -33434,8 +33403,6 @@ components: nullable: true title: Version type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' required: - package_file type: object @@ -33450,7 +33417,6 @@ components: checksum_sha256: checksum_sha256 release: release artifact_id: artifact_id - is_malware_detected: true package_type: 5 repository: repository origin_repository: origin_repository @@ -33470,6 +33436,7 @@ components: version_orig: version_orig namespace_url: https://openapi-generator.tech display_name: display_name + display_source: display_source slug_perm: slug_perm spdx_license: spdx_license version: version @@ -33558,14 +33525,6 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 3 - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 is_sync_awaiting: true packaging: packaging uploader_url: https://openapi-generator.tech @@ -33639,6 +33598,15 @@ components: readOnly: true title: Display name type: string + display_source: + description: "Where the package originated, for example: 'upstream' (proxied/cached\ + \ from a configured upstream), 'connected_repository' (blended in from\ + \ a connected target repository), or 'manual_upload' (uploaded directly\ + \ to Cloudsmith)." + minLength: 1 + readOnly: true + title: Display source + type: string distro: $ref: '#/components/schemas/Distribution' distro_version: @@ -33732,12 +33700,6 @@ components: readOnly: true title: Is hidden type: boolean - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean is_moveable: readOnly: true title: Is moveable @@ -34075,8 +34037,6 @@ components: readOnly: true title: Version orig type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -34086,25 +34046,10 @@ components: McpPackageUploadRequest: example: republish: true - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 - is_malware_detected: true package_file: package_file version: version tags: tags properties: - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean package_file: description: The primary file for the package. minLength: 1 @@ -34129,8 +34074,6 @@ components: nullable: true title: Version type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' required: - package_file type: object @@ -34144,7 +34087,6 @@ components: security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 release: release - is_malware_detected: true package_type: 5 repository: repository origin_repository: origin_repository @@ -34164,6 +34106,7 @@ components: version_orig: version_orig namespace_url: https://openapi-generator.tech display_name: display_name + display_source: display_source slug_perm: slug_perm spdx_license: spdx_license version: version @@ -34252,14 +34195,6 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 3 - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -34323,6 +34258,15 @@ components: readOnly: true title: Display name type: string + display_source: + description: "Where the package originated, for example: 'upstream' (proxied/cached\ + \ from a configured upstream), 'connected_repository' (blended in from\ + \ a connected target repository), or 'manual_upload' (uploaded directly\ + \ to Cloudsmith)." + minLength: 1 + readOnly: true + title: Display source + type: string distro: $ref: '#/components/schemas/Distribution' distro_version: @@ -34410,12 +34354,6 @@ components: readOnly: true title: Is hidden type: boolean - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean is_moveable: readOnly: true title: Is moveable @@ -34737,8 +34675,6 @@ components: readOnly: true title: Version orig type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -34748,26 +34684,11 @@ components: NixPackageUploadRequest: example: republish: true - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 narinfo_file: narinfo_file - is_malware_detected: true package_file: package_file version: version tags: tags properties: - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean narinfo_file: description: The narinfo sidecar metadata file (.narinfo). Optional — the package can be completed later by publishing the matching narinfo @@ -34800,8 +34721,6 @@ components: nullable: true title: Version type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' required: - package_file type: object @@ -34815,7 +34734,6 @@ components: security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 release: release - is_malware_detected: true package_type: 5 repository: repository origin_repository: origin_repository @@ -34835,6 +34753,7 @@ components: version_orig: version_orig namespace_url: https://openapi-generator.tech display_name: display_name + display_source: display_source slug_perm: slug_perm spdx_license: spdx_license version: version @@ -34923,14 +34842,6 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 3 - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -34994,6 +34905,15 @@ components: readOnly: true title: Display name type: string + display_source: + description: "Where the package originated, for example: 'upstream' (proxied/cached\ + \ from a configured upstream), 'connected_repository' (blended in from\ + \ a connected target repository), or 'manual_upload' (uploaded directly\ + \ to Cloudsmith)." + minLength: 1 + readOnly: true + title: Display source + type: string distro: $ref: '#/components/schemas/Distribution' distro_version: @@ -35081,12 +35001,6 @@ components: readOnly: true title: Is hidden type: boolean - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean is_moveable: readOnly: true title: Is moveable @@ -35408,8 +35322,6 @@ components: readOnly: true title: Version orig type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -35419,25 +35331,10 @@ components: NpmPackageUploadRequest: example: republish: true - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 npm_dist_tag: latest - is_malware_detected: true package_file: package_file tags: tags properties: - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean npm_dist_tag: default: latest description: The default npm dist-tag for this package/version - This will @@ -35464,8 +35361,6 @@ components: nullable: true title: Tags type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' required: - package_file type: object @@ -35479,7 +35374,6 @@ components: security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 release: release - is_malware_detected: true package_type: 5 repository: repository origin_repository: origin_repository @@ -35499,6 +35393,7 @@ components: version_orig: version_orig namespace_url: https://openapi-generator.tech display_name: display_name + display_source: display_source slug_perm: slug_perm spdx_license: spdx_license version: version @@ -35587,14 +35482,6 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 3 - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -35658,6 +35545,15 @@ components: readOnly: true title: Display name type: string + display_source: + description: "Where the package originated, for example: 'upstream' (proxied/cached\ + \ from a configured upstream), 'connected_repository' (blended in from\ + \ a connected target repository), or 'manual_upload' (uploaded directly\ + \ to Cloudsmith)." + minLength: 1 + readOnly: true + title: Display source + type: string distro: $ref: '#/components/schemas/Distribution' distro_version: @@ -35745,12 +35641,6 @@ components: readOnly: true title: Is hidden type: boolean - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean is_moveable: readOnly: true title: Is moveable @@ -36072,8 +35962,6 @@ components: readOnly: true title: Version orig type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -36084,24 +35972,9 @@ components: example: republish: true symbols_file: symbols_file - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 - is_malware_detected: true package_file: package_file tags: tags properties: - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean package_file: description: The primary file for the package. minLength: 1 @@ -36126,8 +35999,6 @@ components: nullable: true title: Tags type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' required: - package_file type: object @@ -36141,7 +36012,6 @@ components: security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 release: release - is_malware_detected: true package_type: 5 repository: repository origin_repository: origin_repository @@ -36161,6 +36031,7 @@ components: version_orig: version_orig namespace_url: https://openapi-generator.tech display_name: display_name + display_source: display_source slug_perm: slug_perm spdx_license: spdx_license version: version @@ -36249,14 +36120,6 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 3 - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -36320,6 +36183,15 @@ components: readOnly: true title: Display name type: string + display_source: + description: "Where the package originated, for example: 'upstream' (proxied/cached\ + \ from a configured upstream), 'connected_repository' (blended in from\ + \ a connected target repository), or 'manual_upload' (uploaded directly\ + \ to Cloudsmith)." + minLength: 1 + readOnly: true + title: Display source + type: string distro: $ref: '#/components/schemas/Distribution' distro_version: @@ -36407,12 +36279,6 @@ components: readOnly: true title: Is hidden type: boolean - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean is_moveable: readOnly: true title: Is moveable @@ -36734,8 +36600,6 @@ components: readOnly: true title: Version orig type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -36745,24 +36609,9 @@ components: P2PackageUploadRequest: example: republish: true - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 - is_malware_detected: true package_file: package_file tags: tags properties: - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean package_file: description: The primary file for the package. minLength: 1 @@ -36781,8 +36630,6 @@ components: nullable: true title: Tags type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' required: - package_file type: object @@ -36796,7 +36643,6 @@ components: security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 release: release - is_malware_detected: true package_type: 5 repository: repository origin_repository: origin_repository @@ -36816,6 +36662,7 @@ components: version_orig: version_orig namespace_url: https://openapi-generator.tech display_name: display_name + display_source: display_source slug_perm: slug_perm spdx_license: spdx_license version: version @@ -36904,14 +36751,6 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 3 - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -36975,6 +36814,15 @@ components: readOnly: true title: Display name type: string + display_source: + description: "Where the package originated, for example: 'upstream' (proxied/cached\ + \ from a configured upstream), 'connected_repository' (blended in from\ + \ a connected target repository), or 'manual_upload' (uploaded directly\ + \ to Cloudsmith)." + minLength: 1 + readOnly: true + title: Display source + type: string distro: $ref: '#/components/schemas/Distribution' distro_version: @@ -37062,12 +36910,6 @@ components: readOnly: true title: Is hidden type: boolean - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean is_moveable: readOnly: true title: Is moveable @@ -37389,8 +37231,6 @@ components: readOnly: true title: Version orig type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -37400,24 +37240,9 @@ components: PythonPackageUploadRequest: example: republish: true - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 - is_malware_detected: true package_file: package_file tags: tags properties: - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean package_file: description: The primary file for the package. minLength: 1 @@ -37436,8 +37261,6 @@ components: nullable: true title: Tags type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' required: - package_file type: object @@ -37451,7 +37274,6 @@ components: security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 release: release - is_malware_detected: true package_type: 5 repository: repository origin_repository: origin_repository @@ -37471,6 +37293,7 @@ components: version_orig: version_orig namespace_url: https://openapi-generator.tech display_name: display_name + display_source: display_source slug_perm: slug_perm spdx_license: spdx_license version: version @@ -37559,14 +37382,6 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 3 - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -37630,6 +37445,15 @@ components: readOnly: true title: Display name type: string + display_source: + description: "Where the package originated, for example: 'upstream' (proxied/cached\ + \ from a configured upstream), 'connected_repository' (blended in from\ + \ a connected target repository), or 'manual_upload' (uploaded directly\ + \ to Cloudsmith)." + minLength: 1 + readOnly: true + title: Display source + type: string distro: $ref: '#/components/schemas/Distribution' distro_version: @@ -37717,12 +37541,6 @@ components: readOnly: true title: Is hidden type: boolean - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean is_moveable: readOnly: true title: Is moveable @@ -38044,8 +37862,6 @@ components: readOnly: true title: Version orig type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -38059,15 +37875,6 @@ components: republish: true name: name description: description - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 - is_malware_detected: true package_file: package_file version: version tags: tags @@ -38087,12 +37894,6 @@ components: nullable: true title: Description type: string - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean name: description: The name of this package. maxLength: 200 @@ -38129,8 +37930,6 @@ components: nullable: true title: Version type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' required: - package_file type: object @@ -38144,7 +37943,6 @@ components: security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 release: release - is_malware_detected: true package_type: 5 repository: repository origin_repository: origin_repository @@ -38164,6 +37962,7 @@ components: version_orig: version_orig namespace_url: https://openapi-generator.tech display_name: display_name + display_source: display_source slug_perm: slug_perm spdx_license: spdx_license version: version @@ -38252,14 +38051,6 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 3 - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -38323,6 +38114,15 @@ components: readOnly: true title: Display name type: string + display_source: + description: "Where the package originated, for example: 'upstream' (proxied/cached\ + \ from a configured upstream), 'connected_repository' (blended in from\ + \ a connected target repository), or 'manual_upload' (uploaded directly\ + \ to Cloudsmith)." + minLength: 1 + readOnly: true + title: Display source + type: string distro: $ref: '#/components/schemas/Distribution' distro_version: @@ -38410,12 +38210,6 @@ components: readOnly: true title: Is hidden type: boolean - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean is_moveable: readOnly: true title: Is moveable @@ -38737,8 +38531,6 @@ components: readOnly: true title: Version orig type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -38748,16 +38540,7 @@ components: RpmPackageUploadRequest: example: republish: true - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 distribution: distribution - is_malware_detected: true package_file: package_file tags: tags properties: @@ -38766,12 +38549,6 @@ components: minLength: 1 title: Distribution type: string - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean package_file: description: The primary file for the package. minLength: 1 @@ -38790,8 +38567,6 @@ components: nullable: true title: Tags type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' required: - distribution - package_file @@ -38806,7 +38581,6 @@ components: security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 release: release - is_malware_detected: true package_type: 5 repository: repository origin_repository: origin_repository @@ -38826,6 +38600,7 @@ components: version_orig: version_orig namespace_url: https://openapi-generator.tech display_name: display_name + display_source: display_source slug_perm: slug_perm spdx_license: spdx_license version: version @@ -38914,14 +38689,6 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 3 - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -38985,6 +38752,15 @@ components: readOnly: true title: Display name type: string + display_source: + description: "Where the package originated, for example: 'upstream' (proxied/cached\ + \ from a configured upstream), 'connected_repository' (blended in from\ + \ a connected target repository), or 'manual_upload' (uploaded directly\ + \ to Cloudsmith)." + minLength: 1 + readOnly: true + title: Display source + type: string distro: $ref: '#/components/schemas/Distribution' distro_version: @@ -39072,12 +38848,6 @@ components: readOnly: true title: Is hidden type: boolean - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean is_moveable: readOnly: true title: Is moveable @@ -39399,8 +39169,6 @@ components: readOnly: true title: Version orig type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -39410,24 +39178,9 @@ components: RubyPackageUploadRequest: example: republish: true - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 - is_malware_detected: true package_file: package_file tags: tags properties: - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean package_file: description: The primary file for the package. minLength: 1 @@ -39446,8 +39199,6 @@ components: nullable: true title: Tags type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' required: - package_file type: object @@ -39461,7 +39212,6 @@ components: security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 release: release - is_malware_detected: true package_type: 5 repository: repository origin_repository: origin_repository @@ -39481,6 +39231,7 @@ components: version_orig: version_orig namespace_url: https://openapi-generator.tech display_name: display_name + display_source: display_source slug_perm: slug_perm spdx_license: spdx_license version: version @@ -39569,14 +39320,6 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 3 - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -39640,6 +39383,15 @@ components: readOnly: true title: Display name type: string + display_source: + description: "Where the package originated, for example: 'upstream' (proxied/cached\ + \ from a configured upstream), 'connected_repository' (blended in from\ + \ a connected target repository), or 'manual_upload' (uploaded directly\ + \ to Cloudsmith)." + minLength: 1 + readOnly: true + title: Display source + type: string distro: $ref: '#/components/schemas/Distribution' distro_version: @@ -39727,12 +39479,6 @@ components: readOnly: true title: Is hidden type: boolean - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean is_moveable: readOnly: true title: Is moveable @@ -40054,8 +39800,6 @@ components: readOnly: true title: Version orig type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -40065,25 +39809,16 @@ components: SwiftPackageUploadRequest: example: author_name: author_name - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 - is_malware_detected: true - package_file: package_file - version: version - readme_url: https://openapi-generator.tech - tags: tags republish: true scope: scope author_org: author_org name: name repository_url: https://openapi-generator.tech + package_file: package_file + version: version license_url: https://openapi-generator.tech + readme_url: https://openapi-generator.tech + tags: tags properties: author_name: description: The name of the author of the package. @@ -40095,12 +39830,6 @@ components: minLength: 1 title: Author org type: string - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean license_url: description: The license URL of this package. format: uri @@ -40155,8 +39884,6 @@ components: maxLength: 255 title: Version type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' required: - name - package_file @@ -40173,7 +39900,6 @@ components: security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 release: release - is_malware_detected: true package_type: 5 repository: repository origin_repository: origin_repository @@ -40193,6 +39919,7 @@ components: version_orig: version_orig namespace_url: https://openapi-generator.tech display_name: display_name + display_source: display_source slug_perm: slug_perm spdx_license: spdx_license version: version @@ -40285,14 +40012,6 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 3 - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -40367,6 +40086,15 @@ components: readOnly: true title: Display name type: string + display_source: + description: "Where the package originated, for example: 'upstream' (proxied/cached\ + \ from a configured upstream), 'connected_repository' (blended in from\ + \ a connected target repository), or 'manual_upload' (uploaded directly\ + \ to Cloudsmith)." + minLength: 1 + readOnly: true + title: Display source + type: string distro: $ref: '#/components/schemas/Distribution' distro_version: @@ -40454,12 +40182,6 @@ components: readOnly: true title: Is hidden type: boolean - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean is_moveable: readOnly: true title: Is moveable @@ -40800,8 +40522,6 @@ components: readOnly: true title: Version orig type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -40815,24 +40535,9 @@ components: TerraformPackageUploadRequest: example: republish: true - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 - is_malware_detected: true package_file: package_file tags: tags properties: - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean package_file: description: The primary file for the package. minLength: 1 @@ -40851,8 +40556,6 @@ components: nullable: true title: Tags type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' required: - package_file type: object @@ -40866,7 +40569,6 @@ components: security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 release: release - is_malware_detected: true package_type: 5 repository: repository origin_repository: origin_repository @@ -40886,6 +40588,7 @@ components: version_orig: version_orig namespace_url: https://openapi-generator.tech display_name: display_name + display_source: display_source slug_perm: slug_perm spdx_license: spdx_license version: version @@ -40974,14 +40677,6 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 3 - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -41045,6 +40740,15 @@ components: readOnly: true title: Display name type: string + display_source: + description: "Where the package originated, for example: 'upstream' (proxied/cached\ + \ from a configured upstream), 'connected_repository' (blended in from\ + \ a connected target repository), or 'manual_upload' (uploaded directly\ + \ to Cloudsmith)." + minLength: 1 + readOnly: true + title: Display source + type: string distro: $ref: '#/components/schemas/Distribution' distro_version: @@ -41132,12 +40836,6 @@ components: readOnly: true title: Is hidden type: boolean - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean is_moveable: readOnly: true title: Is moveable @@ -41459,8 +41157,6 @@ components: readOnly: true title: Version orig type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -41472,25 +41168,10 @@ components: republish: true provider: provider name: name - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 - is_malware_detected: true package_file: package_file version: version tags: tags properties: - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean name: description: The name of this package. maxLength: 200 @@ -41524,8 +41205,6 @@ components: maxLength: 255 title: Version type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' required: - name - package_file @@ -41542,7 +41221,6 @@ components: security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 release: release - is_malware_detected: true package_type: 5 repository: repository origin_repository: origin_repository @@ -41562,6 +41240,7 @@ components: version_orig: version_orig namespace_url: https://openapi-generator.tech display_name: display_name + display_source: display_source slug_perm: slug_perm spdx_license: spdx_license version: version @@ -41651,14 +41330,6 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 3 - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -41722,6 +41393,15 @@ components: readOnly: true title: Display name type: string + display_source: + description: "Where the package originated, for example: 'upstream' (proxied/cached\ + \ from a configured upstream), 'connected_repository' (blended in from\ + \ a connected target repository), or 'manual_upload' (uploaded directly\ + \ to Cloudsmith)." + minLength: 1 + readOnly: true + title: Display source + type: string distro: $ref: '#/components/schemas/Distribution' distro_version: @@ -41809,12 +41489,6 @@ components: readOnly: true title: Is hidden type: boolean - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean is_moveable: readOnly: true title: Is moveable @@ -42139,8 +41813,6 @@ components: readOnly: true title: Version orig type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -42154,24 +41826,9 @@ components: VsxPackageUploadRequest: example: republish: true - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 - is_malware_detected: true package_file: package_file tags: tags properties: - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean package_file: description: The primary file for the package. minLength: 1 @@ -42190,8 +41847,6 @@ components: nullable: true title: Tags type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' required: - package_file type: object @@ -42205,7 +41860,6 @@ components: security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 release: release - is_malware_detected: true package_type: 5 repository: repository origin_repository: origin_repository @@ -42225,6 +41879,7 @@ components: version_orig: version_orig namespace_url: https://openapi-generator.tech display_name: display_name + display_source: display_source slug_perm: slug_perm spdx_license: spdx_license version: version @@ -42313,14 +41968,6 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 3 - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -42384,6 +42031,15 @@ components: readOnly: true title: Display name type: string + display_source: + description: "Where the package originated, for example: 'upstream' (proxied/cached\ + \ from a configured upstream), 'connected_repository' (blended in from\ + \ a connected target repository), or 'manual_upload' (uploaded directly\ + \ to Cloudsmith)." + minLength: 1 + readOnly: true + title: Display source + type: string distro: $ref: '#/components/schemas/Distribution' distro_version: @@ -42471,12 +42127,6 @@ components: readOnly: true title: Is hidden type: boolean - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean is_moveable: readOnly: true title: Is moveable @@ -42798,8 +42448,6 @@ components: readOnly: true title: Version orig type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -42838,6 +42486,7 @@ components: version_orig: version_orig namespace_url: https://openapi-generator.tech display_name: display_name + display_source: display_source slug_perm: slug_perm spdx_license: spdx_license version: version @@ -42928,13 +42577,13 @@ components: checksum_md5: checksum_md5 sync_progress: 3 vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 + high: 1 + total: 7 + malware: 1 + critical: 7 low: 1 - medium: 5 - unknown: 7 + medium: 6 + unknown: 1 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -42998,6 +42647,15 @@ components: readOnly: true title: Display name type: string + display_source: + description: "Where the package originated, for example: 'upstream' (proxied/cached\ + \ from a configured upstream), 'connected_repository' (blended in from\ + \ a connected target repository), or 'manual_upload' (uploaded directly\ + \ to Cloudsmith)." + minLength: 1 + readOnly: true + title: Display source + type: string distro: $ref: '#/components/schemas/Distribution' distro_version: @@ -43442,34 +43100,17 @@ components: example: republish: true destination: destination - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 - is_malware_detected: true properties: destination: description: The name of the destination repository without the namespace. minLength: 1 title: Destination type: string - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean republish: description: "If true, the package will overwrite any others with the same\ \ attributes (e.g. same version); otherwise, it will be flagged as a duplicate." title: Republish type: boolean - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' required: - destination type: object @@ -43483,7 +43124,6 @@ components: security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 release: release - is_malware_detected: true package_type: 5 repository: repository origin_repository: origin_repository @@ -43504,6 +43144,7 @@ components: version_orig: version_orig namespace_url: https://openapi-generator.tech display_name: display_name + display_source: display_source slug_perm: slug_perm spdx_license: spdx_license version: version @@ -43593,14 +43234,6 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 3 - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -43664,6 +43297,15 @@ components: readOnly: true title: Display name type: string + display_source: + description: "Where the package originated, for example: 'upstream' (proxied/cached\ + \ from a configured upstream), 'connected_repository' (blended in from\ + \ a connected target repository), or 'manual_upload' (uploaded directly\ + \ to Cloudsmith)." + minLength: 1 + readOnly: true + title: Display source + type: string distro: $ref: '#/components/schemas/Distribution' distro_version: @@ -43758,12 +43400,6 @@ components: readOnly: true title: Is hidden type: boolean - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean is_moveable: readOnly: true title: Is moveable @@ -44091,8 +43727,6 @@ components: readOnly: true title: Version orig type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -44192,29 +43826,12 @@ components: PackageMoveRequest: example: destination: destination - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 - is_malware_detected: true properties: destination: description: The name of the destination repository without the namespace. minLength: 1 title: Destination type: string - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' required: - destination type: object @@ -44228,7 +43845,6 @@ components: security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 release: release - is_malware_detected: true package_type: 5 repository: repository origin_repository: origin_repository @@ -44249,6 +43865,7 @@ components: version_orig: version_orig namespace_url: https://openapi-generator.tech display_name: display_name + display_source: display_source slug_perm: slug_perm spdx_license: spdx_license version: version @@ -44338,14 +43955,6 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 3 - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -44409,6 +44018,15 @@ components: readOnly: true title: Display name type: string + display_source: + description: "Where the package originated, for example: 'upstream' (proxied/cached\ + \ from a configured upstream), 'connected_repository' (blended in from\ + \ a connected target repository), or 'manual_upload' (uploaded directly\ + \ to Cloudsmith)." + minLength: 1 + readOnly: true + title: Display source + type: string distro: $ref: '#/components/schemas/Distribution' distro_version: @@ -44503,12 +44121,6 @@ components: readOnly: true title: Is hidden type: boolean - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean is_moveable: readOnly: true title: Is moveable @@ -44836,8 +44448,6 @@ components: readOnly: true title: Version orig type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -44848,22 +44458,7 @@ components: example: restore: true release: true - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 - is_malware_detected: true properties: - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean release: description: "If true, the package is released from quarantine." title: Release @@ -44873,8 +44468,6 @@ components: \ field is deprecated, please use 'release' instead." title: Restore type: boolean - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' type: object PackageQuarantine: example: @@ -44885,7 +44478,6 @@ components: description: description security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 - is_malware_detected: true package_type: 5 repository: repository origin_repository: origin_repository @@ -44906,6 +44498,7 @@ components: version_orig: version_orig namespace_url: https://openapi-generator.tech display_name: display_name + display_source: display_source slug_perm: slug_perm spdx_license: spdx_license version: version @@ -44995,14 +44588,6 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 3 - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -45066,6 +44651,15 @@ components: readOnly: true title: Display name type: string + display_source: + description: "Where the package originated, for example: 'upstream' (proxied/cached\ + \ from a configured upstream), 'connected_repository' (blended in from\ + \ a connected target repository), or 'manual_upload' (uploaded directly\ + \ to Cloudsmith)." + minLength: 1 + readOnly: true + title: Display source + type: string distro: $ref: '#/components/schemas/Distribution' distro_version: @@ -45160,12 +44754,6 @@ components: readOnly: true title: Is hidden type: boolean - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean is_moveable: readOnly: true title: Is moveable @@ -45486,8 +45074,6 @@ components: readOnly: true title: Version orig type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -45504,7 +45090,6 @@ components: security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 release: release - is_malware_detected: true package_type: 5 repository: repository origin_repository: origin_repository @@ -45525,6 +45110,7 @@ components: version_orig: version_orig namespace_url: https://openapi-generator.tech display_name: display_name + display_source: display_source slug_perm: slug_perm spdx_license: spdx_license version: version @@ -45614,14 +45200,6 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 3 - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -45685,6 +45263,15 @@ components: readOnly: true title: Display name type: string + display_source: + description: "Where the package originated, for example: 'upstream' (proxied/cached\ + \ from a configured upstream), 'connected_repository' (blended in from\ + \ a connected target repository), or 'manual_upload' (uploaded directly\ + \ to Cloudsmith)." + minLength: 1 + readOnly: true + title: Display source + type: string distro: $ref: '#/components/schemas/Distribution' distro_version: @@ -45779,12 +45366,6 @@ components: readOnly: true title: Is hidden type: boolean - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean is_moveable: readOnly: true title: Is moveable @@ -46111,8 +45692,6 @@ components: readOnly: true title: Version orig type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -46266,15 +45845,6 @@ components: example: is_immutable: false action: Add - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 - is_malware_detected: true tags: - tags - tags @@ -46295,12 +45865,6 @@ components: \ is a tag that cannot be removed from a package." title: Is immutable type: boolean - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean tags: description: A list of tags to apply the action to. Not required for clears. items: @@ -46309,8 +45873,6 @@ components: type: string nullable: true type: array - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' type: object PackageTag: properties: @@ -46361,6 +45923,15 @@ components: readOnly: true title: Display name type: string + display_source: + description: "Where the package originated, for example: 'upstream' (proxied/cached\ + \ from a configured upstream), 'connected_repository' (blended in from\ + \ a connected target repository), or 'manual_upload' (uploaded directly\ + \ to Cloudsmith)." + minLength: 1 + readOnly: true + title: Display source + type: string distro: $ref: '#/components/schemas/Distribution' distro_version: @@ -46461,12 +46032,6 @@ components: \ is a tag that cannot be removed from a package." title: Is immutable type: boolean - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean is_moveable: readOnly: true title: Is moveable @@ -46788,8 +46353,6 @@ components: readOnly: true title: Version orig type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -46800,15 +46363,6 @@ components: example: license_notes: license_notes action: Update - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 - is_malware_detected: true license_override: None spdx_license: spdx_license license_url: https://openapi-generator.tech @@ -46820,12 +46374,6 @@ components: nullable: true title: Action type: string - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean license_notes: maxLength: 1000 nullable: true @@ -46851,19 +46399,11 @@ components: minLength: 1 title: Spdx license type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' required: - spdx_license type: object PackageLicense: properties: - is_malware_detected: - description: Whether the package has been detected as containing malware. - Requires Ultra plan. - readOnly: true - title: Is malware detected - type: boolean license_notes: maxLength: 1000 nullable: true @@ -46889,8 +46429,6 @@ components: minLength: 1 title: Spdx license type: string - vulnerability_counts: - $ref: '#/components/schemas/WebOSVSeverityCounts' required: - spdx_license type: object @@ -47493,13 +47031,13 @@ components: is_deleteable: true format: format vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 + high: 1 + total: 7 + malware: 1 + critical: 7 low: 1 - medium: 5 - unknown: 7 + medium: 6 + unknown: 1 slug_perm: slug_perm version: version tags: "{}" @@ -49962,16 +49500,83 @@ components: title: View statistics type: string type: object + ConnectedRepositoryUpstream: + example: + upstream_url: upstream_url + type: type + properties: + type: + description: The format/backend slug of the upstream (e.g. 'npm'). + nullable: true + readOnly: true + title: Type + type: string + upstream_url: + minLength: 1 + nullable: true + readOnly: true + title: Upstream url + type: string + type: object + ConnectedRepositoryTargetSummary: + example: + is_private: true + package_count: 6 + size: 1 + is_public: true + properties: + is_private: + readOnly: true + title: Is private + type: boolean + is_public: + readOnly: true + title: Is public + type: boolean + package_count: + readOnly: true + title: Package count + type: integer + size: + readOnly: true + title: Size + type: integer + type: object ConnectedRepository: example: is_active: false disable_reason_text: disable_reason_text + configured_upstreams: + - upstream_url: upstream_url + type: type + - upstream_url: upstream_url + type: type disable_reason: N/A created_at: 2000-01-23T04:56:07.000+00:00 + can_view_target_repository_settings: true priority: 2624 slug_perm: slug_perm target_repository: target_repository - properties: + target_repository_summary: + is_private: true + package_count: 6 + size: 1 + is_public: true + properties: + can_view_target_repository_settings: + description: "Whether the current user has permission to view the target\ + \ repository's settings. When false, `configured_upstreams` will be empty\ + \ even if upstreams are configured." + readOnly: true + title: Can view target repository settings + type: boolean + configured_upstreams: + description: "The upstream sources configured on the target repository,\ + \ used to display which formats/upstreams the connection exposes." + items: + $ref: '#/components/schemas/ConnectedRepositoryUpstream' + readOnly: true + type: array created_at: description: The date and time when the connection was created. format: date-time @@ -50016,6 +49621,8 @@ components: pattern: "^[-a-zA-Z0-9_]+$" title: Target repository type: string + target_repository_summary: + $ref: '#/components/schemas/ConnectedRepositoryTargetSummary' required: - target_repository type: object @@ -60748,15 +60355,6 @@ components: package: identifier: identifier name: name - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 - is_malware_detected: true version: version url: https://openapi-generator.tech has_vulnerabilities: true @@ -61019,15 +60617,6 @@ components: package: identifier: identifier name: name - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 - is_malware_detected: true version: version url: https://openapi-generator.tech scans: @@ -61674,15 +61263,6 @@ components: - package: identifier: identifier name: name - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 - is_malware_detected: true version: version url: https://openapi-generator.tech reasons: @@ -61705,15 +61285,6 @@ components: - package: identifier: identifier name: name - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 - is_malware_detected: true version: version url: https://openapi-generator.tech reasons: @@ -61798,15 +61369,6 @@ components: - package: identifier: identifier name: name - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 - is_malware_detected: true version: version url: https://openapi-generator.tech reasons: @@ -61835,15 +61397,6 @@ components: - package: identifier: identifier name: name - vulnerability_counts: - high: 6 - total: 2 - malware: 5 - critical: 0 - low: 1 - medium: 5 - unknown: 7 - is_malware_detected: true version: version url: https://openapi-generator.tech reasons: @@ -61914,18 +61467,40 @@ components: results: - is_active: false disable_reason_text: disable_reason_text + configured_upstreams: + - upstream_url: upstream_url + type: type + - upstream_url: upstream_url + type: type disable_reason: N/A created_at: 2000-01-23T04:56:07.000+00:00 + can_view_target_repository_settings: true priority: 2624 slug_perm: slug_perm target_repository: target_repository + target_repository_summary: + is_private: true + package_count: 6 + size: 1 + is_public: true - is_active: false disable_reason_text: disable_reason_text + configured_upstreams: + - upstream_url: upstream_url + type: type + - upstream_url: upstream_url + type: type disable_reason: N/A created_at: 2000-01-23T04:56:07.000+00:00 + can_view_target_repository_settings: true priority: 2624 slug_perm: slug_perm target_repository: target_repository + target_repository_summary: + is_private: true + package_count: 6 + size: 1 + is_public: true properties: results: items: diff --git a/api_audit_log.go b/api_audit_log.go index 7f868390..85cac59c 100644 --- a/api_audit_log.go +++ b/api_audit_log.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/api_badges.go b/api_badges.go index ac8265c6..ead23806 100644 --- a/api_badges.go +++ b/api_badges.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/api_broadcasts.go b/api_broadcasts.go index 57efb71f..f0824300 100644 --- a/api_broadcasts.go +++ b/api_broadcasts.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/api_bulk_action.go b/api_bulk_action.go index fe3d8743..5c9e7433 100644 --- a/api_bulk_action.go +++ b/api_bulk_action.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/api_distros.go b/api_distros.go index a7d3619d..ce03f843 100644 --- a/api_distros.go +++ b/api_distros.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/api_entitlements.go b/api_entitlements.go index 0632e76c..9bee537a 100644 --- a/api_entitlements.go +++ b/api_entitlements.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/api_files.go b/api_files.go index b83275eb..1713a82a 100644 --- a/api_files.go +++ b/api_files.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/api_formats.go b/api_formats.go index 3b254653..30029958 100644 --- a/api_formats.go +++ b/api_formats.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/api_metrics.go b/api_metrics.go index 5ca25297..792fc9b8 100644 --- a/api_metrics.go +++ b/api_metrics.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/api_namespaces.go b/api_namespaces.go index 3c14e3ff..11667eff 100644 --- a/api_namespaces.go +++ b/api_namespaces.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/api_openid.go b/api_openid.go index 8f8be228..2bc25c94 100644 --- a/api_openid.go +++ b/api_openid.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/api_orgs.go b/api_orgs.go index ce4c1906..2f5fd298 100644 --- a/api_orgs.go +++ b/api_orgs.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -23,6 +23,863 @@ import ( // OrgsApiService OrgsApi service type OrgsApiService service +type ApiOrgsApiKeyRulesCreateRequest struct { + ctx context.Context + ApiService *OrgsApiService + org string + data *OrganizationApiKeyRuleRequest +} + +func (r ApiOrgsApiKeyRulesCreateRequest) Data(data OrganizationApiKeyRuleRequest) ApiOrgsApiKeyRulesCreateRequest { + r.data = &data + return r +} + +func (r ApiOrgsApiKeyRulesCreateRequest) Execute() (*OrganizationApiKeyRule, *http.Response, error) { + return r.ApiService.OrgsApiKeyRulesCreateExecute(r) +} + +/* +OrgsApiKeyRulesCreate Create an API key rule. + +Create an API key rule. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param org + @return ApiOrgsApiKeyRulesCreateRequest +*/ +func (a *OrgsApiService) OrgsApiKeyRulesCreate(ctx context.Context, org string) ApiOrgsApiKeyRulesCreateRequest { + return ApiOrgsApiKeyRulesCreateRequest{ + ApiService: a, + ctx: ctx, + org: org, + } +} + +// Execute executes the request +// @return OrganizationApiKeyRule +func (a *OrgsApiService) OrgsApiKeyRulesCreateExecute(r ApiOrgsApiKeyRulesCreateRequest) (*OrganizationApiKeyRule, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *OrganizationApiKeyRule + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrgsApiService.OrgsApiKeyRulesCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/orgs/{org}/api-key-rules/" + localVarPath = strings.Replace(localVarPath, "{"+"org"+"}", url.PathEscape(parameterValueToString(r.org, "org")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.data + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["apikey"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-Api-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorDetail + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 422 { + var v ErrorDetail + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiOrgsApiKeyRulesDeleteRequest struct { + ctx context.Context + ApiService *OrgsApiService + org string + slugPerm string +} + +func (r ApiOrgsApiKeyRulesDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.OrgsApiKeyRulesDeleteExecute(r) +} + +/* +OrgsApiKeyRulesDelete Delete an API key rule. + +Delete an API key rule. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param org + @param slugPerm + @return ApiOrgsApiKeyRulesDeleteRequest +*/ +func (a *OrgsApiService) OrgsApiKeyRulesDelete(ctx context.Context, org string, slugPerm string) ApiOrgsApiKeyRulesDeleteRequest { + return ApiOrgsApiKeyRulesDeleteRequest{ + ApiService: a, + ctx: ctx, + org: org, + slugPerm: slugPerm, + } +} + +// Execute executes the request +func (a *OrgsApiService) OrgsApiKeyRulesDeleteExecute(r ApiOrgsApiKeyRulesDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrgsApiService.OrgsApiKeyRulesDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/orgs/{org}/api-key-rules/{slug_perm}/" + localVarPath = strings.Replace(localVarPath, "{"+"org"+"}", url.PathEscape(parameterValueToString(r.org, "org")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"slug_perm"+"}", url.PathEscape(parameterValueToString(r.slugPerm, "slugPerm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["apikey"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-Api-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorDetail + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 422 { + var v ErrorDetail + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiOrgsApiKeyRulesListRequest struct { + ctx context.Context + ApiService *OrgsApiService + org string +} + +func (r ApiOrgsApiKeyRulesListRequest) Execute() ([]OrganizationApiKeyRule, *http.Response, error) { + return r.ApiService.OrgsApiKeyRulesListExecute(r) +} + +/* +OrgsApiKeyRulesList List all API key rules for the organization. + +List all API key rules for the organization. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param org + @return ApiOrgsApiKeyRulesListRequest +*/ +func (a *OrgsApiService) OrgsApiKeyRulesList(ctx context.Context, org string) ApiOrgsApiKeyRulesListRequest { + return ApiOrgsApiKeyRulesListRequest{ + ApiService: a, + ctx: ctx, + org: org, + } +} + +// Execute executes the request +// @return []OrganizationApiKeyRule +func (a *OrgsApiService) OrgsApiKeyRulesListExecute(r ApiOrgsApiKeyRulesListRequest) ([]OrganizationApiKeyRule, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []OrganizationApiKeyRule + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrgsApiService.OrgsApiKeyRulesList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/orgs/{org}/api-key-rules/" + localVarPath = strings.Replace(localVarPath, "{"+"org"+"}", url.PathEscape(parameterValueToString(r.org, "org")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["apikey"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-Api-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorDetail + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 422 { + var v ErrorDetail + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiOrgsApiKeyRulesPartialUpdateRequest struct { + ctx context.Context + ApiService *OrgsApiService + org string + slugPerm string + data *OrganizationApiKeyRuleRequestPatch +} + +func (r ApiOrgsApiKeyRulesPartialUpdateRequest) Data(data OrganizationApiKeyRuleRequestPatch) ApiOrgsApiKeyRulesPartialUpdateRequest { + r.data = &data + return r +} + +func (r ApiOrgsApiKeyRulesPartialUpdateRequest) Execute() (*OrganizationApiKeyRule, *http.Response, error) { + return r.ApiService.OrgsApiKeyRulesPartialUpdateExecute(r) +} + +/* +OrgsApiKeyRulesPartialUpdate Update an API key rule. + +Update an API key rule. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param org + @param slugPerm + @return ApiOrgsApiKeyRulesPartialUpdateRequest +*/ +func (a *OrgsApiService) OrgsApiKeyRulesPartialUpdate(ctx context.Context, org string, slugPerm string) ApiOrgsApiKeyRulesPartialUpdateRequest { + return ApiOrgsApiKeyRulesPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + org: org, + slugPerm: slugPerm, + } +} + +// Execute executes the request +// @return OrganizationApiKeyRule +func (a *OrgsApiService) OrgsApiKeyRulesPartialUpdateExecute(r ApiOrgsApiKeyRulesPartialUpdateRequest) (*OrganizationApiKeyRule, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *OrganizationApiKeyRule + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrgsApiService.OrgsApiKeyRulesPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/orgs/{org}/api-key-rules/{slug_perm}/" + localVarPath = strings.Replace(localVarPath, "{"+"org"+"}", url.PathEscape(parameterValueToString(r.org, "org")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"slug_perm"+"}", url.PathEscape(parameterValueToString(r.slugPerm, "slugPerm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.data + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["apikey"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-Api-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorDetail + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 422 { + var v ErrorDetail + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiOrgsApiKeyRulesReadRequest struct { + ctx context.Context + ApiService *OrgsApiService + org string + slugPerm string +} + +func (r ApiOrgsApiKeyRulesReadRequest) Execute() (*OrganizationApiKeyRule, *http.Response, error) { + return r.ApiService.OrgsApiKeyRulesReadExecute(r) +} + +/* +OrgsApiKeyRulesRead Retrieve an API key rule. + +Retrieve an API key rule. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param org + @param slugPerm + @return ApiOrgsApiKeyRulesReadRequest +*/ +func (a *OrgsApiService) OrgsApiKeyRulesRead(ctx context.Context, org string, slugPerm string) ApiOrgsApiKeyRulesReadRequest { + return ApiOrgsApiKeyRulesReadRequest{ + ApiService: a, + ctx: ctx, + org: org, + slugPerm: slugPerm, + } +} + +// Execute executes the request +// @return OrganizationApiKeyRule +func (a *OrgsApiService) OrgsApiKeyRulesReadExecute(r ApiOrgsApiKeyRulesReadRequest) (*OrganizationApiKeyRule, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *OrganizationApiKeyRule + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrgsApiService.OrgsApiKeyRulesRead") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/orgs/{org}/api-key-rules/{slug_perm}/" + localVarPath = strings.Replace(localVarPath, "{"+"org"+"}", url.PathEscape(parameterValueToString(r.org, "org")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"slug_perm"+"}", url.PathEscape(parameterValueToString(r.slugPerm, "slugPerm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["apikey"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-Api-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorDetail + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 422 { + var v ErrorDetail + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiOrgsApiKeyRulesUpdateRequest struct { + ctx context.Context + ApiService *OrgsApiService + org string + slugPerm string + data *OrganizationApiKeyRuleRequest +} + +func (r ApiOrgsApiKeyRulesUpdateRequest) Data(data OrganizationApiKeyRuleRequest) ApiOrgsApiKeyRulesUpdateRequest { + r.data = &data + return r +} + +func (r ApiOrgsApiKeyRulesUpdateRequest) Execute() (*OrganizationApiKeyRule, *http.Response, error) { + return r.ApiService.OrgsApiKeyRulesUpdateExecute(r) +} + +/* +OrgsApiKeyRulesUpdate Full update of an API key rule. + +Full update of an API key rule. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param org + @param slugPerm + @return ApiOrgsApiKeyRulesUpdateRequest +*/ +func (a *OrgsApiService) OrgsApiKeyRulesUpdate(ctx context.Context, org string, slugPerm string) ApiOrgsApiKeyRulesUpdateRequest { + return ApiOrgsApiKeyRulesUpdateRequest{ + ApiService: a, + ctx: ctx, + org: org, + slugPerm: slugPerm, + } +} + +// Execute executes the request +// @return OrganizationApiKeyRule +func (a *OrgsApiService) OrgsApiKeyRulesUpdateExecute(r ApiOrgsApiKeyRulesUpdateRequest) (*OrganizationApiKeyRule, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *OrganizationApiKeyRule + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrgsApiService.OrgsApiKeyRulesUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/orgs/{org}/api-key-rules/{slug_perm}/" + localVarPath = strings.Replace(localVarPath, "{"+"org"+"}", url.PathEscape(parameterValueToString(r.org, "org")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"slug_perm"+"}", url.PathEscape(parameterValueToString(r.slugPerm, "slugPerm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.data + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["apikey"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-Api-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorDetail + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 422 { + var v ErrorDetail + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + type ApiOrgsCustomDomainsListRequest struct { ctx context.Context ApiService *OrgsApiService diff --git a/api_packages.go b/api_packages.go index b574ec40..88972baa 100644 --- a/api_packages.go +++ b/api_packages.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -736,7 +736,7 @@ func (r ApiPackagesListRequest) IncludeConnectedRepositories(includeConnectedRep return r } -// A search term for querying names, filenames, versions, distributions, architectures, formats or statuses of packages. +// A search term for querying names, filenames, versions, distributions, architectures, formats, statuses or display sources (display_source:upstream, display_source:manual_upload, display_source:connected_repository) of packages. func (r ApiPackagesListRequest) Query(query string) ApiPackagesListRequest { r.query = &query return r diff --git a/api_quota.go b/api_quota.go index eddb83ad..6c00d672 100644 --- a/api_quota.go +++ b/api_quota.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/api_rates.go b/api_rates.go index 417243d3..a73bb57b 100644 --- a/api_rates.go +++ b/api_rates.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/api_recycle_bin.go b/api_recycle_bin.go index edac422c..4c267162 100644 --- a/api_recycle_bin.go +++ b/api_recycle_bin.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/api_repos.go b/api_repos.go index 23f0005e..d1bd0625 100644 --- a/api_repos.go +++ b/api_repos.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/api_status.go b/api_status.go index fe130e5d..3af39fdf 100644 --- a/api_status.go +++ b/api_status.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/api_storage_regions.go b/api_storage_regions.go index 6ccbddb7..ba79cca7 100644 --- a/api_storage_regions.go +++ b/api_storage_regions.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/api_user.go b/api_user.go index b87d451d..5d46b877 100644 --- a/api_user.go +++ b/api_user.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/api_users.go b/api_users.go index bc97d5d8..d50cb0d0 100644 --- a/api_users.go +++ b/api_users.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/api_vulnerabilities.go b/api_vulnerabilities.go index 9b32f122..34077475 100644 --- a/api_vulnerabilities.go +++ b/api_vulnerabilities.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/api_webhooks.go b/api_webhooks.go index f56b73b8..56033e13 100644 --- a/api_webhooks.go +++ b/api_webhooks.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/bin/generate b/bin/generate index 535fbb32..3b7f055c 100755 --- a/bin/generate +++ b/bin/generate @@ -2,7 +2,7 @@ set -eou pipefail -PKG_VERSION=${1:-"0.0.63"} +PKG_VERSION=${1:-"0.0.64"} API_HOST=${2:-"https://api.cloudsmith.io"} # GNU sed is required for the in-place edits below. It is `gsed` on macOS diff --git a/client.go b/client.go index 74d2e2a4..55f899a4 100644 --- a/client.go +++ b/client.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -41,7 +41,7 @@ var ( queryDescape = strings.NewReplacer("%5B", "[", "%5D", "]") ) -// APIClient manages communication with the Cloudsmith API (v1) API v1.1358.3 +// APIClient manages communication with the Cloudsmith API (v1) API v1.1388.0 // In most cases there should be only one, shared, APIClient. type APIClient struct { cfg *Configuration diff --git a/configuration.go b/configuration.go index 8ccd7c45..49f6aabe 100644 --- a/configuration.go +++ b/configuration.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -93,7 +93,7 @@ type Configuration struct { func NewConfiguration() *Configuration { cfg := &Configuration{ DefaultHeader: make(map[string]string), - UserAgent: "OpenAPI-Generator/0.0.63/go", + UserAgent: "OpenAPI-Generator/0.0.64/go", Debug: false, Servers: ServerConfigurations{ { diff --git a/docs/AlpinePackageUpload.md b/docs/AlpinePackageUpload.md index b40b3d34..a9b15916 100644 --- a/docs/AlpinePackageUpload.md +++ b/docs/AlpinePackageUpload.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **DependenciesUrl** | Pointer to **string** | | [optional] [readonly] **Description** | Pointer to **NullableString** | A textual description of this package. | [optional] [readonly] **DisplayName** | Pointer to **string** | | [optional] [readonly] +**DisplaySource** | Pointer to **string** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] [readonly] **Distro** | Pointer to [**NullableDistribution**](Distribution.md) | | [optional] **DistroVersion** | Pointer to [**DistributionVersion**](DistributionVersion.md) | | [optional] **Downloads** | Pointer to **int64** | | [optional] [readonly] @@ -33,7 +34,6 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -92,7 +92,6 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] [readonly] **VersionOrig** | Pointer to **string** | | [optional] [readonly] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -394,6 +393,31 @@ SetDisplayName sets DisplayName field to given value. HasDisplayName returns a boolean if a field has been set. +### GetDisplaySource + +`func (o *AlpinePackageUpload) GetDisplaySource() string` + +GetDisplaySource returns the DisplaySource field if non-nil, zero value otherwise. + +### GetDisplaySourceOk + +`func (o *AlpinePackageUpload) GetDisplaySourceOk() (*string, bool)` + +GetDisplaySourceOk returns a tuple with the DisplaySource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplaySource + +`func (o *AlpinePackageUpload) SetDisplaySource(v string)` + +SetDisplaySource sets DisplaySource field to given value. + +### HasDisplaySource + +`func (o *AlpinePackageUpload) HasDisplaySource() bool` + +HasDisplaySource returns a boolean if a field has been set. + ### GetDistro `func (o *AlpinePackageUpload) GetDistro() Distribution` @@ -899,31 +923,6 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. -### GetIsMalwareDetected - -`func (o *AlpinePackageUpload) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *AlpinePackageUpload) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *AlpinePackageUpload) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *AlpinePackageUpload) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetIsMoveable `func (o *AlpinePackageUpload) GetIsMoveable() bool` @@ -2524,41 +2523,6 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. -### GetVulnerabilityCounts - -`func (o *AlpinePackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *AlpinePackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *AlpinePackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *AlpinePackageUpload) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *AlpinePackageUpload) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *AlpinePackageUpload) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *AlpinePackageUpload) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/AlpinePackageUploadRequest.md b/docs/AlpinePackageUploadRequest.md index d6f12e55..3d434f49 100644 --- a/docs/AlpinePackageUploadRequest.md +++ b/docs/AlpinePackageUploadRequest.md @@ -5,11 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Distribution** | **string** | The distribution to store the package for. | -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **PackageFile** | **string** | The primary file for the package. | **Republish** | Pointer to **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** | Pointer to **NullableString** | A comma-separated values list of tags to add to the package. | [optional] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -50,31 +48,6 @@ and a boolean to check if the value has been set. SetDistribution sets Distribution field to given value. -### GetIsMalwareDetected - -`func (o *AlpinePackageUploadRequest) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *AlpinePackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *AlpinePackageUploadRequest) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *AlpinePackageUploadRequest) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetPackageFile `func (o *AlpinePackageUploadRequest) GetPackageFile() string` @@ -155,41 +128,6 @@ HasTags returns a boolean if a field has been set. `func (o *AlpinePackageUploadRequest) UnsetTags()` UnsetTags ensures that no value is present for Tags, not even an explicit nil -### GetVulnerabilityCounts - -`func (o *AlpinePackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *AlpinePackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *AlpinePackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *AlpinePackageUploadRequest) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *AlpinePackageUploadRequest) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *AlpinePackageUploadRequest) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil [[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/docs/CargoPackageUpload.md b/docs/CargoPackageUpload.md index fc5d84dd..fa2d5acb 100644 --- a/docs/CargoPackageUpload.md +++ b/docs/CargoPackageUpload.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **DependenciesUrl** | Pointer to **string** | | [optional] [readonly] **Description** | Pointer to **NullableString** | A textual description of this package. | [optional] [readonly] **DisplayName** | Pointer to **string** | | [optional] [readonly] +**DisplaySource** | Pointer to **string** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] [readonly] **Distro** | Pointer to [**NullableDistribution**](Distribution.md) | | [optional] **DistroVersion** | Pointer to [**DistributionVersion**](DistributionVersion.md) | | [optional] **Downloads** | Pointer to **int64** | | [optional] [readonly] @@ -33,7 +34,6 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -92,7 +92,6 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] [readonly] **VersionOrig** | Pointer to **string** | | [optional] [readonly] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -394,6 +393,31 @@ SetDisplayName sets DisplayName field to given value. HasDisplayName returns a boolean if a field has been set. +### GetDisplaySource + +`func (o *CargoPackageUpload) GetDisplaySource() string` + +GetDisplaySource returns the DisplaySource field if non-nil, zero value otherwise. + +### GetDisplaySourceOk + +`func (o *CargoPackageUpload) GetDisplaySourceOk() (*string, bool)` + +GetDisplaySourceOk returns a tuple with the DisplaySource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplaySource + +`func (o *CargoPackageUpload) SetDisplaySource(v string)` + +SetDisplaySource sets DisplaySource field to given value. + +### HasDisplaySource + +`func (o *CargoPackageUpload) HasDisplaySource() bool` + +HasDisplaySource returns a boolean if a field has been set. + ### GetDistro `func (o *CargoPackageUpload) GetDistro() Distribution` @@ -899,31 +923,6 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. -### GetIsMalwareDetected - -`func (o *CargoPackageUpload) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *CargoPackageUpload) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *CargoPackageUpload) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *CargoPackageUpload) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetIsMoveable `func (o *CargoPackageUpload) GetIsMoveable() bool` @@ -2524,41 +2523,6 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. -### GetVulnerabilityCounts - -`func (o *CargoPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *CargoPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *CargoPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *CargoPackageUpload) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *CargoPackageUpload) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *CargoPackageUpload) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *CargoPackageUpload) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/CargoPackageUploadRequest.md b/docs/CargoPackageUploadRequest.md index 19f37693..acb1c6b5 100644 --- a/docs/CargoPackageUploadRequest.md +++ b/docs/CargoPackageUploadRequest.md @@ -4,11 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **PackageFile** | **string** | The primary file for the package. | **Republish** | Pointer to **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** | Pointer to **NullableString** | A comma-separated values list of tags to add to the package. | [optional] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -29,31 +27,6 @@ NewCargoPackageUploadRequestWithDefaults instantiates a new CargoPackageUploadRe This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetIsMalwareDetected - -`func (o *CargoPackageUploadRequest) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *CargoPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *CargoPackageUploadRequest) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *CargoPackageUploadRequest) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetPackageFile `func (o *CargoPackageUploadRequest) GetPackageFile() string` @@ -134,41 +107,6 @@ HasTags returns a boolean if a field has been set. `func (o *CargoPackageUploadRequest) UnsetTags()` UnsetTags ensures that no value is present for Tags, not even an explicit nil -### GetVulnerabilityCounts - -`func (o *CargoPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *CargoPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *CargoPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *CargoPackageUploadRequest) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *CargoPackageUploadRequest) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *CargoPackageUploadRequest) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil [[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/docs/CocoapodsPackageUpload.md b/docs/CocoapodsPackageUpload.md index 80268bac..f4e1e021 100644 --- a/docs/CocoapodsPackageUpload.md +++ b/docs/CocoapodsPackageUpload.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **DependenciesUrl** | Pointer to **string** | | [optional] [readonly] **Description** | Pointer to **NullableString** | A textual description of this package. | [optional] [readonly] **DisplayName** | Pointer to **string** | | [optional] [readonly] +**DisplaySource** | Pointer to **string** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] [readonly] **Distro** | Pointer to [**NullableDistribution**](Distribution.md) | | [optional] **DistroVersion** | Pointer to [**DistributionVersion**](DistributionVersion.md) | | [optional] **Downloads** | Pointer to **int64** | | [optional] [readonly] @@ -33,7 +34,6 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -92,7 +92,6 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] [readonly] **VersionOrig** | Pointer to **string** | | [optional] [readonly] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -394,6 +393,31 @@ SetDisplayName sets DisplayName field to given value. HasDisplayName returns a boolean if a field has been set. +### GetDisplaySource + +`func (o *CocoapodsPackageUpload) GetDisplaySource() string` + +GetDisplaySource returns the DisplaySource field if non-nil, zero value otherwise. + +### GetDisplaySourceOk + +`func (o *CocoapodsPackageUpload) GetDisplaySourceOk() (*string, bool)` + +GetDisplaySourceOk returns a tuple with the DisplaySource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplaySource + +`func (o *CocoapodsPackageUpload) SetDisplaySource(v string)` + +SetDisplaySource sets DisplaySource field to given value. + +### HasDisplaySource + +`func (o *CocoapodsPackageUpload) HasDisplaySource() bool` + +HasDisplaySource returns a boolean if a field has been set. + ### GetDistro `func (o *CocoapodsPackageUpload) GetDistro() Distribution` @@ -899,31 +923,6 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. -### GetIsMalwareDetected - -`func (o *CocoapodsPackageUpload) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *CocoapodsPackageUpload) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *CocoapodsPackageUpload) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *CocoapodsPackageUpload) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetIsMoveable `func (o *CocoapodsPackageUpload) GetIsMoveable() bool` @@ -2524,41 +2523,6 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. -### GetVulnerabilityCounts - -`func (o *CocoapodsPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *CocoapodsPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *CocoapodsPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *CocoapodsPackageUpload) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *CocoapodsPackageUpload) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *CocoapodsPackageUpload) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *CocoapodsPackageUpload) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/CocoapodsPackageUploadRequest.md b/docs/CocoapodsPackageUploadRequest.md index e6c54590..113e8d1c 100644 --- a/docs/CocoapodsPackageUploadRequest.md +++ b/docs/CocoapodsPackageUploadRequest.md @@ -4,11 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **PackageFile** | **string** | The primary file for the package. | **Republish** | Pointer to **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** | Pointer to **NullableString** | A comma-separated values list of tags to add to the package. | [optional] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -29,31 +27,6 @@ NewCocoapodsPackageUploadRequestWithDefaults instantiates a new CocoapodsPackage This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetIsMalwareDetected - -`func (o *CocoapodsPackageUploadRequest) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *CocoapodsPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *CocoapodsPackageUploadRequest) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *CocoapodsPackageUploadRequest) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetPackageFile `func (o *CocoapodsPackageUploadRequest) GetPackageFile() string` @@ -134,41 +107,6 @@ HasTags returns a boolean if a field has been set. `func (o *CocoapodsPackageUploadRequest) UnsetTags()` UnsetTags ensures that no value is present for Tags, not even an explicit nil -### GetVulnerabilityCounts - -`func (o *CocoapodsPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *CocoapodsPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *CocoapodsPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *CocoapodsPackageUploadRequest) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *CocoapodsPackageUploadRequest) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *CocoapodsPackageUploadRequest) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil [[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/docs/ComposerPackageUpload.md b/docs/ComposerPackageUpload.md index 3db8b169..c4400376 100644 --- a/docs/ComposerPackageUpload.md +++ b/docs/ComposerPackageUpload.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **DependenciesUrl** | Pointer to **string** | | [optional] [readonly] **Description** | Pointer to **NullableString** | A textual description of this package. | [optional] [readonly] **DisplayName** | Pointer to **string** | | [optional] [readonly] +**DisplaySource** | Pointer to **string** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] [readonly] **Distro** | Pointer to [**NullableDistribution**](Distribution.md) | | [optional] **DistroVersion** | Pointer to [**DistributionVersion**](DistributionVersion.md) | | [optional] **Downloads** | Pointer to **int64** | | [optional] [readonly] @@ -33,7 +34,6 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -92,7 +92,6 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] **VersionOrig** | Pointer to **string** | | [optional] [readonly] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -394,6 +393,31 @@ SetDisplayName sets DisplayName field to given value. HasDisplayName returns a boolean if a field has been set. +### GetDisplaySource + +`func (o *ComposerPackageUpload) GetDisplaySource() string` + +GetDisplaySource returns the DisplaySource field if non-nil, zero value otherwise. + +### GetDisplaySourceOk + +`func (o *ComposerPackageUpload) GetDisplaySourceOk() (*string, bool)` + +GetDisplaySourceOk returns a tuple with the DisplaySource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplaySource + +`func (o *ComposerPackageUpload) SetDisplaySource(v string)` + +SetDisplaySource sets DisplaySource field to given value. + +### HasDisplaySource + +`func (o *ComposerPackageUpload) HasDisplaySource() bool` + +HasDisplaySource returns a boolean if a field has been set. + ### GetDistro `func (o *ComposerPackageUpload) GetDistro() Distribution` @@ -899,31 +923,6 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. -### GetIsMalwareDetected - -`func (o *ComposerPackageUpload) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *ComposerPackageUpload) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *ComposerPackageUpload) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *ComposerPackageUpload) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetIsMoveable `func (o *ComposerPackageUpload) GetIsMoveable() bool` @@ -2524,41 +2523,6 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. -### GetVulnerabilityCounts - -`func (o *ComposerPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *ComposerPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *ComposerPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *ComposerPackageUpload) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *ComposerPackageUpload) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *ComposerPackageUpload) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *ComposerPackageUpload) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/ComposerPackageUploadRequest.md b/docs/ComposerPackageUploadRequest.md index dbce1b9e..11ad6986 100644 --- a/docs/ComposerPackageUploadRequest.md +++ b/docs/ComposerPackageUploadRequest.md @@ -4,12 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **PackageFile** | **string** | The primary file for the package. | **Republish** | Pointer to **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** | Pointer to **NullableString** | A comma-separated values list of tags to add to the package. | [optional] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -30,31 +28,6 @@ NewComposerPackageUploadRequestWithDefaults instantiates a new ComposerPackageUp This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetIsMalwareDetected - -`func (o *ComposerPackageUploadRequest) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *ComposerPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *ComposerPackageUploadRequest) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *ComposerPackageUploadRequest) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetPackageFile `func (o *ComposerPackageUploadRequest) GetPackageFile() string` @@ -170,41 +143,6 @@ HasVersion returns a boolean if a field has been set. `func (o *ComposerPackageUploadRequest) UnsetVersion()` UnsetVersion ensures that no value is present for Version, not even an explicit nil -### GetVulnerabilityCounts - -`func (o *ComposerPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *ComposerPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *ComposerPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *ComposerPackageUploadRequest) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *ComposerPackageUploadRequest) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *ComposerPackageUploadRequest) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil [[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/docs/ConanPackageUpload.md b/docs/ConanPackageUpload.md index d57dce92..ccd2b2c3 100644 --- a/docs/ConanPackageUpload.md +++ b/docs/ConanPackageUpload.md @@ -16,6 +16,7 @@ Name | Type | Description | Notes **DependenciesUrl** | Pointer to **string** | | [optional] [readonly] **Description** | Pointer to **NullableString** | A textual description of this package. | [optional] [readonly] **DisplayName** | Pointer to **string** | | [optional] [readonly] +**DisplaySource** | Pointer to **string** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] [readonly] **Distro** | Pointer to [**NullableDistribution**](Distribution.md) | | [optional] **DistroVersion** | Pointer to [**DistributionVersion**](DistributionVersion.md) | | [optional] **Downloads** | Pointer to **int64** | | [optional] [readonly] @@ -35,7 +36,6 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -94,7 +94,6 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] **VersionOrig** | Pointer to **string** | | [optional] [readonly] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -466,6 +465,31 @@ SetDisplayName sets DisplayName field to given value. HasDisplayName returns a boolean if a field has been set. +### GetDisplaySource + +`func (o *ConanPackageUpload) GetDisplaySource() string` + +GetDisplaySource returns the DisplaySource field if non-nil, zero value otherwise. + +### GetDisplaySourceOk + +`func (o *ConanPackageUpload) GetDisplaySourceOk() (*string, bool)` + +GetDisplaySourceOk returns a tuple with the DisplaySource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplaySource + +`func (o *ConanPackageUpload) SetDisplaySource(v string)` + +SetDisplaySource sets DisplaySource field to given value. + +### HasDisplaySource + +`func (o *ConanPackageUpload) HasDisplaySource() bool` + +HasDisplaySource returns a boolean if a field has been set. + ### GetDistro `func (o *ConanPackageUpload) GetDistro() Distribution` @@ -971,31 +995,6 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. -### GetIsMalwareDetected - -`func (o *ConanPackageUpload) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *ConanPackageUpload) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *ConanPackageUpload) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *ConanPackageUpload) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetIsMoveable `func (o *ConanPackageUpload) GetIsMoveable() bool` @@ -2596,41 +2595,6 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. -### GetVulnerabilityCounts - -`func (o *ConanPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *ConanPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *ConanPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *ConanPackageUpload) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *ConanPackageUpload) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *ConanPackageUpload) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *ConanPackageUpload) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/ConanPackageUploadRequest.md b/docs/ConanPackageUploadRequest.md index 72f7b610..24d697df 100644 --- a/docs/ConanPackageUploadRequest.md +++ b/docs/ConanPackageUploadRequest.md @@ -7,7 +7,6 @@ Name | Type | Description | Notes **ConanChannel** | Pointer to **NullableString** | Conan channel. | [optional] **ConanPrefix** | Pointer to **NullableString** | Conan prefix (User). | [optional] **InfoFile** | **string** | The info file is an python file containing the package metadata. | -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **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** | Pointer to **NullableString** | The name of this package. | [optional] @@ -15,7 +14,6 @@ Name | Type | Description | Notes **Republish** | Pointer to **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** | Pointer to **NullableString** | A comma-separated values list of tags to add to the package. | [optional] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -126,31 +124,6 @@ and a boolean to check if the value has been set. SetInfoFile sets InfoFile field to given value. -### GetIsMalwareDetected - -`func (o *ConanPackageUploadRequest) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *ConanPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *ConanPackageUploadRequest) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *ConanPackageUploadRequest) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetManifestFile `func (o *ConanPackageUploadRequest) GetManifestFile() string` @@ -341,41 +314,6 @@ HasVersion returns a boolean if a field has been set. `func (o *ConanPackageUploadRequest) UnsetVersion()` UnsetVersion ensures that no value is present for Version, not even an explicit nil -### GetVulnerabilityCounts - -`func (o *ConanPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *ConanPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *ConanPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *ConanPackageUploadRequest) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *ConanPackageUploadRequest) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *ConanPackageUploadRequest) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil [[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/docs/CondaPackageUpload.md b/docs/CondaPackageUpload.md index 028d5d25..86eefb26 100644 --- a/docs/CondaPackageUpload.md +++ b/docs/CondaPackageUpload.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **DependenciesUrl** | Pointer to **string** | | [optional] [readonly] **Description** | Pointer to **NullableString** | A textual description of this package. | [optional] [readonly] **DisplayName** | Pointer to **string** | | [optional] [readonly] +**DisplaySource** | Pointer to **string** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] [readonly] **Distro** | Pointer to [**NullableDistribution**](Distribution.md) | | [optional] **DistroVersion** | Pointer to [**DistributionVersion**](DistributionVersion.md) | | [optional] **Downloads** | Pointer to **int64** | | [optional] [readonly] @@ -33,7 +34,6 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -92,7 +92,6 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] [readonly] **VersionOrig** | Pointer to **string** | | [optional] [readonly] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -394,6 +393,31 @@ SetDisplayName sets DisplayName field to given value. HasDisplayName returns a boolean if a field has been set. +### GetDisplaySource + +`func (o *CondaPackageUpload) GetDisplaySource() string` + +GetDisplaySource returns the DisplaySource field if non-nil, zero value otherwise. + +### GetDisplaySourceOk + +`func (o *CondaPackageUpload) GetDisplaySourceOk() (*string, bool)` + +GetDisplaySourceOk returns a tuple with the DisplaySource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplaySource + +`func (o *CondaPackageUpload) SetDisplaySource(v string)` + +SetDisplaySource sets DisplaySource field to given value. + +### HasDisplaySource + +`func (o *CondaPackageUpload) HasDisplaySource() bool` + +HasDisplaySource returns a boolean if a field has been set. + ### GetDistro `func (o *CondaPackageUpload) GetDistro() Distribution` @@ -899,31 +923,6 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. -### GetIsMalwareDetected - -`func (o *CondaPackageUpload) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *CondaPackageUpload) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *CondaPackageUpload) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *CondaPackageUpload) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetIsMoveable `func (o *CondaPackageUpload) GetIsMoveable() bool` @@ -2524,41 +2523,6 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. -### GetVulnerabilityCounts - -`func (o *CondaPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *CondaPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *CondaPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *CondaPackageUpload) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *CondaPackageUpload) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *CondaPackageUpload) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *CondaPackageUpload) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/CondaPackageUploadRequest.md b/docs/CondaPackageUploadRequest.md index e71b3a2f..ea420841 100644 --- a/docs/CondaPackageUploadRequest.md +++ b/docs/CondaPackageUploadRequest.md @@ -4,11 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **PackageFile** | **string** | The primary file for the package. | **Republish** | Pointer to **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** | Pointer to **NullableString** | A comma-separated values list of tags to add to the package. | [optional] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -29,31 +27,6 @@ NewCondaPackageUploadRequestWithDefaults instantiates a new CondaPackageUploadRe This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetIsMalwareDetected - -`func (o *CondaPackageUploadRequest) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *CondaPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *CondaPackageUploadRequest) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *CondaPackageUploadRequest) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetPackageFile `func (o *CondaPackageUploadRequest) GetPackageFile() string` @@ -134,41 +107,6 @@ HasTags returns a boolean if a field has been set. `func (o *CondaPackageUploadRequest) UnsetTags()` UnsetTags ensures that no value is present for Tags, not even an explicit nil -### GetVulnerabilityCounts - -`func (o *CondaPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *CondaPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *CondaPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *CondaPackageUploadRequest) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *CondaPackageUploadRequest) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *CondaPackageUploadRequest) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil [[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/docs/ConnectedRepository.md b/docs/ConnectedRepository.md index 4d07f2ad..77a7c97d 100644 --- a/docs/ConnectedRepository.md +++ b/docs/ConnectedRepository.md @@ -4,6 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**CanViewTargetRepositorySettings** | Pointer to **bool** | Whether the current user has permission to view the target repository's settings. When false, `configured_upstreams` will be empty even if upstreams are configured. | [optional] [readonly] +**ConfiguredUpstreams** | Pointer to [**[]ConnectedRepositoryUpstream**](ConnectedRepositoryUpstream.md) | The upstream sources configured on the target repository, used to display which formats/upstreams the connection exposes. | [optional] [readonly] **CreatedAt** | Pointer to **time.Time** | The date and time when the connection was created. | [optional] [readonly] **DisableReason** | Pointer to **string** | | [optional] [readonly] [default to "N/A"] **DisableReasonText** | Pointer to **string** | Human-readable explanation of why this connection is disabled. | [optional] [readonly] @@ -11,6 +13,7 @@ Name | Type | Description | Notes **Priority** | Pointer to **int64** | Repositories are checked in ascending order (starting at 1). If multiple repositories have the same priority, the oldest one is used first. | [optional] **SlugPerm** | Pointer to **string** | | [optional] [readonly] **TargetRepository** | **string** | The slug of the target repository to connect to. | +**TargetRepositorySummary** | Pointer to [**ConnectedRepositoryTargetSummary**](ConnectedRepositoryTargetSummary.md) | | [optional] ## Methods @@ -31,6 +34,56 @@ NewConnectedRepositoryWithDefaults instantiates a new ConnectedRepository object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetCanViewTargetRepositorySettings + +`func (o *ConnectedRepository) GetCanViewTargetRepositorySettings() bool` + +GetCanViewTargetRepositorySettings returns the CanViewTargetRepositorySettings field if non-nil, zero value otherwise. + +### GetCanViewTargetRepositorySettingsOk + +`func (o *ConnectedRepository) GetCanViewTargetRepositorySettingsOk() (*bool, bool)` + +GetCanViewTargetRepositorySettingsOk returns a tuple with the CanViewTargetRepositorySettings field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCanViewTargetRepositorySettings + +`func (o *ConnectedRepository) SetCanViewTargetRepositorySettings(v bool)` + +SetCanViewTargetRepositorySettings sets CanViewTargetRepositorySettings field to given value. + +### HasCanViewTargetRepositorySettings + +`func (o *ConnectedRepository) HasCanViewTargetRepositorySettings() bool` + +HasCanViewTargetRepositorySettings returns a boolean if a field has been set. + +### GetConfiguredUpstreams + +`func (o *ConnectedRepository) GetConfiguredUpstreams() []ConnectedRepositoryUpstream` + +GetConfiguredUpstreams returns the ConfiguredUpstreams field if non-nil, zero value otherwise. + +### GetConfiguredUpstreamsOk + +`func (o *ConnectedRepository) GetConfiguredUpstreamsOk() (*[]ConnectedRepositoryUpstream, bool)` + +GetConfiguredUpstreamsOk returns a tuple with the ConfiguredUpstreams field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfiguredUpstreams + +`func (o *ConnectedRepository) SetConfiguredUpstreams(v []ConnectedRepositoryUpstream)` + +SetConfiguredUpstreams sets ConfiguredUpstreams field to given value. + +### HasConfiguredUpstreams + +`func (o *ConnectedRepository) HasConfiguredUpstreams() bool` + +HasConfiguredUpstreams returns a boolean if a field has been set. + ### GetCreatedAt `func (o *ConnectedRepository) GetCreatedAt() time.Time` @@ -201,6 +254,31 @@ and a boolean to check if the value has been set. SetTargetRepository sets TargetRepository field to given value. +### GetTargetRepositorySummary + +`func (o *ConnectedRepository) GetTargetRepositorySummary() ConnectedRepositoryTargetSummary` + +GetTargetRepositorySummary returns the TargetRepositorySummary field if non-nil, zero value otherwise. + +### GetTargetRepositorySummaryOk + +`func (o *ConnectedRepository) GetTargetRepositorySummaryOk() (*ConnectedRepositoryTargetSummary, bool)` + +GetTargetRepositorySummaryOk returns a tuple with the TargetRepositorySummary field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTargetRepositorySummary + +`func (o *ConnectedRepository) SetTargetRepositorySummary(v ConnectedRepositoryTargetSummary)` + +SetTargetRepositorySummary sets TargetRepositorySummary field to given value. + +### HasTargetRepositorySummary + +`func (o *ConnectedRepository) HasTargetRepositorySummary() bool` + +HasTargetRepositorySummary returns a boolean if a field has been set. + [[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/docs/ConnectedRepositoryTargetSummary.md b/docs/ConnectedRepositoryTargetSummary.md new file mode 100644 index 00000000..7b626a7d --- /dev/null +++ b/docs/ConnectedRepositoryTargetSummary.md @@ -0,0 +1,134 @@ +# ConnectedRepositoryTargetSummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IsPrivate** | Pointer to **bool** | | [optional] [readonly] +**IsPublic** | Pointer to **bool** | | [optional] [readonly] +**PackageCount** | Pointer to **int64** | | [optional] [readonly] +**Size** | Pointer to **int64** | | [optional] [readonly] + +## Methods + +### NewConnectedRepositoryTargetSummary + +`func NewConnectedRepositoryTargetSummary() *ConnectedRepositoryTargetSummary` + +NewConnectedRepositoryTargetSummary instantiates a new ConnectedRepositoryTargetSummary object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewConnectedRepositoryTargetSummaryWithDefaults + +`func NewConnectedRepositoryTargetSummaryWithDefaults() *ConnectedRepositoryTargetSummary` + +NewConnectedRepositoryTargetSummaryWithDefaults instantiates a new ConnectedRepositoryTargetSummary object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetIsPrivate + +`func (o *ConnectedRepositoryTargetSummary) GetIsPrivate() bool` + +GetIsPrivate returns the IsPrivate field if non-nil, zero value otherwise. + +### GetIsPrivateOk + +`func (o *ConnectedRepositoryTargetSummary) GetIsPrivateOk() (*bool, bool)` + +GetIsPrivateOk returns a tuple with the IsPrivate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsPrivate + +`func (o *ConnectedRepositoryTargetSummary) SetIsPrivate(v bool)` + +SetIsPrivate sets IsPrivate field to given value. + +### HasIsPrivate + +`func (o *ConnectedRepositoryTargetSummary) HasIsPrivate() bool` + +HasIsPrivate returns a boolean if a field has been set. + +### GetIsPublic + +`func (o *ConnectedRepositoryTargetSummary) GetIsPublic() bool` + +GetIsPublic returns the IsPublic field if non-nil, zero value otherwise. + +### GetIsPublicOk + +`func (o *ConnectedRepositoryTargetSummary) GetIsPublicOk() (*bool, bool)` + +GetIsPublicOk returns a tuple with the IsPublic field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsPublic + +`func (o *ConnectedRepositoryTargetSummary) SetIsPublic(v bool)` + +SetIsPublic sets IsPublic field to given value. + +### HasIsPublic + +`func (o *ConnectedRepositoryTargetSummary) HasIsPublic() bool` + +HasIsPublic returns a boolean if a field has been set. + +### GetPackageCount + +`func (o *ConnectedRepositoryTargetSummary) GetPackageCount() int64` + +GetPackageCount returns the PackageCount field if non-nil, zero value otherwise. + +### GetPackageCountOk + +`func (o *ConnectedRepositoryTargetSummary) GetPackageCountOk() (*int64, bool)` + +GetPackageCountOk returns a tuple with the PackageCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPackageCount + +`func (o *ConnectedRepositoryTargetSummary) SetPackageCount(v int64)` + +SetPackageCount sets PackageCount field to given value. + +### HasPackageCount + +`func (o *ConnectedRepositoryTargetSummary) HasPackageCount() bool` + +HasPackageCount returns a boolean if a field has been set. + +### GetSize + +`func (o *ConnectedRepositoryTargetSummary) GetSize() int64` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *ConnectedRepositoryTargetSummary) GetSizeOk() (*int64, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *ConnectedRepositoryTargetSummary) SetSize(v int64)` + +SetSize sets Size field to given value. + +### HasSize + +`func (o *ConnectedRepositoryTargetSummary) HasSize() bool` + +HasSize returns a boolean if a field has been set. + + +[[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/docs/ConnectedRepositoryUpstream.md b/docs/ConnectedRepositoryUpstream.md new file mode 100644 index 00000000..2caa77f6 --- /dev/null +++ b/docs/ConnectedRepositoryUpstream.md @@ -0,0 +1,102 @@ +# ConnectedRepositoryUpstream + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **NullableString** | The format/backend slug of the upstream (e.g. 'npm'). | [optional] [readonly] +**UpstreamUrl** | Pointer to **NullableString** | | [optional] [readonly] + +## Methods + +### NewConnectedRepositoryUpstream + +`func NewConnectedRepositoryUpstream() *ConnectedRepositoryUpstream` + +NewConnectedRepositoryUpstream instantiates a new ConnectedRepositoryUpstream object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewConnectedRepositoryUpstreamWithDefaults + +`func NewConnectedRepositoryUpstreamWithDefaults() *ConnectedRepositoryUpstream` + +NewConnectedRepositoryUpstreamWithDefaults instantiates a new ConnectedRepositoryUpstream object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *ConnectedRepositoryUpstream) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ConnectedRepositoryUpstream) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ConnectedRepositoryUpstream) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *ConnectedRepositoryUpstream) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *ConnectedRepositoryUpstream) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *ConnectedRepositoryUpstream) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetUpstreamUrl + +`func (o *ConnectedRepositoryUpstream) GetUpstreamUrl() string` + +GetUpstreamUrl returns the UpstreamUrl field if non-nil, zero value otherwise. + +### GetUpstreamUrlOk + +`func (o *ConnectedRepositoryUpstream) GetUpstreamUrlOk() (*string, bool)` + +GetUpstreamUrlOk returns a tuple with the UpstreamUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpstreamUrl + +`func (o *ConnectedRepositoryUpstream) SetUpstreamUrl(v string)` + +SetUpstreamUrl sets UpstreamUrl field to given value. + +### HasUpstreamUrl + +`func (o *ConnectedRepositoryUpstream) HasUpstreamUrl() bool` + +HasUpstreamUrl returns a boolean if a field has been set. + +### SetUpstreamUrlNil + +`func (o *ConnectedRepositoryUpstream) SetUpstreamUrlNil(b bool)` + + SetUpstreamUrlNil sets the value for UpstreamUrl to be an explicit nil + +### UnsetUpstreamUrl +`func (o *ConnectedRepositoryUpstream) UnsetUpstreamUrl()` + +UnsetUpstreamUrl ensures that no value is present for UpstreamUrl, not even an explicit nil + +[[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/docs/CranPackageUpload.md b/docs/CranPackageUpload.md index 9670c815..69325969 100644 --- a/docs/CranPackageUpload.md +++ b/docs/CranPackageUpload.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **DependenciesUrl** | Pointer to **string** | | [optional] [readonly] **Description** | Pointer to **NullableString** | A textual description of this package. | [optional] [readonly] **DisplayName** | Pointer to **string** | | [optional] [readonly] +**DisplaySource** | Pointer to **string** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] [readonly] **Distro** | Pointer to [**NullableDistribution**](Distribution.md) | | [optional] **DistroVersion** | Pointer to [**DistributionVersion**](DistributionVersion.md) | | [optional] **Downloads** | Pointer to **int64** | | [optional] [readonly] @@ -33,7 +34,6 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -93,7 +93,6 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] [readonly] **VersionOrig** | Pointer to **string** | | [optional] [readonly] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -395,6 +394,31 @@ SetDisplayName sets DisplayName field to given value. HasDisplayName returns a boolean if a field has been set. +### GetDisplaySource + +`func (o *CranPackageUpload) GetDisplaySource() string` + +GetDisplaySource returns the DisplaySource field if non-nil, zero value otherwise. + +### GetDisplaySourceOk + +`func (o *CranPackageUpload) GetDisplaySourceOk() (*string, bool)` + +GetDisplaySourceOk returns a tuple with the DisplaySource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplaySource + +`func (o *CranPackageUpload) SetDisplaySource(v string)` + +SetDisplaySource sets DisplaySource field to given value. + +### HasDisplaySource + +`func (o *CranPackageUpload) HasDisplaySource() bool` + +HasDisplaySource returns a boolean if a field has been set. + ### GetDistro `func (o *CranPackageUpload) GetDistro() Distribution` @@ -900,31 +924,6 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. -### GetIsMalwareDetected - -`func (o *CranPackageUpload) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *CranPackageUpload) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *CranPackageUpload) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *CranPackageUpload) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetIsMoveable `func (o *CranPackageUpload) GetIsMoveable() bool` @@ -2560,41 +2559,6 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. -### GetVulnerabilityCounts - -`func (o *CranPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *CranPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *CranPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *CranPackageUpload) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *CranPackageUpload) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *CranPackageUpload) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *CranPackageUpload) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/CranPackageUploadRequest.md b/docs/CranPackageUploadRequest.md index c2691f2b..b38658b2 100644 --- a/docs/CranPackageUploadRequest.md +++ b/docs/CranPackageUploadRequest.md @@ -5,12 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Architecture** | Pointer to **string** | Binary package uploads for macOS should specify the architecture they were built for. | [optional] -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **PackageFile** | **string** | The primary file for the package. | **RVersion** | Pointer to **NullableString** | Binary package uploads should specify the version of R they were built for. | [optional] **Republish** | Pointer to **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** | Pointer to **NullableString** | A comma-separated values list of tags to add to the package. | [optional] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -56,31 +54,6 @@ SetArchitecture sets Architecture field to given value. HasArchitecture returns a boolean if a field has been set. -### GetIsMalwareDetected - -`func (o *CranPackageUploadRequest) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *CranPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *CranPackageUploadRequest) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *CranPackageUploadRequest) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetPackageFile `func (o *CranPackageUploadRequest) GetPackageFile() string` @@ -196,41 +169,6 @@ HasTags returns a boolean if a field has been set. `func (o *CranPackageUploadRequest) UnsetTags()` UnsetTags ensures that no value is present for Tags, not even an explicit nil -### GetVulnerabilityCounts - -`func (o *CranPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *CranPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *CranPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *CranPackageUploadRequest) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *CranPackageUploadRequest) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *CranPackageUploadRequest) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil [[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/docs/DartPackageUpload.md b/docs/DartPackageUpload.md index 65d48701..3ff5e1a8 100644 --- a/docs/DartPackageUpload.md +++ b/docs/DartPackageUpload.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **DependenciesUrl** | Pointer to **string** | | [optional] [readonly] **Description** | Pointer to **NullableString** | A textual description of this package. | [optional] [readonly] **DisplayName** | Pointer to **string** | | [optional] [readonly] +**DisplaySource** | Pointer to **string** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] [readonly] **Distro** | Pointer to [**NullableDistribution**](Distribution.md) | | [optional] **DistroVersion** | Pointer to [**DistributionVersion**](DistributionVersion.md) | | [optional] **Downloads** | Pointer to **int64** | | [optional] [readonly] @@ -33,7 +34,6 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -92,7 +92,6 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] [readonly] **VersionOrig** | Pointer to **string** | | [optional] [readonly] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -394,6 +393,31 @@ SetDisplayName sets DisplayName field to given value. HasDisplayName returns a boolean if a field has been set. +### GetDisplaySource + +`func (o *DartPackageUpload) GetDisplaySource() string` + +GetDisplaySource returns the DisplaySource field if non-nil, zero value otherwise. + +### GetDisplaySourceOk + +`func (o *DartPackageUpload) GetDisplaySourceOk() (*string, bool)` + +GetDisplaySourceOk returns a tuple with the DisplaySource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplaySource + +`func (o *DartPackageUpload) SetDisplaySource(v string)` + +SetDisplaySource sets DisplaySource field to given value. + +### HasDisplaySource + +`func (o *DartPackageUpload) HasDisplaySource() bool` + +HasDisplaySource returns a boolean if a field has been set. + ### GetDistro `func (o *DartPackageUpload) GetDistro() Distribution` @@ -899,31 +923,6 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. -### GetIsMalwareDetected - -`func (o *DartPackageUpload) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *DartPackageUpload) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *DartPackageUpload) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *DartPackageUpload) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetIsMoveable `func (o *DartPackageUpload) GetIsMoveable() bool` @@ -2524,41 +2523,6 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. -### GetVulnerabilityCounts - -`func (o *DartPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *DartPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *DartPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *DartPackageUpload) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *DartPackageUpload) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *DartPackageUpload) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *DartPackageUpload) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/DartPackageUploadRequest.md b/docs/DartPackageUploadRequest.md index c5d09253..68a87227 100644 --- a/docs/DartPackageUploadRequest.md +++ b/docs/DartPackageUploadRequest.md @@ -4,11 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **PackageFile** | **string** | The primary file for the package. | **Republish** | Pointer to **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** | Pointer to **NullableString** | A comma-separated values list of tags to add to the package. | [optional] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -29,31 +27,6 @@ NewDartPackageUploadRequestWithDefaults instantiates a new DartPackageUploadRequ This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetIsMalwareDetected - -`func (o *DartPackageUploadRequest) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *DartPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *DartPackageUploadRequest) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *DartPackageUploadRequest) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetPackageFile `func (o *DartPackageUploadRequest) GetPackageFile() string` @@ -134,41 +107,6 @@ HasTags returns a boolean if a field has been set. `func (o *DartPackageUploadRequest) UnsetTags()` UnsetTags ensures that no value is present for Tags, not even an explicit nil -### GetVulnerabilityCounts - -`func (o *DartPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *DartPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *DartPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *DartPackageUploadRequest) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *DartPackageUploadRequest) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *DartPackageUploadRequest) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil [[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/docs/DebPackageUpload.md b/docs/DebPackageUpload.md index 0182a0f4..9803cfd4 100644 --- a/docs/DebPackageUpload.md +++ b/docs/DebPackageUpload.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **DependenciesUrl** | Pointer to **string** | | [optional] [readonly] **Description** | Pointer to **NullableString** | A textual description of this package. | [optional] [readonly] **DisplayName** | Pointer to **string** | | [optional] [readonly] +**DisplaySource** | Pointer to **string** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] [readonly] **Distro** | Pointer to [**NullableDistribution**](Distribution.md) | | [optional] **DistroVersion** | Pointer to [**DistributionVersion**](DistributionVersion.md) | | [optional] **Downloads** | Pointer to **int64** | | [optional] [readonly] @@ -33,7 +34,6 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -92,7 +92,6 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] [readonly] **VersionOrig** | Pointer to **string** | | [optional] [readonly] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -394,6 +393,31 @@ SetDisplayName sets DisplayName field to given value. HasDisplayName returns a boolean if a field has been set. +### GetDisplaySource + +`func (o *DebPackageUpload) GetDisplaySource() string` + +GetDisplaySource returns the DisplaySource field if non-nil, zero value otherwise. + +### GetDisplaySourceOk + +`func (o *DebPackageUpload) GetDisplaySourceOk() (*string, bool)` + +GetDisplaySourceOk returns a tuple with the DisplaySource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplaySource + +`func (o *DebPackageUpload) SetDisplaySource(v string)` + +SetDisplaySource sets DisplaySource field to given value. + +### HasDisplaySource + +`func (o *DebPackageUpload) HasDisplaySource() bool` + +HasDisplaySource returns a boolean if a field has been set. + ### GetDistro `func (o *DebPackageUpload) GetDistro() Distribution` @@ -899,31 +923,6 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. -### GetIsMalwareDetected - -`func (o *DebPackageUpload) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *DebPackageUpload) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *DebPackageUpload) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *DebPackageUpload) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetIsMoveable `func (o *DebPackageUpload) GetIsMoveable() bool` @@ -2524,41 +2523,6 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. -### GetVulnerabilityCounts - -`func (o *DebPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *DebPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *DebPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *DebPackageUpload) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *DebPackageUpload) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *DebPackageUpload) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *DebPackageUpload) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/DebPackageUploadRequest.md b/docs/DebPackageUploadRequest.md index 8f3e9cd5..8d06fed5 100644 --- a/docs/DebPackageUploadRequest.md +++ b/docs/DebPackageUploadRequest.md @@ -7,12 +7,10 @@ Name | Type | Description | Notes **ChangesFile** | Pointer to **NullableString** | The changes archive containing the changes made to the source and debian packaging files | [optional] **Component** | Pointer to **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. | -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **PackageFile** | **string** | The primary file for the package. | **Republish** | Pointer to **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] **SourcesFile** | Pointer to **NullableString** | The sources archive containing the source code for the binary | [optional] **Tags** | Pointer to **NullableString** | A comma-separated values list of tags to add to the package. | [optional] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -113,31 +111,6 @@ and a boolean to check if the value has been set. SetDistribution sets Distribution field to given value. -### GetIsMalwareDetected - -`func (o *DebPackageUploadRequest) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *DebPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *DebPackageUploadRequest) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *DebPackageUploadRequest) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetPackageFile `func (o *DebPackageUploadRequest) GetPackageFile() string` @@ -253,41 +226,6 @@ HasTags returns a boolean if a field has been set. `func (o *DebPackageUploadRequest) UnsetTags()` UnsetTags ensures that no value is present for Tags, not even an explicit nil -### GetVulnerabilityCounts - -`func (o *DebPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *DebPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *DebPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *DebPackageUploadRequest) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *DebPackageUploadRequest) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *DebPackageUploadRequest) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil [[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/docs/DockerPackageUpload.md b/docs/DockerPackageUpload.md index 8d88b446..5229fc8e 100644 --- a/docs/DockerPackageUpload.md +++ b/docs/DockerPackageUpload.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **DependenciesUrl** | Pointer to **string** | | [optional] [readonly] **Description** | Pointer to **NullableString** | A textual description of this package. | [optional] [readonly] **DisplayName** | Pointer to **string** | | [optional] [readonly] +**DisplaySource** | Pointer to **string** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] [readonly] **Distro** | Pointer to [**NullableDistribution**](Distribution.md) | | [optional] **DistroVersion** | Pointer to [**DistributionVersion**](DistributionVersion.md) | | [optional] **Downloads** | Pointer to **int64** | | [optional] [readonly] @@ -33,7 +34,6 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -92,7 +92,6 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] [readonly] **VersionOrig** | Pointer to **string** | | [optional] [readonly] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -394,6 +393,31 @@ SetDisplayName sets DisplayName field to given value. HasDisplayName returns a boolean if a field has been set. +### GetDisplaySource + +`func (o *DockerPackageUpload) GetDisplaySource() string` + +GetDisplaySource returns the DisplaySource field if non-nil, zero value otherwise. + +### GetDisplaySourceOk + +`func (o *DockerPackageUpload) GetDisplaySourceOk() (*string, bool)` + +GetDisplaySourceOk returns a tuple with the DisplaySource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplaySource + +`func (o *DockerPackageUpload) SetDisplaySource(v string)` + +SetDisplaySource sets DisplaySource field to given value. + +### HasDisplaySource + +`func (o *DockerPackageUpload) HasDisplaySource() bool` + +HasDisplaySource returns a boolean if a field has been set. + ### GetDistro `func (o *DockerPackageUpload) GetDistro() Distribution` @@ -899,31 +923,6 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. -### GetIsMalwareDetected - -`func (o *DockerPackageUpload) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *DockerPackageUpload) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *DockerPackageUpload) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *DockerPackageUpload) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetIsMoveable `func (o *DockerPackageUpload) GetIsMoveable() bool` @@ -2524,41 +2523,6 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. -### GetVulnerabilityCounts - -`func (o *DockerPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *DockerPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *DockerPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *DockerPackageUpload) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *DockerPackageUpload) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *DockerPackageUpload) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *DockerPackageUpload) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/DockerPackageUploadRequest.md b/docs/DockerPackageUploadRequest.md index 09d7b4d2..3c01c199 100644 --- a/docs/DockerPackageUploadRequest.md +++ b/docs/DockerPackageUploadRequest.md @@ -4,11 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **PackageFile** | **string** | The primary file for the package. | **Republish** | Pointer to **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** | Pointer to **NullableString** | A comma-separated values list of tags to add to the package. | [optional] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -29,31 +27,6 @@ NewDockerPackageUploadRequestWithDefaults instantiates a new DockerPackageUpload This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetIsMalwareDetected - -`func (o *DockerPackageUploadRequest) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *DockerPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *DockerPackageUploadRequest) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *DockerPackageUploadRequest) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetPackageFile `func (o *DockerPackageUploadRequest) GetPackageFile() string` @@ -134,41 +107,6 @@ HasTags returns a boolean if a field has been set. `func (o *DockerPackageUploadRequest) UnsetTags()` UnsetTags ensures that no value is present for Tags, not even an explicit nil -### GetVulnerabilityCounts - -`func (o *DockerPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *DockerPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *DockerPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *DockerPackageUploadRequest) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *DockerPackageUploadRequest) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *DockerPackageUploadRequest) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil [[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/docs/GenericPackageUpload.md b/docs/GenericPackageUpload.md index ab081e45..0ce525f4 100644 --- a/docs/GenericPackageUpload.md +++ b/docs/GenericPackageUpload.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **DependenciesUrl** | Pointer to **string** | | [optional] [readonly] **Description** | Pointer to **NullableString** | A textual description of this package. | [optional] [readonly] **DisplayName** | Pointer to **string** | | [optional] [readonly] +**DisplaySource** | Pointer to **string** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] [readonly] **Distro** | Pointer to [**NullableDistribution**](Distribution.md) | | [optional] **DistroVersion** | Pointer to [**DistributionVersion**](DistributionVersion.md) | | [optional] **Downloads** | Pointer to **int64** | | [optional] [readonly] @@ -33,7 +34,6 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -92,7 +92,6 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] **VersionOrig** | Pointer to **string** | | [optional] [readonly] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -394,6 +393,31 @@ SetDisplayName sets DisplayName field to given value. HasDisplayName returns a boolean if a field has been set. +### GetDisplaySource + +`func (o *GenericPackageUpload) GetDisplaySource() string` + +GetDisplaySource returns the DisplaySource field if non-nil, zero value otherwise. + +### GetDisplaySourceOk + +`func (o *GenericPackageUpload) GetDisplaySourceOk() (*string, bool)` + +GetDisplaySourceOk returns a tuple with the DisplaySource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplaySource + +`func (o *GenericPackageUpload) SetDisplaySource(v string)` + +SetDisplaySource sets DisplaySource field to given value. + +### HasDisplaySource + +`func (o *GenericPackageUpload) HasDisplaySource() bool` + +HasDisplaySource returns a boolean if a field has been set. + ### GetDistro `func (o *GenericPackageUpload) GetDistro() Distribution` @@ -899,31 +923,6 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. -### GetIsMalwareDetected - -`func (o *GenericPackageUpload) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *GenericPackageUpload) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *GenericPackageUpload) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *GenericPackageUpload) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetIsMoveable `func (o *GenericPackageUpload) GetIsMoveable() bool` @@ -2524,41 +2523,6 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. -### GetVulnerabilityCounts - -`func (o *GenericPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *GenericPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *GenericPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *GenericPackageUpload) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *GenericPackageUpload) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *GenericPackageUpload) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *GenericPackageUpload) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/GenericPackageUploadRequest.md b/docs/GenericPackageUploadRequest.md index b2d8cbb5..a94a9458 100644 --- a/docs/GenericPackageUploadRequest.md +++ b/docs/GenericPackageUploadRequest.md @@ -5,13 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Filepath** | **string** | The full filepath of the package including filename. | -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **Name** | Pointer to **NullableString** | The name of this package. | [optional] **PackageFile** | **string** | The primary file for the package. | **Republish** | Pointer to **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** | Pointer to **NullableString** | A comma-separated values list of tags to add to the package. | [optional] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -52,31 +50,6 @@ and a boolean to check if the value has been set. SetFilepath sets Filepath field to given value. -### GetIsMalwareDetected - -`func (o *GenericPackageUploadRequest) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *GenericPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *GenericPackageUploadRequest) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *GenericPackageUploadRequest) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetName `func (o *GenericPackageUploadRequest) GetName() string` @@ -227,41 +200,6 @@ HasVersion returns a boolean if a field has been set. `func (o *GenericPackageUploadRequest) UnsetVersion()` UnsetVersion ensures that no value is present for Version, not even an explicit nil -### GetVulnerabilityCounts - -`func (o *GenericPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *GenericPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *GenericPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *GenericPackageUploadRequest) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *GenericPackageUploadRequest) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *GenericPackageUploadRequest) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil [[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/docs/GoPackageUpload.md b/docs/GoPackageUpload.md index 33150d2f..7f74ecc2 100644 --- a/docs/GoPackageUpload.md +++ b/docs/GoPackageUpload.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **DependenciesUrl** | Pointer to **string** | | [optional] [readonly] **Description** | Pointer to **NullableString** | A textual description of this package. | [optional] [readonly] **DisplayName** | Pointer to **string** | | [optional] [readonly] +**DisplaySource** | Pointer to **string** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] [readonly] **Distro** | Pointer to [**NullableDistribution**](Distribution.md) | | [optional] **DistroVersion** | Pointer to [**DistributionVersion**](DistributionVersion.md) | | [optional] **Downloads** | Pointer to **int64** | | [optional] [readonly] @@ -33,7 +34,6 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -92,7 +92,6 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] [readonly] **VersionOrig** | Pointer to **string** | | [optional] [readonly] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -394,6 +393,31 @@ SetDisplayName sets DisplayName field to given value. HasDisplayName returns a boolean if a field has been set. +### GetDisplaySource + +`func (o *GoPackageUpload) GetDisplaySource() string` + +GetDisplaySource returns the DisplaySource field if non-nil, zero value otherwise. + +### GetDisplaySourceOk + +`func (o *GoPackageUpload) GetDisplaySourceOk() (*string, bool)` + +GetDisplaySourceOk returns a tuple with the DisplaySource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplaySource + +`func (o *GoPackageUpload) SetDisplaySource(v string)` + +SetDisplaySource sets DisplaySource field to given value. + +### HasDisplaySource + +`func (o *GoPackageUpload) HasDisplaySource() bool` + +HasDisplaySource returns a boolean if a field has been set. + ### GetDistro `func (o *GoPackageUpload) GetDistro() Distribution` @@ -899,31 +923,6 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. -### GetIsMalwareDetected - -`func (o *GoPackageUpload) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *GoPackageUpload) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *GoPackageUpload) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *GoPackageUpload) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetIsMoveable `func (o *GoPackageUpload) GetIsMoveable() bool` @@ -2524,41 +2523,6 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. -### GetVulnerabilityCounts - -`func (o *GoPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *GoPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *GoPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *GoPackageUpload) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *GoPackageUpload) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *GoPackageUpload) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *GoPackageUpload) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/GoPackageUploadRequest.md b/docs/GoPackageUploadRequest.md index 0cd52f11..16fb097e 100644 --- a/docs/GoPackageUploadRequest.md +++ b/docs/GoPackageUploadRequest.md @@ -4,11 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **PackageFile** | **string** | The primary file for the package. | **Republish** | Pointer to **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** | Pointer to **NullableString** | A comma-separated values list of tags to add to the package. | [optional] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -29,31 +27,6 @@ NewGoPackageUploadRequestWithDefaults instantiates a new GoPackageUploadRequest This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetIsMalwareDetected - -`func (o *GoPackageUploadRequest) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *GoPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *GoPackageUploadRequest) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *GoPackageUploadRequest) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetPackageFile `func (o *GoPackageUploadRequest) GetPackageFile() string` @@ -134,41 +107,6 @@ HasTags returns a boolean if a field has been set. `func (o *GoPackageUploadRequest) UnsetTags()` UnsetTags ensures that no value is present for Tags, not even an explicit nil -### GetVulnerabilityCounts - -`func (o *GoPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *GoPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *GoPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *GoPackageUploadRequest) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *GoPackageUploadRequest) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *GoPackageUploadRequest) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil [[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/docs/HelmPackageUpload.md b/docs/HelmPackageUpload.md index ba76ac76..41b83d86 100644 --- a/docs/HelmPackageUpload.md +++ b/docs/HelmPackageUpload.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **DependenciesUrl** | Pointer to **string** | | [optional] [readonly] **Description** | Pointer to **NullableString** | A textual description of this package. | [optional] [readonly] **DisplayName** | Pointer to **string** | | [optional] [readonly] +**DisplaySource** | Pointer to **string** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] [readonly] **Distro** | Pointer to [**NullableDistribution**](Distribution.md) | | [optional] **DistroVersion** | Pointer to [**DistributionVersion**](DistributionVersion.md) | | [optional] **Downloads** | Pointer to **int64** | | [optional] [readonly] @@ -33,7 +34,6 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -92,7 +92,6 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] [readonly] **VersionOrig** | Pointer to **string** | | [optional] [readonly] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -394,6 +393,31 @@ SetDisplayName sets DisplayName field to given value. HasDisplayName returns a boolean if a field has been set. +### GetDisplaySource + +`func (o *HelmPackageUpload) GetDisplaySource() string` + +GetDisplaySource returns the DisplaySource field if non-nil, zero value otherwise. + +### GetDisplaySourceOk + +`func (o *HelmPackageUpload) GetDisplaySourceOk() (*string, bool)` + +GetDisplaySourceOk returns a tuple with the DisplaySource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplaySource + +`func (o *HelmPackageUpload) SetDisplaySource(v string)` + +SetDisplaySource sets DisplaySource field to given value. + +### HasDisplaySource + +`func (o *HelmPackageUpload) HasDisplaySource() bool` + +HasDisplaySource returns a boolean if a field has been set. + ### GetDistro `func (o *HelmPackageUpload) GetDistro() Distribution` @@ -899,31 +923,6 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. -### GetIsMalwareDetected - -`func (o *HelmPackageUpload) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *HelmPackageUpload) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *HelmPackageUpload) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *HelmPackageUpload) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetIsMoveable `func (o *HelmPackageUpload) GetIsMoveable() bool` @@ -2524,41 +2523,6 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. -### GetVulnerabilityCounts - -`func (o *HelmPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *HelmPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *HelmPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *HelmPackageUpload) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *HelmPackageUpload) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *HelmPackageUpload) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *HelmPackageUpload) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/HelmPackageUploadRequest.md b/docs/HelmPackageUploadRequest.md index 505a02ed..f2dc6da0 100644 --- a/docs/HelmPackageUploadRequest.md +++ b/docs/HelmPackageUploadRequest.md @@ -4,12 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **PackageFile** | **string** | The primary file for the package. | **ProvenanceFile** | Pointer to **NullableString** | The provenance file containing the signature for the chart. If one is not provided, it will be generated automatically. | [optional] **Republish** | Pointer to **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** | Pointer to **NullableString** | A comma-separated values list of tags to add to the package. | [optional] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -30,31 +28,6 @@ NewHelmPackageUploadRequestWithDefaults instantiates a new HelmPackageUploadRequ This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetIsMalwareDetected - -`func (o *HelmPackageUploadRequest) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *HelmPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *HelmPackageUploadRequest) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *HelmPackageUploadRequest) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetPackageFile `func (o *HelmPackageUploadRequest) GetPackageFile() string` @@ -170,41 +143,6 @@ HasTags returns a boolean if a field has been set. `func (o *HelmPackageUploadRequest) UnsetTags()` UnsetTags ensures that no value is present for Tags, not even an explicit nil -### GetVulnerabilityCounts - -`func (o *HelmPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *HelmPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *HelmPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *HelmPackageUploadRequest) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *HelmPackageUploadRequest) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *HelmPackageUploadRequest) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil [[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/docs/HexPackageUpload.md b/docs/HexPackageUpload.md index 2e324f13..ac5b45f7 100644 --- a/docs/HexPackageUpload.md +++ b/docs/HexPackageUpload.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **DependenciesUrl** | Pointer to **string** | | [optional] [readonly] **Description** | Pointer to **NullableString** | A textual description of this package. | [optional] [readonly] **DisplayName** | Pointer to **string** | | [optional] [readonly] +**DisplaySource** | Pointer to **string** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] [readonly] **Distro** | Pointer to [**NullableDistribution**](Distribution.md) | | [optional] **DistroVersion** | Pointer to [**DistributionVersion**](DistributionVersion.md) | | [optional] **Downloads** | Pointer to **int64** | | [optional] [readonly] @@ -33,7 +34,6 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -92,7 +92,6 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] [readonly] **VersionOrig** | Pointer to **string** | | [optional] [readonly] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -394,6 +393,31 @@ SetDisplayName sets DisplayName field to given value. HasDisplayName returns a boolean if a field has been set. +### GetDisplaySource + +`func (o *HexPackageUpload) GetDisplaySource() string` + +GetDisplaySource returns the DisplaySource field if non-nil, zero value otherwise. + +### GetDisplaySourceOk + +`func (o *HexPackageUpload) GetDisplaySourceOk() (*string, bool)` + +GetDisplaySourceOk returns a tuple with the DisplaySource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplaySource + +`func (o *HexPackageUpload) SetDisplaySource(v string)` + +SetDisplaySource sets DisplaySource field to given value. + +### HasDisplaySource + +`func (o *HexPackageUpload) HasDisplaySource() bool` + +HasDisplaySource returns a boolean if a field has been set. + ### GetDistro `func (o *HexPackageUpload) GetDistro() Distribution` @@ -899,31 +923,6 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. -### GetIsMalwareDetected - -`func (o *HexPackageUpload) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *HexPackageUpload) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *HexPackageUpload) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *HexPackageUpload) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetIsMoveable `func (o *HexPackageUpload) GetIsMoveable() bool` @@ -2524,41 +2523,6 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. -### GetVulnerabilityCounts - -`func (o *HexPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *HexPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *HexPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *HexPackageUpload) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *HexPackageUpload) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *HexPackageUpload) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *HexPackageUpload) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/HexPackageUploadRequest.md b/docs/HexPackageUploadRequest.md index 74dbf6ef..678bfed7 100644 --- a/docs/HexPackageUploadRequest.md +++ b/docs/HexPackageUploadRequest.md @@ -4,11 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **PackageFile** | **string** | The primary file for the package. | **Republish** | Pointer to **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** | Pointer to **NullableString** | A comma-separated values list of tags to add to the package. | [optional] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -29,31 +27,6 @@ NewHexPackageUploadRequestWithDefaults instantiates a new HexPackageUploadReques This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetIsMalwareDetected - -`func (o *HexPackageUploadRequest) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *HexPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *HexPackageUploadRequest) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *HexPackageUploadRequest) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetPackageFile `func (o *HexPackageUploadRequest) GetPackageFile() string` @@ -134,41 +107,6 @@ HasTags returns a boolean if a field has been set. `func (o *HexPackageUploadRequest) UnsetTags()` UnsetTags ensures that no value is present for Tags, not even an explicit nil -### GetVulnerabilityCounts - -`func (o *HexPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *HexPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *HexPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *HexPackageUploadRequest) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *HexPackageUploadRequest) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *HexPackageUploadRequest) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil [[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/docs/HuggingfacePackageUpload.md b/docs/HuggingfacePackageUpload.md index 1db26cd7..39133d25 100644 --- a/docs/HuggingfacePackageUpload.md +++ b/docs/HuggingfacePackageUpload.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **DependenciesUrl** | Pointer to **string** | | [optional] [readonly] **Description** | Pointer to **NullableString** | A textual description of this package. | [optional] [readonly] **DisplayName** | Pointer to **string** | | [optional] [readonly] +**DisplaySource** | Pointer to **string** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] [readonly] **Distro** | Pointer to [**NullableDistribution**](Distribution.md) | | [optional] **DistroVersion** | Pointer to [**DistributionVersion**](DistributionVersion.md) | | [optional] **Downloads** | Pointer to **int64** | | [optional] [readonly] @@ -33,7 +34,6 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -92,7 +92,6 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] [readonly] **VersionOrig** | Pointer to **string** | | [optional] [readonly] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -394,6 +393,31 @@ SetDisplayName sets DisplayName field to given value. HasDisplayName returns a boolean if a field has been set. +### GetDisplaySource + +`func (o *HuggingfacePackageUpload) GetDisplaySource() string` + +GetDisplaySource returns the DisplaySource field if non-nil, zero value otherwise. + +### GetDisplaySourceOk + +`func (o *HuggingfacePackageUpload) GetDisplaySourceOk() (*string, bool)` + +GetDisplaySourceOk returns a tuple with the DisplaySource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplaySource + +`func (o *HuggingfacePackageUpload) SetDisplaySource(v string)` + +SetDisplaySource sets DisplaySource field to given value. + +### HasDisplaySource + +`func (o *HuggingfacePackageUpload) HasDisplaySource() bool` + +HasDisplaySource returns a boolean if a field has been set. + ### GetDistro `func (o *HuggingfacePackageUpload) GetDistro() Distribution` @@ -899,31 +923,6 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. -### GetIsMalwareDetected - -`func (o *HuggingfacePackageUpload) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *HuggingfacePackageUpload) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *HuggingfacePackageUpload) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *HuggingfacePackageUpload) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetIsMoveable `func (o *HuggingfacePackageUpload) GetIsMoveable() bool` @@ -2524,41 +2523,6 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. -### GetVulnerabilityCounts - -`func (o *HuggingfacePackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *HuggingfacePackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *HuggingfacePackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *HuggingfacePackageUpload) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *HuggingfacePackageUpload) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *HuggingfacePackageUpload) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *HuggingfacePackageUpload) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/HuggingfacePackageUploadRequest.md b/docs/HuggingfacePackageUploadRequest.md index 381b7fd7..81bef714 100644 --- a/docs/HuggingfacePackageUploadRequest.md +++ b/docs/HuggingfacePackageUploadRequest.md @@ -4,11 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **PackageFile** | **string** | The primary file for the package. | **Republish** | Pointer to **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** | Pointer to **NullableString** | A comma-separated values list of tags to add to the package. | [optional] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -29,31 +27,6 @@ NewHuggingfacePackageUploadRequestWithDefaults instantiates a new HuggingfacePac This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetIsMalwareDetected - -`func (o *HuggingfacePackageUploadRequest) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *HuggingfacePackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *HuggingfacePackageUploadRequest) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *HuggingfacePackageUploadRequest) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetPackageFile `func (o *HuggingfacePackageUploadRequest) GetPackageFile() string` @@ -134,41 +107,6 @@ HasTags returns a boolean if a field has been set. `func (o *HuggingfacePackageUploadRequest) UnsetTags()` UnsetTags ensures that no value is present for Tags, not even an explicit nil -### GetVulnerabilityCounts - -`func (o *HuggingfacePackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *HuggingfacePackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *HuggingfacePackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *HuggingfacePackageUploadRequest) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *HuggingfacePackageUploadRequest) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *HuggingfacePackageUploadRequest) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil [[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/docs/LuarocksPackageUpload.md b/docs/LuarocksPackageUpload.md index ae353e8e..e309d3d3 100644 --- a/docs/LuarocksPackageUpload.md +++ b/docs/LuarocksPackageUpload.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **DependenciesUrl** | Pointer to **string** | | [optional] [readonly] **Description** | Pointer to **NullableString** | A textual description of this package. | [optional] [readonly] **DisplayName** | Pointer to **string** | | [optional] [readonly] +**DisplaySource** | Pointer to **string** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] [readonly] **Distro** | Pointer to [**NullableDistribution**](Distribution.md) | | [optional] **DistroVersion** | Pointer to [**DistributionVersion**](DistributionVersion.md) | | [optional] **Downloads** | Pointer to **int64** | | [optional] [readonly] @@ -33,7 +34,6 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -92,7 +92,6 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] [readonly] **VersionOrig** | Pointer to **string** | | [optional] [readonly] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -394,6 +393,31 @@ SetDisplayName sets DisplayName field to given value. HasDisplayName returns a boolean if a field has been set. +### GetDisplaySource + +`func (o *LuarocksPackageUpload) GetDisplaySource() string` + +GetDisplaySource returns the DisplaySource field if non-nil, zero value otherwise. + +### GetDisplaySourceOk + +`func (o *LuarocksPackageUpload) GetDisplaySourceOk() (*string, bool)` + +GetDisplaySourceOk returns a tuple with the DisplaySource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplaySource + +`func (o *LuarocksPackageUpload) SetDisplaySource(v string)` + +SetDisplaySource sets DisplaySource field to given value. + +### HasDisplaySource + +`func (o *LuarocksPackageUpload) HasDisplaySource() bool` + +HasDisplaySource returns a boolean if a field has been set. + ### GetDistro `func (o *LuarocksPackageUpload) GetDistro() Distribution` @@ -899,31 +923,6 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. -### GetIsMalwareDetected - -`func (o *LuarocksPackageUpload) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *LuarocksPackageUpload) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *LuarocksPackageUpload) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *LuarocksPackageUpload) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetIsMoveable `func (o *LuarocksPackageUpload) GetIsMoveable() bool` @@ -2524,41 +2523,6 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. -### GetVulnerabilityCounts - -`func (o *LuarocksPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *LuarocksPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *LuarocksPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *LuarocksPackageUpload) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *LuarocksPackageUpload) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *LuarocksPackageUpload) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *LuarocksPackageUpload) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/LuarocksPackageUploadRequest.md b/docs/LuarocksPackageUploadRequest.md index 448ab09b..537ea03e 100644 --- a/docs/LuarocksPackageUploadRequest.md +++ b/docs/LuarocksPackageUploadRequest.md @@ -4,11 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **PackageFile** | **string** | The primary file for the package. | **Republish** | Pointer to **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** | Pointer to **NullableString** | A comma-separated values list of tags to add to the package. | [optional] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -29,31 +27,6 @@ NewLuarocksPackageUploadRequestWithDefaults instantiates a new LuarocksPackageUp This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetIsMalwareDetected - -`func (o *LuarocksPackageUploadRequest) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *LuarocksPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *LuarocksPackageUploadRequest) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *LuarocksPackageUploadRequest) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetPackageFile `func (o *LuarocksPackageUploadRequest) GetPackageFile() string` @@ -134,41 +107,6 @@ HasTags returns a boolean if a field has been set. `func (o *LuarocksPackageUploadRequest) UnsetTags()` UnsetTags ensures that no value is present for Tags, not even an explicit nil -### GetVulnerabilityCounts - -`func (o *LuarocksPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *LuarocksPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *LuarocksPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *LuarocksPackageUploadRequest) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *LuarocksPackageUploadRequest) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *LuarocksPackageUploadRequest) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil [[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/docs/MavenPackageUpload.md b/docs/MavenPackageUpload.md index 426d1a76..23782a50 100644 --- a/docs/MavenPackageUpload.md +++ b/docs/MavenPackageUpload.md @@ -15,6 +15,7 @@ Name | Type | Description | Notes **DependenciesUrl** | Pointer to **string** | | [optional] [readonly] **Description** | Pointer to **NullableString** | A textual description of this package. | [optional] [readonly] **DisplayName** | Pointer to **string** | | [optional] [readonly] +**DisplaySource** | Pointer to **string** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] [readonly] **Distro** | Pointer to [**NullableDistribution**](Distribution.md) | | [optional] **DistroVersion** | Pointer to [**DistributionVersion**](DistributionVersion.md) | | [optional] **Downloads** | Pointer to **int64** | | [optional] [readonly] @@ -35,7 +36,6 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -97,7 +97,6 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] **VersionOrig** | Pointer to **string** | | [optional] [readonly] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -434,6 +433,31 @@ SetDisplayName sets DisplayName field to given value. HasDisplayName returns a boolean if a field has been set. +### GetDisplaySource + +`func (o *MavenPackageUpload) GetDisplaySource() string` + +GetDisplaySource returns the DisplaySource field if non-nil, zero value otherwise. + +### GetDisplaySourceOk + +`func (o *MavenPackageUpload) GetDisplaySourceOk() (*string, bool)` + +GetDisplaySourceOk returns a tuple with the DisplaySource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplaySource + +`func (o *MavenPackageUpload) SetDisplaySource(v string)` + +SetDisplaySource sets DisplaySource field to given value. + +### HasDisplaySource + +`func (o *MavenPackageUpload) HasDisplaySource() bool` + +HasDisplaySource returns a boolean if a field has been set. + ### GetDistro `func (o *MavenPackageUpload) GetDistro() Distribution` @@ -974,31 +998,6 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. -### GetIsMalwareDetected - -`func (o *MavenPackageUpload) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *MavenPackageUpload) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *MavenPackageUpload) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *MavenPackageUpload) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetIsMoveable `func (o *MavenPackageUpload) GetIsMoveable() bool` @@ -2704,41 +2703,6 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. -### GetVulnerabilityCounts - -`func (o *MavenPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *MavenPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *MavenPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *MavenPackageUpload) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *MavenPackageUpload) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *MavenPackageUpload) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *MavenPackageUpload) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/MavenPackageUploadRequest.md b/docs/MavenPackageUploadRequest.md index 015527c8..6f475bda 100644 --- a/docs/MavenPackageUploadRequest.md +++ b/docs/MavenPackageUploadRequest.md @@ -7,7 +7,6 @@ Name | Type | Description | Notes **ArtifactId** | Pointer to **NullableString** | The ID of the artifact. | [optional] **ExtraFiles** | Pointer to **[]string** | Extra files to include in the package. This can be a single file or multiple files. | [optional] **GroupId** | Pointer to **NullableString** | Artifact's group ID. | [optional] -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IvyFile** | Pointer to **NullableString** | The ivy file is an XML file describing the dependencies of the project. | [optional] **JavadocFile** | Pointer to **NullableString** | Adds bundled Java documentation to the Maven package | [optional] **PackageFile** | **string** | The primary file for the package. | @@ -20,7 +19,6 @@ Name | Type | Description | Notes **Tags** | Pointer to **NullableString** | A comma-separated values list of tags to add to the package. | [optional] **TestsFile** | Pointer to **NullableString** | Adds bundled Java tests to the Maven package. | [optional] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -146,31 +144,6 @@ HasGroupId returns a boolean if a field has been set. `func (o *MavenPackageUploadRequest) UnsetGroupId()` UnsetGroupId ensures that no value is present for GroupId, not even an explicit nil -### GetIsMalwareDetected - -`func (o *MavenPackageUploadRequest) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *MavenPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *MavenPackageUploadRequest) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *MavenPackageUploadRequest) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetIvyFile `func (o *MavenPackageUploadRequest) GetIvyFile() string` @@ -566,41 +539,6 @@ HasVersion returns a boolean if a field has been set. `func (o *MavenPackageUploadRequest) UnsetVersion()` UnsetVersion ensures that no value is present for Version, not even an explicit nil -### GetVulnerabilityCounts - -`func (o *MavenPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *MavenPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *MavenPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *MavenPackageUploadRequest) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *MavenPackageUploadRequest) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *MavenPackageUploadRequest) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil [[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/docs/McpPackageUpload.md b/docs/McpPackageUpload.md index da43691f..22179a95 100644 --- a/docs/McpPackageUpload.md +++ b/docs/McpPackageUpload.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **DependenciesUrl** | Pointer to **string** | | [optional] [readonly] **Description** | Pointer to **NullableString** | A textual description of this package. | [optional] [readonly] **DisplayName** | Pointer to **string** | | [optional] [readonly] +**DisplaySource** | Pointer to **string** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] [readonly] **Distro** | Pointer to [**NullableDistribution**](Distribution.md) | | [optional] **DistroVersion** | Pointer to [**DistributionVersion**](DistributionVersion.md) | | [optional] **Downloads** | Pointer to **int64** | | [optional] [readonly] @@ -33,7 +34,6 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -92,7 +92,6 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] **VersionOrig** | Pointer to **string** | | [optional] [readonly] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -394,6 +393,31 @@ SetDisplayName sets DisplayName field to given value. HasDisplayName returns a boolean if a field has been set. +### GetDisplaySource + +`func (o *McpPackageUpload) GetDisplaySource() string` + +GetDisplaySource returns the DisplaySource field if non-nil, zero value otherwise. + +### GetDisplaySourceOk + +`func (o *McpPackageUpload) GetDisplaySourceOk() (*string, bool)` + +GetDisplaySourceOk returns a tuple with the DisplaySource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplaySource + +`func (o *McpPackageUpload) SetDisplaySource(v string)` + +SetDisplaySource sets DisplaySource field to given value. + +### HasDisplaySource + +`func (o *McpPackageUpload) HasDisplaySource() bool` + +HasDisplaySource returns a boolean if a field has been set. + ### GetDistro `func (o *McpPackageUpload) GetDistro() Distribution` @@ -899,31 +923,6 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. -### GetIsMalwareDetected - -`func (o *McpPackageUpload) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *McpPackageUpload) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *McpPackageUpload) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *McpPackageUpload) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetIsMoveable `func (o *McpPackageUpload) GetIsMoveable() bool` @@ -2524,41 +2523,6 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. -### GetVulnerabilityCounts - -`func (o *McpPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *McpPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *McpPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *McpPackageUpload) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *McpPackageUpload) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *McpPackageUpload) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *McpPackageUpload) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/McpPackageUploadRequest.md b/docs/McpPackageUploadRequest.md index 19a3f432..e74d688c 100644 --- a/docs/McpPackageUploadRequest.md +++ b/docs/McpPackageUploadRequest.md @@ -4,12 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **PackageFile** | **string** | The primary file for the package. | **Republish** | Pointer to **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** | Pointer to **NullableString** | A comma-separated values list of tags to add to the package. | [optional] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -30,31 +28,6 @@ NewMcpPackageUploadRequestWithDefaults instantiates a new McpPackageUploadReques This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetIsMalwareDetected - -`func (o *McpPackageUploadRequest) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *McpPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *McpPackageUploadRequest) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *McpPackageUploadRequest) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetPackageFile `func (o *McpPackageUploadRequest) GetPackageFile() string` @@ -170,41 +143,6 @@ HasVersion returns a boolean if a field has been set. `func (o *McpPackageUploadRequest) UnsetVersion()` UnsetVersion ensures that no value is present for Version, not even an explicit nil -### GetVulnerabilityCounts - -`func (o *McpPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *McpPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *McpPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *McpPackageUploadRequest) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *McpPackageUploadRequest) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *McpPackageUploadRequest) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil [[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/docs/NixPackageUpload.md b/docs/NixPackageUpload.md index 15629ec5..8b5e3576 100644 --- a/docs/NixPackageUpload.md +++ b/docs/NixPackageUpload.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **DependenciesUrl** | Pointer to **string** | | [optional] [readonly] **Description** | Pointer to **NullableString** | A textual description of this package. | [optional] [readonly] **DisplayName** | Pointer to **string** | | [optional] [readonly] +**DisplaySource** | Pointer to **string** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] [readonly] **Distro** | Pointer to [**NullableDistribution**](Distribution.md) | | [optional] **DistroVersion** | Pointer to [**DistributionVersion**](DistributionVersion.md) | | [optional] **Downloads** | Pointer to **int64** | | [optional] [readonly] @@ -33,7 +34,6 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -92,7 +92,6 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] **VersionOrig** | Pointer to **string** | | [optional] [readonly] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -394,6 +393,31 @@ SetDisplayName sets DisplayName field to given value. HasDisplayName returns a boolean if a field has been set. +### GetDisplaySource + +`func (o *NixPackageUpload) GetDisplaySource() string` + +GetDisplaySource returns the DisplaySource field if non-nil, zero value otherwise. + +### GetDisplaySourceOk + +`func (o *NixPackageUpload) GetDisplaySourceOk() (*string, bool)` + +GetDisplaySourceOk returns a tuple with the DisplaySource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplaySource + +`func (o *NixPackageUpload) SetDisplaySource(v string)` + +SetDisplaySource sets DisplaySource field to given value. + +### HasDisplaySource + +`func (o *NixPackageUpload) HasDisplaySource() bool` + +HasDisplaySource returns a boolean if a field has been set. + ### GetDistro `func (o *NixPackageUpload) GetDistro() Distribution` @@ -899,31 +923,6 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. -### GetIsMalwareDetected - -`func (o *NixPackageUpload) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *NixPackageUpload) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *NixPackageUpload) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *NixPackageUpload) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetIsMoveable `func (o *NixPackageUpload) GetIsMoveable() bool` @@ -2524,41 +2523,6 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. -### GetVulnerabilityCounts - -`func (o *NixPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *NixPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *NixPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *NixPackageUpload) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *NixPackageUpload) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *NixPackageUpload) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *NixPackageUpload) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/NixPackageUploadRequest.md b/docs/NixPackageUploadRequest.md index a111b42d..57da2277 100644 --- a/docs/NixPackageUploadRequest.md +++ b/docs/NixPackageUploadRequest.md @@ -4,13 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **NarinfoFile** | Pointer to **NullableString** | 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** | Pointer to **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** | Pointer to **NullableString** | A comma-separated values list of tags to add to the package. | [optional] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -31,31 +29,6 @@ NewNixPackageUploadRequestWithDefaults instantiates a new NixPackageUploadReques This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetIsMalwareDetected - -`func (o *NixPackageUploadRequest) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *NixPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *NixPackageUploadRequest) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *NixPackageUploadRequest) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetNarinfoFile `func (o *NixPackageUploadRequest) GetNarinfoFile() string` @@ -206,41 +179,6 @@ HasVersion returns a boolean if a field has been set. `func (o *NixPackageUploadRequest) UnsetVersion()` UnsetVersion ensures that no value is present for Version, not even an explicit nil -### GetVulnerabilityCounts - -`func (o *NixPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *NixPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *NixPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *NixPackageUploadRequest) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *NixPackageUploadRequest) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *NixPackageUploadRequest) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil [[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/docs/NpmPackageUpload.md b/docs/NpmPackageUpload.md index ec7334c8..2c778202 100644 --- a/docs/NpmPackageUpload.md +++ b/docs/NpmPackageUpload.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **DependenciesUrl** | Pointer to **string** | | [optional] [readonly] **Description** | Pointer to **NullableString** | A textual description of this package. | [optional] [readonly] **DisplayName** | Pointer to **string** | | [optional] [readonly] +**DisplaySource** | Pointer to **string** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] [readonly] **Distro** | Pointer to [**NullableDistribution**](Distribution.md) | | [optional] **DistroVersion** | Pointer to [**DistributionVersion**](DistributionVersion.md) | | [optional] **Downloads** | Pointer to **int64** | | [optional] [readonly] @@ -33,7 +34,6 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -92,7 +92,6 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] [readonly] **VersionOrig** | Pointer to **string** | | [optional] [readonly] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -394,6 +393,31 @@ SetDisplayName sets DisplayName field to given value. HasDisplayName returns a boolean if a field has been set. +### GetDisplaySource + +`func (o *NpmPackageUpload) GetDisplaySource() string` + +GetDisplaySource returns the DisplaySource field if non-nil, zero value otherwise. + +### GetDisplaySourceOk + +`func (o *NpmPackageUpload) GetDisplaySourceOk() (*string, bool)` + +GetDisplaySourceOk returns a tuple with the DisplaySource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplaySource + +`func (o *NpmPackageUpload) SetDisplaySource(v string)` + +SetDisplaySource sets DisplaySource field to given value. + +### HasDisplaySource + +`func (o *NpmPackageUpload) HasDisplaySource() bool` + +HasDisplaySource returns a boolean if a field has been set. + ### GetDistro `func (o *NpmPackageUpload) GetDistro() Distribution` @@ -899,31 +923,6 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. -### GetIsMalwareDetected - -`func (o *NpmPackageUpload) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *NpmPackageUpload) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *NpmPackageUpload) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *NpmPackageUpload) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetIsMoveable `func (o *NpmPackageUpload) GetIsMoveable() bool` @@ -2524,41 +2523,6 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. -### GetVulnerabilityCounts - -`func (o *NpmPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *NpmPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *NpmPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *NpmPackageUpload) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *NpmPackageUpload) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *NpmPackageUpload) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *NpmPackageUpload) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/NpmPackageUploadRequest.md b/docs/NpmPackageUploadRequest.md index 8e21c5e2..976d08bf 100644 --- a/docs/NpmPackageUploadRequest.md +++ b/docs/NpmPackageUploadRequest.md @@ -4,12 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **NpmDistTag** | Pointer to **NullableString** | 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"] **PackageFile** | **string** | The primary file for the package. | **Republish** | Pointer to **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** | Pointer to **NullableString** | A comma-separated values list of tags to add to the package. | [optional] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -30,31 +28,6 @@ NewNpmPackageUploadRequestWithDefaults instantiates a new NpmPackageUploadReques This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetIsMalwareDetected - -`func (o *NpmPackageUploadRequest) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *NpmPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *NpmPackageUploadRequest) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *NpmPackageUploadRequest) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetNpmDistTag `func (o *NpmPackageUploadRequest) GetNpmDistTag() string` @@ -170,41 +143,6 @@ HasTags returns a boolean if a field has been set. `func (o *NpmPackageUploadRequest) UnsetTags()` UnsetTags ensures that no value is present for Tags, not even an explicit nil -### GetVulnerabilityCounts - -`func (o *NpmPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *NpmPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *NpmPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *NpmPackageUploadRequest) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *NpmPackageUploadRequest) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *NpmPackageUploadRequest) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil [[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/docs/NugetPackageUpload.md b/docs/NugetPackageUpload.md index b6f83c7b..be96d0e6 100644 --- a/docs/NugetPackageUpload.md +++ b/docs/NugetPackageUpload.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **DependenciesUrl** | Pointer to **string** | | [optional] [readonly] **Description** | Pointer to **NullableString** | A textual description of this package. | [optional] [readonly] **DisplayName** | Pointer to **string** | | [optional] [readonly] +**DisplaySource** | Pointer to **string** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] [readonly] **Distro** | Pointer to [**NullableDistribution**](Distribution.md) | | [optional] **DistroVersion** | Pointer to [**DistributionVersion**](DistributionVersion.md) | | [optional] **Downloads** | Pointer to **int64** | | [optional] [readonly] @@ -33,7 +34,6 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -92,7 +92,6 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] [readonly] **VersionOrig** | Pointer to **string** | | [optional] [readonly] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -394,6 +393,31 @@ SetDisplayName sets DisplayName field to given value. HasDisplayName returns a boolean if a field has been set. +### GetDisplaySource + +`func (o *NugetPackageUpload) GetDisplaySource() string` + +GetDisplaySource returns the DisplaySource field if non-nil, zero value otherwise. + +### GetDisplaySourceOk + +`func (o *NugetPackageUpload) GetDisplaySourceOk() (*string, bool)` + +GetDisplaySourceOk returns a tuple with the DisplaySource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplaySource + +`func (o *NugetPackageUpload) SetDisplaySource(v string)` + +SetDisplaySource sets DisplaySource field to given value. + +### HasDisplaySource + +`func (o *NugetPackageUpload) HasDisplaySource() bool` + +HasDisplaySource returns a boolean if a field has been set. + ### GetDistro `func (o *NugetPackageUpload) GetDistro() Distribution` @@ -899,31 +923,6 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. -### GetIsMalwareDetected - -`func (o *NugetPackageUpload) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *NugetPackageUpload) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *NugetPackageUpload) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *NugetPackageUpload) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetIsMoveable `func (o *NugetPackageUpload) GetIsMoveable() bool` @@ -2524,41 +2523,6 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. -### GetVulnerabilityCounts - -`func (o *NugetPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *NugetPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *NugetPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *NugetPackageUpload) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *NugetPackageUpload) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *NugetPackageUpload) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *NugetPackageUpload) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/NugetPackageUploadRequest.md b/docs/NugetPackageUploadRequest.md index 886a7405..3a4b757c 100644 --- a/docs/NugetPackageUploadRequest.md +++ b/docs/NugetPackageUploadRequest.md @@ -4,12 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **PackageFile** | **string** | The primary file for the package. | **Republish** | Pointer to **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] **SymbolsFile** | Pointer to **NullableString** | Uploads a symbols file as a separate package | [optional] **Tags** | Pointer to **NullableString** | A comma-separated values list of tags to add to the package. | [optional] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -30,31 +28,6 @@ NewNugetPackageUploadRequestWithDefaults instantiates a new NugetPackageUploadRe This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetIsMalwareDetected - -`func (o *NugetPackageUploadRequest) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *NugetPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *NugetPackageUploadRequest) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *NugetPackageUploadRequest) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetPackageFile `func (o *NugetPackageUploadRequest) GetPackageFile() string` @@ -170,41 +143,6 @@ HasTags returns a boolean if a field has been set. `func (o *NugetPackageUploadRequest) UnsetTags()` UnsetTags ensures that no value is present for Tags, not even an explicit nil -### GetVulnerabilityCounts - -`func (o *NugetPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *NugetPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *NugetPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *NugetPackageUploadRequest) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *NugetPackageUploadRequest) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *NugetPackageUploadRequest) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil [[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/docs/OrganizationApiKeyRule.md b/docs/OrganizationApiKeyRule.md new file mode 100644 index 00000000..428adca9 --- /dev/null +++ b/docs/OrganizationApiKeyRule.md @@ -0,0 +1,269 @@ +# OrganizationApiKeyRule + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CreatedAt** | Pointer to **time.Time** | | [optional] [readonly] +**EnforceRefresh** | Pointer to **bool** | When enabled, API keys that violate the organization's rule will be replaced automatically. | [optional] +**IsEnabled** | Pointer to **bool** | Whether this rule is currently active and enforced. | [optional] +**LastAppliedAt** | Pointer to **time.Time** | The last time this rule was evaluated and applied by the expiry task. | [optional] [readonly] +**MaxAgeHours** | Pointer to **NullableInt64** | The maximum permitted age of an API key for use in the organization. API keys older than this will no longer have access until they are refreshed. To disable the rule unset this value. | [optional] +**RuleType** | **string** | Specify which account types this rule applies to: all accounts (deprecated — prefer separate service/user rules), service accounts only, or user accounts only. | +**Slug** | Pointer to **string** | Human-readable identifier for the rule type. Automatically generated based on the rule type. | [optional] [readonly] +**SlugPerm** | Pointer to **string** | An auto-generated id that uniquely identifies the API key policy. | [optional] [readonly] +**UpdatedAt** | Pointer to **time.Time** | | [optional] [readonly] + +## Methods + +### NewOrganizationApiKeyRule + +`func NewOrganizationApiKeyRule(ruleType string, ) *OrganizationApiKeyRule` + +NewOrganizationApiKeyRule instantiates a new OrganizationApiKeyRule object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOrganizationApiKeyRuleWithDefaults + +`func NewOrganizationApiKeyRuleWithDefaults() *OrganizationApiKeyRule` + +NewOrganizationApiKeyRuleWithDefaults instantiates a new OrganizationApiKeyRule object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCreatedAt + +`func (o *OrganizationApiKeyRule) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *OrganizationApiKeyRule) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *OrganizationApiKeyRule) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *OrganizationApiKeyRule) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetEnforceRefresh + +`func (o *OrganizationApiKeyRule) GetEnforceRefresh() bool` + +GetEnforceRefresh returns the EnforceRefresh field if non-nil, zero value otherwise. + +### GetEnforceRefreshOk + +`func (o *OrganizationApiKeyRule) GetEnforceRefreshOk() (*bool, bool)` + +GetEnforceRefreshOk returns a tuple with the EnforceRefresh field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnforceRefresh + +`func (o *OrganizationApiKeyRule) SetEnforceRefresh(v bool)` + +SetEnforceRefresh sets EnforceRefresh field to given value. + +### HasEnforceRefresh + +`func (o *OrganizationApiKeyRule) HasEnforceRefresh() bool` + +HasEnforceRefresh returns a boolean if a field has been set. + +### GetIsEnabled + +`func (o *OrganizationApiKeyRule) GetIsEnabled() bool` + +GetIsEnabled returns the IsEnabled field if non-nil, zero value otherwise. + +### GetIsEnabledOk + +`func (o *OrganizationApiKeyRule) GetIsEnabledOk() (*bool, bool)` + +GetIsEnabledOk returns a tuple with the IsEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsEnabled + +`func (o *OrganizationApiKeyRule) SetIsEnabled(v bool)` + +SetIsEnabled sets IsEnabled field to given value. + +### HasIsEnabled + +`func (o *OrganizationApiKeyRule) HasIsEnabled() bool` + +HasIsEnabled returns a boolean if a field has been set. + +### GetLastAppliedAt + +`func (o *OrganizationApiKeyRule) GetLastAppliedAt() time.Time` + +GetLastAppliedAt returns the LastAppliedAt field if non-nil, zero value otherwise. + +### GetLastAppliedAtOk + +`func (o *OrganizationApiKeyRule) GetLastAppliedAtOk() (*time.Time, bool)` + +GetLastAppliedAtOk returns a tuple with the LastAppliedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastAppliedAt + +`func (o *OrganizationApiKeyRule) SetLastAppliedAt(v time.Time)` + +SetLastAppliedAt sets LastAppliedAt field to given value. + +### HasLastAppliedAt + +`func (o *OrganizationApiKeyRule) HasLastAppliedAt() bool` + +HasLastAppliedAt returns a boolean if a field has been set. + +### GetMaxAgeHours + +`func (o *OrganizationApiKeyRule) GetMaxAgeHours() int64` + +GetMaxAgeHours returns the MaxAgeHours field if non-nil, zero value otherwise. + +### GetMaxAgeHoursOk + +`func (o *OrganizationApiKeyRule) GetMaxAgeHoursOk() (*int64, bool)` + +GetMaxAgeHoursOk returns a tuple with the MaxAgeHours field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxAgeHours + +`func (o *OrganizationApiKeyRule) SetMaxAgeHours(v int64)` + +SetMaxAgeHours sets MaxAgeHours field to given value. + +### HasMaxAgeHours + +`func (o *OrganizationApiKeyRule) HasMaxAgeHours() bool` + +HasMaxAgeHours returns a boolean if a field has been set. + +### SetMaxAgeHoursNil + +`func (o *OrganizationApiKeyRule) SetMaxAgeHoursNil(b bool)` + + SetMaxAgeHoursNil sets the value for MaxAgeHours to be an explicit nil + +### UnsetMaxAgeHours +`func (o *OrganizationApiKeyRule) UnsetMaxAgeHours()` + +UnsetMaxAgeHours ensures that no value is present for MaxAgeHours, not even an explicit nil +### GetRuleType + +`func (o *OrganizationApiKeyRule) GetRuleType() string` + +GetRuleType returns the RuleType field if non-nil, zero value otherwise. + +### GetRuleTypeOk + +`func (o *OrganizationApiKeyRule) GetRuleTypeOk() (*string, bool)` + +GetRuleTypeOk returns a tuple with the RuleType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRuleType + +`func (o *OrganizationApiKeyRule) SetRuleType(v string)` + +SetRuleType sets RuleType field to given value. + + +### GetSlug + +`func (o *OrganizationApiKeyRule) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *OrganizationApiKeyRule) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *OrganizationApiKeyRule) SetSlug(v string)` + +SetSlug sets Slug field to given value. + +### HasSlug + +`func (o *OrganizationApiKeyRule) HasSlug() bool` + +HasSlug returns a boolean if a field has been set. + +### GetSlugPerm + +`func (o *OrganizationApiKeyRule) GetSlugPerm() string` + +GetSlugPerm returns the SlugPerm field if non-nil, zero value otherwise. + +### GetSlugPermOk + +`func (o *OrganizationApiKeyRule) GetSlugPermOk() (*string, bool)` + +GetSlugPermOk returns a tuple with the SlugPerm field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlugPerm + +`func (o *OrganizationApiKeyRule) SetSlugPerm(v string)` + +SetSlugPerm sets SlugPerm field to given value. + +### HasSlugPerm + +`func (o *OrganizationApiKeyRule) HasSlugPerm() bool` + +HasSlugPerm returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *OrganizationApiKeyRule) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *OrganizationApiKeyRule) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *OrganizationApiKeyRule) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *OrganizationApiKeyRule) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + + +[[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/docs/OrganizationApiKeyRuleRequest.md b/docs/OrganizationApiKeyRuleRequest.md new file mode 100644 index 00000000..0de317fa --- /dev/null +++ b/docs/OrganizationApiKeyRuleRequest.md @@ -0,0 +1,165 @@ +# OrganizationApiKeyRuleRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EnforceRefresh** | Pointer to **bool** | When enabled, API keys that violate the organization's rule will be replaced automatically. | [optional] +**IsEnabled** | Pointer to **bool** | Whether this rule is currently active and enforced. | [optional] +**MaxAgeHours** | Pointer to **NullableInt64** | The maximum permitted age of an API key for use in the organization. API keys older than this will no longer have access until they are refreshed. To disable the rule unset this value. | [optional] +**RefreshImmediately** | Pointer to **bool** | If set to True, API keys that violate this rule will be replaced immediately after the request is made. There is no way to undo this. | [optional] +**RuleType** | **string** | Specify which account types this rule applies to: all accounts (deprecated — prefer separate service/user rules), service accounts only, or user accounts only. | + +## Methods + +### NewOrganizationApiKeyRuleRequest + +`func NewOrganizationApiKeyRuleRequest(ruleType string, ) *OrganizationApiKeyRuleRequest` + +NewOrganizationApiKeyRuleRequest instantiates a new OrganizationApiKeyRuleRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOrganizationApiKeyRuleRequestWithDefaults + +`func NewOrganizationApiKeyRuleRequestWithDefaults() *OrganizationApiKeyRuleRequest` + +NewOrganizationApiKeyRuleRequestWithDefaults instantiates a new OrganizationApiKeyRuleRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetEnforceRefresh + +`func (o *OrganizationApiKeyRuleRequest) GetEnforceRefresh() bool` + +GetEnforceRefresh returns the EnforceRefresh field if non-nil, zero value otherwise. + +### GetEnforceRefreshOk + +`func (o *OrganizationApiKeyRuleRequest) GetEnforceRefreshOk() (*bool, bool)` + +GetEnforceRefreshOk returns a tuple with the EnforceRefresh field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnforceRefresh + +`func (o *OrganizationApiKeyRuleRequest) SetEnforceRefresh(v bool)` + +SetEnforceRefresh sets EnforceRefresh field to given value. + +### HasEnforceRefresh + +`func (o *OrganizationApiKeyRuleRequest) HasEnforceRefresh() bool` + +HasEnforceRefresh returns a boolean if a field has been set. + +### GetIsEnabled + +`func (o *OrganizationApiKeyRuleRequest) GetIsEnabled() bool` + +GetIsEnabled returns the IsEnabled field if non-nil, zero value otherwise. + +### GetIsEnabledOk + +`func (o *OrganizationApiKeyRuleRequest) GetIsEnabledOk() (*bool, bool)` + +GetIsEnabledOk returns a tuple with the IsEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsEnabled + +`func (o *OrganizationApiKeyRuleRequest) SetIsEnabled(v bool)` + +SetIsEnabled sets IsEnabled field to given value. + +### HasIsEnabled + +`func (o *OrganizationApiKeyRuleRequest) HasIsEnabled() bool` + +HasIsEnabled returns a boolean if a field has been set. + +### GetMaxAgeHours + +`func (o *OrganizationApiKeyRuleRequest) GetMaxAgeHours() int64` + +GetMaxAgeHours returns the MaxAgeHours field if non-nil, zero value otherwise. + +### GetMaxAgeHoursOk + +`func (o *OrganizationApiKeyRuleRequest) GetMaxAgeHoursOk() (*int64, bool)` + +GetMaxAgeHoursOk returns a tuple with the MaxAgeHours field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxAgeHours + +`func (o *OrganizationApiKeyRuleRequest) SetMaxAgeHours(v int64)` + +SetMaxAgeHours sets MaxAgeHours field to given value. + +### HasMaxAgeHours + +`func (o *OrganizationApiKeyRuleRequest) HasMaxAgeHours() bool` + +HasMaxAgeHours returns a boolean if a field has been set. + +### SetMaxAgeHoursNil + +`func (o *OrganizationApiKeyRuleRequest) SetMaxAgeHoursNil(b bool)` + + SetMaxAgeHoursNil sets the value for MaxAgeHours to be an explicit nil + +### UnsetMaxAgeHours +`func (o *OrganizationApiKeyRuleRequest) UnsetMaxAgeHours()` + +UnsetMaxAgeHours ensures that no value is present for MaxAgeHours, not even an explicit nil +### GetRefreshImmediately + +`func (o *OrganizationApiKeyRuleRequest) GetRefreshImmediately() bool` + +GetRefreshImmediately returns the RefreshImmediately field if non-nil, zero value otherwise. + +### GetRefreshImmediatelyOk + +`func (o *OrganizationApiKeyRuleRequest) GetRefreshImmediatelyOk() (*bool, bool)` + +GetRefreshImmediatelyOk returns a tuple with the RefreshImmediately field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRefreshImmediately + +`func (o *OrganizationApiKeyRuleRequest) SetRefreshImmediately(v bool)` + +SetRefreshImmediately sets RefreshImmediately field to given value. + +### HasRefreshImmediately + +`func (o *OrganizationApiKeyRuleRequest) HasRefreshImmediately() bool` + +HasRefreshImmediately returns a boolean if a field has been set. + +### GetRuleType + +`func (o *OrganizationApiKeyRuleRequest) GetRuleType() string` + +GetRuleType returns the RuleType field if non-nil, zero value otherwise. + +### GetRuleTypeOk + +`func (o *OrganizationApiKeyRuleRequest) GetRuleTypeOk() (*string, bool)` + +GetRuleTypeOk returns a tuple with the RuleType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRuleType + +`func (o *OrganizationApiKeyRuleRequest) SetRuleType(v string)` + +SetRuleType sets RuleType field to given value. + + + +[[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/docs/OrganizationApiKeyRuleRequestPatch.md b/docs/OrganizationApiKeyRuleRequestPatch.md new file mode 100644 index 00000000..5f35233b --- /dev/null +++ b/docs/OrganizationApiKeyRuleRequestPatch.md @@ -0,0 +1,170 @@ +# OrganizationApiKeyRuleRequestPatch + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EnforceRefresh** | Pointer to **bool** | When enabled, API keys that violate the organization's rule will be replaced automatically. | [optional] +**IsEnabled** | Pointer to **bool** | Whether this rule is currently active and enforced. | [optional] +**MaxAgeHours** | Pointer to **NullableInt64** | The maximum permitted age of an API key for use in the organization. API keys older than this will no longer have access until they are refreshed. To disable the rule unset this value. | [optional] +**RefreshImmediately** | Pointer to **bool** | If set to True, API keys that violate this rule will be replaced immediately after the request is made. There is no way to undo this. | [optional] +**RuleType** | Pointer to **string** | Specify which account types this rule applies to: all accounts (deprecated — prefer separate service/user rules), service accounts only, or user accounts only. | [optional] + +## Methods + +### NewOrganizationApiKeyRuleRequestPatch + +`func NewOrganizationApiKeyRuleRequestPatch() *OrganizationApiKeyRuleRequestPatch` + +NewOrganizationApiKeyRuleRequestPatch instantiates a new OrganizationApiKeyRuleRequestPatch object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOrganizationApiKeyRuleRequestPatchWithDefaults + +`func NewOrganizationApiKeyRuleRequestPatchWithDefaults() *OrganizationApiKeyRuleRequestPatch` + +NewOrganizationApiKeyRuleRequestPatchWithDefaults instantiates a new OrganizationApiKeyRuleRequestPatch object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetEnforceRefresh + +`func (o *OrganizationApiKeyRuleRequestPatch) GetEnforceRefresh() bool` + +GetEnforceRefresh returns the EnforceRefresh field if non-nil, zero value otherwise. + +### GetEnforceRefreshOk + +`func (o *OrganizationApiKeyRuleRequestPatch) GetEnforceRefreshOk() (*bool, bool)` + +GetEnforceRefreshOk returns a tuple with the EnforceRefresh field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnforceRefresh + +`func (o *OrganizationApiKeyRuleRequestPatch) SetEnforceRefresh(v bool)` + +SetEnforceRefresh sets EnforceRefresh field to given value. + +### HasEnforceRefresh + +`func (o *OrganizationApiKeyRuleRequestPatch) HasEnforceRefresh() bool` + +HasEnforceRefresh returns a boolean if a field has been set. + +### GetIsEnabled + +`func (o *OrganizationApiKeyRuleRequestPatch) GetIsEnabled() bool` + +GetIsEnabled returns the IsEnabled field if non-nil, zero value otherwise. + +### GetIsEnabledOk + +`func (o *OrganizationApiKeyRuleRequestPatch) GetIsEnabledOk() (*bool, bool)` + +GetIsEnabledOk returns a tuple with the IsEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsEnabled + +`func (o *OrganizationApiKeyRuleRequestPatch) SetIsEnabled(v bool)` + +SetIsEnabled sets IsEnabled field to given value. + +### HasIsEnabled + +`func (o *OrganizationApiKeyRuleRequestPatch) HasIsEnabled() bool` + +HasIsEnabled returns a boolean if a field has been set. + +### GetMaxAgeHours + +`func (o *OrganizationApiKeyRuleRequestPatch) GetMaxAgeHours() int64` + +GetMaxAgeHours returns the MaxAgeHours field if non-nil, zero value otherwise. + +### GetMaxAgeHoursOk + +`func (o *OrganizationApiKeyRuleRequestPatch) GetMaxAgeHoursOk() (*int64, bool)` + +GetMaxAgeHoursOk returns a tuple with the MaxAgeHours field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxAgeHours + +`func (o *OrganizationApiKeyRuleRequestPatch) SetMaxAgeHours(v int64)` + +SetMaxAgeHours sets MaxAgeHours field to given value. + +### HasMaxAgeHours + +`func (o *OrganizationApiKeyRuleRequestPatch) HasMaxAgeHours() bool` + +HasMaxAgeHours returns a boolean if a field has been set. + +### SetMaxAgeHoursNil + +`func (o *OrganizationApiKeyRuleRequestPatch) SetMaxAgeHoursNil(b bool)` + + SetMaxAgeHoursNil sets the value for MaxAgeHours to be an explicit nil + +### UnsetMaxAgeHours +`func (o *OrganizationApiKeyRuleRequestPatch) UnsetMaxAgeHours()` + +UnsetMaxAgeHours ensures that no value is present for MaxAgeHours, not even an explicit nil +### GetRefreshImmediately + +`func (o *OrganizationApiKeyRuleRequestPatch) GetRefreshImmediately() bool` + +GetRefreshImmediately returns the RefreshImmediately field if non-nil, zero value otherwise. + +### GetRefreshImmediatelyOk + +`func (o *OrganizationApiKeyRuleRequestPatch) GetRefreshImmediatelyOk() (*bool, bool)` + +GetRefreshImmediatelyOk returns a tuple with the RefreshImmediately field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRefreshImmediately + +`func (o *OrganizationApiKeyRuleRequestPatch) SetRefreshImmediately(v bool)` + +SetRefreshImmediately sets RefreshImmediately field to given value. + +### HasRefreshImmediately + +`func (o *OrganizationApiKeyRuleRequestPatch) HasRefreshImmediately() bool` + +HasRefreshImmediately returns a boolean if a field has been set. + +### GetRuleType + +`func (o *OrganizationApiKeyRuleRequestPatch) GetRuleType() string` + +GetRuleType returns the RuleType field if non-nil, zero value otherwise. + +### GetRuleTypeOk + +`func (o *OrganizationApiKeyRuleRequestPatch) GetRuleTypeOk() (*string, bool)` + +GetRuleTypeOk returns a tuple with the RuleType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRuleType + +`func (o *OrganizationApiKeyRuleRequestPatch) SetRuleType(v string)` + +SetRuleType sets RuleType field to given value. + +### HasRuleType + +`func (o *OrganizationApiKeyRuleRequestPatch) HasRuleType() bool` + +HasRuleType returns a boolean if a field has been set. + + +[[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/docs/OrgsApi.md b/docs/OrgsApi.md index 6dece8dd..daaee2e4 100644 --- a/docs/OrgsApi.md +++ b/docs/OrgsApi.md @@ -4,6 +4,12 @@ All URIs are relative to *https://api.cloudsmith.io* Method | HTTP request | Description ------------- | ------------- | ------------- +[**OrgsApiKeyRulesCreate**](OrgsApi.md#OrgsApiKeyRulesCreate) | **Post** /orgs/{org}/api-key-rules/ | Create an API key rule. +[**OrgsApiKeyRulesDelete**](OrgsApi.md#OrgsApiKeyRulesDelete) | **Delete** /orgs/{org}/api-key-rules/{slug_perm}/ | Delete an API key rule. +[**OrgsApiKeyRulesList**](OrgsApi.md#OrgsApiKeyRulesList) | **Get** /orgs/{org}/api-key-rules/ | List all API key rules for the organization. +[**OrgsApiKeyRulesPartialUpdate**](OrgsApi.md#OrgsApiKeyRulesPartialUpdate) | **Patch** /orgs/{org}/api-key-rules/{slug_perm}/ | Update an API key rule. +[**OrgsApiKeyRulesRead**](OrgsApi.md#OrgsApiKeyRulesRead) | **Get** /orgs/{org}/api-key-rules/{slug_perm}/ | Retrieve an API key rule. +[**OrgsApiKeyRulesUpdate**](OrgsApi.md#OrgsApiKeyRulesUpdate) | **Put** /orgs/{org}/api-key-rules/{slug_perm}/ | Full update of an API key rule. [**OrgsCustomDomainsList**](OrgsApi.md#OrgsCustomDomainsList) | **Get** /orgs/{org}/custom-domains/ | Get the details for all custom domains. [**OrgsDelete**](OrgsApi.md#OrgsDelete) | **Delete** /orgs/{org}/ | Delete the specified organization. [**OrgsDenyPolicyCreate**](OrgsApi.md#OrgsDenyPolicyCreate) | **Post** /orgs/{org}/deny-policy/ | Create a package deny policy. @@ -83,6 +89,442 @@ Method | HTTP request | Description +## OrgsApiKeyRulesCreate + +> OrganizationApiKeyRule OrgsApiKeyRulesCreate(ctx, org).Data(data).Execute() + +Create an API key rule. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/cloudsmith-io/cloudsmith-api-go" +) + +func main() { + org := "org_example" // string | + data := *openapiclient.NewOrganizationApiKeyRuleRequest("RuleType_example") // OrganizationApiKeyRuleRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.OrgsApi.OrgsApiKeyRulesCreate(context.Background(), org).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OrgsApi.OrgsApiKeyRulesCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `OrgsApiKeyRulesCreate`: OrganizationApiKeyRule + fmt.Fprintf(os.Stdout, "Response from `OrgsApi.OrgsApiKeyRulesCreate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**org** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiOrgsApiKeyRulesCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **data** | [**OrganizationApiKeyRuleRequest**](OrganizationApiKeyRuleRequest.md) | | + +### Return type + +[**OrganizationApiKeyRule**](OrganizationApiKeyRule.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) + + +## OrgsApiKeyRulesDelete + +> OrgsApiKeyRulesDelete(ctx, org, slugPerm).Execute() + +Delete an API key rule. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/cloudsmith-io/cloudsmith-api-go" +) + +func main() { + org := "org_example" // string | + slugPerm := "slugPerm_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.OrgsApi.OrgsApiKeyRulesDelete(context.Background(), org, slugPerm).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OrgsApi.OrgsApiKeyRulesDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**org** | **string** | | +**slugPerm** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiOrgsApiKeyRulesDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + +- **Content-Type**: Not defined +- **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) + + +## OrgsApiKeyRulesList + +> []OrganizationApiKeyRule OrgsApiKeyRulesList(ctx, org).Execute() + +List all API key rules for the organization. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/cloudsmith-io/cloudsmith-api-go" +) + +func main() { + org := "org_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.OrgsApi.OrgsApiKeyRulesList(context.Background(), org).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OrgsApi.OrgsApiKeyRulesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `OrgsApiKeyRulesList`: []OrganizationApiKeyRule + fmt.Fprintf(os.Stdout, "Response from `OrgsApi.OrgsApiKeyRulesList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**org** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiOrgsApiKeyRulesListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**[]OrganizationApiKeyRule**](OrganizationApiKeyRule.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + +- **Content-Type**: Not defined +- **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) + + +## OrgsApiKeyRulesPartialUpdate + +> OrganizationApiKeyRule OrgsApiKeyRulesPartialUpdate(ctx, org, slugPerm).Data(data).Execute() + +Update an API key rule. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/cloudsmith-io/cloudsmith-api-go" +) + +func main() { + org := "org_example" // string | + slugPerm := "slugPerm_example" // string | + data := *openapiclient.NewOrganizationApiKeyRuleRequestPatch() // OrganizationApiKeyRuleRequestPatch | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.OrgsApi.OrgsApiKeyRulesPartialUpdate(context.Background(), org, slugPerm).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OrgsApi.OrgsApiKeyRulesPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `OrgsApiKeyRulesPartialUpdate`: OrganizationApiKeyRule + fmt.Fprintf(os.Stdout, "Response from `OrgsApi.OrgsApiKeyRulesPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**org** | **string** | | +**slugPerm** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiOrgsApiKeyRulesPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **data** | [**OrganizationApiKeyRuleRequestPatch**](OrganizationApiKeyRuleRequestPatch.md) | | + +### Return type + +[**OrganizationApiKeyRule**](OrganizationApiKeyRule.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) + + +## OrgsApiKeyRulesRead + +> OrganizationApiKeyRule OrgsApiKeyRulesRead(ctx, org, slugPerm).Execute() + +Retrieve an API key rule. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/cloudsmith-io/cloudsmith-api-go" +) + +func main() { + org := "org_example" // string | + slugPerm := "slugPerm_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.OrgsApi.OrgsApiKeyRulesRead(context.Background(), org, slugPerm).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OrgsApi.OrgsApiKeyRulesRead``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `OrgsApiKeyRulesRead`: OrganizationApiKeyRule + fmt.Fprintf(os.Stdout, "Response from `OrgsApi.OrgsApiKeyRulesRead`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**org** | **string** | | +**slugPerm** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiOrgsApiKeyRulesReadRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**OrganizationApiKeyRule**](OrganizationApiKeyRule.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + +- **Content-Type**: Not defined +- **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) + + +## OrgsApiKeyRulesUpdate + +> OrganizationApiKeyRule OrgsApiKeyRulesUpdate(ctx, org, slugPerm).Data(data).Execute() + +Full update of an API key rule. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/cloudsmith-io/cloudsmith-api-go" +) + +func main() { + org := "org_example" // string | + slugPerm := "slugPerm_example" // string | + data := *openapiclient.NewOrganizationApiKeyRuleRequest("RuleType_example") // OrganizationApiKeyRuleRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.OrgsApi.OrgsApiKeyRulesUpdate(context.Background(), org, slugPerm).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OrgsApi.OrgsApiKeyRulesUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `OrgsApiKeyRulesUpdate`: OrganizationApiKeyRule + fmt.Fprintf(os.Stdout, "Response from `OrgsApi.OrgsApiKeyRulesUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**org** | **string** | | +**slugPerm** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiOrgsApiKeyRulesUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **data** | [**OrganizationApiKeyRuleRequest**](OrganizationApiKeyRuleRequest.md) | | + +### Return type + +[**OrganizationApiKeyRule**](OrganizationApiKeyRule.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) + + ## OrgsCustomDomainsList > []OrganizationCustomDomains OrgsCustomDomainsList(ctx, org).Page(page).PageSize(pageSize).Execute() diff --git a/docs/P2PackageUpload.md b/docs/P2PackageUpload.md index f48a0758..b393b751 100644 --- a/docs/P2PackageUpload.md +++ b/docs/P2PackageUpload.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **DependenciesUrl** | Pointer to **string** | | [optional] [readonly] **Description** | Pointer to **NullableString** | A textual description of this package. | [optional] [readonly] **DisplayName** | Pointer to **string** | | [optional] [readonly] +**DisplaySource** | Pointer to **string** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] [readonly] **Distro** | Pointer to [**NullableDistribution**](Distribution.md) | | [optional] **DistroVersion** | Pointer to [**DistributionVersion**](DistributionVersion.md) | | [optional] **Downloads** | Pointer to **int64** | | [optional] [readonly] @@ -33,7 +34,6 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -92,7 +92,6 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] [readonly] **VersionOrig** | Pointer to **string** | | [optional] [readonly] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -394,6 +393,31 @@ SetDisplayName sets DisplayName field to given value. HasDisplayName returns a boolean if a field has been set. +### GetDisplaySource + +`func (o *P2PackageUpload) GetDisplaySource() string` + +GetDisplaySource returns the DisplaySource field if non-nil, zero value otherwise. + +### GetDisplaySourceOk + +`func (o *P2PackageUpload) GetDisplaySourceOk() (*string, bool)` + +GetDisplaySourceOk returns a tuple with the DisplaySource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplaySource + +`func (o *P2PackageUpload) SetDisplaySource(v string)` + +SetDisplaySource sets DisplaySource field to given value. + +### HasDisplaySource + +`func (o *P2PackageUpload) HasDisplaySource() bool` + +HasDisplaySource returns a boolean if a field has been set. + ### GetDistro `func (o *P2PackageUpload) GetDistro() Distribution` @@ -899,31 +923,6 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. -### GetIsMalwareDetected - -`func (o *P2PackageUpload) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *P2PackageUpload) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *P2PackageUpload) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *P2PackageUpload) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetIsMoveable `func (o *P2PackageUpload) GetIsMoveable() bool` @@ -2524,41 +2523,6 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. -### GetVulnerabilityCounts - -`func (o *P2PackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *P2PackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *P2PackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *P2PackageUpload) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *P2PackageUpload) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *P2PackageUpload) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *P2PackageUpload) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/P2PackageUploadRequest.md b/docs/P2PackageUploadRequest.md index b5195b61..bfab5428 100644 --- a/docs/P2PackageUploadRequest.md +++ b/docs/P2PackageUploadRequest.md @@ -4,11 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **PackageFile** | **string** | The primary file for the package. | **Republish** | Pointer to **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** | Pointer to **NullableString** | A comma-separated values list of tags to add to the package. | [optional] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -29,31 +27,6 @@ NewP2PackageUploadRequestWithDefaults instantiates a new P2PackageUploadRequest This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetIsMalwareDetected - -`func (o *P2PackageUploadRequest) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *P2PackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *P2PackageUploadRequest) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *P2PackageUploadRequest) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetPackageFile `func (o *P2PackageUploadRequest) GetPackageFile() string` @@ -134,41 +107,6 @@ HasTags returns a boolean if a field has been set. `func (o *P2PackageUploadRequest) UnsetTags()` UnsetTags ensures that no value is present for Tags, not even an explicit nil -### GetVulnerabilityCounts - -`func (o *P2PackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *P2PackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *P2PackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *P2PackageUploadRequest) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *P2PackageUploadRequest) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *P2PackageUploadRequest) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil [[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/docs/Package.md b/docs/Package.md index 9229ed8e..4122c0d8 100644 --- a/docs/Package.md +++ b/docs/Package.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **DependenciesUrl** | Pointer to **string** | | [optional] [readonly] **Description** | Pointer to **NullableString** | A textual description of this package. | [optional] [readonly] **DisplayName** | Pointer to **string** | | [optional] [readonly] +**DisplaySource** | Pointer to **string** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] [readonly] **Distro** | Pointer to [**NullableDistribution**](Distribution.md) | | [optional] **DistroVersion** | Pointer to [**DistributionVersion**](DistributionVersion.md) | | [optional] **Downloads** | Pointer to **int64** | | [optional] [readonly] @@ -396,6 +397,31 @@ SetDisplayName sets DisplayName field to given value. HasDisplayName returns a boolean if a field has been set. +### GetDisplaySource + +`func (o *Package) GetDisplaySource() string` + +GetDisplaySource returns the DisplaySource field if non-nil, zero value otherwise. + +### GetDisplaySourceOk + +`func (o *Package) GetDisplaySourceOk() (*string, bool)` + +GetDisplaySourceOk returns a tuple with the DisplaySource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplaySource + +`func (o *Package) SetDisplaySource(v string)` + +SetDisplaySource sets DisplaySource field to given value. + +### HasDisplaySource + +`func (o *Package) HasDisplaySource() bool` + +HasDisplaySource returns a boolean if a field has been set. + ### GetDistro `func (o *Package) GetDistro() Distribution` diff --git a/docs/PackageCopy.md b/docs/PackageCopy.md index e99f8663..2460be70 100644 --- a/docs/PackageCopy.md +++ b/docs/PackageCopy.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **DependenciesUrl** | Pointer to **string** | | [optional] [readonly] **Description** | Pointer to **NullableString** | A textual description of this package. | [optional] [readonly] **DisplayName** | Pointer to **string** | | [optional] [readonly] +**DisplaySource** | Pointer to **string** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] [readonly] **Distro** | Pointer to [**NullableDistribution**](Distribution.md) | | [optional] **DistroVersion** | Pointer to [**DistributionVersion**](DistributionVersion.md) | | [optional] **Downloads** | Pointer to **int64** | | [optional] [readonly] @@ -34,7 +35,6 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -94,7 +94,6 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] [readonly] **VersionOrig** | Pointer to **string** | | [optional] [readonly] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -396,6 +395,31 @@ SetDisplayName sets DisplayName field to given value. HasDisplayName returns a boolean if a field has been set. +### GetDisplaySource + +`func (o *PackageCopy) GetDisplaySource() string` + +GetDisplaySource returns the DisplaySource field if non-nil, zero value otherwise. + +### GetDisplaySourceOk + +`func (o *PackageCopy) GetDisplaySourceOk() (*string, bool)` + +GetDisplaySourceOk returns a tuple with the DisplaySource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplaySource + +`func (o *PackageCopy) SetDisplaySource(v string)` + +SetDisplaySource sets DisplaySource field to given value. + +### HasDisplaySource + +`func (o *PackageCopy) HasDisplaySource() bool` + +HasDisplaySource returns a boolean if a field has been set. + ### GetDistro `func (o *PackageCopy) GetDistro() Distribution` @@ -936,31 +960,6 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. -### GetIsMalwareDetected - -`func (o *PackageCopy) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *PackageCopy) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *PackageCopy) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *PackageCopy) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetIsMoveable `func (o *PackageCopy) GetIsMoveable() bool` @@ -2586,41 +2585,6 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. -### GetVulnerabilityCounts - -`func (o *PackageCopy) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *PackageCopy) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *PackageCopy) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *PackageCopy) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *PackageCopy) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *PackageCopy) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *PackageCopy) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/PackageCopyRequest.md b/docs/PackageCopyRequest.md index a9475f57..a9b407c7 100644 --- a/docs/PackageCopyRequest.md +++ b/docs/PackageCopyRequest.md @@ -5,9 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Destination** | **string** | The name of the destination repository without the namespace. | -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **Republish** | Pointer to **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] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -48,31 +46,6 @@ and a boolean to check if the value has been set. SetDestination sets Destination field to given value. -### GetIsMalwareDetected - -`func (o *PackageCopyRequest) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *PackageCopyRequest) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *PackageCopyRequest) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *PackageCopyRequest) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetRepublish `func (o *PackageCopyRequest) GetRepublish() bool` @@ -98,41 +71,6 @@ SetRepublish sets Republish field to given value. HasRepublish returns a boolean if a field has been set. -### GetVulnerabilityCounts - -`func (o *PackageCopyRequest) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *PackageCopyRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *PackageCopyRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *PackageCopyRequest) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *PackageCopyRequest) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *PackageCopyRequest) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil [[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/docs/PackageDetail.md b/docs/PackageDetail.md index 8070ea65..48367ae4 100644 --- a/docs/PackageDetail.md +++ b/docs/PackageDetail.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **DependenciesUrl** | Pointer to **string** | | [optional] [readonly] **Description** | Pointer to **NullableString** | A textual description of this package. | [optional] [readonly] **DisplayName** | Pointer to **string** | | [optional] [readonly] +**DisplaySource** | Pointer to **string** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] [readonly] **Distro** | Pointer to [**NullableDistribution**](Distribution.md) | | [optional] **DistroVersion** | Pointer to [**DistributionVersion**](DistributionVersion.md) | | [optional] **Downloads** | Pointer to **int64** | | [optional] [readonly] @@ -397,6 +398,31 @@ SetDisplayName sets DisplayName field to given value. HasDisplayName returns a boolean if a field has been set. +### GetDisplaySource + +`func (o *PackageDetail) GetDisplaySource() string` + +GetDisplaySource returns the DisplaySource field if non-nil, zero value otherwise. + +### GetDisplaySourceOk + +`func (o *PackageDetail) GetDisplaySourceOk() (*string, bool)` + +GetDisplaySourceOk returns a tuple with the DisplaySource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplaySource + +`func (o *PackageDetail) SetDisplaySource(v string)` + +SetDisplaySource sets DisplaySource field to given value. + +### HasDisplaySource + +`func (o *PackageDetail) HasDisplaySource() bool` + +HasDisplaySource returns a boolean if a field has been set. + ### GetDistro `func (o *PackageDetail) GetDistro() Distribution` diff --git a/docs/PackageLicense.md b/docs/PackageLicense.md index e30a562a..38e6733f 100644 --- a/docs/PackageLicense.md +++ b/docs/PackageLicense.md @@ -4,12 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **LicenseNotes** | Pointer to **NullableString** | | [optional] **LicenseOverride** | Pointer to **NullableString** | | [optional] [default to "None"] **LicenseUrl** | Pointer to **NullableString** | | [optional] **SpdxLicense** | **string** | | -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -30,31 +28,6 @@ NewPackageLicenseWithDefaults instantiates a new PackageLicense object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetIsMalwareDetected - -`func (o *PackageLicense) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *PackageLicense) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *PackageLicense) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *PackageLicense) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetLicenseNotes `func (o *PackageLicense) GetLicenseNotes() string` @@ -180,41 +153,6 @@ and a boolean to check if the value has been set. SetSpdxLicense sets SpdxLicense field to given value. -### GetVulnerabilityCounts - -`func (o *PackageLicense) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *PackageLicense) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *PackageLicense) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *PackageLicense) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *PackageLicense) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *PackageLicense) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil [[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/docs/PackageLicenseRequestPatch.md b/docs/PackageLicenseRequestPatch.md index 83ba9281..782c347b 100644 --- a/docs/PackageLicenseRequestPatch.md +++ b/docs/PackageLicenseRequestPatch.md @@ -5,12 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Action** | Pointer to **NullableString** | | [optional] [default to "Update"] -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **LicenseNotes** | Pointer to **NullableString** | | [optional] **LicenseOverride** | Pointer to **NullableString** | | [optional] [default to "None"] **LicenseUrl** | Pointer to **NullableString** | | [optional] **SpdxLicense** | **string** | | -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -66,31 +64,6 @@ HasAction returns a boolean if a field has been set. `func (o *PackageLicenseRequestPatch) UnsetAction()` UnsetAction ensures that no value is present for Action, not even an explicit nil -### GetIsMalwareDetected - -`func (o *PackageLicenseRequestPatch) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *PackageLicenseRequestPatch) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *PackageLicenseRequestPatch) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *PackageLicenseRequestPatch) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetLicenseNotes `func (o *PackageLicenseRequestPatch) GetLicenseNotes() string` @@ -216,41 +189,6 @@ and a boolean to check if the value has been set. SetSpdxLicense sets SpdxLicense field to given value. -### GetVulnerabilityCounts - -`func (o *PackageLicenseRequestPatch) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *PackageLicenseRequestPatch) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *PackageLicenseRequestPatch) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *PackageLicenseRequestPatch) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *PackageLicenseRequestPatch) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *PackageLicenseRequestPatch) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil [[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/docs/PackageMove.md b/docs/PackageMove.md index 8b43ecaa..c5c5ea56 100644 --- a/docs/PackageMove.md +++ b/docs/PackageMove.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **DependenciesUrl** | Pointer to **string** | | [optional] [readonly] **Description** | Pointer to **NullableString** | A textual description of this package. | [optional] [readonly] **DisplayName** | Pointer to **string** | | [optional] [readonly] +**DisplaySource** | Pointer to **string** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] [readonly] **Distro** | Pointer to [**NullableDistribution**](Distribution.md) | | [optional] **DistroVersion** | Pointer to [**DistributionVersion**](DistributionVersion.md) | | [optional] **Downloads** | Pointer to **int64** | | [optional] [readonly] @@ -34,7 +35,6 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -94,7 +94,6 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] [readonly] **VersionOrig** | Pointer to **string** | | [optional] [readonly] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -396,6 +395,31 @@ SetDisplayName sets DisplayName field to given value. HasDisplayName returns a boolean if a field has been set. +### GetDisplaySource + +`func (o *PackageMove) GetDisplaySource() string` + +GetDisplaySource returns the DisplaySource field if non-nil, zero value otherwise. + +### GetDisplaySourceOk + +`func (o *PackageMove) GetDisplaySourceOk() (*string, bool)` + +GetDisplaySourceOk returns a tuple with the DisplaySource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplaySource + +`func (o *PackageMove) SetDisplaySource(v string)` + +SetDisplaySource sets DisplaySource field to given value. + +### HasDisplaySource + +`func (o *PackageMove) HasDisplaySource() bool` + +HasDisplaySource returns a boolean if a field has been set. + ### GetDistro `func (o *PackageMove) GetDistro() Distribution` @@ -936,31 +960,6 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. -### GetIsMalwareDetected - -`func (o *PackageMove) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *PackageMove) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *PackageMove) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *PackageMove) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetIsMoveable `func (o *PackageMove) GetIsMoveable() bool` @@ -2586,41 +2585,6 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. -### GetVulnerabilityCounts - -`func (o *PackageMove) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *PackageMove) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *PackageMove) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *PackageMove) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *PackageMove) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *PackageMove) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *PackageMove) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/PackageMoveRequest.md b/docs/PackageMoveRequest.md index 51581c83..aa2ee4d2 100644 --- a/docs/PackageMoveRequest.md +++ b/docs/PackageMoveRequest.md @@ -5,8 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Destination** | **string** | The name of the destination repository without the namespace. | -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -47,66 +45,6 @@ and a boolean to check if the value has been set. SetDestination sets Destination field to given value. -### GetIsMalwareDetected - -`func (o *PackageMoveRequest) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *PackageMoveRequest) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *PackageMoveRequest) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *PackageMoveRequest) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - -### GetVulnerabilityCounts - -`func (o *PackageMoveRequest) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *PackageMoveRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *PackageMoveRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *PackageMoveRequest) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *PackageMoveRequest) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *PackageMoveRequest) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil [[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/docs/PackageQuarantine.md b/docs/PackageQuarantine.md index 4a02effb..2443bdf3 100644 --- a/docs/PackageQuarantine.md +++ b/docs/PackageQuarantine.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **DependenciesUrl** | Pointer to **string** | | [optional] [readonly] **Description** | Pointer to **NullableString** | A textual description of this package. | [optional] [readonly] **DisplayName** | Pointer to **string** | | [optional] [readonly] +**DisplaySource** | Pointer to **string** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] [readonly] **Distro** | Pointer to [**NullableDistribution**](Distribution.md) | | [optional] **DistroVersion** | Pointer to [**DistributionVersion**](DistributionVersion.md) | | [optional] **Downloads** | Pointer to **int64** | | [optional] [readonly] @@ -34,7 +35,6 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -93,7 +93,6 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] [readonly] **VersionOrig** | Pointer to **string** | | [optional] [readonly] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -395,6 +394,31 @@ SetDisplayName sets DisplayName field to given value. HasDisplayName returns a boolean if a field has been set. +### GetDisplaySource + +`func (o *PackageQuarantine) GetDisplaySource() string` + +GetDisplaySource returns the DisplaySource field if non-nil, zero value otherwise. + +### GetDisplaySourceOk + +`func (o *PackageQuarantine) GetDisplaySourceOk() (*string, bool)` + +GetDisplaySourceOk returns a tuple with the DisplaySource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplaySource + +`func (o *PackageQuarantine) SetDisplaySource(v string)` + +SetDisplaySource sets DisplaySource field to given value. + +### HasDisplaySource + +`func (o *PackageQuarantine) HasDisplaySource() bool` + +HasDisplaySource returns a boolean if a field has been set. + ### GetDistro `func (o *PackageQuarantine) GetDistro() Distribution` @@ -935,31 +959,6 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. -### GetIsMalwareDetected - -`func (o *PackageQuarantine) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *PackageQuarantine) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *PackageQuarantine) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *PackageQuarantine) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetIsMoveable `func (o *PackageQuarantine) GetIsMoveable() bool` @@ -2550,41 +2549,6 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. -### GetVulnerabilityCounts - -`func (o *PackageQuarantine) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *PackageQuarantine) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *PackageQuarantine) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *PackageQuarantine) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *PackageQuarantine) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *PackageQuarantine) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *PackageQuarantine) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/PackageQuarantineRequest.md b/docs/PackageQuarantineRequest.md index 04a42658..368109fa 100644 --- a/docs/PackageQuarantineRequest.md +++ b/docs/PackageQuarantineRequest.md @@ -4,10 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **Release** | Pointer to **bool** | If true, the package is released from quarantine. | [optional] **Restore** | Pointer to **bool** | If true, the package is released from quarantine. Note: This field is deprecated, please use 'release' instead. | [optional] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -28,31 +26,6 @@ NewPackageQuarantineRequestWithDefaults instantiates a new PackageQuarantineRequ This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetIsMalwareDetected - -`func (o *PackageQuarantineRequest) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *PackageQuarantineRequest) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *PackageQuarantineRequest) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *PackageQuarantineRequest) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetRelease `func (o *PackageQuarantineRequest) GetRelease() bool` @@ -103,41 +76,6 @@ SetRestore sets Restore field to given value. HasRestore returns a boolean if a field has been set. -### GetVulnerabilityCounts - -`func (o *PackageQuarantineRequest) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *PackageQuarantineRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *PackageQuarantineRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *PackageQuarantineRequest) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *PackageQuarantineRequest) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *PackageQuarantineRequest) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil [[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/docs/PackageResync.md b/docs/PackageResync.md index 01574307..991cc742 100644 --- a/docs/PackageResync.md +++ b/docs/PackageResync.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **DependenciesUrl** | Pointer to **string** | | [optional] [readonly] **Description** | Pointer to **NullableString** | A textual description of this package. | [optional] [readonly] **DisplayName** | Pointer to **string** | | [optional] [readonly] +**DisplaySource** | Pointer to **string** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] [readonly] **Distro** | Pointer to [**NullableDistribution**](Distribution.md) | | [optional] **DistroVersion** | Pointer to [**DistributionVersion**](DistributionVersion.md) | | [optional] **Downloads** | Pointer to **int64** | | [optional] [readonly] @@ -34,7 +35,6 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -94,7 +94,6 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] [readonly] **VersionOrig** | Pointer to **string** | | [optional] [readonly] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -396,6 +395,31 @@ SetDisplayName sets DisplayName field to given value. HasDisplayName returns a boolean if a field has been set. +### GetDisplaySource + +`func (o *PackageResync) GetDisplaySource() string` + +GetDisplaySource returns the DisplaySource field if non-nil, zero value otherwise. + +### GetDisplaySourceOk + +`func (o *PackageResync) GetDisplaySourceOk() (*string, bool)` + +GetDisplaySourceOk returns a tuple with the DisplaySource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplaySource + +`func (o *PackageResync) SetDisplaySource(v string)` + +SetDisplaySource sets DisplaySource field to given value. + +### HasDisplaySource + +`func (o *PackageResync) HasDisplaySource() bool` + +HasDisplaySource returns a boolean if a field has been set. + ### GetDistro `func (o *PackageResync) GetDistro() Distribution` @@ -936,31 +960,6 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. -### GetIsMalwareDetected - -`func (o *PackageResync) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *PackageResync) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *PackageResync) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *PackageResync) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetIsMoveable `func (o *PackageResync) GetIsMoveable() bool` @@ -2586,41 +2585,6 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. -### GetVulnerabilityCounts - -`func (o *PackageResync) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *PackageResync) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *PackageResync) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *PackageResync) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *PackageResync) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *PackageResync) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *PackageResync) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/PackageTag.md b/docs/PackageTag.md index 68a1ac7d..2efce0ee 100644 --- a/docs/PackageTag.md +++ b/docs/PackageTag.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **DependenciesUrl** | Pointer to **string** | | [optional] [readonly] **Description** | Pointer to **NullableString** | A textual description of this package. | [optional] [readonly] **DisplayName** | Pointer to **string** | | [optional] [readonly] +**DisplaySource** | Pointer to **string** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] [readonly] **Distro** | Pointer to [**NullableDistribution**](Distribution.md) | | [optional] **DistroVersion** | Pointer to [**DistributionVersion**](DistributionVersion.md) | | [optional] **Downloads** | Pointer to **int64** | | [optional] [readonly] @@ -35,7 +36,6 @@ Name | Type | Description | Notes **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] **IsImmutable** | Pointer to **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] -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -94,7 +94,6 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] [readonly] **VersionOrig** | Pointer to **string** | | [optional] [readonly] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -396,6 +395,31 @@ SetDisplayName sets DisplayName field to given value. HasDisplayName returns a boolean if a field has been set. +### GetDisplaySource + +`func (o *PackageTag) GetDisplaySource() string` + +GetDisplaySource returns the DisplaySource field if non-nil, zero value otherwise. + +### GetDisplaySourceOk + +`func (o *PackageTag) GetDisplaySourceOk() (*string, bool)` + +GetDisplaySourceOk returns a tuple with the DisplaySource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplaySource + +`func (o *PackageTag) SetDisplaySource(v string)` + +SetDisplaySource sets DisplaySource field to given value. + +### HasDisplaySource + +`func (o *PackageTag) HasDisplaySource() bool` + +HasDisplaySource returns a boolean if a field has been set. + ### GetDistro `func (o *PackageTag) GetDistro() Distribution` @@ -961,31 +985,6 @@ SetIsImmutable sets IsImmutable field to given value. HasIsImmutable returns a boolean if a field has been set. -### GetIsMalwareDetected - -`func (o *PackageTag) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *PackageTag) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *PackageTag) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *PackageTag) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetIsMoveable `func (o *PackageTag) GetIsMoveable() bool` @@ -2586,41 +2585,6 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. -### GetVulnerabilityCounts - -`func (o *PackageTag) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *PackageTag) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *PackageTag) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *PackageTag) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *PackageTag) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *PackageTag) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *PackageTag) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/PackageTagRequest.md b/docs/PackageTagRequest.md index 7568ec1e..58f41b99 100644 --- a/docs/PackageTagRequest.md +++ b/docs/PackageTagRequest.md @@ -6,9 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Action** | Pointer to **NullableString** | | [optional] [default to "Add"] **IsImmutable** | Pointer to **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] -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **Tags** | Pointer to **[]string** | A list of tags to apply the action to. Not required for clears. | [optional] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -89,31 +87,6 @@ SetIsImmutable sets IsImmutable field to given value. HasIsImmutable returns a boolean if a field has been set. -### GetIsMalwareDetected - -`func (o *PackageTagRequest) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *PackageTagRequest) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *PackageTagRequest) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *PackageTagRequest) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetTags `func (o *PackageTagRequest) GetTags() []string` @@ -149,41 +122,6 @@ HasTags returns a boolean if a field has been set. `func (o *PackageTagRequest) UnsetTags()` UnsetTags ensures that no value is present for Tags, not even an explicit nil -### GetVulnerabilityCounts - -`func (o *PackageTagRequest) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *PackageTagRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *PackageTagRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *PackageTagRequest) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *PackageTagRequest) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *PackageTagRequest) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil [[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/docs/PackageVulnerability.md b/docs/PackageVulnerability.md index 6738e186..d9d5a615 100644 --- a/docs/PackageVulnerability.md +++ b/docs/PackageVulnerability.md @@ -5,11 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Identifier** | **string** | | -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **Name** | Pointer to **NullableString** | The name of this package. | [optional] [readonly] **Url** | Pointer to **NullableString** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] [readonly] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -50,31 +48,6 @@ and a boolean to check if the value has been set. SetIdentifier sets Identifier field to given value. -### GetIsMalwareDetected - -`func (o *PackageVulnerability) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *PackageVulnerability) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *PackageVulnerability) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *PackageVulnerability) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetName `func (o *PackageVulnerability) GetName() string` @@ -180,41 +153,6 @@ HasVersion returns a boolean if a field has been set. `func (o *PackageVulnerability) UnsetVersion()` UnsetVersion ensures that no value is present for Version, not even an explicit nil -### GetVulnerabilityCounts - -`func (o *PackageVulnerability) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *PackageVulnerability) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *PackageVulnerability) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *PackageVulnerability) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *PackageVulnerability) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *PackageVulnerability) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil [[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/docs/PackagesApi.md b/docs/PackagesApi.md index 8487b46f..2fc67a4f 100644 --- a/docs/PackagesApi.md +++ b/docs/PackagesApi.md @@ -423,7 +423,7 @@ func main() { page := int64(56) // int64 | A page number within the paginated result set. (optional) pageSize := int64(56) // int64 | Number of results to return per page. (optional) includeConnectedRepositories := true // bool | 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) - query := "query_example" // string | A search term for querying names, filenames, versions, distributions, architectures, formats or statuses of packages. (optional) + query := "query_example" // string | A search term for querying names, filenames, versions, distributions, architectures, formats, statuses or display sources (display_source:upstream, display_source:manual_upload, display_source:connected_repository) of packages. (optional) sort := "sort_example" // string | A field for sorting objects in ascending or descending order. (optional) (default to "-date") configuration := openapiclient.NewConfiguration() @@ -459,7 +459,7 @@ Name | Type | Description | Notes **page** | **int64** | A page number within the paginated result set. | **pageSize** | **int64** | Number of results to return per page. | **includeConnectedRepositories** | **bool** | 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] - **query** | **string** | A search term for querying names, filenames, versions, distributions, architectures, formats or statuses of packages. | + **query** | **string** | A search term for querying names, filenames, versions, distributions, architectures, formats, statuses or display sources (display_source:upstream, display_source:manual_upload, display_source:connected_repository) of packages. | **sort** | **string** | A field for sorting objects in ascending or descending order. | [default to "-date"] ### Return type diff --git a/docs/PythonPackageUpload.md b/docs/PythonPackageUpload.md index d7344b48..41be783a 100644 --- a/docs/PythonPackageUpload.md +++ b/docs/PythonPackageUpload.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **DependenciesUrl** | Pointer to **string** | | [optional] [readonly] **Description** | Pointer to **NullableString** | A textual description of this package. | [optional] [readonly] **DisplayName** | Pointer to **string** | | [optional] [readonly] +**DisplaySource** | Pointer to **string** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] [readonly] **Distro** | Pointer to [**NullableDistribution**](Distribution.md) | | [optional] **DistroVersion** | Pointer to [**DistributionVersion**](DistributionVersion.md) | | [optional] **Downloads** | Pointer to **int64** | | [optional] [readonly] @@ -33,7 +34,6 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -92,7 +92,6 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] [readonly] **VersionOrig** | Pointer to **string** | | [optional] [readonly] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -394,6 +393,31 @@ SetDisplayName sets DisplayName field to given value. HasDisplayName returns a boolean if a field has been set. +### GetDisplaySource + +`func (o *PythonPackageUpload) GetDisplaySource() string` + +GetDisplaySource returns the DisplaySource field if non-nil, zero value otherwise. + +### GetDisplaySourceOk + +`func (o *PythonPackageUpload) GetDisplaySourceOk() (*string, bool)` + +GetDisplaySourceOk returns a tuple with the DisplaySource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplaySource + +`func (o *PythonPackageUpload) SetDisplaySource(v string)` + +SetDisplaySource sets DisplaySource field to given value. + +### HasDisplaySource + +`func (o *PythonPackageUpload) HasDisplaySource() bool` + +HasDisplaySource returns a boolean if a field has been set. + ### GetDistro `func (o *PythonPackageUpload) GetDistro() Distribution` @@ -899,31 +923,6 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. -### GetIsMalwareDetected - -`func (o *PythonPackageUpload) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *PythonPackageUpload) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *PythonPackageUpload) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *PythonPackageUpload) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetIsMoveable `func (o *PythonPackageUpload) GetIsMoveable() bool` @@ -2524,41 +2523,6 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. -### GetVulnerabilityCounts - -`func (o *PythonPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *PythonPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *PythonPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *PythonPackageUpload) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *PythonPackageUpload) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *PythonPackageUpload) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *PythonPackageUpload) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/PythonPackageUploadRequest.md b/docs/PythonPackageUploadRequest.md index 23223acf..3ef67bfe 100644 --- a/docs/PythonPackageUploadRequest.md +++ b/docs/PythonPackageUploadRequest.md @@ -4,11 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **PackageFile** | **string** | The primary file for the package. | **Republish** | Pointer to **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** | Pointer to **NullableString** | A comma-separated values list of tags to add to the package. | [optional] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -29,31 +27,6 @@ NewPythonPackageUploadRequestWithDefaults instantiates a new PythonPackageUpload This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetIsMalwareDetected - -`func (o *PythonPackageUploadRequest) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *PythonPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *PythonPackageUploadRequest) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *PythonPackageUploadRequest) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetPackageFile `func (o *PythonPackageUploadRequest) GetPackageFile() string` @@ -134,41 +107,6 @@ HasTags returns a boolean if a field has been set. `func (o *PythonPackageUploadRequest) UnsetTags()` UnsetTags ensures that no value is present for Tags, not even an explicit nil -### GetVulnerabilityCounts - -`func (o *PythonPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *PythonPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *PythonPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *PythonPackageUploadRequest) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *PythonPackageUploadRequest) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *PythonPackageUploadRequest) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil [[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/docs/RawPackageUpload.md b/docs/RawPackageUpload.md index ae7b3a69..9cf23099 100644 --- a/docs/RawPackageUpload.md +++ b/docs/RawPackageUpload.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **DependenciesUrl** | Pointer to **string** | | [optional] [readonly] **Description** | Pointer to **NullableString** | A textual description of this package. | [optional] **DisplayName** | Pointer to **string** | | [optional] [readonly] +**DisplaySource** | Pointer to **string** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] [readonly] **Distro** | Pointer to [**NullableDistribution**](Distribution.md) | | [optional] **DistroVersion** | Pointer to [**DistributionVersion**](DistributionVersion.md) | | [optional] **Downloads** | Pointer to **int64** | | [optional] [readonly] @@ -33,7 +34,6 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -92,7 +92,6 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] **VersionOrig** | Pointer to **string** | | [optional] [readonly] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -394,6 +393,31 @@ SetDisplayName sets DisplayName field to given value. HasDisplayName returns a boolean if a field has been set. +### GetDisplaySource + +`func (o *RawPackageUpload) GetDisplaySource() string` + +GetDisplaySource returns the DisplaySource field if non-nil, zero value otherwise. + +### GetDisplaySourceOk + +`func (o *RawPackageUpload) GetDisplaySourceOk() (*string, bool)` + +GetDisplaySourceOk returns a tuple with the DisplaySource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplaySource + +`func (o *RawPackageUpload) SetDisplaySource(v string)` + +SetDisplaySource sets DisplaySource field to given value. + +### HasDisplaySource + +`func (o *RawPackageUpload) HasDisplaySource() bool` + +HasDisplaySource returns a boolean if a field has been set. + ### GetDistro `func (o *RawPackageUpload) GetDistro() Distribution` @@ -899,31 +923,6 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. -### GetIsMalwareDetected - -`func (o *RawPackageUpload) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *RawPackageUpload) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *RawPackageUpload) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *RawPackageUpload) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetIsMoveable `func (o *RawPackageUpload) GetIsMoveable() bool` @@ -2524,41 +2523,6 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. -### GetVulnerabilityCounts - -`func (o *RawPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *RawPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *RawPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *RawPackageUpload) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *RawPackageUpload) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *RawPackageUpload) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *RawPackageUpload) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/RawPackageUploadRequest.md b/docs/RawPackageUploadRequest.md index 1e7aec28..4a28c847 100644 --- a/docs/RawPackageUploadRequest.md +++ b/docs/RawPackageUploadRequest.md @@ -6,14 +6,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ContentType** | Pointer to **NullableString** | 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** | Pointer to **NullableString** | A textual description of this package. | [optional] -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **Name** | Pointer to **NullableString** | The name of this package. | [optional] **PackageFile** | **string** | The primary file for the package. | **Republish** | Pointer to **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** | Pointer to **NullableString** | A one-liner synopsis of this package. | [optional] **Tags** | Pointer to **NullableString** | A comma-separated values list of tags to add to the package. | [optional] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -104,31 +102,6 @@ HasDescription returns a boolean if a field has been set. `func (o *RawPackageUploadRequest) UnsetDescription()` UnsetDescription ensures that no value is present for Description, not even an explicit nil -### GetIsMalwareDetected - -`func (o *RawPackageUploadRequest) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *RawPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *RawPackageUploadRequest) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *RawPackageUploadRequest) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetName `func (o *RawPackageUploadRequest) GetName() string` @@ -314,41 +287,6 @@ HasVersion returns a boolean if a field has been set. `func (o *RawPackageUploadRequest) UnsetVersion()` UnsetVersion ensures that no value is present for Version, not even an explicit nil -### GetVulnerabilityCounts - -`func (o *RawPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *RawPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *RawPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *RawPackageUploadRequest) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *RawPackageUploadRequest) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *RawPackageUploadRequest) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil [[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/docs/RpmPackageUpload.md b/docs/RpmPackageUpload.md index be93b5c0..953fe389 100644 --- a/docs/RpmPackageUpload.md +++ b/docs/RpmPackageUpload.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **DependenciesUrl** | Pointer to **string** | | [optional] [readonly] **Description** | Pointer to **NullableString** | A textual description of this package. | [optional] [readonly] **DisplayName** | Pointer to **string** | | [optional] [readonly] +**DisplaySource** | Pointer to **string** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] [readonly] **Distro** | Pointer to [**NullableDistribution**](Distribution.md) | | [optional] **DistroVersion** | Pointer to [**DistributionVersion**](DistributionVersion.md) | | [optional] **Downloads** | Pointer to **int64** | | [optional] [readonly] @@ -33,7 +34,6 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -92,7 +92,6 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] [readonly] **VersionOrig** | Pointer to **string** | | [optional] [readonly] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -394,6 +393,31 @@ SetDisplayName sets DisplayName field to given value. HasDisplayName returns a boolean if a field has been set. +### GetDisplaySource + +`func (o *RpmPackageUpload) GetDisplaySource() string` + +GetDisplaySource returns the DisplaySource field if non-nil, zero value otherwise. + +### GetDisplaySourceOk + +`func (o *RpmPackageUpload) GetDisplaySourceOk() (*string, bool)` + +GetDisplaySourceOk returns a tuple with the DisplaySource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplaySource + +`func (o *RpmPackageUpload) SetDisplaySource(v string)` + +SetDisplaySource sets DisplaySource field to given value. + +### HasDisplaySource + +`func (o *RpmPackageUpload) HasDisplaySource() bool` + +HasDisplaySource returns a boolean if a field has been set. + ### GetDistro `func (o *RpmPackageUpload) GetDistro() Distribution` @@ -899,31 +923,6 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. -### GetIsMalwareDetected - -`func (o *RpmPackageUpload) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *RpmPackageUpload) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *RpmPackageUpload) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *RpmPackageUpload) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetIsMoveable `func (o *RpmPackageUpload) GetIsMoveable() bool` @@ -2524,41 +2523,6 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. -### GetVulnerabilityCounts - -`func (o *RpmPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *RpmPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *RpmPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *RpmPackageUpload) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *RpmPackageUpload) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *RpmPackageUpload) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *RpmPackageUpload) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/RpmPackageUploadRequest.md b/docs/RpmPackageUploadRequest.md index a97ff1b7..c8289881 100644 --- a/docs/RpmPackageUploadRequest.md +++ b/docs/RpmPackageUploadRequest.md @@ -5,11 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Distribution** | **string** | The distribution to store the package for. | -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **PackageFile** | **string** | The primary file for the package. | **Republish** | Pointer to **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** | Pointer to **NullableString** | A comma-separated values list of tags to add to the package. | [optional] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -50,31 +48,6 @@ and a boolean to check if the value has been set. SetDistribution sets Distribution field to given value. -### GetIsMalwareDetected - -`func (o *RpmPackageUploadRequest) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *RpmPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *RpmPackageUploadRequest) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *RpmPackageUploadRequest) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetPackageFile `func (o *RpmPackageUploadRequest) GetPackageFile() string` @@ -155,41 +128,6 @@ HasTags returns a boolean if a field has been set. `func (o *RpmPackageUploadRequest) UnsetTags()` UnsetTags ensures that no value is present for Tags, not even an explicit nil -### GetVulnerabilityCounts - -`func (o *RpmPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *RpmPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *RpmPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *RpmPackageUploadRequest) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *RpmPackageUploadRequest) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *RpmPackageUploadRequest) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil [[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/docs/RubyPackageUpload.md b/docs/RubyPackageUpload.md index 6c5c4596..a0a719a7 100644 --- a/docs/RubyPackageUpload.md +++ b/docs/RubyPackageUpload.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **DependenciesUrl** | Pointer to **string** | | [optional] [readonly] **Description** | Pointer to **NullableString** | A textual description of this package. | [optional] [readonly] **DisplayName** | Pointer to **string** | | [optional] [readonly] +**DisplaySource** | Pointer to **string** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] [readonly] **Distro** | Pointer to [**NullableDistribution**](Distribution.md) | | [optional] **DistroVersion** | Pointer to [**DistributionVersion**](DistributionVersion.md) | | [optional] **Downloads** | Pointer to **int64** | | [optional] [readonly] @@ -33,7 +34,6 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -92,7 +92,6 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] [readonly] **VersionOrig** | Pointer to **string** | | [optional] [readonly] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -394,6 +393,31 @@ SetDisplayName sets DisplayName field to given value. HasDisplayName returns a boolean if a field has been set. +### GetDisplaySource + +`func (o *RubyPackageUpload) GetDisplaySource() string` + +GetDisplaySource returns the DisplaySource field if non-nil, zero value otherwise. + +### GetDisplaySourceOk + +`func (o *RubyPackageUpload) GetDisplaySourceOk() (*string, bool)` + +GetDisplaySourceOk returns a tuple with the DisplaySource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplaySource + +`func (o *RubyPackageUpload) SetDisplaySource(v string)` + +SetDisplaySource sets DisplaySource field to given value. + +### HasDisplaySource + +`func (o *RubyPackageUpload) HasDisplaySource() bool` + +HasDisplaySource returns a boolean if a field has been set. + ### GetDistro `func (o *RubyPackageUpload) GetDistro() Distribution` @@ -899,31 +923,6 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. -### GetIsMalwareDetected - -`func (o *RubyPackageUpload) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *RubyPackageUpload) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *RubyPackageUpload) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *RubyPackageUpload) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetIsMoveable `func (o *RubyPackageUpload) GetIsMoveable() bool` @@ -2524,41 +2523,6 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. -### GetVulnerabilityCounts - -`func (o *RubyPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *RubyPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *RubyPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *RubyPackageUpload) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *RubyPackageUpload) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *RubyPackageUpload) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *RubyPackageUpload) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/RubyPackageUploadRequest.md b/docs/RubyPackageUploadRequest.md index 40ac7365..ebbc046d 100644 --- a/docs/RubyPackageUploadRequest.md +++ b/docs/RubyPackageUploadRequest.md @@ -4,11 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **PackageFile** | **string** | The primary file for the package. | **Republish** | Pointer to **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** | Pointer to **NullableString** | A comma-separated values list of tags to add to the package. | [optional] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -29,31 +27,6 @@ NewRubyPackageUploadRequestWithDefaults instantiates a new RubyPackageUploadRequ This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetIsMalwareDetected - -`func (o *RubyPackageUploadRequest) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *RubyPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *RubyPackageUploadRequest) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *RubyPackageUploadRequest) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetPackageFile `func (o *RubyPackageUploadRequest) GetPackageFile() string` @@ -134,41 +107,6 @@ HasTags returns a boolean if a field has been set. `func (o *RubyPackageUploadRequest) UnsetTags()` UnsetTags ensures that no value is present for Tags, not even an explicit nil -### GetVulnerabilityCounts - -`func (o *RubyPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *RubyPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *RubyPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *RubyPackageUploadRequest) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *RubyPackageUploadRequest) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *RubyPackageUploadRequest) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil [[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/docs/SwiftPackageUpload.md b/docs/SwiftPackageUpload.md index 6cfcb145..90ffb1b2 100644 --- a/docs/SwiftPackageUpload.md +++ b/docs/SwiftPackageUpload.md @@ -16,6 +16,7 @@ Name | Type | Description | Notes **DependenciesUrl** | Pointer to **string** | | [optional] [readonly] **Description** | Pointer to **NullableString** | A textual description of this package. | [optional] [readonly] **DisplayName** | Pointer to **string** | | [optional] [readonly] +**DisplaySource** | Pointer to **string** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] [readonly] **Distro** | Pointer to [**NullableDistribution**](Distribution.md) | | [optional] **DistroVersion** | Pointer to [**DistributionVersion**](DistributionVersion.md) | | [optional] **Downloads** | Pointer to **int64** | | [optional] [readonly] @@ -35,7 +36,6 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -97,7 +97,6 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | **string** | The raw version for this package. | **VersionOrig** | Pointer to **string** | | [optional] [readonly] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -449,6 +448,31 @@ SetDisplayName sets DisplayName field to given value. HasDisplayName returns a boolean if a field has been set. +### GetDisplaySource + +`func (o *SwiftPackageUpload) GetDisplaySource() string` + +GetDisplaySource returns the DisplaySource field if non-nil, zero value otherwise. + +### GetDisplaySourceOk + +`func (o *SwiftPackageUpload) GetDisplaySourceOk() (*string, bool)` + +GetDisplaySourceOk returns a tuple with the DisplaySource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplaySource + +`func (o *SwiftPackageUpload) SetDisplaySource(v string)` + +SetDisplaySource sets DisplaySource field to given value. + +### HasDisplaySource + +`func (o *SwiftPackageUpload) HasDisplaySource() bool` + +HasDisplaySource returns a boolean if a field has been set. + ### GetDistro `func (o *SwiftPackageUpload) GetDistro() Distribution` @@ -954,31 +978,6 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. -### GetIsMalwareDetected - -`func (o *SwiftPackageUpload) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *SwiftPackageUpload) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *SwiftPackageUpload) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *SwiftPackageUpload) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetIsMoveable `func (o *SwiftPackageUpload) GetIsMoveable() bool` @@ -2629,41 +2628,6 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. -### GetVulnerabilityCounts - -`func (o *SwiftPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *SwiftPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *SwiftPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *SwiftPackageUpload) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *SwiftPackageUpload) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *SwiftPackageUpload) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *SwiftPackageUpload) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/SwiftPackageUploadRequest.md b/docs/SwiftPackageUploadRequest.md index 4f8cfc4b..5d22ae83 100644 --- a/docs/SwiftPackageUploadRequest.md +++ b/docs/SwiftPackageUploadRequest.md @@ -6,7 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **AuthorName** | Pointer to **string** | The name of the author of the package. | [optional] **AuthorOrg** | Pointer to **string** | The organization of the author. | [optional] -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **LicenseUrl** | Pointer to **NullableString** | The license URL of this package. | [optional] **Name** | **string** | The name of this package. | **PackageFile** | **string** | The primary file for the package. | @@ -16,7 +15,6 @@ Name | Type | Description | Notes **Scope** | **string** | A scope provides a namespace for related packages within the package registry. | **Tags** | Pointer to **NullableString** | A comma-separated values list of tags to add to the package. | [optional] **Version** | **string** | The raw version for this package. | -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -87,31 +85,6 @@ SetAuthorOrg sets AuthorOrg field to given value. HasAuthorOrg returns a boolean if a field has been set. -### GetIsMalwareDetected - -`func (o *SwiftPackageUploadRequest) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *SwiftPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *SwiftPackageUploadRequest) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *SwiftPackageUploadRequest) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetLicenseUrl `func (o *SwiftPackageUploadRequest) GetLicenseUrl() string` @@ -337,41 +310,6 @@ and a boolean to check if the value has been set. SetVersion sets Version field to given value. -### GetVulnerabilityCounts - -`func (o *SwiftPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *SwiftPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *SwiftPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *SwiftPackageUploadRequest) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *SwiftPackageUploadRequest) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *SwiftPackageUploadRequest) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil [[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/docs/TerraformPackageUpload.md b/docs/TerraformPackageUpload.md index d5bae8e1..e340f478 100644 --- a/docs/TerraformPackageUpload.md +++ b/docs/TerraformPackageUpload.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **DependenciesUrl** | Pointer to **string** | | [optional] [readonly] **Description** | Pointer to **NullableString** | A textual description of this package. | [optional] [readonly] **DisplayName** | Pointer to **string** | | [optional] [readonly] +**DisplaySource** | Pointer to **string** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] [readonly] **Distro** | Pointer to [**NullableDistribution**](Distribution.md) | | [optional] **DistroVersion** | Pointer to [**DistributionVersion**](DistributionVersion.md) | | [optional] **Downloads** | Pointer to **int64** | | [optional] [readonly] @@ -33,7 +34,6 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -92,7 +92,6 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] [readonly] **VersionOrig** | Pointer to **string** | | [optional] [readonly] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -394,6 +393,31 @@ SetDisplayName sets DisplayName field to given value. HasDisplayName returns a boolean if a field has been set. +### GetDisplaySource + +`func (o *TerraformPackageUpload) GetDisplaySource() string` + +GetDisplaySource returns the DisplaySource field if non-nil, zero value otherwise. + +### GetDisplaySourceOk + +`func (o *TerraformPackageUpload) GetDisplaySourceOk() (*string, bool)` + +GetDisplaySourceOk returns a tuple with the DisplaySource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplaySource + +`func (o *TerraformPackageUpload) SetDisplaySource(v string)` + +SetDisplaySource sets DisplaySource field to given value. + +### HasDisplaySource + +`func (o *TerraformPackageUpload) HasDisplaySource() bool` + +HasDisplaySource returns a boolean if a field has been set. + ### GetDistro `func (o *TerraformPackageUpload) GetDistro() Distribution` @@ -899,31 +923,6 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. -### GetIsMalwareDetected - -`func (o *TerraformPackageUpload) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *TerraformPackageUpload) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *TerraformPackageUpload) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *TerraformPackageUpload) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetIsMoveable `func (o *TerraformPackageUpload) GetIsMoveable() bool` @@ -2524,41 +2523,6 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. -### GetVulnerabilityCounts - -`func (o *TerraformPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *TerraformPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *TerraformPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *TerraformPackageUpload) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *TerraformPackageUpload) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *TerraformPackageUpload) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *TerraformPackageUpload) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/TerraformPackageUploadRequest.md b/docs/TerraformPackageUploadRequest.md index 6c1fa089..c9df61c3 100644 --- a/docs/TerraformPackageUploadRequest.md +++ b/docs/TerraformPackageUploadRequest.md @@ -4,11 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **PackageFile** | **string** | The primary file for the package. | **Republish** | Pointer to **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** | Pointer to **NullableString** | A comma-separated values list of tags to add to the package. | [optional] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -29,31 +27,6 @@ NewTerraformPackageUploadRequestWithDefaults instantiates a new TerraformPackage This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetIsMalwareDetected - -`func (o *TerraformPackageUploadRequest) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *TerraformPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *TerraformPackageUploadRequest) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *TerraformPackageUploadRequest) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetPackageFile `func (o *TerraformPackageUploadRequest) GetPackageFile() string` @@ -134,41 +107,6 @@ HasTags returns a boolean if a field has been set. `func (o *TerraformPackageUploadRequest) UnsetTags()` UnsetTags ensures that no value is present for Tags, not even an explicit nil -### GetVulnerabilityCounts - -`func (o *TerraformPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *TerraformPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *TerraformPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *TerraformPackageUploadRequest) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *TerraformPackageUploadRequest) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *TerraformPackageUploadRequest) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil [[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/docs/VagrantPackageUpload.md b/docs/VagrantPackageUpload.md index 6fd51629..d63c0c62 100644 --- a/docs/VagrantPackageUpload.md +++ b/docs/VagrantPackageUpload.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **DependenciesUrl** | Pointer to **string** | | [optional] [readonly] **Description** | Pointer to **NullableString** | A textual description of this package. | [optional] [readonly] **DisplayName** | Pointer to **string** | | [optional] [readonly] +**DisplaySource** | Pointer to **string** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] [readonly] **Distro** | Pointer to [**NullableDistribution**](Distribution.md) | | [optional] **DistroVersion** | Pointer to [**DistributionVersion**](DistributionVersion.md) | | [optional] **Downloads** | Pointer to **int64** | | [optional] [readonly] @@ -33,7 +34,6 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -93,7 +93,6 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | **string** | The raw version for this package. | **VersionOrig** | Pointer to **string** | | [optional] [readonly] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -395,6 +394,31 @@ SetDisplayName sets DisplayName field to given value. HasDisplayName returns a boolean if a field has been set. +### GetDisplaySource + +`func (o *VagrantPackageUpload) GetDisplaySource() string` + +GetDisplaySource returns the DisplaySource field if non-nil, zero value otherwise. + +### GetDisplaySourceOk + +`func (o *VagrantPackageUpload) GetDisplaySourceOk() (*string, bool)` + +GetDisplaySourceOk returns a tuple with the DisplaySource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplaySource + +`func (o *VagrantPackageUpload) SetDisplaySource(v string)` + +SetDisplaySource sets DisplaySource field to given value. + +### HasDisplaySource + +`func (o *VagrantPackageUpload) HasDisplaySource() bool` + +HasDisplaySource returns a boolean if a field has been set. + ### GetDistro `func (o *VagrantPackageUpload) GetDistro() Distribution` @@ -900,31 +924,6 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. -### GetIsMalwareDetected - -`func (o *VagrantPackageUpload) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *VagrantPackageUpload) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *VagrantPackageUpload) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *VagrantPackageUpload) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetIsMoveable `func (o *VagrantPackageUpload) GetIsMoveable() bool` @@ -2515,41 +2514,6 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. -### GetVulnerabilityCounts - -`func (o *VagrantPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *VagrantPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *VagrantPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *VagrantPackageUpload) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *VagrantPackageUpload) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *VagrantPackageUpload) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *VagrantPackageUpload) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/VagrantPackageUploadRequest.md b/docs/VagrantPackageUploadRequest.md index 28431620..bc287ba8 100644 --- a/docs/VagrantPackageUploadRequest.md +++ b/docs/VagrantPackageUploadRequest.md @@ -4,14 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **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** | Pointer to **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** | Pointer to **NullableString** | A comma-separated values list of tags to add to the package. | [optional] **Version** | **string** | The raw version for this package. | -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -32,31 +30,6 @@ NewVagrantPackageUploadRequestWithDefaults instantiates a new VagrantPackageUplo This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetIsMalwareDetected - -`func (o *VagrantPackageUploadRequest) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *VagrantPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *VagrantPackageUploadRequest) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *VagrantPackageUploadRequest) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetName `func (o *VagrantPackageUploadRequest) GetName() string` @@ -197,41 +170,6 @@ and a boolean to check if the value has been set. SetVersion sets Version field to given value. -### GetVulnerabilityCounts - -`func (o *VagrantPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *VagrantPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *VagrantPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *VagrantPackageUploadRequest) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *VagrantPackageUploadRequest) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *VagrantPackageUploadRequest) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil [[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/docs/VsxPackageUpload.md b/docs/VsxPackageUpload.md index ab372464..dd688e3a 100644 --- a/docs/VsxPackageUpload.md +++ b/docs/VsxPackageUpload.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **DependenciesUrl** | Pointer to **string** | | [optional] [readonly] **Description** | Pointer to **NullableString** | A textual description of this package. | [optional] [readonly] **DisplayName** | Pointer to **string** | | [optional] [readonly] +**DisplaySource** | Pointer to **string** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] [readonly] **Distro** | Pointer to [**NullableDistribution**](Distribution.md) | | [optional] **DistroVersion** | Pointer to [**DistributionVersion**](DistributionVersion.md) | | [optional] **Downloads** | Pointer to **int64** | | [optional] [readonly] @@ -33,7 +34,6 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -92,7 +92,6 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] [readonly] **VersionOrig** | Pointer to **string** | | [optional] [readonly] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -394,6 +393,31 @@ SetDisplayName sets DisplayName field to given value. HasDisplayName returns a boolean if a field has been set. +### GetDisplaySource + +`func (o *VsxPackageUpload) GetDisplaySource() string` + +GetDisplaySource returns the DisplaySource field if non-nil, zero value otherwise. + +### GetDisplaySourceOk + +`func (o *VsxPackageUpload) GetDisplaySourceOk() (*string, bool)` + +GetDisplaySourceOk returns a tuple with the DisplaySource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplaySource + +`func (o *VsxPackageUpload) SetDisplaySource(v string)` + +SetDisplaySource sets DisplaySource field to given value. + +### HasDisplaySource + +`func (o *VsxPackageUpload) HasDisplaySource() bool` + +HasDisplaySource returns a boolean if a field has been set. + ### GetDistro `func (o *VsxPackageUpload) GetDistro() Distribution` @@ -899,31 +923,6 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. -### GetIsMalwareDetected - -`func (o *VsxPackageUpload) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *VsxPackageUpload) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *VsxPackageUpload) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *VsxPackageUpload) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetIsMoveable `func (o *VsxPackageUpload) GetIsMoveable() bool` @@ -2524,41 +2523,6 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. -### GetVulnerabilityCounts - -`func (o *VsxPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *VsxPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *VsxPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *VsxPackageUpload) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *VsxPackageUpload) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *VsxPackageUpload) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *VsxPackageUpload) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/VsxPackageUploadRequest.md b/docs/VsxPackageUploadRequest.md index b5dd5ee9..6667d553 100644 --- a/docs/VsxPackageUploadRequest.md +++ b/docs/VsxPackageUploadRequest.md @@ -4,11 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **PackageFile** | **string** | The primary file for the package. | **Republish** | Pointer to **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** | Pointer to **NullableString** | A comma-separated values list of tags to add to the package. | [optional] -**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -29,31 +27,6 @@ NewVsxPackageUploadRequestWithDefaults instantiates a new VsxPackageUploadReques This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetIsMalwareDetected - -`func (o *VsxPackageUploadRequest) GetIsMalwareDetected() bool` - -GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. - -### GetIsMalwareDetectedOk - -`func (o *VsxPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool)` - -GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMalwareDetected - -`func (o *VsxPackageUploadRequest) SetIsMalwareDetected(v bool)` - -SetIsMalwareDetected sets IsMalwareDetected field to given value. - -### HasIsMalwareDetected - -`func (o *VsxPackageUploadRequest) HasIsMalwareDetected() bool` - -HasIsMalwareDetected returns a boolean if a field has been set. - ### GetPackageFile `func (o *VsxPackageUploadRequest) GetPackageFile() string` @@ -134,41 +107,6 @@ HasTags returns a boolean if a field has been set. `func (o *VsxPackageUploadRequest) UnsetTags()` UnsetTags ensures that no value is present for Tags, not even an explicit nil -### GetVulnerabilityCounts - -`func (o *VsxPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts` - -GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. - -### GetVulnerabilityCountsOk - -`func (o *VsxPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` - -GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVulnerabilityCounts - -`func (o *VsxPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts)` - -SetVulnerabilityCounts sets VulnerabilityCounts field to given value. - -### HasVulnerabilityCounts - -`func (o *VsxPackageUploadRequest) HasVulnerabilityCounts() bool` - -HasVulnerabilityCounts returns a boolean if a field has been set. - -### SetVulnerabilityCountsNil - -`func (o *VsxPackageUploadRequest) SetVulnerabilityCountsNil(b bool)` - - SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil - -### UnsetVulnerabilityCounts -`func (o *VsxPackageUploadRequest) UnsetVulnerabilityCounts()` - -UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil [[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/model_allocated_limit.go b/model_allocated_limit.go index 1ca3a8c0..66b7637c 100644 --- a/model_allocated_limit.go +++ b/model_allocated_limit.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_allocated_limit_raw.go b/model_allocated_limit_raw.go index 2733518c..50864dff 100644 --- a/model_allocated_limit_raw.go +++ b/model_allocated_limit_raw.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_alpine_package_upload.go b/model_alpine_package_upload.go index a6de8572..6a68b2ac 100644 --- a/model_alpine_package_upload.go +++ b/model_alpine_package_upload.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -31,8 +31,10 @@ type AlpinePackageUpload struct { DependenciesChecksumMd5 NullableString `json:"dependencies_checksum_md5,omitempty"` DependenciesUrl *string `json:"dependencies_url,omitempty"` // A textual description of this package. - Description NullableString `json:"description,omitempty"` - DisplayName *string `json:"display_name,omitempty"` + Description NullableString `json:"description,omitempty"` + DisplayName *string `json:"display_name,omitempty"` + // Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + DisplaySource *string `json:"display_source,omitempty"` Distro NullableDistribution `json:"distro,omitempty"` DistroVersion *DistributionVersion `json:"distro_version,omitempty"` Downloads *int64 `json:"downloads,omitempty"` @@ -49,25 +51,23 @@ type AlpinePackageUpload struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The name of this package. @@ -141,10 +141,9 @@ type AlpinePackageUpload struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -520,6 +519,38 @@ func (o *AlpinePackageUpload) SetDisplayName(v string) { o.DisplayName = &v } +// GetDisplaySource returns the DisplaySource field value if set, zero value otherwise. +func (o *AlpinePackageUpload) GetDisplaySource() string { + if o == nil || IsNil(o.DisplaySource) { + var ret string + return ret + } + return *o.DisplaySource +} + +// GetDisplaySourceOk returns a tuple with the DisplaySource field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlpinePackageUpload) GetDisplaySourceOk() (*string, bool) { + if o == nil || IsNil(o.DisplaySource) { + return nil, false + } + return o.DisplaySource, true +} + +// HasDisplaySource returns a boolean if a field has been set. +func (o *AlpinePackageUpload) HasDisplaySource() bool { + if o != nil && !IsNil(o.DisplaySource) { + return true + } + + return false +} + +// SetDisplaySource gets a reference to the given string and assigns it to the DisplaySource field. +func (o *AlpinePackageUpload) SetDisplaySource(v string) { + o.DisplaySource = &v +} + // GetDistro returns the Distro field value if set, zero value otherwise (both if not set or set to explicit null). func (o *AlpinePackageUpload) GetDistro() Distribution { if o == nil || IsNil(o.Distro.Get()) { @@ -1161,38 +1192,6 @@ func (o *AlpinePackageUpload) SetIsHidden(v bool) { o.IsHidden = &v } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *AlpinePackageUpload) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AlpinePackageUpload) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *AlpinePackageUpload) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *AlpinePackageUpload) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *AlpinePackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3214,49 +3213,6 @@ func (o *AlpinePackageUpload) SetVersionOrig(v string) { o.VersionOrig = &v } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *AlpinePackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *AlpinePackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *AlpinePackageUpload) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *AlpinePackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *AlpinePackageUpload) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *AlpinePackageUpload) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *AlpinePackageUpload) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3329,6 +3285,9 @@ func (o AlpinePackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.DisplayName) { toSerialize["display_name"] = o.DisplayName } + if !IsNil(o.DisplaySource) { + toSerialize["display_source"] = o.DisplaySource + } if o.Distro.IsSet() { toSerialize["distro"] = o.Distro.Get() } @@ -3386,9 +3345,6 @@ func (o AlpinePackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3563,9 +3519,6 @@ func (o AlpinePackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3601,6 +3554,7 @@ func (o *AlpinePackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "dependencies_url") delete(additionalProperties, "description") delete(additionalProperties, "display_name") + delete(additionalProperties, "display_source") delete(additionalProperties, "distro") delete(additionalProperties, "distro_version") delete(additionalProperties, "downloads") @@ -3620,7 +3574,6 @@ func (o *AlpinePackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3679,7 +3632,6 @@ func (o *AlpinePackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") - delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_alpine_package_upload_request.go b/model_alpine_package_upload_request.go index 23c43c72..ec12441c 100644 --- a/model_alpine_package_upload_request.go +++ b/model_alpine_package_upload_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -23,15 +23,12 @@ var _ MappedNullable = &AlpinePackageUploadRequest{} type AlpinePackageUploadRequest struct { // The distribution to store the package for. Distribution string `json:"distribution"` - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` // The primary file for the package. PackageFile string `json:"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. Republish *bool `json:"republish,omitempty"` // A comma-separated values list of tags to add to the package. - Tags NullableString `json:"tags,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + Tags NullableString `json:"tags,omitempty"` AdditionalProperties map[string]interface{} } @@ -80,38 +77,6 @@ func (o *AlpinePackageUploadRequest) SetDistribution(v string) { o.Distribution = v } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *AlpinePackageUploadRequest) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AlpinePackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *AlpinePackageUploadRequest) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *AlpinePackageUploadRequest) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetPackageFile returns the PackageFile field value func (o *AlpinePackageUploadRequest) GetPackageFile() string { if o == nil { @@ -211,49 +176,6 @@ func (o *AlpinePackageUploadRequest) UnsetTags() { o.Tags.Unset() } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *AlpinePackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *AlpinePackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *AlpinePackageUploadRequest) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *AlpinePackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *AlpinePackageUploadRequest) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *AlpinePackageUploadRequest) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - func (o AlpinePackageUploadRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -265,9 +187,6 @@ func (o AlpinePackageUploadRequest) MarshalJSON() ([]byte, error) { func (o AlpinePackageUploadRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["distribution"] = o.Distribution - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } toSerialize["package_file"] = o.PackageFile if !IsNil(o.Republish) { toSerialize["republish"] = o.Republish @@ -275,9 +194,6 @@ func (o AlpinePackageUploadRequest) ToMap() (map[string]interface{}, error) { if o.Tags.IsSet() { toSerialize["tags"] = o.Tags.Get() } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -323,11 +239,9 @@ func (o *AlpinePackageUploadRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "distribution") - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "package_file") delete(additionalProperties, "republish") delete(additionalProperties, "tags") - delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_alpine_upstream.go b/model_alpine_upstream.go index 7a33e49d..ffcc922d 100644 --- a/model_alpine_upstream.go +++ b/model_alpine_upstream.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_alpine_upstream_request.go b/model_alpine_upstream_request.go index 291dca16..6b844451 100644 --- a/model_alpine_upstream_request.go +++ b/model_alpine_upstream_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_alpine_upstream_request_patch.go b/model_alpine_upstream_request_patch.go index 987cc146..01550bf7 100644 --- a/model_alpine_upstream_request_patch.go +++ b/model_alpine_upstream_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_architecture.go b/model_architecture.go index 2343bfe0..ba7780b1 100644 --- a/model_architecture.go +++ b/model_architecture.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_broadcast_token.go b/model_broadcast_token.go index 99e07140..7b782db8 100644 --- a/model_broadcast_token.go +++ b/model_broadcast_token.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_broadcast_token_input.go b/model_broadcast_token_input.go index 8793b8b3..2ca990f6 100644 --- a/model_broadcast_token_input.go +++ b/model_broadcast_token_input.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_cargo_package_upload.go b/model_cargo_package_upload.go index bb95f59e..c2c337b1 100644 --- a/model_cargo_package_upload.go +++ b/model_cargo_package_upload.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -31,8 +31,10 @@ type CargoPackageUpload struct { DependenciesChecksumMd5 NullableString `json:"dependencies_checksum_md5,omitempty"` DependenciesUrl *string `json:"dependencies_url,omitempty"` // A textual description of this package. - Description NullableString `json:"description,omitempty"` - DisplayName *string `json:"display_name,omitempty"` + Description NullableString `json:"description,omitempty"` + DisplayName *string `json:"display_name,omitempty"` + // Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + DisplaySource *string `json:"display_source,omitempty"` Distro NullableDistribution `json:"distro,omitempty"` DistroVersion *DistributionVersion `json:"distro_version,omitempty"` Downloads *int64 `json:"downloads,omitempty"` @@ -49,25 +51,23 @@ type CargoPackageUpload struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The name of this package. @@ -141,10 +141,9 @@ type CargoPackageUpload struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -520,6 +519,38 @@ func (o *CargoPackageUpload) SetDisplayName(v string) { o.DisplayName = &v } +// GetDisplaySource returns the DisplaySource field value if set, zero value otherwise. +func (o *CargoPackageUpload) GetDisplaySource() string { + if o == nil || IsNil(o.DisplaySource) { + var ret string + return ret + } + return *o.DisplaySource +} + +// GetDisplaySourceOk returns a tuple with the DisplaySource field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CargoPackageUpload) GetDisplaySourceOk() (*string, bool) { + if o == nil || IsNil(o.DisplaySource) { + return nil, false + } + return o.DisplaySource, true +} + +// HasDisplaySource returns a boolean if a field has been set. +func (o *CargoPackageUpload) HasDisplaySource() bool { + if o != nil && !IsNil(o.DisplaySource) { + return true + } + + return false +} + +// SetDisplaySource gets a reference to the given string and assigns it to the DisplaySource field. +func (o *CargoPackageUpload) SetDisplaySource(v string) { + o.DisplaySource = &v +} + // GetDistro returns the Distro field value if set, zero value otherwise (both if not set or set to explicit null). func (o *CargoPackageUpload) GetDistro() Distribution { if o == nil || IsNil(o.Distro.Get()) { @@ -1161,38 +1192,6 @@ func (o *CargoPackageUpload) SetIsHidden(v bool) { o.IsHidden = &v } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *CargoPackageUpload) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CargoPackageUpload) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *CargoPackageUpload) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *CargoPackageUpload) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *CargoPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3214,49 +3213,6 @@ func (o *CargoPackageUpload) SetVersionOrig(v string) { o.VersionOrig = &v } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *CargoPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CargoPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *CargoPackageUpload) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *CargoPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *CargoPackageUpload) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *CargoPackageUpload) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *CargoPackageUpload) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3329,6 +3285,9 @@ func (o CargoPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.DisplayName) { toSerialize["display_name"] = o.DisplayName } + if !IsNil(o.DisplaySource) { + toSerialize["display_source"] = o.DisplaySource + } if o.Distro.IsSet() { toSerialize["distro"] = o.Distro.Get() } @@ -3386,9 +3345,6 @@ func (o CargoPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3563,9 +3519,6 @@ func (o CargoPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3601,6 +3554,7 @@ func (o *CargoPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "dependencies_url") delete(additionalProperties, "description") delete(additionalProperties, "display_name") + delete(additionalProperties, "display_source") delete(additionalProperties, "distro") delete(additionalProperties, "distro_version") delete(additionalProperties, "downloads") @@ -3620,7 +3574,6 @@ func (o *CargoPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3679,7 +3632,6 @@ func (o *CargoPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") - delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_cargo_package_upload_request.go b/model_cargo_package_upload_request.go index 8f6e7213..123ce185 100644 --- a/model_cargo_package_upload_request.go +++ b/model_cargo_package_upload_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -21,15 +21,12 @@ var _ MappedNullable = &CargoPackageUploadRequest{} // CargoPackageUploadRequest struct for CargoPackageUploadRequest type CargoPackageUploadRequest struct { - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` // The primary file for the package. PackageFile string `json:"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. Republish *bool `json:"republish,omitempty"` // A comma-separated values list of tags to add to the package. - Tags NullableString `json:"tags,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + Tags NullableString `json:"tags,omitempty"` AdditionalProperties map[string]interface{} } @@ -53,38 +50,6 @@ func NewCargoPackageUploadRequestWithDefaults() *CargoPackageUploadRequest { return &this } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *CargoPackageUploadRequest) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CargoPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *CargoPackageUploadRequest) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *CargoPackageUploadRequest) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetPackageFile returns the PackageFile field value func (o *CargoPackageUploadRequest) GetPackageFile() string { if o == nil { @@ -184,49 +149,6 @@ func (o *CargoPackageUploadRequest) UnsetTags() { o.Tags.Unset() } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *CargoPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CargoPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *CargoPackageUploadRequest) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *CargoPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *CargoPackageUploadRequest) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *CargoPackageUploadRequest) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - func (o CargoPackageUploadRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -237,9 +159,6 @@ func (o CargoPackageUploadRequest) MarshalJSON() ([]byte, error) { func (o CargoPackageUploadRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } toSerialize["package_file"] = o.PackageFile if !IsNil(o.Republish) { toSerialize["republish"] = o.Republish @@ -247,9 +166,6 @@ func (o CargoPackageUploadRequest) ToMap() (map[string]interface{}, error) { if o.Tags.IsSet() { toSerialize["tags"] = o.Tags.Get() } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -293,11 +209,9 @@ func (o *CargoPackageUploadRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "package_file") delete(additionalProperties, "republish") delete(additionalProperties, "tags") - delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_cargo_upstream.go b/model_cargo_upstream.go index eab1bf02..6f049316 100644 --- a/model_cargo_upstream.go +++ b/model_cargo_upstream.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_cargo_upstream_request.go b/model_cargo_upstream_request.go index 4c9155ad..73bc0742 100644 --- a/model_cargo_upstream_request.go +++ b/model_cargo_upstream_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_cargo_upstream_request_patch.go b/model_cargo_upstream_request_patch.go index 52322761..8fc17dfe 100644 --- a/model_cargo_upstream_request_patch.go +++ b/model_cargo_upstream_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_cocoapods_package_upload.go b/model_cocoapods_package_upload.go index 7b72464f..b76ecd12 100644 --- a/model_cocoapods_package_upload.go +++ b/model_cocoapods_package_upload.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -31,8 +31,10 @@ type CocoapodsPackageUpload struct { DependenciesChecksumMd5 NullableString `json:"dependencies_checksum_md5,omitempty"` DependenciesUrl *string `json:"dependencies_url,omitempty"` // A textual description of this package. - Description NullableString `json:"description,omitempty"` - DisplayName *string `json:"display_name,omitempty"` + Description NullableString `json:"description,omitempty"` + DisplayName *string `json:"display_name,omitempty"` + // Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + DisplaySource *string `json:"display_source,omitempty"` Distro NullableDistribution `json:"distro,omitempty"` DistroVersion *DistributionVersion `json:"distro_version,omitempty"` Downloads *int64 `json:"downloads,omitempty"` @@ -49,25 +51,23 @@ type CocoapodsPackageUpload struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The name of this package. @@ -141,10 +141,9 @@ type CocoapodsPackageUpload struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -520,6 +519,38 @@ func (o *CocoapodsPackageUpload) SetDisplayName(v string) { o.DisplayName = &v } +// GetDisplaySource returns the DisplaySource field value if set, zero value otherwise. +func (o *CocoapodsPackageUpload) GetDisplaySource() string { + if o == nil || IsNil(o.DisplaySource) { + var ret string + return ret + } + return *o.DisplaySource +} + +// GetDisplaySourceOk returns a tuple with the DisplaySource field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CocoapodsPackageUpload) GetDisplaySourceOk() (*string, bool) { + if o == nil || IsNil(o.DisplaySource) { + return nil, false + } + return o.DisplaySource, true +} + +// HasDisplaySource returns a boolean if a field has been set. +func (o *CocoapodsPackageUpload) HasDisplaySource() bool { + if o != nil && !IsNil(o.DisplaySource) { + return true + } + + return false +} + +// SetDisplaySource gets a reference to the given string and assigns it to the DisplaySource field. +func (o *CocoapodsPackageUpload) SetDisplaySource(v string) { + o.DisplaySource = &v +} + // GetDistro returns the Distro field value if set, zero value otherwise (both if not set or set to explicit null). func (o *CocoapodsPackageUpload) GetDistro() Distribution { if o == nil || IsNil(o.Distro.Get()) { @@ -1161,38 +1192,6 @@ func (o *CocoapodsPackageUpload) SetIsHidden(v bool) { o.IsHidden = &v } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *CocoapodsPackageUpload) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CocoapodsPackageUpload) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *CocoapodsPackageUpload) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *CocoapodsPackageUpload) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *CocoapodsPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3214,49 +3213,6 @@ func (o *CocoapodsPackageUpload) SetVersionOrig(v string) { o.VersionOrig = &v } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *CocoapodsPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CocoapodsPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *CocoapodsPackageUpload) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *CocoapodsPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *CocoapodsPackageUpload) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *CocoapodsPackageUpload) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *CocoapodsPackageUpload) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3329,6 +3285,9 @@ func (o CocoapodsPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.DisplayName) { toSerialize["display_name"] = o.DisplayName } + if !IsNil(o.DisplaySource) { + toSerialize["display_source"] = o.DisplaySource + } if o.Distro.IsSet() { toSerialize["distro"] = o.Distro.Get() } @@ -3386,9 +3345,6 @@ func (o CocoapodsPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3563,9 +3519,6 @@ func (o CocoapodsPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3601,6 +3554,7 @@ func (o *CocoapodsPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "dependencies_url") delete(additionalProperties, "description") delete(additionalProperties, "display_name") + delete(additionalProperties, "display_source") delete(additionalProperties, "distro") delete(additionalProperties, "distro_version") delete(additionalProperties, "downloads") @@ -3620,7 +3574,6 @@ func (o *CocoapodsPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3679,7 +3632,6 @@ func (o *CocoapodsPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") - delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_cocoapods_package_upload_request.go b/model_cocoapods_package_upload_request.go index 57040009..236309d4 100644 --- a/model_cocoapods_package_upload_request.go +++ b/model_cocoapods_package_upload_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -21,15 +21,12 @@ var _ MappedNullable = &CocoapodsPackageUploadRequest{} // CocoapodsPackageUploadRequest struct for CocoapodsPackageUploadRequest type CocoapodsPackageUploadRequest struct { - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` // The primary file for the package. PackageFile string `json:"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. Republish *bool `json:"republish,omitempty"` // A comma-separated values list of tags to add to the package. - Tags NullableString `json:"tags,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + Tags NullableString `json:"tags,omitempty"` AdditionalProperties map[string]interface{} } @@ -53,38 +50,6 @@ func NewCocoapodsPackageUploadRequestWithDefaults() *CocoapodsPackageUploadReque return &this } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *CocoapodsPackageUploadRequest) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CocoapodsPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *CocoapodsPackageUploadRequest) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *CocoapodsPackageUploadRequest) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetPackageFile returns the PackageFile field value func (o *CocoapodsPackageUploadRequest) GetPackageFile() string { if o == nil { @@ -184,49 +149,6 @@ func (o *CocoapodsPackageUploadRequest) UnsetTags() { o.Tags.Unset() } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *CocoapodsPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CocoapodsPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *CocoapodsPackageUploadRequest) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *CocoapodsPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *CocoapodsPackageUploadRequest) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *CocoapodsPackageUploadRequest) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - func (o CocoapodsPackageUploadRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -237,9 +159,6 @@ func (o CocoapodsPackageUploadRequest) MarshalJSON() ([]byte, error) { func (o CocoapodsPackageUploadRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } toSerialize["package_file"] = o.PackageFile if !IsNil(o.Republish) { toSerialize["republish"] = o.Republish @@ -247,9 +166,6 @@ func (o CocoapodsPackageUploadRequest) ToMap() (map[string]interface{}, error) { if o.Tags.IsSet() { toSerialize["tags"] = o.Tags.Get() } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -293,11 +209,9 @@ func (o *CocoapodsPackageUploadRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "package_file") delete(additionalProperties, "republish") delete(additionalProperties, "tags") - delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_common_bandwidth_metrics.go b/model_common_bandwidth_metrics.go index 72c7def4..27a92e1a 100644 --- a/model_common_bandwidth_metrics.go +++ b/model_common_bandwidth_metrics.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_common_bandwidth_metrics_value.go b/model_common_bandwidth_metrics_value.go index b0398700..4e785b73 100644 --- a/model_common_bandwidth_metrics_value.go +++ b/model_common_bandwidth_metrics_value.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_common_downloads_metrics.go b/model_common_downloads_metrics.go index 74e4866f..20c55f5b 100644 --- a/model_common_downloads_metrics.go +++ b/model_common_downloads_metrics.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_common_downloads_metrics_value.go b/model_common_downloads_metrics_value.go index 59ad0160..74579567 100644 --- a/model_common_downloads_metrics_value.go +++ b/model_common_downloads_metrics_value.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_common_metrics.go b/model_common_metrics.go index aa952a41..54a77a5c 100644 --- a/model_common_metrics.go +++ b/model_common_metrics.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_composer_package_upload.go b/model_composer_package_upload.go index 1063103d..43c8de24 100644 --- a/model_composer_package_upload.go +++ b/model_composer_package_upload.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -31,8 +31,10 @@ type ComposerPackageUpload struct { DependenciesChecksumMd5 NullableString `json:"dependencies_checksum_md5,omitempty"` DependenciesUrl *string `json:"dependencies_url,omitempty"` // A textual description of this package. - Description NullableString `json:"description,omitempty"` - DisplayName *string `json:"display_name,omitempty"` + Description NullableString `json:"description,omitempty"` + DisplayName *string `json:"display_name,omitempty"` + // Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + DisplaySource *string `json:"display_source,omitempty"` Distro NullableDistribution `json:"distro,omitempty"` DistroVersion *DistributionVersion `json:"distro_version,omitempty"` Downloads *int64 `json:"downloads,omitempty"` @@ -49,25 +51,23 @@ type ComposerPackageUpload struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The name of this package. @@ -141,10 +141,9 @@ type ComposerPackageUpload struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -520,6 +519,38 @@ func (o *ComposerPackageUpload) SetDisplayName(v string) { o.DisplayName = &v } +// GetDisplaySource returns the DisplaySource field value if set, zero value otherwise. +func (o *ComposerPackageUpload) GetDisplaySource() string { + if o == nil || IsNil(o.DisplaySource) { + var ret string + return ret + } + return *o.DisplaySource +} + +// GetDisplaySourceOk returns a tuple with the DisplaySource field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComposerPackageUpload) GetDisplaySourceOk() (*string, bool) { + if o == nil || IsNil(o.DisplaySource) { + return nil, false + } + return o.DisplaySource, true +} + +// HasDisplaySource returns a boolean if a field has been set. +func (o *ComposerPackageUpload) HasDisplaySource() bool { + if o != nil && !IsNil(o.DisplaySource) { + return true + } + + return false +} + +// SetDisplaySource gets a reference to the given string and assigns it to the DisplaySource field. +func (o *ComposerPackageUpload) SetDisplaySource(v string) { + o.DisplaySource = &v +} + // GetDistro returns the Distro field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ComposerPackageUpload) GetDistro() Distribution { if o == nil || IsNil(o.Distro.Get()) { @@ -1161,38 +1192,6 @@ func (o *ComposerPackageUpload) SetIsHidden(v bool) { o.IsHidden = &v } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *ComposerPackageUpload) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ComposerPackageUpload) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *ComposerPackageUpload) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *ComposerPackageUpload) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *ComposerPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3214,49 +3213,6 @@ func (o *ComposerPackageUpload) SetVersionOrig(v string) { o.VersionOrig = &v } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ComposerPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ComposerPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *ComposerPackageUpload) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *ComposerPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *ComposerPackageUpload) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *ComposerPackageUpload) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *ComposerPackageUpload) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3329,6 +3285,9 @@ func (o ComposerPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.DisplayName) { toSerialize["display_name"] = o.DisplayName } + if !IsNil(o.DisplaySource) { + toSerialize["display_source"] = o.DisplaySource + } if o.Distro.IsSet() { toSerialize["distro"] = o.Distro.Get() } @@ -3386,9 +3345,6 @@ func (o ComposerPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3563,9 +3519,6 @@ func (o ComposerPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3601,6 +3554,7 @@ func (o *ComposerPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "dependencies_url") delete(additionalProperties, "description") delete(additionalProperties, "display_name") + delete(additionalProperties, "display_source") delete(additionalProperties, "distro") delete(additionalProperties, "distro_version") delete(additionalProperties, "downloads") @@ -3620,7 +3574,6 @@ func (o *ComposerPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3679,7 +3632,6 @@ func (o *ComposerPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") - delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_composer_package_upload_request.go b/model_composer_package_upload_request.go index fc07da87..8b6d9fe3 100644 --- a/model_composer_package_upload_request.go +++ b/model_composer_package_upload_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -21,8 +21,6 @@ var _ MappedNullable = &ComposerPackageUploadRequest{} // ComposerPackageUploadRequest struct for ComposerPackageUploadRequest type ComposerPackageUploadRequest struct { - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` // The primary file for the package. PackageFile string `json:"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. @@ -30,8 +28,7 @@ type ComposerPackageUploadRequest struct { // A comma-separated values list of tags to add to the package. Tags NullableString `json:"tags,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + Version NullableString `json:"version,omitempty"` AdditionalProperties map[string]interface{} } @@ -55,38 +52,6 @@ func NewComposerPackageUploadRequestWithDefaults() *ComposerPackageUploadRequest return &this } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *ComposerPackageUploadRequest) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ComposerPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *ComposerPackageUploadRequest) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *ComposerPackageUploadRequest) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetPackageFile returns the PackageFile field value func (o *ComposerPackageUploadRequest) GetPackageFile() string { if o == nil { @@ -229,49 +194,6 @@ func (o *ComposerPackageUploadRequest) UnsetVersion() { o.Version.Unset() } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ComposerPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ComposerPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *ComposerPackageUploadRequest) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *ComposerPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *ComposerPackageUploadRequest) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *ComposerPackageUploadRequest) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - func (o ComposerPackageUploadRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -282,9 +204,6 @@ func (o ComposerPackageUploadRequest) MarshalJSON() ([]byte, error) { func (o ComposerPackageUploadRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } toSerialize["package_file"] = o.PackageFile if !IsNil(o.Republish) { toSerialize["republish"] = o.Republish @@ -295,9 +214,6 @@ func (o ComposerPackageUploadRequest) ToMap() (map[string]interface{}, error) { if o.Version.IsSet() { toSerialize["version"] = o.Version.Get() } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -341,12 +257,10 @@ func (o *ComposerPackageUploadRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "package_file") delete(additionalProperties, "republish") delete(additionalProperties, "tags") delete(additionalProperties, "version") - delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_composer_upstream.go b/model_composer_upstream.go index 83aa10e6..faa7ee47 100644 --- a/model_composer_upstream.go +++ b/model_composer_upstream.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_composer_upstream_request.go b/model_composer_upstream_request.go index 4df2f733..17ae9d1e 100644 --- a/model_composer_upstream_request.go +++ b/model_composer_upstream_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_composer_upstream_request_patch.go b/model_composer_upstream_request_patch.go index 80acca2f..f672ee5a 100644 --- a/model_composer_upstream_request_patch.go +++ b/model_composer_upstream_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_conan_package_upload.go b/model_conan_package_upload.go index 299bf670..c38d7255 100644 --- a/model_conan_package_upload.go +++ b/model_conan_package_upload.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -35,8 +35,10 @@ type ConanPackageUpload struct { DependenciesChecksumMd5 NullableString `json:"dependencies_checksum_md5,omitempty"` DependenciesUrl *string `json:"dependencies_url,omitempty"` // A textual description of this package. - Description NullableString `json:"description,omitempty"` - DisplayName *string `json:"display_name,omitempty"` + Description NullableString `json:"description,omitempty"` + DisplayName *string `json:"display_name,omitempty"` + // Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + DisplaySource *string `json:"display_source,omitempty"` Distro NullableDistribution `json:"distro,omitempty"` DistroVersion *DistributionVersion `json:"distro_version,omitempty"` Downloads *int64 `json:"downloads,omitempty"` @@ -53,25 +55,23 @@ type ConanPackageUpload struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The name of this package. @@ -145,10 +145,9 @@ type ConanPackageUpload struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -610,6 +609,38 @@ func (o *ConanPackageUpload) SetDisplayName(v string) { o.DisplayName = &v } +// GetDisplaySource returns the DisplaySource field value if set, zero value otherwise. +func (o *ConanPackageUpload) GetDisplaySource() string { + if o == nil || IsNil(o.DisplaySource) { + var ret string + return ret + } + return *o.DisplaySource +} + +// GetDisplaySourceOk returns a tuple with the DisplaySource field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConanPackageUpload) GetDisplaySourceOk() (*string, bool) { + if o == nil || IsNil(o.DisplaySource) { + return nil, false + } + return o.DisplaySource, true +} + +// HasDisplaySource returns a boolean if a field has been set. +func (o *ConanPackageUpload) HasDisplaySource() bool { + if o != nil && !IsNil(o.DisplaySource) { + return true + } + + return false +} + +// SetDisplaySource gets a reference to the given string and assigns it to the DisplaySource field. +func (o *ConanPackageUpload) SetDisplaySource(v string) { + o.DisplaySource = &v +} + // GetDistro returns the Distro field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ConanPackageUpload) GetDistro() Distribution { if o == nil || IsNil(o.Distro.Get()) { @@ -1251,38 +1282,6 @@ func (o *ConanPackageUpload) SetIsHidden(v bool) { o.IsHidden = &v } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *ConanPackageUpload) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ConanPackageUpload) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *ConanPackageUpload) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *ConanPackageUpload) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *ConanPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3304,49 +3303,6 @@ func (o *ConanPackageUpload) SetVersionOrig(v string) { o.VersionOrig = &v } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ConanPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ConanPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *ConanPackageUpload) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *ConanPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *ConanPackageUpload) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *ConanPackageUpload) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *ConanPackageUpload) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3425,6 +3381,9 @@ func (o ConanPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.DisplayName) { toSerialize["display_name"] = o.DisplayName } + if !IsNil(o.DisplaySource) { + toSerialize["display_source"] = o.DisplaySource + } if o.Distro.IsSet() { toSerialize["distro"] = o.Distro.Get() } @@ -3482,9 +3441,6 @@ func (o ConanPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3659,9 +3615,6 @@ func (o ConanPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3699,6 +3652,7 @@ func (o *ConanPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "dependencies_url") delete(additionalProperties, "description") delete(additionalProperties, "display_name") + delete(additionalProperties, "display_source") delete(additionalProperties, "distro") delete(additionalProperties, "distro_version") delete(additionalProperties, "downloads") @@ -3718,7 +3672,6 @@ func (o *ConanPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3777,7 +3730,6 @@ func (o *ConanPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") - delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_conan_package_upload_request.go b/model_conan_package_upload_request.go index ea40e69c..06cf15af 100644 --- a/model_conan_package_upload_request.go +++ b/model_conan_package_upload_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -27,8 +27,6 @@ type ConanPackageUploadRequest struct { ConanPrefix NullableString `json:"conan_prefix,omitempty"` // The info file is an python file containing the package metadata. InfoFile string `json:"info_file"` - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` // The info file is an python file containing the package metadata. ManifestFile string `json:"manifest_file"` // The conan file is an python file containing the package metadata. @@ -42,8 +40,7 @@ type ConanPackageUploadRequest struct { // A comma-separated values list of tags to add to the package. Tags NullableString `json:"tags,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + Version NullableString `json:"version,omitempty"` AdditionalProperties map[string]interface{} } @@ -180,38 +177,6 @@ func (o *ConanPackageUploadRequest) SetInfoFile(v string) { o.InfoFile = v } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *ConanPackageUploadRequest) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ConanPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *ConanPackageUploadRequest) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *ConanPackageUploadRequest) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetManifestFile returns the ManifestFile field value func (o *ConanPackageUploadRequest) GetManifestFile() string { if o == nil { @@ -445,49 +410,6 @@ func (o *ConanPackageUploadRequest) UnsetVersion() { o.Version.Unset() } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ConanPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ConanPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *ConanPackageUploadRequest) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *ConanPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *ConanPackageUploadRequest) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *ConanPackageUploadRequest) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - func (o ConanPackageUploadRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -505,9 +427,6 @@ func (o ConanPackageUploadRequest) ToMap() (map[string]interface{}, error) { toSerialize["conan_prefix"] = o.ConanPrefix.Get() } toSerialize["info_file"] = o.InfoFile - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } toSerialize["manifest_file"] = o.ManifestFile toSerialize["metadata_file"] = o.MetadataFile if o.Name.IsSet() { @@ -523,9 +442,6 @@ func (o ConanPackageUploadRequest) ToMap() (map[string]interface{}, error) { if o.Version.IsSet() { toSerialize["version"] = o.Version.Get() } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -575,7 +491,6 @@ func (o *ConanPackageUploadRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "conan_channel") delete(additionalProperties, "conan_prefix") delete(additionalProperties, "info_file") - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "manifest_file") delete(additionalProperties, "metadata_file") delete(additionalProperties, "name") @@ -583,7 +498,6 @@ func (o *ConanPackageUploadRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "republish") delete(additionalProperties, "tags") delete(additionalProperties, "version") - delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_conda_package_upload.go b/model_conda_package_upload.go index 5326ce7e..e7a362c9 100644 --- a/model_conda_package_upload.go +++ b/model_conda_package_upload.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -31,8 +31,10 @@ type CondaPackageUpload struct { DependenciesChecksumMd5 NullableString `json:"dependencies_checksum_md5,omitempty"` DependenciesUrl *string `json:"dependencies_url,omitempty"` // A textual description of this package. - Description NullableString `json:"description,omitempty"` - DisplayName *string `json:"display_name,omitempty"` + Description NullableString `json:"description,omitempty"` + DisplayName *string `json:"display_name,omitempty"` + // Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + DisplaySource *string `json:"display_source,omitempty"` Distro NullableDistribution `json:"distro,omitempty"` DistroVersion *DistributionVersion `json:"distro_version,omitempty"` Downloads *int64 `json:"downloads,omitempty"` @@ -49,25 +51,23 @@ type CondaPackageUpload struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The name of this package. @@ -141,10 +141,9 @@ type CondaPackageUpload struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -520,6 +519,38 @@ func (o *CondaPackageUpload) SetDisplayName(v string) { o.DisplayName = &v } +// GetDisplaySource returns the DisplaySource field value if set, zero value otherwise. +func (o *CondaPackageUpload) GetDisplaySource() string { + if o == nil || IsNil(o.DisplaySource) { + var ret string + return ret + } + return *o.DisplaySource +} + +// GetDisplaySourceOk returns a tuple with the DisplaySource field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CondaPackageUpload) GetDisplaySourceOk() (*string, bool) { + if o == nil || IsNil(o.DisplaySource) { + return nil, false + } + return o.DisplaySource, true +} + +// HasDisplaySource returns a boolean if a field has been set. +func (o *CondaPackageUpload) HasDisplaySource() bool { + if o != nil && !IsNil(o.DisplaySource) { + return true + } + + return false +} + +// SetDisplaySource gets a reference to the given string and assigns it to the DisplaySource field. +func (o *CondaPackageUpload) SetDisplaySource(v string) { + o.DisplaySource = &v +} + // GetDistro returns the Distro field value if set, zero value otherwise (both if not set or set to explicit null). func (o *CondaPackageUpload) GetDistro() Distribution { if o == nil || IsNil(o.Distro.Get()) { @@ -1161,38 +1192,6 @@ func (o *CondaPackageUpload) SetIsHidden(v bool) { o.IsHidden = &v } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *CondaPackageUpload) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CondaPackageUpload) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *CondaPackageUpload) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *CondaPackageUpload) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *CondaPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3214,49 +3213,6 @@ func (o *CondaPackageUpload) SetVersionOrig(v string) { o.VersionOrig = &v } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *CondaPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CondaPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *CondaPackageUpload) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *CondaPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *CondaPackageUpload) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *CondaPackageUpload) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *CondaPackageUpload) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3329,6 +3285,9 @@ func (o CondaPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.DisplayName) { toSerialize["display_name"] = o.DisplayName } + if !IsNil(o.DisplaySource) { + toSerialize["display_source"] = o.DisplaySource + } if o.Distro.IsSet() { toSerialize["distro"] = o.Distro.Get() } @@ -3386,9 +3345,6 @@ func (o CondaPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3563,9 +3519,6 @@ func (o CondaPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3601,6 +3554,7 @@ func (o *CondaPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "dependencies_url") delete(additionalProperties, "description") delete(additionalProperties, "display_name") + delete(additionalProperties, "display_source") delete(additionalProperties, "distro") delete(additionalProperties, "distro_version") delete(additionalProperties, "downloads") @@ -3620,7 +3574,6 @@ func (o *CondaPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3679,7 +3632,6 @@ func (o *CondaPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") - delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_conda_package_upload_request.go b/model_conda_package_upload_request.go index fa9f66c2..e62c9fb3 100644 --- a/model_conda_package_upload_request.go +++ b/model_conda_package_upload_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -21,15 +21,12 @@ var _ MappedNullable = &CondaPackageUploadRequest{} // CondaPackageUploadRequest struct for CondaPackageUploadRequest type CondaPackageUploadRequest struct { - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` // The primary file for the package. PackageFile string `json:"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. Republish *bool `json:"republish,omitempty"` // A comma-separated values list of tags to add to the package. - Tags NullableString `json:"tags,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + Tags NullableString `json:"tags,omitempty"` AdditionalProperties map[string]interface{} } @@ -53,38 +50,6 @@ func NewCondaPackageUploadRequestWithDefaults() *CondaPackageUploadRequest { return &this } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *CondaPackageUploadRequest) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CondaPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *CondaPackageUploadRequest) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *CondaPackageUploadRequest) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetPackageFile returns the PackageFile field value func (o *CondaPackageUploadRequest) GetPackageFile() string { if o == nil { @@ -184,49 +149,6 @@ func (o *CondaPackageUploadRequest) UnsetTags() { o.Tags.Unset() } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *CondaPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CondaPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *CondaPackageUploadRequest) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *CondaPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *CondaPackageUploadRequest) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *CondaPackageUploadRequest) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - func (o CondaPackageUploadRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -237,9 +159,6 @@ func (o CondaPackageUploadRequest) MarshalJSON() ([]byte, error) { func (o CondaPackageUploadRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } toSerialize["package_file"] = o.PackageFile if !IsNil(o.Republish) { toSerialize["republish"] = o.Republish @@ -247,9 +166,6 @@ func (o CondaPackageUploadRequest) ToMap() (map[string]interface{}, error) { if o.Tags.IsSet() { toSerialize["tags"] = o.Tags.Get() } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -293,11 +209,9 @@ func (o *CondaPackageUploadRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "package_file") delete(additionalProperties, "republish") delete(additionalProperties, "tags") - delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_conda_upstream.go b/model_conda_upstream.go index 082acd9c..2872ee01 100644 --- a/model_conda_upstream.go +++ b/model_conda_upstream.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_conda_upstream_request.go b/model_conda_upstream_request.go index 8b1e905a..35addf03 100644 --- a/model_conda_upstream_request.go +++ b/model_conda_upstream_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_conda_upstream_request_patch.go b/model_conda_upstream_request_patch.go index dc0d7b64..8b10f0f8 100644 --- a/model_conda_upstream_request_patch.go +++ b/model_conda_upstream_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_connected_repository.go b/model_connected_repository.go index 4fc4c3c0..497c374a 100644 --- a/model_connected_repository.go +++ b/model_connected_repository.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -22,6 +22,10 @@ var _ MappedNullable = &ConnectedRepository{} // ConnectedRepository struct for ConnectedRepository type ConnectedRepository struct { + // Whether the current user has permission to view the target repository's settings. When false, `configured_upstreams` will be empty even if upstreams are configured. + CanViewTargetRepositorySettings *bool `json:"can_view_target_repository_settings,omitempty"` + // The upstream sources configured on the target repository, used to display which formats/upstreams the connection exposes. + ConfiguredUpstreams []ConnectedRepositoryUpstream `json:"configured_upstreams,omitempty"` // The date and time when the connection was created. CreatedAt *time.Time `json:"created_at,omitempty"` DisableReason *string `json:"disable_reason,omitempty"` @@ -32,8 +36,9 @@ type ConnectedRepository struct { Priority *int64 `json:"priority,omitempty"` SlugPerm *string `json:"slug_perm,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"` // The slug of the target repository to connect to. - TargetRepository string `json:"target_repository" validate:"regexp=^[-a-zA-Z0-9_]+$"` - AdditionalProperties map[string]interface{} + TargetRepository string `json:"target_repository" validate:"regexp=^[-a-zA-Z0-9_]+$"` + TargetRepositorySummary *ConnectedRepositoryTargetSummary `json:"target_repository_summary,omitempty"` + AdditionalProperties map[string]interface{} } type _ConnectedRepository ConnectedRepository @@ -60,6 +65,70 @@ func NewConnectedRepositoryWithDefaults() *ConnectedRepository { return &this } +// GetCanViewTargetRepositorySettings returns the CanViewTargetRepositorySettings field value if set, zero value otherwise. +func (o *ConnectedRepository) GetCanViewTargetRepositorySettings() bool { + if o == nil || IsNil(o.CanViewTargetRepositorySettings) { + var ret bool + return ret + } + return *o.CanViewTargetRepositorySettings +} + +// GetCanViewTargetRepositorySettingsOk returns a tuple with the CanViewTargetRepositorySettings field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectedRepository) GetCanViewTargetRepositorySettingsOk() (*bool, bool) { + if o == nil || IsNil(o.CanViewTargetRepositorySettings) { + return nil, false + } + return o.CanViewTargetRepositorySettings, true +} + +// HasCanViewTargetRepositorySettings returns a boolean if a field has been set. +func (o *ConnectedRepository) HasCanViewTargetRepositorySettings() bool { + if o != nil && !IsNil(o.CanViewTargetRepositorySettings) { + return true + } + + return false +} + +// SetCanViewTargetRepositorySettings gets a reference to the given bool and assigns it to the CanViewTargetRepositorySettings field. +func (o *ConnectedRepository) SetCanViewTargetRepositorySettings(v bool) { + o.CanViewTargetRepositorySettings = &v +} + +// GetConfiguredUpstreams returns the ConfiguredUpstreams field value if set, zero value otherwise. +func (o *ConnectedRepository) GetConfiguredUpstreams() []ConnectedRepositoryUpstream { + if o == nil || IsNil(o.ConfiguredUpstreams) { + var ret []ConnectedRepositoryUpstream + return ret + } + return o.ConfiguredUpstreams +} + +// GetConfiguredUpstreamsOk returns a tuple with the ConfiguredUpstreams field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectedRepository) GetConfiguredUpstreamsOk() ([]ConnectedRepositoryUpstream, bool) { + if o == nil || IsNil(o.ConfiguredUpstreams) { + return nil, false + } + return o.ConfiguredUpstreams, true +} + +// HasConfiguredUpstreams returns a boolean if a field has been set. +func (o *ConnectedRepository) HasConfiguredUpstreams() bool { + if o != nil && !IsNil(o.ConfiguredUpstreams) { + return true + } + + return false +} + +// SetConfiguredUpstreams gets a reference to the given []ConnectedRepositoryUpstream and assigns it to the ConfiguredUpstreams field. +func (o *ConnectedRepository) SetConfiguredUpstreams(v []ConnectedRepositoryUpstream) { + o.ConfiguredUpstreams = v +} + // GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. func (o *ConnectedRepository) GetCreatedAt() time.Time { if o == nil || IsNil(o.CreatedAt) { @@ -276,6 +345,38 @@ func (o *ConnectedRepository) SetTargetRepository(v string) { o.TargetRepository = v } +// GetTargetRepositorySummary returns the TargetRepositorySummary field value if set, zero value otherwise. +func (o *ConnectedRepository) GetTargetRepositorySummary() ConnectedRepositoryTargetSummary { + if o == nil || IsNil(o.TargetRepositorySummary) { + var ret ConnectedRepositoryTargetSummary + return ret + } + return *o.TargetRepositorySummary +} + +// GetTargetRepositorySummaryOk returns a tuple with the TargetRepositorySummary field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectedRepository) GetTargetRepositorySummaryOk() (*ConnectedRepositoryTargetSummary, bool) { + if o == nil || IsNil(o.TargetRepositorySummary) { + return nil, false + } + return o.TargetRepositorySummary, true +} + +// HasTargetRepositorySummary returns a boolean if a field has been set. +func (o *ConnectedRepository) HasTargetRepositorySummary() bool { + if o != nil && !IsNil(o.TargetRepositorySummary) { + return true + } + + return false +} + +// SetTargetRepositorySummary gets a reference to the given ConnectedRepositoryTargetSummary and assigns it to the TargetRepositorySummary field. +func (o *ConnectedRepository) SetTargetRepositorySummary(v ConnectedRepositoryTargetSummary) { + o.TargetRepositorySummary = &v +} + func (o ConnectedRepository) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -286,6 +387,12 @@ func (o ConnectedRepository) MarshalJSON() ([]byte, error) { func (o ConnectedRepository) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.CanViewTargetRepositorySettings) { + toSerialize["can_view_target_repository_settings"] = o.CanViewTargetRepositorySettings + } + if !IsNil(o.ConfiguredUpstreams) { + toSerialize["configured_upstreams"] = o.ConfiguredUpstreams + } if !IsNil(o.CreatedAt) { toSerialize["created_at"] = o.CreatedAt } @@ -305,6 +412,9 @@ func (o ConnectedRepository) ToMap() (map[string]interface{}, error) { toSerialize["slug_perm"] = o.SlugPerm } toSerialize["target_repository"] = o.TargetRepository + if !IsNil(o.TargetRepositorySummary) { + toSerialize["target_repository_summary"] = o.TargetRepositorySummary + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -348,6 +458,8 @@ func (o *ConnectedRepository) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "can_view_target_repository_settings") + delete(additionalProperties, "configured_upstreams") delete(additionalProperties, "created_at") delete(additionalProperties, "disable_reason") delete(additionalProperties, "disable_reason_text") @@ -355,6 +467,7 @@ func (o *ConnectedRepository) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "priority") delete(additionalProperties, "slug_perm") delete(additionalProperties, "target_repository") + delete(additionalProperties, "target_repository_summary") o.AdditionalProperties = additionalProperties } diff --git a/model_connected_repository_request.go b/model_connected_repository_request.go index 80ea414b..3dab43a0 100644 --- a/model_connected_repository_request.go +++ b/model_connected_repository_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_connected_repository_request_patch.go b/model_connected_repository_request_patch.go index 165cc0e9..fe683a7f 100644 --- a/model_connected_repository_request_patch.go +++ b/model_connected_repository_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_connected_repository_target_summary.go b/model_connected_repository_target_summary.go new file mode 100644 index 00000000..f9689372 --- /dev/null +++ b/model_connected_repository_target_summary.go @@ -0,0 +1,265 @@ +/* +Cloudsmith API (v1) + +The API to the Cloudsmith Service + +API version: 1.1388.0 +Contact: support@cloudsmith.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cloudsmith + +import ( + "encoding/json" +) + +// checks if the ConnectedRepositoryTargetSummary type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ConnectedRepositoryTargetSummary{} + +// ConnectedRepositoryTargetSummary struct for ConnectedRepositoryTargetSummary +type ConnectedRepositoryTargetSummary struct { + IsPrivate *bool `json:"is_private,omitempty"` + IsPublic *bool `json:"is_public,omitempty"` + PackageCount *int64 `json:"package_count,omitempty"` + Size *int64 `json:"size,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ConnectedRepositoryTargetSummary ConnectedRepositoryTargetSummary + +// NewConnectedRepositoryTargetSummary instantiates a new ConnectedRepositoryTargetSummary object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewConnectedRepositoryTargetSummary() *ConnectedRepositoryTargetSummary { + this := ConnectedRepositoryTargetSummary{} + return &this +} + +// NewConnectedRepositoryTargetSummaryWithDefaults instantiates a new ConnectedRepositoryTargetSummary object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewConnectedRepositoryTargetSummaryWithDefaults() *ConnectedRepositoryTargetSummary { + this := ConnectedRepositoryTargetSummary{} + return &this +} + +// GetIsPrivate returns the IsPrivate field value if set, zero value otherwise. +func (o *ConnectedRepositoryTargetSummary) GetIsPrivate() bool { + if o == nil || IsNil(o.IsPrivate) { + var ret bool + return ret + } + return *o.IsPrivate +} + +// GetIsPrivateOk returns a tuple with the IsPrivate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectedRepositoryTargetSummary) GetIsPrivateOk() (*bool, bool) { + if o == nil || IsNil(o.IsPrivate) { + return nil, false + } + return o.IsPrivate, true +} + +// HasIsPrivate returns a boolean if a field has been set. +func (o *ConnectedRepositoryTargetSummary) HasIsPrivate() bool { + if o != nil && !IsNil(o.IsPrivate) { + return true + } + + return false +} + +// SetIsPrivate gets a reference to the given bool and assigns it to the IsPrivate field. +func (o *ConnectedRepositoryTargetSummary) SetIsPrivate(v bool) { + o.IsPrivate = &v +} + +// GetIsPublic returns the IsPublic field value if set, zero value otherwise. +func (o *ConnectedRepositoryTargetSummary) GetIsPublic() bool { + if o == nil || IsNil(o.IsPublic) { + var ret bool + return ret + } + return *o.IsPublic +} + +// GetIsPublicOk returns a tuple with the IsPublic field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectedRepositoryTargetSummary) GetIsPublicOk() (*bool, bool) { + if o == nil || IsNil(o.IsPublic) { + return nil, false + } + return o.IsPublic, true +} + +// HasIsPublic returns a boolean if a field has been set. +func (o *ConnectedRepositoryTargetSummary) HasIsPublic() bool { + if o != nil && !IsNil(o.IsPublic) { + return true + } + + return false +} + +// SetIsPublic gets a reference to the given bool and assigns it to the IsPublic field. +func (o *ConnectedRepositoryTargetSummary) SetIsPublic(v bool) { + o.IsPublic = &v +} + +// GetPackageCount returns the PackageCount field value if set, zero value otherwise. +func (o *ConnectedRepositoryTargetSummary) GetPackageCount() int64 { + if o == nil || IsNil(o.PackageCount) { + var ret int64 + return ret + } + return *o.PackageCount +} + +// GetPackageCountOk returns a tuple with the PackageCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectedRepositoryTargetSummary) GetPackageCountOk() (*int64, bool) { + if o == nil || IsNil(o.PackageCount) { + return nil, false + } + return o.PackageCount, true +} + +// HasPackageCount returns a boolean if a field has been set. +func (o *ConnectedRepositoryTargetSummary) HasPackageCount() bool { + if o != nil && !IsNil(o.PackageCount) { + return true + } + + return false +} + +// SetPackageCount gets a reference to the given int64 and assigns it to the PackageCount field. +func (o *ConnectedRepositoryTargetSummary) SetPackageCount(v int64) { + o.PackageCount = &v +} + +// GetSize returns the Size field value if set, zero value otherwise. +func (o *ConnectedRepositoryTargetSummary) GetSize() int64 { + if o == nil || IsNil(o.Size) { + var ret int64 + return ret + } + return *o.Size +} + +// GetSizeOk returns a tuple with the Size field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectedRepositoryTargetSummary) GetSizeOk() (*int64, bool) { + if o == nil || IsNil(o.Size) { + return nil, false + } + return o.Size, true +} + +// HasSize returns a boolean if a field has been set. +func (o *ConnectedRepositoryTargetSummary) HasSize() bool { + if o != nil && !IsNil(o.Size) { + return true + } + + return false +} + +// SetSize gets a reference to the given int64 and assigns it to the Size field. +func (o *ConnectedRepositoryTargetSummary) SetSize(v int64) { + o.Size = &v +} + +func (o ConnectedRepositoryTargetSummary) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ConnectedRepositoryTargetSummary) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.IsPrivate) { + toSerialize["is_private"] = o.IsPrivate + } + if !IsNil(o.IsPublic) { + toSerialize["is_public"] = o.IsPublic + } + if !IsNil(o.PackageCount) { + toSerialize["package_count"] = o.PackageCount + } + if !IsNil(o.Size) { + toSerialize["size"] = o.Size + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ConnectedRepositoryTargetSummary) UnmarshalJSON(data []byte) (err error) { + varConnectedRepositoryTargetSummary := _ConnectedRepositoryTargetSummary{} + + err = json.Unmarshal(data, &varConnectedRepositoryTargetSummary) + + if err != nil { + return err + } + + *o = ConnectedRepositoryTargetSummary(varConnectedRepositoryTargetSummary) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "is_private") + delete(additionalProperties, "is_public") + delete(additionalProperties, "package_count") + delete(additionalProperties, "size") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableConnectedRepositoryTargetSummary struct { + value *ConnectedRepositoryTargetSummary + isSet bool +} + +func (v NullableConnectedRepositoryTargetSummary) Get() *ConnectedRepositoryTargetSummary { + return v.value +} + +func (v *NullableConnectedRepositoryTargetSummary) Set(val *ConnectedRepositoryTargetSummary) { + v.value = val + v.isSet = true +} + +func (v NullableConnectedRepositoryTargetSummary) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectedRepositoryTargetSummary) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectedRepositoryTargetSummary(val *ConnectedRepositoryTargetSummary) *NullableConnectedRepositoryTargetSummary { + return &NullableConnectedRepositoryTargetSummary{value: val, isSet: true} +} + +func (v NullableConnectedRepositoryTargetSummary) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectedRepositoryTargetSummary) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_connected_repository_upstream.go b/model_connected_repository_upstream.go new file mode 100644 index 00000000..f0cdf129 --- /dev/null +++ b/model_connected_repository_upstream.go @@ -0,0 +1,214 @@ +/* +Cloudsmith API (v1) + +The API to the Cloudsmith Service + +API version: 1.1388.0 +Contact: support@cloudsmith.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cloudsmith + +import ( + "encoding/json" +) + +// checks if the ConnectedRepositoryUpstream type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ConnectedRepositoryUpstream{} + +// ConnectedRepositoryUpstream struct for ConnectedRepositoryUpstream +type ConnectedRepositoryUpstream struct { + // The format/backend slug of the upstream (e.g. 'npm'). + Type NullableString `json:"type,omitempty"` + UpstreamUrl NullableString `json:"upstream_url,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ConnectedRepositoryUpstream ConnectedRepositoryUpstream + +// NewConnectedRepositoryUpstream instantiates a new ConnectedRepositoryUpstream object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewConnectedRepositoryUpstream() *ConnectedRepositoryUpstream { + this := ConnectedRepositoryUpstream{} + return &this +} + +// NewConnectedRepositoryUpstreamWithDefaults instantiates a new ConnectedRepositoryUpstream object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewConnectedRepositoryUpstreamWithDefaults() *ConnectedRepositoryUpstream { + this := ConnectedRepositoryUpstream{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ConnectedRepositoryUpstream) GetType() string { + if o == nil || IsNil(o.Type.Get()) { + var ret string + return ret + } + return *o.Type.Get() +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ConnectedRepositoryUpstream) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Type.Get(), o.Type.IsSet() +} + +// HasType returns a boolean if a field has been set. +func (o *ConnectedRepositoryUpstream) HasType() bool { + if o != nil && o.Type.IsSet() { + return true + } + + return false +} + +// SetType gets a reference to the given NullableString and assigns it to the Type field. +func (o *ConnectedRepositoryUpstream) SetType(v string) { + o.Type.Set(&v) +} + +// SetTypeNil sets the value for Type to be an explicit nil +func (o *ConnectedRepositoryUpstream) SetTypeNil() { + o.Type.Set(nil) +} + +// UnsetType ensures that no value is present for Type, not even an explicit nil +func (o *ConnectedRepositoryUpstream) UnsetType() { + o.Type.Unset() +} + +// GetUpstreamUrl returns the UpstreamUrl field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ConnectedRepositoryUpstream) GetUpstreamUrl() string { + if o == nil || IsNil(o.UpstreamUrl.Get()) { + var ret string + return ret + } + return *o.UpstreamUrl.Get() +} + +// GetUpstreamUrlOk returns a tuple with the UpstreamUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ConnectedRepositoryUpstream) GetUpstreamUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.UpstreamUrl.Get(), o.UpstreamUrl.IsSet() +} + +// HasUpstreamUrl returns a boolean if a field has been set. +func (o *ConnectedRepositoryUpstream) HasUpstreamUrl() bool { + if o != nil && o.UpstreamUrl.IsSet() { + return true + } + + return false +} + +// SetUpstreamUrl gets a reference to the given NullableString and assigns it to the UpstreamUrl field. +func (o *ConnectedRepositoryUpstream) SetUpstreamUrl(v string) { + o.UpstreamUrl.Set(&v) +} + +// SetUpstreamUrlNil sets the value for UpstreamUrl to be an explicit nil +func (o *ConnectedRepositoryUpstream) SetUpstreamUrlNil() { + o.UpstreamUrl.Set(nil) +} + +// UnsetUpstreamUrl ensures that no value is present for UpstreamUrl, not even an explicit nil +func (o *ConnectedRepositoryUpstream) UnsetUpstreamUrl() { + o.UpstreamUrl.Unset() +} + +func (o ConnectedRepositoryUpstream) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ConnectedRepositoryUpstream) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type.IsSet() { + toSerialize["type"] = o.Type.Get() + } + if o.UpstreamUrl.IsSet() { + toSerialize["upstream_url"] = o.UpstreamUrl.Get() + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ConnectedRepositoryUpstream) UnmarshalJSON(data []byte) (err error) { + varConnectedRepositoryUpstream := _ConnectedRepositoryUpstream{} + + err = json.Unmarshal(data, &varConnectedRepositoryUpstream) + + if err != nil { + return err + } + + *o = ConnectedRepositoryUpstream(varConnectedRepositoryUpstream) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "type") + delete(additionalProperties, "upstream_url") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableConnectedRepositoryUpstream struct { + value *ConnectedRepositoryUpstream + isSet bool +} + +func (v NullableConnectedRepositoryUpstream) Get() *ConnectedRepositoryUpstream { + return v.value +} + +func (v *NullableConnectedRepositoryUpstream) Set(val *ConnectedRepositoryUpstream) { + v.value = val + v.isSet = true +} + +func (v NullableConnectedRepositoryUpstream) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectedRepositoryUpstream) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectedRepositoryUpstream(val *ConnectedRepositoryUpstream) *NullableConnectedRepositoryUpstream { + return &NullableConnectedRepositoryUpstream{value: val, isSet: true} +} + +func (v NullableConnectedRepositoryUpstream) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectedRepositoryUpstream) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_cran_package_upload.go b/model_cran_package_upload.go index 4404a348..e0e4e1d7 100644 --- a/model_cran_package_upload.go +++ b/model_cran_package_upload.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -31,8 +31,10 @@ type CranPackageUpload struct { DependenciesChecksumMd5 NullableString `json:"dependencies_checksum_md5,omitempty"` DependenciesUrl *string `json:"dependencies_url,omitempty"` // A textual description of this package. - Description NullableString `json:"description,omitempty"` - DisplayName *string `json:"display_name,omitempty"` + Description NullableString `json:"description,omitempty"` + DisplayName *string `json:"display_name,omitempty"` + // Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + DisplaySource *string `json:"display_source,omitempty"` Distro NullableDistribution `json:"distro,omitempty"` DistroVersion *DistributionVersion `json:"distro_version,omitempty"` Downloads *int64 `json:"downloads,omitempty"` @@ -49,25 +51,23 @@ type CranPackageUpload struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The name of this package. @@ -143,10 +143,9 @@ type CranPackageUpload struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -522,6 +521,38 @@ func (o *CranPackageUpload) SetDisplayName(v string) { o.DisplayName = &v } +// GetDisplaySource returns the DisplaySource field value if set, zero value otherwise. +func (o *CranPackageUpload) GetDisplaySource() string { + if o == nil || IsNil(o.DisplaySource) { + var ret string + return ret + } + return *o.DisplaySource +} + +// GetDisplaySourceOk returns a tuple with the DisplaySource field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CranPackageUpload) GetDisplaySourceOk() (*string, bool) { + if o == nil || IsNil(o.DisplaySource) { + return nil, false + } + return o.DisplaySource, true +} + +// HasDisplaySource returns a boolean if a field has been set. +func (o *CranPackageUpload) HasDisplaySource() bool { + if o != nil && !IsNil(o.DisplaySource) { + return true + } + + return false +} + +// SetDisplaySource gets a reference to the given string and assigns it to the DisplaySource field. +func (o *CranPackageUpload) SetDisplaySource(v string) { + o.DisplaySource = &v +} + // GetDistro returns the Distro field value if set, zero value otherwise (both if not set or set to explicit null). func (o *CranPackageUpload) GetDistro() Distribution { if o == nil || IsNil(o.Distro.Get()) { @@ -1163,38 +1194,6 @@ func (o *CranPackageUpload) SetIsHidden(v bool) { o.IsHidden = &v } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *CranPackageUpload) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CranPackageUpload) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *CranPackageUpload) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *CranPackageUpload) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *CranPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3259,49 +3258,6 @@ func (o *CranPackageUpload) SetVersionOrig(v string) { o.VersionOrig = &v } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *CranPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CranPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *CranPackageUpload) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *CranPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *CranPackageUpload) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *CranPackageUpload) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *CranPackageUpload) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3374,6 +3330,9 @@ func (o CranPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.DisplayName) { toSerialize["display_name"] = o.DisplayName } + if !IsNil(o.DisplaySource) { + toSerialize["display_source"] = o.DisplaySource + } if o.Distro.IsSet() { toSerialize["distro"] = o.Distro.Get() } @@ -3431,9 +3390,6 @@ func (o CranPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3611,9 +3567,6 @@ func (o CranPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3649,6 +3602,7 @@ func (o *CranPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "dependencies_url") delete(additionalProperties, "description") delete(additionalProperties, "display_name") + delete(additionalProperties, "display_source") delete(additionalProperties, "distro") delete(additionalProperties, "distro_version") delete(additionalProperties, "downloads") @@ -3668,7 +3622,6 @@ func (o *CranPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3728,7 +3681,6 @@ func (o *CranPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") - delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_cran_package_upload_request.go b/model_cran_package_upload_request.go index 3dfce7d2..d63b32dc 100644 --- a/model_cran_package_upload_request.go +++ b/model_cran_package_upload_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -23,8 +23,6 @@ var _ MappedNullable = &CranPackageUploadRequest{} type CranPackageUploadRequest struct { // Binary package uploads for macOS should specify the architecture they were built for. Architecture *string `json:"architecture,omitempty"` - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` // The primary file for the package. PackageFile string `json:"package_file"` // Binary package uploads should specify the version of R they were built for. @@ -32,8 +30,7 @@ type CranPackageUploadRequest struct { // 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. Republish *bool `json:"republish,omitempty"` // A comma-separated values list of tags to add to the package. - Tags NullableString `json:"tags,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + Tags NullableString `json:"tags,omitempty"` AdditionalProperties map[string]interface{} } @@ -89,38 +86,6 @@ func (o *CranPackageUploadRequest) SetArchitecture(v string) { o.Architecture = &v } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *CranPackageUploadRequest) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CranPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *CranPackageUploadRequest) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *CranPackageUploadRequest) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetPackageFile returns the PackageFile field value func (o *CranPackageUploadRequest) GetPackageFile() string { if o == nil { @@ -263,49 +228,6 @@ func (o *CranPackageUploadRequest) UnsetTags() { o.Tags.Unset() } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *CranPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CranPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *CranPackageUploadRequest) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *CranPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *CranPackageUploadRequest) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *CranPackageUploadRequest) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - func (o CranPackageUploadRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -319,9 +241,6 @@ func (o CranPackageUploadRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Architecture) { toSerialize["architecture"] = o.Architecture } - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } toSerialize["package_file"] = o.PackageFile if o.RVersion.IsSet() { toSerialize["r_version"] = o.RVersion.Get() @@ -332,9 +251,6 @@ func (o CranPackageUploadRequest) ToMap() (map[string]interface{}, error) { if o.Tags.IsSet() { toSerialize["tags"] = o.Tags.Get() } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -379,12 +295,10 @@ func (o *CranPackageUploadRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "architecture") - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "package_file") delete(additionalProperties, "r_version") delete(additionalProperties, "republish") delete(additionalProperties, "tags") - delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_cran_upstream.go b/model_cran_upstream.go index 1e3e7ab1..c91bed2a 100644 --- a/model_cran_upstream.go +++ b/model_cran_upstream.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_cran_upstream_request.go b/model_cran_upstream_request.go index 379c6474..c330e86b 100644 --- a/model_cran_upstream_request.go +++ b/model_cran_upstream_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_cran_upstream_request_patch.go b/model_cran_upstream_request_patch.go index 591acb95..8b794228 100644 --- a/model_cran_upstream_request_patch.go +++ b/model_cran_upstream_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_dart_package_upload.go b/model_dart_package_upload.go index 8d2ad5f4..0ab7e770 100644 --- a/model_dart_package_upload.go +++ b/model_dart_package_upload.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -31,8 +31,10 @@ type DartPackageUpload struct { DependenciesChecksumMd5 NullableString `json:"dependencies_checksum_md5,omitempty"` DependenciesUrl *string `json:"dependencies_url,omitempty"` // A textual description of this package. - Description NullableString `json:"description,omitempty"` - DisplayName *string `json:"display_name,omitempty"` + Description NullableString `json:"description,omitempty"` + DisplayName *string `json:"display_name,omitempty"` + // Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + DisplaySource *string `json:"display_source,omitempty"` Distro NullableDistribution `json:"distro,omitempty"` DistroVersion *DistributionVersion `json:"distro_version,omitempty"` Downloads *int64 `json:"downloads,omitempty"` @@ -49,25 +51,23 @@ type DartPackageUpload struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The name of this package. @@ -141,10 +141,9 @@ type DartPackageUpload struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -520,6 +519,38 @@ func (o *DartPackageUpload) SetDisplayName(v string) { o.DisplayName = &v } +// GetDisplaySource returns the DisplaySource field value if set, zero value otherwise. +func (o *DartPackageUpload) GetDisplaySource() string { + if o == nil || IsNil(o.DisplaySource) { + var ret string + return ret + } + return *o.DisplaySource +} + +// GetDisplaySourceOk returns a tuple with the DisplaySource field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DartPackageUpload) GetDisplaySourceOk() (*string, bool) { + if o == nil || IsNil(o.DisplaySource) { + return nil, false + } + return o.DisplaySource, true +} + +// HasDisplaySource returns a boolean if a field has been set. +func (o *DartPackageUpload) HasDisplaySource() bool { + if o != nil && !IsNil(o.DisplaySource) { + return true + } + + return false +} + +// SetDisplaySource gets a reference to the given string and assigns it to the DisplaySource field. +func (o *DartPackageUpload) SetDisplaySource(v string) { + o.DisplaySource = &v +} + // GetDistro returns the Distro field value if set, zero value otherwise (both if not set or set to explicit null). func (o *DartPackageUpload) GetDistro() Distribution { if o == nil || IsNil(o.Distro.Get()) { @@ -1161,38 +1192,6 @@ func (o *DartPackageUpload) SetIsHidden(v bool) { o.IsHidden = &v } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *DartPackageUpload) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DartPackageUpload) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *DartPackageUpload) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *DartPackageUpload) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *DartPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3214,49 +3213,6 @@ func (o *DartPackageUpload) SetVersionOrig(v string) { o.VersionOrig = &v } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DartPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DartPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *DartPackageUpload) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *DartPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *DartPackageUpload) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *DartPackageUpload) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *DartPackageUpload) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3329,6 +3285,9 @@ func (o DartPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.DisplayName) { toSerialize["display_name"] = o.DisplayName } + if !IsNil(o.DisplaySource) { + toSerialize["display_source"] = o.DisplaySource + } if o.Distro.IsSet() { toSerialize["distro"] = o.Distro.Get() } @@ -3386,9 +3345,6 @@ func (o DartPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3563,9 +3519,6 @@ func (o DartPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3601,6 +3554,7 @@ func (o *DartPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "dependencies_url") delete(additionalProperties, "description") delete(additionalProperties, "display_name") + delete(additionalProperties, "display_source") delete(additionalProperties, "distro") delete(additionalProperties, "distro_version") delete(additionalProperties, "downloads") @@ -3620,7 +3574,6 @@ func (o *DartPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3679,7 +3632,6 @@ func (o *DartPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") - delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_dart_package_upload_request.go b/model_dart_package_upload_request.go index 96d2559a..2c431498 100644 --- a/model_dart_package_upload_request.go +++ b/model_dart_package_upload_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -21,15 +21,12 @@ var _ MappedNullable = &DartPackageUploadRequest{} // DartPackageUploadRequest struct for DartPackageUploadRequest type DartPackageUploadRequest struct { - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` // The primary file for the package. PackageFile string `json:"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. Republish *bool `json:"republish,omitempty"` // A comma-separated values list of tags to add to the package. - Tags NullableString `json:"tags,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + Tags NullableString `json:"tags,omitempty"` AdditionalProperties map[string]interface{} } @@ -53,38 +50,6 @@ func NewDartPackageUploadRequestWithDefaults() *DartPackageUploadRequest { return &this } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *DartPackageUploadRequest) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DartPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *DartPackageUploadRequest) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *DartPackageUploadRequest) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetPackageFile returns the PackageFile field value func (o *DartPackageUploadRequest) GetPackageFile() string { if o == nil { @@ -184,49 +149,6 @@ func (o *DartPackageUploadRequest) UnsetTags() { o.Tags.Unset() } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DartPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DartPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *DartPackageUploadRequest) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *DartPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *DartPackageUploadRequest) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *DartPackageUploadRequest) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - func (o DartPackageUploadRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -237,9 +159,6 @@ func (o DartPackageUploadRequest) MarshalJSON() ([]byte, error) { func (o DartPackageUploadRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } toSerialize["package_file"] = o.PackageFile if !IsNil(o.Republish) { toSerialize["republish"] = o.Republish @@ -247,9 +166,6 @@ func (o DartPackageUploadRequest) ToMap() (map[string]interface{}, error) { if o.Tags.IsSet() { toSerialize["tags"] = o.Tags.Get() } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -293,11 +209,9 @@ func (o *DartPackageUploadRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "package_file") delete(additionalProperties, "republish") delete(additionalProperties, "tags") - delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_dart_upstream.go b/model_dart_upstream.go index 8a4905b4..aa204002 100644 --- a/model_dart_upstream.go +++ b/model_dart_upstream.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_dart_upstream_request.go b/model_dart_upstream_request.go index b6cec573..d75e63c8 100644 --- a/model_dart_upstream_request.go +++ b/model_dart_upstream_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_dart_upstream_request_patch.go b/model_dart_upstream_request_patch.go index 062047ad..79759cfe 100644 --- a/model_dart_upstream_request_patch.go +++ b/model_dart_upstream_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_deb_package_upload.go b/model_deb_package_upload.go index 70e30def..08b8f423 100644 --- a/model_deb_package_upload.go +++ b/model_deb_package_upload.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -31,8 +31,10 @@ type DebPackageUpload struct { DependenciesChecksumMd5 NullableString `json:"dependencies_checksum_md5,omitempty"` DependenciesUrl *string `json:"dependencies_url,omitempty"` // A textual description of this package. - Description NullableString `json:"description,omitempty"` - DisplayName *string `json:"display_name,omitempty"` + Description NullableString `json:"description,omitempty"` + DisplayName *string `json:"display_name,omitempty"` + // Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + DisplaySource *string `json:"display_source,omitempty"` Distro NullableDistribution `json:"distro,omitempty"` DistroVersion *DistributionVersion `json:"distro_version,omitempty"` Downloads *int64 `json:"downloads,omitempty"` @@ -49,25 +51,23 @@ type DebPackageUpload struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The name of this package. @@ -141,10 +141,9 @@ type DebPackageUpload struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -520,6 +519,38 @@ func (o *DebPackageUpload) SetDisplayName(v string) { o.DisplayName = &v } +// GetDisplaySource returns the DisplaySource field value if set, zero value otherwise. +func (o *DebPackageUpload) GetDisplaySource() string { + if o == nil || IsNil(o.DisplaySource) { + var ret string + return ret + } + return *o.DisplaySource +} + +// GetDisplaySourceOk returns a tuple with the DisplaySource field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DebPackageUpload) GetDisplaySourceOk() (*string, bool) { + if o == nil || IsNil(o.DisplaySource) { + return nil, false + } + return o.DisplaySource, true +} + +// HasDisplaySource returns a boolean if a field has been set. +func (o *DebPackageUpload) HasDisplaySource() bool { + if o != nil && !IsNil(o.DisplaySource) { + return true + } + + return false +} + +// SetDisplaySource gets a reference to the given string and assigns it to the DisplaySource field. +func (o *DebPackageUpload) SetDisplaySource(v string) { + o.DisplaySource = &v +} + // GetDistro returns the Distro field value if set, zero value otherwise (both if not set or set to explicit null). func (o *DebPackageUpload) GetDistro() Distribution { if o == nil || IsNil(o.Distro.Get()) { @@ -1161,38 +1192,6 @@ func (o *DebPackageUpload) SetIsHidden(v bool) { o.IsHidden = &v } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *DebPackageUpload) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DebPackageUpload) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *DebPackageUpload) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *DebPackageUpload) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *DebPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3214,49 +3213,6 @@ func (o *DebPackageUpload) SetVersionOrig(v string) { o.VersionOrig = &v } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DebPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DebPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *DebPackageUpload) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *DebPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *DebPackageUpload) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *DebPackageUpload) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *DebPackageUpload) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3329,6 +3285,9 @@ func (o DebPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.DisplayName) { toSerialize["display_name"] = o.DisplayName } + if !IsNil(o.DisplaySource) { + toSerialize["display_source"] = o.DisplaySource + } if o.Distro.IsSet() { toSerialize["distro"] = o.Distro.Get() } @@ -3386,9 +3345,6 @@ func (o DebPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3563,9 +3519,6 @@ func (o DebPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3601,6 +3554,7 @@ func (o *DebPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "dependencies_url") delete(additionalProperties, "description") delete(additionalProperties, "display_name") + delete(additionalProperties, "display_source") delete(additionalProperties, "distro") delete(additionalProperties, "distro_version") delete(additionalProperties, "downloads") @@ -3620,7 +3574,6 @@ func (o *DebPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3679,7 +3632,6 @@ func (o *DebPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") - delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_deb_package_upload_request.go b/model_deb_package_upload_request.go index a3c2cf4e..b280df78 100644 --- a/model_deb_package_upload_request.go +++ b/model_deb_package_upload_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -27,8 +27,6 @@ type DebPackageUploadRequest struct { Component *string `json:"component,omitempty" validate:"regexp=^[-_.\\\\w]+$"` // The distribution to store the package for. Distribution string `json:"distribution"` - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` // The primary file for the package. PackageFile string `json:"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. @@ -36,8 +34,7 @@ type DebPackageUploadRequest struct { // The sources archive containing the source code for the binary SourcesFile NullableString `json:"sources_file,omitempty"` // A comma-separated values list of tags to add to the package. - Tags NullableString `json:"tags,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + Tags NullableString `json:"tags,omitempty"` AdditionalProperties map[string]interface{} } @@ -165,38 +162,6 @@ func (o *DebPackageUploadRequest) SetDistribution(v string) { o.Distribution = v } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *DebPackageUploadRequest) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DebPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *DebPackageUploadRequest) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *DebPackageUploadRequest) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetPackageFile returns the PackageFile field value func (o *DebPackageUploadRequest) GetPackageFile() string { if o == nil { @@ -339,49 +304,6 @@ func (o *DebPackageUploadRequest) UnsetTags() { o.Tags.Unset() } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DebPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DebPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *DebPackageUploadRequest) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *DebPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *DebPackageUploadRequest) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *DebPackageUploadRequest) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - func (o DebPackageUploadRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -399,9 +321,6 @@ func (o DebPackageUploadRequest) ToMap() (map[string]interface{}, error) { toSerialize["component"] = o.Component } toSerialize["distribution"] = o.Distribution - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } toSerialize["package_file"] = o.PackageFile if !IsNil(o.Republish) { toSerialize["republish"] = o.Republish @@ -412,9 +331,6 @@ func (o DebPackageUploadRequest) ToMap() (map[string]interface{}, error) { if o.Tags.IsSet() { toSerialize["tags"] = o.Tags.Get() } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -462,12 +378,10 @@ func (o *DebPackageUploadRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "changes_file") delete(additionalProperties, "component") delete(additionalProperties, "distribution") - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "package_file") delete(additionalProperties, "republish") delete(additionalProperties, "sources_file") delete(additionalProperties, "tags") - delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_deb_upstream.go b/model_deb_upstream.go index bc74554f..455791d3 100644 --- a/model_deb_upstream.go +++ b/model_deb_upstream.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_deb_upstream_request.go b/model_deb_upstream_request.go index c8e886b6..1c9105f4 100644 --- a/model_deb_upstream_request.go +++ b/model_deb_upstream_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_deb_upstream_request_patch.go b/model_deb_upstream_request_patch.go index 244ebbef..19e67afa 100644 --- a/model_deb_upstream_request_patch.go +++ b/model_deb_upstream_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_distribution.go b/model_distribution.go index 2aa27930..6928596f 100644 --- a/model_distribution.go +++ b/model_distribution.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_distribution_full.go b/model_distribution_full.go index 43550e5a..91dbe5b2 100644 --- a/model_distribution_full.go +++ b/model_distribution_full.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_distribution_version.go b/model_distribution_version.go index 2dc35245..4e34127d 100644 --- a/model_distribution_version.go +++ b/model_distribution_version.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_docker_package_upload.go b/model_docker_package_upload.go index 4537eae9..3eb0ce99 100644 --- a/model_docker_package_upload.go +++ b/model_docker_package_upload.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -31,8 +31,10 @@ type DockerPackageUpload struct { DependenciesChecksumMd5 NullableString `json:"dependencies_checksum_md5,omitempty"` DependenciesUrl *string `json:"dependencies_url,omitempty"` // A textual description of this package. - Description NullableString `json:"description,omitempty"` - DisplayName *string `json:"display_name,omitempty"` + Description NullableString `json:"description,omitempty"` + DisplayName *string `json:"display_name,omitempty"` + // Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + DisplaySource *string `json:"display_source,omitempty"` Distro NullableDistribution `json:"distro,omitempty"` DistroVersion *DistributionVersion `json:"distro_version,omitempty"` Downloads *int64 `json:"downloads,omitempty"` @@ -49,25 +51,23 @@ type DockerPackageUpload struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The name of this package. @@ -141,10 +141,9 @@ type DockerPackageUpload struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -520,6 +519,38 @@ func (o *DockerPackageUpload) SetDisplayName(v string) { o.DisplayName = &v } +// GetDisplaySource returns the DisplaySource field value if set, zero value otherwise. +func (o *DockerPackageUpload) GetDisplaySource() string { + if o == nil || IsNil(o.DisplaySource) { + var ret string + return ret + } + return *o.DisplaySource +} + +// GetDisplaySourceOk returns a tuple with the DisplaySource field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DockerPackageUpload) GetDisplaySourceOk() (*string, bool) { + if o == nil || IsNil(o.DisplaySource) { + return nil, false + } + return o.DisplaySource, true +} + +// HasDisplaySource returns a boolean if a field has been set. +func (o *DockerPackageUpload) HasDisplaySource() bool { + if o != nil && !IsNil(o.DisplaySource) { + return true + } + + return false +} + +// SetDisplaySource gets a reference to the given string and assigns it to the DisplaySource field. +func (o *DockerPackageUpload) SetDisplaySource(v string) { + o.DisplaySource = &v +} + // GetDistro returns the Distro field value if set, zero value otherwise (both if not set or set to explicit null). func (o *DockerPackageUpload) GetDistro() Distribution { if o == nil || IsNil(o.Distro.Get()) { @@ -1161,38 +1192,6 @@ func (o *DockerPackageUpload) SetIsHidden(v bool) { o.IsHidden = &v } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *DockerPackageUpload) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DockerPackageUpload) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *DockerPackageUpload) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *DockerPackageUpload) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *DockerPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3214,49 +3213,6 @@ func (o *DockerPackageUpload) SetVersionOrig(v string) { o.VersionOrig = &v } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DockerPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DockerPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *DockerPackageUpload) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *DockerPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *DockerPackageUpload) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *DockerPackageUpload) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *DockerPackageUpload) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3329,6 +3285,9 @@ func (o DockerPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.DisplayName) { toSerialize["display_name"] = o.DisplayName } + if !IsNil(o.DisplaySource) { + toSerialize["display_source"] = o.DisplaySource + } if o.Distro.IsSet() { toSerialize["distro"] = o.Distro.Get() } @@ -3386,9 +3345,6 @@ func (o DockerPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3563,9 +3519,6 @@ func (o DockerPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3601,6 +3554,7 @@ func (o *DockerPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "dependencies_url") delete(additionalProperties, "description") delete(additionalProperties, "display_name") + delete(additionalProperties, "display_source") delete(additionalProperties, "distro") delete(additionalProperties, "distro_version") delete(additionalProperties, "downloads") @@ -3620,7 +3574,6 @@ func (o *DockerPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3679,7 +3632,6 @@ func (o *DockerPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") - delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_docker_package_upload_request.go b/model_docker_package_upload_request.go index c5052a45..d9f1fa25 100644 --- a/model_docker_package_upload_request.go +++ b/model_docker_package_upload_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -21,15 +21,12 @@ var _ MappedNullable = &DockerPackageUploadRequest{} // DockerPackageUploadRequest struct for DockerPackageUploadRequest type DockerPackageUploadRequest struct { - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` // The primary file for the package. PackageFile string `json:"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. Republish *bool `json:"republish,omitempty"` // A comma-separated values list of tags to add to the package. - Tags NullableString `json:"tags,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + Tags NullableString `json:"tags,omitempty"` AdditionalProperties map[string]interface{} } @@ -53,38 +50,6 @@ func NewDockerPackageUploadRequestWithDefaults() *DockerPackageUploadRequest { return &this } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *DockerPackageUploadRequest) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DockerPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *DockerPackageUploadRequest) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *DockerPackageUploadRequest) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetPackageFile returns the PackageFile field value func (o *DockerPackageUploadRequest) GetPackageFile() string { if o == nil { @@ -184,49 +149,6 @@ func (o *DockerPackageUploadRequest) UnsetTags() { o.Tags.Unset() } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DockerPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DockerPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *DockerPackageUploadRequest) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *DockerPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *DockerPackageUploadRequest) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *DockerPackageUploadRequest) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - func (o DockerPackageUploadRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -237,9 +159,6 @@ func (o DockerPackageUploadRequest) MarshalJSON() ([]byte, error) { func (o DockerPackageUploadRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } toSerialize["package_file"] = o.PackageFile if !IsNil(o.Republish) { toSerialize["republish"] = o.Republish @@ -247,9 +166,6 @@ func (o DockerPackageUploadRequest) ToMap() (map[string]interface{}, error) { if o.Tags.IsSet() { toSerialize["tags"] = o.Tags.Get() } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -293,11 +209,9 @@ func (o *DockerPackageUploadRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "package_file") delete(additionalProperties, "republish") delete(additionalProperties, "tags") - delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_docker_upstream.go b/model_docker_upstream.go index ee51f7e8..08d6575e 100644 --- a/model_docker_upstream.go +++ b/model_docker_upstream.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_docker_upstream_request.go b/model_docker_upstream_request.go index 7b203947..afad9fb5 100644 --- a/model_docker_upstream_request.go +++ b/model_docker_upstream_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_docker_upstream_request_patch.go b/model_docker_upstream_request_patch.go index a5483dbd..b67a2db7 100644 --- a/model_docker_upstream_request_patch.go +++ b/model_docker_upstream_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_dynamic_mapping.go b/model_dynamic_mapping.go index 99ad9e15..3eae29d7 100644 --- a/model_dynamic_mapping.go +++ b/model_dynamic_mapping.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_entitlement_usage_metrics.go b/model_entitlement_usage_metrics.go index 22c47381..4ec841fd 100644 --- a/model_entitlement_usage_metrics.go +++ b/model_entitlement_usage_metrics.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_error_detail.go b/model_error_detail.go index 1d049fd0..d25f321a 100644 --- a/model_error_detail.go +++ b/model_error_detail.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_eula.go b/model_eula.go index 9b28d22e..57f298cb 100644 --- a/model_eula.go +++ b/model_eula.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_format.go b/model_format.go index ab1f7dea..74c519a0 100644 --- a/model_format.go +++ b/model_format.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_format_support.go b/model_format_support.go index 37d21b56..b546ed88 100644 --- a/model_format_support.go +++ b/model_format_support.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_format_support_upstream.go b/model_format_support_upstream.go index 958049e4..4d4bd5a2 100644 --- a/model_format_support_upstream.go +++ b/model_format_support_upstream.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_generic_package_upload.go b/model_generic_package_upload.go index c8d94c2e..078ab819 100644 --- a/model_generic_package_upload.go +++ b/model_generic_package_upload.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -31,8 +31,10 @@ type GenericPackageUpload struct { DependenciesChecksumMd5 NullableString `json:"dependencies_checksum_md5,omitempty"` DependenciesUrl *string `json:"dependencies_url,omitempty"` // A textual description of this package. - Description NullableString `json:"description,omitempty"` - DisplayName *string `json:"display_name,omitempty"` + Description NullableString `json:"description,omitempty"` + DisplayName *string `json:"display_name,omitempty"` + // Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + DisplaySource *string `json:"display_source,omitempty"` Distro NullableDistribution `json:"distro,omitempty"` DistroVersion *DistributionVersion `json:"distro_version,omitempty"` Downloads *int64 `json:"downloads,omitempty"` @@ -49,25 +51,23 @@ type GenericPackageUpload struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The name of this package. @@ -141,10 +141,9 @@ type GenericPackageUpload struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -520,6 +519,38 @@ func (o *GenericPackageUpload) SetDisplayName(v string) { o.DisplayName = &v } +// GetDisplaySource returns the DisplaySource field value if set, zero value otherwise. +func (o *GenericPackageUpload) GetDisplaySource() string { + if o == nil || IsNil(o.DisplaySource) { + var ret string + return ret + } + return *o.DisplaySource +} + +// GetDisplaySourceOk returns a tuple with the DisplaySource field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GenericPackageUpload) GetDisplaySourceOk() (*string, bool) { + if o == nil || IsNil(o.DisplaySource) { + return nil, false + } + return o.DisplaySource, true +} + +// HasDisplaySource returns a boolean if a field has been set. +func (o *GenericPackageUpload) HasDisplaySource() bool { + if o != nil && !IsNil(o.DisplaySource) { + return true + } + + return false +} + +// SetDisplaySource gets a reference to the given string and assigns it to the DisplaySource field. +func (o *GenericPackageUpload) SetDisplaySource(v string) { + o.DisplaySource = &v +} + // GetDistro returns the Distro field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GenericPackageUpload) GetDistro() Distribution { if o == nil || IsNil(o.Distro.Get()) { @@ -1161,38 +1192,6 @@ func (o *GenericPackageUpload) SetIsHidden(v bool) { o.IsHidden = &v } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *GenericPackageUpload) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GenericPackageUpload) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *GenericPackageUpload) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *GenericPackageUpload) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *GenericPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3214,49 +3213,6 @@ func (o *GenericPackageUpload) SetVersionOrig(v string) { o.VersionOrig = &v } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *GenericPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *GenericPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *GenericPackageUpload) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *GenericPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *GenericPackageUpload) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *GenericPackageUpload) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *GenericPackageUpload) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3329,6 +3285,9 @@ func (o GenericPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.DisplayName) { toSerialize["display_name"] = o.DisplayName } + if !IsNil(o.DisplaySource) { + toSerialize["display_source"] = o.DisplaySource + } if o.Distro.IsSet() { toSerialize["distro"] = o.Distro.Get() } @@ -3386,9 +3345,6 @@ func (o GenericPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3563,9 +3519,6 @@ func (o GenericPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3601,6 +3554,7 @@ func (o *GenericPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "dependencies_url") delete(additionalProperties, "description") delete(additionalProperties, "display_name") + delete(additionalProperties, "display_source") delete(additionalProperties, "distro") delete(additionalProperties, "distro_version") delete(additionalProperties, "downloads") @@ -3620,7 +3574,6 @@ func (o *GenericPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3679,7 +3632,6 @@ func (o *GenericPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") - delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_generic_package_upload_request.go b/model_generic_package_upload_request.go index 87927f35..51075d8f 100644 --- a/model_generic_package_upload_request.go +++ b/model_generic_package_upload_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -23,8 +23,6 @@ var _ MappedNullable = &GenericPackageUploadRequest{} type GenericPackageUploadRequest struct { // The full filepath of the package including filename. Filepath string `json:"filepath"` - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` // The name of this package. Name NullableString `json:"name,omitempty"` // The primary file for the package. @@ -34,8 +32,7 @@ type GenericPackageUploadRequest struct { // A comma-separated values list of tags to add to the package. Tags NullableString `json:"tags,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + Version NullableString `json:"version,omitempty"` AdditionalProperties map[string]interface{} } @@ -84,38 +81,6 @@ func (o *GenericPackageUploadRequest) SetFilepath(v string) { o.Filepath = v } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *GenericPackageUploadRequest) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GenericPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *GenericPackageUploadRequest) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *GenericPackageUploadRequest) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GenericPackageUploadRequest) GetName() string { if o == nil || IsNil(o.Name.Get()) { @@ -301,49 +266,6 @@ func (o *GenericPackageUploadRequest) UnsetVersion() { o.Version.Unset() } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *GenericPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *GenericPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *GenericPackageUploadRequest) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *GenericPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *GenericPackageUploadRequest) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *GenericPackageUploadRequest) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - func (o GenericPackageUploadRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -355,9 +277,6 @@ func (o GenericPackageUploadRequest) MarshalJSON() ([]byte, error) { func (o GenericPackageUploadRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["filepath"] = o.Filepath - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } if o.Name.IsSet() { toSerialize["name"] = o.Name.Get() } @@ -371,9 +290,6 @@ func (o GenericPackageUploadRequest) ToMap() (map[string]interface{}, error) { if o.Version.IsSet() { toSerialize["version"] = o.Version.Get() } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -419,13 +335,11 @@ func (o *GenericPackageUploadRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "filepath") - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "name") delete(additionalProperties, "package_file") delete(additionalProperties, "republish") delete(additionalProperties, "tags") delete(additionalProperties, "version") - delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_generic_upstream.go b/model_generic_upstream.go index c2db9922..711ab700 100644 --- a/model_generic_upstream.go +++ b/model_generic_upstream.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_generic_upstream_request.go b/model_generic_upstream_request.go index 6bcc3caa..01bfdde1 100644 --- a/model_generic_upstream_request.go +++ b/model_generic_upstream_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_generic_upstream_request_patch.go b/model_generic_upstream_request_patch.go index 62c12d73..88ce5516 100644 --- a/model_generic_upstream_request_patch.go +++ b/model_generic_upstream_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_geo_ip_location.go b/model_geo_ip_location.go index d01fc3c7..39a1ca52 100644 --- a/model_geo_ip_location.go +++ b/model_geo_ip_location.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_go_package_upload.go b/model_go_package_upload.go index 3669661b..ecfa746d 100644 --- a/model_go_package_upload.go +++ b/model_go_package_upload.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -31,8 +31,10 @@ type GoPackageUpload struct { DependenciesChecksumMd5 NullableString `json:"dependencies_checksum_md5,omitempty"` DependenciesUrl *string `json:"dependencies_url,omitempty"` // A textual description of this package. - Description NullableString `json:"description,omitempty"` - DisplayName *string `json:"display_name,omitempty"` + Description NullableString `json:"description,omitempty"` + DisplayName *string `json:"display_name,omitempty"` + // Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + DisplaySource *string `json:"display_source,omitempty"` Distro NullableDistribution `json:"distro,omitempty"` DistroVersion *DistributionVersion `json:"distro_version,omitempty"` Downloads *int64 `json:"downloads,omitempty"` @@ -49,25 +51,23 @@ type GoPackageUpload struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The name of this package. @@ -141,10 +141,9 @@ type GoPackageUpload struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -520,6 +519,38 @@ func (o *GoPackageUpload) SetDisplayName(v string) { o.DisplayName = &v } +// GetDisplaySource returns the DisplaySource field value if set, zero value otherwise. +func (o *GoPackageUpload) GetDisplaySource() string { + if o == nil || IsNil(o.DisplaySource) { + var ret string + return ret + } + return *o.DisplaySource +} + +// GetDisplaySourceOk returns a tuple with the DisplaySource field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GoPackageUpload) GetDisplaySourceOk() (*string, bool) { + if o == nil || IsNil(o.DisplaySource) { + return nil, false + } + return o.DisplaySource, true +} + +// HasDisplaySource returns a boolean if a field has been set. +func (o *GoPackageUpload) HasDisplaySource() bool { + if o != nil && !IsNil(o.DisplaySource) { + return true + } + + return false +} + +// SetDisplaySource gets a reference to the given string and assigns it to the DisplaySource field. +func (o *GoPackageUpload) SetDisplaySource(v string) { + o.DisplaySource = &v +} + // GetDistro returns the Distro field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GoPackageUpload) GetDistro() Distribution { if o == nil || IsNil(o.Distro.Get()) { @@ -1161,38 +1192,6 @@ func (o *GoPackageUpload) SetIsHidden(v bool) { o.IsHidden = &v } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *GoPackageUpload) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GoPackageUpload) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *GoPackageUpload) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *GoPackageUpload) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *GoPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3214,49 +3213,6 @@ func (o *GoPackageUpload) SetVersionOrig(v string) { o.VersionOrig = &v } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *GoPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *GoPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *GoPackageUpload) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *GoPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *GoPackageUpload) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *GoPackageUpload) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *GoPackageUpload) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3329,6 +3285,9 @@ func (o GoPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.DisplayName) { toSerialize["display_name"] = o.DisplayName } + if !IsNil(o.DisplaySource) { + toSerialize["display_source"] = o.DisplaySource + } if o.Distro.IsSet() { toSerialize["distro"] = o.Distro.Get() } @@ -3386,9 +3345,6 @@ func (o GoPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3563,9 +3519,6 @@ func (o GoPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3601,6 +3554,7 @@ func (o *GoPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "dependencies_url") delete(additionalProperties, "description") delete(additionalProperties, "display_name") + delete(additionalProperties, "display_source") delete(additionalProperties, "distro") delete(additionalProperties, "distro_version") delete(additionalProperties, "downloads") @@ -3620,7 +3574,6 @@ func (o *GoPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3679,7 +3632,6 @@ func (o *GoPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") - delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_go_package_upload_request.go b/model_go_package_upload_request.go index 088d28e5..ce0fbe1a 100644 --- a/model_go_package_upload_request.go +++ b/model_go_package_upload_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -21,15 +21,12 @@ var _ MappedNullable = &GoPackageUploadRequest{} // GoPackageUploadRequest struct for GoPackageUploadRequest type GoPackageUploadRequest struct { - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` // The primary file for the package. PackageFile string `json:"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. Republish *bool `json:"republish,omitempty"` // A comma-separated values list of tags to add to the package. - Tags NullableString `json:"tags,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + Tags NullableString `json:"tags,omitempty"` AdditionalProperties map[string]interface{} } @@ -53,38 +50,6 @@ func NewGoPackageUploadRequestWithDefaults() *GoPackageUploadRequest { return &this } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *GoPackageUploadRequest) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GoPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *GoPackageUploadRequest) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *GoPackageUploadRequest) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetPackageFile returns the PackageFile field value func (o *GoPackageUploadRequest) GetPackageFile() string { if o == nil { @@ -184,49 +149,6 @@ func (o *GoPackageUploadRequest) UnsetTags() { o.Tags.Unset() } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *GoPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *GoPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *GoPackageUploadRequest) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *GoPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *GoPackageUploadRequest) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *GoPackageUploadRequest) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - func (o GoPackageUploadRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -237,9 +159,6 @@ func (o GoPackageUploadRequest) MarshalJSON() ([]byte, error) { func (o GoPackageUploadRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } toSerialize["package_file"] = o.PackageFile if !IsNil(o.Republish) { toSerialize["republish"] = o.Republish @@ -247,9 +166,6 @@ func (o GoPackageUploadRequest) ToMap() (map[string]interface{}, error) { if o.Tags.IsSet() { toSerialize["tags"] = o.Tags.Get() } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -293,11 +209,9 @@ func (o *GoPackageUploadRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "package_file") delete(additionalProperties, "republish") delete(additionalProperties, "tags") - delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_go_upstream.go b/model_go_upstream.go index 921a1c50..a7b50757 100644 --- a/model_go_upstream.go +++ b/model_go_upstream.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_go_upstream_request.go b/model_go_upstream_request.go index 3743f3db..26335150 100644 --- a/model_go_upstream_request.go +++ b/model_go_upstream_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_go_upstream_request_patch.go b/model_go_upstream_request_patch.go index 58728866..65144409 100644 --- a/model_go_upstream_request_patch.go +++ b/model_go_upstream_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_helm_package_upload.go b/model_helm_package_upload.go index 64f42877..d5fbd1db 100644 --- a/model_helm_package_upload.go +++ b/model_helm_package_upload.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -31,8 +31,10 @@ type HelmPackageUpload struct { DependenciesChecksumMd5 NullableString `json:"dependencies_checksum_md5,omitempty"` DependenciesUrl *string `json:"dependencies_url,omitempty"` // A textual description of this package. - Description NullableString `json:"description,omitempty"` - DisplayName *string `json:"display_name,omitempty"` + Description NullableString `json:"description,omitempty"` + DisplayName *string `json:"display_name,omitempty"` + // Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + DisplaySource *string `json:"display_source,omitempty"` Distro NullableDistribution `json:"distro,omitempty"` DistroVersion *DistributionVersion `json:"distro_version,omitempty"` Downloads *int64 `json:"downloads,omitempty"` @@ -49,25 +51,23 @@ type HelmPackageUpload struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The name of this package. @@ -141,10 +141,9 @@ type HelmPackageUpload struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -520,6 +519,38 @@ func (o *HelmPackageUpload) SetDisplayName(v string) { o.DisplayName = &v } +// GetDisplaySource returns the DisplaySource field value if set, zero value otherwise. +func (o *HelmPackageUpload) GetDisplaySource() string { + if o == nil || IsNil(o.DisplaySource) { + var ret string + return ret + } + return *o.DisplaySource +} + +// GetDisplaySourceOk returns a tuple with the DisplaySource field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HelmPackageUpload) GetDisplaySourceOk() (*string, bool) { + if o == nil || IsNil(o.DisplaySource) { + return nil, false + } + return o.DisplaySource, true +} + +// HasDisplaySource returns a boolean if a field has been set. +func (o *HelmPackageUpload) HasDisplaySource() bool { + if o != nil && !IsNil(o.DisplaySource) { + return true + } + + return false +} + +// SetDisplaySource gets a reference to the given string and assigns it to the DisplaySource field. +func (o *HelmPackageUpload) SetDisplaySource(v string) { + o.DisplaySource = &v +} + // GetDistro returns the Distro field value if set, zero value otherwise (both if not set or set to explicit null). func (o *HelmPackageUpload) GetDistro() Distribution { if o == nil || IsNil(o.Distro.Get()) { @@ -1161,38 +1192,6 @@ func (o *HelmPackageUpload) SetIsHidden(v bool) { o.IsHidden = &v } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *HelmPackageUpload) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HelmPackageUpload) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *HelmPackageUpload) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *HelmPackageUpload) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *HelmPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3214,49 +3213,6 @@ func (o *HelmPackageUpload) SetVersionOrig(v string) { o.VersionOrig = &v } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *HelmPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *HelmPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *HelmPackageUpload) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *HelmPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *HelmPackageUpload) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *HelmPackageUpload) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *HelmPackageUpload) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3329,6 +3285,9 @@ func (o HelmPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.DisplayName) { toSerialize["display_name"] = o.DisplayName } + if !IsNil(o.DisplaySource) { + toSerialize["display_source"] = o.DisplaySource + } if o.Distro.IsSet() { toSerialize["distro"] = o.Distro.Get() } @@ -3386,9 +3345,6 @@ func (o HelmPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3563,9 +3519,6 @@ func (o HelmPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3601,6 +3554,7 @@ func (o *HelmPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "dependencies_url") delete(additionalProperties, "description") delete(additionalProperties, "display_name") + delete(additionalProperties, "display_source") delete(additionalProperties, "distro") delete(additionalProperties, "distro_version") delete(additionalProperties, "downloads") @@ -3620,7 +3574,6 @@ func (o *HelmPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3679,7 +3632,6 @@ func (o *HelmPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") - delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_helm_package_upload_request.go b/model_helm_package_upload_request.go index a3c78d8c..8cb06e4a 100644 --- a/model_helm_package_upload_request.go +++ b/model_helm_package_upload_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -21,8 +21,6 @@ var _ MappedNullable = &HelmPackageUploadRequest{} // HelmPackageUploadRequest struct for HelmPackageUploadRequest type HelmPackageUploadRequest struct { - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` // The primary file for the package. PackageFile string `json:"package_file"` // The provenance file containing the signature for the chart. If one is not provided, it will be generated automatically. @@ -30,8 +28,7 @@ type HelmPackageUploadRequest struct { // 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. Republish *bool `json:"republish,omitempty"` // A comma-separated values list of tags to add to the package. - Tags NullableString `json:"tags,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + Tags NullableString `json:"tags,omitempty"` AdditionalProperties map[string]interface{} } @@ -55,38 +52,6 @@ func NewHelmPackageUploadRequestWithDefaults() *HelmPackageUploadRequest { return &this } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *HelmPackageUploadRequest) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HelmPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *HelmPackageUploadRequest) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *HelmPackageUploadRequest) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetPackageFile returns the PackageFile field value func (o *HelmPackageUploadRequest) GetPackageFile() string { if o == nil { @@ -229,49 +194,6 @@ func (o *HelmPackageUploadRequest) UnsetTags() { o.Tags.Unset() } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *HelmPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *HelmPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *HelmPackageUploadRequest) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *HelmPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *HelmPackageUploadRequest) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *HelmPackageUploadRequest) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - func (o HelmPackageUploadRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -282,9 +204,6 @@ func (o HelmPackageUploadRequest) MarshalJSON() ([]byte, error) { func (o HelmPackageUploadRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } toSerialize["package_file"] = o.PackageFile if o.ProvenanceFile.IsSet() { toSerialize["provenance_file"] = o.ProvenanceFile.Get() @@ -295,9 +214,6 @@ func (o HelmPackageUploadRequest) ToMap() (map[string]interface{}, error) { if o.Tags.IsSet() { toSerialize["tags"] = o.Tags.Get() } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -341,12 +257,10 @@ func (o *HelmPackageUploadRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "package_file") delete(additionalProperties, "provenance_file") delete(additionalProperties, "republish") delete(additionalProperties, "tags") - delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_helm_upstream.go b/model_helm_upstream.go index 9b5ecf32..88cc4ac7 100644 --- a/model_helm_upstream.go +++ b/model_helm_upstream.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_helm_upstream_request.go b/model_helm_upstream_request.go index 76c3c798..c75c3cf5 100644 --- a/model_helm_upstream_request.go +++ b/model_helm_upstream_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_helm_upstream_request_patch.go b/model_helm_upstream_request_patch.go index acb5c0d5..084bd3e0 100644 --- a/model_helm_upstream_request_patch.go +++ b/model_helm_upstream_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_hex_package_upload.go b/model_hex_package_upload.go index 23d7fa50..ad9a0bb9 100644 --- a/model_hex_package_upload.go +++ b/model_hex_package_upload.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -31,8 +31,10 @@ type HexPackageUpload struct { DependenciesChecksumMd5 NullableString `json:"dependencies_checksum_md5,omitempty"` DependenciesUrl *string `json:"dependencies_url,omitempty"` // A textual description of this package. - Description NullableString `json:"description,omitempty"` - DisplayName *string `json:"display_name,omitempty"` + Description NullableString `json:"description,omitempty"` + DisplayName *string `json:"display_name,omitempty"` + // Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + DisplaySource *string `json:"display_source,omitempty"` Distro NullableDistribution `json:"distro,omitempty"` DistroVersion *DistributionVersion `json:"distro_version,omitempty"` Downloads *int64 `json:"downloads,omitempty"` @@ -49,25 +51,23 @@ type HexPackageUpload struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The name of this package. @@ -141,10 +141,9 @@ type HexPackageUpload struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -520,6 +519,38 @@ func (o *HexPackageUpload) SetDisplayName(v string) { o.DisplayName = &v } +// GetDisplaySource returns the DisplaySource field value if set, zero value otherwise. +func (o *HexPackageUpload) GetDisplaySource() string { + if o == nil || IsNil(o.DisplaySource) { + var ret string + return ret + } + return *o.DisplaySource +} + +// GetDisplaySourceOk returns a tuple with the DisplaySource field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HexPackageUpload) GetDisplaySourceOk() (*string, bool) { + if o == nil || IsNil(o.DisplaySource) { + return nil, false + } + return o.DisplaySource, true +} + +// HasDisplaySource returns a boolean if a field has been set. +func (o *HexPackageUpload) HasDisplaySource() bool { + if o != nil && !IsNil(o.DisplaySource) { + return true + } + + return false +} + +// SetDisplaySource gets a reference to the given string and assigns it to the DisplaySource field. +func (o *HexPackageUpload) SetDisplaySource(v string) { + o.DisplaySource = &v +} + // GetDistro returns the Distro field value if set, zero value otherwise (both if not set or set to explicit null). func (o *HexPackageUpload) GetDistro() Distribution { if o == nil || IsNil(o.Distro.Get()) { @@ -1161,38 +1192,6 @@ func (o *HexPackageUpload) SetIsHidden(v bool) { o.IsHidden = &v } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *HexPackageUpload) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HexPackageUpload) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *HexPackageUpload) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *HexPackageUpload) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *HexPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3214,49 +3213,6 @@ func (o *HexPackageUpload) SetVersionOrig(v string) { o.VersionOrig = &v } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *HexPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *HexPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *HexPackageUpload) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *HexPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *HexPackageUpload) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *HexPackageUpload) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *HexPackageUpload) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3329,6 +3285,9 @@ func (o HexPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.DisplayName) { toSerialize["display_name"] = o.DisplayName } + if !IsNil(o.DisplaySource) { + toSerialize["display_source"] = o.DisplaySource + } if o.Distro.IsSet() { toSerialize["distro"] = o.Distro.Get() } @@ -3386,9 +3345,6 @@ func (o HexPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3563,9 +3519,6 @@ func (o HexPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3601,6 +3554,7 @@ func (o *HexPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "dependencies_url") delete(additionalProperties, "description") delete(additionalProperties, "display_name") + delete(additionalProperties, "display_source") delete(additionalProperties, "distro") delete(additionalProperties, "distro_version") delete(additionalProperties, "downloads") @@ -3620,7 +3574,6 @@ func (o *HexPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3679,7 +3632,6 @@ func (o *HexPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") - delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_hex_package_upload_request.go b/model_hex_package_upload_request.go index 9c27aefb..2e91a57d 100644 --- a/model_hex_package_upload_request.go +++ b/model_hex_package_upload_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -21,15 +21,12 @@ var _ MappedNullable = &HexPackageUploadRequest{} // HexPackageUploadRequest struct for HexPackageUploadRequest type HexPackageUploadRequest struct { - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` // The primary file for the package. PackageFile string `json:"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. Republish *bool `json:"republish,omitempty"` // A comma-separated values list of tags to add to the package. - Tags NullableString `json:"tags,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + Tags NullableString `json:"tags,omitempty"` AdditionalProperties map[string]interface{} } @@ -53,38 +50,6 @@ func NewHexPackageUploadRequestWithDefaults() *HexPackageUploadRequest { return &this } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *HexPackageUploadRequest) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HexPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *HexPackageUploadRequest) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *HexPackageUploadRequest) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetPackageFile returns the PackageFile field value func (o *HexPackageUploadRequest) GetPackageFile() string { if o == nil { @@ -184,49 +149,6 @@ func (o *HexPackageUploadRequest) UnsetTags() { o.Tags.Unset() } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *HexPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *HexPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *HexPackageUploadRequest) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *HexPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *HexPackageUploadRequest) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *HexPackageUploadRequest) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - func (o HexPackageUploadRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -237,9 +159,6 @@ func (o HexPackageUploadRequest) MarshalJSON() ([]byte, error) { func (o HexPackageUploadRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } toSerialize["package_file"] = o.PackageFile if !IsNil(o.Republish) { toSerialize["republish"] = o.Republish @@ -247,9 +166,6 @@ func (o HexPackageUploadRequest) ToMap() (map[string]interface{}, error) { if o.Tags.IsSet() { toSerialize["tags"] = o.Tags.Get() } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -293,11 +209,9 @@ func (o *HexPackageUploadRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "package_file") delete(additionalProperties, "republish") delete(additionalProperties, "tags") - delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_hex_upstream.go b/model_hex_upstream.go index 89ebf2b3..b2729c2d 100644 --- a/model_hex_upstream.go +++ b/model_hex_upstream.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_hex_upstream_request.go b/model_hex_upstream_request.go index 28ab23ad..af17d0ec 100644 --- a/model_hex_upstream_request.go +++ b/model_hex_upstream_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_hex_upstream_request_patch.go b/model_hex_upstream_request_patch.go index 4b743963..b4c62a21 100644 --- a/model_hex_upstream_request_patch.go +++ b/model_hex_upstream_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_history.go b/model_history.go index 2f7ef9d0..9597c924 100644 --- a/model_history.go +++ b/model_history.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_history_fieldset.go b/model_history_fieldset.go index c419f682..71f37491 100644 --- a/model_history_fieldset.go +++ b/model_history_fieldset.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_history_fieldset_raw.go b/model_history_fieldset_raw.go index b644b100..83f43bce 100644 --- a/model_history_fieldset_raw.go +++ b/model_history_fieldset_raw.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_huggingface_package_upload.go b/model_huggingface_package_upload.go index 5f26871c..56a32d89 100644 --- a/model_huggingface_package_upload.go +++ b/model_huggingface_package_upload.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -31,8 +31,10 @@ type HuggingfacePackageUpload struct { DependenciesChecksumMd5 NullableString `json:"dependencies_checksum_md5,omitempty"` DependenciesUrl *string `json:"dependencies_url,omitempty"` // A textual description of this package. - Description NullableString `json:"description,omitempty"` - DisplayName *string `json:"display_name,omitempty"` + Description NullableString `json:"description,omitempty"` + DisplayName *string `json:"display_name,omitempty"` + // Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + DisplaySource *string `json:"display_source,omitempty"` Distro NullableDistribution `json:"distro,omitempty"` DistroVersion *DistributionVersion `json:"distro_version,omitempty"` Downloads *int64 `json:"downloads,omitempty"` @@ -49,25 +51,23 @@ type HuggingfacePackageUpload struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The name of this package. @@ -141,10 +141,9 @@ type HuggingfacePackageUpload struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -520,6 +519,38 @@ func (o *HuggingfacePackageUpload) SetDisplayName(v string) { o.DisplayName = &v } +// GetDisplaySource returns the DisplaySource field value if set, zero value otherwise. +func (o *HuggingfacePackageUpload) GetDisplaySource() string { + if o == nil || IsNil(o.DisplaySource) { + var ret string + return ret + } + return *o.DisplaySource +} + +// GetDisplaySourceOk returns a tuple with the DisplaySource field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HuggingfacePackageUpload) GetDisplaySourceOk() (*string, bool) { + if o == nil || IsNil(o.DisplaySource) { + return nil, false + } + return o.DisplaySource, true +} + +// HasDisplaySource returns a boolean if a field has been set. +func (o *HuggingfacePackageUpload) HasDisplaySource() bool { + if o != nil && !IsNil(o.DisplaySource) { + return true + } + + return false +} + +// SetDisplaySource gets a reference to the given string and assigns it to the DisplaySource field. +func (o *HuggingfacePackageUpload) SetDisplaySource(v string) { + o.DisplaySource = &v +} + // GetDistro returns the Distro field value if set, zero value otherwise (both if not set or set to explicit null). func (o *HuggingfacePackageUpload) GetDistro() Distribution { if o == nil || IsNil(o.Distro.Get()) { @@ -1161,38 +1192,6 @@ func (o *HuggingfacePackageUpload) SetIsHidden(v bool) { o.IsHidden = &v } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *HuggingfacePackageUpload) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HuggingfacePackageUpload) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *HuggingfacePackageUpload) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *HuggingfacePackageUpload) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *HuggingfacePackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3214,49 +3213,6 @@ func (o *HuggingfacePackageUpload) SetVersionOrig(v string) { o.VersionOrig = &v } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *HuggingfacePackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *HuggingfacePackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *HuggingfacePackageUpload) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *HuggingfacePackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *HuggingfacePackageUpload) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *HuggingfacePackageUpload) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *HuggingfacePackageUpload) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3329,6 +3285,9 @@ func (o HuggingfacePackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.DisplayName) { toSerialize["display_name"] = o.DisplayName } + if !IsNil(o.DisplaySource) { + toSerialize["display_source"] = o.DisplaySource + } if o.Distro.IsSet() { toSerialize["distro"] = o.Distro.Get() } @@ -3386,9 +3345,6 @@ func (o HuggingfacePackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3563,9 +3519,6 @@ func (o HuggingfacePackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3601,6 +3554,7 @@ func (o *HuggingfacePackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "dependencies_url") delete(additionalProperties, "description") delete(additionalProperties, "display_name") + delete(additionalProperties, "display_source") delete(additionalProperties, "distro") delete(additionalProperties, "distro_version") delete(additionalProperties, "downloads") @@ -3620,7 +3574,6 @@ func (o *HuggingfacePackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3679,7 +3632,6 @@ func (o *HuggingfacePackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") - delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_huggingface_package_upload_request.go b/model_huggingface_package_upload_request.go index 9388f1ee..324db623 100644 --- a/model_huggingface_package_upload_request.go +++ b/model_huggingface_package_upload_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -21,15 +21,12 @@ var _ MappedNullable = &HuggingfacePackageUploadRequest{} // HuggingfacePackageUploadRequest struct for HuggingfacePackageUploadRequest type HuggingfacePackageUploadRequest struct { - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` // The primary file for the package. PackageFile string `json:"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. Republish *bool `json:"republish,omitempty"` // A comma-separated values list of tags to add to the package. - Tags NullableString `json:"tags,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + Tags NullableString `json:"tags,omitempty"` AdditionalProperties map[string]interface{} } @@ -53,38 +50,6 @@ func NewHuggingfacePackageUploadRequestWithDefaults() *HuggingfacePackageUploadR return &this } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *HuggingfacePackageUploadRequest) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HuggingfacePackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *HuggingfacePackageUploadRequest) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *HuggingfacePackageUploadRequest) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetPackageFile returns the PackageFile field value func (o *HuggingfacePackageUploadRequest) GetPackageFile() string { if o == nil { @@ -184,49 +149,6 @@ func (o *HuggingfacePackageUploadRequest) UnsetTags() { o.Tags.Unset() } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *HuggingfacePackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *HuggingfacePackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *HuggingfacePackageUploadRequest) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *HuggingfacePackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *HuggingfacePackageUploadRequest) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *HuggingfacePackageUploadRequest) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - func (o HuggingfacePackageUploadRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -237,9 +159,6 @@ func (o HuggingfacePackageUploadRequest) MarshalJSON() ([]byte, error) { func (o HuggingfacePackageUploadRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } toSerialize["package_file"] = o.PackageFile if !IsNil(o.Republish) { toSerialize["republish"] = o.Republish @@ -247,9 +166,6 @@ func (o HuggingfacePackageUploadRequest) ToMap() (map[string]interface{}, error) if o.Tags.IsSet() { toSerialize["tags"] = o.Tags.Get() } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -293,11 +209,9 @@ func (o *HuggingfacePackageUploadRequest) UnmarshalJSON(data []byte) (err error) additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "package_file") delete(additionalProperties, "republish") delete(additionalProperties, "tags") - delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_huggingface_upstream.go b/model_huggingface_upstream.go index ddf894d1..a23b4271 100644 --- a/model_huggingface_upstream.go +++ b/model_huggingface_upstream.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_huggingface_upstream_request.go b/model_huggingface_upstream_request.go index bdf78c6b..4beaacca 100644 --- a/model_huggingface_upstream_request.go +++ b/model_huggingface_upstream_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_huggingface_upstream_request_patch.go b/model_huggingface_upstream_request_patch.go index 5c8ae565..1e17424e 100644 --- a/model_huggingface_upstream_request_patch.go +++ b/model_huggingface_upstream_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_luarocks_package_upload.go b/model_luarocks_package_upload.go index a09ecdb5..1390a0cc 100644 --- a/model_luarocks_package_upload.go +++ b/model_luarocks_package_upload.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -31,8 +31,10 @@ type LuarocksPackageUpload struct { DependenciesChecksumMd5 NullableString `json:"dependencies_checksum_md5,omitempty"` DependenciesUrl *string `json:"dependencies_url,omitempty"` // A textual description of this package. - Description NullableString `json:"description,omitempty"` - DisplayName *string `json:"display_name,omitempty"` + Description NullableString `json:"description,omitempty"` + DisplayName *string `json:"display_name,omitempty"` + // Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + DisplaySource *string `json:"display_source,omitempty"` Distro NullableDistribution `json:"distro,omitempty"` DistroVersion *DistributionVersion `json:"distro_version,omitempty"` Downloads *int64 `json:"downloads,omitempty"` @@ -49,25 +51,23 @@ type LuarocksPackageUpload struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The name of this package. @@ -141,10 +141,9 @@ type LuarocksPackageUpload struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -520,6 +519,38 @@ func (o *LuarocksPackageUpload) SetDisplayName(v string) { o.DisplayName = &v } +// GetDisplaySource returns the DisplaySource field value if set, zero value otherwise. +func (o *LuarocksPackageUpload) GetDisplaySource() string { + if o == nil || IsNil(o.DisplaySource) { + var ret string + return ret + } + return *o.DisplaySource +} + +// GetDisplaySourceOk returns a tuple with the DisplaySource field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LuarocksPackageUpload) GetDisplaySourceOk() (*string, bool) { + if o == nil || IsNil(o.DisplaySource) { + return nil, false + } + return o.DisplaySource, true +} + +// HasDisplaySource returns a boolean if a field has been set. +func (o *LuarocksPackageUpload) HasDisplaySource() bool { + if o != nil && !IsNil(o.DisplaySource) { + return true + } + + return false +} + +// SetDisplaySource gets a reference to the given string and assigns it to the DisplaySource field. +func (o *LuarocksPackageUpload) SetDisplaySource(v string) { + o.DisplaySource = &v +} + // GetDistro returns the Distro field value if set, zero value otherwise (both if not set or set to explicit null). func (o *LuarocksPackageUpload) GetDistro() Distribution { if o == nil || IsNil(o.Distro.Get()) { @@ -1161,38 +1192,6 @@ func (o *LuarocksPackageUpload) SetIsHidden(v bool) { o.IsHidden = &v } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *LuarocksPackageUpload) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LuarocksPackageUpload) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *LuarocksPackageUpload) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *LuarocksPackageUpload) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *LuarocksPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3214,49 +3213,6 @@ func (o *LuarocksPackageUpload) SetVersionOrig(v string) { o.VersionOrig = &v } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *LuarocksPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *LuarocksPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *LuarocksPackageUpload) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *LuarocksPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *LuarocksPackageUpload) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *LuarocksPackageUpload) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *LuarocksPackageUpload) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3329,6 +3285,9 @@ func (o LuarocksPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.DisplayName) { toSerialize["display_name"] = o.DisplayName } + if !IsNil(o.DisplaySource) { + toSerialize["display_source"] = o.DisplaySource + } if o.Distro.IsSet() { toSerialize["distro"] = o.Distro.Get() } @@ -3386,9 +3345,6 @@ func (o LuarocksPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3563,9 +3519,6 @@ func (o LuarocksPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3601,6 +3554,7 @@ func (o *LuarocksPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "dependencies_url") delete(additionalProperties, "description") delete(additionalProperties, "display_name") + delete(additionalProperties, "display_source") delete(additionalProperties, "distro") delete(additionalProperties, "distro_version") delete(additionalProperties, "downloads") @@ -3620,7 +3574,6 @@ func (o *LuarocksPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3679,7 +3632,6 @@ func (o *LuarocksPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") - delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_luarocks_package_upload_request.go b/model_luarocks_package_upload_request.go index 4ea09460..6b7e3b3e 100644 --- a/model_luarocks_package_upload_request.go +++ b/model_luarocks_package_upload_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -21,15 +21,12 @@ var _ MappedNullable = &LuarocksPackageUploadRequest{} // LuarocksPackageUploadRequest struct for LuarocksPackageUploadRequest type LuarocksPackageUploadRequest struct { - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` // The primary file for the package. PackageFile string `json:"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. Republish *bool `json:"republish,omitempty"` // A comma-separated values list of tags to add to the package. - Tags NullableString `json:"tags,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + Tags NullableString `json:"tags,omitempty"` AdditionalProperties map[string]interface{} } @@ -53,38 +50,6 @@ func NewLuarocksPackageUploadRequestWithDefaults() *LuarocksPackageUploadRequest return &this } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *LuarocksPackageUploadRequest) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LuarocksPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *LuarocksPackageUploadRequest) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *LuarocksPackageUploadRequest) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetPackageFile returns the PackageFile field value func (o *LuarocksPackageUploadRequest) GetPackageFile() string { if o == nil { @@ -184,49 +149,6 @@ func (o *LuarocksPackageUploadRequest) UnsetTags() { o.Tags.Unset() } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *LuarocksPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *LuarocksPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *LuarocksPackageUploadRequest) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *LuarocksPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *LuarocksPackageUploadRequest) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *LuarocksPackageUploadRequest) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - func (o LuarocksPackageUploadRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -237,9 +159,6 @@ func (o LuarocksPackageUploadRequest) MarshalJSON() ([]byte, error) { func (o LuarocksPackageUploadRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } toSerialize["package_file"] = o.PackageFile if !IsNil(o.Republish) { toSerialize["republish"] = o.Republish @@ -247,9 +166,6 @@ func (o LuarocksPackageUploadRequest) ToMap() (map[string]interface{}, error) { if o.Tags.IsSet() { toSerialize["tags"] = o.Tags.Get() } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -293,11 +209,9 @@ func (o *LuarocksPackageUploadRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "package_file") delete(additionalProperties, "republish") delete(additionalProperties, "tags") - delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_maven_package_upload.go b/model_maven_package_upload.go index f595e85b..4e276a63 100644 --- a/model_maven_package_upload.go +++ b/model_maven_package_upload.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -33,8 +33,10 @@ type MavenPackageUpload struct { DependenciesChecksumMd5 NullableString `json:"dependencies_checksum_md5,omitempty"` DependenciesUrl *string `json:"dependencies_url,omitempty"` // A textual description of this package. - Description NullableString `json:"description,omitempty"` - DisplayName *string `json:"display_name,omitempty"` + Description NullableString `json:"description,omitempty"` + DisplayName *string `json:"display_name,omitempty"` + // Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + DisplaySource *string `json:"display_source,omitempty"` Distro NullableDistribution `json:"distro,omitempty"` DistroVersion *DistributionVersion `json:"distro_version,omitempty"` Downloads *int64 `json:"downloads,omitempty"` @@ -53,25 +55,23 @@ type MavenPackageUpload struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The name of this package. @@ -149,10 +149,9 @@ type MavenPackageUpload struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -571,6 +570,38 @@ func (o *MavenPackageUpload) SetDisplayName(v string) { o.DisplayName = &v } +// GetDisplaySource returns the DisplaySource field value if set, zero value otherwise. +func (o *MavenPackageUpload) GetDisplaySource() string { + if o == nil || IsNil(o.DisplaySource) { + var ret string + return ret + } + return *o.DisplaySource +} + +// GetDisplaySourceOk returns a tuple with the DisplaySource field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MavenPackageUpload) GetDisplaySourceOk() (*string, bool) { + if o == nil || IsNil(o.DisplaySource) { + return nil, false + } + return o.DisplaySource, true +} + +// HasDisplaySource returns a boolean if a field has been set. +func (o *MavenPackageUpload) HasDisplaySource() bool { + if o != nil && !IsNil(o.DisplaySource) { + return true + } + + return false +} + +// SetDisplaySource gets a reference to the given string and assigns it to the DisplaySource field. +func (o *MavenPackageUpload) SetDisplaySource(v string) { + o.DisplaySource = &v +} + // GetDistro returns the Distro field value if set, zero value otherwise (both if not set or set to explicit null). func (o *MavenPackageUpload) GetDistro() Distribution { if o == nil || IsNil(o.Distro.Get()) { @@ -1255,38 +1286,6 @@ func (o *MavenPackageUpload) SetIsHidden(v bool) { o.IsHidden = &v } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *MavenPackageUpload) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MavenPackageUpload) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *MavenPackageUpload) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *MavenPackageUpload) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *MavenPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3437,49 +3436,6 @@ func (o *MavenPackageUpload) SetVersionOrig(v string) { o.VersionOrig = &v } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *MavenPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *MavenPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *MavenPackageUpload) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *MavenPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *MavenPackageUpload) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *MavenPackageUpload) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *MavenPackageUpload) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3555,6 +3511,9 @@ func (o MavenPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.DisplayName) { toSerialize["display_name"] = o.DisplayName } + if !IsNil(o.DisplaySource) { + toSerialize["display_source"] = o.DisplaySource + } if o.Distro.IsSet() { toSerialize["distro"] = o.Distro.Get() } @@ -3615,9 +3574,6 @@ func (o MavenPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3801,9 +3757,6 @@ func (o MavenPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3840,6 +3793,7 @@ func (o *MavenPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "dependencies_url") delete(additionalProperties, "description") delete(additionalProperties, "display_name") + delete(additionalProperties, "display_source") delete(additionalProperties, "distro") delete(additionalProperties, "distro_version") delete(additionalProperties, "downloads") @@ -3860,7 +3814,6 @@ func (o *MavenPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3922,7 +3875,6 @@ func (o *MavenPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") - delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_maven_package_upload_request.go b/model_maven_package_upload_request.go index 166e2c72..a37869ab 100644 --- a/model_maven_package_upload_request.go +++ b/model_maven_package_upload_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -27,8 +27,6 @@ type MavenPackageUploadRequest struct { ExtraFiles []string `json:"extra_files,omitempty"` // Artifact's group ID. GroupId NullableString `json:"group_id,omitempty"` - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` // The ivy file is an XML file describing the dependencies of the project. IvyFile NullableString `json:"ivy_file,omitempty"` // Adds bundled Java documentation to the Maven package @@ -50,8 +48,7 @@ type MavenPackageUploadRequest struct { // Adds bundled Java tests to the Maven package. TestsFile NullableString `json:"tests_file,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + Version NullableString `json:"version,omitempty"` AdditionalProperties map[string]interface{} } @@ -194,38 +191,6 @@ func (o *MavenPackageUploadRequest) UnsetGroupId() { o.GroupId.Unset() } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *MavenPackageUploadRequest) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MavenPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *MavenPackageUploadRequest) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *MavenPackageUploadRequest) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetIvyFile returns the IvyFile field value if set, zero value otherwise (both if not set or set to explicit null). func (o *MavenPackageUploadRequest) GetIvyFile() string { if o == nil || IsNil(o.IvyFile.Get()) { @@ -712,49 +677,6 @@ func (o *MavenPackageUploadRequest) UnsetVersion() { o.Version.Unset() } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *MavenPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *MavenPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *MavenPackageUploadRequest) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *MavenPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *MavenPackageUploadRequest) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *MavenPackageUploadRequest) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - func (o MavenPackageUploadRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -774,9 +696,6 @@ func (o MavenPackageUploadRequest) ToMap() (map[string]interface{}, error) { if o.GroupId.IsSet() { toSerialize["group_id"] = o.GroupId.Get() } - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } if o.IvyFile.IsSet() { toSerialize["ivy_file"] = o.IvyFile.Get() } @@ -811,9 +730,6 @@ func (o MavenPackageUploadRequest) ToMap() (map[string]interface{}, error) { if o.Version.IsSet() { toSerialize["version"] = o.Version.Get() } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -860,7 +776,6 @@ func (o *MavenPackageUploadRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "artifact_id") delete(additionalProperties, "extra_files") delete(additionalProperties, "group_id") - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "ivy_file") delete(additionalProperties, "javadoc_file") delete(additionalProperties, "package_file") @@ -873,7 +788,6 @@ func (o *MavenPackageUploadRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "tags") delete(additionalProperties, "tests_file") delete(additionalProperties, "version") - delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_maven_upstream.go b/model_maven_upstream.go index b01e007a..9c5fe5f3 100644 --- a/model_maven_upstream.go +++ b/model_maven_upstream.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_maven_upstream_request.go b/model_maven_upstream_request.go index 18fcb861..292ab2c7 100644 --- a/model_maven_upstream_request.go +++ b/model_maven_upstream_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_maven_upstream_request_patch.go b/model_maven_upstream_request_patch.go index 35b6d90d..e9c66a5e 100644 --- a/model_maven_upstream_request_patch.go +++ b/model_maven_upstream_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_mcp_package_upload.go b/model_mcp_package_upload.go index 41856eba..59f10cd7 100644 --- a/model_mcp_package_upload.go +++ b/model_mcp_package_upload.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -31,8 +31,10 @@ type McpPackageUpload struct { DependenciesChecksumMd5 NullableString `json:"dependencies_checksum_md5,omitempty"` DependenciesUrl *string `json:"dependencies_url,omitempty"` // A textual description of this package. - Description NullableString `json:"description,omitempty"` - DisplayName *string `json:"display_name,omitempty"` + Description NullableString `json:"description,omitempty"` + DisplayName *string `json:"display_name,omitempty"` + // Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + DisplaySource *string `json:"display_source,omitempty"` Distro NullableDistribution `json:"distro,omitempty"` DistroVersion *DistributionVersion `json:"distro_version,omitempty"` Downloads *int64 `json:"downloads,omitempty"` @@ -49,25 +51,23 @@ type McpPackageUpload struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The name of this package. @@ -141,10 +141,9 @@ type McpPackageUpload struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -520,6 +519,38 @@ func (o *McpPackageUpload) SetDisplayName(v string) { o.DisplayName = &v } +// GetDisplaySource returns the DisplaySource field value if set, zero value otherwise. +func (o *McpPackageUpload) GetDisplaySource() string { + if o == nil || IsNil(o.DisplaySource) { + var ret string + return ret + } + return *o.DisplaySource +} + +// GetDisplaySourceOk returns a tuple with the DisplaySource field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *McpPackageUpload) GetDisplaySourceOk() (*string, bool) { + if o == nil || IsNil(o.DisplaySource) { + return nil, false + } + return o.DisplaySource, true +} + +// HasDisplaySource returns a boolean if a field has been set. +func (o *McpPackageUpload) HasDisplaySource() bool { + if o != nil && !IsNil(o.DisplaySource) { + return true + } + + return false +} + +// SetDisplaySource gets a reference to the given string and assigns it to the DisplaySource field. +func (o *McpPackageUpload) SetDisplaySource(v string) { + o.DisplaySource = &v +} + // GetDistro returns the Distro field value if set, zero value otherwise (both if not set or set to explicit null). func (o *McpPackageUpload) GetDistro() Distribution { if o == nil || IsNil(o.Distro.Get()) { @@ -1161,38 +1192,6 @@ func (o *McpPackageUpload) SetIsHidden(v bool) { o.IsHidden = &v } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *McpPackageUpload) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *McpPackageUpload) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *McpPackageUpload) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *McpPackageUpload) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *McpPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3214,49 +3213,6 @@ func (o *McpPackageUpload) SetVersionOrig(v string) { o.VersionOrig = &v } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *McpPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *McpPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *McpPackageUpload) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *McpPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *McpPackageUpload) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *McpPackageUpload) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *McpPackageUpload) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3329,6 +3285,9 @@ func (o McpPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.DisplayName) { toSerialize["display_name"] = o.DisplayName } + if !IsNil(o.DisplaySource) { + toSerialize["display_source"] = o.DisplaySource + } if o.Distro.IsSet() { toSerialize["distro"] = o.Distro.Get() } @@ -3386,9 +3345,6 @@ func (o McpPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3563,9 +3519,6 @@ func (o McpPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3601,6 +3554,7 @@ func (o *McpPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "dependencies_url") delete(additionalProperties, "description") delete(additionalProperties, "display_name") + delete(additionalProperties, "display_source") delete(additionalProperties, "distro") delete(additionalProperties, "distro_version") delete(additionalProperties, "downloads") @@ -3620,7 +3574,6 @@ func (o *McpPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3679,7 +3632,6 @@ func (o *McpPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") - delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_mcp_package_upload_request.go b/model_mcp_package_upload_request.go index 75b0055a..9677dc2f 100644 --- a/model_mcp_package_upload_request.go +++ b/model_mcp_package_upload_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -21,8 +21,6 @@ var _ MappedNullable = &McpPackageUploadRequest{} // McpPackageUploadRequest struct for McpPackageUploadRequest type McpPackageUploadRequest struct { - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` // The primary file for the package. PackageFile string `json:"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. @@ -30,8 +28,7 @@ type McpPackageUploadRequest struct { // A comma-separated values list of tags to add to the package. Tags NullableString `json:"tags,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + Version NullableString `json:"version,omitempty"` AdditionalProperties map[string]interface{} } @@ -55,38 +52,6 @@ func NewMcpPackageUploadRequestWithDefaults() *McpPackageUploadRequest { return &this } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *McpPackageUploadRequest) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *McpPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *McpPackageUploadRequest) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *McpPackageUploadRequest) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetPackageFile returns the PackageFile field value func (o *McpPackageUploadRequest) GetPackageFile() string { if o == nil { @@ -229,49 +194,6 @@ func (o *McpPackageUploadRequest) UnsetVersion() { o.Version.Unset() } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *McpPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *McpPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *McpPackageUploadRequest) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *McpPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *McpPackageUploadRequest) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *McpPackageUploadRequest) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - func (o McpPackageUploadRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -282,9 +204,6 @@ func (o McpPackageUploadRequest) MarshalJSON() ([]byte, error) { func (o McpPackageUploadRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } toSerialize["package_file"] = o.PackageFile if !IsNil(o.Republish) { toSerialize["republish"] = o.Republish @@ -295,9 +214,6 @@ func (o McpPackageUploadRequest) ToMap() (map[string]interface{}, error) { if o.Version.IsSet() { toSerialize["version"] = o.Version.Get() } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -341,12 +257,10 @@ func (o *McpPackageUploadRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "package_file") delete(additionalProperties, "republish") delete(additionalProperties, "tags") delete(additionalProperties, "version") - delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_member_teams.go b/model_member_teams.go index c7ec101d..20794474 100644 --- a/model_member_teams.go +++ b/model_member_teams.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_namespace.go b/model_namespace.go index 35b8e0a4..1b145bd0 100644 --- a/model_namespace.go +++ b/model_namespace.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_namespace_audit_log.go b/model_namespace_audit_log.go index 54d4a762..db620880 100644 --- a/model_namespace_audit_log.go +++ b/model_namespace_audit_log.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_nested_license_policy.go b/model_nested_license_policy.go index 76a07b79..e1217bcc 100644 --- a/model_nested_license_policy.go +++ b/model_nested_license_policy.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_nested_vulnerability_policy.go b/model_nested_vulnerability_policy.go index f350b7cd..7ffd9cf0 100644 --- a/model_nested_vulnerability_policy.go +++ b/model_nested_vulnerability_policy.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_nested_vulnerability_scan_results.go b/model_nested_vulnerability_scan_results.go index a94b3c66..fed7ebf6 100644 --- a/model_nested_vulnerability_scan_results.go +++ b/model_nested_vulnerability_scan_results.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_nix_package_upload.go b/model_nix_package_upload.go index 11efa96c..1e4af83d 100644 --- a/model_nix_package_upload.go +++ b/model_nix_package_upload.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -31,8 +31,10 @@ type NixPackageUpload struct { DependenciesChecksumMd5 NullableString `json:"dependencies_checksum_md5,omitempty"` DependenciesUrl *string `json:"dependencies_url,omitempty"` // A textual description of this package. - Description NullableString `json:"description,omitempty"` - DisplayName *string `json:"display_name,omitempty"` + Description NullableString `json:"description,omitempty"` + DisplayName *string `json:"display_name,omitempty"` + // Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + DisplaySource *string `json:"display_source,omitempty"` Distro NullableDistribution `json:"distro,omitempty"` DistroVersion *DistributionVersion `json:"distro_version,omitempty"` Downloads *int64 `json:"downloads,omitempty"` @@ -49,25 +51,23 @@ type NixPackageUpload struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The name of this package. @@ -141,10 +141,9 @@ type NixPackageUpload struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -520,6 +519,38 @@ func (o *NixPackageUpload) SetDisplayName(v string) { o.DisplayName = &v } +// GetDisplaySource returns the DisplaySource field value if set, zero value otherwise. +func (o *NixPackageUpload) GetDisplaySource() string { + if o == nil || IsNil(o.DisplaySource) { + var ret string + return ret + } + return *o.DisplaySource +} + +// GetDisplaySourceOk returns a tuple with the DisplaySource field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NixPackageUpload) GetDisplaySourceOk() (*string, bool) { + if o == nil || IsNil(o.DisplaySource) { + return nil, false + } + return o.DisplaySource, true +} + +// HasDisplaySource returns a boolean if a field has been set. +func (o *NixPackageUpload) HasDisplaySource() bool { + if o != nil && !IsNil(o.DisplaySource) { + return true + } + + return false +} + +// SetDisplaySource gets a reference to the given string and assigns it to the DisplaySource field. +func (o *NixPackageUpload) SetDisplaySource(v string) { + o.DisplaySource = &v +} + // GetDistro returns the Distro field value if set, zero value otherwise (both if not set or set to explicit null). func (o *NixPackageUpload) GetDistro() Distribution { if o == nil || IsNil(o.Distro.Get()) { @@ -1161,38 +1192,6 @@ func (o *NixPackageUpload) SetIsHidden(v bool) { o.IsHidden = &v } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *NixPackageUpload) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *NixPackageUpload) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *NixPackageUpload) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *NixPackageUpload) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *NixPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3214,49 +3213,6 @@ func (o *NixPackageUpload) SetVersionOrig(v string) { o.VersionOrig = &v } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *NixPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *NixPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *NixPackageUpload) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *NixPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *NixPackageUpload) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *NixPackageUpload) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *NixPackageUpload) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3329,6 +3285,9 @@ func (o NixPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.DisplayName) { toSerialize["display_name"] = o.DisplayName } + if !IsNil(o.DisplaySource) { + toSerialize["display_source"] = o.DisplaySource + } if o.Distro.IsSet() { toSerialize["distro"] = o.Distro.Get() } @@ -3386,9 +3345,6 @@ func (o NixPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3563,9 +3519,6 @@ func (o NixPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3601,6 +3554,7 @@ func (o *NixPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "dependencies_url") delete(additionalProperties, "description") delete(additionalProperties, "display_name") + delete(additionalProperties, "display_source") delete(additionalProperties, "distro") delete(additionalProperties, "distro_version") delete(additionalProperties, "downloads") @@ -3620,7 +3574,6 @@ func (o *NixPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3679,7 +3632,6 @@ func (o *NixPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") - delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_nix_package_upload_request.go b/model_nix_package_upload_request.go index 10e2f990..f0380283 100644 --- a/model_nix_package_upload_request.go +++ b/model_nix_package_upload_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -21,8 +21,6 @@ var _ MappedNullable = &NixPackageUploadRequest{} // NixPackageUploadRequest struct for NixPackageUploadRequest type NixPackageUploadRequest struct { - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` // The narinfo sidecar metadata file (.narinfo). Optional — the package can be completed later by publishing the matching narinfo via the native HTTP PUT path. NarinfoFile NullableString `json:"narinfo_file,omitempty"` // The primary file for the package. @@ -32,8 +30,7 @@ type NixPackageUploadRequest struct { // A comma-separated values list of tags to add to the package. Tags NullableString `json:"tags,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + Version NullableString `json:"version,omitempty"` AdditionalProperties map[string]interface{} } @@ -57,38 +54,6 @@ func NewNixPackageUploadRequestWithDefaults() *NixPackageUploadRequest { return &this } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *NixPackageUploadRequest) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *NixPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *NixPackageUploadRequest) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *NixPackageUploadRequest) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetNarinfoFile returns the NarinfoFile field value if set, zero value otherwise (both if not set or set to explicit null). func (o *NixPackageUploadRequest) GetNarinfoFile() string { if o == nil || IsNil(o.NarinfoFile.Get()) { @@ -274,49 +239,6 @@ func (o *NixPackageUploadRequest) UnsetVersion() { o.Version.Unset() } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *NixPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *NixPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *NixPackageUploadRequest) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *NixPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *NixPackageUploadRequest) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *NixPackageUploadRequest) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - func (o NixPackageUploadRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -327,9 +249,6 @@ func (o NixPackageUploadRequest) MarshalJSON() ([]byte, error) { func (o NixPackageUploadRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } if o.NarinfoFile.IsSet() { toSerialize["narinfo_file"] = o.NarinfoFile.Get() } @@ -343,9 +262,6 @@ func (o NixPackageUploadRequest) ToMap() (map[string]interface{}, error) { if o.Version.IsSet() { toSerialize["version"] = o.Version.Get() } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -389,13 +305,11 @@ func (o *NixPackageUploadRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "narinfo_file") delete(additionalProperties, "package_file") delete(additionalProperties, "republish") delete(additionalProperties, "tags") delete(additionalProperties, "version") - delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_nix_upstream.go b/model_nix_upstream.go index 8a6f549e..ecaa3230 100644 --- a/model_nix_upstream.go +++ b/model_nix_upstream.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_nix_upstream_request.go b/model_nix_upstream_request.go index 01e9d43b..3e6eaf79 100644 --- a/model_nix_upstream_request.go +++ b/model_nix_upstream_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_nix_upstream_request_patch.go b/model_nix_upstream_request_patch.go index 0f6c7000..8fbf46fa 100644 --- a/model_nix_upstream_request_patch.go +++ b/model_nix_upstream_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_npm_package_upload.go b/model_npm_package_upload.go index 5d2da49a..4bebcde7 100644 --- a/model_npm_package_upload.go +++ b/model_npm_package_upload.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -31,8 +31,10 @@ type NpmPackageUpload struct { DependenciesChecksumMd5 NullableString `json:"dependencies_checksum_md5,omitempty"` DependenciesUrl *string `json:"dependencies_url,omitempty"` // A textual description of this package. - Description NullableString `json:"description,omitempty"` - DisplayName *string `json:"display_name,omitempty"` + Description NullableString `json:"description,omitempty"` + DisplayName *string `json:"display_name,omitempty"` + // Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + DisplaySource *string `json:"display_source,omitempty"` Distro NullableDistribution `json:"distro,omitempty"` DistroVersion *DistributionVersion `json:"distro_version,omitempty"` Downloads *int64 `json:"downloads,omitempty"` @@ -49,25 +51,23 @@ type NpmPackageUpload struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The name of this package. @@ -141,10 +141,9 @@ type NpmPackageUpload struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -520,6 +519,38 @@ func (o *NpmPackageUpload) SetDisplayName(v string) { o.DisplayName = &v } +// GetDisplaySource returns the DisplaySource field value if set, zero value otherwise. +func (o *NpmPackageUpload) GetDisplaySource() string { + if o == nil || IsNil(o.DisplaySource) { + var ret string + return ret + } + return *o.DisplaySource +} + +// GetDisplaySourceOk returns a tuple with the DisplaySource field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NpmPackageUpload) GetDisplaySourceOk() (*string, bool) { + if o == nil || IsNil(o.DisplaySource) { + return nil, false + } + return o.DisplaySource, true +} + +// HasDisplaySource returns a boolean if a field has been set. +func (o *NpmPackageUpload) HasDisplaySource() bool { + if o != nil && !IsNil(o.DisplaySource) { + return true + } + + return false +} + +// SetDisplaySource gets a reference to the given string and assigns it to the DisplaySource field. +func (o *NpmPackageUpload) SetDisplaySource(v string) { + o.DisplaySource = &v +} + // GetDistro returns the Distro field value if set, zero value otherwise (both if not set or set to explicit null). func (o *NpmPackageUpload) GetDistro() Distribution { if o == nil || IsNil(o.Distro.Get()) { @@ -1161,38 +1192,6 @@ func (o *NpmPackageUpload) SetIsHidden(v bool) { o.IsHidden = &v } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *NpmPackageUpload) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *NpmPackageUpload) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *NpmPackageUpload) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *NpmPackageUpload) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *NpmPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3214,49 +3213,6 @@ func (o *NpmPackageUpload) SetVersionOrig(v string) { o.VersionOrig = &v } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *NpmPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *NpmPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *NpmPackageUpload) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *NpmPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *NpmPackageUpload) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *NpmPackageUpload) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *NpmPackageUpload) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3329,6 +3285,9 @@ func (o NpmPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.DisplayName) { toSerialize["display_name"] = o.DisplayName } + if !IsNil(o.DisplaySource) { + toSerialize["display_source"] = o.DisplaySource + } if o.Distro.IsSet() { toSerialize["distro"] = o.Distro.Get() } @@ -3386,9 +3345,6 @@ func (o NpmPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3563,9 +3519,6 @@ func (o NpmPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3601,6 +3554,7 @@ func (o *NpmPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "dependencies_url") delete(additionalProperties, "description") delete(additionalProperties, "display_name") + delete(additionalProperties, "display_source") delete(additionalProperties, "distro") delete(additionalProperties, "distro_version") delete(additionalProperties, "downloads") @@ -3620,7 +3574,6 @@ func (o *NpmPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3679,7 +3632,6 @@ func (o *NpmPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") - delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_npm_package_upload_request.go b/model_npm_package_upload_request.go index 9881f553..0551d5db 100644 --- a/model_npm_package_upload_request.go +++ b/model_npm_package_upload_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -21,8 +21,6 @@ var _ MappedNullable = &NpmPackageUploadRequest{} // NpmPackageUploadRequest struct for NpmPackageUploadRequest type NpmPackageUploadRequest struct { - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` // The default npm dist-tag for this package/version - This will replace any other package/version if they are using the same tag. NpmDistTag NullableString `json:"npm_dist_tag,omitempty"` // The primary file for the package. @@ -30,8 +28,7 @@ type NpmPackageUploadRequest struct { // 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. Republish *bool `json:"republish,omitempty"` // A comma-separated values list of tags to add to the package. - Tags NullableString `json:"tags,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + Tags NullableString `json:"tags,omitempty"` AdditionalProperties map[string]interface{} } @@ -59,38 +56,6 @@ func NewNpmPackageUploadRequestWithDefaults() *NpmPackageUploadRequest { return &this } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *NpmPackageUploadRequest) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *NpmPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *NpmPackageUploadRequest) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *NpmPackageUploadRequest) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetNpmDistTag returns the NpmDistTag field value if set, zero value otherwise (both if not set or set to explicit null). func (o *NpmPackageUploadRequest) GetNpmDistTag() string { if o == nil || IsNil(o.NpmDistTag.Get()) { @@ -233,49 +198,6 @@ func (o *NpmPackageUploadRequest) UnsetTags() { o.Tags.Unset() } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *NpmPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *NpmPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *NpmPackageUploadRequest) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *NpmPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *NpmPackageUploadRequest) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *NpmPackageUploadRequest) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - func (o NpmPackageUploadRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -286,9 +208,6 @@ func (o NpmPackageUploadRequest) MarshalJSON() ([]byte, error) { func (o NpmPackageUploadRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } if o.NpmDistTag.IsSet() { toSerialize["npm_dist_tag"] = o.NpmDistTag.Get() } @@ -299,9 +218,6 @@ func (o NpmPackageUploadRequest) ToMap() (map[string]interface{}, error) { if o.Tags.IsSet() { toSerialize["tags"] = o.Tags.Get() } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -345,12 +261,10 @@ func (o *NpmPackageUploadRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "npm_dist_tag") delete(additionalProperties, "package_file") delete(additionalProperties, "republish") delete(additionalProperties, "tags") - delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_npm_upstream.go b/model_npm_upstream.go index b2b40a39..3975e1dc 100644 --- a/model_npm_upstream.go +++ b/model_npm_upstream.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_npm_upstream_request.go b/model_npm_upstream_request.go index f70b38a9..fed0d0c4 100644 --- a/model_npm_upstream_request.go +++ b/model_npm_upstream_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_npm_upstream_request_patch.go b/model_npm_upstream_request_patch.go index 12b5c69a..3b08bba3 100644 --- a/model_npm_upstream_request_patch.go +++ b/model_npm_upstream_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_nuget_package_upload.go b/model_nuget_package_upload.go index eef4d5de..258b4f4d 100644 --- a/model_nuget_package_upload.go +++ b/model_nuget_package_upload.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -31,8 +31,10 @@ type NugetPackageUpload struct { DependenciesChecksumMd5 NullableString `json:"dependencies_checksum_md5,omitempty"` DependenciesUrl *string `json:"dependencies_url,omitempty"` // A textual description of this package. - Description NullableString `json:"description,omitempty"` - DisplayName *string `json:"display_name,omitempty"` + Description NullableString `json:"description,omitempty"` + DisplayName *string `json:"display_name,omitempty"` + // Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + DisplaySource *string `json:"display_source,omitempty"` Distro NullableDistribution `json:"distro,omitempty"` DistroVersion *DistributionVersion `json:"distro_version,omitempty"` Downloads *int64 `json:"downloads,omitempty"` @@ -49,25 +51,23 @@ type NugetPackageUpload struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The name of this package. @@ -141,10 +141,9 @@ type NugetPackageUpload struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -520,6 +519,38 @@ func (o *NugetPackageUpload) SetDisplayName(v string) { o.DisplayName = &v } +// GetDisplaySource returns the DisplaySource field value if set, zero value otherwise. +func (o *NugetPackageUpload) GetDisplaySource() string { + if o == nil || IsNil(o.DisplaySource) { + var ret string + return ret + } + return *o.DisplaySource +} + +// GetDisplaySourceOk returns a tuple with the DisplaySource field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NugetPackageUpload) GetDisplaySourceOk() (*string, bool) { + if o == nil || IsNil(o.DisplaySource) { + return nil, false + } + return o.DisplaySource, true +} + +// HasDisplaySource returns a boolean if a field has been set. +func (o *NugetPackageUpload) HasDisplaySource() bool { + if o != nil && !IsNil(o.DisplaySource) { + return true + } + + return false +} + +// SetDisplaySource gets a reference to the given string and assigns it to the DisplaySource field. +func (o *NugetPackageUpload) SetDisplaySource(v string) { + o.DisplaySource = &v +} + // GetDistro returns the Distro field value if set, zero value otherwise (both if not set or set to explicit null). func (o *NugetPackageUpload) GetDistro() Distribution { if o == nil || IsNil(o.Distro.Get()) { @@ -1161,38 +1192,6 @@ func (o *NugetPackageUpload) SetIsHidden(v bool) { o.IsHidden = &v } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *NugetPackageUpload) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *NugetPackageUpload) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *NugetPackageUpload) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *NugetPackageUpload) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *NugetPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3214,49 +3213,6 @@ func (o *NugetPackageUpload) SetVersionOrig(v string) { o.VersionOrig = &v } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *NugetPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *NugetPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *NugetPackageUpload) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *NugetPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *NugetPackageUpload) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *NugetPackageUpload) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *NugetPackageUpload) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3329,6 +3285,9 @@ func (o NugetPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.DisplayName) { toSerialize["display_name"] = o.DisplayName } + if !IsNil(o.DisplaySource) { + toSerialize["display_source"] = o.DisplaySource + } if o.Distro.IsSet() { toSerialize["distro"] = o.Distro.Get() } @@ -3386,9 +3345,6 @@ func (o NugetPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3563,9 +3519,6 @@ func (o NugetPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3601,6 +3554,7 @@ func (o *NugetPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "dependencies_url") delete(additionalProperties, "description") delete(additionalProperties, "display_name") + delete(additionalProperties, "display_source") delete(additionalProperties, "distro") delete(additionalProperties, "distro_version") delete(additionalProperties, "downloads") @@ -3620,7 +3574,6 @@ func (o *NugetPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3679,7 +3632,6 @@ func (o *NugetPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") - delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_nuget_package_upload_request.go b/model_nuget_package_upload_request.go index c5d2093c..93802dc8 100644 --- a/model_nuget_package_upload_request.go +++ b/model_nuget_package_upload_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -21,8 +21,6 @@ var _ MappedNullable = &NugetPackageUploadRequest{} // NugetPackageUploadRequest struct for NugetPackageUploadRequest type NugetPackageUploadRequest struct { - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` // The primary file for the package. PackageFile string `json:"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. @@ -30,8 +28,7 @@ type NugetPackageUploadRequest struct { // Uploads a symbols file as a separate package SymbolsFile NullableString `json:"symbols_file,omitempty"` // A comma-separated values list of tags to add to the package. - Tags NullableString `json:"tags,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + Tags NullableString `json:"tags,omitempty"` AdditionalProperties map[string]interface{} } @@ -55,38 +52,6 @@ func NewNugetPackageUploadRequestWithDefaults() *NugetPackageUploadRequest { return &this } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *NugetPackageUploadRequest) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *NugetPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *NugetPackageUploadRequest) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *NugetPackageUploadRequest) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetPackageFile returns the PackageFile field value func (o *NugetPackageUploadRequest) GetPackageFile() string { if o == nil { @@ -229,49 +194,6 @@ func (o *NugetPackageUploadRequest) UnsetTags() { o.Tags.Unset() } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *NugetPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *NugetPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *NugetPackageUploadRequest) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *NugetPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *NugetPackageUploadRequest) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *NugetPackageUploadRequest) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - func (o NugetPackageUploadRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -282,9 +204,6 @@ func (o NugetPackageUploadRequest) MarshalJSON() ([]byte, error) { func (o NugetPackageUploadRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } toSerialize["package_file"] = o.PackageFile if !IsNil(o.Republish) { toSerialize["republish"] = o.Republish @@ -295,9 +214,6 @@ func (o NugetPackageUploadRequest) ToMap() (map[string]interface{}, error) { if o.Tags.IsSet() { toSerialize["tags"] = o.Tags.Get() } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -341,12 +257,10 @@ func (o *NugetPackageUploadRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "package_file") delete(additionalProperties, "republish") delete(additionalProperties, "symbols_file") delete(additionalProperties, "tags") - delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_nuget_upstream.go b/model_nuget_upstream.go index 9f703868..cc628b80 100644 --- a/model_nuget_upstream.go +++ b/model_nuget_upstream.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_nuget_upstream_request.go b/model_nuget_upstream_request.go index 10ee9309..58fe5bb2 100644 --- a/model_nuget_upstream_request.go +++ b/model_nuget_upstream_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_nuget_upstream_request_patch.go b/model_nuget_upstream_request_patch.go index 601c0e41..da6d5c73 100644 --- a/model_nuget_upstream_request_patch.go +++ b/model_nuget_upstream_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_oidc_1.go b/model_oidc_1.go index a267da47..0e31793d 100644 --- a/model_oidc_1.go +++ b/model_oidc_1.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_oidc_request.go b/model_oidc_request.go index a79534a9..de603dc3 100644 --- a/model_oidc_request.go +++ b/model_oidc_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_organization.go b/model_organization.go index 322a140d..dcb070fb 100644 --- a/model_organization.go +++ b/model_organization.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_api_key_rule.go b/model_organization_api_key_rule.go new file mode 100644 index 00000000..c5110979 --- /dev/null +++ b/model_organization_api_key_rule.go @@ -0,0 +1,482 @@ +/* +Cloudsmith API (v1) + +The API to the Cloudsmith Service + +API version: 1.1388.0 +Contact: support@cloudsmith.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cloudsmith + +import ( + "encoding/json" + "fmt" + "time" +) + +// checks if the OrganizationApiKeyRule type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OrganizationApiKeyRule{} + +// OrganizationApiKeyRule struct for OrganizationApiKeyRule +type OrganizationApiKeyRule struct { + CreatedAt *time.Time `json:"created_at,omitempty"` + // When enabled, API keys that violate the organization's rule will be replaced automatically. + EnforceRefresh *bool `json:"enforce_refresh,omitempty"` + // Whether this rule is currently active and enforced. + IsEnabled *bool `json:"is_enabled,omitempty"` + // The last time this rule was evaluated and applied by the expiry task. + LastAppliedAt *time.Time `json:"last_applied_at,omitempty"` + // The maximum permitted age of an API key for use in the organization. API keys older than this will no longer have access until they are refreshed. To disable the rule unset this value. + MaxAgeHours NullableInt64 `json:"max_age_hours,omitempty"` + // Specify which account types this rule applies to: all accounts (deprecated — prefer separate service/user rules), service accounts only, or user accounts only. + RuleType string `json:"rule_type"` + // Human-readable identifier for the rule type. Automatically generated based on the rule type. + Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"` + // An auto-generated id that uniquely identifies the API key policy. + SlugPerm *string `json:"slug_perm,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _OrganizationApiKeyRule OrganizationApiKeyRule + +// NewOrganizationApiKeyRule instantiates a new OrganizationApiKeyRule object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOrganizationApiKeyRule(ruleType string) *OrganizationApiKeyRule { + this := OrganizationApiKeyRule{} + this.RuleType = ruleType + return &this +} + +// NewOrganizationApiKeyRuleWithDefaults instantiates a new OrganizationApiKeyRule object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOrganizationApiKeyRuleWithDefaults() *OrganizationApiKeyRule { + this := OrganizationApiKeyRule{} + return &this +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *OrganizationApiKeyRule) GetCreatedAt() time.Time { + if o == nil || IsNil(o.CreatedAt) { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrganizationApiKeyRule) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.CreatedAt) { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *OrganizationApiKeyRule) HasCreatedAt() bool { + if o != nil && !IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *OrganizationApiKeyRule) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetEnforceRefresh returns the EnforceRefresh field value if set, zero value otherwise. +func (o *OrganizationApiKeyRule) GetEnforceRefresh() bool { + if o == nil || IsNil(o.EnforceRefresh) { + var ret bool + return ret + } + return *o.EnforceRefresh +} + +// GetEnforceRefreshOk returns a tuple with the EnforceRefresh field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrganizationApiKeyRule) GetEnforceRefreshOk() (*bool, bool) { + if o == nil || IsNil(o.EnforceRefresh) { + return nil, false + } + return o.EnforceRefresh, true +} + +// HasEnforceRefresh returns a boolean if a field has been set. +func (o *OrganizationApiKeyRule) HasEnforceRefresh() bool { + if o != nil && !IsNil(o.EnforceRefresh) { + return true + } + + return false +} + +// SetEnforceRefresh gets a reference to the given bool and assigns it to the EnforceRefresh field. +func (o *OrganizationApiKeyRule) SetEnforceRefresh(v bool) { + o.EnforceRefresh = &v +} + +// GetIsEnabled returns the IsEnabled field value if set, zero value otherwise. +func (o *OrganizationApiKeyRule) GetIsEnabled() bool { + if o == nil || IsNil(o.IsEnabled) { + var ret bool + return ret + } + return *o.IsEnabled +} + +// GetIsEnabledOk returns a tuple with the IsEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrganizationApiKeyRule) GetIsEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.IsEnabled) { + return nil, false + } + return o.IsEnabled, true +} + +// HasIsEnabled returns a boolean if a field has been set. +func (o *OrganizationApiKeyRule) HasIsEnabled() bool { + if o != nil && !IsNil(o.IsEnabled) { + return true + } + + return false +} + +// SetIsEnabled gets a reference to the given bool and assigns it to the IsEnabled field. +func (o *OrganizationApiKeyRule) SetIsEnabled(v bool) { + o.IsEnabled = &v +} + +// GetLastAppliedAt returns the LastAppliedAt field value if set, zero value otherwise. +func (o *OrganizationApiKeyRule) GetLastAppliedAt() time.Time { + if o == nil || IsNil(o.LastAppliedAt) { + var ret time.Time + return ret + } + return *o.LastAppliedAt +} + +// GetLastAppliedAtOk returns a tuple with the LastAppliedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrganizationApiKeyRule) GetLastAppliedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.LastAppliedAt) { + return nil, false + } + return o.LastAppliedAt, true +} + +// HasLastAppliedAt returns a boolean if a field has been set. +func (o *OrganizationApiKeyRule) HasLastAppliedAt() bool { + if o != nil && !IsNil(o.LastAppliedAt) { + return true + } + + return false +} + +// SetLastAppliedAt gets a reference to the given time.Time and assigns it to the LastAppliedAt field. +func (o *OrganizationApiKeyRule) SetLastAppliedAt(v time.Time) { + o.LastAppliedAt = &v +} + +// GetMaxAgeHours returns the MaxAgeHours field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrganizationApiKeyRule) GetMaxAgeHours() int64 { + if o == nil || IsNil(o.MaxAgeHours.Get()) { + var ret int64 + return ret + } + return *o.MaxAgeHours.Get() +} + +// GetMaxAgeHoursOk returns a tuple with the MaxAgeHours field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrganizationApiKeyRule) GetMaxAgeHoursOk() (*int64, bool) { + if o == nil { + return nil, false + } + return o.MaxAgeHours.Get(), o.MaxAgeHours.IsSet() +} + +// HasMaxAgeHours returns a boolean if a field has been set. +func (o *OrganizationApiKeyRule) HasMaxAgeHours() bool { + if o != nil && o.MaxAgeHours.IsSet() { + return true + } + + return false +} + +// SetMaxAgeHours gets a reference to the given NullableInt64 and assigns it to the MaxAgeHours field. +func (o *OrganizationApiKeyRule) SetMaxAgeHours(v int64) { + o.MaxAgeHours.Set(&v) +} + +// SetMaxAgeHoursNil sets the value for MaxAgeHours to be an explicit nil +func (o *OrganizationApiKeyRule) SetMaxAgeHoursNil() { + o.MaxAgeHours.Set(nil) +} + +// UnsetMaxAgeHours ensures that no value is present for MaxAgeHours, not even an explicit nil +func (o *OrganizationApiKeyRule) UnsetMaxAgeHours() { + o.MaxAgeHours.Unset() +} + +// GetRuleType returns the RuleType field value +func (o *OrganizationApiKeyRule) GetRuleType() string { + if o == nil { + var ret string + return ret + } + + return o.RuleType +} + +// GetRuleTypeOk returns a tuple with the RuleType field value +// and a boolean to check if the value has been set. +func (o *OrganizationApiKeyRule) GetRuleTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.RuleType, true +} + +// SetRuleType sets field value +func (o *OrganizationApiKeyRule) SetRuleType(v string) { + o.RuleType = v +} + +// GetSlug returns the Slug field value if set, zero value otherwise. +func (o *OrganizationApiKeyRule) GetSlug() string { + if o == nil || IsNil(o.Slug) { + var ret string + return ret + } + return *o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrganizationApiKeyRule) GetSlugOk() (*string, bool) { + if o == nil || IsNil(o.Slug) { + return nil, false + } + return o.Slug, true +} + +// HasSlug returns a boolean if a field has been set. +func (o *OrganizationApiKeyRule) HasSlug() bool { + if o != nil && !IsNil(o.Slug) { + return true + } + + return false +} + +// SetSlug gets a reference to the given string and assigns it to the Slug field. +func (o *OrganizationApiKeyRule) SetSlug(v string) { + o.Slug = &v +} + +// GetSlugPerm returns the SlugPerm field value if set, zero value otherwise. +func (o *OrganizationApiKeyRule) GetSlugPerm() string { + if o == nil || IsNil(o.SlugPerm) { + var ret string + return ret + } + return *o.SlugPerm +} + +// GetSlugPermOk returns a tuple with the SlugPerm field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrganizationApiKeyRule) GetSlugPermOk() (*string, bool) { + if o == nil || IsNil(o.SlugPerm) { + return nil, false + } + return o.SlugPerm, true +} + +// HasSlugPerm returns a boolean if a field has been set. +func (o *OrganizationApiKeyRule) HasSlugPerm() bool { + if o != nil && !IsNil(o.SlugPerm) { + return true + } + + return false +} + +// SetSlugPerm gets a reference to the given string and assigns it to the SlugPerm field. +func (o *OrganizationApiKeyRule) SetSlugPerm(v string) { + o.SlugPerm = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *OrganizationApiKeyRule) GetUpdatedAt() time.Time { + if o == nil || IsNil(o.UpdatedAt) { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrganizationApiKeyRule) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.UpdatedAt) { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *OrganizationApiKeyRule) HasUpdatedAt() bool { + if o != nil && !IsNil(o.UpdatedAt) { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *OrganizationApiKeyRule) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +func (o OrganizationApiKeyRule) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OrganizationApiKeyRule) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CreatedAt) { + toSerialize["created_at"] = o.CreatedAt + } + if !IsNil(o.EnforceRefresh) { + toSerialize["enforce_refresh"] = o.EnforceRefresh + } + if !IsNil(o.IsEnabled) { + toSerialize["is_enabled"] = o.IsEnabled + } + if !IsNil(o.LastAppliedAt) { + toSerialize["last_applied_at"] = o.LastAppliedAt + } + if o.MaxAgeHours.IsSet() { + toSerialize["max_age_hours"] = o.MaxAgeHours.Get() + } + toSerialize["rule_type"] = o.RuleType + if !IsNil(o.Slug) { + toSerialize["slug"] = o.Slug + } + if !IsNil(o.SlugPerm) { + toSerialize["slug_perm"] = o.SlugPerm + } + if !IsNil(o.UpdatedAt) { + toSerialize["updated_at"] = o.UpdatedAt + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *OrganizationApiKeyRule) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "rule_type", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varOrganizationApiKeyRule := _OrganizationApiKeyRule{} + + err = json.Unmarshal(data, &varOrganizationApiKeyRule) + + if err != nil { + return err + } + + *o = OrganizationApiKeyRule(varOrganizationApiKeyRule) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "created_at") + delete(additionalProperties, "enforce_refresh") + delete(additionalProperties, "is_enabled") + delete(additionalProperties, "last_applied_at") + delete(additionalProperties, "max_age_hours") + delete(additionalProperties, "rule_type") + delete(additionalProperties, "slug") + delete(additionalProperties, "slug_perm") + delete(additionalProperties, "updated_at") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableOrganizationApiKeyRule struct { + value *OrganizationApiKeyRule + isSet bool +} + +func (v NullableOrganizationApiKeyRule) Get() *OrganizationApiKeyRule { + return v.value +} + +func (v *NullableOrganizationApiKeyRule) Set(val *OrganizationApiKeyRule) { + v.value = val + v.isSet = true +} + +func (v NullableOrganizationApiKeyRule) IsSet() bool { + return v.isSet +} + +func (v *NullableOrganizationApiKeyRule) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOrganizationApiKeyRule(val *OrganizationApiKeyRule) *NullableOrganizationApiKeyRule { + return &NullableOrganizationApiKeyRule{value: val, isSet: true} +} + +func (v NullableOrganizationApiKeyRule) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOrganizationApiKeyRule) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_organization_api_key_rule_request.go b/model_organization_api_key_rule_request.go new file mode 100644 index 00000000..1e1a52c2 --- /dev/null +++ b/model_organization_api_key_rule_request.go @@ -0,0 +1,331 @@ +/* +Cloudsmith API (v1) + +The API to the Cloudsmith Service + +API version: 1.1388.0 +Contact: support@cloudsmith.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cloudsmith + +import ( + "encoding/json" + "fmt" +) + +// checks if the OrganizationApiKeyRuleRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OrganizationApiKeyRuleRequest{} + +// OrganizationApiKeyRuleRequest struct for OrganizationApiKeyRuleRequest +type OrganizationApiKeyRuleRequest struct { + // When enabled, API keys that violate the organization's rule will be replaced automatically. + EnforceRefresh *bool `json:"enforce_refresh,omitempty"` + // Whether this rule is currently active and enforced. + IsEnabled *bool `json:"is_enabled,omitempty"` + // The maximum permitted age of an API key for use in the organization. API keys older than this will no longer have access until they are refreshed. To disable the rule unset this value. + MaxAgeHours NullableInt64 `json:"max_age_hours,omitempty"` + // If set to True, API keys that violate this rule will be replaced immediately after the request is made. There is no way to undo this. + RefreshImmediately *bool `json:"refresh_immediately,omitempty"` + // Specify which account types this rule applies to: all accounts (deprecated — prefer separate service/user rules), service accounts only, or user accounts only. + RuleType string `json:"rule_type"` + AdditionalProperties map[string]interface{} +} + +type _OrganizationApiKeyRuleRequest OrganizationApiKeyRuleRequest + +// NewOrganizationApiKeyRuleRequest instantiates a new OrganizationApiKeyRuleRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOrganizationApiKeyRuleRequest(ruleType string) *OrganizationApiKeyRuleRequest { + this := OrganizationApiKeyRuleRequest{} + this.RuleType = ruleType + return &this +} + +// NewOrganizationApiKeyRuleRequestWithDefaults instantiates a new OrganizationApiKeyRuleRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOrganizationApiKeyRuleRequestWithDefaults() *OrganizationApiKeyRuleRequest { + this := OrganizationApiKeyRuleRequest{} + return &this +} + +// GetEnforceRefresh returns the EnforceRefresh field value if set, zero value otherwise. +func (o *OrganizationApiKeyRuleRequest) GetEnforceRefresh() bool { + if o == nil || IsNil(o.EnforceRefresh) { + var ret bool + return ret + } + return *o.EnforceRefresh +} + +// GetEnforceRefreshOk returns a tuple with the EnforceRefresh field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrganizationApiKeyRuleRequest) GetEnforceRefreshOk() (*bool, bool) { + if o == nil || IsNil(o.EnforceRefresh) { + return nil, false + } + return o.EnforceRefresh, true +} + +// HasEnforceRefresh returns a boolean if a field has been set. +func (o *OrganizationApiKeyRuleRequest) HasEnforceRefresh() bool { + if o != nil && !IsNil(o.EnforceRefresh) { + return true + } + + return false +} + +// SetEnforceRefresh gets a reference to the given bool and assigns it to the EnforceRefresh field. +func (o *OrganizationApiKeyRuleRequest) SetEnforceRefresh(v bool) { + o.EnforceRefresh = &v +} + +// GetIsEnabled returns the IsEnabled field value if set, zero value otherwise. +func (o *OrganizationApiKeyRuleRequest) GetIsEnabled() bool { + if o == nil || IsNil(o.IsEnabled) { + var ret bool + return ret + } + return *o.IsEnabled +} + +// GetIsEnabledOk returns a tuple with the IsEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrganizationApiKeyRuleRequest) GetIsEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.IsEnabled) { + return nil, false + } + return o.IsEnabled, true +} + +// HasIsEnabled returns a boolean if a field has been set. +func (o *OrganizationApiKeyRuleRequest) HasIsEnabled() bool { + if o != nil && !IsNil(o.IsEnabled) { + return true + } + + return false +} + +// SetIsEnabled gets a reference to the given bool and assigns it to the IsEnabled field. +func (o *OrganizationApiKeyRuleRequest) SetIsEnabled(v bool) { + o.IsEnabled = &v +} + +// GetMaxAgeHours returns the MaxAgeHours field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrganizationApiKeyRuleRequest) GetMaxAgeHours() int64 { + if o == nil || IsNil(o.MaxAgeHours.Get()) { + var ret int64 + return ret + } + return *o.MaxAgeHours.Get() +} + +// GetMaxAgeHoursOk returns a tuple with the MaxAgeHours field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrganizationApiKeyRuleRequest) GetMaxAgeHoursOk() (*int64, bool) { + if o == nil { + return nil, false + } + return o.MaxAgeHours.Get(), o.MaxAgeHours.IsSet() +} + +// HasMaxAgeHours returns a boolean if a field has been set. +func (o *OrganizationApiKeyRuleRequest) HasMaxAgeHours() bool { + if o != nil && o.MaxAgeHours.IsSet() { + return true + } + + return false +} + +// SetMaxAgeHours gets a reference to the given NullableInt64 and assigns it to the MaxAgeHours field. +func (o *OrganizationApiKeyRuleRequest) SetMaxAgeHours(v int64) { + o.MaxAgeHours.Set(&v) +} + +// SetMaxAgeHoursNil sets the value for MaxAgeHours to be an explicit nil +func (o *OrganizationApiKeyRuleRequest) SetMaxAgeHoursNil() { + o.MaxAgeHours.Set(nil) +} + +// UnsetMaxAgeHours ensures that no value is present for MaxAgeHours, not even an explicit nil +func (o *OrganizationApiKeyRuleRequest) UnsetMaxAgeHours() { + o.MaxAgeHours.Unset() +} + +// GetRefreshImmediately returns the RefreshImmediately field value if set, zero value otherwise. +func (o *OrganizationApiKeyRuleRequest) GetRefreshImmediately() bool { + if o == nil || IsNil(o.RefreshImmediately) { + var ret bool + return ret + } + return *o.RefreshImmediately +} + +// GetRefreshImmediatelyOk returns a tuple with the RefreshImmediately field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrganizationApiKeyRuleRequest) GetRefreshImmediatelyOk() (*bool, bool) { + if o == nil || IsNil(o.RefreshImmediately) { + return nil, false + } + return o.RefreshImmediately, true +} + +// HasRefreshImmediately returns a boolean if a field has been set. +func (o *OrganizationApiKeyRuleRequest) HasRefreshImmediately() bool { + if o != nil && !IsNil(o.RefreshImmediately) { + return true + } + + return false +} + +// SetRefreshImmediately gets a reference to the given bool and assigns it to the RefreshImmediately field. +func (o *OrganizationApiKeyRuleRequest) SetRefreshImmediately(v bool) { + o.RefreshImmediately = &v +} + +// GetRuleType returns the RuleType field value +func (o *OrganizationApiKeyRuleRequest) GetRuleType() string { + if o == nil { + var ret string + return ret + } + + return o.RuleType +} + +// GetRuleTypeOk returns a tuple with the RuleType field value +// and a boolean to check if the value has been set. +func (o *OrganizationApiKeyRuleRequest) GetRuleTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.RuleType, true +} + +// SetRuleType sets field value +func (o *OrganizationApiKeyRuleRequest) SetRuleType(v string) { + o.RuleType = v +} + +func (o OrganizationApiKeyRuleRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OrganizationApiKeyRuleRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.EnforceRefresh) { + toSerialize["enforce_refresh"] = o.EnforceRefresh + } + if !IsNil(o.IsEnabled) { + toSerialize["is_enabled"] = o.IsEnabled + } + if o.MaxAgeHours.IsSet() { + toSerialize["max_age_hours"] = o.MaxAgeHours.Get() + } + if !IsNil(o.RefreshImmediately) { + toSerialize["refresh_immediately"] = o.RefreshImmediately + } + toSerialize["rule_type"] = o.RuleType + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *OrganizationApiKeyRuleRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "rule_type", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varOrganizationApiKeyRuleRequest := _OrganizationApiKeyRuleRequest{} + + err = json.Unmarshal(data, &varOrganizationApiKeyRuleRequest) + + if err != nil { + return err + } + + *o = OrganizationApiKeyRuleRequest(varOrganizationApiKeyRuleRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "enforce_refresh") + delete(additionalProperties, "is_enabled") + delete(additionalProperties, "max_age_hours") + delete(additionalProperties, "refresh_immediately") + delete(additionalProperties, "rule_type") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableOrganizationApiKeyRuleRequest struct { + value *OrganizationApiKeyRuleRequest + isSet bool +} + +func (v NullableOrganizationApiKeyRuleRequest) Get() *OrganizationApiKeyRuleRequest { + return v.value +} + +func (v *NullableOrganizationApiKeyRuleRequest) Set(val *OrganizationApiKeyRuleRequest) { + v.value = val + v.isSet = true +} + +func (v NullableOrganizationApiKeyRuleRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableOrganizationApiKeyRuleRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOrganizationApiKeyRuleRequest(val *OrganizationApiKeyRuleRequest) *NullableOrganizationApiKeyRuleRequest { + return &NullableOrganizationApiKeyRuleRequest{value: val, isSet: true} +} + +func (v NullableOrganizationApiKeyRuleRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOrganizationApiKeyRuleRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_organization_api_key_rule_request_patch.go b/model_organization_api_key_rule_request_patch.go new file mode 100644 index 00000000..1b075a92 --- /dev/null +++ b/model_organization_api_key_rule_request_patch.go @@ -0,0 +1,318 @@ +/* +Cloudsmith API (v1) + +The API to the Cloudsmith Service + +API version: 1.1388.0 +Contact: support@cloudsmith.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cloudsmith + +import ( + "encoding/json" +) + +// checks if the OrganizationApiKeyRuleRequestPatch type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OrganizationApiKeyRuleRequestPatch{} + +// OrganizationApiKeyRuleRequestPatch struct for OrganizationApiKeyRuleRequestPatch +type OrganizationApiKeyRuleRequestPatch struct { + // When enabled, API keys that violate the organization's rule will be replaced automatically. + EnforceRefresh *bool `json:"enforce_refresh,omitempty"` + // Whether this rule is currently active and enforced. + IsEnabled *bool `json:"is_enabled,omitempty"` + // The maximum permitted age of an API key for use in the organization. API keys older than this will no longer have access until they are refreshed. To disable the rule unset this value. + MaxAgeHours NullableInt64 `json:"max_age_hours,omitempty"` + // If set to True, API keys that violate this rule will be replaced immediately after the request is made. There is no way to undo this. + RefreshImmediately *bool `json:"refresh_immediately,omitempty"` + // Specify which account types this rule applies to: all accounts (deprecated — prefer separate service/user rules), service accounts only, or user accounts only. + RuleType *string `json:"rule_type,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _OrganizationApiKeyRuleRequestPatch OrganizationApiKeyRuleRequestPatch + +// NewOrganizationApiKeyRuleRequestPatch instantiates a new OrganizationApiKeyRuleRequestPatch object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOrganizationApiKeyRuleRequestPatch() *OrganizationApiKeyRuleRequestPatch { + this := OrganizationApiKeyRuleRequestPatch{} + return &this +} + +// NewOrganizationApiKeyRuleRequestPatchWithDefaults instantiates a new OrganizationApiKeyRuleRequestPatch object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOrganizationApiKeyRuleRequestPatchWithDefaults() *OrganizationApiKeyRuleRequestPatch { + this := OrganizationApiKeyRuleRequestPatch{} + return &this +} + +// GetEnforceRefresh returns the EnforceRefresh field value if set, zero value otherwise. +func (o *OrganizationApiKeyRuleRequestPatch) GetEnforceRefresh() bool { + if o == nil || IsNil(o.EnforceRefresh) { + var ret bool + return ret + } + return *o.EnforceRefresh +} + +// GetEnforceRefreshOk returns a tuple with the EnforceRefresh field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrganizationApiKeyRuleRequestPatch) GetEnforceRefreshOk() (*bool, bool) { + if o == nil || IsNil(o.EnforceRefresh) { + return nil, false + } + return o.EnforceRefresh, true +} + +// HasEnforceRefresh returns a boolean if a field has been set. +func (o *OrganizationApiKeyRuleRequestPatch) HasEnforceRefresh() bool { + if o != nil && !IsNil(o.EnforceRefresh) { + return true + } + + return false +} + +// SetEnforceRefresh gets a reference to the given bool and assigns it to the EnforceRefresh field. +func (o *OrganizationApiKeyRuleRequestPatch) SetEnforceRefresh(v bool) { + o.EnforceRefresh = &v +} + +// GetIsEnabled returns the IsEnabled field value if set, zero value otherwise. +func (o *OrganizationApiKeyRuleRequestPatch) GetIsEnabled() bool { + if o == nil || IsNil(o.IsEnabled) { + var ret bool + return ret + } + return *o.IsEnabled +} + +// GetIsEnabledOk returns a tuple with the IsEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrganizationApiKeyRuleRequestPatch) GetIsEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.IsEnabled) { + return nil, false + } + return o.IsEnabled, true +} + +// HasIsEnabled returns a boolean if a field has been set. +func (o *OrganizationApiKeyRuleRequestPatch) HasIsEnabled() bool { + if o != nil && !IsNil(o.IsEnabled) { + return true + } + + return false +} + +// SetIsEnabled gets a reference to the given bool and assigns it to the IsEnabled field. +func (o *OrganizationApiKeyRuleRequestPatch) SetIsEnabled(v bool) { + o.IsEnabled = &v +} + +// GetMaxAgeHours returns the MaxAgeHours field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrganizationApiKeyRuleRequestPatch) GetMaxAgeHours() int64 { + if o == nil || IsNil(o.MaxAgeHours.Get()) { + var ret int64 + return ret + } + return *o.MaxAgeHours.Get() +} + +// GetMaxAgeHoursOk returns a tuple with the MaxAgeHours field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrganizationApiKeyRuleRequestPatch) GetMaxAgeHoursOk() (*int64, bool) { + if o == nil { + return nil, false + } + return o.MaxAgeHours.Get(), o.MaxAgeHours.IsSet() +} + +// HasMaxAgeHours returns a boolean if a field has been set. +func (o *OrganizationApiKeyRuleRequestPatch) HasMaxAgeHours() bool { + if o != nil && o.MaxAgeHours.IsSet() { + return true + } + + return false +} + +// SetMaxAgeHours gets a reference to the given NullableInt64 and assigns it to the MaxAgeHours field. +func (o *OrganizationApiKeyRuleRequestPatch) SetMaxAgeHours(v int64) { + o.MaxAgeHours.Set(&v) +} + +// SetMaxAgeHoursNil sets the value for MaxAgeHours to be an explicit nil +func (o *OrganizationApiKeyRuleRequestPatch) SetMaxAgeHoursNil() { + o.MaxAgeHours.Set(nil) +} + +// UnsetMaxAgeHours ensures that no value is present for MaxAgeHours, not even an explicit nil +func (o *OrganizationApiKeyRuleRequestPatch) UnsetMaxAgeHours() { + o.MaxAgeHours.Unset() +} + +// GetRefreshImmediately returns the RefreshImmediately field value if set, zero value otherwise. +func (o *OrganizationApiKeyRuleRequestPatch) GetRefreshImmediately() bool { + if o == nil || IsNil(o.RefreshImmediately) { + var ret bool + return ret + } + return *o.RefreshImmediately +} + +// GetRefreshImmediatelyOk returns a tuple with the RefreshImmediately field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrganizationApiKeyRuleRequestPatch) GetRefreshImmediatelyOk() (*bool, bool) { + if o == nil || IsNil(o.RefreshImmediately) { + return nil, false + } + return o.RefreshImmediately, true +} + +// HasRefreshImmediately returns a boolean if a field has been set. +func (o *OrganizationApiKeyRuleRequestPatch) HasRefreshImmediately() bool { + if o != nil && !IsNil(o.RefreshImmediately) { + return true + } + + return false +} + +// SetRefreshImmediately gets a reference to the given bool and assigns it to the RefreshImmediately field. +func (o *OrganizationApiKeyRuleRequestPatch) SetRefreshImmediately(v bool) { + o.RefreshImmediately = &v +} + +// GetRuleType returns the RuleType field value if set, zero value otherwise. +func (o *OrganizationApiKeyRuleRequestPatch) GetRuleType() string { + if o == nil || IsNil(o.RuleType) { + var ret string + return ret + } + return *o.RuleType +} + +// GetRuleTypeOk returns a tuple with the RuleType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrganizationApiKeyRuleRequestPatch) GetRuleTypeOk() (*string, bool) { + if o == nil || IsNil(o.RuleType) { + return nil, false + } + return o.RuleType, true +} + +// HasRuleType returns a boolean if a field has been set. +func (o *OrganizationApiKeyRuleRequestPatch) HasRuleType() bool { + if o != nil && !IsNil(o.RuleType) { + return true + } + + return false +} + +// SetRuleType gets a reference to the given string and assigns it to the RuleType field. +func (o *OrganizationApiKeyRuleRequestPatch) SetRuleType(v string) { + o.RuleType = &v +} + +func (o OrganizationApiKeyRuleRequestPatch) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OrganizationApiKeyRuleRequestPatch) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.EnforceRefresh) { + toSerialize["enforce_refresh"] = o.EnforceRefresh + } + if !IsNil(o.IsEnabled) { + toSerialize["is_enabled"] = o.IsEnabled + } + if o.MaxAgeHours.IsSet() { + toSerialize["max_age_hours"] = o.MaxAgeHours.Get() + } + if !IsNil(o.RefreshImmediately) { + toSerialize["refresh_immediately"] = o.RefreshImmediately + } + if !IsNil(o.RuleType) { + toSerialize["rule_type"] = o.RuleType + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *OrganizationApiKeyRuleRequestPatch) UnmarshalJSON(data []byte) (err error) { + varOrganizationApiKeyRuleRequestPatch := _OrganizationApiKeyRuleRequestPatch{} + + err = json.Unmarshal(data, &varOrganizationApiKeyRuleRequestPatch) + + if err != nil { + return err + } + + *o = OrganizationApiKeyRuleRequestPatch(varOrganizationApiKeyRuleRequestPatch) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "enforce_refresh") + delete(additionalProperties, "is_enabled") + delete(additionalProperties, "max_age_hours") + delete(additionalProperties, "refresh_immediately") + delete(additionalProperties, "rule_type") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableOrganizationApiKeyRuleRequestPatch struct { + value *OrganizationApiKeyRuleRequestPatch + isSet bool +} + +func (v NullableOrganizationApiKeyRuleRequestPatch) Get() *OrganizationApiKeyRuleRequestPatch { + return v.value +} + +func (v *NullableOrganizationApiKeyRuleRequestPatch) Set(val *OrganizationApiKeyRuleRequestPatch) { + v.value = val + v.isSet = true +} + +func (v NullableOrganizationApiKeyRuleRequestPatch) IsSet() bool { + return v.isSet +} + +func (v *NullableOrganizationApiKeyRuleRequestPatch) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOrganizationApiKeyRuleRequestPatch(val *OrganizationApiKeyRuleRequestPatch) *NullableOrganizationApiKeyRuleRequestPatch { + return &NullableOrganizationApiKeyRuleRequestPatch{value: val, isSet: true} +} + +func (v NullableOrganizationApiKeyRuleRequestPatch) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOrganizationApiKeyRuleRequestPatch) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_organization_custom_domain_nested_repo.go b/model_organization_custom_domain_nested_repo.go index 63e2194a..4d0e3ab8 100644 --- a/model_organization_custom_domain_nested_repo.go +++ b/model_organization_custom_domain_nested_repo.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_custom_domains.go b/model_organization_custom_domains.go index 8ed94346..843c6538 100644 --- a/model_organization_custom_domains.go +++ b/model_organization_custom_domains.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_group_sync.go b/model_organization_group_sync.go index 76a7cad5..34774752 100644 --- a/model_organization_group_sync.go +++ b/model_organization_group_sync.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_group_sync_request.go b/model_organization_group_sync_request.go index 82f3ef21..3173392c 100644 --- a/model_organization_group_sync_request.go +++ b/model_organization_group_sync_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_group_sync_status.go b/model_organization_group_sync_status.go index 4d5f91e1..23a4b17e 100644 --- a/model_organization_group_sync_status.go +++ b/model_organization_group_sync_status.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_invite.go b/model_organization_invite.go index acb2e14d..81ede258 100644 --- a/model_organization_invite.go +++ b/model_organization_invite.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_invite_extend.go b/model_organization_invite_extend.go index c223d705..485ddd41 100644 --- a/model_organization_invite_extend.go +++ b/model_organization_invite_extend.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_invite_request.go b/model_organization_invite_request.go index f95f476d..7ae9e341 100644 --- a/model_organization_invite_request.go +++ b/model_organization_invite_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_invite_update.go b/model_organization_invite_update.go index df76262b..02a03a4a 100644 --- a/model_organization_invite_update.go +++ b/model_organization_invite_update.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_invite_update_request_patch.go b/model_organization_invite_update_request_patch.go index 49cc495c..6f614e49 100644 --- a/model_organization_invite_update_request_patch.go +++ b/model_organization_invite_update_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_membership.go b/model_organization_membership.go index 8d1805f1..cb1ae5e0 100644 --- a/model_organization_membership.go +++ b/model_organization_membership.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_membership_role_update.go b/model_organization_membership_role_update.go index 7d3811f6..7ed6d579 100644 --- a/model_organization_membership_role_update.go +++ b/model_organization_membership_role_update.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_membership_role_update_request_patch.go b/model_organization_membership_role_update_request_patch.go index 329c15f3..d7fddbc8 100644 --- a/model_organization_membership_role_update_request_patch.go +++ b/model_organization_membership_role_update_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_membership_visibility_update.go b/model_organization_membership_visibility_update.go index 5068e749..74b96ab7 100644 --- a/model_organization_membership_visibility_update.go +++ b/model_organization_membership_visibility_update.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_membership_visibility_update_request_patch.go b/model_organization_membership_visibility_update_request_patch.go index b5fa072a..8a5f393f 100644 --- a/model_organization_membership_visibility_update_request_patch.go +++ b/model_organization_membership_visibility_update_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_package_license_policy.go b/model_organization_package_license_policy.go index 35d91297..0b64eb00 100644 --- a/model_organization_package_license_policy.go +++ b/model_organization_package_license_policy.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_package_license_policy_request.go b/model_organization_package_license_policy_request.go index 99ad2ce4..7d7a630f 100644 --- a/model_organization_package_license_policy_request.go +++ b/model_organization_package_license_policy_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_package_license_policy_request_patch.go b/model_organization_package_license_policy_request_patch.go index 7040b925..4c88f0ba 100644 --- a/model_organization_package_license_policy_request_patch.go +++ b/model_organization_package_license_policy_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_package_vulnerability_policy.go b/model_organization_package_vulnerability_policy.go index ccb726bc..69a4d763 100644 --- a/model_organization_package_vulnerability_policy.go +++ b/model_organization_package_vulnerability_policy.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_package_vulnerability_policy_request.go b/model_organization_package_vulnerability_policy_request.go index 433adc6d..9925fc9f 100644 --- a/model_organization_package_vulnerability_policy_request.go +++ b/model_organization_package_vulnerability_policy_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_package_vulnerability_policy_request_patch.go b/model_organization_package_vulnerability_policy_request_patch.go index 46427ffe..133201c6 100644 --- a/model_organization_package_vulnerability_policy_request_patch.go +++ b/model_organization_package_vulnerability_policy_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_saml_auth.go b/model_organization_saml_auth.go index 81bdfb6e..20991659 100644 --- a/model_organization_saml_auth.go +++ b/model_organization_saml_auth.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_saml_auth_request_patch.go b/model_organization_saml_auth_request_patch.go index 8e1f387e..f4721329 100644 --- a/model_organization_saml_auth_request_patch.go +++ b/model_organization_saml_auth_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_team.go b/model_organization_team.go index 1b34d475..fd86bbdd 100644 --- a/model_organization_team.go +++ b/model_organization_team.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_team_invite.go b/model_organization_team_invite.go index c5eed8a8..630edd8d 100644 --- a/model_organization_team_invite.go +++ b/model_organization_team_invite.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_team_members.go b/model_organization_team_members.go index 98ac43c8..77642f2b 100644 --- a/model_organization_team_members.go +++ b/model_organization_team_members.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_team_request.go b/model_organization_team_request.go index 187e7b3a..d7d7b6fa 100644 --- a/model_organization_team_request.go +++ b/model_organization_team_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_team_request_patch.go b/model_organization_team_request_patch.go index 6c9e5ab9..07104732 100644 --- a/model_organization_team_request_patch.go +++ b/model_organization_team_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_team_service_member.go b/model_organization_team_service_member.go index a4ae45b2..255252c3 100644 --- a/model_organization_team_service_member.go +++ b/model_organization_team_service_member.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_usage.go b/model_organization_usage.go index 74eead09..cc6d2464 100644 --- a/model_organization_usage.go +++ b/model_organization_usage.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_usage_update.go b/model_organization_usage_update.go index 43ebbae3..835b43a5 100644 --- a/model_organization_usage_update.go +++ b/model_organization_usage_update.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_usage_update_request_patch.go b/model_organization_usage_update_request_patch.go index 34b5ed8e..118853a5 100644 --- a/model_organization_usage_update_request_patch.go +++ b/model_organization_usage_update_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_orgs_retrieve_usage_limits_200_response.go b/model_orgs_retrieve_usage_limits_200_response.go index fe7507cd..f8d60eae 100644 --- a/model_orgs_retrieve_usage_limits_200_response.go +++ b/model_orgs_retrieve_usage_limits_200_response.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_orgs_update_usage_limits_200_response.go b/model_orgs_update_usage_limits_200_response.go index 25dff271..1d10899d 100644 --- a/model_orgs_update_usage_limits_200_response.go +++ b/model_orgs_update_usage_limits_200_response.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_p2_package_upload.go b/model_p2_package_upload.go index 3266a3e5..54153808 100644 --- a/model_p2_package_upload.go +++ b/model_p2_package_upload.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -31,8 +31,10 @@ type P2PackageUpload struct { DependenciesChecksumMd5 NullableString `json:"dependencies_checksum_md5,omitempty"` DependenciesUrl *string `json:"dependencies_url,omitempty"` // A textual description of this package. - Description NullableString `json:"description,omitempty"` - DisplayName *string `json:"display_name,omitempty"` + Description NullableString `json:"description,omitempty"` + DisplayName *string `json:"display_name,omitempty"` + // Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + DisplaySource *string `json:"display_source,omitempty"` Distro NullableDistribution `json:"distro,omitempty"` DistroVersion *DistributionVersion `json:"distro_version,omitempty"` Downloads *int64 `json:"downloads,omitempty"` @@ -49,25 +51,23 @@ type P2PackageUpload struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The name of this package. @@ -141,10 +141,9 @@ type P2PackageUpload struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -520,6 +519,38 @@ func (o *P2PackageUpload) SetDisplayName(v string) { o.DisplayName = &v } +// GetDisplaySource returns the DisplaySource field value if set, zero value otherwise. +func (o *P2PackageUpload) GetDisplaySource() string { + if o == nil || IsNil(o.DisplaySource) { + var ret string + return ret + } + return *o.DisplaySource +} + +// GetDisplaySourceOk returns a tuple with the DisplaySource field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *P2PackageUpload) GetDisplaySourceOk() (*string, bool) { + if o == nil || IsNil(o.DisplaySource) { + return nil, false + } + return o.DisplaySource, true +} + +// HasDisplaySource returns a boolean if a field has been set. +func (o *P2PackageUpload) HasDisplaySource() bool { + if o != nil && !IsNil(o.DisplaySource) { + return true + } + + return false +} + +// SetDisplaySource gets a reference to the given string and assigns it to the DisplaySource field. +func (o *P2PackageUpload) SetDisplaySource(v string) { + o.DisplaySource = &v +} + // GetDistro returns the Distro field value if set, zero value otherwise (both if not set or set to explicit null). func (o *P2PackageUpload) GetDistro() Distribution { if o == nil || IsNil(o.Distro.Get()) { @@ -1161,38 +1192,6 @@ func (o *P2PackageUpload) SetIsHidden(v bool) { o.IsHidden = &v } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *P2PackageUpload) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *P2PackageUpload) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *P2PackageUpload) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *P2PackageUpload) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *P2PackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3214,49 +3213,6 @@ func (o *P2PackageUpload) SetVersionOrig(v string) { o.VersionOrig = &v } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *P2PackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *P2PackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *P2PackageUpload) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *P2PackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *P2PackageUpload) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *P2PackageUpload) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *P2PackageUpload) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3329,6 +3285,9 @@ func (o P2PackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.DisplayName) { toSerialize["display_name"] = o.DisplayName } + if !IsNil(o.DisplaySource) { + toSerialize["display_source"] = o.DisplaySource + } if o.Distro.IsSet() { toSerialize["distro"] = o.Distro.Get() } @@ -3386,9 +3345,6 @@ func (o P2PackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3563,9 +3519,6 @@ func (o P2PackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3601,6 +3554,7 @@ func (o *P2PackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "dependencies_url") delete(additionalProperties, "description") delete(additionalProperties, "display_name") + delete(additionalProperties, "display_source") delete(additionalProperties, "distro") delete(additionalProperties, "distro_version") delete(additionalProperties, "downloads") @@ -3620,7 +3574,6 @@ func (o *P2PackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3679,7 +3632,6 @@ func (o *P2PackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") - delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_p2_package_upload_request.go b/model_p2_package_upload_request.go index c9e3ac5c..d3c20b6f 100644 --- a/model_p2_package_upload_request.go +++ b/model_p2_package_upload_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -21,15 +21,12 @@ var _ MappedNullable = &P2PackageUploadRequest{} // P2PackageUploadRequest struct for P2PackageUploadRequest type P2PackageUploadRequest struct { - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` // The primary file for the package. PackageFile string `json:"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. Republish *bool `json:"republish,omitempty"` // A comma-separated values list of tags to add to the package. - Tags NullableString `json:"tags,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + Tags NullableString `json:"tags,omitempty"` AdditionalProperties map[string]interface{} } @@ -53,38 +50,6 @@ func NewP2PackageUploadRequestWithDefaults() *P2PackageUploadRequest { return &this } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *P2PackageUploadRequest) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *P2PackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *P2PackageUploadRequest) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *P2PackageUploadRequest) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetPackageFile returns the PackageFile field value func (o *P2PackageUploadRequest) GetPackageFile() string { if o == nil { @@ -184,49 +149,6 @@ func (o *P2PackageUploadRequest) UnsetTags() { o.Tags.Unset() } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *P2PackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *P2PackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *P2PackageUploadRequest) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *P2PackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *P2PackageUploadRequest) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *P2PackageUploadRequest) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - func (o P2PackageUploadRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -237,9 +159,6 @@ func (o P2PackageUploadRequest) MarshalJSON() ([]byte, error) { func (o P2PackageUploadRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } toSerialize["package_file"] = o.PackageFile if !IsNil(o.Republish) { toSerialize["republish"] = o.Republish @@ -247,9 +166,6 @@ func (o P2PackageUploadRequest) ToMap() (map[string]interface{}, error) { if o.Tags.IsSet() { toSerialize["tags"] = o.Tags.Get() } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -293,11 +209,9 @@ func (o *P2PackageUploadRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "package_file") delete(additionalProperties, "republish") delete(additionalProperties, "tags") - delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_package.go b/model_package.go index 42b8e1e7..b2aa55b0 100644 --- a/model_package.go +++ b/model_package.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -31,8 +31,10 @@ type Package struct { DependenciesChecksumMd5 NullableString `json:"dependencies_checksum_md5,omitempty"` DependenciesUrl *string `json:"dependencies_url,omitempty"` // A textual description of this package. - Description NullableString `json:"description,omitempty"` - DisplayName *string `json:"display_name,omitempty"` + Description NullableString `json:"description,omitempty"` + DisplayName *string `json:"display_name,omitempty"` + // Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + DisplaySource *string `json:"display_source,omitempty"` Distro NullableDistribution `json:"distro,omitempty"` DistroVersion *DistributionVersion `json:"distro_version,omitempty"` Downloads *int64 `json:"downloads,omitempty"` @@ -524,6 +526,38 @@ func (o *Package) SetDisplayName(v string) { o.DisplayName = &v } +// GetDisplaySource returns the DisplaySource field value if set, zero value otherwise. +func (o *Package) GetDisplaySource() string { + if o == nil || IsNil(o.DisplaySource) { + var ret string + return ret + } + return *o.DisplaySource +} + +// GetDisplaySourceOk returns a tuple with the DisplaySource field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Package) GetDisplaySourceOk() (*string, bool) { + if o == nil || IsNil(o.DisplaySource) { + return nil, false + } + return o.DisplaySource, true +} + +// HasDisplaySource returns a boolean if a field has been set. +func (o *Package) HasDisplaySource() bool { + if o != nil && !IsNil(o.DisplaySource) { + return true + } + + return false +} + +// SetDisplaySource gets a reference to the given string and assigns it to the DisplaySource field. +func (o *Package) SetDisplaySource(v string) { + o.DisplaySource = &v +} + // GetDistro returns the Distro field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Package) GetDistro() Distribution { if o == nil || IsNil(o.Distro.Get()) { @@ -3408,6 +3442,9 @@ func (o Package) ToMap() (map[string]interface{}, error) { if !IsNil(o.DisplayName) { toSerialize["display_name"] = o.DisplayName } + if !IsNil(o.DisplaySource) { + toSerialize["display_source"] = o.DisplaySource + } if o.Distro.IsSet() { toSerialize["distro"] = o.Distro.Get() } @@ -3686,6 +3723,7 @@ func (o *Package) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "dependencies_url") delete(additionalProperties, "description") delete(additionalProperties, "display_name") + delete(additionalProperties, "display_source") delete(additionalProperties, "distro") delete(additionalProperties, "distro_version") delete(additionalProperties, "downloads") diff --git a/model_package_bulk_action.go b/model_package_bulk_action.go index c9562085..e49081d4 100644 --- a/model_package_bulk_action.go +++ b/model_package_bulk_action.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_package_bulk_action_response.go b/model_package_bulk_action_response.go index 1ce76d75..b1deb432 100644 --- a/model_package_bulk_action_response.go +++ b/model_package_bulk_action_response.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_package_copy.go b/model_package_copy.go index fb313cff..7acc9723 100644 --- a/model_package_copy.go +++ b/model_package_copy.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -31,8 +31,10 @@ type PackageCopy struct { DependenciesChecksumMd5 NullableString `json:"dependencies_checksum_md5,omitempty"` DependenciesUrl *string `json:"dependencies_url,omitempty"` // A textual description of this package. - Description NullableString `json:"description,omitempty"` - DisplayName *string `json:"display_name,omitempty"` + Description NullableString `json:"description,omitempty"` + DisplayName *string `json:"display_name,omitempty"` + // Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + DisplaySource *string `json:"display_source,omitempty"` Distro NullableDistribution `json:"distro,omitempty"` DistroVersion *DistributionVersion `json:"distro_version,omitempty"` Downloads *int64 `json:"downloads,omitempty"` @@ -51,25 +53,23 @@ type PackageCopy struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The name of this package. @@ -146,10 +146,9 @@ type PackageCopy struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -525,6 +524,38 @@ func (o *PackageCopy) SetDisplayName(v string) { o.DisplayName = &v } +// GetDisplaySource returns the DisplaySource field value if set, zero value otherwise. +func (o *PackageCopy) GetDisplaySource() string { + if o == nil || IsNil(o.DisplaySource) { + var ret string + return ret + } + return *o.DisplaySource +} + +// GetDisplaySourceOk returns a tuple with the DisplaySource field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageCopy) GetDisplaySourceOk() (*string, bool) { + if o == nil || IsNil(o.DisplaySource) { + return nil, false + } + return o.DisplaySource, true +} + +// HasDisplaySource returns a boolean if a field has been set. +func (o *PackageCopy) HasDisplaySource() bool { + if o != nil && !IsNil(o.DisplaySource) { + return true + } + + return false +} + +// SetDisplaySource gets a reference to the given string and assigns it to the DisplaySource field. +func (o *PackageCopy) SetDisplaySource(v string) { + o.DisplaySource = &v +} + // GetDistro returns the Distro field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PackageCopy) GetDistro() Distribution { if o == nil || IsNil(o.Distro.Get()) { @@ -1209,38 +1240,6 @@ func (o *PackageCopy) SetIsHidden(v bool) { o.IsHidden = &v } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *PackageCopy) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PackageCopy) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *PackageCopy) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *PackageCopy) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *PackageCopy) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3294,49 +3293,6 @@ func (o *PackageCopy) SetVersionOrig(v string) { o.VersionOrig = &v } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PackageCopy) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PackageCopy) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *PackageCopy) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *PackageCopy) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *PackageCopy) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *PackageCopy) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *PackageCopy) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3409,6 +3365,9 @@ func (o PackageCopy) ToMap() (map[string]interface{}, error) { if !IsNil(o.DisplayName) { toSerialize["display_name"] = o.DisplayName } + if !IsNil(o.DisplaySource) { + toSerialize["display_source"] = o.DisplaySource + } if o.Distro.IsSet() { toSerialize["distro"] = o.Distro.Get() } @@ -3469,9 +3428,6 @@ func (o PackageCopy) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3649,9 +3605,6 @@ func (o PackageCopy) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3687,6 +3640,7 @@ func (o *PackageCopy) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "dependencies_url") delete(additionalProperties, "description") delete(additionalProperties, "display_name") + delete(additionalProperties, "display_source") delete(additionalProperties, "distro") delete(additionalProperties, "distro_version") delete(additionalProperties, "downloads") @@ -3707,7 +3661,6 @@ func (o *PackageCopy) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3767,7 +3720,6 @@ func (o *PackageCopy) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") - delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_package_copy_request.go b/model_package_copy_request.go index e0597a11..2ec6f47d 100644 --- a/model_package_copy_request.go +++ b/model_package_copy_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -23,11 +23,8 @@ var _ MappedNullable = &PackageCopyRequest{} type PackageCopyRequest struct { // The name of the destination repository without the namespace. Destination string `json:"destination"` - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` // If true, the package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. - Republish *bool `json:"republish,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + Republish *bool `json:"republish,omitempty"` AdditionalProperties map[string]interface{} } @@ -75,38 +72,6 @@ func (o *PackageCopyRequest) SetDestination(v string) { o.Destination = v } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *PackageCopyRequest) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PackageCopyRequest) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *PackageCopyRequest) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *PackageCopyRequest) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetRepublish returns the Republish field value if set, zero value otherwise. func (o *PackageCopyRequest) GetRepublish() bool { if o == nil || IsNil(o.Republish) { @@ -139,49 +104,6 @@ func (o *PackageCopyRequest) SetRepublish(v bool) { o.Republish = &v } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PackageCopyRequest) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PackageCopyRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *PackageCopyRequest) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *PackageCopyRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *PackageCopyRequest) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *PackageCopyRequest) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - func (o PackageCopyRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -193,15 +115,9 @@ func (o PackageCopyRequest) MarshalJSON() ([]byte, error) { func (o PackageCopyRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["destination"] = o.Destination - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } if !IsNil(o.Republish) { toSerialize["republish"] = o.Republish } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -246,9 +162,7 @@ func (o *PackageCopyRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "destination") - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "republish") - delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_package_deny_policy.go b/model_package_deny_policy.go index de4596ae..bae4876e 100644 --- a/model_package_deny_policy.go +++ b/model_package_deny_policy.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_package_deny_policy_request.go b/model_package_deny_policy_request.go index 981770bd..dbb779c6 100644 --- a/model_package_deny_policy_request.go +++ b/model_package_deny_policy_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_package_deny_policy_request_patch.go b/model_package_deny_policy_request_patch.go index 49a798da..8aba6b5e 100644 --- a/model_package_deny_policy_request_patch.go +++ b/model_package_deny_policy_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_package_dependencies.go b/model_package_dependencies.go index 7fca9dfb..0ebd844a 100644 --- a/model_package_dependencies.go +++ b/model_package_dependencies.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_package_dependency.go b/model_package_dependency.go index ccd33f6d..19692537 100644 --- a/model_package_dependency.go +++ b/model_package_dependency.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_package_detail.go b/model_package_detail.go index d2319d9f..4084e0c9 100644 --- a/model_package_detail.go +++ b/model_package_detail.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -31,8 +31,10 @@ type PackageDetail struct { DependenciesChecksumMd5 NullableString `json:"dependencies_checksum_md5,omitempty"` DependenciesUrl *string `json:"dependencies_url,omitempty"` // A textual description of this package. - Description NullableString `json:"description,omitempty"` - DisplayName *string `json:"display_name,omitempty"` + Description NullableString `json:"description,omitempty"` + DisplayName *string `json:"display_name,omitempty"` + // Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + DisplaySource *string `json:"display_source,omitempty"` Distro NullableDistribution `json:"distro,omitempty"` DistroVersion *DistributionVersion `json:"distro_version,omitempty"` Downloads *int64 `json:"downloads,omitempty"` @@ -526,6 +528,38 @@ func (o *PackageDetail) SetDisplayName(v string) { o.DisplayName = &v } +// GetDisplaySource returns the DisplaySource field value if set, zero value otherwise. +func (o *PackageDetail) GetDisplaySource() string { + if o == nil || IsNil(o.DisplaySource) { + var ret string + return ret + } + return *o.DisplaySource +} + +// GetDisplaySourceOk returns a tuple with the DisplaySource field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetDisplaySourceOk() (*string, bool) { + if o == nil || IsNil(o.DisplaySource) { + return nil, false + } + return o.DisplaySource, true +} + +// HasDisplaySource returns a boolean if a field has been set. +func (o *PackageDetail) HasDisplaySource() bool { + if o != nil && !IsNil(o.DisplaySource) { + return true + } + + return false +} + +// SetDisplaySource gets a reference to the given string and assigns it to the DisplaySource field. +func (o *PackageDetail) SetDisplaySource(v string) { + o.DisplaySource = &v +} + // GetDistro returns the Distro field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PackageDetail) GetDistro() Distribution { if o == nil || IsNil(o.Distro.Get()) { @@ -3442,6 +3476,9 @@ func (o PackageDetail) ToMap() (map[string]interface{}, error) { if !IsNil(o.DisplayName) { toSerialize["display_name"] = o.DisplayName } + if !IsNil(o.DisplaySource) { + toSerialize["display_source"] = o.DisplaySource + } if o.Distro.IsSet() { toSerialize["distro"] = o.Distro.Get() } @@ -3723,6 +3760,7 @@ func (o *PackageDetail) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "dependencies_url") delete(additionalProperties, "description") delete(additionalProperties, "display_name") + delete(additionalProperties, "display_source") delete(additionalProperties, "distro") delete(additionalProperties, "distro_version") delete(additionalProperties, "downloads") diff --git a/model_package_file.go b/model_package_file.go index f93c97ab..fbe0c88c 100644 --- a/model_package_file.go +++ b/model_package_file.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_package_file_parts_upload.go b/model_package_file_parts_upload.go index d17c705c..0b3b4ebd 100644 --- a/model_package_file_parts_upload.go +++ b/model_package_file_parts_upload.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_package_file_upload.go b/model_package_file_upload.go index 5fcd0b76..12fded0d 100644 --- a/model_package_file_upload.go +++ b/model_package_file_upload.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_package_file_upload_request.go b/model_package_file_upload_request.go index e8c44d10..830c0a3e 100644 --- a/model_package_file_upload_request.go +++ b/model_package_file_upload_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_package_group.go b/model_package_group.go index 928b382c..dd1bdcea 100644 --- a/model_package_group.go +++ b/model_package_group.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_package_license.go b/model_package_license.go index b91c991e..6b44768a 100644 --- a/model_package_license.go +++ b/model_package_license.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -21,13 +21,10 @@ var _ MappedNullable = &PackageLicense{} // PackageLicense struct for PackageLicense type PackageLicense struct { - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` - LicenseNotes NullableString `json:"license_notes,omitempty"` - LicenseOverride NullableString `json:"license_override,omitempty"` - LicenseUrl NullableString `json:"license_url,omitempty"` - SpdxLicense string `json:"spdx_license"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + LicenseNotes NullableString `json:"license_notes,omitempty"` + LicenseOverride NullableString `json:"license_override,omitempty"` + LicenseUrl NullableString `json:"license_url,omitempty"` + SpdxLicense string `json:"spdx_license"` AdditionalProperties map[string]interface{} } @@ -55,38 +52,6 @@ func NewPackageLicenseWithDefaults() *PackageLicense { return &this } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *PackageLicense) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PackageLicense) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *PackageLicense) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *PackageLicense) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetLicenseNotes returns the LicenseNotes field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PackageLicense) GetLicenseNotes() string { if o == nil || IsNil(o.LicenseNotes.Get()) { @@ -240,49 +205,6 @@ func (o *PackageLicense) SetSpdxLicense(v string) { o.SpdxLicense = v } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PackageLicense) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PackageLicense) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *PackageLicense) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *PackageLicense) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *PackageLicense) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *PackageLicense) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - func (o PackageLicense) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -293,9 +215,6 @@ func (o PackageLicense) MarshalJSON() ([]byte, error) { func (o PackageLicense) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } if o.LicenseNotes.IsSet() { toSerialize["license_notes"] = o.LicenseNotes.Get() } @@ -306,9 +225,6 @@ func (o PackageLicense) ToMap() (map[string]interface{}, error) { toSerialize["license_url"] = o.LicenseUrl.Get() } toSerialize["spdx_license"] = o.SpdxLicense - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -352,12 +268,10 @@ func (o *PackageLicense) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "license_notes") delete(additionalProperties, "license_override") delete(additionalProperties, "license_url") delete(additionalProperties, "spdx_license") - delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_package_license_policy_evaluation_request.go b/model_package_license_policy_evaluation_request.go index b59c8780..6d7ce2e4 100644 --- a/model_package_license_policy_evaluation_request.go +++ b/model_package_license_policy_evaluation_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_package_license_policy_violation_log.go b/model_package_license_policy_violation_log.go index 90e4192a..db3539fb 100644 --- a/model_package_license_policy_violation_log.go +++ b/model_package_license_policy_violation_log.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_package_license_policy_violation_log_cursor_page.go b/model_package_license_policy_violation_log_cursor_page.go index f06f3d37..f4f56b46 100644 --- a/model_package_license_policy_violation_log_cursor_page.go +++ b/model_package_license_policy_violation_log_cursor_page.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_package_license_request_patch.go b/model_package_license_request_patch.go index e7de0f7d..7fbd9cc4 100644 --- a/model_package_license_request_patch.go +++ b/model_package_license_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -21,14 +21,11 @@ var _ MappedNullable = &PackageLicenseRequestPatch{} // PackageLicenseRequestPatch struct for PackageLicenseRequestPatch type PackageLicenseRequestPatch struct { - Action NullableString `json:"action,omitempty"` - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` - LicenseNotes NullableString `json:"license_notes,omitempty"` - LicenseOverride NullableString `json:"license_override,omitempty"` - LicenseUrl NullableString `json:"license_url,omitempty"` - SpdxLicense string `json:"spdx_license"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + Action NullableString `json:"action,omitempty"` + LicenseNotes NullableString `json:"license_notes,omitempty"` + LicenseOverride NullableString `json:"license_override,omitempty"` + LicenseUrl NullableString `json:"license_url,omitempty"` + SpdxLicense string `json:"spdx_license"` AdditionalProperties map[string]interface{} } @@ -103,38 +100,6 @@ func (o *PackageLicenseRequestPatch) UnsetAction() { o.Action.Unset() } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *PackageLicenseRequestPatch) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PackageLicenseRequestPatch) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *PackageLicenseRequestPatch) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *PackageLicenseRequestPatch) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetLicenseNotes returns the LicenseNotes field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PackageLicenseRequestPatch) GetLicenseNotes() string { if o == nil || IsNil(o.LicenseNotes.Get()) { @@ -288,49 +253,6 @@ func (o *PackageLicenseRequestPatch) SetSpdxLicense(v string) { o.SpdxLicense = v } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PackageLicenseRequestPatch) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PackageLicenseRequestPatch) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *PackageLicenseRequestPatch) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *PackageLicenseRequestPatch) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *PackageLicenseRequestPatch) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *PackageLicenseRequestPatch) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - func (o PackageLicenseRequestPatch) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -344,9 +266,6 @@ func (o PackageLicenseRequestPatch) ToMap() (map[string]interface{}, error) { if o.Action.IsSet() { toSerialize["action"] = o.Action.Get() } - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } if o.LicenseNotes.IsSet() { toSerialize["license_notes"] = o.LicenseNotes.Get() } @@ -357,9 +276,6 @@ func (o PackageLicenseRequestPatch) ToMap() (map[string]interface{}, error) { toSerialize["license_url"] = o.LicenseUrl.Get() } toSerialize["spdx_license"] = o.SpdxLicense - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -404,12 +320,10 @@ func (o *PackageLicenseRequestPatch) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "action") - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "license_notes") delete(additionalProperties, "license_override") delete(additionalProperties, "license_url") delete(additionalProperties, "spdx_license") - delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_package_move.go b/model_package_move.go index 423962f4..f426b0af 100644 --- a/model_package_move.go +++ b/model_package_move.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -31,8 +31,10 @@ type PackageMove struct { DependenciesChecksumMd5 NullableString `json:"dependencies_checksum_md5,omitempty"` DependenciesUrl *string `json:"dependencies_url,omitempty"` // A textual description of this package. - Description NullableString `json:"description,omitempty"` - DisplayName *string `json:"display_name,omitempty"` + Description NullableString `json:"description,omitempty"` + DisplayName *string `json:"display_name,omitempty"` + // Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + DisplaySource *string `json:"display_source,omitempty"` Distro NullableDistribution `json:"distro,omitempty"` DistroVersion *DistributionVersion `json:"distro_version,omitempty"` Downloads *int64 `json:"downloads,omitempty"` @@ -51,25 +53,23 @@ type PackageMove struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The name of this package. @@ -146,10 +146,9 @@ type PackageMove struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -525,6 +524,38 @@ func (o *PackageMove) SetDisplayName(v string) { o.DisplayName = &v } +// GetDisplaySource returns the DisplaySource field value if set, zero value otherwise. +func (o *PackageMove) GetDisplaySource() string { + if o == nil || IsNil(o.DisplaySource) { + var ret string + return ret + } + return *o.DisplaySource +} + +// GetDisplaySourceOk returns a tuple with the DisplaySource field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageMove) GetDisplaySourceOk() (*string, bool) { + if o == nil || IsNil(o.DisplaySource) { + return nil, false + } + return o.DisplaySource, true +} + +// HasDisplaySource returns a boolean if a field has been set. +func (o *PackageMove) HasDisplaySource() bool { + if o != nil && !IsNil(o.DisplaySource) { + return true + } + + return false +} + +// SetDisplaySource gets a reference to the given string and assigns it to the DisplaySource field. +func (o *PackageMove) SetDisplaySource(v string) { + o.DisplaySource = &v +} + // GetDistro returns the Distro field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PackageMove) GetDistro() Distribution { if o == nil || IsNil(o.Distro.Get()) { @@ -1209,38 +1240,6 @@ func (o *PackageMove) SetIsHidden(v bool) { o.IsHidden = &v } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *PackageMove) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PackageMove) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *PackageMove) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *PackageMove) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *PackageMove) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3294,49 +3293,6 @@ func (o *PackageMove) SetVersionOrig(v string) { o.VersionOrig = &v } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PackageMove) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PackageMove) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *PackageMove) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *PackageMove) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *PackageMove) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *PackageMove) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *PackageMove) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3409,6 +3365,9 @@ func (o PackageMove) ToMap() (map[string]interface{}, error) { if !IsNil(o.DisplayName) { toSerialize["display_name"] = o.DisplayName } + if !IsNil(o.DisplaySource) { + toSerialize["display_source"] = o.DisplaySource + } if o.Distro.IsSet() { toSerialize["distro"] = o.Distro.Get() } @@ -3469,9 +3428,6 @@ func (o PackageMove) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3649,9 +3605,6 @@ func (o PackageMove) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3687,6 +3640,7 @@ func (o *PackageMove) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "dependencies_url") delete(additionalProperties, "description") delete(additionalProperties, "display_name") + delete(additionalProperties, "display_source") delete(additionalProperties, "distro") delete(additionalProperties, "distro_version") delete(additionalProperties, "downloads") @@ -3707,7 +3661,6 @@ func (o *PackageMove) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3767,7 +3720,6 @@ func (o *PackageMove) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") - delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_package_move_request.go b/model_package_move_request.go index 40881116..0c9a047f 100644 --- a/model_package_move_request.go +++ b/model_package_move_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -22,10 +22,7 @@ var _ MappedNullable = &PackageMoveRequest{} // PackageMoveRequest struct for PackageMoveRequest type PackageMoveRequest struct { // The name of the destination repository without the namespace. - Destination string `json:"destination"` - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + Destination string `json:"destination"` AdditionalProperties map[string]interface{} } @@ -73,81 +70,6 @@ func (o *PackageMoveRequest) SetDestination(v string) { o.Destination = v } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *PackageMoveRequest) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PackageMoveRequest) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *PackageMoveRequest) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *PackageMoveRequest) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PackageMoveRequest) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PackageMoveRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *PackageMoveRequest) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *PackageMoveRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *PackageMoveRequest) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *PackageMoveRequest) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - func (o PackageMoveRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -159,12 +81,6 @@ func (o PackageMoveRequest) MarshalJSON() ([]byte, error) { func (o PackageMoveRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["destination"] = o.Destination - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -209,8 +125,6 @@ func (o *PackageMoveRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "destination") - delete(additionalProperties, "is_malware_detected") - delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_package_quarantine.go b/model_package_quarantine.go index 129a6f81..fa300b04 100644 --- a/model_package_quarantine.go +++ b/model_package_quarantine.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -31,8 +31,10 @@ type PackageQuarantine struct { DependenciesChecksumMd5 NullableString `json:"dependencies_checksum_md5,omitempty"` DependenciesUrl *string `json:"dependencies_url,omitempty"` // A textual description of this package. - Description NullableString `json:"description,omitempty"` - DisplayName *string `json:"display_name,omitempty"` + Description NullableString `json:"description,omitempty"` + DisplayName *string `json:"display_name,omitempty"` + // Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + DisplaySource *string `json:"display_source,omitempty"` Distro NullableDistribution `json:"distro,omitempty"` DistroVersion *DistributionVersion `json:"distro_version,omitempty"` Downloads *int64 `json:"downloads,omitempty"` @@ -51,25 +53,23 @@ type PackageQuarantine struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The name of this package. @@ -143,10 +143,9 @@ type PackageQuarantine struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -522,6 +521,38 @@ func (o *PackageQuarantine) SetDisplayName(v string) { o.DisplayName = &v } +// GetDisplaySource returns the DisplaySource field value if set, zero value otherwise. +func (o *PackageQuarantine) GetDisplaySource() string { + if o == nil || IsNil(o.DisplaySource) { + var ret string + return ret + } + return *o.DisplaySource +} + +// GetDisplaySourceOk returns a tuple with the DisplaySource field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageQuarantine) GetDisplaySourceOk() (*string, bool) { + if o == nil || IsNil(o.DisplaySource) { + return nil, false + } + return o.DisplaySource, true +} + +// HasDisplaySource returns a boolean if a field has been set. +func (o *PackageQuarantine) HasDisplaySource() bool { + if o != nil && !IsNil(o.DisplaySource) { + return true + } + + return false +} + +// SetDisplaySource gets a reference to the given string and assigns it to the DisplaySource field. +func (o *PackageQuarantine) SetDisplaySource(v string) { + o.DisplaySource = &v +} + // GetDistro returns the Distro field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PackageQuarantine) GetDistro() Distribution { if o == nil || IsNil(o.Distro.Get()) { @@ -1206,38 +1237,6 @@ func (o *PackageQuarantine) SetIsHidden(v bool) { o.IsHidden = &v } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *PackageQuarantine) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PackageQuarantine) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *PackageQuarantine) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *PackageQuarantine) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *PackageQuarantine) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3248,49 +3247,6 @@ func (o *PackageQuarantine) SetVersionOrig(v string) { o.VersionOrig = &v } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PackageQuarantine) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PackageQuarantine) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *PackageQuarantine) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *PackageQuarantine) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *PackageQuarantine) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *PackageQuarantine) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *PackageQuarantine) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3363,6 +3319,9 @@ func (o PackageQuarantine) ToMap() (map[string]interface{}, error) { if !IsNil(o.DisplayName) { toSerialize["display_name"] = o.DisplayName } + if !IsNil(o.DisplaySource) { + toSerialize["display_source"] = o.DisplaySource + } if o.Distro.IsSet() { toSerialize["distro"] = o.Distro.Get() } @@ -3423,9 +3382,6 @@ func (o PackageQuarantine) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3600,9 +3556,6 @@ func (o PackageQuarantine) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3638,6 +3591,7 @@ func (o *PackageQuarantine) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "dependencies_url") delete(additionalProperties, "description") delete(additionalProperties, "display_name") + delete(additionalProperties, "display_source") delete(additionalProperties, "distro") delete(additionalProperties, "distro_version") delete(additionalProperties, "downloads") @@ -3658,7 +3612,6 @@ func (o *PackageQuarantine) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3717,7 +3670,6 @@ func (o *PackageQuarantine) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") - delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_package_quarantine_request.go b/model_package_quarantine_request.go index e6b50de6..822c9df4 100644 --- a/model_package_quarantine_request.go +++ b/model_package_quarantine_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -20,13 +20,10 @@ var _ MappedNullable = &PackageQuarantineRequest{} // PackageQuarantineRequest struct for PackageQuarantineRequest type PackageQuarantineRequest struct { - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` // If true, the package is released from quarantine. Release *bool `json:"release,omitempty"` // If true, the package is released from quarantine. Note: This field is deprecated, please use 'release' instead. - Restore *bool `json:"restore,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + Restore *bool `json:"restore,omitempty"` AdditionalProperties map[string]interface{} } @@ -49,38 +46,6 @@ func NewPackageQuarantineRequestWithDefaults() *PackageQuarantineRequest { return &this } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *PackageQuarantineRequest) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PackageQuarantineRequest) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *PackageQuarantineRequest) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *PackageQuarantineRequest) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetRelease returns the Release field value if set, zero value otherwise. func (o *PackageQuarantineRequest) GetRelease() bool { if o == nil || IsNil(o.Release) { @@ -145,49 +110,6 @@ func (o *PackageQuarantineRequest) SetRestore(v bool) { o.Restore = &v } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PackageQuarantineRequest) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PackageQuarantineRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *PackageQuarantineRequest) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *PackageQuarantineRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *PackageQuarantineRequest) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *PackageQuarantineRequest) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - func (o PackageQuarantineRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -198,18 +120,12 @@ func (o PackageQuarantineRequest) MarshalJSON() ([]byte, error) { func (o PackageQuarantineRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } if !IsNil(o.Release) { toSerialize["release"] = o.Release } if !IsNil(o.Restore) { toSerialize["restore"] = o.Restore } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -232,10 +148,8 @@ func (o *PackageQuarantineRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "release") delete(additionalProperties, "restore") - delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_package_recycle_bin.go b/model_package_recycle_bin.go index c7e40b73..0cb1f956 100644 --- a/model_package_recycle_bin.go +++ b/model_package_recycle_bin.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_package_resync.go b/model_package_resync.go index 3b2fa749..711a3950 100644 --- a/model_package_resync.go +++ b/model_package_resync.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -31,8 +31,10 @@ type PackageResync struct { DependenciesChecksumMd5 NullableString `json:"dependencies_checksum_md5,omitempty"` DependenciesUrl *string `json:"dependencies_url,omitempty"` // A textual description of this package. - Description NullableString `json:"description,omitempty"` - DisplayName *string `json:"display_name,omitempty"` + Description NullableString `json:"description,omitempty"` + DisplayName *string `json:"display_name,omitempty"` + // Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + DisplaySource *string `json:"display_source,omitempty"` Distro NullableDistribution `json:"distro,omitempty"` DistroVersion *DistributionVersion `json:"distro_version,omitempty"` Downloads *int64 `json:"downloads,omitempty"` @@ -51,25 +53,23 @@ type PackageResync struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The name of this package. @@ -145,10 +145,9 @@ type PackageResync struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -524,6 +523,38 @@ func (o *PackageResync) SetDisplayName(v string) { o.DisplayName = &v } +// GetDisplaySource returns the DisplaySource field value if set, zero value otherwise. +func (o *PackageResync) GetDisplaySource() string { + if o == nil || IsNil(o.DisplaySource) { + var ret string + return ret + } + return *o.DisplaySource +} + +// GetDisplaySourceOk returns a tuple with the DisplaySource field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageResync) GetDisplaySourceOk() (*string, bool) { + if o == nil || IsNil(o.DisplaySource) { + return nil, false + } + return o.DisplaySource, true +} + +// HasDisplaySource returns a boolean if a field has been set. +func (o *PackageResync) HasDisplaySource() bool { + if o != nil && !IsNil(o.DisplaySource) { + return true + } + + return false +} + +// SetDisplaySource gets a reference to the given string and assigns it to the DisplaySource field. +func (o *PackageResync) SetDisplaySource(v string) { + o.DisplaySource = &v +} + // GetDistro returns the Distro field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PackageResync) GetDistro() Distribution { if o == nil || IsNil(o.Distro.Get()) { @@ -1208,38 +1239,6 @@ func (o *PackageResync) SetIsHidden(v bool) { o.IsHidden = &v } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *PackageResync) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PackageResync) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *PackageResync) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *PackageResync) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *PackageResync) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3293,49 +3292,6 @@ func (o *PackageResync) SetVersionOrig(v string) { o.VersionOrig = &v } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PackageResync) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PackageResync) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *PackageResync) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *PackageResync) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *PackageResync) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *PackageResync) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *PackageResync) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3408,6 +3364,9 @@ func (o PackageResync) ToMap() (map[string]interface{}, error) { if !IsNil(o.DisplayName) { toSerialize["display_name"] = o.DisplayName } + if !IsNil(o.DisplaySource) { + toSerialize["display_source"] = o.DisplaySource + } if o.Distro.IsSet() { toSerialize["distro"] = o.Distro.Get() } @@ -3468,9 +3427,6 @@ func (o PackageResync) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3648,9 +3604,6 @@ func (o PackageResync) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3686,6 +3639,7 @@ func (o *PackageResync) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "dependencies_url") delete(additionalProperties, "description") delete(additionalProperties, "display_name") + delete(additionalProperties, "display_source") delete(additionalProperties, "distro") delete(additionalProperties, "distro_version") delete(additionalProperties, "downloads") @@ -3706,7 +3660,6 @@ func (o *PackageResync) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3766,7 +3719,6 @@ func (o *PackageResync) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") - delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_package_status.go b/model_package_status.go index 2ef979ca..8e0730d8 100644 --- a/model_package_status.go +++ b/model_package_status.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_package_tag.go b/model_package_tag.go index 942f42e4..bb33ac75 100644 --- a/model_package_tag.go +++ b/model_package_tag.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -31,8 +31,10 @@ type PackageTag struct { DependenciesChecksumMd5 NullableString `json:"dependencies_checksum_md5,omitempty"` DependenciesUrl *string `json:"dependencies_url,omitempty"` // A textual description of this package. - Description NullableString `json:"description,omitempty"` - DisplayName *string `json:"display_name,omitempty"` + Description NullableString `json:"description,omitempty"` + DisplayName *string `json:"display_name,omitempty"` + // Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + DisplaySource *string `json:"display_source,omitempty"` Distro NullableDistribution `json:"distro,omitempty"` DistroVersion *DistributionVersion `json:"distro_version,omitempty"` Downloads *int64 `json:"downloads,omitempty"` @@ -59,9 +61,7 @@ type PackageTag struct { IsDownloadable *bool `json:"is_downloadable,omitempty"` IsHidden *bool `json:"is_hidden,omitempty"` // If true, created tags will be immutable. An immutable flag is a tag that cannot be removed from a package. - IsImmutable *bool `json:"is_immutable,omitempty"` - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` + IsImmutable *bool `json:"is_immutable,omitempty"` IsMoveable *bool `json:"is_moveable,omitempty"` IsQuarantinable *bool `json:"is_quarantinable,omitempty"` IsQuarantined *bool `json:"is_quarantined,omitempty"` @@ -145,10 +145,9 @@ type PackageTag struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -528,6 +527,38 @@ func (o *PackageTag) SetDisplayName(v string) { o.DisplayName = &v } +// GetDisplaySource returns the DisplaySource field value if set, zero value otherwise. +func (o *PackageTag) GetDisplaySource() string { + if o == nil || IsNil(o.DisplaySource) { + var ret string + return ret + } + return *o.DisplaySource +} + +// GetDisplaySourceOk returns a tuple with the DisplaySource field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageTag) GetDisplaySourceOk() (*string, bool) { + if o == nil || IsNil(o.DisplaySource) { + return nil, false + } + return o.DisplaySource, true +} + +// HasDisplaySource returns a boolean if a field has been set. +func (o *PackageTag) HasDisplaySource() bool { + if o != nil && !IsNil(o.DisplaySource) { + return true + } + + return false +} + +// SetDisplaySource gets a reference to the given string and assigns it to the DisplaySource field. +func (o *PackageTag) SetDisplaySource(v string) { + o.DisplaySource = &v +} + // GetDistro returns the Distro field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PackageTag) GetDistro() Distribution { if o == nil || IsNil(o.Distro.Get()) { @@ -1244,38 +1275,6 @@ func (o *PackageTag) SetIsImmutable(v bool) { o.IsImmutable = &v } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *PackageTag) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PackageTag) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *PackageTag) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *PackageTag) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *PackageTag) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3297,49 +3296,6 @@ func (o *PackageTag) SetVersionOrig(v string) { o.VersionOrig = &v } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PackageTag) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PackageTag) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *PackageTag) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *PackageTag) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *PackageTag) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *PackageTag) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *PackageTag) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3412,6 +3368,9 @@ func (o PackageTag) ToMap() (map[string]interface{}, error) { if !IsNil(o.DisplayName) { toSerialize["display_name"] = o.DisplayName } + if !IsNil(o.DisplaySource) { + toSerialize["display_source"] = o.DisplaySource + } if o.Distro.IsSet() { toSerialize["distro"] = o.Distro.Get() } @@ -3475,9 +3434,6 @@ func (o PackageTag) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsImmutable) { toSerialize["is_immutable"] = o.IsImmutable } - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3652,9 +3608,6 @@ func (o PackageTag) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3690,6 +3643,7 @@ func (o *PackageTag) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "dependencies_url") delete(additionalProperties, "description") delete(additionalProperties, "display_name") + delete(additionalProperties, "display_source") delete(additionalProperties, "distro") delete(additionalProperties, "distro_version") delete(additionalProperties, "downloads") @@ -3711,7 +3665,6 @@ func (o *PackageTag) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") delete(additionalProperties, "is_immutable") - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3770,7 +3723,6 @@ func (o *PackageTag) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") - delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_package_tag_request.go b/model_package_tag_request.go index 25a30728..74c7466f 100644 --- a/model_package_tag_request.go +++ b/model_package_tag_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -23,11 +23,8 @@ type PackageTagRequest struct { Action NullableString `json:"action,omitempty"` // If true, created tags will be immutable. An immutable flag is a tag that cannot be removed from a package. IsImmutable *bool `json:"is_immutable,omitempty"` - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` // A list of tags to apply the action to. Not required for clears. - Tags []string `json:"tags,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + Tags []string `json:"tags,omitempty"` AdditionalProperties map[string]interface{} } @@ -133,38 +130,6 @@ func (o *PackageTagRequest) SetIsImmutable(v bool) { o.IsImmutable = &v } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *PackageTagRequest) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PackageTagRequest) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *PackageTagRequest) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *PackageTagRequest) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetTags returns the Tags field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PackageTagRequest) GetTags() []string { if o == nil { @@ -198,49 +163,6 @@ func (o *PackageTagRequest) SetTags(v []string) { o.Tags = v } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PackageTagRequest) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PackageTagRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *PackageTagRequest) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *PackageTagRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *PackageTagRequest) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *PackageTagRequest) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - func (o PackageTagRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -257,15 +179,9 @@ func (o PackageTagRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsImmutable) { toSerialize["is_immutable"] = o.IsImmutable } - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } if o.Tags != nil { toSerialize["tags"] = o.Tags } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -290,9 +206,7 @@ func (o *PackageTagRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "action") delete(additionalProperties, "is_immutable") - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "tags") - delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_package_usage_metrics.go b/model_package_usage_metrics.go index c95dc47f..60536d68 100644 --- a/model_package_usage_metrics.go +++ b/model_package_usage_metrics.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_package_vulnerability.go b/model_package_vulnerability.go index 59e84aed..f8e01b6f 100644 --- a/model_package_vulnerability.go +++ b/model_package_vulnerability.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -22,14 +22,11 @@ var _ MappedNullable = &PackageVulnerability{} // PackageVulnerability struct for PackageVulnerability type PackageVulnerability struct { Identifier string `json:"identifier"` - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` // The name of this package. Name NullableString `json:"name,omitempty"` Url NullableString `json:"url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + Version NullableString `json:"version,omitempty"` AdditionalProperties map[string]interface{} } @@ -77,38 +74,6 @@ func (o *PackageVulnerability) SetIdentifier(v string) { o.Identifier = v } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *PackageVulnerability) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PackageVulnerability) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *PackageVulnerability) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *PackageVulnerability) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PackageVulnerability) GetName() string { if o == nil || IsNil(o.Name.Get()) { @@ -238,49 +203,6 @@ func (o *PackageVulnerability) UnsetVersion() { o.Version.Unset() } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PackageVulnerability) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PackageVulnerability) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *PackageVulnerability) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *PackageVulnerability) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *PackageVulnerability) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *PackageVulnerability) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - func (o PackageVulnerability) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -292,9 +214,6 @@ func (o PackageVulnerability) MarshalJSON() ([]byte, error) { func (o PackageVulnerability) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["identifier"] = o.Identifier - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } if o.Name.IsSet() { toSerialize["name"] = o.Name.Get() } @@ -304,9 +223,6 @@ func (o PackageVulnerability) ToMap() (map[string]interface{}, error) { if o.Version.IsSet() { toSerialize["version"] = o.Version.Get() } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -351,11 +267,9 @@ func (o *PackageVulnerability) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "identifier") - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "name") delete(additionalProperties, "url") delete(additionalProperties, "version") - delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_package_vulnerability_policy_evaluation_request.go b/model_package_vulnerability_policy_evaluation_request.go index 84721483..2fcfd3fd 100644 --- a/model_package_vulnerability_policy_evaluation_request.go +++ b/model_package_vulnerability_policy_evaluation_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_package_vulnerability_policy_violation_log.go b/model_package_vulnerability_policy_violation_log.go index e0bb362b..5c138f9c 100644 --- a/model_package_vulnerability_policy_violation_log.go +++ b/model_package_vulnerability_policy_violation_log.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_package_vulnerability_policy_violation_log_cursor_page.go b/model_package_vulnerability_policy_violation_log_cursor_page.go index 3922da25..94bee163 100644 --- a/model_package_vulnerability_policy_violation_log_cursor_page.go +++ b/model_package_vulnerability_policy_violation_log_cursor_page.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_packages_groups_list_200_response.go b/model_packages_groups_list_200_response.go index 8de4d6b5..aa7be7dc 100644 --- a/model_packages_groups_list_200_response.go +++ b/model_packages_groups_list_200_response.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_provider_settings.go b/model_provider_settings.go index 48f6470f..92b16329 100644 --- a/model_provider_settings.go +++ b/model_provider_settings.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_provider_settings_write.go b/model_provider_settings_write.go index 240331ee..8a08bb81 100644 --- a/model_provider_settings_write.go +++ b/model_provider_settings_write.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_provider_settings_write_request.go b/model_provider_settings_write_request.go index c2420c1f..f6d29b21 100644 --- a/model_provider_settings_write_request.go +++ b/model_provider_settings_write_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_provider_settings_write_request_patch.go b/model_provider_settings_write_request_patch.go index 4f74df3a..04b49de8 100644 --- a/model_provider_settings_write_request_patch.go +++ b/model_provider_settings_write_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_python_package_upload.go b/model_python_package_upload.go index dbbf71dd..7b18b4e4 100644 --- a/model_python_package_upload.go +++ b/model_python_package_upload.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -31,8 +31,10 @@ type PythonPackageUpload struct { DependenciesChecksumMd5 NullableString `json:"dependencies_checksum_md5,omitempty"` DependenciesUrl *string `json:"dependencies_url,omitempty"` // A textual description of this package. - Description NullableString `json:"description,omitempty"` - DisplayName *string `json:"display_name,omitempty"` + Description NullableString `json:"description,omitempty"` + DisplayName *string `json:"display_name,omitempty"` + // Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + DisplaySource *string `json:"display_source,omitempty"` Distro NullableDistribution `json:"distro,omitempty"` DistroVersion *DistributionVersion `json:"distro_version,omitempty"` Downloads *int64 `json:"downloads,omitempty"` @@ -49,25 +51,23 @@ type PythonPackageUpload struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The name of this package. @@ -141,10 +141,9 @@ type PythonPackageUpload struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -520,6 +519,38 @@ func (o *PythonPackageUpload) SetDisplayName(v string) { o.DisplayName = &v } +// GetDisplaySource returns the DisplaySource field value if set, zero value otherwise. +func (o *PythonPackageUpload) GetDisplaySource() string { + if o == nil || IsNil(o.DisplaySource) { + var ret string + return ret + } + return *o.DisplaySource +} + +// GetDisplaySourceOk returns a tuple with the DisplaySource field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PythonPackageUpload) GetDisplaySourceOk() (*string, bool) { + if o == nil || IsNil(o.DisplaySource) { + return nil, false + } + return o.DisplaySource, true +} + +// HasDisplaySource returns a boolean if a field has been set. +func (o *PythonPackageUpload) HasDisplaySource() bool { + if o != nil && !IsNil(o.DisplaySource) { + return true + } + + return false +} + +// SetDisplaySource gets a reference to the given string and assigns it to the DisplaySource field. +func (o *PythonPackageUpload) SetDisplaySource(v string) { + o.DisplaySource = &v +} + // GetDistro returns the Distro field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PythonPackageUpload) GetDistro() Distribution { if o == nil || IsNil(o.Distro.Get()) { @@ -1161,38 +1192,6 @@ func (o *PythonPackageUpload) SetIsHidden(v bool) { o.IsHidden = &v } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *PythonPackageUpload) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PythonPackageUpload) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *PythonPackageUpload) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *PythonPackageUpload) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *PythonPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3214,49 +3213,6 @@ func (o *PythonPackageUpload) SetVersionOrig(v string) { o.VersionOrig = &v } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PythonPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PythonPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *PythonPackageUpload) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *PythonPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *PythonPackageUpload) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *PythonPackageUpload) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *PythonPackageUpload) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3329,6 +3285,9 @@ func (o PythonPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.DisplayName) { toSerialize["display_name"] = o.DisplayName } + if !IsNil(o.DisplaySource) { + toSerialize["display_source"] = o.DisplaySource + } if o.Distro.IsSet() { toSerialize["distro"] = o.Distro.Get() } @@ -3386,9 +3345,6 @@ func (o PythonPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3563,9 +3519,6 @@ func (o PythonPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3601,6 +3554,7 @@ func (o *PythonPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "dependencies_url") delete(additionalProperties, "description") delete(additionalProperties, "display_name") + delete(additionalProperties, "display_source") delete(additionalProperties, "distro") delete(additionalProperties, "distro_version") delete(additionalProperties, "downloads") @@ -3620,7 +3574,6 @@ func (o *PythonPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3679,7 +3632,6 @@ func (o *PythonPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") - delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_python_package_upload_request.go b/model_python_package_upload_request.go index fe8048eb..69d8b308 100644 --- a/model_python_package_upload_request.go +++ b/model_python_package_upload_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -21,15 +21,12 @@ var _ MappedNullable = &PythonPackageUploadRequest{} // PythonPackageUploadRequest struct for PythonPackageUploadRequest type PythonPackageUploadRequest struct { - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` // The primary file for the package. PackageFile string `json:"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. Republish *bool `json:"republish,omitempty"` // A comma-separated values list of tags to add to the package. - Tags NullableString `json:"tags,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + Tags NullableString `json:"tags,omitempty"` AdditionalProperties map[string]interface{} } @@ -53,38 +50,6 @@ func NewPythonPackageUploadRequestWithDefaults() *PythonPackageUploadRequest { return &this } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *PythonPackageUploadRequest) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PythonPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *PythonPackageUploadRequest) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *PythonPackageUploadRequest) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetPackageFile returns the PackageFile field value func (o *PythonPackageUploadRequest) GetPackageFile() string { if o == nil { @@ -184,49 +149,6 @@ func (o *PythonPackageUploadRequest) UnsetTags() { o.Tags.Unset() } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PythonPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PythonPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *PythonPackageUploadRequest) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *PythonPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *PythonPackageUploadRequest) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *PythonPackageUploadRequest) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - func (o PythonPackageUploadRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -237,9 +159,6 @@ func (o PythonPackageUploadRequest) MarshalJSON() ([]byte, error) { func (o PythonPackageUploadRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } toSerialize["package_file"] = o.PackageFile if !IsNil(o.Republish) { toSerialize["republish"] = o.Republish @@ -247,9 +166,6 @@ func (o PythonPackageUploadRequest) ToMap() (map[string]interface{}, error) { if o.Tags.IsSet() { toSerialize["tags"] = o.Tags.Get() } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -293,11 +209,9 @@ func (o *PythonPackageUploadRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "package_file") delete(additionalProperties, "republish") delete(additionalProperties, "tags") - delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_python_upstream.go b/model_python_upstream.go index 78d59d03..47a1397a 100644 --- a/model_python_upstream.go +++ b/model_python_upstream.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_python_upstream_request.go b/model_python_upstream_request.go index c7d00bf7..7231efe0 100644 --- a/model_python_upstream_request.go +++ b/model_python_upstream_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_python_upstream_request_patch.go b/model_python_upstream_request_patch.go index 4bb4fa92..4d634e46 100644 --- a/model_python_upstream_request_patch.go +++ b/model_python_upstream_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_quota.go b/model_quota.go index 23147f72..0d635c7d 100644 --- a/model_quota.go +++ b/model_quota.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_quota_history.go b/model_quota_history.go index 4b84d6ea..99abd01e 100644 --- a/model_quota_history.go +++ b/model_quota_history.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_rate_check.go b/model_rate_check.go index cdd3bee5..4888548b 100644 --- a/model_rate_check.go +++ b/model_rate_check.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_raw_package_upload.go b/model_raw_package_upload.go index b3955812..95862e3f 100644 --- a/model_raw_package_upload.go +++ b/model_raw_package_upload.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -31,8 +31,10 @@ type RawPackageUpload struct { DependenciesChecksumMd5 NullableString `json:"dependencies_checksum_md5,omitempty"` DependenciesUrl *string `json:"dependencies_url,omitempty"` // A textual description of this package. - Description NullableString `json:"description,omitempty"` - DisplayName *string `json:"display_name,omitempty"` + Description NullableString `json:"description,omitempty"` + DisplayName *string `json:"display_name,omitempty"` + // Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + DisplaySource *string `json:"display_source,omitempty"` Distro NullableDistribution `json:"distro,omitempty"` DistroVersion *DistributionVersion `json:"distro_version,omitempty"` Downloads *int64 `json:"downloads,omitempty"` @@ -49,25 +51,23 @@ type RawPackageUpload struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The name of this package. @@ -141,10 +141,9 @@ type RawPackageUpload struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -520,6 +519,38 @@ func (o *RawPackageUpload) SetDisplayName(v string) { o.DisplayName = &v } +// GetDisplaySource returns the DisplaySource field value if set, zero value otherwise. +func (o *RawPackageUpload) GetDisplaySource() string { + if o == nil || IsNil(o.DisplaySource) { + var ret string + return ret + } + return *o.DisplaySource +} + +// GetDisplaySourceOk returns a tuple with the DisplaySource field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RawPackageUpload) GetDisplaySourceOk() (*string, bool) { + if o == nil || IsNil(o.DisplaySource) { + return nil, false + } + return o.DisplaySource, true +} + +// HasDisplaySource returns a boolean if a field has been set. +func (o *RawPackageUpload) HasDisplaySource() bool { + if o != nil && !IsNil(o.DisplaySource) { + return true + } + + return false +} + +// SetDisplaySource gets a reference to the given string and assigns it to the DisplaySource field. +func (o *RawPackageUpload) SetDisplaySource(v string) { + o.DisplaySource = &v +} + // GetDistro returns the Distro field value if set, zero value otherwise (both if not set or set to explicit null). func (o *RawPackageUpload) GetDistro() Distribution { if o == nil || IsNil(o.Distro.Get()) { @@ -1161,38 +1192,6 @@ func (o *RawPackageUpload) SetIsHidden(v bool) { o.IsHidden = &v } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *RawPackageUpload) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *RawPackageUpload) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *RawPackageUpload) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *RawPackageUpload) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *RawPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3214,49 +3213,6 @@ func (o *RawPackageUpload) SetVersionOrig(v string) { o.VersionOrig = &v } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *RawPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *RawPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *RawPackageUpload) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *RawPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *RawPackageUpload) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *RawPackageUpload) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *RawPackageUpload) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3329,6 +3285,9 @@ func (o RawPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.DisplayName) { toSerialize["display_name"] = o.DisplayName } + if !IsNil(o.DisplaySource) { + toSerialize["display_source"] = o.DisplaySource + } if o.Distro.IsSet() { toSerialize["distro"] = o.Distro.Get() } @@ -3386,9 +3345,6 @@ func (o RawPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3563,9 +3519,6 @@ func (o RawPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3601,6 +3554,7 @@ func (o *RawPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "dependencies_url") delete(additionalProperties, "description") delete(additionalProperties, "display_name") + delete(additionalProperties, "display_source") delete(additionalProperties, "distro") delete(additionalProperties, "distro_version") delete(additionalProperties, "downloads") @@ -3620,7 +3574,6 @@ func (o *RawPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3679,7 +3632,6 @@ func (o *RawPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") - delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_raw_package_upload_request.go b/model_raw_package_upload_request.go index 1f820b7c..dd90c0ed 100644 --- a/model_raw_package_upload_request.go +++ b/model_raw_package_upload_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -25,8 +25,6 @@ type RawPackageUploadRequest struct { ContentType NullableString `json:"content_type,omitempty"` // A textual description of this package. Description NullableString `json:"description,omitempty"` - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` // The name of this package. Name NullableString `json:"name,omitempty"` // The primary file for the package. @@ -38,8 +36,7 @@ type RawPackageUploadRequest struct { // A comma-separated values list of tags to add to the package. Tags NullableString `json:"tags,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + Version NullableString `json:"version,omitempty"` AdditionalProperties map[string]interface{} } @@ -149,38 +146,6 @@ func (o *RawPackageUploadRequest) UnsetDescription() { o.Description.Unset() } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *RawPackageUploadRequest) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *RawPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *RawPackageUploadRequest) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *RawPackageUploadRequest) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). func (o *RawPackageUploadRequest) GetName() string { if o == nil || IsNil(o.Name.Get()) { @@ -409,49 +374,6 @@ func (o *RawPackageUploadRequest) UnsetVersion() { o.Version.Unset() } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *RawPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *RawPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *RawPackageUploadRequest) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *RawPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *RawPackageUploadRequest) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *RawPackageUploadRequest) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - func (o RawPackageUploadRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -468,9 +390,6 @@ func (o RawPackageUploadRequest) ToMap() (map[string]interface{}, error) { if o.Description.IsSet() { toSerialize["description"] = o.Description.Get() } - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } if o.Name.IsSet() { toSerialize["name"] = o.Name.Get() } @@ -487,9 +406,6 @@ func (o RawPackageUploadRequest) ToMap() (map[string]interface{}, error) { if o.Version.IsSet() { toSerialize["version"] = o.Version.Get() } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -535,14 +451,12 @@ func (o *RawPackageUploadRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "content_type") delete(additionalProperties, "description") - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "name") delete(additionalProperties, "package_file") delete(additionalProperties, "republish") delete(additionalProperties, "summary") delete(additionalProperties, "tags") delete(additionalProperties, "version") - delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_recycle_bin_package.go b/model_recycle_bin_package.go index e9998181..2a3bdefe 100644 --- a/model_recycle_bin_package.go +++ b/model_recycle_bin_package.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_repos_connected_list_200_response.go b/model_repos_connected_list_200_response.go index 5b328206..dec0a4f2 100644 --- a/model_repos_connected_list_200_response.go +++ b/model_repos_connected_list_200_response.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_repository.go b/model_repository.go index 6dbf4bc6..7005740a 100644 --- a/model_repository.go +++ b/model_repository.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_audit_log.go b/model_repository_audit_log.go index e3146db4..fdc62b83 100644 --- a/model_repository_audit_log.go +++ b/model_repository_audit_log.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_create.go b/model_repository_create.go index 1ba824f9..f98e75dd 100644 --- a/model_repository_create.go +++ b/model_repository_create.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_create_request.go b/model_repository_create_request.go index 4768e06f..d30bd82e 100644 --- a/model_repository_create_request.go +++ b/model_repository_create_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_ecdsa_key.go b/model_repository_ecdsa_key.go index b542571c..ed283c51 100644 --- a/model_repository_ecdsa_key.go +++ b/model_repository_ecdsa_key.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_ecdsa_key_create.go b/model_repository_ecdsa_key_create.go index 3620aa57..8ffddade 100644 --- a/model_repository_ecdsa_key_create.go +++ b/model_repository_ecdsa_key_create.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_ed25519_key.go b/model_repository_ed25519_key.go index 72b4ccd4..5103a5e1 100644 --- a/model_repository_ed25519_key.go +++ b/model_repository_ed25519_key.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_ed25519_key_create.go b/model_repository_ed25519_key_create.go index 6e7baf15..dbe4b2eb 100644 --- a/model_repository_ed25519_key_create.go +++ b/model_repository_ed25519_key_create.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_geo_ip_cidr.go b/model_repository_geo_ip_cidr.go index dcbd6fb0..893adcf5 100644 --- a/model_repository_geo_ip_cidr.go +++ b/model_repository_geo_ip_cidr.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_geo_ip_country_code.go b/model_repository_geo_ip_country_code.go index 492ba804..678ea3a0 100644 --- a/model_repository_geo_ip_country_code.go +++ b/model_repository_geo_ip_country_code.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_geo_ip_rules.go b/model_repository_geo_ip_rules.go index 73ea6745..617f4d33 100644 --- a/model_repository_geo_ip_rules.go +++ b/model_repository_geo_ip_rules.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_geo_ip_rules_request.go b/model_repository_geo_ip_rules_request.go index 3bf41e67..9dded38e 100644 --- a/model_repository_geo_ip_rules_request.go +++ b/model_repository_geo_ip_rules_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_geo_ip_rules_request_patch.go b/model_repository_geo_ip_rules_request_patch.go index cee6f898..de9a2c35 100644 --- a/model_repository_geo_ip_rules_request_patch.go +++ b/model_repository_geo_ip_rules_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_geo_ip_status.go b/model_repository_geo_ip_status.go index 1c8524b1..bee38b29 100644 --- a/model_repository_geo_ip_status.go +++ b/model_repository_geo_ip_status.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_geo_ip_test_address.go b/model_repository_geo_ip_test_address.go index 0ff2a003..364302ed 100644 --- a/model_repository_geo_ip_test_address.go +++ b/model_repository_geo_ip_test_address.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_geo_ip_test_address_response.go b/model_repository_geo_ip_test_address_response.go index 7f7e65a6..d7b43a0f 100644 --- a/model_repository_geo_ip_test_address_response.go +++ b/model_repository_geo_ip_test_address_response.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_geo_ip_test_address_response_dict.go b/model_repository_geo_ip_test_address_response_dict.go index 4499d8db..236f5dce 100644 --- a/model_repository_geo_ip_test_address_response_dict.go +++ b/model_repository_geo_ip_test_address_response_dict.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_gpg_key.go b/model_repository_gpg_key.go index ae8252a6..7056667e 100644 --- a/model_repository_gpg_key.go +++ b/model_repository_gpg_key.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_gpg_key_create.go b/model_repository_gpg_key_create.go index 705e3b05..8e0374d4 100644 --- a/model_repository_gpg_key_create.go +++ b/model_repository_gpg_key_create.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_privilege_dict.go b/model_repository_privilege_dict.go index 2865b502..bee528d3 100644 --- a/model_repository_privilege_dict.go +++ b/model_repository_privilege_dict.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_privilege_input.go b/model_repository_privilege_input.go index 4cb07d1a..c5bfc99b 100644 --- a/model_repository_privilege_input.go +++ b/model_repository_privilege_input.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_privilege_input_request.go b/model_repository_privilege_input_request.go index 01daadfe..17be467f 100644 --- a/model_repository_privilege_input_request.go +++ b/model_repository_privilege_input_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_privilege_input_request_patch.go b/model_repository_privilege_input_request_patch.go index 75b7c647..c5dbb74d 100644 --- a/model_repository_privilege_input_request_patch.go +++ b/model_repository_privilege_input_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_request_patch.go b/model_repository_request_patch.go index 9eb895a7..ab51f7fe 100644 --- a/model_repository_request_patch.go +++ b/model_repository_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_retention_rules.go b/model_repository_retention_rules.go index 3228575c..94503c0f 100644 --- a/model_repository_retention_rules.go +++ b/model_repository_retention_rules.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_retention_rules_request_patch.go b/model_repository_retention_rules_request_patch.go index f5c83acb..1a209b0f 100644 --- a/model_repository_retention_rules_request_patch.go +++ b/model_repository_retention_rules_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_rsa_key.go b/model_repository_rsa_key.go index d638eeae..0c71f3b6 100644 --- a/model_repository_rsa_key.go +++ b/model_repository_rsa_key.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_rsa_key_create.go b/model_repository_rsa_key_create.go index 8bc3f40c..c21a0f60 100644 --- a/model_repository_rsa_key_create.go +++ b/model_repository_rsa_key_create.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_token.go b/model_repository_token.go index f2b7a9ee..93a4b9d0 100644 --- a/model_repository_token.go +++ b/model_repository_token.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_token_private_broadcasts.go b/model_repository_token_private_broadcasts.go index 88fb5c26..535c3ec4 100644 --- a/model_repository_token_private_broadcasts.go +++ b/model_repository_token_private_broadcasts.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_token_private_broadcasts_request.go b/model_repository_token_private_broadcasts_request.go index 24f5af20..f1ff38d3 100644 --- a/model_repository_token_private_broadcasts_request.go +++ b/model_repository_token_private_broadcasts_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_token_refresh.go b/model_repository_token_refresh.go index 76cf9944..5393ef6f 100644 --- a/model_repository_token_refresh.go +++ b/model_repository_token_refresh.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_token_refresh_request.go b/model_repository_token_refresh_request.go index 8de2adb4..3ff92013 100644 --- a/model_repository_token_refresh_request.go +++ b/model_repository_token_refresh_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_token_request.go b/model_repository_token_request.go index 5265666b..4575cc6c 100644 --- a/model_repository_token_request.go +++ b/model_repository_token_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_token_request_patch.go b/model_repository_token_request_patch.go index e883240b..14fbbc0d 100644 --- a/model_repository_token_request_patch.go +++ b/model_repository_token_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_token_sync.go b/model_repository_token_sync.go index fff2bb5d..127cc911 100644 --- a/model_repository_token_sync.go +++ b/model_repository_token_sync.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_token_sync_request.go b/model_repository_token_sync_request.go index 45d38117..af8dd4be 100644 --- a/model_repository_token_sync_request.go +++ b/model_repository_token_sync_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_transfer_region.go b/model_repository_transfer_region.go index d7533ee3..5c53e645 100644 --- a/model_repository_transfer_region.go +++ b/model_repository_transfer_region.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_transfer_region_request.go b/model_repository_transfer_region_request.go index ea62042b..6d4a3f74 100644 --- a/model_repository_transfer_region_request.go +++ b/model_repository_transfer_region_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_webhook.go b/model_repository_webhook.go index 560af46e..61901064 100644 --- a/model_repository_webhook.go +++ b/model_repository_webhook.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_webhook_request.go b/model_repository_webhook_request.go index c65953e1..cc8a809a 100644 --- a/model_repository_webhook_request.go +++ b/model_repository_webhook_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_webhook_request_patch.go b/model_repository_webhook_request_patch.go index 4a10705d..e25972c8 100644 --- a/model_repository_webhook_request_patch.go +++ b/model_repository_webhook_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_x509_ecdsa_certificate.go b/model_repository_x509_ecdsa_certificate.go index be538009..cb42ce90 100644 --- a/model_repository_x509_ecdsa_certificate.go +++ b/model_repository_x509_ecdsa_certificate.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_x509_rsa_certificate.go b/model_repository_x509_rsa_certificate.go index be8b4d1b..4d5693b9 100644 --- a/model_repository_x509_rsa_certificate.go +++ b/model_repository_x509_rsa_certificate.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_resources_rate_check.go b/model_resources_rate_check.go index f745feec..d775653e 100644 --- a/model_resources_rate_check.go +++ b/model_resources_rate_check.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_rpm_package_upload.go b/model_rpm_package_upload.go index 260e984c..ceaec3ce 100644 --- a/model_rpm_package_upload.go +++ b/model_rpm_package_upload.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -31,8 +31,10 @@ type RpmPackageUpload struct { DependenciesChecksumMd5 NullableString `json:"dependencies_checksum_md5,omitempty"` DependenciesUrl *string `json:"dependencies_url,omitempty"` // A textual description of this package. - Description NullableString `json:"description,omitempty"` - DisplayName *string `json:"display_name,omitempty"` + Description NullableString `json:"description,omitempty"` + DisplayName *string `json:"display_name,omitempty"` + // Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + DisplaySource *string `json:"display_source,omitempty"` Distro NullableDistribution `json:"distro,omitempty"` DistroVersion *DistributionVersion `json:"distro_version,omitempty"` Downloads *int64 `json:"downloads,omitempty"` @@ -49,25 +51,23 @@ type RpmPackageUpload struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The name of this package. @@ -141,10 +141,9 @@ type RpmPackageUpload struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -520,6 +519,38 @@ func (o *RpmPackageUpload) SetDisplayName(v string) { o.DisplayName = &v } +// GetDisplaySource returns the DisplaySource field value if set, zero value otherwise. +func (o *RpmPackageUpload) GetDisplaySource() string { + if o == nil || IsNil(o.DisplaySource) { + var ret string + return ret + } + return *o.DisplaySource +} + +// GetDisplaySourceOk returns a tuple with the DisplaySource field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RpmPackageUpload) GetDisplaySourceOk() (*string, bool) { + if o == nil || IsNil(o.DisplaySource) { + return nil, false + } + return o.DisplaySource, true +} + +// HasDisplaySource returns a boolean if a field has been set. +func (o *RpmPackageUpload) HasDisplaySource() bool { + if o != nil && !IsNil(o.DisplaySource) { + return true + } + + return false +} + +// SetDisplaySource gets a reference to the given string and assigns it to the DisplaySource field. +func (o *RpmPackageUpload) SetDisplaySource(v string) { + o.DisplaySource = &v +} + // GetDistro returns the Distro field value if set, zero value otherwise (both if not set or set to explicit null). func (o *RpmPackageUpload) GetDistro() Distribution { if o == nil || IsNil(o.Distro.Get()) { @@ -1161,38 +1192,6 @@ func (o *RpmPackageUpload) SetIsHidden(v bool) { o.IsHidden = &v } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *RpmPackageUpload) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *RpmPackageUpload) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *RpmPackageUpload) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *RpmPackageUpload) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *RpmPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3214,49 +3213,6 @@ func (o *RpmPackageUpload) SetVersionOrig(v string) { o.VersionOrig = &v } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *RpmPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *RpmPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *RpmPackageUpload) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *RpmPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *RpmPackageUpload) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *RpmPackageUpload) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *RpmPackageUpload) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3329,6 +3285,9 @@ func (o RpmPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.DisplayName) { toSerialize["display_name"] = o.DisplayName } + if !IsNil(o.DisplaySource) { + toSerialize["display_source"] = o.DisplaySource + } if o.Distro.IsSet() { toSerialize["distro"] = o.Distro.Get() } @@ -3386,9 +3345,6 @@ func (o RpmPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3563,9 +3519,6 @@ func (o RpmPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3601,6 +3554,7 @@ func (o *RpmPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "dependencies_url") delete(additionalProperties, "description") delete(additionalProperties, "display_name") + delete(additionalProperties, "display_source") delete(additionalProperties, "distro") delete(additionalProperties, "distro_version") delete(additionalProperties, "downloads") @@ -3620,7 +3574,6 @@ func (o *RpmPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3679,7 +3632,6 @@ func (o *RpmPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") - delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_rpm_package_upload_request.go b/model_rpm_package_upload_request.go index dc27585a..6c6695dc 100644 --- a/model_rpm_package_upload_request.go +++ b/model_rpm_package_upload_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -23,15 +23,12 @@ var _ MappedNullable = &RpmPackageUploadRequest{} type RpmPackageUploadRequest struct { // The distribution to store the package for. Distribution string `json:"distribution"` - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` // The primary file for the package. PackageFile string `json:"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. Republish *bool `json:"republish,omitempty"` // A comma-separated values list of tags to add to the package. - Tags NullableString `json:"tags,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + Tags NullableString `json:"tags,omitempty"` AdditionalProperties map[string]interface{} } @@ -80,38 +77,6 @@ func (o *RpmPackageUploadRequest) SetDistribution(v string) { o.Distribution = v } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *RpmPackageUploadRequest) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *RpmPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *RpmPackageUploadRequest) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *RpmPackageUploadRequest) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetPackageFile returns the PackageFile field value func (o *RpmPackageUploadRequest) GetPackageFile() string { if o == nil { @@ -211,49 +176,6 @@ func (o *RpmPackageUploadRequest) UnsetTags() { o.Tags.Unset() } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *RpmPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *RpmPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *RpmPackageUploadRequest) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *RpmPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *RpmPackageUploadRequest) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *RpmPackageUploadRequest) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - func (o RpmPackageUploadRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -265,9 +187,6 @@ func (o RpmPackageUploadRequest) MarshalJSON() ([]byte, error) { func (o RpmPackageUploadRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["distribution"] = o.Distribution - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } toSerialize["package_file"] = o.PackageFile if !IsNil(o.Republish) { toSerialize["republish"] = o.Republish @@ -275,9 +194,6 @@ func (o RpmPackageUploadRequest) ToMap() (map[string]interface{}, error) { if o.Tags.IsSet() { toSerialize["tags"] = o.Tags.Get() } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -323,11 +239,9 @@ func (o *RpmPackageUploadRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "distribution") - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "package_file") delete(additionalProperties, "republish") delete(additionalProperties, "tags") - delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_rpm_upstream.go b/model_rpm_upstream.go index 103e92db..355df5c5 100644 --- a/model_rpm_upstream.go +++ b/model_rpm_upstream.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_rpm_upstream_request.go b/model_rpm_upstream_request.go index ac3ca3bf..760031ed 100644 --- a/model_rpm_upstream_request.go +++ b/model_rpm_upstream_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_rpm_upstream_request_patch.go b/model_rpm_upstream_request_patch.go index f4fe0456..825ab1ed 100644 --- a/model_rpm_upstream_request_patch.go +++ b/model_rpm_upstream_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_ruby_package_upload.go b/model_ruby_package_upload.go index cc5221d1..fbf2e774 100644 --- a/model_ruby_package_upload.go +++ b/model_ruby_package_upload.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -31,8 +31,10 @@ type RubyPackageUpload struct { DependenciesChecksumMd5 NullableString `json:"dependencies_checksum_md5,omitempty"` DependenciesUrl *string `json:"dependencies_url,omitempty"` // A textual description of this package. - Description NullableString `json:"description,omitempty"` - DisplayName *string `json:"display_name,omitempty"` + Description NullableString `json:"description,omitempty"` + DisplayName *string `json:"display_name,omitempty"` + // Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + DisplaySource *string `json:"display_source,omitempty"` Distro NullableDistribution `json:"distro,omitempty"` DistroVersion *DistributionVersion `json:"distro_version,omitempty"` Downloads *int64 `json:"downloads,omitempty"` @@ -49,25 +51,23 @@ type RubyPackageUpload struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The name of this package. @@ -141,10 +141,9 @@ type RubyPackageUpload struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -520,6 +519,38 @@ func (o *RubyPackageUpload) SetDisplayName(v string) { o.DisplayName = &v } +// GetDisplaySource returns the DisplaySource field value if set, zero value otherwise. +func (o *RubyPackageUpload) GetDisplaySource() string { + if o == nil || IsNil(o.DisplaySource) { + var ret string + return ret + } + return *o.DisplaySource +} + +// GetDisplaySourceOk returns a tuple with the DisplaySource field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RubyPackageUpload) GetDisplaySourceOk() (*string, bool) { + if o == nil || IsNil(o.DisplaySource) { + return nil, false + } + return o.DisplaySource, true +} + +// HasDisplaySource returns a boolean if a field has been set. +func (o *RubyPackageUpload) HasDisplaySource() bool { + if o != nil && !IsNil(o.DisplaySource) { + return true + } + + return false +} + +// SetDisplaySource gets a reference to the given string and assigns it to the DisplaySource field. +func (o *RubyPackageUpload) SetDisplaySource(v string) { + o.DisplaySource = &v +} + // GetDistro returns the Distro field value if set, zero value otherwise (both if not set or set to explicit null). func (o *RubyPackageUpload) GetDistro() Distribution { if o == nil || IsNil(o.Distro.Get()) { @@ -1161,38 +1192,6 @@ func (o *RubyPackageUpload) SetIsHidden(v bool) { o.IsHidden = &v } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *RubyPackageUpload) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *RubyPackageUpload) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *RubyPackageUpload) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *RubyPackageUpload) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *RubyPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3214,49 +3213,6 @@ func (o *RubyPackageUpload) SetVersionOrig(v string) { o.VersionOrig = &v } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *RubyPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *RubyPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *RubyPackageUpload) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *RubyPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *RubyPackageUpload) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *RubyPackageUpload) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *RubyPackageUpload) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3329,6 +3285,9 @@ func (o RubyPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.DisplayName) { toSerialize["display_name"] = o.DisplayName } + if !IsNil(o.DisplaySource) { + toSerialize["display_source"] = o.DisplaySource + } if o.Distro.IsSet() { toSerialize["distro"] = o.Distro.Get() } @@ -3386,9 +3345,6 @@ func (o RubyPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3563,9 +3519,6 @@ func (o RubyPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3601,6 +3554,7 @@ func (o *RubyPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "dependencies_url") delete(additionalProperties, "description") delete(additionalProperties, "display_name") + delete(additionalProperties, "display_source") delete(additionalProperties, "distro") delete(additionalProperties, "distro_version") delete(additionalProperties, "downloads") @@ -3620,7 +3574,6 @@ func (o *RubyPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3679,7 +3632,6 @@ func (o *RubyPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") - delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_ruby_package_upload_request.go b/model_ruby_package_upload_request.go index 54af158e..b580722b 100644 --- a/model_ruby_package_upload_request.go +++ b/model_ruby_package_upload_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -21,15 +21,12 @@ var _ MappedNullable = &RubyPackageUploadRequest{} // RubyPackageUploadRequest struct for RubyPackageUploadRequest type RubyPackageUploadRequest struct { - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` // The primary file for the package. PackageFile string `json:"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. Republish *bool `json:"republish,omitempty"` // A comma-separated values list of tags to add to the package. - Tags NullableString `json:"tags,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + Tags NullableString `json:"tags,omitempty"` AdditionalProperties map[string]interface{} } @@ -53,38 +50,6 @@ func NewRubyPackageUploadRequestWithDefaults() *RubyPackageUploadRequest { return &this } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *RubyPackageUploadRequest) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *RubyPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *RubyPackageUploadRequest) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *RubyPackageUploadRequest) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetPackageFile returns the PackageFile field value func (o *RubyPackageUploadRequest) GetPackageFile() string { if o == nil { @@ -184,49 +149,6 @@ func (o *RubyPackageUploadRequest) UnsetTags() { o.Tags.Unset() } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *RubyPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *RubyPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *RubyPackageUploadRequest) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *RubyPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *RubyPackageUploadRequest) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *RubyPackageUploadRequest) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - func (o RubyPackageUploadRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -237,9 +159,6 @@ func (o RubyPackageUploadRequest) MarshalJSON() ([]byte, error) { func (o RubyPackageUploadRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } toSerialize["package_file"] = o.PackageFile if !IsNil(o.Republish) { toSerialize["republish"] = o.Republish @@ -247,9 +166,6 @@ func (o RubyPackageUploadRequest) ToMap() (map[string]interface{}, error) { if o.Tags.IsSet() { toSerialize["tags"] = o.Tags.Get() } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -293,11 +209,9 @@ func (o *RubyPackageUploadRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "package_file") delete(additionalProperties, "republish") delete(additionalProperties, "tags") - delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_ruby_upstream.go b/model_ruby_upstream.go index 90e4fd36..020530bf 100644 --- a/model_ruby_upstream.go +++ b/model_ruby_upstream.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_ruby_upstream_request.go b/model_ruby_upstream_request.go index 18168c98..08ed5b35 100644 --- a/model_ruby_upstream_request.go +++ b/model_ruby_upstream_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_ruby_upstream_request_patch.go b/model_ruby_upstream_request_patch.go index 55e39803..efc2ffee 100644 --- a/model_ruby_upstream_request_patch.go +++ b/model_ruby_upstream_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_service.go b/model_service.go index e8014591..4424d84d 100644 --- a/model_service.go +++ b/model_service.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_service_request.go b/model_service_request.go index 1daa1942..ea6524af 100644 --- a/model_service_request.go +++ b/model_service_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_service_request_patch.go b/model_service_request_patch.go index f13fb40b..330d2f1f 100644 --- a/model_service_request_patch.go +++ b/model_service_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_service_teams.go b/model_service_teams.go index 203277cf..daf5b3bb 100644 --- a/model_service_teams.go +++ b/model_service_teams.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_status_basic.go b/model_status_basic.go index 5c8e1de1..48bf93cd 100644 --- a/model_status_basic.go +++ b/model_status_basic.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_storage_allocated_limit.go b/model_storage_allocated_limit.go index 453ea1fc..9b759aab 100644 --- a/model_storage_allocated_limit.go +++ b/model_storage_allocated_limit.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_storage_allocated_limit_raw.go b/model_storage_allocated_limit_raw.go index 54d60371..eb54004f 100644 --- a/model_storage_allocated_limit_raw.go +++ b/model_storage_allocated_limit_raw.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_storage_region.go b/model_storage_region.go index 30c12d40..270ad51a 100644 --- a/model_storage_region.go +++ b/model_storage_region.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_storage_usage.go b/model_storage_usage.go index d36fa867..9b5588ce 100644 --- a/model_storage_usage.go +++ b/model_storage_usage.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_storage_usage_raw.go b/model_storage_usage_raw.go index cfce566a..a5f93f90 100644 --- a/model_storage_usage_raw.go +++ b/model_storage_usage_raw.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_swift_package_upload.go b/model_swift_package_upload.go index 95f5b0c8..deefd1d5 100644 --- a/model_swift_package_upload.go +++ b/model_swift_package_upload.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -36,8 +36,10 @@ type SwiftPackageUpload struct { DependenciesChecksumMd5 NullableString `json:"dependencies_checksum_md5,omitempty"` DependenciesUrl *string `json:"dependencies_url,omitempty"` // A textual description of this package. - Description NullableString `json:"description,omitempty"` - DisplayName *string `json:"display_name,omitempty"` + Description NullableString `json:"description,omitempty"` + DisplayName *string `json:"display_name,omitempty"` + // Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + DisplaySource *string `json:"display_source,omitempty"` Distro NullableDistribution `json:"distro,omitempty"` DistroVersion *DistributionVersion `json:"distro_version,omitempty"` Downloads *int64 `json:"downloads,omitempty"` @@ -54,25 +56,23 @@ type SwiftPackageUpload struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The license URL of this package. @@ -153,10 +153,9 @@ type SwiftPackageUpload struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version string `json:"version"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version string `json:"version"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -599,6 +598,38 @@ func (o *SwiftPackageUpload) SetDisplayName(v string) { o.DisplayName = &v } +// GetDisplaySource returns the DisplaySource field value if set, zero value otherwise. +func (o *SwiftPackageUpload) GetDisplaySource() string { + if o == nil || IsNil(o.DisplaySource) { + var ret string + return ret + } + return *o.DisplaySource +} + +// GetDisplaySourceOk returns a tuple with the DisplaySource field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SwiftPackageUpload) GetDisplaySourceOk() (*string, bool) { + if o == nil || IsNil(o.DisplaySource) { + return nil, false + } + return o.DisplaySource, true +} + +// HasDisplaySource returns a boolean if a field has been set. +func (o *SwiftPackageUpload) HasDisplaySource() bool { + if o != nil && !IsNil(o.DisplaySource) { + return true + } + + return false +} + +// SetDisplaySource gets a reference to the given string and assigns it to the DisplaySource field. +func (o *SwiftPackageUpload) SetDisplaySource(v string) { + o.DisplaySource = &v +} + // GetDistro returns the Distro field value if set, zero value otherwise (both if not set or set to explicit null). func (o *SwiftPackageUpload) GetDistro() Distribution { if o == nil || IsNil(o.Distro.Get()) { @@ -1240,38 +1271,6 @@ func (o *SwiftPackageUpload) SetIsHidden(v bool) { o.IsHidden = &v } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *SwiftPackageUpload) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SwiftPackageUpload) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *SwiftPackageUpload) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *SwiftPackageUpload) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *SwiftPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3354,49 +3353,6 @@ func (o *SwiftPackageUpload) SetVersionOrig(v string) { o.VersionOrig = &v } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *SwiftPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *SwiftPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *SwiftPackageUpload) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *SwiftPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *SwiftPackageUpload) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *SwiftPackageUpload) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *SwiftPackageUpload) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3475,6 +3431,9 @@ func (o SwiftPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.DisplayName) { toSerialize["display_name"] = o.DisplayName } + if !IsNil(o.DisplaySource) { + toSerialize["display_source"] = o.DisplaySource + } if o.Distro.IsSet() { toSerialize["distro"] = o.Distro.Get() } @@ -3532,9 +3491,6 @@ func (o SwiftPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3712,9 +3668,6 @@ func (o SwiftPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3775,6 +3728,7 @@ func (o *SwiftPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "dependencies_url") delete(additionalProperties, "description") delete(additionalProperties, "display_name") + delete(additionalProperties, "display_source") delete(additionalProperties, "distro") delete(additionalProperties, "distro_version") delete(additionalProperties, "downloads") @@ -3794,7 +3748,6 @@ func (o *SwiftPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3856,7 +3809,6 @@ func (o *SwiftPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") - delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_swift_package_upload_request.go b/model_swift_package_upload_request.go index 3d9a7534..7401a4e6 100644 --- a/model_swift_package_upload_request.go +++ b/model_swift_package_upload_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -25,8 +25,6 @@ type SwiftPackageUploadRequest struct { AuthorName *string `json:"author_name,omitempty"` // The organization of the author. AuthorOrg *string `json:"author_org,omitempty"` - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` // The license URL of this package. LicenseUrl NullableString `json:"license_url,omitempty"` // The name of this package. @@ -44,8 +42,7 @@ type SwiftPackageUploadRequest struct { // A comma-separated values list of tags to add to the package. Tags NullableString `json:"tags,omitempty"` // The raw version for this package. - Version string `json:"version"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + Version string `json:"version"` AdditionalProperties map[string]interface{} } @@ -136,38 +133,6 @@ func (o *SwiftPackageUploadRequest) SetAuthorOrg(v string) { o.AuthorOrg = &v } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *SwiftPackageUploadRequest) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SwiftPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *SwiftPackageUploadRequest) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *SwiftPackageUploadRequest) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetLicenseUrl returns the LicenseUrl field value if set, zero value otherwise (both if not set or set to explicit null). func (o *SwiftPackageUploadRequest) GetLicenseUrl() string { if o == nil || IsNil(o.LicenseUrl.Get()) { @@ -446,49 +411,6 @@ func (o *SwiftPackageUploadRequest) SetVersion(v string) { o.Version = v } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *SwiftPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *SwiftPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *SwiftPackageUploadRequest) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *SwiftPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *SwiftPackageUploadRequest) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *SwiftPackageUploadRequest) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - func (o SwiftPackageUploadRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -505,9 +427,6 @@ func (o SwiftPackageUploadRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.AuthorOrg) { toSerialize["author_org"] = o.AuthorOrg } - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } if o.LicenseUrl.IsSet() { toSerialize["license_url"] = o.LicenseUrl.Get() } @@ -527,9 +446,6 @@ func (o SwiftPackageUploadRequest) ToMap() (map[string]interface{}, error) { toSerialize["tags"] = o.Tags.Get() } toSerialize["version"] = o.Version - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -578,7 +494,6 @@ func (o *SwiftPackageUploadRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "author_name") delete(additionalProperties, "author_org") - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "license_url") delete(additionalProperties, "name") delete(additionalProperties, "package_file") @@ -588,7 +503,6 @@ func (o *SwiftPackageUploadRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "scope") delete(additionalProperties, "tags") delete(additionalProperties, "version") - delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_swift_upstream.go b/model_swift_upstream.go index 9d2a53bf..9205e375 100644 --- a/model_swift_upstream.go +++ b/model_swift_upstream.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_swift_upstream_request.go b/model_swift_upstream_request.go index 12c91062..48c3f2cb 100644 --- a/model_swift_upstream_request.go +++ b/model_swift_upstream_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_swift_upstream_request_patch.go b/model_swift_upstream_request_patch.go index 5e8cd4b0..b3b8f5c3 100644 --- a/model_swift_upstream_request_patch.go +++ b/model_swift_upstream_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_terraform_package_upload.go b/model_terraform_package_upload.go index 2946cf7d..3a3b92bd 100644 --- a/model_terraform_package_upload.go +++ b/model_terraform_package_upload.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -31,8 +31,10 @@ type TerraformPackageUpload struct { DependenciesChecksumMd5 NullableString `json:"dependencies_checksum_md5,omitempty"` DependenciesUrl *string `json:"dependencies_url,omitempty"` // A textual description of this package. - Description NullableString `json:"description,omitempty"` - DisplayName *string `json:"display_name,omitempty"` + Description NullableString `json:"description,omitempty"` + DisplayName *string `json:"display_name,omitempty"` + // Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + DisplaySource *string `json:"display_source,omitempty"` Distro NullableDistribution `json:"distro,omitempty"` DistroVersion *DistributionVersion `json:"distro_version,omitempty"` Downloads *int64 `json:"downloads,omitempty"` @@ -49,25 +51,23 @@ type TerraformPackageUpload struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The name of this package. @@ -141,10 +141,9 @@ type TerraformPackageUpload struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -520,6 +519,38 @@ func (o *TerraformPackageUpload) SetDisplayName(v string) { o.DisplayName = &v } +// GetDisplaySource returns the DisplaySource field value if set, zero value otherwise. +func (o *TerraformPackageUpload) GetDisplaySource() string { + if o == nil || IsNil(o.DisplaySource) { + var ret string + return ret + } + return *o.DisplaySource +} + +// GetDisplaySourceOk returns a tuple with the DisplaySource field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TerraformPackageUpload) GetDisplaySourceOk() (*string, bool) { + if o == nil || IsNil(o.DisplaySource) { + return nil, false + } + return o.DisplaySource, true +} + +// HasDisplaySource returns a boolean if a field has been set. +func (o *TerraformPackageUpload) HasDisplaySource() bool { + if o != nil && !IsNil(o.DisplaySource) { + return true + } + + return false +} + +// SetDisplaySource gets a reference to the given string and assigns it to the DisplaySource field. +func (o *TerraformPackageUpload) SetDisplaySource(v string) { + o.DisplaySource = &v +} + // GetDistro returns the Distro field value if set, zero value otherwise (both if not set or set to explicit null). func (o *TerraformPackageUpload) GetDistro() Distribution { if o == nil || IsNil(o.Distro.Get()) { @@ -1161,38 +1192,6 @@ func (o *TerraformPackageUpload) SetIsHidden(v bool) { o.IsHidden = &v } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *TerraformPackageUpload) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TerraformPackageUpload) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *TerraformPackageUpload) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *TerraformPackageUpload) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *TerraformPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3214,49 +3213,6 @@ func (o *TerraformPackageUpload) SetVersionOrig(v string) { o.VersionOrig = &v } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *TerraformPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *TerraformPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *TerraformPackageUpload) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *TerraformPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *TerraformPackageUpload) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *TerraformPackageUpload) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *TerraformPackageUpload) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3329,6 +3285,9 @@ func (o TerraformPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.DisplayName) { toSerialize["display_name"] = o.DisplayName } + if !IsNil(o.DisplaySource) { + toSerialize["display_source"] = o.DisplaySource + } if o.Distro.IsSet() { toSerialize["distro"] = o.Distro.Get() } @@ -3386,9 +3345,6 @@ func (o TerraformPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3563,9 +3519,6 @@ func (o TerraformPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3601,6 +3554,7 @@ func (o *TerraformPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "dependencies_url") delete(additionalProperties, "description") delete(additionalProperties, "display_name") + delete(additionalProperties, "display_source") delete(additionalProperties, "distro") delete(additionalProperties, "distro_version") delete(additionalProperties, "downloads") @@ -3620,7 +3574,6 @@ func (o *TerraformPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3679,7 +3632,6 @@ func (o *TerraformPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") - delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_terraform_package_upload_request.go b/model_terraform_package_upload_request.go index a9958df7..deb0ea6d 100644 --- a/model_terraform_package_upload_request.go +++ b/model_terraform_package_upload_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -21,15 +21,12 @@ var _ MappedNullable = &TerraformPackageUploadRequest{} // TerraformPackageUploadRequest struct for TerraformPackageUploadRequest type TerraformPackageUploadRequest struct { - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` // The primary file for the package. PackageFile string `json:"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. Republish *bool `json:"republish,omitempty"` // A comma-separated values list of tags to add to the package. - Tags NullableString `json:"tags,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + Tags NullableString `json:"tags,omitempty"` AdditionalProperties map[string]interface{} } @@ -53,38 +50,6 @@ func NewTerraformPackageUploadRequestWithDefaults() *TerraformPackageUploadReque return &this } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *TerraformPackageUploadRequest) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TerraformPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *TerraformPackageUploadRequest) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *TerraformPackageUploadRequest) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetPackageFile returns the PackageFile field value func (o *TerraformPackageUploadRequest) GetPackageFile() string { if o == nil { @@ -184,49 +149,6 @@ func (o *TerraformPackageUploadRequest) UnsetTags() { o.Tags.Unset() } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *TerraformPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *TerraformPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *TerraformPackageUploadRequest) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *TerraformPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *TerraformPackageUploadRequest) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *TerraformPackageUploadRequest) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - func (o TerraformPackageUploadRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -237,9 +159,6 @@ func (o TerraformPackageUploadRequest) MarshalJSON() ([]byte, error) { func (o TerraformPackageUploadRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } toSerialize["package_file"] = o.PackageFile if !IsNil(o.Republish) { toSerialize["republish"] = o.Republish @@ -247,9 +166,6 @@ func (o TerraformPackageUploadRequest) ToMap() (map[string]interface{}, error) { if o.Tags.IsSet() { toSerialize["tags"] = o.Tags.Get() } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -293,11 +209,9 @@ func (o *TerraformPackageUploadRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "package_file") delete(additionalProperties, "republish") delete(additionalProperties, "tags") - delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_usage.go b/model_usage.go index d6c4d52f..650cfe62 100644 --- a/model_usage.go +++ b/model_usage.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_usage_fieldset.go b/model_usage_fieldset.go index 5c20bee9..5a595da6 100644 --- a/model_usage_fieldset.go +++ b/model_usage_fieldset.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_usage_limits.go b/model_usage_limits.go index fc2f7acd..d32b0f50 100644 --- a/model_usage_limits.go +++ b/model_usage_limits.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_usage_limits_raw.go b/model_usage_limits_raw.go index 05479624..f851bb11 100644 --- a/model_usage_limits_raw.go +++ b/model_usage_limits_raw.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_usage_raw.go b/model_usage_raw.go index 5d39f2cf..931c4701 100644 --- a/model_usage_raw.go +++ b/model_usage_raw.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_user_auth_token.go b/model_user_auth_token.go index c7d23cd0..22504836 100644 --- a/model_user_auth_token.go +++ b/model_user_auth_token.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_user_auth_token_request.go b/model_user_auth_token_request.go index dfab03cc..45d23f6c 100644 --- a/model_user_auth_token_request.go +++ b/model_user_auth_token_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_user_authentication_token.go b/model_user_authentication_token.go index 2d235fa7..02ebd7f8 100644 --- a/model_user_authentication_token.go +++ b/model_user_authentication_token.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_user_brief.go b/model_user_brief.go index d8a4acb9..46dc5b62 100644 --- a/model_user_brief.go +++ b/model_user_brief.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_user_profile.go b/model_user_profile.go index 683ba4f5..6fb5413b 100644 --- a/model_user_profile.go +++ b/model_user_profile.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_user_tokens_list_200_response.go b/model_user_tokens_list_200_response.go index 62700965..aa95912d 100644 --- a/model_user_tokens_list_200_response.go +++ b/model_user_tokens_list_200_response.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_vagrant_package_upload.go b/model_vagrant_package_upload.go index ba22d5e0..64ce77a1 100644 --- a/model_vagrant_package_upload.go +++ b/model_vagrant_package_upload.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -32,8 +32,10 @@ type VagrantPackageUpload struct { DependenciesChecksumMd5 NullableString `json:"dependencies_checksum_md5,omitempty"` DependenciesUrl *string `json:"dependencies_url,omitempty"` // A textual description of this package. - Description NullableString `json:"description,omitempty"` - DisplayName *string `json:"display_name,omitempty"` + Description NullableString `json:"description,omitempty"` + DisplayName *string `json:"display_name,omitempty"` + // Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + DisplaySource *string `json:"display_source,omitempty"` Distro NullableDistribution `json:"distro,omitempty"` DistroVersion *DistributionVersion `json:"distro_version,omitempty"` Downloads *int64 `json:"downloads,omitempty"` @@ -50,25 +52,23 @@ type VagrantPackageUpload struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The name of this package. @@ -144,10 +144,9 @@ type VagrantPackageUpload struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version string `json:"version"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version string `json:"version"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -526,6 +525,38 @@ func (o *VagrantPackageUpload) SetDisplayName(v string) { o.DisplayName = &v } +// GetDisplaySource returns the DisplaySource field value if set, zero value otherwise. +func (o *VagrantPackageUpload) GetDisplaySource() string { + if o == nil || IsNil(o.DisplaySource) { + var ret string + return ret + } + return *o.DisplaySource +} + +// GetDisplaySourceOk returns a tuple with the DisplaySource field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VagrantPackageUpload) GetDisplaySourceOk() (*string, bool) { + if o == nil || IsNil(o.DisplaySource) { + return nil, false + } + return o.DisplaySource, true +} + +// HasDisplaySource returns a boolean if a field has been set. +func (o *VagrantPackageUpload) HasDisplaySource() bool { + if o != nil && !IsNil(o.DisplaySource) { + return true + } + + return false +} + +// SetDisplaySource gets a reference to the given string and assigns it to the DisplaySource field. +func (o *VagrantPackageUpload) SetDisplaySource(v string) { + o.DisplaySource = &v +} + // GetDistro returns the Distro field value if set, zero value otherwise (both if not set or set to explicit null). func (o *VagrantPackageUpload) GetDistro() Distribution { if o == nil || IsNil(o.Distro.Get()) { @@ -1167,38 +1198,6 @@ func (o *VagrantPackageUpload) SetIsHidden(v bool) { o.IsHidden = &v } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *VagrantPackageUpload) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *VagrantPackageUpload) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *VagrantPackageUpload) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *VagrantPackageUpload) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *VagrantPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3206,49 +3205,6 @@ func (o *VagrantPackageUpload) SetVersionOrig(v string) { o.VersionOrig = &v } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VagrantPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VagrantPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *VagrantPackageUpload) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *VagrantPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *VagrantPackageUpload) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *VagrantPackageUpload) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *VagrantPackageUpload) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3321,6 +3277,9 @@ func (o VagrantPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.DisplayName) { toSerialize["display_name"] = o.DisplayName } + if !IsNil(o.DisplaySource) { + toSerialize["display_source"] = o.DisplaySource + } if o.Distro.IsSet() { toSerialize["distro"] = o.Distro.Get() } @@ -3378,9 +3337,6 @@ func (o VagrantPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3552,9 +3508,6 @@ func (o VagrantPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3613,6 +3566,7 @@ func (o *VagrantPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "dependencies_url") delete(additionalProperties, "description") delete(additionalProperties, "display_name") + delete(additionalProperties, "display_source") delete(additionalProperties, "distro") delete(additionalProperties, "distro_version") delete(additionalProperties, "downloads") @@ -3632,7 +3586,6 @@ func (o *VagrantPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3692,7 +3645,6 @@ func (o *VagrantPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") - delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_vagrant_package_upload_request.go b/model_vagrant_package_upload_request.go index 243089e6..867d34bd 100644 --- a/model_vagrant_package_upload_request.go +++ b/model_vagrant_package_upload_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -21,8 +21,6 @@ var _ MappedNullable = &VagrantPackageUploadRequest{} // VagrantPackageUploadRequest struct for VagrantPackageUploadRequest type VagrantPackageUploadRequest struct { - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` // The name of this package. Name string `json:"name"` // The primary file for the package. @@ -34,8 +32,7 @@ type VagrantPackageUploadRequest struct { // A comma-separated values list of tags to add to the package. Tags NullableString `json:"tags,omitempty"` // The raw version for this package. - Version string `json:"version"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + Version string `json:"version"` AdditionalProperties map[string]interface{} } @@ -62,38 +59,6 @@ func NewVagrantPackageUploadRequestWithDefaults() *VagrantPackageUploadRequest { return &this } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *VagrantPackageUploadRequest) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *VagrantPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *VagrantPackageUploadRequest) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *VagrantPackageUploadRequest) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetName returns the Name field value func (o *VagrantPackageUploadRequest) GetName() string { if o == nil { @@ -265,49 +230,6 @@ func (o *VagrantPackageUploadRequest) SetVersion(v string) { o.Version = v } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VagrantPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VagrantPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *VagrantPackageUploadRequest) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *VagrantPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *VagrantPackageUploadRequest) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *VagrantPackageUploadRequest) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - func (o VagrantPackageUploadRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -318,9 +240,6 @@ func (o VagrantPackageUploadRequest) MarshalJSON() ([]byte, error) { func (o VagrantPackageUploadRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } toSerialize["name"] = o.Name toSerialize["package_file"] = o.PackageFile toSerialize["provider"] = o.Provider @@ -331,9 +250,6 @@ func (o VagrantPackageUploadRequest) ToMap() (map[string]interface{}, error) { toSerialize["tags"] = o.Tags.Get() } toSerialize["version"] = o.Version - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -380,14 +296,12 @@ func (o *VagrantPackageUploadRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "name") delete(additionalProperties, "package_file") delete(additionalProperties, "provider") delete(additionalProperties, "republish") delete(additionalProperties, "tags") delete(additionalProperties, "version") - delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_vsx_package_upload.go b/model_vsx_package_upload.go index 55c10598..b7f0558a 100644 --- a/model_vsx_package_upload.go +++ b/model_vsx_package_upload.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -31,8 +31,10 @@ type VsxPackageUpload struct { DependenciesChecksumMd5 NullableString `json:"dependencies_checksum_md5,omitempty"` DependenciesUrl *string `json:"dependencies_url,omitempty"` // A textual description of this package. - Description NullableString `json:"description,omitempty"` - DisplayName *string `json:"display_name,omitempty"` + Description NullableString `json:"description,omitempty"` + DisplayName *string `json:"display_name,omitempty"` + // Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + DisplaySource *string `json:"display_source,omitempty"` Distro NullableDistribution `json:"distro,omitempty"` DistroVersion *DistributionVersion `json:"distro_version,omitempty"` Downloads *int64 `json:"downloads,omitempty"` @@ -49,25 +51,23 @@ type VsxPackageUpload struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The name of this package. @@ -141,10 +141,9 @@ type VsxPackageUpload struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -520,6 +519,38 @@ func (o *VsxPackageUpload) SetDisplayName(v string) { o.DisplayName = &v } +// GetDisplaySource returns the DisplaySource field value if set, zero value otherwise. +func (o *VsxPackageUpload) GetDisplaySource() string { + if o == nil || IsNil(o.DisplaySource) { + var ret string + return ret + } + return *o.DisplaySource +} + +// GetDisplaySourceOk returns a tuple with the DisplaySource field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VsxPackageUpload) GetDisplaySourceOk() (*string, bool) { + if o == nil || IsNil(o.DisplaySource) { + return nil, false + } + return o.DisplaySource, true +} + +// HasDisplaySource returns a boolean if a field has been set. +func (o *VsxPackageUpload) HasDisplaySource() bool { + if o != nil && !IsNil(o.DisplaySource) { + return true + } + + return false +} + +// SetDisplaySource gets a reference to the given string and assigns it to the DisplaySource field. +func (o *VsxPackageUpload) SetDisplaySource(v string) { + o.DisplaySource = &v +} + // GetDistro returns the Distro field value if set, zero value otherwise (both if not set or set to explicit null). func (o *VsxPackageUpload) GetDistro() Distribution { if o == nil || IsNil(o.Distro.Get()) { @@ -1161,38 +1192,6 @@ func (o *VsxPackageUpload) SetIsHidden(v bool) { o.IsHidden = &v } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *VsxPackageUpload) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *VsxPackageUpload) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *VsxPackageUpload) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *VsxPackageUpload) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *VsxPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3214,49 +3213,6 @@ func (o *VsxPackageUpload) SetVersionOrig(v string) { o.VersionOrig = &v } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VsxPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VsxPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *VsxPackageUpload) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *VsxPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *VsxPackageUpload) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *VsxPackageUpload) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *VsxPackageUpload) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3329,6 +3285,9 @@ func (o VsxPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.DisplayName) { toSerialize["display_name"] = o.DisplayName } + if !IsNil(o.DisplaySource) { + toSerialize["display_source"] = o.DisplaySource + } if o.Distro.IsSet() { toSerialize["distro"] = o.Distro.Get() } @@ -3386,9 +3345,6 @@ func (o VsxPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3563,9 +3519,6 @@ func (o VsxPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3601,6 +3554,7 @@ func (o *VsxPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "dependencies_url") delete(additionalProperties, "description") delete(additionalProperties, "display_name") + delete(additionalProperties, "display_source") delete(additionalProperties, "distro") delete(additionalProperties, "distro_version") delete(additionalProperties, "downloads") @@ -3620,7 +3574,6 @@ func (o *VsxPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3679,7 +3632,6 @@ func (o *VsxPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") - delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_vsx_package_upload_request.go b/model_vsx_package_upload_request.go index 8b3e1272..c041ca4c 100644 --- a/model_vsx_package_upload_request.go +++ b/model_vsx_package_upload_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ @@ -21,15 +21,12 @@ var _ MappedNullable = &VsxPackageUploadRequest{} // VsxPackageUploadRequest struct for VsxPackageUploadRequest type VsxPackageUploadRequest struct { - // Whether the package has been detected as containing malware. Requires Ultra plan. - IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` // The primary file for the package. PackageFile string `json:"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. Republish *bool `json:"republish,omitempty"` // A comma-separated values list of tags to add to the package. - Tags NullableString `json:"tags,omitempty"` - VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + Tags NullableString `json:"tags,omitempty"` AdditionalProperties map[string]interface{} } @@ -53,38 +50,6 @@ func NewVsxPackageUploadRequestWithDefaults() *VsxPackageUploadRequest { return &this } -// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. -func (o *VsxPackageUploadRequest) GetIsMalwareDetected() bool { - if o == nil || IsNil(o.IsMalwareDetected) { - var ret bool - return ret - } - return *o.IsMalwareDetected -} - -// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *VsxPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool) { - if o == nil || IsNil(o.IsMalwareDetected) { - return nil, false - } - return o.IsMalwareDetected, true -} - -// HasIsMalwareDetected returns a boolean if a field has been set. -func (o *VsxPackageUploadRequest) HasIsMalwareDetected() bool { - if o != nil && !IsNil(o.IsMalwareDetected) { - return true - } - - return false -} - -// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. -func (o *VsxPackageUploadRequest) SetIsMalwareDetected(v bool) { - o.IsMalwareDetected = &v -} - // GetPackageFile returns the PackageFile field value func (o *VsxPackageUploadRequest) GetPackageFile() string { if o == nil { @@ -184,49 +149,6 @@ func (o *VsxPackageUploadRequest) UnsetTags() { o.Tags.Unset() } -// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VsxPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts { - if o == nil || IsNil(o.VulnerabilityCounts.Get()) { - var ret WebOSVSeverityCounts - return ret - } - return *o.VulnerabilityCounts.Get() -} - -// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VsxPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { - if o == nil { - return nil, false - } - return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() -} - -// HasVulnerabilityCounts returns a boolean if a field has been set. -func (o *VsxPackageUploadRequest) HasVulnerabilityCounts() bool { - if o != nil && o.VulnerabilityCounts.IsSet() { - return true - } - - return false -} - -// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. -func (o *VsxPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts) { - o.VulnerabilityCounts.Set(&v) -} - -// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -func (o *VsxPackageUploadRequest) SetVulnerabilityCountsNil() { - o.VulnerabilityCounts.Set(nil) -} - -// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil -func (o *VsxPackageUploadRequest) UnsetVulnerabilityCounts() { - o.VulnerabilityCounts.Unset() -} - func (o VsxPackageUploadRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -237,9 +159,6 @@ func (o VsxPackageUploadRequest) MarshalJSON() ([]byte, error) { func (o VsxPackageUploadRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !IsNil(o.IsMalwareDetected) { - toSerialize["is_malware_detected"] = o.IsMalwareDetected - } toSerialize["package_file"] = o.PackageFile if !IsNil(o.Republish) { toSerialize["republish"] = o.Republish @@ -247,9 +166,6 @@ func (o VsxPackageUploadRequest) ToMap() (map[string]interface{}, error) { if o.Tags.IsSet() { toSerialize["tags"] = o.Tags.Get() } - if o.VulnerabilityCounts.IsSet() { - toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -293,11 +209,9 @@ func (o *VsxPackageUploadRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "package_file") delete(additionalProperties, "republish") delete(additionalProperties, "tags") - delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_vulnerability.go b/model_vulnerability.go index 31b076e0..3262005f 100644 --- a/model_vulnerability.go +++ b/model_vulnerability.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_vulnerability_scan.go b/model_vulnerability_scan.go index d9e2f4a6..313be7f5 100644 --- a/model_vulnerability_scan.go +++ b/model_vulnerability_scan.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_vulnerability_scan_results.go b/model_vulnerability_scan_results.go index 89a3d1a1..2ce88b6c 100644 --- a/model_vulnerability_scan_results.go +++ b/model_vulnerability_scan_results.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_vulnerability_scan_results_list.go b/model_vulnerability_scan_results_list.go index e4b368da..ac5a168e 100644 --- a/model_vulnerability_scan_results_list.go +++ b/model_vulnerability_scan_results_list.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_vulnerability_scan_version.go b/model_vulnerability_scan_version.go index a24cffd7..ac1fcf7d 100644 --- a/model_vulnerability_scan_version.go +++ b/model_vulnerability_scan_version.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_web_osv_severity_counts.go b/model_web_osv_severity_counts.go index 5d2c5506..1edd9b08 100644 --- a/model_web_osv_severity_counts.go +++ b/model_web_osv_severity_counts.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/model_webhook_template.go b/model_webhook_template.go index 2db07879..93f1b261 100644 --- a/model_webhook_template.go +++ b/model_webhook_template.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/response.go b/response.go index 8a57ac36..d5eb0cb3 100644 --- a/response.go +++ b/response.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */ diff --git a/utils.go b/utils.go index c430f87b..1e11682b 100644 --- a/utils.go +++ b/utils.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1358.3 +API version: 1.1388.0 Contact: support@cloudsmith.io */