From 48cc613b9ed59dfac6240bd5124ee591fba62de1 Mon Sep 17 00:00:00 2001 From: Ian Duffy Date: Fri, 24 Apr 2026 14:55:03 +0100 Subject: [PATCH] Update Go API bindings to version 0.0.56 Binding version: 0.0.56 Cloudsmith API version: 1.1137.0 - Updated PKG_VERSION in bin/generate - Regenerated Go bindings - Ready for tagging and release --- .openapi-generator/FILES | 15 + README.md | 17 +- api/openapi.yaml | 2085 +++++++--- 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 | 145 +- api_files.go | 2 +- api_formats.go | 2 +- api_metrics.go | 2 +- api_namespaces.go | 2 +- api_orgs.go | 2 +- api_packages.go | 313 +- api_quota.go | 2 +- api_rates.go | 2 +- api_recycle_bin.go | 338 ++ api_repos.go | 6 +- 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 | 7 +- configuration.go | 4 +- docs/AlpineUpstream.md | 136 +- docs/AlpineUpstreamRequest.md | 62 + docs/AlpineUpstreamRequestPatch.md | 62 + docs/CargoUpstream.md | 12 +- docs/ComposerUpstream.md | 12 +- docs/CondaUpstream.md | 12 +- docs/CranUpstream.md | 12 +- docs/DartUpstream.md | 12 +- docs/DebUpstream.md | 12 +- docs/EntitlementsApi.md | 77 + docs/GenericUpstream.md | 12 +- docs/GoUpstream.md | 12 +- docs/HelmUpstream.md | 12 +- docs/HexUpstream.md | 12 +- docs/HuggingfaceUpstream.md | 12 +- docs/MavenUpstream.md | 12 +- docs/McpPackageUpload.md | 2414 ++++++++++++ docs/McpPackageUploadRequest.md | 149 + docs/NpmUpstream.md | 12 +- docs/NugetUpstream.md | 12 +- docs/PackageRecycleBin.md | 98 + docs/PackagesApi.md | 150 + docs/PythonUpstream.md | 12 +- docs/RecycleBinApi.md | 158 + docs/RecycleBinPackage.md | 714 ++++ docs/ReposApi.md | 4 +- docs/RepositoryToken.md | 2 +- docs/RepositoryTokenPrivateBroadcasts.md | 51 + ...RepositoryTokenPrivateBroadcastsRequest.md | 51 + docs/RepositoryTokenRefresh.md | 2 +- docs/RepositoryTokenRefreshRequest.md | 26 - docs/RepositoryTokenRequest.md | 26 - docs/RepositoryTokenRequestPatch.md | 26 - docs/RpmUpstream.md | 12 +- docs/RubyUpstream.md | 12 +- docs/SwiftUpstream.md | 12 +- model_allocated_limit.go | 2 +- model_allocated_limit_raw.go | 2 +- model_alpine_package_upload.go | 2 +- model_alpine_package_upload_request.go | 2 +- model_alpine_upstream.go | 219 +- model_alpine_upstream_request.go | 93 +- model_alpine_upstream_request_patch.go | 93 +- model_architecture.go | 2 +- model_broadcast_token.go | 2 +- model_broadcast_token_input.go | 2 +- model_cargo_package_upload.go | 2 +- model_cargo_package_upload_request.go | 2 +- model_cargo_upstream.go | 35 +- model_cargo_upstream_request.go | 2 +- model_cargo_upstream_request_patch.go | 2 +- model_cocoapods_package_upload.go | 2 +- model_cocoapods_package_upload_request.go | 2 +- 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 | 2 +- model_composer_package_upload_request.go | 2 +- model_composer_upstream.go | 35 +- model_composer_upstream_request.go | 2 +- model_composer_upstream_request_patch.go | 2 +- model_conan_package_upload.go | 2 +- model_conan_package_upload_request.go | 2 +- model_conda_package_upload.go | 2 +- model_conda_package_upload_request.go | 2 +- model_conda_upstream.go | 35 +- model_conda_upstream_request.go | 2 +- model_conda_upstream_request_patch.go | 2 +- model_cran_package_upload.go | 2 +- model_cran_package_upload_request.go | 2 +- model_cran_upstream.go | 35 +- model_cran_upstream_request.go | 2 +- model_cran_upstream_request_patch.go | 2 +- model_dart_package_upload.go | 2 +- model_dart_package_upload_request.go | 2 +- model_dart_upstream.go | 35 +- model_dart_upstream_request.go | 2 +- model_dart_upstream_request_patch.go | 2 +- model_deb_package_upload.go | 2 +- model_deb_package_upload_request.go | 2 +- model_deb_upstream.go | 35 +- 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 | 2 +- model_docker_package_upload_request.go | 2 +- 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 | 2 +- model_generic_package_upload_request.go | 2 +- model_generic_upstream.go | 35 +- model_generic_upstream_request.go | 2 +- model_generic_upstream_request_patch.go | 2 +- model_geo_ip_location.go | 2 +- model_go_package_upload.go | 2 +- model_go_package_upload_request.go | 2 +- model_go_upstream.go | 35 +- model_go_upstream_request.go | 2 +- model_go_upstream_request_patch.go | 2 +- model_helm_package_upload.go | 2 +- model_helm_package_upload_request.go | 2 +- model_helm_upstream.go | 35 +- model_helm_upstream_request.go | 2 +- model_helm_upstream_request_patch.go | 2 +- model_hex_package_upload.go | 2 +- model_hex_package_upload_request.go | 2 +- model_hex_upstream.go | 35 +- 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 | 2 +- model_huggingface_package_upload_request.go | 2 +- model_huggingface_upstream.go | 35 +- model_huggingface_upstream_request.go | 2 +- model_huggingface_upstream_request_patch.go | 2 +- model_luarocks_package_upload.go | 2 +- model_luarocks_package_upload_request.go | 2 +- model_maven_package_upload.go | 2 +- model_maven_package_upload_request.go | 2 +- model_maven_upstream.go | 35 +- model_maven_upstream_request.go | 2 +- model_maven_upstream_request_patch.go | 2 +- model_mcp_package_upload.go | 3476 +++++++++++++++++ model_mcp_package_upload_request.go | 304 ++ 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_npm_package_upload.go | 2 +- model_npm_package_upload_request.go | 2 +- model_npm_upstream.go | 35 +- model_npm_upstream_request.go | 2 +- model_npm_upstream_request_patch.go | 2 +- model_nuget_package_upload.go | 2 +- model_nuget_package_upload_request.go | 2 +- model_nuget_upstream.go | 35 +- model_nuget_upstream_request.go | 2 +- model_nuget_upstream_request_patch.go | 2 +- model_organization.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_p2_package_upload.go | 2 +- model_p2_package_upload_request.go | 2 +- model_package.go | 2 +- model_package_bulk_action.go | 2 +- model_package_bulk_action_response.go | 2 +- model_package_copy.go | 2 +- model_package_copy_request.go | 2 +- 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_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 | 2 +- ...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 | 2 +- model_package_move.go | 2 +- model_package_move_request.go | 2 +- model_package_quarantine.go | 2 +- model_package_quarantine_request.go | 2 +- model_package_recycle_bin.go | 236 ++ model_package_resync.go | 2 +- model_package_status.go | 2 +- model_package_tag.go | 2 +- model_package_tag_request.go | 2 +- model_package_usage_metrics.go | 2 +- model_package_vulnerability.go | 2 +- ...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 | 2 +- model_python_package_upload_request.go | 2 +- model_python_upstream.go | 35 +- 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 | 2 +- model_raw_package_upload_request.go | 2 +- model_recycle_bin_package.go | 1074 +++++ 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_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 | 168 + ...sitory_token_private_broadcasts_request.go | 168 + model_repository_token_refresh.go | 2 +- model_repository_token_refresh_request.go | 40 +- model_repository_token_request.go | 40 +- model_repository_token_request_patch.go | 40 +- 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 | 2 +- model_rpm_package_upload_request.go | 2 +- model_rpm_upstream.go | 35 +- model_rpm_upstream_request.go | 2 +- model_rpm_upstream_request_patch.go | 2 +- model_ruby_package_upload.go | 2 +- model_ruby_package_upload_request.go | 2 +- model_ruby_upstream.go | 35 +- 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 | 2 +- model_swift_package_upload_request.go | 2 +- model_swift_upstream.go | 35 +- model_swift_upstream_request.go | 2 +- model_swift_upstream_request_patch.go | 2 +- model_terraform_package_upload.go | 2 +- model_terraform_package_upload_request.go | 2 +- 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 | 2 +- model_vagrant_package_upload_request.go | 2 +- model_vsx_package_upload.go | 2 +- model_vsx_package_upload_request.go | 2 +- 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_webhook_template.go | 2 +- response.go | 2 +- utils.go | 2 +- 354 files changed, 13291 insertions(+), 1202 deletions(-) create mode 100644 api_recycle_bin.go create mode 100644 docs/McpPackageUpload.md create mode 100644 docs/McpPackageUploadRequest.md create mode 100644 docs/PackageRecycleBin.md create mode 100644 docs/RecycleBinApi.md create mode 100644 docs/RecycleBinPackage.md create mode 100644 docs/RepositoryTokenPrivateBroadcasts.md create mode 100644 docs/RepositoryTokenPrivateBroadcastsRequest.md create mode 100644 model_mcp_package_upload.go create mode 100644 model_mcp_package_upload_request.go create mode 100644 model_package_recycle_bin.go create mode 100644 model_recycle_bin_package.go create mode 100644 model_repository_token_private_broadcasts.go create mode 100644 model_repository_token_private_broadcasts_request.go diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 9a3d4e9d..f18e15b0 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -16,6 +16,7 @@ api_orgs.go api_packages.go api_quota.go api_rates.go +api_recycle_bin.go api_repos.go api_status.go api_storage_regions.go @@ -133,6 +134,8 @@ docs/MavenPackageUploadRequest.md docs/MavenUpstream.md docs/MavenUpstreamRequest.md docs/MavenUpstreamRequestPatch.md +docs/McpPackageUpload.md +docs/McpPackageUploadRequest.md docs/MetricsApi.md docs/Namespace.md docs/NamespaceAuditLog.md @@ -205,6 +208,7 @@ docs/PackageMove.md docs/PackageMoveRequest.md docs/PackageQuarantine.md docs/PackageQuarantineRequest.md +docs/PackageRecycleBin.md docs/PackageResync.md docs/PackageStatus.md docs/PackageTag.md @@ -232,6 +236,8 @@ docs/RateCheck.md docs/RatesApi.md docs/RawPackageUpload.md docs/RawPackageUploadRequest.md +docs/RecycleBinApi.md +docs/RecycleBinPackage.md docs/ReposApi.md docs/Repository.md docs/RepositoryAuditLog.md @@ -260,6 +266,8 @@ docs/RepositoryRetentionRulesRequestPatch.md docs/RepositoryRsaKey.md docs/RepositoryRsaKeyCreate.md docs/RepositoryToken.md +docs/RepositoryTokenPrivateBroadcasts.md +docs/RepositoryTokenPrivateBroadcastsRequest.md docs/RepositoryTokenRefresh.md docs/RepositoryTokenRefreshRequest.md docs/RepositoryTokenRequest.md @@ -431,6 +439,8 @@ model_maven_package_upload_request.go model_maven_upstream.go model_maven_upstream_request.go model_maven_upstream_request_patch.go +model_mcp_package_upload.go +model_mcp_package_upload_request.go model_namespace.go model_namespace_audit_log.go model_nested_license_policy.go @@ -500,6 +510,7 @@ model_package_move.go model_package_move_request.go model_package_quarantine.go model_package_quarantine_request.go +model_package_recycle_bin.go model_package_resync.go model_package_status.go model_package_tag.go @@ -524,6 +535,7 @@ model_quota_history.go model_rate_check.go model_raw_package_upload.go model_raw_package_upload_request.go +model_recycle_bin_package.go model_repository.go model_repository_audit_log.go model_repository_create.go @@ -551,6 +563,8 @@ model_repository_retention_rules_request_patch.go model_repository_rsa_key.go model_repository_rsa_key_create.go model_repository_token.go +model_repository_token_private_broadcasts.go +model_repository_token_private_broadcasts_request.go model_repository_token_refresh.go model_repository_token_refresh_request.go model_repository_token_request.go @@ -628,6 +642,7 @@ test/api_orgs_test.go test/api_packages_test.go test/api_quota_test.go test/api_rates_test.go +test/api_recycle_bin_test.go test/api_repos_test.go test/api_status_test.go test/api_storage_regions_test.go diff --git a/README.md b/README.md index 8deac289..8790c5c0 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.1093.0 -- Package version: 0.0.55 +- API version: 1.1137.0 +- Package version: 0.0.56 - 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) @@ -96,6 +96,7 @@ Class | Method | HTTP request | Description *EntitlementsApi* | [**EntitlementsRefresh**](docs/EntitlementsApi.md#entitlementsrefresh) | **Post** /entitlements/{owner}/{repo}/{identifier}/refresh/ | Refresh an entitlement token in a repository. *EntitlementsApi* | [**EntitlementsReset**](docs/EntitlementsApi.md#entitlementsreset) | **Post** /entitlements/{owner}/{repo}/{identifier}/reset/ | Reset the statistics for an entitlement token in a repository. *EntitlementsApi* | [**EntitlementsSync**](docs/EntitlementsApi.md#entitlementssync) | **Post** /entitlements/{owner}/{repo}/sync/ | Synchronise tokens from a source repository. +*EntitlementsApi* | [**EntitlementsTogglePrivateBroadcasts**](docs/EntitlementsApi.md#entitlementstoggleprivatebroadcasts) | **Post** /entitlements/{owner}/{repo}/{identifier}/toggle-private-broadcasts/ | Set private broadcast access for an entitlement token in a repository. *FilesApi* | [**FilesAbort**](docs/FilesApi.md#filesabort) | **Post** /files/{owner}/{repo}/{identifier}/abort/ | Abort a multipart file upload. *FilesApi* | [**FilesComplete**](docs/FilesApi.md#filescomplete) | **Post** /files/{owner}/{repo}/{identifier}/complete/ | Complete a multipart file upload. *FilesApi* | [**FilesCreate**](docs/FilesApi.md#filescreate) | **Post** /files/{owner}/{repo}/ | Request URL(s) to upload new package file upload(s) to. @@ -211,6 +212,7 @@ Class | Method | HTTP request | Description *PackagesApi* | [**PackagesUploadHuggingface**](docs/PackagesApi.md#packagesuploadhuggingface) | **Post** /packages/{owner}/{repo}/upload/huggingface/ | Create a new HuggingFace package *PackagesApi* | [**PackagesUploadLuarocks**](docs/PackagesApi.md#packagesuploadluarocks) | **Post** /packages/{owner}/{repo}/upload/luarocks/ | Create a new LuaRocks package *PackagesApi* | [**PackagesUploadMaven**](docs/PackagesApi.md#packagesuploadmaven) | **Post** /packages/{owner}/{repo}/upload/maven/ | Create a new Maven package +*PackagesApi* | [**PackagesUploadMcp**](docs/PackagesApi.md#packagesuploadmcp) | **Post** /packages/{owner}/{repo}/upload/mcp/ | Create a new MCP package *PackagesApi* | [**PackagesUploadNpm**](docs/PackagesApi.md#packagesuploadnpm) | **Post** /packages/{owner}/{repo}/upload/npm/ | Create a new npm package *PackagesApi* | [**PackagesUploadNuget**](docs/PackagesApi.md#packagesuploadnuget) | **Post** /packages/{owner}/{repo}/upload/nuget/ | Create a new NuGet package *PackagesApi* | [**PackagesUploadP2**](docs/PackagesApi.md#packagesuploadp2) | **Post** /packages/{owner}/{repo}/upload/p2/ | Create a new P2 package @@ -239,6 +241,7 @@ Class | Method | HTTP request | Description *PackagesApi* | [**PackagesValidateUploadHuggingface**](docs/PackagesApi.md#packagesvalidateuploadhuggingface) | **Post** /packages/{owner}/{repo}/validate-upload/huggingface/ | Validate parameters for create HuggingFace package *PackagesApi* | [**PackagesValidateUploadLuarocks**](docs/PackagesApi.md#packagesvalidateuploadluarocks) | **Post** /packages/{owner}/{repo}/validate-upload/luarocks/ | Validate parameters for create LuaRocks package *PackagesApi* | [**PackagesValidateUploadMaven**](docs/PackagesApi.md#packagesvalidateuploadmaven) | **Post** /packages/{owner}/{repo}/validate-upload/maven/ | Validate parameters for create Maven package +*PackagesApi* | [**PackagesValidateUploadMcp**](docs/PackagesApi.md#packagesvalidateuploadmcp) | **Post** /packages/{owner}/{repo}/validate-upload/mcp/ | Validate parameters for create MCP package *PackagesApi* | [**PackagesValidateUploadNpm**](docs/PackagesApi.md#packagesvalidateuploadnpm) | **Post** /packages/{owner}/{repo}/validate-upload/npm/ | Validate parameters for create npm package *PackagesApi* | [**PackagesValidateUploadNuget**](docs/PackagesApi.md#packagesvalidateuploadnuget) | **Post** /packages/{owner}/{repo}/validate-upload/nuget/ | Validate parameters for create NuGet package *PackagesApi* | [**PackagesValidateUploadP2**](docs/PackagesApi.md#packagesvalidateuploadp2) | **Post** /packages/{owner}/{repo}/validate-upload/p2/ | Validate parameters for create P2 package @@ -255,11 +258,13 @@ Class | Method | HTTP request | Description *QuotaApi* | [**QuotaOssRead**](docs/QuotaApi.md#quotaossread) | **Get** /quota/oss/{owner}/ | Open-source Quota usage for a given namespace. *QuotaApi* | [**QuotaRead**](docs/QuotaApi.md#quotaread) | **Get** /quota/{owner}/ | Quota usage for a given namespace. *RatesApi* | [**RatesLimitsList**](docs/RatesApi.md#rateslimitslist) | **Get** /rates/limits/ | Endpoint to check rate limits for current user. +*RecycleBinApi* | [**RecycleBinList**](docs/RecycleBinApi.md#recyclebinlist) | **Get** /recycle-bin/{owner}/ | List soft-deleted packages in recycle bin +*RecycleBinApi* | [**RecycleBinRecycleBinAction**](docs/RecycleBinApi.md#recyclebinrecyclebinaction) | **Post** /recycle-bin/{owner}/action/ | *ReposApi* | [**ApiReposGeoipStatus**](docs/ReposApi.md#apireposgeoipstatus) | **Get** /repos/{owner}/{identifier}/geoip/status/ | Retrieve the GeoIP status for this repository. *ReposApi* | [**RepoRetentionPartialUpdate**](docs/ReposApi.md#reporetentionpartialupdate) | **Patch** /repos/{owner}/{repo}/retention/ | Update the retention rules for the repository. *ReposApi* | [**RepoRetentionRead**](docs/ReposApi.md#reporetentionread) | **Get** /repos/{owner}/{repo}/retention/ | Retrieve the retention rules for the repository. *ReposApi* | [**ReposCreate**](docs/ReposApi.md#reposcreate) | **Post** /repos/{owner}/ | Create a new repository in a given namespace. -*ReposApi* | [**ReposDelete**](docs/ReposApi.md#reposdelete) | **Delete** /repos/{owner}/{identifier}/ | Delete a repository in a given namespace. +*ReposApi* | [**ReposDelete**](docs/ReposApi.md#reposdelete) | **Delete** /repos/{owner}/{identifier}/ | *ReposApi* | [**ReposEcdsaCreate**](docs/ReposApi.md#reposecdsacreate) | **Post** /repos/{owner}/{identifier}/ecdsa/ | Set the active ECDSA key for the Repository. *ReposApi* | [**ReposEcdsaList**](docs/ReposApi.md#reposecdsalist) | **Get** /repos/{owner}/{identifier}/ecdsa/ | Retrieve the active ECDSA key for the Repository. *ReposApi* | [**ReposEcdsaRegenerate**](docs/ReposApi.md#reposecdsaregenerate) | **Post** /repos/{owner}/{identifier}/ecdsa/regenerate/ | Regenerate ECDSA Key for the Repository. @@ -527,6 +532,8 @@ Class | Method | HTTP request | Description - [MavenUpstream](docs/MavenUpstream.md) - [MavenUpstreamRequest](docs/MavenUpstreamRequest.md) - [MavenUpstreamRequestPatch](docs/MavenUpstreamRequestPatch.md) + - [McpPackageUpload](docs/McpPackageUpload.md) + - [McpPackageUploadRequest](docs/McpPackageUploadRequest.md) - [Namespace](docs/Namespace.md) - [NamespaceAuditLog](docs/NamespaceAuditLog.md) - [NestedLicensePolicy](docs/NestedLicensePolicy.md) @@ -596,6 +603,7 @@ Class | Method | HTTP request | Description - [PackageMoveRequest](docs/PackageMoveRequest.md) - [PackageQuarantine](docs/PackageQuarantine.md) - [PackageQuarantineRequest](docs/PackageQuarantineRequest.md) + - [PackageRecycleBin](docs/PackageRecycleBin.md) - [PackageResync](docs/PackageResync.md) - [PackageStatus](docs/PackageStatus.md) - [PackageTag](docs/PackageTag.md) @@ -620,6 +628,7 @@ Class | Method | HTTP request | Description - [RateCheck](docs/RateCheck.md) - [RawPackageUpload](docs/RawPackageUpload.md) - [RawPackageUploadRequest](docs/RawPackageUploadRequest.md) + - [RecycleBinPackage](docs/RecycleBinPackage.md) - [Repository](docs/Repository.md) - [RepositoryAuditLog](docs/RepositoryAuditLog.md) - [RepositoryCreate](docs/RepositoryCreate.md) @@ -647,6 +656,8 @@ Class | Method | HTTP request | Description - [RepositoryRsaKey](docs/RepositoryRsaKey.md) - [RepositoryRsaKeyCreate](docs/RepositoryRsaKeyCreate.md) - [RepositoryToken](docs/RepositoryToken.md) + - [RepositoryTokenPrivateBroadcasts](docs/RepositoryTokenPrivateBroadcasts.md) + - [RepositoryTokenPrivateBroadcastsRequest](docs/RepositoryTokenPrivateBroadcastsRequest.md) - [RepositoryTokenRefresh](docs/RepositoryTokenRefresh.md) - [RepositoryTokenRefreshRequest](docs/RepositoryTokenRefreshRequest.md) - [RepositoryTokenRequest](docs/RepositoryTokenRequest.md) diff --git a/api/openapi.yaml b/api/openapi.yaml index 9e98d092..44894f88 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.1093.0 + version: 1.1137.0 servers: - url: https://api.cloudsmith.io/ security: @@ -941,6 +941,53 @@ paths: summary: Reset the statistics for an entitlement token in a repository. tags: - entitlements + /entitlements/{owner}/{repo}/{identifier}/toggle-private-broadcasts/: + post: + description: Set private broadcast access for an entitlement token in a repository. + operationId: entitlements_toggle_private_broadcasts + parameters: + - in: path + name: owner + required: true + schema: + type: string + - in: path + name: repo + required: true + schema: + type: string + - in: path + name: identifier + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/RepositoryTokenPrivateBroadcastsRequest' + required: false + responses: + "200": + content: {} + description: Private broadcasts access has been updated for the entitlement + token. + "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: Set private broadcast access for an entitlement token in a repository. + tags: + - entitlements + x-codegen-request-body-name: data /files/{owner}/{repo}/: post: description: Request URL(s) to upload new package file upload(s) to. @@ -5656,6 +5703,56 @@ paths: tags: - packages x-codegen-request-body-name: data + /packages/{owner}/{repo}/upload/mcp/: + post: + description: Create a new MCP package + operationId: packages_upload_mcp + parameters: + - in: path + name: owner + required: true + schema: + type: string + - in: path + name: repo + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/McpPackageUploadRequest' + required: false + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/McpPackageUpload' + description: Upload acknowledged and queued for synchronization. + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorDetail' + description: Namespace (owner) or repository not found + "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 a new MCP package + tags: + - packages + x-codegen-request-body-name: data /packages/{owner}/{repo}/upload/npm/: post: description: Create a new npm package @@ -7005,6 +7102,53 @@ paths: tags: - packages x-codegen-request-body-name: data + /packages/{owner}/{repo}/validate-upload/mcp/: + post: + description: Validate parameters for create MCP package + operationId: packages_validate-upload_mcp + parameters: + - in: path + name: owner + required: true + schema: + type: string + - in: path + name: repo + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/McpPackageUploadRequest' + required: false + responses: + "204": + content: {} + description: "Validation was successful, parameters are OK." + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorDetail' + description: Namespace (owner) or repository not found + "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: Validate parameters for create MCP package + tags: + - packages + x-codegen-request-body-name: data /packages/{owner}/{repo}/validate-upload/npm/: post: description: Validate parameters for create npm package @@ -8172,6 +8316,96 @@ paths: summary: Endpoint to check rate limits for current user. tags: - rates + /recycle-bin/{owner}/: + get: + description: Retrieve all soft-deleted packages in the workspace. Optionally + filter by repository using the 'repository' query parameter. + operationId: recycle-bin_list + parameters: + - in: path + name: owner + required: true + schema: + type: string + - description: A page number within the paginated result set. + in: query + name: page + schema: + type: integer + - description: Number of results to return per page. + in: query + name: page_size + schema: + type: integer + - description: Filter packages by repository slug + in: query + name: repository + schema: + type: string + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RecycleBinPackage' + 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 soft-deleted packages in recycle bin + tags: + - recycle-bin + /recycle-bin/{owner}/action/: + post: + description: "Perform actions on soft-deleted packages in the recycle bin. Supported\ + \ actions: permanently delete (hard delete), restore. Returns a list of successfully\ + \ actioned packages and any packages that failed with error details. " + operationId: recycle-bin_recycle_bin_action + parameters: + - in: path + name: owner + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PackageRecycleBin' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/PackageBulkActionResponse' + 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). + tags: + - recycle-bin + x-codegen-request-body-name: data /repos/: get: description: Get a list of all repositories associated with current user. @@ -8321,7 +8555,9 @@ paths: x-codegen-request-body-name: data /repos/{owner}/{identifier}/: delete: - description: Delete a repository in a given namespace. + description: "Delete a repository in a given namespace.Repositories are soft-deleted\ + \ and can be restored within a retention period. During this time, the repository's\ + \ slug remains reserved and cannot be reused for new repositories." operationId: repos_delete parameters: - in: path @@ -8356,7 +8592,6 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Delete a repository in a given namespace. tags: - repos get: @@ -16266,6 +16501,7 @@ components: properties: access_private_broadcasts: description: "If enabled, this token can be used for private broadcasts" + readOnly: true title: Access private broadcasts type: boolean clients: @@ -16528,7 +16764,6 @@ components: limit_bandwidth_unit: Byte scheduled_reset_at: 2000-01-23T04:56:07.000+00:00 limit_bandwidth: -2147483648 - access_private_broadcasts: true limit_num_clients: 2147483647 limit_package_query: limit_package_query limit_path_query: limit_path_query @@ -16539,10 +16774,6 @@ components: eula_required: true scheduled_reset_period: Never Reset properties: - access_private_broadcasts: - description: "If enabled, this token can be used for private broadcasts" - title: Access private broadcasts - type: boolean eula_required: description: "If checked, a EULA acceptance is required for this token." title: Eula required @@ -16782,7 +17013,6 @@ components: limit_bandwidth_unit: Byte scheduled_reset_at: 2000-01-23T04:56:07.000+00:00 limit_bandwidth: -2147483648 - access_private_broadcasts: true limit_num_clients: 2147483647 limit_package_query: limit_package_query limit_path_query: limit_path_query @@ -16793,156 +17023,147 @@ components: eula_required: true scheduled_reset_period: Never Reset properties: - access_private_broadcasts: - description: "If enabled, this token can be used for private broadcasts" - title: Access private broadcasts - type: boolean - eula_required: - description: "If checked, a EULA acceptance is required for this token." - title: Eula required - type: boolean - is_active: - description: "If enabled, the token will allow downloads based on configured\ - \ restrictions (if any)." - title: Token Active - type: boolean - limit_bandwidth: - description: "The maximum download bandwidth allowed for the token. Values\ - \ are expressed as the selected unit of bandwidth. Please note that since\ - \ downloads are calculated asynchronously (after the download happens),\ - \ the limit may not be imposed immediately but at a later point. " - maximum: 9223372036854775807 - minimum: -9223372036854775808 - nullable: true - title: Limit bandwidth - type: integer - limit_bandwidth_unit: - default: Byte - enum: - - Byte - - Kilobyte - - Megabyte - - Gigabyte - - Terabyte - - Petabyte - - Exabyte - - Zettabyte - - Yottabyte - nullable: true - title: Limit bandwidth unit - type: string - limit_date_range_from: - description: The starting date/time the token is allowed to be used from. - format: date-time - nullable: true - title: Limit date range from - type: string - limit_date_range_to: - description: The ending date/time the token is allowed to be used until. - format: date-time - nullable: true - title: Limit date range to - type: string - limit_num_clients: - description: "The maximum number of unique clients allowed for the token.\ - \ Please note that since clients are calculated asynchronously (after\ - \ the download happens), the limit may not be imposed immediately but\ - \ at a later point." - maximum: 9223372036854775807 - minimum: -9223372036854775808 - nullable: true - title: Limit num clients - type: integer - limit_num_downloads: - description: "The maximum number of downloads allowed for the token. Please\ - \ note that since downloads are calculated asynchronously (after the download\ - \ happens), the limit may not be imposed immediately but at a later point." - maximum: 9223372036854775807 - minimum: -9223372036854775808 - nullable: true - title: Limit num downloads - type: integer - limit_package_query: - description: "The package-based search query to apply to restrict downloads\ - \ to. This uses the same syntax as the standard search used for repositories,\ - \ and also supports boolean logic operators such as OR/AND/NOT and parentheses\ - \ for grouping. This will still allow access to non-package files, such\ - \ as metadata." - maxLength: 1024 - nullable: true - title: Limit package query - type: string - limit_path_query: - description: "THIS WILL SOON BE DEPRECATED, please use limit_package_query\ - \ instead. The path-based search query to apply to restrict downloads\ - \ to. This supports boolean logic operators such as OR/AND/NOT and parentheses\ - \ for grouping. The path evaluated does not include the domain name, the\ - \ namespace, the entitlement code used, the package format, etc. and it\ - \ always starts with a forward slash." - maxLength: 1024 - nullable: true - title: Limit path query - type: string - metadata: - nullable: true - properties: {} - title: Metadata - type: object - name: - minLength: 1 - title: Name - type: string - scheduled_reset_at: - description: The time at which the scheduled reset period has elapsed and - the token limits were automatically reset to zero. - format: date-time - nullable: true - title: Scheduled reset at - type: string - scheduled_reset_period: - default: Never Reset - enum: - - Never Reset - - Daily - - Weekly - - Fortnightly - - Monthly - - Bi-Monthly - - Quarterly - - Every 6 months - - Annual - nullable: true - title: Scheduled reset period - type: string - token: - minLength: 1 - title: Token - type: string - type: object - RepositoryTokenAction: - type: object - RepositoryTokenRefreshRequest: - example: - limit_date_range_to: 2000-01-23T04:56:07.000+00:00 - metadata: "{}" - is_active: true - limit_bandwidth_unit: Byte - scheduled_reset_at: 2000-01-23T04:56:07.000+00:00 - limit_bandwidth: -2147483648 - access_private_broadcasts: true - limit_num_clients: 2147483647 - limit_package_query: limit_package_query - limit_path_query: limit_path_query - token: token - limit_date_range_from: 2000-01-23T04:56:07.000+00:00 - limit_num_downloads: -2147483648 - eula_required: true - scheduled_reset_period: Never Reset - properties: - access_private_broadcasts: - description: "If enabled, this token can be used for private broadcasts" - title: Access private broadcasts + eula_required: + description: "If checked, a EULA acceptance is required for this token." + title: Eula required type: boolean + is_active: + description: "If enabled, the token will allow downloads based on configured\ + \ restrictions (if any)." + title: Token Active + type: boolean + limit_bandwidth: + description: "The maximum download bandwidth allowed for the token. Values\ + \ are expressed as the selected unit of bandwidth. Please note that since\ + \ downloads are calculated asynchronously (after the download happens),\ + \ the limit may not be imposed immediately but at a later point. " + maximum: 9223372036854775807 + minimum: -9223372036854775808 + nullable: true + title: Limit bandwidth + type: integer + limit_bandwidth_unit: + default: Byte + enum: + - Byte + - Kilobyte + - Megabyte + - Gigabyte + - Terabyte + - Petabyte + - Exabyte + - Zettabyte + - Yottabyte + nullable: true + title: Limit bandwidth unit + type: string + limit_date_range_from: + description: The starting date/time the token is allowed to be used from. + format: date-time + nullable: true + title: Limit date range from + type: string + limit_date_range_to: + description: The ending date/time the token is allowed to be used until. + format: date-time + nullable: true + title: Limit date range to + type: string + limit_num_clients: + description: "The maximum number of unique clients allowed for the token.\ + \ Please note that since clients are calculated asynchronously (after\ + \ the download happens), the limit may not be imposed immediately but\ + \ at a later point." + maximum: 9223372036854775807 + minimum: -9223372036854775808 + nullable: true + title: Limit num clients + type: integer + limit_num_downloads: + description: "The maximum number of downloads allowed for the token. Please\ + \ note that since downloads are calculated asynchronously (after the download\ + \ happens), the limit may not be imposed immediately but at a later point." + maximum: 9223372036854775807 + minimum: -9223372036854775808 + nullable: true + title: Limit num downloads + type: integer + limit_package_query: + description: "The package-based search query to apply to restrict downloads\ + \ to. This uses the same syntax as the standard search used for repositories,\ + \ and also supports boolean logic operators such as OR/AND/NOT and parentheses\ + \ for grouping. This will still allow access to non-package files, such\ + \ as metadata." + maxLength: 1024 + nullable: true + title: Limit package query + type: string + limit_path_query: + description: "THIS WILL SOON BE DEPRECATED, please use limit_package_query\ + \ instead. The path-based search query to apply to restrict downloads\ + \ to. This supports boolean logic operators such as OR/AND/NOT and parentheses\ + \ for grouping. The path evaluated does not include the domain name, the\ + \ namespace, the entitlement code used, the package format, etc. and it\ + \ always starts with a forward slash." + maxLength: 1024 + nullable: true + title: Limit path query + type: string + metadata: + nullable: true + properties: {} + title: Metadata + type: object + name: + minLength: 1 + title: Name + type: string + scheduled_reset_at: + description: The time at which the scheduled reset period has elapsed and + the token limits were automatically reset to zero. + format: date-time + nullable: true + title: Scheduled reset at + type: string + scheduled_reset_period: + default: Never Reset + enum: + - Never Reset + - Daily + - Weekly + - Fortnightly + - Monthly + - Bi-Monthly + - Quarterly + - Every 6 months + - Annual + nullable: true + title: Scheduled reset period + type: string + token: + minLength: 1 + title: Token + type: string + type: object + RepositoryTokenAction: + type: object + RepositoryTokenRefreshRequest: + example: + limit_date_range_to: 2000-01-23T04:56:07.000+00:00 + metadata: "{}" + is_active: true + limit_bandwidth_unit: Byte + scheduled_reset_at: 2000-01-23T04:56:07.000+00:00 + limit_bandwidth: -2147483648 + limit_num_clients: 2147483647 + limit_package_query: limit_package_query + limit_path_query: limit_path_query + token: token + limit_date_range_from: 2000-01-23T04:56:07.000+00:00 + limit_num_downloads: -2147483648 + eula_required: true + scheduled_reset_period: Never Reset + properties: eula_required: description: "If checked, a EULA acceptance is required for this token." title: Eula required @@ -17108,6 +17329,7 @@ components: properties: access_private_broadcasts: description: "If enabled, this token can be used for private broadcasts" + readOnly: true title: Access private broadcasts type: boolean clients: @@ -17361,6 +17583,26 @@ components: title: User url type: string type: object + RepositoryTokenPrivateBroadcastsRequest: + example: + access_private_broadcasts: true + properties: + access_private_broadcasts: + description: Whether the token should have access to private broadcasts. + title: Access private broadcasts + type: boolean + required: + - access_private_broadcasts + type: object + RepositoryTokenPrivateBroadcasts: + properties: + access_private_broadcasts: + description: Whether the token should have access to private broadcasts. + title: Access private broadcasts + type: boolean + required: + - access_private_broadcasts + type: object PackageFileUploadRequest: example: sha256_checksum: sha256_checksum @@ -23304,54 +23546,664 @@ components: title: Vulnerability scan results url type: string type: object - ConanPackageUploadRequest: + ConanPackageUploadRequest: + example: + republish: true + name: name + metadata_file: metadata_file + package_file: package_file + conan_prefix: conan_prefix + version: version + conan_channel: conan_channel + info_file: info_file + manifest_file: manifest_file + tags: tags + properties: + conan_channel: + description: Conan channel. + maxLength: 128 + minLength: 1 + nullable: true + title: Conan channel + type: string + conan_prefix: + description: Conan prefix (User). + maxLength: 128 + minLength: 1 + nullable: true + title: Conan prefix + type: string + info_file: + description: The info file is an python file containing the package metadata. + minLength: 1 + title: Info file + type: string + manifest_file: + description: The info file is an python file containing the package metadata. + minLength: 1 + title: Manifest file + type: string + metadata_file: + description: The conan file is an python file containing the package metadata. + minLength: 1 + title: Metadata file + type: string + name: + description: The name of this package. + maxLength: 200 + nullable: true + title: Name + type: string + package_file: + description: The primary file for the package. + minLength: 1 + title: Package file + type: string + republish: + description: "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." + title: Republish + type: boolean + tags: + description: A comma-separated values list of tags to add to the package. + maxLength: 1024 + minLength: 1 + nullable: true + title: Tags + type: string + version: + description: The raw version for this package. + maxLength: 255 + nullable: true + title: Version + type: string + required: + - info_file + - manifest_file + - metadata_file + - package_file + type: object + ConanPackageUpload: + example: + architectures: + - name: name + description: description + - name: name + description: description + security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 + checksum_sha256: checksum_sha256 + release: release + package_type: 5 + repository: repository + origin_repository: origin_repository + identifier_perm: identifier_perm + stage_updated_at: 2000-01-23T04:56:07.000+00:00 + tags_immutable: "{}" + is_quarantined: true + slug: slug + freeable_storage: 1 + is_security_scannable: true + security_scan_started_at: 2000-01-23T04:56:07.000+00:00 + security_scan_status: Awaiting Security Scan + indexed: true + is_deleteable: true + format: format + status_str: status_str + version_orig: version_orig + namespace_url: https://openapi-generator.tech + display_name: display_name + slug_perm: slug_perm + spdx_license: spdx_license + version: version + is_resyncable: true + license: license + filename: filename + size: 2 + cdn_url: cdn_url + uploaded_at: 2000-01-23T04:56:07.000+00:00 + is_cancellable: true + is_downloadable: true + name: name + sync_finished_at: 2000-01-23T04:56:07.000+00:00 + files: + - checksum_sha512: checksum_sha512 + checksum_sha1: checksum_sha1 + checksum_sha256: checksum_sha256 + is_primary: true + checksum_md5: checksum_md5 + slug_perm: slug_perm + filename: filename + size: 5 + cdn_url: cdn_url + downloads: 1 + is_synchronised: true + is_downloadable: true + signature_url: signature_url + tag: tag + - checksum_sha512: checksum_sha512 + checksum_sha1: checksum_sha1 + checksum_sha256: checksum_sha256 + is_primary: true + checksum_md5: checksum_md5 + slug_perm: slug_perm + filename: filename + size: 5 + cdn_url: cdn_url + downloads: 1 + is_synchronised: true + is_downloadable: true + signature_url: signature_url + tag: tag + conan_prefix: conan_prefix + num_files: 5 + conan_channel: conan_channel + status: 9 + checksum_sha512: checksum_sha512 + distro: + name: name + variants: variants + self_url: https://openapi-generator.tech + slug: slug + extension: extension + fully_qualified_name: fully_qualified_name + description: description + is_copyable: true + epoch: 6 + is_sync_completed: true + distro_version: + name: name + slug: slug + type_display: type_display + raw_license: raw_license + vulnerability_scan_results_url: https://openapi-generator.tech + dependencies_checksum_md5: dependencies_checksum_md5 + policy_violated: true + downloads: 0 + subtype: subtype + uploader: uploader + self_webapp_url: self_webapp_url + signature_url: signature_url + tags_automatic: "{}" + repository_url: https://openapi-generator.tech + is_moveable: true + status_reason: status_reason + status_updated_at: 2000-01-23T04:56:07.000+00:00 + summary: summary + checksum_sha1: checksum_sha1 + is_quarantinable: true + identifiers: + key: identifiers + checksum_md5: checksum_md5 + sync_progress: 3 + is_sync_awaiting: true + uploader_url: https://openapi-generator.tech + self_html_url: self_html_url + origin_repository_url: https://openapi-generator.tech + self_url: https://openapi-generator.tech + status_url: https://openapi-generator.tech + is_sync_in_flight: true + security_scan_completed_at: 2000-01-23T04:56:07.000+00:00 + is_sync_in_progress: true + stage_str: stage_str + stage: 7 + format_url: https://openapi-generator.tech + dependencies_url: https://openapi-generator.tech + namespace: namespace + is_sync_failed: true + properties: + architectures: + items: + $ref: '#/components/schemas/Architecture' + readOnly: true + type: array + cdn_url: + nullable: true + readOnly: true + title: Cdn url + type: string + checksum_md5: + readOnly: true + title: Checksum md5 + type: string + checksum_sha1: + readOnly: true + title: Checksum sha1 + type: string + checksum_sha256: + readOnly: true + title: Checksum sha256 + type: string + checksum_sha512: + readOnly: true + title: Checksum sha512 + type: string + conan_channel: + description: Conan channel. + maxLength: 128 + minLength: 1 + nullable: true + title: Conan channel + type: string + conan_prefix: + description: Conan prefix (User). + maxLength: 128 + minLength: 1 + nullable: true + title: Conan prefix + type: string + dependencies_checksum_md5: + description: A checksum of all of the package's dependencies. + nullable: true + readOnly: true + title: Dependencies checksum md5 + type: string + dependencies_url: + format: uri + readOnly: true + title: Dependencies url + type: string + description: + description: A textual description of this package. + nullable: true + readOnly: true + title: Description + type: string + display_name: + readOnly: true + title: Display name + type: string + distro: + $ref: '#/components/schemas/Distribution' + distro_version: + $ref: '#/components/schemas/DistributionVersion' + downloads: + readOnly: true + title: Downloads + type: integer + epoch: + description: The epoch of the package version (if any). + nullable: true + readOnly: true + title: Epoch + type: integer + extension: + readOnly: true + title: Extension + type: string + filename: + minLength: 1 + readOnly: true + title: Filename + type: string + files: + items: + $ref: '#/components/schemas/PackageFile' + readOnly: true + type: array + format: + minLength: 1 + readOnly: true + title: Format + type: string + format_url: + format: uri + readOnly: true + title: Format url + type: string + freeable_storage: + description: Amount of storage that will be freed if this package is deleted + readOnly: true + title: Freeable storage + type: integer + fully_qualified_name: + minLength: 1 + nullable: true + readOnly: true + title: Fully qualified name + type: string + identifier_perm: + description: Unique and permanent identifier for the package. + minLength: 1 + readOnly: true + title: Identifier perm + type: string + identifiers: + additionalProperties: + nullable: true + type: string + description: Return a map of identifier field names and their values. + readOnly: true + title: Identifiers + type: object + indexed: + readOnly: true + title: Indexed + type: boolean + is_cancellable: + readOnly: true + title: Is cancellable + type: boolean + is_copyable: + readOnly: true + title: Is copyable + type: boolean + is_deleteable: + readOnly: true + title: Is deleteable + type: boolean + is_downloadable: + readOnly: true + title: Is downloadable + type: boolean + is_moveable: + readOnly: true + title: Is moveable + type: boolean + is_quarantinable: + readOnly: true + title: Is quarantinable + type: boolean + is_quarantined: + readOnly: true + title: Is quarantined + type: boolean + is_resyncable: + readOnly: true + title: Is resyncable + type: boolean + is_security_scannable: + readOnly: true + title: Is security scannable + type: boolean + is_sync_awaiting: + readOnly: true + title: Is sync awaiting + type: boolean + is_sync_completed: + readOnly: true + title: Is sync completed + type: boolean + is_sync_failed: + readOnly: true + title: Is sync failed + type: boolean + is_sync_in_flight: + readOnly: true + title: Is sync in flight + type: boolean + is_sync_in_progress: + readOnly: true + title: Is sync in progress + type: boolean + license: + description: The license of this package. + nullable: true + readOnly: true + title: License + type: string + name: + description: The name of this package. + maxLength: 200 + nullable: true + title: Name + type: string + namespace: + minLength: 1 + readOnly: true + title: Namespace + type: string + namespace_url: + format: uri + readOnly: true + title: Namespace url + type: string + num_files: + readOnly: true + title: Num files + type: integer + origin_repository: + minLength: 1 + readOnly: true + title: Origin repository + type: string + origin_repository_url: + format: uri + readOnly: true + title: Origin repository url + type: string + package_type: + description: The type of package contents. + readOnly: true + title: Package type + type: integer + policy_violated: + description: Whether or not the package has violated any policy. + readOnly: true + title: Policy violated + type: boolean + raw_license: + description: The raw license string. + minLength: 1 + nullable: true + readOnly: true + title: Raw license + type: string + release: + description: The release of the package version (if any). + nullable: true + readOnly: true + title: Release + type: string + repository: + minLength: 1 + readOnly: true + title: Repository + type: string + repository_url: + format: uri + readOnly: true + title: Repository url + type: string + security_scan_completed_at: + description: The datetime the security scanning was completed. + format: date-time + nullable: true + readOnly: true + title: Security scan completed at + type: string + security_scan_started_at: + description: The datetime the security scanning was started. + format: date-time + nullable: true + readOnly: true + title: Security scan started at + type: string + security_scan_status: + default: Awaiting Security Scan + enum: + - Awaiting Security Scan + - Security Scanning in Progress + - Scan Detected Vulnerabilities + - Scan Detected No Vulnerabilities + - Security Scanning Disabled + - Security Scanning Failed + - Security Scanning Skipped + - Security Scanning Not Supported + nullable: true + readOnly: true + title: Security scan status + type: string + security_scan_status_updated_at: + description: The datetime the security scanning status was updated. + format: date-time + nullable: true + readOnly: true + title: Security scan status updated at + type: string + self_html_url: + minLength: 1 + readOnly: true + title: Self html url + type: string + self_url: + format: uri + readOnly: true + title: Self url + type: string + self_webapp_url: + minLength: 1 + readOnly: true + title: Self webapp url + type: string + signature_url: + nullable: true + readOnly: true + title: Signature url + type: string + size: + description: The calculated size of the package. + readOnly: true + title: Size + type: integer + slug: + description: The public unique identifier for the package. + format: slug + minLength: 1 + pattern: "^[-a-zA-Z0-9_]+$" + readOnly: true + title: Slug + type: string + slug_perm: + format: slug + minLength: 1 + pattern: "^[-a-zA-Z0-9_]+$" + readOnly: true + title: Slug perm + type: string + spdx_license: + description: The SPDX license identifier for this package. + minLength: 1 + nullable: true + readOnly: true + title: Spdx license + type: string + stage: + description: The synchronisation (in progress) stage of the package. + readOnly: true + title: Stage + type: integer + stage_str: + readOnly: true + title: Stage str + type: string + stage_updated_at: + description: The datetime the package stage was updated at. + format: date-time + readOnly: true + title: Stage updated at + type: string + status: + description: The synchronisation status of the package. + readOnly: true + title: Status + type: integer + status_reason: + description: A textual description for the synchronous status reason (if + any + nullable: true + readOnly: true + title: Status reason + type: string + status_str: + readOnly: true + title: Status str + type: string + status_updated_at: + description: The datetime the package status was updated at. + format: date-time + readOnly: true + title: Status updated at + type: string + status_url: + format: uri + readOnly: true + title: Status url + type: string + subtype: + readOnly: true + title: Subtype + type: string + summary: + description: A one-liner synopsis of this package. + nullable: true + readOnly: true + title: Summary + type: string + sync_finished_at: + description: The datetime the package sync was finished at. + format: date-time + nullable: true + readOnly: true + title: Sync finished at + type: string + sync_progress: + description: Synchronisation progress (from 0-100) + readOnly: true + title: Sync progress + type: integer + tags_automatic: + description: "All tags on the package, grouped by tag type. This includes\ + \ immutable tags, but doesn't distinguish them from mutable. To see which\ + \ tags are immutable specifically, see the tags_immutable field." + type: object + tags_immutable: + description: "All tags on the package, grouped by tag type. This includes\ + \ immutable tags, but doesn't distinguish them from mutable. To see which\ + \ tags are immutable specifically, see the tags_immutable field." + type: object + type_display: + readOnly: true + title: Type display + type: string + uploaded_at: + description: The date this package was uploaded. + format: date-time + readOnly: true + title: Uploaded at + type: string + uploader: + minLength: 1 + readOnly: true + title: Uploader + type: string + uploader_url: + format: uri + readOnly: true + title: Uploader url + type: string + version: + description: The raw version for this package. + maxLength: 255 + nullable: true + title: Version + type: string + version_orig: + readOnly: true + title: Version orig + type: string + vulnerability_scan_results_url: + format: uri + readOnly: true + title: Vulnerability scan results url + type: string + type: object + CondaPackageUploadRequest: example: republish: true - name: name - metadata_file: metadata_file package_file: package_file - conan_prefix: conan_prefix - version: version - conan_channel: conan_channel - info_file: info_file - manifest_file: manifest_file tags: tags properties: - conan_channel: - description: Conan channel. - maxLength: 128 - minLength: 1 - nullable: true - title: Conan channel - type: string - conan_prefix: - description: Conan prefix (User). - maxLength: 128 - minLength: 1 - nullable: true - title: Conan prefix - type: string - info_file: - description: The info file is an python file containing the package metadata. - minLength: 1 - title: Info file - type: string - manifest_file: - description: The info file is an python file containing the package metadata. - minLength: 1 - title: Manifest file - type: string - metadata_file: - description: The conan file is an python file containing the package metadata. - minLength: 1 - title: Metadata file - type: string - name: - description: The name of this package. - maxLength: 200 - nullable: true - title: Name - type: string package_file: description: The primary file for the package. minLength: 1 @@ -23370,19 +24222,10 @@ components: nullable: true title: Tags type: string - version: - description: The raw version for this package. - maxLength: 255 - nullable: true - title: Version - type: string required: - - info_file - - manifest_file - - metadata_file - package_file type: object - ConanPackageUpload: + CondaPackageUpload: example: architectures: - name: name @@ -23453,9 +24296,7 @@ components: is_downloadable: true signature_url: signature_url tag: tag - conan_prefix: conan_prefix num_files: 5 - conan_channel: conan_channel status: 9 checksum_sha512: checksum_sha512 distro: @@ -23536,20 +24377,6 @@ components: readOnly: true title: Checksum sha512 type: string - conan_channel: - description: Conan channel. - maxLength: 128 - minLength: 1 - nullable: true - title: Conan channel - type: string - conan_prefix: - description: Conan prefix (User). - maxLength: 128 - minLength: 1 - nullable: true - title: Conan prefix - type: string dependencies_checksum_md5: description: A checksum of all of the package's dependencies. nullable: true @@ -23702,8 +24529,8 @@ components: type: string name: description: The name of this package. - maxLength: 200 nullable: true + readOnly: true title: Name type: string namespace: @@ -23942,8 +24769,8 @@ components: type: string version: description: The raw version for this package. - maxLength: 255 nullable: true + readOnly: true title: Version type: string version_orig: @@ -23956,17 +24783,33 @@ components: title: Vulnerability scan results url type: string type: object - CondaPackageUploadRequest: + CranPackageUploadRequest: example: republish: true + r_version: r_version package_file: package_file + architecture: architecture tags: tags properties: + architecture: + description: Binary package uploads for macOS should specify the architecture + they were built for. + minLength: 1 + title: Architecture + type: string package_file: description: The primary file for the package. minLength: 1 title: Package file type: string + r_version: + description: Binary package uploads should specify the version of R they + were built for. + maxLength: 16 + minLength: 1 + nullable: true + title: R version + type: string republish: description: "If true, the uploaded package will overwrite any others with\ \ the same attributes (e.g. same version); otherwise, it will be flagged\ @@ -23983,7 +24826,7 @@ components: required: - package_file type: object - CondaPackageUpload: + CranPackageUpload: example: architectures: - name: name @@ -24105,6 +24948,7 @@ components: stage_str: stage_str stage: 7 format_url: https://openapi-generator.tech + r_version: r_version dependencies_url: https://openapi-generator.tech namespace: namespace is_sync_failed: true @@ -24325,6 +25169,14 @@ components: readOnly: true title: Policy violated type: boolean + r_version: + description: Binary package uploads should specify the version of R they + were built for. + maxLength: 16 + minLength: 1 + nullable: true + title: R version + type: string raw_license: description: The raw license string. minLength: 1 @@ -24541,33 +25393,17 @@ components: title: Vulnerability scan results url type: string type: object - CranPackageUploadRequest: + DartPackageUploadRequest: example: republish: true - r_version: r_version package_file: package_file - architecture: architecture tags: tags properties: - architecture: - description: Binary package uploads for macOS should specify the architecture - they were built for. - minLength: 1 - title: Architecture - type: string package_file: description: The primary file for the package. minLength: 1 title: Package file type: string - r_version: - description: Binary package uploads should specify the version of R they - were built for. - maxLength: 16 - minLength: 1 - nullable: true - title: R version - type: string republish: description: "If true, the uploaded package will overwrite any others with\ \ the same attributes (e.g. same version); otherwise, it will be flagged\ @@ -24584,7 +25420,7 @@ components: required: - package_file type: object - CranPackageUpload: + DartPackageUpload: example: architectures: - name: name @@ -24706,7 +25542,6 @@ components: stage_str: stage_str stage: 7 format_url: https://openapi-generator.tech - r_version: r_version dependencies_url: https://openapi-generator.tech namespace: namespace is_sync_failed: true @@ -24927,14 +25762,6 @@ components: readOnly: true title: Policy violated type: boolean - r_version: - description: Binary package uploads should specify the version of R they - were built for. - maxLength: 16 - minLength: 1 - nullable: true - title: R version - type: string raw_license: description: The raw license string. minLength: 1 @@ -25151,12 +25978,37 @@ components: title: Vulnerability scan results url type: string type: object - DartPackageUploadRequest: + DebPackageUploadRequest: example: + sources_file: sources_file + component: main republish: true + changes_file: changes_file + distribution: distribution package_file: package_file tags: tags properties: + changes_file: + description: The changes archive containing the changes made to the source + and debian packaging files + minLength: 1 + nullable: true + title: Changes file + type: string + component: + default: main + description: "The component (channel) for the package (e.g. 'main', 'unstable',\ + \ etc.)" + maxLength: 64 + minLength: 1 + pattern: "^[-_.\\w]+$" + title: Component + type: string + distribution: + description: The distribution to store the package for. + minLength: 1 + title: Distribution + type: string package_file: description: The primary file for the package. minLength: 1 @@ -25168,6 +26020,12 @@ components: \ as a duplicate." title: Republish type: boolean + sources_file: + description: The sources archive containing the source code for the binary + minLength: 1 + nullable: true + title: Sources file + type: string tags: description: A comma-separated values list of tags to add to the package. maxLength: 1024 @@ -25176,9 +26034,10 @@ components: title: Tags type: string required: + - distribution - package_file type: object - DartPackageUpload: + DebPackageUpload: example: architectures: - name: name @@ -25736,37 +26595,12 @@ components: title: Vulnerability scan results url type: string type: object - DebPackageUploadRequest: + DockerPackageUploadRequest: example: - sources_file: sources_file - component: main republish: true - changes_file: changes_file - distribution: distribution package_file: package_file tags: tags properties: - changes_file: - description: The changes archive containing the changes made to the source - and debian packaging files - minLength: 1 - nullable: true - title: Changes file - type: string - component: - default: main - description: "The component (channel) for the package (e.g. 'main', 'unstable',\ - \ etc.)" - maxLength: 64 - minLength: 1 - pattern: "^[-_.\\w]+$" - title: Component - type: string - distribution: - description: The distribution to store the package for. - minLength: 1 - title: Distribution - type: string package_file: description: The primary file for the package. minLength: 1 @@ -25778,12 +26612,6 @@ components: \ as a duplicate." title: Republish type: boolean - sources_file: - description: The sources archive containing the source code for the binary - minLength: 1 - nullable: true - title: Sources file - type: string tags: description: A comma-separated values list of tags to add to the package. maxLength: 1024 @@ -25792,10 +26620,9 @@ components: title: Tags type: string required: - - distribution - package_file type: object - DebPackageUpload: + DockerPackageUpload: example: architectures: - name: name @@ -26353,12 +27180,27 @@ components: title: Vulnerability scan results url type: string type: object - DockerPackageUploadRequest: + GenericPackageUploadRequest: example: + filepath: filepath republish: true + name: name package_file: package_file + version: version tags: tags properties: + filepath: + description: The full filepath of the package including filename. + maxLength: 2083 + minLength: 1 + title: Filepath + type: string + name: + description: The name of this package. + maxLength: 200 + nullable: true + title: Name + type: string package_file: description: The primary file for the package. minLength: 1 @@ -26377,10 +27219,17 @@ components: nullable: true title: Tags type: string + version: + description: The raw version for this package. + maxLength: 255 + nullable: true + title: Version + type: string required: + - filepath - package_file type: object - DockerPackageUpload: + GenericPackageUpload: example: architectures: - name: name @@ -26684,8 +27533,8 @@ components: type: string name: description: The name of this package. + maxLength: 200 nullable: true - readOnly: true title: Name type: string namespace: @@ -26924,8 +27773,8 @@ components: type: string version: description: The raw version for this package. + maxLength: 255 nullable: true - readOnly: true title: Version type: string version_orig: @@ -26938,27 +27787,12 @@ components: title: Vulnerability scan results url type: string type: object - GenericPackageUploadRequest: + GoPackageUploadRequest: example: - filepath: filepath republish: true - name: name package_file: package_file - version: version tags: tags properties: - filepath: - description: The full filepath of the package including filename. - maxLength: 2083 - minLength: 1 - title: Filepath - type: string - name: - description: The name of this package. - maxLength: 200 - nullable: true - title: Name - type: string package_file: description: The primary file for the package. minLength: 1 @@ -26977,17 +27811,10 @@ components: nullable: true title: Tags type: string - version: - description: The raw version for this package. - maxLength: 255 - nullable: true - title: Version - type: string required: - - filepath - package_file type: object - GenericPackageUpload: + GoPackageUpload: example: architectures: - name: name @@ -27291,8 +28118,8 @@ components: type: string name: description: The name of this package. - maxLength: 200 nullable: true + readOnly: true title: Name type: string namespace: @@ -27531,8 +28358,8 @@ components: type: string version: description: The raw version for this package. - maxLength: 255 nullable: true + readOnly: true title: Version type: string version_orig: @@ -27545,8 +28372,9 @@ components: title: Vulnerability scan results url type: string type: object - GoPackageUploadRequest: + HelmPackageUploadRequest: example: + provenance_file: provenance_file republish: true package_file: package_file tags: tags @@ -27556,6 +28384,13 @@ components: minLength: 1 title: Package file type: string + provenance_file: + description: "The provenance file containing the signature for the chart.\ + \ If one is not provided, it will be generated automatically." + minLength: 1 + nullable: true + title: Provenance file + type: string republish: description: "If true, the uploaded package will overwrite any others with\ \ the same attributes (e.g. same version); otherwise, it will be flagged\ @@ -27572,7 +28407,7 @@ components: required: - package_file type: object - GoPackageUpload: + HelmPackageUpload: example: architectures: - name: name @@ -28130,9 +28965,8 @@ components: title: Vulnerability scan results url type: string type: object - HelmPackageUploadRequest: + HexPackageUploadRequest: example: - provenance_file: provenance_file republish: true package_file: package_file tags: tags @@ -28142,13 +28976,6 @@ components: minLength: 1 title: Package file type: string - provenance_file: - description: "The provenance file containing the signature for the chart.\ - \ If one is not provided, it will be generated automatically." - minLength: 1 - nullable: true - title: Provenance file - type: string republish: description: "If true, the uploaded package will overwrite any others with\ \ the same attributes (e.g. same version); otherwise, it will be flagged\ @@ -28165,7 +28992,7 @@ components: required: - package_file type: object - HelmPackageUpload: + HexPackageUpload: example: architectures: - name: name @@ -28723,7 +29550,7 @@ components: title: Vulnerability scan results url type: string type: object - HexPackageUploadRequest: + HuggingfacePackageUploadRequest: example: republish: true package_file: package_file @@ -28750,7 +29577,7 @@ components: required: - package_file type: object - HexPackageUpload: + HuggingfacePackageUpload: example: architectures: - name: name @@ -29308,7 +30135,7 @@ components: title: Vulnerability scan results url type: string type: object - HuggingfacePackageUploadRequest: + LuarocksPackageUploadRequest: example: republish: true package_file: package_file @@ -29335,7 +30162,7 @@ components: required: - package_file type: object - HuggingfacePackageUpload: + LuarocksPackageUpload: example: architectures: - name: name @@ -29893,23 +30720,98 @@ components: title: Vulnerability scan results url type: string type: object - LuarocksPackageUploadRequest: + MavenPackageUploadRequest: example: - republish: true + javadoc_file: javadoc_file + packaging: packaging + artifact_id: artifact_id package_file: package_file + version: version + pom_file: pom_file tags: tags + ivy_file: ivy_file + sources_file: sources_file + tests_file: tests_file + republish: true + group_id: group_id + scala_version: scala_version + sbt_version: sbt_version + extra_files: + - extra_files + - extra_files properties: + artifact_id: + description: The ID of the artifact. + minLength: 1 + nullable: true + title: Artifact id + type: string + extra_files: + description: Extra files to include in the package. This can be a single + file or multiple files. + items: + minLength: 1 + type: string + nullable: true + type: array + group_id: + description: Artifact's group ID. + maxLength: 2083 + nullable: true + title: Group id + type: string + ivy_file: + description: The ivy file is an XML file describing the dependencies of + the project. + minLength: 1 + nullable: true + title: Ivy file + type: string + javadoc_file: + description: Adds bundled Java documentation to the Maven package + minLength: 1 + nullable: true + title: Javadoc file + type: string package_file: description: The primary file for the package. minLength: 1 title: Package file type: string + packaging: + description: Artifact's Maven packaging type. + maxLength: 64 + nullable: true + title: Packaging + type: string + pom_file: + description: The POM file is an XML file containing the Maven coordinates. + minLength: 1 + nullable: true + title: Pom file + type: string republish: description: "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." title: Republish type: boolean + sbt_version: + maxLength: 64 + nullable: true + title: Sbt version + type: string + scala_version: + maxLength: 64 + nullable: true + title: Scala version + type: string + sources_file: + description: Adds bundled Java source code to the Maven package. + minLength: 1 + nullable: true + title: Sources file + type: string tags: description: A comma-separated values list of tags to add to the package. maxLength: 1024 @@ -29917,10 +30819,22 @@ components: nullable: true title: Tags type: string + tests_file: + description: Adds bundled Java tests to the Maven package. + minLength: 1 + nullable: true + title: Tests file + type: string + version: + description: The raw version for this package. + maxLength: 255 + nullable: true + title: Version + type: string required: - package_file type: object - LuarocksPackageUpload: + MavenPackageUpload: example: architectures: - name: name @@ -29930,6 +30844,7 @@ components: security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 release: release + artifact_id: artifact_id package_type: 5 repository: repository origin_repository: origin_repository @@ -30031,6 +30946,7 @@ components: checksum_md5: checksum_md5 sync_progress: 3 is_sync_awaiting: true + packaging: packaging uploader_url: https://openapi-generator.tech self_html_url: self_html_url origin_repository_url: https://openapi-generator.tech @@ -30042,15 +30958,24 @@ components: stage_str: stage_str stage: 7 format_url: https://openapi-generator.tech + group_id: group_id dependencies_url: https://openapi-generator.tech namespace: namespace is_sync_failed: true + scala_version: scala_version + sbt_version: sbt_version properties: architectures: items: $ref: '#/components/schemas/Architecture' readOnly: true type: array + artifact_id: + description: The ID of the artifact. + minLength: 1 + nullable: true + title: Artifact id + type: string cdn_url: nullable: true readOnly: true @@ -30142,6 +31067,12 @@ components: readOnly: true title: Fully qualified name type: string + group_id: + description: Artifact's group ID. + maxLength: 2083 + nullable: true + title: Group id + type: string identifier_perm: description: Unique and permanent identifier for the package. minLength: 1 @@ -30257,6 +31188,12 @@ components: readOnly: true title: Package type type: integer + packaging: + description: Artifact's Maven packaging type. + maxLength: 64 + nullable: true + title: Packaging + type: string policy_violated: description: Whether or not the package has violated any policy. readOnly: true @@ -30285,6 +31222,16 @@ components: readOnly: true title: Repository url type: string + sbt_version: + maxLength: 64 + nullable: true + title: Sbt version + type: string + scala_version: + maxLength: 64 + nullable: true + title: Scala version + type: string security_scan_completed_at: description: The datetime the security scanning was completed. format: date-time @@ -30464,8 +31411,8 @@ components: type: string version: description: The raw version for this package. + maxLength: 255 nullable: true - readOnly: true title: Version type: string version_orig: @@ -30478,98 +31425,24 @@ components: title: Vulnerability scan results url type: string type: object - MavenPackageUploadRequest: + McpPackageUploadRequest: example: - javadoc_file: javadoc_file - packaging: packaging - artifact_id: artifact_id + republish: true package_file: package_file version: version - pom_file: pom_file tags: tags - ivy_file: ivy_file - sources_file: sources_file - tests_file: tests_file - republish: true - group_id: group_id - scala_version: scala_version - sbt_version: sbt_version - extra_files: - - extra_files - - extra_files properties: - artifact_id: - description: The ID of the artifact. - minLength: 1 - nullable: true - title: Artifact id - type: string - extra_files: - description: Extra files to include in the package. This can be a single - file or multiple files. - items: - minLength: 1 - type: string - nullable: true - type: array - group_id: - description: Artifact's group ID. - maxLength: 2083 - nullable: true - title: Group id - type: string - ivy_file: - description: The ivy file is an XML file describing the dependencies of - the project. - minLength: 1 - nullable: true - title: Ivy file - type: string - javadoc_file: - description: Adds bundled Java documentation to the Maven package - minLength: 1 - nullable: true - title: Javadoc file - type: string package_file: description: The primary file for the package. minLength: 1 title: Package file type: string - packaging: - description: Artifact's Maven packaging type. - maxLength: 64 - nullable: true - title: Packaging - type: string - pom_file: - description: The POM file is an XML file containing the Maven coordinates. - minLength: 1 - nullable: true - title: Pom file - type: string republish: description: "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." title: Republish type: boolean - sbt_version: - maxLength: 64 - nullable: true - title: Sbt version - type: string - scala_version: - maxLength: 64 - nullable: true - title: Scala version - type: string - sources_file: - description: Adds bundled Java source code to the Maven package. - minLength: 1 - nullable: true - title: Sources file - type: string tags: description: A comma-separated values list of tags to add to the package. maxLength: 1024 @@ -30577,12 +31450,6 @@ components: nullable: true title: Tags type: string - tests_file: - description: Adds bundled Java tests to the Maven package. - minLength: 1 - nullable: true - title: Tests file - type: string version: description: The raw version for this package. maxLength: 255 @@ -30592,7 +31459,7 @@ components: required: - package_file type: object - MavenPackageUpload: + McpPackageUpload: example: architectures: - name: name @@ -30602,7 +31469,6 @@ components: security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 release: release - artifact_id: artifact_id package_type: 5 repository: repository origin_repository: origin_repository @@ -30704,7 +31570,6 @@ components: checksum_md5: checksum_md5 sync_progress: 3 is_sync_awaiting: true - packaging: packaging uploader_url: https://openapi-generator.tech self_html_url: self_html_url origin_repository_url: https://openapi-generator.tech @@ -30716,24 +31581,15 @@ components: stage_str: stage_str stage: 7 format_url: https://openapi-generator.tech - group_id: group_id dependencies_url: https://openapi-generator.tech namespace: namespace is_sync_failed: true - scala_version: scala_version - sbt_version: sbt_version properties: architectures: items: $ref: '#/components/schemas/Architecture' readOnly: true type: array - artifact_id: - description: The ID of the artifact. - minLength: 1 - nullable: true - title: Artifact id - type: string cdn_url: nullable: true readOnly: true @@ -30825,12 +31681,6 @@ components: readOnly: true title: Fully qualified name type: string - group_id: - description: Artifact's group ID. - maxLength: 2083 - nullable: true - title: Group id - type: string identifier_perm: description: Unique and permanent identifier for the package. minLength: 1 @@ -30946,12 +31796,6 @@ components: readOnly: true title: Package type type: integer - packaging: - description: Artifact's Maven packaging type. - maxLength: 64 - nullable: true - title: Packaging - type: string policy_violated: description: Whether or not the package has violated any policy. readOnly: true @@ -30980,16 +31824,6 @@ components: readOnly: true title: Repository url type: string - sbt_version: - maxLength: 64 - nullable: true - title: Sbt version - type: string - scala_version: - maxLength: 64 - nullable: true - title: Scala version - type: string security_scan_completed_at: description: The datetime the security scanning was completed. format: date-time @@ -41491,6 +42325,218 @@ components: title: Resources type: object type: object + RecycleBinPackage: + example: + security_scan_status: Awaiting Security Scan + fully_qualified_name: fully_qualified_name + identifiers: + key: identifiers + is_deleteable: true + format: format + repository: repository + slug_perm: slug_perm + version: version + tags: "{}" + type_display: type_display + action_by: action_by + security_scan_completed_at: 2000-01-23T04:56:07.000+00:00 + filename: filename + is_restorable: true + policy_violated: true + size: 6 + downloads: 0 + invoked_retention_rule: + key: invoked_retention_rule + uploaded_at: 2000-01-23T04:56:07.000+00:00 + uploader: uploader + name: name + is_quarantined: true + status: 1 + status_updated_at: 2000-01-23T04:56:07.000+00:00 + properties: + action_by: + description: The name of the user who deleted the package. + minLength: 1 + nullable: true + readOnly: true + title: Action by + type: string + downloads: + readOnly: true + title: Downloads + type: integer + filename: + minLength: 1 + readOnly: true + title: Filename + type: string + format: + minLength: 1 + readOnly: true + title: Format + type: string + fully_qualified_name: + description: The fully qualified name of the package. + minLength: 1 + readOnly: true + title: Fully qualified name + type: string + identifiers: + additionalProperties: + nullable: true + type: string + readOnly: true + title: Identifiers + type: object + invoked_retention_rule: + additionalProperties: + nullable: true + type: string + description: Information about the retention rule that triggered deletion + (if any). + nullable: true + readOnly: true + title: Invoked retention rule + type: object + is_deleteable: + readOnly: true + title: Is deleteable + type: boolean + is_quarantined: + readOnly: true + title: Is quarantined + type: boolean + is_restorable: + readOnly: true + title: Is restorable + type: boolean + name: + description: The name of this package. + nullable: true + readOnly: true + title: Name + type: string + policy_violated: + description: Whether or not the package has violated any policy. + readOnly: true + title: Policy violated + type: boolean + repository: + minLength: 1 + readOnly: true + title: Repository + type: string + security_scan_completed_at: + description: The datetime the security scanning was completed. + format: date-time + nullable: true + readOnly: true + title: Security scan completed at + type: string + security_scan_status: + default: Awaiting Security Scan + enum: + - Awaiting Security Scan + - Security Scanning in Progress + - Scan Detected Vulnerabilities + - Scan Detected No Vulnerabilities + - Security Scanning Disabled + - Security Scanning Failed + - Security Scanning Skipped + - Security Scanning Not Supported + nullable: true + readOnly: true + title: Security scan status + type: string + size: + description: The calculated size of the package. + readOnly: true + title: Size + type: integer + slug_perm: + format: slug + minLength: 1 + pattern: "^[-a-zA-Z0-9_]+$" + readOnly: true + title: Slug perm + type: string + status: + description: The synchronisation status of the package. + readOnly: true + title: Status + type: integer + status_updated_at: + description: The datetime the package status was updated at. + format: date-time + readOnly: true + title: Status updated at + type: string + tags: + description: "All tags on the package, grouped by tag type. This includes\ + \ immutable tags, but doesn't distinguish them from mutable. To see which\ + \ tags are immutable specifically, see the tags_immutable field." + type: object + type_display: + readOnly: true + title: Type display + type: string + uploaded_at: + description: The date this package was uploaded. + format: date-time + readOnly: true + title: Uploaded at + type: string + uploader: + minLength: 1 + readOnly: true + title: Uploader + type: string + version: + description: The raw version for this package. + nullable: true + readOnly: true + title: Version + type: string + type: object + PackageRecycleBin: + example: + identifiers: + - identifiers + - identifiers + - identifiers + - identifiers + - identifiers + action: hard_delete + repository: repository + properties: + action: + description: The action to perform on soft-deleted packages. + enum: + - hard_delete + - restore + title: Action + type: string + identifiers: + description: A list of soft-deleted package identifiers to action. + items: + maxLength: 255 + minLength: 1 + type: string + maxItems: 100 + minItems: 1 + type: array + repository: + description: "The repository name to filter packages to. If not provided,\ + \ the action will be performed across all accessible repositories in the\ + \ workspace." + maxLength: 255 + minLength: 1 + title: Repository + type: string + required: + - action + - identifiers + type: object RepositoryEcdsaKey: example: public_key: public_key @@ -44119,8 +45165,11 @@ components: created_at: 2000-01-23T04:56:07.000+00:00 auth_mode: None extra_header_2: extra_header_2 + rsa_verification: Allow All extra_header_1: extra_header_1 mode: Proxy Only + rsa_verification_status: Unknown + rsa_key_inline: rsa_key_inline updated_at: 2000-01-23T04:56:07.000+00:00 auth_username: auth_username has_failed_signature_verification: true @@ -44132,6 +45181,7 @@ components: priority: 19750 slug_perm: slug_perm extra_value_2: extra_value_2 + rsa_key_url: https://openapi-generator.tech index_package_count: 0 disable_reason_text: disable_reason_text verify_ssl: true @@ -44180,6 +45230,7 @@ components: - N/A - Upstream points to its own repository - Missing upstream source + - RSA key did not verify the upstream's APKINDEX signature - Upstream was disabled by request of user readOnly: true title: Disable reason @@ -44232,6 +45283,7 @@ components: type: integer index_status: description: The current indexing status of this upstream source + nullable: true readOnly: true title: Index status type: string @@ -44275,6 +45327,42 @@ components: minimum: 1 title: Priority type: integer + rsa_key_inline: + description: A base64-encoded RSA public key in PEM format used to verify + package signatures. + nullable: true + readOnly: true + title: RSA Public Key + type: string + rsa_key_url: + description: "When provided, Cloudsmith will fetch and validate the RSA\ + \ public key at this URL and use it to verify package signatures from\ + \ this upstream." + format: uri + maxLength: 254 + nullable: true + title: RSA Key URL + type: string + rsa_verification: + default: Allow All + description: The RSA signature verification mode for this upstream. + enum: + - Allow All + - Warn on Invalid + - Reject Invalid + title: Rsa verification + type: string + rsa_verification_status: + default: Unknown + description: The RSA signature verification status for this upstream. + enum: + - Unknown + - Invalid + - Valid + - Invalid (No Key) + readOnly: true + title: Rsa verification status + type: string slug_perm: format: slug minLength: 1 @@ -44315,7 +45403,9 @@ components: extra_value_1: extra_value_1 priority: 2624 extra_value_2: extra_value_2 + rsa_key_url: https://openapi-generator.tech extra_header_2: extra_header_2 + rsa_verification: Allow All extra_header_1: extra_header_1 mode: Proxy Only verify_ssl: true @@ -44402,6 +45492,24 @@ components: minimum: 1 title: Priority type: integer + rsa_key_url: + description: "When provided, Cloudsmith will fetch and validate the RSA\ + \ public key at this URL and use it to verify package signatures from\ + \ this upstream." + format: uri + maxLength: 254 + nullable: true + title: RSA Key URL + type: string + rsa_verification: + default: Allow All + description: The RSA signature verification mode for this upstream. + enum: + - Allow All + - Warn on Invalid + - Reject Invalid + title: Rsa verification + type: string upstream_url: description: 'The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. ' @@ -44430,7 +45538,9 @@ components: extra_value_1: extra_value_1 priority: 2624 extra_value_2: extra_value_2 + rsa_key_url: https://openapi-generator.tech extra_header_2: extra_header_2 + rsa_verification: Allow All extra_header_1: extra_header_1 mode: Proxy Only verify_ssl: true @@ -44517,6 +45627,24 @@ components: minimum: 1 title: Priority type: integer + rsa_key_url: + description: "When provided, Cloudsmith will fetch and validate the RSA\ + \ public key at this URL and use it to verify package signatures from\ + \ this upstream." + format: uri + maxLength: 254 + nullable: true + title: RSA Key URL + type: string + rsa_verification: + default: Allow All + description: The RSA signature verification mode for this upstream. + enum: + - Allow All + - Warn on Invalid + - Reject Invalid + title: Rsa verification + type: string upstream_url: description: 'The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. ' @@ -44603,6 +45731,7 @@ components: - N/A - Upstream points to its own repository - Missing upstream source + - RSA key did not verify the upstream's APKINDEX signature - Upstream was disabled by request of user readOnly: true title: Disable reason @@ -44655,6 +45784,7 @@ components: type: integer index_status: description: The current indexing status of this upstream source + nullable: true readOnly: true title: Index status type: string @@ -45026,6 +46156,7 @@ components: - N/A - Upstream points to its own repository - Missing upstream source + - RSA key did not verify the upstream's APKINDEX signature - Upstream was disabled by request of user readOnly: true title: Disable reason @@ -45078,6 +46209,7 @@ components: type: integer index_status: description: The current indexing status of this upstream source + nullable: true readOnly: true title: Index status type: string @@ -45449,6 +46581,7 @@ components: - N/A - Upstream points to its own repository - Missing upstream source + - RSA key did not verify the upstream's APKINDEX signature - Upstream was disabled by request of user readOnly: true title: Disable reason @@ -45501,6 +46634,7 @@ components: type: integer index_status: description: The current indexing status of this upstream source + nullable: true readOnly: true title: Index status type: string @@ -45872,6 +47006,7 @@ components: - N/A - Upstream points to its own repository - Missing upstream source + - RSA key did not verify the upstream's APKINDEX signature - Upstream was disabled by request of user readOnly: true title: Disable reason @@ -45924,6 +47059,7 @@ components: type: integer index_status: description: The current indexing status of this upstream source + nullable: true readOnly: true title: Index status type: string @@ -46295,6 +47431,7 @@ components: - N/A - Upstream points to its own repository - Missing upstream source + - RSA key did not verify the upstream's APKINDEX signature - Upstream was disabled by request of user readOnly: true title: Disable reason @@ -46347,6 +47484,7 @@ components: type: integer index_status: description: The current indexing status of this upstream source + nullable: true readOnly: true title: Index status type: string @@ -46735,6 +47873,7 @@ components: - N/A - Upstream points to its own repository - Missing upstream source + - RSA key did not verify the upstream's APKINDEX signature - Upstream was disabled by request of user readOnly: true title: Disable reason @@ -46831,6 +47970,7 @@ components: type: integer index_status: description: The current indexing status of this upstream source + nullable: true readOnly: true title: Index status type: string @@ -47338,6 +48478,7 @@ components: - N/A - Upstream points to its own repository - Missing upstream source + - RSA key did not verify the upstream's APKINDEX signature - Upstream was disabled by request of user readOnly: true title: Disable reason @@ -47777,6 +48918,7 @@ components: - N/A - Upstream points to its own repository - Missing upstream source + - RSA key did not verify the upstream's APKINDEX signature - Upstream was disabled by request of user readOnly: true title: Disable reason @@ -47829,6 +48971,7 @@ components: type: integer index_status: description: The current indexing status of this upstream source + nullable: true readOnly: true title: Index status type: string @@ -48234,6 +49377,7 @@ components: - N/A - Upstream points to its own repository - Missing upstream source + - RSA key did not verify the upstream's APKINDEX signature - Upstream was disabled by request of user readOnly: true title: Disable reason @@ -48286,6 +49430,7 @@ components: type: integer index_status: description: The current indexing status of this upstream source + nullable: true readOnly: true title: Index status type: string @@ -48657,6 +49802,7 @@ components: - N/A - Upstream points to its own repository - Missing upstream source + - RSA key did not verify the upstream's APKINDEX signature - Upstream was disabled by request of user readOnly: true title: Disable reason @@ -48709,6 +49855,7 @@ components: type: integer index_status: description: The current indexing status of this upstream source + nullable: true readOnly: true title: Index status type: string @@ -49080,6 +50227,7 @@ components: - N/A - Upstream points to its own repository - Missing upstream source + - RSA key did not verify the upstream's APKINDEX signature - Upstream was disabled by request of user readOnly: true title: Disable reason @@ -49132,6 +50280,7 @@ components: type: integer index_status: description: The current indexing status of this upstream source + nullable: true readOnly: true title: Index status type: string @@ -49503,6 +50652,7 @@ components: - N/A - Upstream points to its own repository - Missing upstream source + - RSA key did not verify the upstream's APKINDEX signature - Upstream was disabled by request of user readOnly: true title: Disable reason @@ -49555,6 +50705,7 @@ components: type: integer index_status: description: The current indexing status of this upstream source + nullable: true readOnly: true title: Index status type: string @@ -49932,6 +51083,7 @@ components: - N/A - Upstream points to its own repository - Missing upstream source + - RSA key did not verify the upstream's APKINDEX signature - Upstream was disabled by request of user readOnly: true title: Disable reason @@ -50015,6 +51167,7 @@ components: type: integer index_status: description: The current indexing status of this upstream source + nullable: true readOnly: true title: Index status type: string @@ -50497,6 +51650,7 @@ components: - N/A - Upstream points to its own repository - Missing upstream source + - RSA key did not verify the upstream's APKINDEX signature - Upstream was disabled by request of user readOnly: true title: Disable reason @@ -50549,6 +51703,7 @@ components: type: integer index_status: description: The current indexing status of this upstream source + nullable: true readOnly: true title: Index status type: string @@ -50957,6 +52112,7 @@ components: - N/A - Upstream points to its own repository - Missing upstream source + - RSA key did not verify the upstream's APKINDEX signature - Upstream was disabled by request of user readOnly: true title: Disable reason @@ -51009,6 +52165,7 @@ components: type: integer index_status: description: The current indexing status of this upstream source + nullable: true readOnly: true title: Index status type: string @@ -51381,6 +52538,7 @@ components: - N/A - Upstream points to its own repository - Missing upstream source + - RSA key did not verify the upstream's APKINDEX signature - Upstream was disabled by request of user readOnly: true title: Disable reason @@ -51433,6 +52591,7 @@ components: type: integer index_status: description: The current indexing status of this upstream source + nullable: true readOnly: true title: Index status type: string @@ -51846,6 +53005,7 @@ components: - N/A - Upstream points to its own repository - Missing upstream source + - RSA key did not verify the upstream's APKINDEX signature - Upstream was disabled by request of user readOnly: true title: Disable reason @@ -51939,6 +53099,7 @@ components: type: integer index_status: description: The current indexing status of this upstream source + nullable: true readOnly: true title: Index status type: string @@ -52407,6 +53568,7 @@ components: - N/A - Upstream points to its own repository - Missing upstream source + - RSA key did not verify the upstream's APKINDEX signature - Upstream was disabled by request of user readOnly: true title: Disable reason @@ -52459,6 +53621,7 @@ components: type: integer index_status: description: The current indexing status of this upstream source + nullable: true readOnly: true title: Index status type: string @@ -52830,6 +53993,7 @@ components: - N/A - Upstream points to its own repository - Missing upstream source + - RSA key did not verify the upstream's APKINDEX signature - Upstream was disabled by request of user readOnly: true title: Disable reason @@ -52882,6 +54046,7 @@ components: type: integer index_status: description: The current indexing status of this upstream source + nullable: true readOnly: true title: Index status type: string diff --git a/api_audit_log.go b/api_audit_log.go index df71ab88..7df7bf75 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/api_badges.go b/api_badges.go index 5cb6b1bf..948ceac9 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/api_broadcasts.go b/api_broadcasts.go index f611414e..f7a65faa 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/api_bulk_action.go b/api_bulk_action.go index 3e6e064d..9132bd2a 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/api_distros.go b/api_distros.go index d3db98de..b0fcc423 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/api_entitlements.go b/api_entitlements.go index 6787034e..a8df6c13 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ @@ -1673,3 +1673,146 @@ func (a *EntitlementsApiService) EntitlementsSyncExecute(r ApiEntitlementsSyncRe return localVarReturnValue, localVarHTTPResponse, nil } + +type ApiEntitlementsTogglePrivateBroadcastsRequest struct { + ctx context.Context + ApiService *EntitlementsApiService + owner string + repo string + identifier string + data *RepositoryTokenPrivateBroadcastsRequest +} + +func (r ApiEntitlementsTogglePrivateBroadcastsRequest) Data(data RepositoryTokenPrivateBroadcastsRequest) ApiEntitlementsTogglePrivateBroadcastsRequest { + r.data = &data + return r +} + +func (r ApiEntitlementsTogglePrivateBroadcastsRequest) Execute() (*http.Response, error) { + return r.ApiService.EntitlementsTogglePrivateBroadcastsExecute(r) +} + +/* +EntitlementsTogglePrivateBroadcasts Set private broadcast access for an entitlement token in a repository. + +Set private broadcast access for an entitlement token in a repository. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param owner + @param repo + @param identifier + @return ApiEntitlementsTogglePrivateBroadcastsRequest +*/ +func (a *EntitlementsApiService) EntitlementsTogglePrivateBroadcasts(ctx context.Context, owner string, repo string, identifier string) ApiEntitlementsTogglePrivateBroadcastsRequest { + return ApiEntitlementsTogglePrivateBroadcastsRequest{ + ApiService: a, + ctx: ctx, + owner: owner, + repo: repo, + identifier: identifier, + } +} + +// Execute executes the request +func (a *EntitlementsApiService) EntitlementsTogglePrivateBroadcastsExecute(r ApiEntitlementsTogglePrivateBroadcastsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EntitlementsApiService.EntitlementsTogglePrivateBroadcasts") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/entitlements/{owner}/{repo}/{identifier}/toggle-private-broadcasts/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", url.PathEscape(parameterValueToString(r.owner, "owner")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", url.PathEscape(parameterValueToString(r.repo, "repo")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", url.PathEscape(parameterValueToString(r.identifier, "identifier")), -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 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 +} diff --git a/api_files.go b/api_files.go index d8b8ab05..dd13e9d8 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/api_formats.go b/api_formats.go index 5d986d51..93b01ac3 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/api_metrics.go b/api_metrics.go index f3ae786c..a87d85db 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/api_namespaces.go b/api_namespaces.go index ab668cd5..6f4a541d 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/api_orgs.go b/api_orgs.go index 5669ebe2..7fbef980 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/api_packages.go b/api_packages.go index 4545b5b6..325cfab3 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ @@ -4802,6 +4802,167 @@ func (a *PackagesApiService) PackagesUploadMavenExecute(r ApiPackagesUploadMaven return localVarReturnValue, localVarHTTPResponse, nil } +type ApiPackagesUploadMcpRequest struct { + ctx context.Context + ApiService *PackagesApiService + owner string + repo string + data *McpPackageUploadRequest +} + +func (r ApiPackagesUploadMcpRequest) Data(data McpPackageUploadRequest) ApiPackagesUploadMcpRequest { + r.data = &data + return r +} + +func (r ApiPackagesUploadMcpRequest) Execute() (*McpPackageUpload, *http.Response, error) { + return r.ApiService.PackagesUploadMcpExecute(r) +} + +/* +PackagesUploadMcp Create a new MCP package + +Create a new MCP package + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param owner + @param repo + @return ApiPackagesUploadMcpRequest +*/ +func (a *PackagesApiService) PackagesUploadMcp(ctx context.Context, owner string, repo string) ApiPackagesUploadMcpRequest { + return ApiPackagesUploadMcpRequest{ + ApiService: a, + ctx: ctx, + owner: owner, + repo: repo, + } +} + +// Execute executes the request +// @return McpPackageUpload +func (a *PackagesApiService) PackagesUploadMcpExecute(r ApiPackagesUploadMcpRequest) (*McpPackageUpload, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *McpPackageUpload + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PackagesApiService.PackagesUploadMcp") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/packages/{owner}/{repo}/upload/mcp/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", url.PathEscape(parameterValueToString(r.owner, "owner")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", url.PathEscape(parameterValueToString(r.repo, "repo")), -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 == 404 { + 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 == 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 ApiPackagesUploadNpmRequest struct { ctx context.Context ApiService *PackagesApiService @@ -9123,6 +9284,156 @@ func (a *PackagesApiService) PackagesValidateUploadMavenExecute(r ApiPackagesVal return localVarHTTPResponse, nil } +type ApiPackagesValidateUploadMcpRequest struct { + ctx context.Context + ApiService *PackagesApiService + owner string + repo string + data *McpPackageUploadRequest +} + +func (r ApiPackagesValidateUploadMcpRequest) Data(data McpPackageUploadRequest) ApiPackagesValidateUploadMcpRequest { + r.data = &data + return r +} + +func (r ApiPackagesValidateUploadMcpRequest) Execute() (*http.Response, error) { + return r.ApiService.PackagesValidateUploadMcpExecute(r) +} + +/* +PackagesValidateUploadMcp Validate parameters for create MCP package + +Validate parameters for create MCP package + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param owner + @param repo + @return ApiPackagesValidateUploadMcpRequest +*/ +func (a *PackagesApiService) PackagesValidateUploadMcp(ctx context.Context, owner string, repo string) ApiPackagesValidateUploadMcpRequest { + return ApiPackagesValidateUploadMcpRequest{ + ApiService: a, + ctx: ctx, + owner: owner, + repo: repo, + } +} + +// Execute executes the request +func (a *PackagesApiService) PackagesValidateUploadMcpExecute(r ApiPackagesValidateUploadMcpRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PackagesApiService.PackagesValidateUploadMcp") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/packages/{owner}/{repo}/validate-upload/mcp/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", url.PathEscape(parameterValueToString(r.owner, "owner")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", url.PathEscape(parameterValueToString(r.repo, "repo")), -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 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 == 404 { + 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 == 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 ApiPackagesValidateUploadNpmRequest struct { ctx context.Context ApiService *PackagesApiService diff --git a/api_quota.go b/api_quota.go index 2edd23f4..81044d99 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/api_rates.go b/api_rates.go index 7db7a3f6..f09c1766 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/api_recycle_bin.go b/api_recycle_bin.go new file mode 100644 index 00000000..2b4b9f75 --- /dev/null +++ b/api_recycle_bin.go @@ -0,0 +1,338 @@ +/* +Cloudsmith API (v1) + +The API to the Cloudsmith Service + +API version: 1.1137.0 +Contact: support@cloudsmith.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cloudsmith + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + +// RecycleBinApiService RecycleBinApi service +type RecycleBinApiService service + +type ApiRecycleBinListRequest struct { + ctx context.Context + ApiService *RecycleBinApiService + owner string + page *int64 + pageSize *int64 + repository *string +} + +// A page number within the paginated result set. +func (r ApiRecycleBinListRequest) Page(page int64) ApiRecycleBinListRequest { + r.page = &page + return r +} + +// Number of results to return per page. +func (r ApiRecycleBinListRequest) PageSize(pageSize int64) ApiRecycleBinListRequest { + r.pageSize = &pageSize + return r +} + +// Filter packages by repository slug +func (r ApiRecycleBinListRequest) Repository(repository string) ApiRecycleBinListRequest { + r.repository = &repository + return r +} + +func (r ApiRecycleBinListRequest) Execute() ([]RecycleBinPackage, *http.Response, error) { + return r.ApiService.RecycleBinListExecute(r) +} + +/* +RecycleBinList List soft-deleted packages in recycle bin + +Retrieve all soft-deleted packages in the workspace. Optionally filter by repository using the 'repository' query parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param owner + @return ApiRecycleBinListRequest +*/ +func (a *RecycleBinApiService) RecycleBinList(ctx context.Context, owner string) ApiRecycleBinListRequest { + return ApiRecycleBinListRequest{ + ApiService: a, + ctx: ctx, + owner: owner, + } +} + +// Execute executes the request +// @return []RecycleBinPackage +func (a *RecycleBinApiService) RecycleBinListExecute(r ApiRecycleBinListRequest) ([]RecycleBinPackage, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RecycleBinPackage + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RecycleBinApiService.RecycleBinList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/recycle-bin/{owner}/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", url.PathEscape(parameterValueToString(r.owner, "owner")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "", "") + } + if r.pageSize != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page_size", r.pageSize, "", "") + } + if r.repository != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "repository", r.repository, "", "") + } + // 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 ApiRecycleBinRecycleBinActionRequest struct { + ctx context.Context + ApiService *RecycleBinApiService + owner string + data *PackageRecycleBin +} + +func (r ApiRecycleBinRecycleBinActionRequest) Data(data PackageRecycleBin) ApiRecycleBinRecycleBinActionRequest { + r.data = &data + return r +} + +func (r ApiRecycleBinRecycleBinActionRequest) Execute() (*PackageBulkActionResponse, *http.Response, error) { + return r.ApiService.RecycleBinRecycleBinActionExecute(r) +} + +/* +RecycleBinRecycleBinAction Method for RecycleBinRecycleBinAction + +Perform actions on soft-deleted packages in the recycle bin. Supported actions: permanently delete (hard delete), restore. Returns a list of successfully actioned packages and any packages that failed with error details. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param owner + @return ApiRecycleBinRecycleBinActionRequest +*/ +func (a *RecycleBinApiService) RecycleBinRecycleBinAction(ctx context.Context, owner string) ApiRecycleBinRecycleBinActionRequest { + return ApiRecycleBinRecycleBinActionRequest{ + ApiService: a, + ctx: ctx, + owner: owner, + } +} + +// Execute executes the request +// @return PackageBulkActionResponse +func (a *RecycleBinApiService) RecycleBinRecycleBinActionExecute(r ApiRecycleBinRecycleBinActionRequest) (*PackageBulkActionResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PackageBulkActionResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RecycleBinApiService.RecycleBinRecycleBinAction") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/recycle-bin/{owner}/action/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", url.PathEscape(parameterValueToString(r.owner, "owner")), -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 +} diff --git a/api_repos.go b/api_repos.go index 7f319aed..894540fe 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ @@ -670,9 +670,9 @@ func (r ApiReposDeleteRequest) Execute() (*http.Response, error) { } /* -ReposDelete Delete a repository in a given namespace. +ReposDelete Method for ReposDelete -Delete a repository in a given namespace. +Delete a repository in a given namespace.Repositories are soft-deleted and can be restored within a retention period. During this time, the repository's slug remains reserved and cannot be reused for new repositories. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param owner diff --git a/api_status.go b/api_status.go index 3cf302c7..6b4fe51e 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/api_storage_regions.go b/api_storage_regions.go index 4543e0b6..b25756f3 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/api_user.go b/api_user.go index 5673cabd..c6112bfe 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/api_users.go b/api_users.go index 898a9c8c..a07c8aef 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/api_vulnerabilities.go b/api_vulnerabilities.go index 3b94854e..3289d025 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/api_webhooks.go b/api_webhooks.go index d0ec853b..b350191b 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/bin/generate b/bin/generate index ed482acc..bd7bd1d7 100755 --- a/bin/generate +++ b/bin/generate @@ -2,7 +2,7 @@ set -eou pipefail -PKG_VERSION=${1:-"0.0.55"} +PKG_VERSION=${1:-"0.0.56"} API_HOST=${2:-"https://api.cloudsmith.io"} diff --git a/client.go b/client.go index c1af5569..62d689d7 100644 --- a/client.go +++ b/client.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1093.0 +API version: 1.1137.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.1093.0 +// APIClient manages communication with the Cloudsmith API (v1) API v1.1137.0 // In most cases there should be only one, shared, APIClient. type APIClient struct { cfg *Configuration @@ -77,6 +77,8 @@ type APIClient struct { RatesApi *RatesApiService + RecycleBinApi *RecycleBinApiService + ReposApi *ReposApiService StatusApi *StatusApiService @@ -122,6 +124,7 @@ func NewAPIClient(cfg *Configuration) *APIClient { c.PackagesApi = (*PackagesApiService)(&c.common) c.QuotaApi = (*QuotaApiService)(&c.common) c.RatesApi = (*RatesApiService)(&c.common) + c.RecycleBinApi = (*RecycleBinApiService)(&c.common) c.ReposApi = (*ReposApiService)(&c.common) c.StatusApi = (*StatusApiService)(&c.common) c.StorageRegionsApi = (*StorageRegionsApiService)(&c.common) diff --git a/configuration.go b/configuration.go index 917fd952..48f5125a 100644 --- a/configuration.go +++ b/configuration.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1093.0 +API version: 1.1137.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.55/go", + UserAgent: "OpenAPI-Generator/0.0.56/go", Debug: false, Servers: ServerConfigurations{ { diff --git a/docs/AlpineUpstream.md b/docs/AlpineUpstream.md index 9b8296f0..bfa48942 100644 --- a/docs/AlpineUpstream.md +++ b/docs/AlpineUpstream.md @@ -18,13 +18,17 @@ Name | Type | Description | Notes **ExtraValue2** | Pointer to **NullableString** | The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] **HasFailedSignatureVerification** | Pointer to **bool** | Whether the upstream has failed signature verification. | [optional] [readonly] **IndexPackageCount** | Pointer to **NullableInt64** | The number of packages available in this upstream source | [optional] [readonly] -**IndexStatus** | Pointer to **string** | The current indexing status of this upstream source | [optional] [readonly] +**IndexStatus** | Pointer to **NullableString** | The current indexing status of this upstream source | [optional] [readonly] **IsActive** | Pointer to **bool** | Whether or not this upstream is active and ready for requests. | [optional] **LastIndexed** | Pointer to **string** | The last time this upstream source was indexed | [optional] [readonly] **Mode** | Pointer to **string** | The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. | [optional] [default to "Proxy Only"] **Name** | **string** | A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. | **PendingValidation** | Pointer to **bool** | When true, this upstream source is pending validation. | [optional] [readonly] **Priority** | Pointer to **int64** | Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. | [optional] +**RsaKeyInline** | Pointer to **NullableString** | A base64-encoded RSA public key in PEM format used to verify package signatures. | [optional] [readonly] +**RsaKeyUrl** | Pointer to **NullableString** | When provided, Cloudsmith will fetch and validate the RSA public key at this URL and use it to verify package signatures from this upstream. | [optional] +**RsaVerification** | Pointer to **string** | The RSA signature verification mode for this upstream. | [optional] [default to "Allow All"] +**RsaVerificationStatus** | Pointer to **string** | The RSA signature verification status for this upstream. | [optional] [readonly] [default to "Unknown"] **SlugPerm** | Pointer to **string** | | [optional] [readonly] **UpdatedAt** | Pointer to **time.Time** | | [optional] [readonly] **UpstreamUrl** | **string** | The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. | @@ -494,6 +498,16 @@ SetIndexStatus sets IndexStatus field to given value. HasIndexStatus returns a boolean if a field has been set. +### SetIndexStatusNil + +`func (o *AlpineUpstream) SetIndexStatusNil(b bool)` + + SetIndexStatusNil sets the value for IndexStatus to be an explicit nil + +### UnsetIndexStatus +`func (o *AlpineUpstream) UnsetIndexStatus()` + +UnsetIndexStatus ensures that no value is present for IndexStatus, not even an explicit nil ### GetIsActive `func (o *AlpineUpstream) GetIsActive() bool` @@ -639,6 +653,126 @@ SetPriority sets Priority field to given value. HasPriority returns a boolean if a field has been set. +### GetRsaKeyInline + +`func (o *AlpineUpstream) GetRsaKeyInline() string` + +GetRsaKeyInline returns the RsaKeyInline field if non-nil, zero value otherwise. + +### GetRsaKeyInlineOk + +`func (o *AlpineUpstream) GetRsaKeyInlineOk() (*string, bool)` + +GetRsaKeyInlineOk returns a tuple with the RsaKeyInline field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRsaKeyInline + +`func (o *AlpineUpstream) SetRsaKeyInline(v string)` + +SetRsaKeyInline sets RsaKeyInline field to given value. + +### HasRsaKeyInline + +`func (o *AlpineUpstream) HasRsaKeyInline() bool` + +HasRsaKeyInline returns a boolean if a field has been set. + +### SetRsaKeyInlineNil + +`func (o *AlpineUpstream) SetRsaKeyInlineNil(b bool)` + + SetRsaKeyInlineNil sets the value for RsaKeyInline to be an explicit nil + +### UnsetRsaKeyInline +`func (o *AlpineUpstream) UnsetRsaKeyInline()` + +UnsetRsaKeyInline ensures that no value is present for RsaKeyInline, not even an explicit nil +### GetRsaKeyUrl + +`func (o *AlpineUpstream) GetRsaKeyUrl() string` + +GetRsaKeyUrl returns the RsaKeyUrl field if non-nil, zero value otherwise. + +### GetRsaKeyUrlOk + +`func (o *AlpineUpstream) GetRsaKeyUrlOk() (*string, bool)` + +GetRsaKeyUrlOk returns a tuple with the RsaKeyUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRsaKeyUrl + +`func (o *AlpineUpstream) SetRsaKeyUrl(v string)` + +SetRsaKeyUrl sets RsaKeyUrl field to given value. + +### HasRsaKeyUrl + +`func (o *AlpineUpstream) HasRsaKeyUrl() bool` + +HasRsaKeyUrl returns a boolean if a field has been set. + +### SetRsaKeyUrlNil + +`func (o *AlpineUpstream) SetRsaKeyUrlNil(b bool)` + + SetRsaKeyUrlNil sets the value for RsaKeyUrl to be an explicit nil + +### UnsetRsaKeyUrl +`func (o *AlpineUpstream) UnsetRsaKeyUrl()` + +UnsetRsaKeyUrl ensures that no value is present for RsaKeyUrl, not even an explicit nil +### GetRsaVerification + +`func (o *AlpineUpstream) GetRsaVerification() string` + +GetRsaVerification returns the RsaVerification field if non-nil, zero value otherwise. + +### GetRsaVerificationOk + +`func (o *AlpineUpstream) GetRsaVerificationOk() (*string, bool)` + +GetRsaVerificationOk returns a tuple with the RsaVerification field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRsaVerification + +`func (o *AlpineUpstream) SetRsaVerification(v string)` + +SetRsaVerification sets RsaVerification field to given value. + +### HasRsaVerification + +`func (o *AlpineUpstream) HasRsaVerification() bool` + +HasRsaVerification returns a boolean if a field has been set. + +### GetRsaVerificationStatus + +`func (o *AlpineUpstream) GetRsaVerificationStatus() string` + +GetRsaVerificationStatus returns the RsaVerificationStatus field if non-nil, zero value otherwise. + +### GetRsaVerificationStatusOk + +`func (o *AlpineUpstream) GetRsaVerificationStatusOk() (*string, bool)` + +GetRsaVerificationStatusOk returns a tuple with the RsaVerificationStatus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRsaVerificationStatus + +`func (o *AlpineUpstream) SetRsaVerificationStatus(v string)` + +SetRsaVerificationStatus sets RsaVerificationStatus field to given value. + +### HasRsaVerificationStatus + +`func (o *AlpineUpstream) HasRsaVerificationStatus() bool` + +HasRsaVerificationStatus returns a boolean if a field has been set. + ### GetSlugPerm `func (o *AlpineUpstream) GetSlugPerm() string` diff --git a/docs/AlpineUpstreamRequest.md b/docs/AlpineUpstreamRequest.md index 05b91ea1..0566aa28 100644 --- a/docs/AlpineUpstreamRequest.md +++ b/docs/AlpineUpstreamRequest.md @@ -15,6 +15,8 @@ Name | Type | Description | Notes **Mode** | Pointer to **string** | The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. | [optional] [default to "Proxy Only"] **Name** | **string** | A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. | **Priority** | Pointer to **int64** | Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. | [optional] +**RsaKeyUrl** | Pointer to **NullableString** | When provided, Cloudsmith will fetch and validate the RSA public key at this URL and use it to verify package signatures from this upstream. | [optional] +**RsaVerification** | Pointer to **string** | The RSA signature verification mode for this upstream. | [optional] [default to "Allow All"] **UpstreamUrl** | **string** | The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. | **VerifySsl** | Pointer to **bool** | If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. | [optional] @@ -367,6 +369,66 @@ SetPriority sets Priority field to given value. HasPriority returns a boolean if a field has been set. +### GetRsaKeyUrl + +`func (o *AlpineUpstreamRequest) GetRsaKeyUrl() string` + +GetRsaKeyUrl returns the RsaKeyUrl field if non-nil, zero value otherwise. + +### GetRsaKeyUrlOk + +`func (o *AlpineUpstreamRequest) GetRsaKeyUrlOk() (*string, bool)` + +GetRsaKeyUrlOk returns a tuple with the RsaKeyUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRsaKeyUrl + +`func (o *AlpineUpstreamRequest) SetRsaKeyUrl(v string)` + +SetRsaKeyUrl sets RsaKeyUrl field to given value. + +### HasRsaKeyUrl + +`func (o *AlpineUpstreamRequest) HasRsaKeyUrl() bool` + +HasRsaKeyUrl returns a boolean if a field has been set. + +### SetRsaKeyUrlNil + +`func (o *AlpineUpstreamRequest) SetRsaKeyUrlNil(b bool)` + + SetRsaKeyUrlNil sets the value for RsaKeyUrl to be an explicit nil + +### UnsetRsaKeyUrl +`func (o *AlpineUpstreamRequest) UnsetRsaKeyUrl()` + +UnsetRsaKeyUrl ensures that no value is present for RsaKeyUrl, not even an explicit nil +### GetRsaVerification + +`func (o *AlpineUpstreamRequest) GetRsaVerification() string` + +GetRsaVerification returns the RsaVerification field if non-nil, zero value otherwise. + +### GetRsaVerificationOk + +`func (o *AlpineUpstreamRequest) GetRsaVerificationOk() (*string, bool)` + +GetRsaVerificationOk returns a tuple with the RsaVerification field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRsaVerification + +`func (o *AlpineUpstreamRequest) SetRsaVerification(v string)` + +SetRsaVerification sets RsaVerification field to given value. + +### HasRsaVerification + +`func (o *AlpineUpstreamRequest) HasRsaVerification() bool` + +HasRsaVerification returns a boolean if a field has been set. + ### GetUpstreamUrl `func (o *AlpineUpstreamRequest) GetUpstreamUrl() string` diff --git a/docs/AlpineUpstreamRequestPatch.md b/docs/AlpineUpstreamRequestPatch.md index c2dc1c3c..31b7553b 100644 --- a/docs/AlpineUpstreamRequestPatch.md +++ b/docs/AlpineUpstreamRequestPatch.md @@ -15,6 +15,8 @@ Name | Type | Description | Notes **Mode** | Pointer to **string** | The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. | [optional] [default to "Proxy Only"] **Name** | Pointer to **string** | A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. | [optional] **Priority** | Pointer to **int64** | Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. | [optional] +**RsaKeyUrl** | Pointer to **NullableString** | When provided, Cloudsmith will fetch and validate the RSA public key at this URL and use it to verify package signatures from this upstream. | [optional] +**RsaVerification** | Pointer to **string** | The RSA signature verification mode for this upstream. | [optional] [default to "Allow All"] **UpstreamUrl** | Pointer to **string** | The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. | [optional] **VerifySsl** | Pointer to **bool** | If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. | [optional] @@ -372,6 +374,66 @@ SetPriority sets Priority field to given value. HasPriority returns a boolean if a field has been set. +### GetRsaKeyUrl + +`func (o *AlpineUpstreamRequestPatch) GetRsaKeyUrl() string` + +GetRsaKeyUrl returns the RsaKeyUrl field if non-nil, zero value otherwise. + +### GetRsaKeyUrlOk + +`func (o *AlpineUpstreamRequestPatch) GetRsaKeyUrlOk() (*string, bool)` + +GetRsaKeyUrlOk returns a tuple with the RsaKeyUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRsaKeyUrl + +`func (o *AlpineUpstreamRequestPatch) SetRsaKeyUrl(v string)` + +SetRsaKeyUrl sets RsaKeyUrl field to given value. + +### HasRsaKeyUrl + +`func (o *AlpineUpstreamRequestPatch) HasRsaKeyUrl() bool` + +HasRsaKeyUrl returns a boolean if a field has been set. + +### SetRsaKeyUrlNil + +`func (o *AlpineUpstreamRequestPatch) SetRsaKeyUrlNil(b bool)` + + SetRsaKeyUrlNil sets the value for RsaKeyUrl to be an explicit nil + +### UnsetRsaKeyUrl +`func (o *AlpineUpstreamRequestPatch) UnsetRsaKeyUrl()` + +UnsetRsaKeyUrl ensures that no value is present for RsaKeyUrl, not even an explicit nil +### GetRsaVerification + +`func (o *AlpineUpstreamRequestPatch) GetRsaVerification() string` + +GetRsaVerification returns the RsaVerification field if non-nil, zero value otherwise. + +### GetRsaVerificationOk + +`func (o *AlpineUpstreamRequestPatch) GetRsaVerificationOk() (*string, bool)` + +GetRsaVerificationOk returns a tuple with the RsaVerification field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRsaVerification + +`func (o *AlpineUpstreamRequestPatch) SetRsaVerification(v string)` + +SetRsaVerification sets RsaVerification field to given value. + +### HasRsaVerification + +`func (o *AlpineUpstreamRequestPatch) HasRsaVerification() bool` + +HasRsaVerification returns a boolean if a field has been set. + ### GetUpstreamUrl `func (o *AlpineUpstreamRequestPatch) GetUpstreamUrl() string` diff --git a/docs/CargoUpstream.md b/docs/CargoUpstream.md index 9687b724..d378db09 100644 --- a/docs/CargoUpstream.md +++ b/docs/CargoUpstream.md @@ -18,7 +18,7 @@ Name | Type | Description | Notes **ExtraValue2** | Pointer to **NullableString** | The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] **HasFailedSignatureVerification** | Pointer to **bool** | Whether the upstream has failed signature verification. | [optional] [readonly] **IndexPackageCount** | Pointer to **NullableInt64** | The number of packages available in this upstream source | [optional] [readonly] -**IndexStatus** | Pointer to **string** | The current indexing status of this upstream source | [optional] [readonly] +**IndexStatus** | Pointer to **NullableString** | The current indexing status of this upstream source | [optional] [readonly] **IsActive** | Pointer to **bool** | Whether or not this upstream is active and ready for requests. | [optional] **LastIndexed** | Pointer to **string** | The last time this upstream source was indexed | [optional] [readonly] **Mode** | Pointer to **string** | The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. | [optional] [default to "Proxy Only"] @@ -494,6 +494,16 @@ SetIndexStatus sets IndexStatus field to given value. HasIndexStatus returns a boolean if a field has been set. +### SetIndexStatusNil + +`func (o *CargoUpstream) SetIndexStatusNil(b bool)` + + SetIndexStatusNil sets the value for IndexStatus to be an explicit nil + +### UnsetIndexStatus +`func (o *CargoUpstream) UnsetIndexStatus()` + +UnsetIndexStatus ensures that no value is present for IndexStatus, not even an explicit nil ### GetIsActive `func (o *CargoUpstream) GetIsActive() bool` diff --git a/docs/ComposerUpstream.md b/docs/ComposerUpstream.md index e5639160..a2c334a1 100644 --- a/docs/ComposerUpstream.md +++ b/docs/ComposerUpstream.md @@ -18,7 +18,7 @@ Name | Type | Description | Notes **ExtraValue2** | Pointer to **NullableString** | The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] **HasFailedSignatureVerification** | Pointer to **bool** | Whether the upstream has failed signature verification. | [optional] [readonly] **IndexPackageCount** | Pointer to **NullableInt64** | The number of packages available in this upstream source | [optional] [readonly] -**IndexStatus** | Pointer to **string** | The current indexing status of this upstream source | [optional] [readonly] +**IndexStatus** | Pointer to **NullableString** | The current indexing status of this upstream source | [optional] [readonly] **IsActive** | Pointer to **bool** | Whether or not this upstream is active and ready for requests. | [optional] **LastIndexed** | Pointer to **string** | The last time this upstream source was indexed | [optional] [readonly] **Mode** | Pointer to **string** | The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. | [optional] [default to "Proxy Only"] @@ -494,6 +494,16 @@ SetIndexStatus sets IndexStatus field to given value. HasIndexStatus returns a boolean if a field has been set. +### SetIndexStatusNil + +`func (o *ComposerUpstream) SetIndexStatusNil(b bool)` + + SetIndexStatusNil sets the value for IndexStatus to be an explicit nil + +### UnsetIndexStatus +`func (o *ComposerUpstream) UnsetIndexStatus()` + +UnsetIndexStatus ensures that no value is present for IndexStatus, not even an explicit nil ### GetIsActive `func (o *ComposerUpstream) GetIsActive() bool` diff --git a/docs/CondaUpstream.md b/docs/CondaUpstream.md index 1164c947..d819c76d 100644 --- a/docs/CondaUpstream.md +++ b/docs/CondaUpstream.md @@ -18,7 +18,7 @@ Name | Type | Description | Notes **ExtraValue2** | Pointer to **NullableString** | The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] **HasFailedSignatureVerification** | Pointer to **bool** | Whether the upstream has failed signature verification. | [optional] [readonly] **IndexPackageCount** | Pointer to **NullableInt64** | The number of packages available in this upstream source | [optional] [readonly] -**IndexStatus** | Pointer to **string** | The current indexing status of this upstream source | [optional] [readonly] +**IndexStatus** | Pointer to **NullableString** | The current indexing status of this upstream source | [optional] [readonly] **IsActive** | Pointer to **bool** | Whether or not this upstream is active and ready for requests. | [optional] **LastIndexed** | Pointer to **string** | The last time this upstream source was indexed | [optional] [readonly] **Mode** | Pointer to **string** | The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. | [optional] [default to "Proxy Only"] @@ -494,6 +494,16 @@ SetIndexStatus sets IndexStatus field to given value. HasIndexStatus returns a boolean if a field has been set. +### SetIndexStatusNil + +`func (o *CondaUpstream) SetIndexStatusNil(b bool)` + + SetIndexStatusNil sets the value for IndexStatus to be an explicit nil + +### UnsetIndexStatus +`func (o *CondaUpstream) UnsetIndexStatus()` + +UnsetIndexStatus ensures that no value is present for IndexStatus, not even an explicit nil ### GetIsActive `func (o *CondaUpstream) GetIsActive() bool` diff --git a/docs/CranUpstream.md b/docs/CranUpstream.md index 15d5cf6d..5fa41ee3 100644 --- a/docs/CranUpstream.md +++ b/docs/CranUpstream.md @@ -18,7 +18,7 @@ Name | Type | Description | Notes **ExtraValue2** | Pointer to **NullableString** | The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] **HasFailedSignatureVerification** | Pointer to **bool** | Whether the upstream has failed signature verification. | [optional] [readonly] **IndexPackageCount** | Pointer to **NullableInt64** | The number of packages available in this upstream source | [optional] [readonly] -**IndexStatus** | Pointer to **string** | The current indexing status of this upstream source | [optional] [readonly] +**IndexStatus** | Pointer to **NullableString** | The current indexing status of this upstream source | [optional] [readonly] **IsActive** | Pointer to **bool** | Whether or not this upstream is active and ready for requests. | [optional] **LastIndexed** | Pointer to **string** | The last time this upstream source was indexed | [optional] [readonly] **Mode** | Pointer to **string** | The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. | [optional] [default to "Proxy Only"] @@ -494,6 +494,16 @@ SetIndexStatus sets IndexStatus field to given value. HasIndexStatus returns a boolean if a field has been set. +### SetIndexStatusNil + +`func (o *CranUpstream) SetIndexStatusNil(b bool)` + + SetIndexStatusNil sets the value for IndexStatus to be an explicit nil + +### UnsetIndexStatus +`func (o *CranUpstream) UnsetIndexStatus()` + +UnsetIndexStatus ensures that no value is present for IndexStatus, not even an explicit nil ### GetIsActive `func (o *CranUpstream) GetIsActive() bool` diff --git a/docs/DartUpstream.md b/docs/DartUpstream.md index a6e11847..8d505b58 100644 --- a/docs/DartUpstream.md +++ b/docs/DartUpstream.md @@ -18,7 +18,7 @@ Name | Type | Description | Notes **ExtraValue2** | Pointer to **NullableString** | The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] **HasFailedSignatureVerification** | Pointer to **bool** | Whether the upstream has failed signature verification. | [optional] [readonly] **IndexPackageCount** | Pointer to **NullableInt64** | The number of packages available in this upstream source | [optional] [readonly] -**IndexStatus** | Pointer to **string** | The current indexing status of this upstream source | [optional] [readonly] +**IndexStatus** | Pointer to **NullableString** | The current indexing status of this upstream source | [optional] [readonly] **IsActive** | Pointer to **bool** | Whether or not this upstream is active and ready for requests. | [optional] **LastIndexed** | Pointer to **string** | The last time this upstream source was indexed | [optional] [readonly] **Mode** | Pointer to **string** | The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. | [optional] [default to "Proxy Only"] @@ -494,6 +494,16 @@ SetIndexStatus sets IndexStatus field to given value. HasIndexStatus returns a boolean if a field has been set. +### SetIndexStatusNil + +`func (o *DartUpstream) SetIndexStatusNil(b bool)` + + SetIndexStatusNil sets the value for IndexStatus to be an explicit nil + +### UnsetIndexStatus +`func (o *DartUpstream) UnsetIndexStatus()` + +UnsetIndexStatus ensures that no value is present for IndexStatus, not even an explicit nil ### GetIsActive `func (o *DartUpstream) GetIsActive() bool` diff --git a/docs/DebUpstream.md b/docs/DebUpstream.md index 34aa7740..5df7bc10 100644 --- a/docs/DebUpstream.md +++ b/docs/DebUpstream.md @@ -25,7 +25,7 @@ Name | Type | Description | Notes **HasFailedSignatureVerification** | Pointer to **bool** | Whether the upstream has failed signature verification. | [optional] [readonly] **IncludeSources** | Pointer to **bool** | When true, source packages will be available from this upstream. | [optional] **IndexPackageCount** | Pointer to **NullableInt64** | The number of packages available in this upstream source | [optional] [readonly] -**IndexStatus** | Pointer to **string** | The current indexing status of this upstream source | [optional] [readonly] +**IndexStatus** | Pointer to **NullableString** | The current indexing status of this upstream source | [optional] [readonly] **IsActive** | Pointer to **bool** | Whether or not this upstream is active and ready for requests. | [optional] **LastIndexed** | Pointer to **string** | The last time this upstream source was indexed | [optional] [readonly] **Mode** | Pointer to **string** | The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. | [optional] [default to "Proxy Only"] @@ -693,6 +693,16 @@ SetIndexStatus sets IndexStatus field to given value. HasIndexStatus returns a boolean if a field has been set. +### SetIndexStatusNil + +`func (o *DebUpstream) SetIndexStatusNil(b bool)` + + SetIndexStatusNil sets the value for IndexStatus to be an explicit nil + +### UnsetIndexStatus +`func (o *DebUpstream) UnsetIndexStatus()` + +UnsetIndexStatus ensures that no value is present for IndexStatus, not even an explicit nil ### GetIsActive `func (o *DebUpstream) GetIsActive() bool` diff --git a/docs/EntitlementsApi.md b/docs/EntitlementsApi.md index bab709f2..78de1e1d 100644 --- a/docs/EntitlementsApi.md +++ b/docs/EntitlementsApi.md @@ -14,6 +14,7 @@ Method | HTTP request | Description [**EntitlementsRefresh**](EntitlementsApi.md#EntitlementsRefresh) | **Post** /entitlements/{owner}/{repo}/{identifier}/refresh/ | Refresh an entitlement token in a repository. [**EntitlementsReset**](EntitlementsApi.md#EntitlementsReset) | **Post** /entitlements/{owner}/{repo}/{identifier}/reset/ | Reset the statistics for an entitlement token in a repository. [**EntitlementsSync**](EntitlementsApi.md#EntitlementsSync) | **Post** /entitlements/{owner}/{repo}/sync/ | Synchronise tokens from a source repository. +[**EntitlementsTogglePrivateBroadcasts**](EntitlementsApi.md#EntitlementsTogglePrivateBroadcasts) | **Post** /entitlements/{owner}/{repo}/{identifier}/toggle-private-broadcasts/ | Set private broadcast access for an entitlement token in a repository. @@ -793,3 +794,79 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +## EntitlementsTogglePrivateBroadcasts + +> EntitlementsTogglePrivateBroadcasts(ctx, owner, repo, identifier).Data(data).Execute() + +Set private broadcast access for an entitlement token in a repository. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/cloudsmith-io/cloudsmith-api-go" +) + +func main() { + owner := "owner_example" // string | + repo := "repo_example" // string | + identifier := "identifier_example" // string | + data := *openapiclient.NewRepositoryTokenPrivateBroadcastsRequest(false) // RepositoryTokenPrivateBroadcastsRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.EntitlementsApi.EntitlementsTogglePrivateBroadcasts(context.Background(), owner, repo, identifier).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsApi.EntitlementsTogglePrivateBroadcasts``: %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. +**owner** | **string** | | +**repo** | **string** | | +**identifier** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiEntitlementsTogglePrivateBroadcastsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **data** | [**RepositoryTokenPrivateBroadcastsRequest**](RepositoryTokenPrivateBroadcastsRequest.md) | | + +### Return type + + (empty response body) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/docs/GenericUpstream.md b/docs/GenericUpstream.md index e9d2b97a..1087820f 100644 --- a/docs/GenericUpstream.md +++ b/docs/GenericUpstream.md @@ -18,7 +18,7 @@ Name | Type | Description | Notes **ExtraValue2** | Pointer to **NullableString** | The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] **HasFailedSignatureVerification** | Pointer to **bool** | Whether the upstream has failed signature verification. | [optional] [readonly] **IndexPackageCount** | Pointer to **NullableInt64** | The number of packages available in this upstream source | [optional] [readonly] -**IndexStatus** | Pointer to **string** | The current indexing status of this upstream source | [optional] [readonly] +**IndexStatus** | Pointer to **NullableString** | The current indexing status of this upstream source | [optional] [readonly] **IsActive** | Pointer to **bool** | Whether or not this upstream is active and ready for requests. | [optional] **LastIndexed** | Pointer to **string** | The last time this upstream source was indexed | [optional] [readonly] **Mode** | Pointer to **string** | The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. | [optional] [default to "Proxy Only"] @@ -495,6 +495,16 @@ SetIndexStatus sets IndexStatus field to given value. HasIndexStatus returns a boolean if a field has been set. +### SetIndexStatusNil + +`func (o *GenericUpstream) SetIndexStatusNil(b bool)` + + SetIndexStatusNil sets the value for IndexStatus to be an explicit nil + +### UnsetIndexStatus +`func (o *GenericUpstream) UnsetIndexStatus()` + +UnsetIndexStatus ensures that no value is present for IndexStatus, not even an explicit nil ### GetIsActive `func (o *GenericUpstream) GetIsActive() bool` diff --git a/docs/GoUpstream.md b/docs/GoUpstream.md index ccc4b991..2e86b27a 100644 --- a/docs/GoUpstream.md +++ b/docs/GoUpstream.md @@ -18,7 +18,7 @@ Name | Type | Description | Notes **ExtraValue2** | Pointer to **NullableString** | The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] **HasFailedSignatureVerification** | Pointer to **bool** | Whether the upstream has failed signature verification. | [optional] [readonly] **IndexPackageCount** | Pointer to **NullableInt64** | The number of packages available in this upstream source | [optional] [readonly] -**IndexStatus** | Pointer to **string** | The current indexing status of this upstream source | [optional] [readonly] +**IndexStatus** | Pointer to **NullableString** | The current indexing status of this upstream source | [optional] [readonly] **IsActive** | Pointer to **bool** | Whether or not this upstream is active and ready for requests. | [optional] **LastIndexed** | Pointer to **string** | The last time this upstream source was indexed | [optional] [readonly] **Mode** | Pointer to **string** | The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. | [optional] [default to "Proxy Only"] @@ -494,6 +494,16 @@ SetIndexStatus sets IndexStatus field to given value. HasIndexStatus returns a boolean if a field has been set. +### SetIndexStatusNil + +`func (o *GoUpstream) SetIndexStatusNil(b bool)` + + SetIndexStatusNil sets the value for IndexStatus to be an explicit nil + +### UnsetIndexStatus +`func (o *GoUpstream) UnsetIndexStatus()` + +UnsetIndexStatus ensures that no value is present for IndexStatus, not even an explicit nil ### GetIsActive `func (o *GoUpstream) GetIsActive() bool` diff --git a/docs/HelmUpstream.md b/docs/HelmUpstream.md index 475248cf..d8e4641a 100644 --- a/docs/HelmUpstream.md +++ b/docs/HelmUpstream.md @@ -18,7 +18,7 @@ Name | Type | Description | Notes **ExtraValue2** | Pointer to **NullableString** | The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] **HasFailedSignatureVerification** | Pointer to **bool** | Whether the upstream has failed signature verification. | [optional] [readonly] **IndexPackageCount** | Pointer to **NullableInt64** | The number of packages available in this upstream source | [optional] [readonly] -**IndexStatus** | Pointer to **string** | The current indexing status of this upstream source | [optional] [readonly] +**IndexStatus** | Pointer to **NullableString** | The current indexing status of this upstream source | [optional] [readonly] **IsActive** | Pointer to **bool** | Whether or not this upstream is active and ready for requests. | [optional] **LastIndexed** | Pointer to **string** | The last time this upstream source was indexed | [optional] [readonly] **Mode** | Pointer to **string** | The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. | [optional] [default to "Proxy Only"] @@ -494,6 +494,16 @@ SetIndexStatus sets IndexStatus field to given value. HasIndexStatus returns a boolean if a field has been set. +### SetIndexStatusNil + +`func (o *HelmUpstream) SetIndexStatusNil(b bool)` + + SetIndexStatusNil sets the value for IndexStatus to be an explicit nil + +### UnsetIndexStatus +`func (o *HelmUpstream) UnsetIndexStatus()` + +UnsetIndexStatus ensures that no value is present for IndexStatus, not even an explicit nil ### GetIsActive `func (o *HelmUpstream) GetIsActive() bool` diff --git a/docs/HexUpstream.md b/docs/HexUpstream.md index 82f924f8..4ac80e13 100644 --- a/docs/HexUpstream.md +++ b/docs/HexUpstream.md @@ -18,7 +18,7 @@ Name | Type | Description | Notes **ExtraValue2** | Pointer to **NullableString** | The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] **HasFailedSignatureVerification** | Pointer to **bool** | Whether the upstream has failed signature verification. | [optional] [readonly] **IndexPackageCount** | Pointer to **NullableInt64** | The number of packages available in this upstream source | [optional] [readonly] -**IndexStatus** | Pointer to **string** | The current indexing status of this upstream source | [optional] [readonly] +**IndexStatus** | Pointer to **NullableString** | The current indexing status of this upstream source | [optional] [readonly] **IsActive** | Pointer to **bool** | Whether or not this upstream is active and ready for requests. | [optional] **LastIndexed** | Pointer to **string** | The last time this upstream source was indexed | [optional] [readonly] **Mode** | Pointer to **string** | The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. | [optional] [default to "Proxy Only"] @@ -494,6 +494,16 @@ SetIndexStatus sets IndexStatus field to given value. HasIndexStatus returns a boolean if a field has been set. +### SetIndexStatusNil + +`func (o *HexUpstream) SetIndexStatusNil(b bool)` + + SetIndexStatusNil sets the value for IndexStatus to be an explicit nil + +### UnsetIndexStatus +`func (o *HexUpstream) UnsetIndexStatus()` + +UnsetIndexStatus ensures that no value is present for IndexStatus, not even an explicit nil ### GetIsActive `func (o *HexUpstream) GetIsActive() bool` diff --git a/docs/HuggingfaceUpstream.md b/docs/HuggingfaceUpstream.md index 57fd2847..15ac24bc 100644 --- a/docs/HuggingfaceUpstream.md +++ b/docs/HuggingfaceUpstream.md @@ -18,7 +18,7 @@ Name | Type | Description | Notes **ExtraValue2** | Pointer to **NullableString** | The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] **HasFailedSignatureVerification** | Pointer to **bool** | Whether the upstream has failed signature verification. | [optional] [readonly] **IndexPackageCount** | Pointer to **NullableInt64** | The number of packages available in this upstream source | [optional] [readonly] -**IndexStatus** | Pointer to **string** | The current indexing status of this upstream source | [optional] [readonly] +**IndexStatus** | Pointer to **NullableString** | The current indexing status of this upstream source | [optional] [readonly] **IsActive** | Pointer to **bool** | Whether or not this upstream is active and ready for requests. | [optional] **LastIndexed** | Pointer to **string** | The last time this upstream source was indexed | [optional] [readonly] **Mode** | Pointer to **string** | The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. | [optional] [default to "Proxy Only"] @@ -494,6 +494,16 @@ SetIndexStatus sets IndexStatus field to given value. HasIndexStatus returns a boolean if a field has been set. +### SetIndexStatusNil + +`func (o *HuggingfaceUpstream) SetIndexStatusNil(b bool)` + + SetIndexStatusNil sets the value for IndexStatus to be an explicit nil + +### UnsetIndexStatus +`func (o *HuggingfaceUpstream) UnsetIndexStatus()` + +UnsetIndexStatus ensures that no value is present for IndexStatus, not even an explicit nil ### GetIsActive `func (o *HuggingfaceUpstream) GetIsActive() bool` diff --git a/docs/MavenUpstream.md b/docs/MavenUpstream.md index eabdf82d..dfcc1709 100644 --- a/docs/MavenUpstream.md +++ b/docs/MavenUpstream.md @@ -22,7 +22,7 @@ Name | Type | Description | Notes **GpgVerification** | Pointer to **string** | The GPG signature verification mode for this upstream. | [optional] [default to "Allow All"] **HasFailedSignatureVerification** | Pointer to **bool** | Whether the upstream has failed signature verification. | [optional] [readonly] **IndexPackageCount** | Pointer to **NullableInt64** | The number of packages available in this upstream source | [optional] [readonly] -**IndexStatus** | Pointer to **string** | The current indexing status of this upstream source | [optional] [readonly] +**IndexStatus** | Pointer to **NullableString** | The current indexing status of this upstream source | [optional] [readonly] **IsActive** | Pointer to **bool** | Whether or not this upstream is active and ready for requests. | [optional] **LastIndexed** | Pointer to **string** | The last time this upstream source was indexed | [optional] [readonly] **Mode** | Pointer to **string** | The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. | [optional] [default to "Proxy Only"] @@ -620,6 +620,16 @@ SetIndexStatus sets IndexStatus field to given value. HasIndexStatus returns a boolean if a field has been set. +### SetIndexStatusNil + +`func (o *MavenUpstream) SetIndexStatusNil(b bool)` + + SetIndexStatusNil sets the value for IndexStatus to be an explicit nil + +### UnsetIndexStatus +`func (o *MavenUpstream) UnsetIndexStatus()` + +UnsetIndexStatus ensures that no value is present for IndexStatus, not even an explicit nil ### GetIsActive `func (o *MavenUpstream) GetIsActive() bool` diff --git a/docs/McpPackageUpload.md b/docs/McpPackageUpload.md new file mode 100644 index 00000000..6565c1e2 --- /dev/null +++ b/docs/McpPackageUpload.md @@ -0,0 +1,2414 @@ +# McpPackageUpload + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Architectures** | Pointer to [**[]Architecture**](Architecture.md) | | [optional] [readonly] +**CdnUrl** | Pointer to **NullableString** | | [optional] [readonly] +**ChecksumMd5** | Pointer to **string** | | [optional] [readonly] +**ChecksumSha1** | Pointer to **string** | | [optional] [readonly] +**ChecksumSha256** | Pointer to **string** | | [optional] [readonly] +**ChecksumSha512** | Pointer to **string** | | [optional] [readonly] +**DependenciesChecksumMd5** | Pointer to **NullableString** | A checksum of all of the package's dependencies. | [optional] [readonly] +**DependenciesUrl** | Pointer to **string** | | [optional] [readonly] +**Description** | Pointer to **NullableString** | A textual description of this package. | [optional] [readonly] +**DisplayName** | Pointer to **string** | | [optional] [readonly] +**Distro** | Pointer to [**NullableDistribution**](Distribution.md) | | [optional] +**DistroVersion** | Pointer to [**DistributionVersion**](DistributionVersion.md) | | [optional] +**Downloads** | Pointer to **int64** | | [optional] [readonly] +**Epoch** | Pointer to **NullableInt64** | The epoch of the package version (if any). | [optional] [readonly] +**Extension** | Pointer to **string** | | [optional] [readonly] +**Filename** | Pointer to **string** | | [optional] [readonly] +**Files** | Pointer to [**[]PackageFile**](PackageFile.md) | | [optional] [readonly] +**Format** | Pointer to **string** | | [optional] [readonly] +**FormatUrl** | Pointer to **string** | | [optional] [readonly] +**FreeableStorage** | Pointer to **int64** | Amount of storage that will be freed if this package is deleted | [optional] [readonly] +**FullyQualifiedName** | Pointer to **NullableString** | | [optional] [readonly] +**IdentifierPerm** | Pointer to **string** | Unique and permanent identifier for the package. | [optional] [readonly] +**Identifiers** | Pointer to **map[string]string** | Return a map of identifier field names and their values. | [optional] [readonly] +**Indexed** | Pointer to **bool** | | [optional] [readonly] +**IsCancellable** | Pointer to **bool** | | [optional] [readonly] +**IsCopyable** | Pointer to **bool** | | [optional] [readonly] +**IsDeleteable** | Pointer to **bool** | | [optional] [readonly] +**IsDownloadable** | Pointer to **bool** | | [optional] [readonly] +**IsMoveable** | Pointer to **bool** | | [optional] [readonly] +**IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] +**IsQuarantined** | Pointer to **bool** | | [optional] [readonly] +**IsResyncable** | Pointer to **bool** | | [optional] [readonly] +**IsSecurityScannable** | Pointer to **bool** | | [optional] [readonly] +**IsSyncAwaiting** | Pointer to **bool** | | [optional] [readonly] +**IsSyncCompleted** | Pointer to **bool** | | [optional] [readonly] +**IsSyncFailed** | Pointer to **bool** | | [optional] [readonly] +**IsSyncInFlight** | Pointer to **bool** | | [optional] [readonly] +**IsSyncInProgress** | Pointer to **bool** | | [optional] [readonly] +**License** | Pointer to **NullableString** | The license of this package. | [optional] [readonly] +**Name** | Pointer to **NullableString** | The name of this package. | [optional] [readonly] +**Namespace** | Pointer to **string** | | [optional] [readonly] +**NamespaceUrl** | Pointer to **string** | | [optional] [readonly] +**NumFiles** | Pointer to **int64** | | [optional] [readonly] +**OriginRepository** | Pointer to **string** | | [optional] [readonly] +**OriginRepositoryUrl** | Pointer to **string** | | [optional] [readonly] +**PackageType** | Pointer to **int64** | The type of package contents. | [optional] [readonly] +**PolicyViolated** | Pointer to **bool** | Whether or not the package has violated any policy. | [optional] [readonly] +**RawLicense** | Pointer to **NullableString** | The raw license string. | [optional] [readonly] +**Release** | Pointer to **NullableString** | The release of the package version (if any). | [optional] [readonly] +**Repository** | Pointer to **string** | | [optional] [readonly] +**RepositoryUrl** | Pointer to **string** | | [optional] [readonly] +**SecurityScanCompletedAt** | Pointer to **NullableTime** | The datetime the security scanning was completed. | [optional] [readonly] +**SecurityScanStartedAt** | Pointer to **NullableTime** | The datetime the security scanning was started. | [optional] [readonly] +**SecurityScanStatus** | Pointer to **NullableString** | | [optional] [readonly] [default to "Awaiting Security Scan"] +**SecurityScanStatusUpdatedAt** | Pointer to **NullableTime** | The datetime the security scanning status was updated. | [optional] [readonly] +**SelfHtmlUrl** | Pointer to **string** | | [optional] [readonly] +**SelfUrl** | Pointer to **string** | | [optional] [readonly] +**SelfWebappUrl** | Pointer to **string** | | [optional] [readonly] +**SignatureUrl** | Pointer to **NullableString** | | [optional] [readonly] +**Size** | Pointer to **int64** | The calculated size of the package. | [optional] [readonly] +**Slug** | Pointer to **string** | The public unique identifier for the package. | [optional] [readonly] +**SlugPerm** | Pointer to **string** | | [optional] [readonly] +**SpdxLicense** | Pointer to **NullableString** | The SPDX license identifier for this package. | [optional] [readonly] +**Stage** | Pointer to **int64** | The synchronisation (in progress) stage of the package. | [optional] [readonly] +**StageStr** | Pointer to **string** | | [optional] [readonly] +**StageUpdatedAt** | Pointer to **time.Time** | The datetime the package stage was updated at. | [optional] [readonly] +**Status** | Pointer to **int64** | The synchronisation status of the package. | [optional] [readonly] +**StatusReason** | Pointer to **NullableString** | A textual description for the synchronous status reason (if any | [optional] [readonly] +**StatusStr** | Pointer to **string** | | [optional] [readonly] +**StatusUpdatedAt** | Pointer to **time.Time** | The datetime the package status was updated at. | [optional] [readonly] +**StatusUrl** | Pointer to **string** | | [optional] [readonly] +**Subtype** | Pointer to **string** | | [optional] [readonly] +**Summary** | Pointer to **NullableString** | A one-liner synopsis of this package. | [optional] [readonly] +**SyncFinishedAt** | Pointer to **NullableTime** | The datetime the package sync was finished at. | [optional] [readonly] +**SyncProgress** | Pointer to **int64** | Synchronisation progress (from 0-100) | [optional] [readonly] +**TagsAutomatic** | Pointer to **map[string]interface{}** | All tags on the package, grouped by tag type. This includes immutable tags, but doesn't distinguish them from mutable. To see which tags are immutable specifically, see the tags_immutable field. | [optional] +**TagsImmutable** | Pointer to **map[string]interface{}** | All tags on the package, grouped by tag type. This includes immutable tags, but doesn't distinguish them from mutable. To see which tags are immutable specifically, see the tags_immutable field. | [optional] +**TypeDisplay** | Pointer to **string** | | [optional] [readonly] +**UploadedAt** | Pointer to **time.Time** | The date this package was uploaded. | [optional] [readonly] +**Uploader** | Pointer to **string** | | [optional] [readonly] +**UploaderUrl** | Pointer to **string** | | [optional] [readonly] +**Version** | Pointer to **NullableString** | The raw version for this package. | [optional] +**VersionOrig** | Pointer to **string** | | [optional] [readonly] +**VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] + +## Methods + +### NewMcpPackageUpload + +`func NewMcpPackageUpload() *McpPackageUpload` + +NewMcpPackageUpload instantiates a new McpPackageUpload 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 + +### NewMcpPackageUploadWithDefaults + +`func NewMcpPackageUploadWithDefaults() *McpPackageUpload` + +NewMcpPackageUploadWithDefaults instantiates a new McpPackageUpload 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 + +### GetArchitectures + +`func (o *McpPackageUpload) GetArchitectures() []Architecture` + +GetArchitectures returns the Architectures field if non-nil, zero value otherwise. + +### GetArchitecturesOk + +`func (o *McpPackageUpload) GetArchitecturesOk() (*[]Architecture, bool)` + +GetArchitecturesOk returns a tuple with the Architectures field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetArchitectures + +`func (o *McpPackageUpload) SetArchitectures(v []Architecture)` + +SetArchitectures sets Architectures field to given value. + +### HasArchitectures + +`func (o *McpPackageUpload) HasArchitectures() bool` + +HasArchitectures returns a boolean if a field has been set. + +### GetCdnUrl + +`func (o *McpPackageUpload) GetCdnUrl() string` + +GetCdnUrl returns the CdnUrl field if non-nil, zero value otherwise. + +### GetCdnUrlOk + +`func (o *McpPackageUpload) GetCdnUrlOk() (*string, bool)` + +GetCdnUrlOk returns a tuple with the CdnUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCdnUrl + +`func (o *McpPackageUpload) SetCdnUrl(v string)` + +SetCdnUrl sets CdnUrl field to given value. + +### HasCdnUrl + +`func (o *McpPackageUpload) HasCdnUrl() bool` + +HasCdnUrl returns a boolean if a field has been set. + +### SetCdnUrlNil + +`func (o *McpPackageUpload) SetCdnUrlNil(b bool)` + + SetCdnUrlNil sets the value for CdnUrl to be an explicit nil + +### UnsetCdnUrl +`func (o *McpPackageUpload) UnsetCdnUrl()` + +UnsetCdnUrl ensures that no value is present for CdnUrl, not even an explicit nil +### GetChecksumMd5 + +`func (o *McpPackageUpload) GetChecksumMd5() string` + +GetChecksumMd5 returns the ChecksumMd5 field if non-nil, zero value otherwise. + +### GetChecksumMd5Ok + +`func (o *McpPackageUpload) GetChecksumMd5Ok() (*string, bool)` + +GetChecksumMd5Ok returns a tuple with the ChecksumMd5 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChecksumMd5 + +`func (o *McpPackageUpload) SetChecksumMd5(v string)` + +SetChecksumMd5 sets ChecksumMd5 field to given value. + +### HasChecksumMd5 + +`func (o *McpPackageUpload) HasChecksumMd5() bool` + +HasChecksumMd5 returns a boolean if a field has been set. + +### GetChecksumSha1 + +`func (o *McpPackageUpload) GetChecksumSha1() string` + +GetChecksumSha1 returns the ChecksumSha1 field if non-nil, zero value otherwise. + +### GetChecksumSha1Ok + +`func (o *McpPackageUpload) GetChecksumSha1Ok() (*string, bool)` + +GetChecksumSha1Ok returns a tuple with the ChecksumSha1 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChecksumSha1 + +`func (o *McpPackageUpload) SetChecksumSha1(v string)` + +SetChecksumSha1 sets ChecksumSha1 field to given value. + +### HasChecksumSha1 + +`func (o *McpPackageUpload) HasChecksumSha1() bool` + +HasChecksumSha1 returns a boolean if a field has been set. + +### GetChecksumSha256 + +`func (o *McpPackageUpload) GetChecksumSha256() string` + +GetChecksumSha256 returns the ChecksumSha256 field if non-nil, zero value otherwise. + +### GetChecksumSha256Ok + +`func (o *McpPackageUpload) GetChecksumSha256Ok() (*string, bool)` + +GetChecksumSha256Ok returns a tuple with the ChecksumSha256 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChecksumSha256 + +`func (o *McpPackageUpload) SetChecksumSha256(v string)` + +SetChecksumSha256 sets ChecksumSha256 field to given value. + +### HasChecksumSha256 + +`func (o *McpPackageUpload) HasChecksumSha256() bool` + +HasChecksumSha256 returns a boolean if a field has been set. + +### GetChecksumSha512 + +`func (o *McpPackageUpload) GetChecksumSha512() string` + +GetChecksumSha512 returns the ChecksumSha512 field if non-nil, zero value otherwise. + +### GetChecksumSha512Ok + +`func (o *McpPackageUpload) GetChecksumSha512Ok() (*string, bool)` + +GetChecksumSha512Ok returns a tuple with the ChecksumSha512 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChecksumSha512 + +`func (o *McpPackageUpload) SetChecksumSha512(v string)` + +SetChecksumSha512 sets ChecksumSha512 field to given value. + +### HasChecksumSha512 + +`func (o *McpPackageUpload) HasChecksumSha512() bool` + +HasChecksumSha512 returns a boolean if a field has been set. + +### GetDependenciesChecksumMd5 + +`func (o *McpPackageUpload) GetDependenciesChecksumMd5() string` + +GetDependenciesChecksumMd5 returns the DependenciesChecksumMd5 field if non-nil, zero value otherwise. + +### GetDependenciesChecksumMd5Ok + +`func (o *McpPackageUpload) GetDependenciesChecksumMd5Ok() (*string, bool)` + +GetDependenciesChecksumMd5Ok returns a tuple with the DependenciesChecksumMd5 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDependenciesChecksumMd5 + +`func (o *McpPackageUpload) SetDependenciesChecksumMd5(v string)` + +SetDependenciesChecksumMd5 sets DependenciesChecksumMd5 field to given value. + +### HasDependenciesChecksumMd5 + +`func (o *McpPackageUpload) HasDependenciesChecksumMd5() bool` + +HasDependenciesChecksumMd5 returns a boolean if a field has been set. + +### SetDependenciesChecksumMd5Nil + +`func (o *McpPackageUpload) SetDependenciesChecksumMd5Nil(b bool)` + + SetDependenciesChecksumMd5Nil sets the value for DependenciesChecksumMd5 to be an explicit nil + +### UnsetDependenciesChecksumMd5 +`func (o *McpPackageUpload) UnsetDependenciesChecksumMd5()` + +UnsetDependenciesChecksumMd5 ensures that no value is present for DependenciesChecksumMd5, not even an explicit nil +### GetDependenciesUrl + +`func (o *McpPackageUpload) GetDependenciesUrl() string` + +GetDependenciesUrl returns the DependenciesUrl field if non-nil, zero value otherwise. + +### GetDependenciesUrlOk + +`func (o *McpPackageUpload) GetDependenciesUrlOk() (*string, bool)` + +GetDependenciesUrlOk returns a tuple with the DependenciesUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDependenciesUrl + +`func (o *McpPackageUpload) SetDependenciesUrl(v string)` + +SetDependenciesUrl sets DependenciesUrl field to given value. + +### HasDependenciesUrl + +`func (o *McpPackageUpload) HasDependenciesUrl() bool` + +HasDependenciesUrl returns a boolean if a field has been set. + +### GetDescription + +`func (o *McpPackageUpload) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *McpPackageUpload) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *McpPackageUpload) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *McpPackageUpload) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### SetDescriptionNil + +`func (o *McpPackageUpload) SetDescriptionNil(b bool)` + + SetDescriptionNil sets the value for Description to be an explicit nil + +### UnsetDescription +`func (o *McpPackageUpload) UnsetDescription()` + +UnsetDescription ensures that no value is present for Description, not even an explicit nil +### GetDisplayName + +`func (o *McpPackageUpload) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *McpPackageUpload) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *McpPackageUpload) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *McpPackageUpload) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetDistro + +`func (o *McpPackageUpload) GetDistro() Distribution` + +GetDistro returns the Distro field if non-nil, zero value otherwise. + +### GetDistroOk + +`func (o *McpPackageUpload) GetDistroOk() (*Distribution, bool)` + +GetDistroOk returns a tuple with the Distro field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDistro + +`func (o *McpPackageUpload) SetDistro(v Distribution)` + +SetDistro sets Distro field to given value. + +### HasDistro + +`func (o *McpPackageUpload) HasDistro() bool` + +HasDistro returns a boolean if a field has been set. + +### SetDistroNil + +`func (o *McpPackageUpload) SetDistroNil(b bool)` + + SetDistroNil sets the value for Distro to be an explicit nil + +### UnsetDistro +`func (o *McpPackageUpload) UnsetDistro()` + +UnsetDistro ensures that no value is present for Distro, not even an explicit nil +### GetDistroVersion + +`func (o *McpPackageUpload) GetDistroVersion() DistributionVersion` + +GetDistroVersion returns the DistroVersion field if non-nil, zero value otherwise. + +### GetDistroVersionOk + +`func (o *McpPackageUpload) GetDistroVersionOk() (*DistributionVersion, bool)` + +GetDistroVersionOk returns a tuple with the DistroVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDistroVersion + +`func (o *McpPackageUpload) SetDistroVersion(v DistributionVersion)` + +SetDistroVersion sets DistroVersion field to given value. + +### HasDistroVersion + +`func (o *McpPackageUpload) HasDistroVersion() bool` + +HasDistroVersion returns a boolean if a field has been set. + +### GetDownloads + +`func (o *McpPackageUpload) GetDownloads() int64` + +GetDownloads returns the Downloads field if non-nil, zero value otherwise. + +### GetDownloadsOk + +`func (o *McpPackageUpload) GetDownloadsOk() (*int64, bool)` + +GetDownloadsOk returns a tuple with the Downloads field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDownloads + +`func (o *McpPackageUpload) SetDownloads(v int64)` + +SetDownloads sets Downloads field to given value. + +### HasDownloads + +`func (o *McpPackageUpload) HasDownloads() bool` + +HasDownloads returns a boolean if a field has been set. + +### GetEpoch + +`func (o *McpPackageUpload) GetEpoch() int64` + +GetEpoch returns the Epoch field if non-nil, zero value otherwise. + +### GetEpochOk + +`func (o *McpPackageUpload) GetEpochOk() (*int64, bool)` + +GetEpochOk returns a tuple with the Epoch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEpoch + +`func (o *McpPackageUpload) SetEpoch(v int64)` + +SetEpoch sets Epoch field to given value. + +### HasEpoch + +`func (o *McpPackageUpload) HasEpoch() bool` + +HasEpoch returns a boolean if a field has been set. + +### SetEpochNil + +`func (o *McpPackageUpload) SetEpochNil(b bool)` + + SetEpochNil sets the value for Epoch to be an explicit nil + +### UnsetEpoch +`func (o *McpPackageUpload) UnsetEpoch()` + +UnsetEpoch ensures that no value is present for Epoch, not even an explicit nil +### GetExtension + +`func (o *McpPackageUpload) GetExtension() string` + +GetExtension returns the Extension field if non-nil, zero value otherwise. + +### GetExtensionOk + +`func (o *McpPackageUpload) GetExtensionOk() (*string, bool)` + +GetExtensionOk returns a tuple with the Extension field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExtension + +`func (o *McpPackageUpload) SetExtension(v string)` + +SetExtension sets Extension field to given value. + +### HasExtension + +`func (o *McpPackageUpload) HasExtension() bool` + +HasExtension returns a boolean if a field has been set. + +### GetFilename + +`func (o *McpPackageUpload) GetFilename() string` + +GetFilename returns the Filename field if non-nil, zero value otherwise. + +### GetFilenameOk + +`func (o *McpPackageUpload) GetFilenameOk() (*string, bool)` + +GetFilenameOk returns a tuple with the Filename field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFilename + +`func (o *McpPackageUpload) SetFilename(v string)` + +SetFilename sets Filename field to given value. + +### HasFilename + +`func (o *McpPackageUpload) HasFilename() bool` + +HasFilename returns a boolean if a field has been set. + +### GetFiles + +`func (o *McpPackageUpload) GetFiles() []PackageFile` + +GetFiles returns the Files field if non-nil, zero value otherwise. + +### GetFilesOk + +`func (o *McpPackageUpload) GetFilesOk() (*[]PackageFile, bool)` + +GetFilesOk returns a tuple with the Files field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFiles + +`func (o *McpPackageUpload) SetFiles(v []PackageFile)` + +SetFiles sets Files field to given value. + +### HasFiles + +`func (o *McpPackageUpload) HasFiles() bool` + +HasFiles returns a boolean if a field has been set. + +### GetFormat + +`func (o *McpPackageUpload) GetFormat() string` + +GetFormat returns the Format field if non-nil, zero value otherwise. + +### GetFormatOk + +`func (o *McpPackageUpload) GetFormatOk() (*string, bool)` + +GetFormatOk returns a tuple with the Format field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFormat + +`func (o *McpPackageUpload) SetFormat(v string)` + +SetFormat sets Format field to given value. + +### HasFormat + +`func (o *McpPackageUpload) HasFormat() bool` + +HasFormat returns a boolean if a field has been set. + +### GetFormatUrl + +`func (o *McpPackageUpload) GetFormatUrl() string` + +GetFormatUrl returns the FormatUrl field if non-nil, zero value otherwise. + +### GetFormatUrlOk + +`func (o *McpPackageUpload) GetFormatUrlOk() (*string, bool)` + +GetFormatUrlOk returns a tuple with the FormatUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFormatUrl + +`func (o *McpPackageUpload) SetFormatUrl(v string)` + +SetFormatUrl sets FormatUrl field to given value. + +### HasFormatUrl + +`func (o *McpPackageUpload) HasFormatUrl() bool` + +HasFormatUrl returns a boolean if a field has been set. + +### GetFreeableStorage + +`func (o *McpPackageUpload) GetFreeableStorage() int64` + +GetFreeableStorage returns the FreeableStorage field if non-nil, zero value otherwise. + +### GetFreeableStorageOk + +`func (o *McpPackageUpload) GetFreeableStorageOk() (*int64, bool)` + +GetFreeableStorageOk returns a tuple with the FreeableStorage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFreeableStorage + +`func (o *McpPackageUpload) SetFreeableStorage(v int64)` + +SetFreeableStorage sets FreeableStorage field to given value. + +### HasFreeableStorage + +`func (o *McpPackageUpload) HasFreeableStorage() bool` + +HasFreeableStorage returns a boolean if a field has been set. + +### GetFullyQualifiedName + +`func (o *McpPackageUpload) GetFullyQualifiedName() string` + +GetFullyQualifiedName returns the FullyQualifiedName field if non-nil, zero value otherwise. + +### GetFullyQualifiedNameOk + +`func (o *McpPackageUpload) GetFullyQualifiedNameOk() (*string, bool)` + +GetFullyQualifiedNameOk returns a tuple with the FullyQualifiedName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFullyQualifiedName + +`func (o *McpPackageUpload) SetFullyQualifiedName(v string)` + +SetFullyQualifiedName sets FullyQualifiedName field to given value. + +### HasFullyQualifiedName + +`func (o *McpPackageUpload) HasFullyQualifiedName() bool` + +HasFullyQualifiedName returns a boolean if a field has been set. + +### SetFullyQualifiedNameNil + +`func (o *McpPackageUpload) SetFullyQualifiedNameNil(b bool)` + + SetFullyQualifiedNameNil sets the value for FullyQualifiedName to be an explicit nil + +### UnsetFullyQualifiedName +`func (o *McpPackageUpload) UnsetFullyQualifiedName()` + +UnsetFullyQualifiedName ensures that no value is present for FullyQualifiedName, not even an explicit nil +### GetIdentifierPerm + +`func (o *McpPackageUpload) GetIdentifierPerm() string` + +GetIdentifierPerm returns the IdentifierPerm field if non-nil, zero value otherwise. + +### GetIdentifierPermOk + +`func (o *McpPackageUpload) GetIdentifierPermOk() (*string, bool)` + +GetIdentifierPermOk returns a tuple with the IdentifierPerm field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIdentifierPerm + +`func (o *McpPackageUpload) SetIdentifierPerm(v string)` + +SetIdentifierPerm sets IdentifierPerm field to given value. + +### HasIdentifierPerm + +`func (o *McpPackageUpload) HasIdentifierPerm() bool` + +HasIdentifierPerm returns a boolean if a field has been set. + +### GetIdentifiers + +`func (o *McpPackageUpload) GetIdentifiers() map[string]string` + +GetIdentifiers returns the Identifiers field if non-nil, zero value otherwise. + +### GetIdentifiersOk + +`func (o *McpPackageUpload) GetIdentifiersOk() (*map[string]string, bool)` + +GetIdentifiersOk returns a tuple with the Identifiers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIdentifiers + +`func (o *McpPackageUpload) SetIdentifiers(v map[string]string)` + +SetIdentifiers sets Identifiers field to given value. + +### HasIdentifiers + +`func (o *McpPackageUpload) HasIdentifiers() bool` + +HasIdentifiers returns a boolean if a field has been set. + +### GetIndexed + +`func (o *McpPackageUpload) GetIndexed() bool` + +GetIndexed returns the Indexed field if non-nil, zero value otherwise. + +### GetIndexedOk + +`func (o *McpPackageUpload) GetIndexedOk() (*bool, bool)` + +GetIndexedOk returns a tuple with the Indexed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIndexed + +`func (o *McpPackageUpload) SetIndexed(v bool)` + +SetIndexed sets Indexed field to given value. + +### HasIndexed + +`func (o *McpPackageUpload) HasIndexed() bool` + +HasIndexed returns a boolean if a field has been set. + +### GetIsCancellable + +`func (o *McpPackageUpload) GetIsCancellable() bool` + +GetIsCancellable returns the IsCancellable field if non-nil, zero value otherwise. + +### GetIsCancellableOk + +`func (o *McpPackageUpload) GetIsCancellableOk() (*bool, bool)` + +GetIsCancellableOk returns a tuple with the IsCancellable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsCancellable + +`func (o *McpPackageUpload) SetIsCancellable(v bool)` + +SetIsCancellable sets IsCancellable field to given value. + +### HasIsCancellable + +`func (o *McpPackageUpload) HasIsCancellable() bool` + +HasIsCancellable returns a boolean if a field has been set. + +### GetIsCopyable + +`func (o *McpPackageUpload) GetIsCopyable() bool` + +GetIsCopyable returns the IsCopyable field if non-nil, zero value otherwise. + +### GetIsCopyableOk + +`func (o *McpPackageUpload) GetIsCopyableOk() (*bool, bool)` + +GetIsCopyableOk returns a tuple with the IsCopyable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsCopyable + +`func (o *McpPackageUpload) SetIsCopyable(v bool)` + +SetIsCopyable sets IsCopyable field to given value. + +### HasIsCopyable + +`func (o *McpPackageUpload) HasIsCopyable() bool` + +HasIsCopyable returns a boolean if a field has been set. + +### GetIsDeleteable + +`func (o *McpPackageUpload) GetIsDeleteable() bool` + +GetIsDeleteable returns the IsDeleteable field if non-nil, zero value otherwise. + +### GetIsDeleteableOk + +`func (o *McpPackageUpload) GetIsDeleteableOk() (*bool, bool)` + +GetIsDeleteableOk returns a tuple with the IsDeleteable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsDeleteable + +`func (o *McpPackageUpload) SetIsDeleteable(v bool)` + +SetIsDeleteable sets IsDeleteable field to given value. + +### HasIsDeleteable + +`func (o *McpPackageUpload) HasIsDeleteable() bool` + +HasIsDeleteable returns a boolean if a field has been set. + +### GetIsDownloadable + +`func (o *McpPackageUpload) GetIsDownloadable() bool` + +GetIsDownloadable returns the IsDownloadable field if non-nil, zero value otherwise. + +### GetIsDownloadableOk + +`func (o *McpPackageUpload) GetIsDownloadableOk() (*bool, bool)` + +GetIsDownloadableOk returns a tuple with the IsDownloadable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsDownloadable + +`func (o *McpPackageUpload) SetIsDownloadable(v bool)` + +SetIsDownloadable sets IsDownloadable field to given value. + +### HasIsDownloadable + +`func (o *McpPackageUpload) HasIsDownloadable() bool` + +HasIsDownloadable returns a boolean if a field has been set. + +### GetIsMoveable + +`func (o *McpPackageUpload) GetIsMoveable() bool` + +GetIsMoveable returns the IsMoveable field if non-nil, zero value otherwise. + +### GetIsMoveableOk + +`func (o *McpPackageUpload) GetIsMoveableOk() (*bool, bool)` + +GetIsMoveableOk returns a tuple with the IsMoveable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMoveable + +`func (o *McpPackageUpload) SetIsMoveable(v bool)` + +SetIsMoveable sets IsMoveable field to given value. + +### HasIsMoveable + +`func (o *McpPackageUpload) HasIsMoveable() bool` + +HasIsMoveable returns a boolean if a field has been set. + +### GetIsQuarantinable + +`func (o *McpPackageUpload) GetIsQuarantinable() bool` + +GetIsQuarantinable returns the IsQuarantinable field if non-nil, zero value otherwise. + +### GetIsQuarantinableOk + +`func (o *McpPackageUpload) GetIsQuarantinableOk() (*bool, bool)` + +GetIsQuarantinableOk returns a tuple with the IsQuarantinable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsQuarantinable + +`func (o *McpPackageUpload) SetIsQuarantinable(v bool)` + +SetIsQuarantinable sets IsQuarantinable field to given value. + +### HasIsQuarantinable + +`func (o *McpPackageUpload) HasIsQuarantinable() bool` + +HasIsQuarantinable returns a boolean if a field has been set. + +### GetIsQuarantined + +`func (o *McpPackageUpload) GetIsQuarantined() bool` + +GetIsQuarantined returns the IsQuarantined field if non-nil, zero value otherwise. + +### GetIsQuarantinedOk + +`func (o *McpPackageUpload) GetIsQuarantinedOk() (*bool, bool)` + +GetIsQuarantinedOk returns a tuple with the IsQuarantined field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsQuarantined + +`func (o *McpPackageUpload) SetIsQuarantined(v bool)` + +SetIsQuarantined sets IsQuarantined field to given value. + +### HasIsQuarantined + +`func (o *McpPackageUpload) HasIsQuarantined() bool` + +HasIsQuarantined returns a boolean if a field has been set. + +### GetIsResyncable + +`func (o *McpPackageUpload) GetIsResyncable() bool` + +GetIsResyncable returns the IsResyncable field if non-nil, zero value otherwise. + +### GetIsResyncableOk + +`func (o *McpPackageUpload) GetIsResyncableOk() (*bool, bool)` + +GetIsResyncableOk returns a tuple with the IsResyncable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsResyncable + +`func (o *McpPackageUpload) SetIsResyncable(v bool)` + +SetIsResyncable sets IsResyncable field to given value. + +### HasIsResyncable + +`func (o *McpPackageUpload) HasIsResyncable() bool` + +HasIsResyncable returns a boolean if a field has been set. + +### GetIsSecurityScannable + +`func (o *McpPackageUpload) GetIsSecurityScannable() bool` + +GetIsSecurityScannable returns the IsSecurityScannable field if non-nil, zero value otherwise. + +### GetIsSecurityScannableOk + +`func (o *McpPackageUpload) GetIsSecurityScannableOk() (*bool, bool)` + +GetIsSecurityScannableOk returns a tuple with the IsSecurityScannable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsSecurityScannable + +`func (o *McpPackageUpload) SetIsSecurityScannable(v bool)` + +SetIsSecurityScannable sets IsSecurityScannable field to given value. + +### HasIsSecurityScannable + +`func (o *McpPackageUpload) HasIsSecurityScannable() bool` + +HasIsSecurityScannable returns a boolean if a field has been set. + +### GetIsSyncAwaiting + +`func (o *McpPackageUpload) GetIsSyncAwaiting() bool` + +GetIsSyncAwaiting returns the IsSyncAwaiting field if non-nil, zero value otherwise. + +### GetIsSyncAwaitingOk + +`func (o *McpPackageUpload) GetIsSyncAwaitingOk() (*bool, bool)` + +GetIsSyncAwaitingOk returns a tuple with the IsSyncAwaiting field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsSyncAwaiting + +`func (o *McpPackageUpload) SetIsSyncAwaiting(v bool)` + +SetIsSyncAwaiting sets IsSyncAwaiting field to given value. + +### HasIsSyncAwaiting + +`func (o *McpPackageUpload) HasIsSyncAwaiting() bool` + +HasIsSyncAwaiting returns a boolean if a field has been set. + +### GetIsSyncCompleted + +`func (o *McpPackageUpload) GetIsSyncCompleted() bool` + +GetIsSyncCompleted returns the IsSyncCompleted field if non-nil, zero value otherwise. + +### GetIsSyncCompletedOk + +`func (o *McpPackageUpload) GetIsSyncCompletedOk() (*bool, bool)` + +GetIsSyncCompletedOk returns a tuple with the IsSyncCompleted field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsSyncCompleted + +`func (o *McpPackageUpload) SetIsSyncCompleted(v bool)` + +SetIsSyncCompleted sets IsSyncCompleted field to given value. + +### HasIsSyncCompleted + +`func (o *McpPackageUpload) HasIsSyncCompleted() bool` + +HasIsSyncCompleted returns a boolean if a field has been set. + +### GetIsSyncFailed + +`func (o *McpPackageUpload) GetIsSyncFailed() bool` + +GetIsSyncFailed returns the IsSyncFailed field if non-nil, zero value otherwise. + +### GetIsSyncFailedOk + +`func (o *McpPackageUpload) GetIsSyncFailedOk() (*bool, bool)` + +GetIsSyncFailedOk returns a tuple with the IsSyncFailed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsSyncFailed + +`func (o *McpPackageUpload) SetIsSyncFailed(v bool)` + +SetIsSyncFailed sets IsSyncFailed field to given value. + +### HasIsSyncFailed + +`func (o *McpPackageUpload) HasIsSyncFailed() bool` + +HasIsSyncFailed returns a boolean if a field has been set. + +### GetIsSyncInFlight + +`func (o *McpPackageUpload) GetIsSyncInFlight() bool` + +GetIsSyncInFlight returns the IsSyncInFlight field if non-nil, zero value otherwise. + +### GetIsSyncInFlightOk + +`func (o *McpPackageUpload) GetIsSyncInFlightOk() (*bool, bool)` + +GetIsSyncInFlightOk returns a tuple with the IsSyncInFlight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsSyncInFlight + +`func (o *McpPackageUpload) SetIsSyncInFlight(v bool)` + +SetIsSyncInFlight sets IsSyncInFlight field to given value. + +### HasIsSyncInFlight + +`func (o *McpPackageUpload) HasIsSyncInFlight() bool` + +HasIsSyncInFlight returns a boolean if a field has been set. + +### GetIsSyncInProgress + +`func (o *McpPackageUpload) GetIsSyncInProgress() bool` + +GetIsSyncInProgress returns the IsSyncInProgress field if non-nil, zero value otherwise. + +### GetIsSyncInProgressOk + +`func (o *McpPackageUpload) GetIsSyncInProgressOk() (*bool, bool)` + +GetIsSyncInProgressOk returns a tuple with the IsSyncInProgress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsSyncInProgress + +`func (o *McpPackageUpload) SetIsSyncInProgress(v bool)` + +SetIsSyncInProgress sets IsSyncInProgress field to given value. + +### HasIsSyncInProgress + +`func (o *McpPackageUpload) HasIsSyncInProgress() bool` + +HasIsSyncInProgress returns a boolean if a field has been set. + +### GetLicense + +`func (o *McpPackageUpload) GetLicense() string` + +GetLicense returns the License field if non-nil, zero value otherwise. + +### GetLicenseOk + +`func (o *McpPackageUpload) GetLicenseOk() (*string, bool)` + +GetLicenseOk returns a tuple with the License field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLicense + +`func (o *McpPackageUpload) SetLicense(v string)` + +SetLicense sets License field to given value. + +### HasLicense + +`func (o *McpPackageUpload) HasLicense() bool` + +HasLicense returns a boolean if a field has been set. + +### SetLicenseNil + +`func (o *McpPackageUpload) SetLicenseNil(b bool)` + + SetLicenseNil sets the value for License to be an explicit nil + +### UnsetLicense +`func (o *McpPackageUpload) UnsetLicense()` + +UnsetLicense ensures that no value is present for License, not even an explicit nil +### GetName + +`func (o *McpPackageUpload) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *McpPackageUpload) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *McpPackageUpload) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *McpPackageUpload) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *McpPackageUpload) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *McpPackageUpload) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetNamespace + +`func (o *McpPackageUpload) GetNamespace() string` + +GetNamespace returns the Namespace field if non-nil, zero value otherwise. + +### GetNamespaceOk + +`func (o *McpPackageUpload) GetNamespaceOk() (*string, bool)` + +GetNamespaceOk returns a tuple with the Namespace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNamespace + +`func (o *McpPackageUpload) SetNamespace(v string)` + +SetNamespace sets Namespace field to given value. + +### HasNamespace + +`func (o *McpPackageUpload) HasNamespace() bool` + +HasNamespace returns a boolean if a field has been set. + +### GetNamespaceUrl + +`func (o *McpPackageUpload) GetNamespaceUrl() string` + +GetNamespaceUrl returns the NamespaceUrl field if non-nil, zero value otherwise. + +### GetNamespaceUrlOk + +`func (o *McpPackageUpload) GetNamespaceUrlOk() (*string, bool)` + +GetNamespaceUrlOk returns a tuple with the NamespaceUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNamespaceUrl + +`func (o *McpPackageUpload) SetNamespaceUrl(v string)` + +SetNamespaceUrl sets NamespaceUrl field to given value. + +### HasNamespaceUrl + +`func (o *McpPackageUpload) HasNamespaceUrl() bool` + +HasNamespaceUrl returns a boolean if a field has been set. + +### GetNumFiles + +`func (o *McpPackageUpload) GetNumFiles() int64` + +GetNumFiles returns the NumFiles field if non-nil, zero value otherwise. + +### GetNumFilesOk + +`func (o *McpPackageUpload) GetNumFilesOk() (*int64, bool)` + +GetNumFilesOk returns a tuple with the NumFiles field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNumFiles + +`func (o *McpPackageUpload) SetNumFiles(v int64)` + +SetNumFiles sets NumFiles field to given value. + +### HasNumFiles + +`func (o *McpPackageUpload) HasNumFiles() bool` + +HasNumFiles returns a boolean if a field has been set. + +### GetOriginRepository + +`func (o *McpPackageUpload) GetOriginRepository() string` + +GetOriginRepository returns the OriginRepository field if non-nil, zero value otherwise. + +### GetOriginRepositoryOk + +`func (o *McpPackageUpload) GetOriginRepositoryOk() (*string, bool)` + +GetOriginRepositoryOk returns a tuple with the OriginRepository field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginRepository + +`func (o *McpPackageUpload) SetOriginRepository(v string)` + +SetOriginRepository sets OriginRepository field to given value. + +### HasOriginRepository + +`func (o *McpPackageUpload) HasOriginRepository() bool` + +HasOriginRepository returns a boolean if a field has been set. + +### GetOriginRepositoryUrl + +`func (o *McpPackageUpload) GetOriginRepositoryUrl() string` + +GetOriginRepositoryUrl returns the OriginRepositoryUrl field if non-nil, zero value otherwise. + +### GetOriginRepositoryUrlOk + +`func (o *McpPackageUpload) GetOriginRepositoryUrlOk() (*string, bool)` + +GetOriginRepositoryUrlOk returns a tuple with the OriginRepositoryUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginRepositoryUrl + +`func (o *McpPackageUpload) SetOriginRepositoryUrl(v string)` + +SetOriginRepositoryUrl sets OriginRepositoryUrl field to given value. + +### HasOriginRepositoryUrl + +`func (o *McpPackageUpload) HasOriginRepositoryUrl() bool` + +HasOriginRepositoryUrl returns a boolean if a field has been set. + +### GetPackageType + +`func (o *McpPackageUpload) GetPackageType() int64` + +GetPackageType returns the PackageType field if non-nil, zero value otherwise. + +### GetPackageTypeOk + +`func (o *McpPackageUpload) GetPackageTypeOk() (*int64, bool)` + +GetPackageTypeOk returns a tuple with the PackageType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPackageType + +`func (o *McpPackageUpload) SetPackageType(v int64)` + +SetPackageType sets PackageType field to given value. + +### HasPackageType + +`func (o *McpPackageUpload) HasPackageType() bool` + +HasPackageType returns a boolean if a field has been set. + +### GetPolicyViolated + +`func (o *McpPackageUpload) GetPolicyViolated() bool` + +GetPolicyViolated returns the PolicyViolated field if non-nil, zero value otherwise. + +### GetPolicyViolatedOk + +`func (o *McpPackageUpload) GetPolicyViolatedOk() (*bool, bool)` + +GetPolicyViolatedOk returns a tuple with the PolicyViolated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPolicyViolated + +`func (o *McpPackageUpload) SetPolicyViolated(v bool)` + +SetPolicyViolated sets PolicyViolated field to given value. + +### HasPolicyViolated + +`func (o *McpPackageUpload) HasPolicyViolated() bool` + +HasPolicyViolated returns a boolean if a field has been set. + +### GetRawLicense + +`func (o *McpPackageUpload) GetRawLicense() string` + +GetRawLicense returns the RawLicense field if non-nil, zero value otherwise. + +### GetRawLicenseOk + +`func (o *McpPackageUpload) GetRawLicenseOk() (*string, bool)` + +GetRawLicenseOk returns a tuple with the RawLicense field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRawLicense + +`func (o *McpPackageUpload) SetRawLicense(v string)` + +SetRawLicense sets RawLicense field to given value. + +### HasRawLicense + +`func (o *McpPackageUpload) HasRawLicense() bool` + +HasRawLicense returns a boolean if a field has been set. + +### SetRawLicenseNil + +`func (o *McpPackageUpload) SetRawLicenseNil(b bool)` + + SetRawLicenseNil sets the value for RawLicense to be an explicit nil + +### UnsetRawLicense +`func (o *McpPackageUpload) UnsetRawLicense()` + +UnsetRawLicense ensures that no value is present for RawLicense, not even an explicit nil +### GetRelease + +`func (o *McpPackageUpload) GetRelease() string` + +GetRelease returns the Release field if non-nil, zero value otherwise. + +### GetReleaseOk + +`func (o *McpPackageUpload) GetReleaseOk() (*string, bool)` + +GetReleaseOk returns a tuple with the Release field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelease + +`func (o *McpPackageUpload) SetRelease(v string)` + +SetRelease sets Release field to given value. + +### HasRelease + +`func (o *McpPackageUpload) HasRelease() bool` + +HasRelease returns a boolean if a field has been set. + +### SetReleaseNil + +`func (o *McpPackageUpload) SetReleaseNil(b bool)` + + SetReleaseNil sets the value for Release to be an explicit nil + +### UnsetRelease +`func (o *McpPackageUpload) UnsetRelease()` + +UnsetRelease ensures that no value is present for Release, not even an explicit nil +### GetRepository + +`func (o *McpPackageUpload) GetRepository() string` + +GetRepository returns the Repository field if non-nil, zero value otherwise. + +### GetRepositoryOk + +`func (o *McpPackageUpload) GetRepositoryOk() (*string, bool)` + +GetRepositoryOk returns a tuple with the Repository field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRepository + +`func (o *McpPackageUpload) SetRepository(v string)` + +SetRepository sets Repository field to given value. + +### HasRepository + +`func (o *McpPackageUpload) HasRepository() bool` + +HasRepository returns a boolean if a field has been set. + +### GetRepositoryUrl + +`func (o *McpPackageUpload) GetRepositoryUrl() string` + +GetRepositoryUrl returns the RepositoryUrl field if non-nil, zero value otherwise. + +### GetRepositoryUrlOk + +`func (o *McpPackageUpload) GetRepositoryUrlOk() (*string, bool)` + +GetRepositoryUrlOk returns a tuple with the RepositoryUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRepositoryUrl + +`func (o *McpPackageUpload) SetRepositoryUrl(v string)` + +SetRepositoryUrl sets RepositoryUrl field to given value. + +### HasRepositoryUrl + +`func (o *McpPackageUpload) HasRepositoryUrl() bool` + +HasRepositoryUrl returns a boolean if a field has been set. + +### GetSecurityScanCompletedAt + +`func (o *McpPackageUpload) GetSecurityScanCompletedAt() time.Time` + +GetSecurityScanCompletedAt returns the SecurityScanCompletedAt field if non-nil, zero value otherwise. + +### GetSecurityScanCompletedAtOk + +`func (o *McpPackageUpload) GetSecurityScanCompletedAtOk() (*time.Time, bool)` + +GetSecurityScanCompletedAtOk returns a tuple with the SecurityScanCompletedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecurityScanCompletedAt + +`func (o *McpPackageUpload) SetSecurityScanCompletedAt(v time.Time)` + +SetSecurityScanCompletedAt sets SecurityScanCompletedAt field to given value. + +### HasSecurityScanCompletedAt + +`func (o *McpPackageUpload) HasSecurityScanCompletedAt() bool` + +HasSecurityScanCompletedAt returns a boolean if a field has been set. + +### SetSecurityScanCompletedAtNil + +`func (o *McpPackageUpload) SetSecurityScanCompletedAtNil(b bool)` + + SetSecurityScanCompletedAtNil sets the value for SecurityScanCompletedAt to be an explicit nil + +### UnsetSecurityScanCompletedAt +`func (o *McpPackageUpload) UnsetSecurityScanCompletedAt()` + +UnsetSecurityScanCompletedAt ensures that no value is present for SecurityScanCompletedAt, not even an explicit nil +### GetSecurityScanStartedAt + +`func (o *McpPackageUpload) GetSecurityScanStartedAt() time.Time` + +GetSecurityScanStartedAt returns the SecurityScanStartedAt field if non-nil, zero value otherwise. + +### GetSecurityScanStartedAtOk + +`func (o *McpPackageUpload) GetSecurityScanStartedAtOk() (*time.Time, bool)` + +GetSecurityScanStartedAtOk returns a tuple with the SecurityScanStartedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecurityScanStartedAt + +`func (o *McpPackageUpload) SetSecurityScanStartedAt(v time.Time)` + +SetSecurityScanStartedAt sets SecurityScanStartedAt field to given value. + +### HasSecurityScanStartedAt + +`func (o *McpPackageUpload) HasSecurityScanStartedAt() bool` + +HasSecurityScanStartedAt returns a boolean if a field has been set. + +### SetSecurityScanStartedAtNil + +`func (o *McpPackageUpload) SetSecurityScanStartedAtNil(b bool)` + + SetSecurityScanStartedAtNil sets the value for SecurityScanStartedAt to be an explicit nil + +### UnsetSecurityScanStartedAt +`func (o *McpPackageUpload) UnsetSecurityScanStartedAt()` + +UnsetSecurityScanStartedAt ensures that no value is present for SecurityScanStartedAt, not even an explicit nil +### GetSecurityScanStatus + +`func (o *McpPackageUpload) GetSecurityScanStatus() string` + +GetSecurityScanStatus returns the SecurityScanStatus field if non-nil, zero value otherwise. + +### GetSecurityScanStatusOk + +`func (o *McpPackageUpload) GetSecurityScanStatusOk() (*string, bool)` + +GetSecurityScanStatusOk returns a tuple with the SecurityScanStatus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecurityScanStatus + +`func (o *McpPackageUpload) SetSecurityScanStatus(v string)` + +SetSecurityScanStatus sets SecurityScanStatus field to given value. + +### HasSecurityScanStatus + +`func (o *McpPackageUpload) HasSecurityScanStatus() bool` + +HasSecurityScanStatus returns a boolean if a field has been set. + +### SetSecurityScanStatusNil + +`func (o *McpPackageUpload) SetSecurityScanStatusNil(b bool)` + + SetSecurityScanStatusNil sets the value for SecurityScanStatus to be an explicit nil + +### UnsetSecurityScanStatus +`func (o *McpPackageUpload) UnsetSecurityScanStatus()` + +UnsetSecurityScanStatus ensures that no value is present for SecurityScanStatus, not even an explicit nil +### GetSecurityScanStatusUpdatedAt + +`func (o *McpPackageUpload) GetSecurityScanStatusUpdatedAt() time.Time` + +GetSecurityScanStatusUpdatedAt returns the SecurityScanStatusUpdatedAt field if non-nil, zero value otherwise. + +### GetSecurityScanStatusUpdatedAtOk + +`func (o *McpPackageUpload) GetSecurityScanStatusUpdatedAtOk() (*time.Time, bool)` + +GetSecurityScanStatusUpdatedAtOk returns a tuple with the SecurityScanStatusUpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecurityScanStatusUpdatedAt + +`func (o *McpPackageUpload) SetSecurityScanStatusUpdatedAt(v time.Time)` + +SetSecurityScanStatusUpdatedAt sets SecurityScanStatusUpdatedAt field to given value. + +### HasSecurityScanStatusUpdatedAt + +`func (o *McpPackageUpload) HasSecurityScanStatusUpdatedAt() bool` + +HasSecurityScanStatusUpdatedAt returns a boolean if a field has been set. + +### SetSecurityScanStatusUpdatedAtNil + +`func (o *McpPackageUpload) SetSecurityScanStatusUpdatedAtNil(b bool)` + + SetSecurityScanStatusUpdatedAtNil sets the value for SecurityScanStatusUpdatedAt to be an explicit nil + +### UnsetSecurityScanStatusUpdatedAt +`func (o *McpPackageUpload) UnsetSecurityScanStatusUpdatedAt()` + +UnsetSecurityScanStatusUpdatedAt ensures that no value is present for SecurityScanStatusUpdatedAt, not even an explicit nil +### GetSelfHtmlUrl + +`func (o *McpPackageUpload) GetSelfHtmlUrl() string` + +GetSelfHtmlUrl returns the SelfHtmlUrl field if non-nil, zero value otherwise. + +### GetSelfHtmlUrlOk + +`func (o *McpPackageUpload) GetSelfHtmlUrlOk() (*string, bool)` + +GetSelfHtmlUrlOk returns a tuple with the SelfHtmlUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSelfHtmlUrl + +`func (o *McpPackageUpload) SetSelfHtmlUrl(v string)` + +SetSelfHtmlUrl sets SelfHtmlUrl field to given value. + +### HasSelfHtmlUrl + +`func (o *McpPackageUpload) HasSelfHtmlUrl() bool` + +HasSelfHtmlUrl returns a boolean if a field has been set. + +### GetSelfUrl + +`func (o *McpPackageUpload) GetSelfUrl() string` + +GetSelfUrl returns the SelfUrl field if non-nil, zero value otherwise. + +### GetSelfUrlOk + +`func (o *McpPackageUpload) GetSelfUrlOk() (*string, bool)` + +GetSelfUrlOk returns a tuple with the SelfUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSelfUrl + +`func (o *McpPackageUpload) SetSelfUrl(v string)` + +SetSelfUrl sets SelfUrl field to given value. + +### HasSelfUrl + +`func (o *McpPackageUpload) HasSelfUrl() bool` + +HasSelfUrl returns a boolean if a field has been set. + +### GetSelfWebappUrl + +`func (o *McpPackageUpload) GetSelfWebappUrl() string` + +GetSelfWebappUrl returns the SelfWebappUrl field if non-nil, zero value otherwise. + +### GetSelfWebappUrlOk + +`func (o *McpPackageUpload) GetSelfWebappUrlOk() (*string, bool)` + +GetSelfWebappUrlOk returns a tuple with the SelfWebappUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSelfWebappUrl + +`func (o *McpPackageUpload) SetSelfWebappUrl(v string)` + +SetSelfWebappUrl sets SelfWebappUrl field to given value. + +### HasSelfWebappUrl + +`func (o *McpPackageUpload) HasSelfWebappUrl() bool` + +HasSelfWebappUrl returns a boolean if a field has been set. + +### GetSignatureUrl + +`func (o *McpPackageUpload) GetSignatureUrl() string` + +GetSignatureUrl returns the SignatureUrl field if non-nil, zero value otherwise. + +### GetSignatureUrlOk + +`func (o *McpPackageUpload) GetSignatureUrlOk() (*string, bool)` + +GetSignatureUrlOk returns a tuple with the SignatureUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSignatureUrl + +`func (o *McpPackageUpload) SetSignatureUrl(v string)` + +SetSignatureUrl sets SignatureUrl field to given value. + +### HasSignatureUrl + +`func (o *McpPackageUpload) HasSignatureUrl() bool` + +HasSignatureUrl returns a boolean if a field has been set. + +### SetSignatureUrlNil + +`func (o *McpPackageUpload) SetSignatureUrlNil(b bool)` + + SetSignatureUrlNil sets the value for SignatureUrl to be an explicit nil + +### UnsetSignatureUrl +`func (o *McpPackageUpload) UnsetSignatureUrl()` + +UnsetSignatureUrl ensures that no value is present for SignatureUrl, not even an explicit nil +### GetSize + +`func (o *McpPackageUpload) GetSize() int64` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *McpPackageUpload) 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 *McpPackageUpload) SetSize(v int64)` + +SetSize sets Size field to given value. + +### HasSize + +`func (o *McpPackageUpload) HasSize() bool` + +HasSize returns a boolean if a field has been set. + +### GetSlug + +`func (o *McpPackageUpload) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *McpPackageUpload) 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 *McpPackageUpload) SetSlug(v string)` + +SetSlug sets Slug field to given value. + +### HasSlug + +`func (o *McpPackageUpload) HasSlug() bool` + +HasSlug returns a boolean if a field has been set. + +### GetSlugPerm + +`func (o *McpPackageUpload) GetSlugPerm() string` + +GetSlugPerm returns the SlugPerm field if non-nil, zero value otherwise. + +### GetSlugPermOk + +`func (o *McpPackageUpload) 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 *McpPackageUpload) SetSlugPerm(v string)` + +SetSlugPerm sets SlugPerm field to given value. + +### HasSlugPerm + +`func (o *McpPackageUpload) HasSlugPerm() bool` + +HasSlugPerm returns a boolean if a field has been set. + +### GetSpdxLicense + +`func (o *McpPackageUpload) GetSpdxLicense() string` + +GetSpdxLicense returns the SpdxLicense field if non-nil, zero value otherwise. + +### GetSpdxLicenseOk + +`func (o *McpPackageUpload) GetSpdxLicenseOk() (*string, bool)` + +GetSpdxLicenseOk returns a tuple with the SpdxLicense field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpdxLicense + +`func (o *McpPackageUpload) SetSpdxLicense(v string)` + +SetSpdxLicense sets SpdxLicense field to given value. + +### HasSpdxLicense + +`func (o *McpPackageUpload) HasSpdxLicense() bool` + +HasSpdxLicense returns a boolean if a field has been set. + +### SetSpdxLicenseNil + +`func (o *McpPackageUpload) SetSpdxLicenseNil(b bool)` + + SetSpdxLicenseNil sets the value for SpdxLicense to be an explicit nil + +### UnsetSpdxLicense +`func (o *McpPackageUpload) UnsetSpdxLicense()` + +UnsetSpdxLicense ensures that no value is present for SpdxLicense, not even an explicit nil +### GetStage + +`func (o *McpPackageUpload) GetStage() int64` + +GetStage returns the Stage field if non-nil, zero value otherwise. + +### GetStageOk + +`func (o *McpPackageUpload) GetStageOk() (*int64, bool)` + +GetStageOk returns a tuple with the Stage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStage + +`func (o *McpPackageUpload) SetStage(v int64)` + +SetStage sets Stage field to given value. + +### HasStage + +`func (o *McpPackageUpload) HasStage() bool` + +HasStage returns a boolean if a field has been set. + +### GetStageStr + +`func (o *McpPackageUpload) GetStageStr() string` + +GetStageStr returns the StageStr field if non-nil, zero value otherwise. + +### GetStageStrOk + +`func (o *McpPackageUpload) GetStageStrOk() (*string, bool)` + +GetStageStrOk returns a tuple with the StageStr field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStageStr + +`func (o *McpPackageUpload) SetStageStr(v string)` + +SetStageStr sets StageStr field to given value. + +### HasStageStr + +`func (o *McpPackageUpload) HasStageStr() bool` + +HasStageStr returns a boolean if a field has been set. + +### GetStageUpdatedAt + +`func (o *McpPackageUpload) GetStageUpdatedAt() time.Time` + +GetStageUpdatedAt returns the StageUpdatedAt field if non-nil, zero value otherwise. + +### GetStageUpdatedAtOk + +`func (o *McpPackageUpload) GetStageUpdatedAtOk() (*time.Time, bool)` + +GetStageUpdatedAtOk returns a tuple with the StageUpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStageUpdatedAt + +`func (o *McpPackageUpload) SetStageUpdatedAt(v time.Time)` + +SetStageUpdatedAt sets StageUpdatedAt field to given value. + +### HasStageUpdatedAt + +`func (o *McpPackageUpload) HasStageUpdatedAt() bool` + +HasStageUpdatedAt returns a boolean if a field has been set. + +### GetStatus + +`func (o *McpPackageUpload) GetStatus() int64` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *McpPackageUpload) GetStatusOk() (*int64, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *McpPackageUpload) SetStatus(v int64)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *McpPackageUpload) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetStatusReason + +`func (o *McpPackageUpload) GetStatusReason() string` + +GetStatusReason returns the StatusReason field if non-nil, zero value otherwise. + +### GetStatusReasonOk + +`func (o *McpPackageUpload) GetStatusReasonOk() (*string, bool)` + +GetStatusReasonOk returns a tuple with the StatusReason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatusReason + +`func (o *McpPackageUpload) SetStatusReason(v string)` + +SetStatusReason sets StatusReason field to given value. + +### HasStatusReason + +`func (o *McpPackageUpload) HasStatusReason() bool` + +HasStatusReason returns a boolean if a field has been set. + +### SetStatusReasonNil + +`func (o *McpPackageUpload) SetStatusReasonNil(b bool)` + + SetStatusReasonNil sets the value for StatusReason to be an explicit nil + +### UnsetStatusReason +`func (o *McpPackageUpload) UnsetStatusReason()` + +UnsetStatusReason ensures that no value is present for StatusReason, not even an explicit nil +### GetStatusStr + +`func (o *McpPackageUpload) GetStatusStr() string` + +GetStatusStr returns the StatusStr field if non-nil, zero value otherwise. + +### GetStatusStrOk + +`func (o *McpPackageUpload) GetStatusStrOk() (*string, bool)` + +GetStatusStrOk returns a tuple with the StatusStr field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatusStr + +`func (o *McpPackageUpload) SetStatusStr(v string)` + +SetStatusStr sets StatusStr field to given value. + +### HasStatusStr + +`func (o *McpPackageUpload) HasStatusStr() bool` + +HasStatusStr returns a boolean if a field has been set. + +### GetStatusUpdatedAt + +`func (o *McpPackageUpload) GetStatusUpdatedAt() time.Time` + +GetStatusUpdatedAt returns the StatusUpdatedAt field if non-nil, zero value otherwise. + +### GetStatusUpdatedAtOk + +`func (o *McpPackageUpload) GetStatusUpdatedAtOk() (*time.Time, bool)` + +GetStatusUpdatedAtOk returns a tuple with the StatusUpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatusUpdatedAt + +`func (o *McpPackageUpload) SetStatusUpdatedAt(v time.Time)` + +SetStatusUpdatedAt sets StatusUpdatedAt field to given value. + +### HasStatusUpdatedAt + +`func (o *McpPackageUpload) HasStatusUpdatedAt() bool` + +HasStatusUpdatedAt returns a boolean if a field has been set. + +### GetStatusUrl + +`func (o *McpPackageUpload) GetStatusUrl() string` + +GetStatusUrl returns the StatusUrl field if non-nil, zero value otherwise. + +### GetStatusUrlOk + +`func (o *McpPackageUpload) GetStatusUrlOk() (*string, bool)` + +GetStatusUrlOk returns a tuple with the StatusUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatusUrl + +`func (o *McpPackageUpload) SetStatusUrl(v string)` + +SetStatusUrl sets StatusUrl field to given value. + +### HasStatusUrl + +`func (o *McpPackageUpload) HasStatusUrl() bool` + +HasStatusUrl returns a boolean if a field has been set. + +### GetSubtype + +`func (o *McpPackageUpload) GetSubtype() string` + +GetSubtype returns the Subtype field if non-nil, zero value otherwise. + +### GetSubtypeOk + +`func (o *McpPackageUpload) GetSubtypeOk() (*string, bool)` + +GetSubtypeOk returns a tuple with the Subtype field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubtype + +`func (o *McpPackageUpload) SetSubtype(v string)` + +SetSubtype sets Subtype field to given value. + +### HasSubtype + +`func (o *McpPackageUpload) HasSubtype() bool` + +HasSubtype returns a boolean if a field has been set. + +### GetSummary + +`func (o *McpPackageUpload) GetSummary() string` + +GetSummary returns the Summary field if non-nil, zero value otherwise. + +### GetSummaryOk + +`func (o *McpPackageUpload) GetSummaryOk() (*string, bool)` + +GetSummaryOk returns a tuple with the Summary field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSummary + +`func (o *McpPackageUpload) SetSummary(v string)` + +SetSummary sets Summary field to given value. + +### HasSummary + +`func (o *McpPackageUpload) HasSummary() bool` + +HasSummary returns a boolean if a field has been set. + +### SetSummaryNil + +`func (o *McpPackageUpload) SetSummaryNil(b bool)` + + SetSummaryNil sets the value for Summary to be an explicit nil + +### UnsetSummary +`func (o *McpPackageUpload) UnsetSummary()` + +UnsetSummary ensures that no value is present for Summary, not even an explicit nil +### GetSyncFinishedAt + +`func (o *McpPackageUpload) GetSyncFinishedAt() time.Time` + +GetSyncFinishedAt returns the SyncFinishedAt field if non-nil, zero value otherwise. + +### GetSyncFinishedAtOk + +`func (o *McpPackageUpload) GetSyncFinishedAtOk() (*time.Time, bool)` + +GetSyncFinishedAtOk returns a tuple with the SyncFinishedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSyncFinishedAt + +`func (o *McpPackageUpload) SetSyncFinishedAt(v time.Time)` + +SetSyncFinishedAt sets SyncFinishedAt field to given value. + +### HasSyncFinishedAt + +`func (o *McpPackageUpload) HasSyncFinishedAt() bool` + +HasSyncFinishedAt returns a boolean if a field has been set. + +### SetSyncFinishedAtNil + +`func (o *McpPackageUpload) SetSyncFinishedAtNil(b bool)` + + SetSyncFinishedAtNil sets the value for SyncFinishedAt to be an explicit nil + +### UnsetSyncFinishedAt +`func (o *McpPackageUpload) UnsetSyncFinishedAt()` + +UnsetSyncFinishedAt ensures that no value is present for SyncFinishedAt, not even an explicit nil +### GetSyncProgress + +`func (o *McpPackageUpload) GetSyncProgress() int64` + +GetSyncProgress returns the SyncProgress field if non-nil, zero value otherwise. + +### GetSyncProgressOk + +`func (o *McpPackageUpload) GetSyncProgressOk() (*int64, bool)` + +GetSyncProgressOk returns a tuple with the SyncProgress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSyncProgress + +`func (o *McpPackageUpload) SetSyncProgress(v int64)` + +SetSyncProgress sets SyncProgress field to given value. + +### HasSyncProgress + +`func (o *McpPackageUpload) HasSyncProgress() bool` + +HasSyncProgress returns a boolean if a field has been set. + +### GetTagsAutomatic + +`func (o *McpPackageUpload) GetTagsAutomatic() map[string]interface{}` + +GetTagsAutomatic returns the TagsAutomatic field if non-nil, zero value otherwise. + +### GetTagsAutomaticOk + +`func (o *McpPackageUpload) GetTagsAutomaticOk() (*map[string]interface{}, bool)` + +GetTagsAutomaticOk returns a tuple with the TagsAutomatic field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTagsAutomatic + +`func (o *McpPackageUpload) SetTagsAutomatic(v map[string]interface{})` + +SetTagsAutomatic sets TagsAutomatic field to given value. + +### HasTagsAutomatic + +`func (o *McpPackageUpload) HasTagsAutomatic() bool` + +HasTagsAutomatic returns a boolean if a field has been set. + +### GetTagsImmutable + +`func (o *McpPackageUpload) GetTagsImmutable() map[string]interface{}` + +GetTagsImmutable returns the TagsImmutable field if non-nil, zero value otherwise. + +### GetTagsImmutableOk + +`func (o *McpPackageUpload) GetTagsImmutableOk() (*map[string]interface{}, bool)` + +GetTagsImmutableOk returns a tuple with the TagsImmutable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTagsImmutable + +`func (o *McpPackageUpload) SetTagsImmutable(v map[string]interface{})` + +SetTagsImmutable sets TagsImmutable field to given value. + +### HasTagsImmutable + +`func (o *McpPackageUpload) HasTagsImmutable() bool` + +HasTagsImmutable returns a boolean if a field has been set. + +### GetTypeDisplay + +`func (o *McpPackageUpload) GetTypeDisplay() string` + +GetTypeDisplay returns the TypeDisplay field if non-nil, zero value otherwise. + +### GetTypeDisplayOk + +`func (o *McpPackageUpload) GetTypeDisplayOk() (*string, bool)` + +GetTypeDisplayOk returns a tuple with the TypeDisplay field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTypeDisplay + +`func (o *McpPackageUpload) SetTypeDisplay(v string)` + +SetTypeDisplay sets TypeDisplay field to given value. + +### HasTypeDisplay + +`func (o *McpPackageUpload) HasTypeDisplay() bool` + +HasTypeDisplay returns a boolean if a field has been set. + +### GetUploadedAt + +`func (o *McpPackageUpload) GetUploadedAt() time.Time` + +GetUploadedAt returns the UploadedAt field if non-nil, zero value otherwise. + +### GetUploadedAtOk + +`func (o *McpPackageUpload) GetUploadedAtOk() (*time.Time, bool)` + +GetUploadedAtOk returns a tuple with the UploadedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUploadedAt + +`func (o *McpPackageUpload) SetUploadedAt(v time.Time)` + +SetUploadedAt sets UploadedAt field to given value. + +### HasUploadedAt + +`func (o *McpPackageUpload) HasUploadedAt() bool` + +HasUploadedAt returns a boolean if a field has been set. + +### GetUploader + +`func (o *McpPackageUpload) GetUploader() string` + +GetUploader returns the Uploader field if non-nil, zero value otherwise. + +### GetUploaderOk + +`func (o *McpPackageUpload) GetUploaderOk() (*string, bool)` + +GetUploaderOk returns a tuple with the Uploader field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUploader + +`func (o *McpPackageUpload) SetUploader(v string)` + +SetUploader sets Uploader field to given value. + +### HasUploader + +`func (o *McpPackageUpload) HasUploader() bool` + +HasUploader returns a boolean if a field has been set. + +### GetUploaderUrl + +`func (o *McpPackageUpload) GetUploaderUrl() string` + +GetUploaderUrl returns the UploaderUrl field if non-nil, zero value otherwise. + +### GetUploaderUrlOk + +`func (o *McpPackageUpload) GetUploaderUrlOk() (*string, bool)` + +GetUploaderUrlOk returns a tuple with the UploaderUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUploaderUrl + +`func (o *McpPackageUpload) SetUploaderUrl(v string)` + +SetUploaderUrl sets UploaderUrl field to given value. + +### HasUploaderUrl + +`func (o *McpPackageUpload) HasUploaderUrl() bool` + +HasUploaderUrl returns a boolean if a field has been set. + +### GetVersion + +`func (o *McpPackageUpload) GetVersion() string` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *McpPackageUpload) GetVersionOk() (*string, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *McpPackageUpload) SetVersion(v string)` + +SetVersion sets Version field to given value. + +### HasVersion + +`func (o *McpPackageUpload) HasVersion() bool` + +HasVersion returns a boolean if a field has been set. + +### SetVersionNil + +`func (o *McpPackageUpload) SetVersionNil(b bool)` + + SetVersionNil sets the value for Version to be an explicit nil + +### UnsetVersion +`func (o *McpPackageUpload) UnsetVersion()` + +UnsetVersion ensures that no value is present for Version, not even an explicit nil +### GetVersionOrig + +`func (o *McpPackageUpload) GetVersionOrig() string` + +GetVersionOrig returns the VersionOrig field if non-nil, zero value otherwise. + +### GetVersionOrigOk + +`func (o *McpPackageUpload) GetVersionOrigOk() (*string, bool)` + +GetVersionOrigOk returns a tuple with the VersionOrig field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersionOrig + +`func (o *McpPackageUpload) SetVersionOrig(v string)` + +SetVersionOrig sets VersionOrig field to given value. + +### HasVersionOrig + +`func (o *McpPackageUpload) HasVersionOrig() bool` + +HasVersionOrig returns a boolean if a field has been set. + +### GetVulnerabilityScanResultsUrl + +`func (o *McpPackageUpload) GetVulnerabilityScanResultsUrl() string` + +GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field if non-nil, zero value otherwise. + +### GetVulnerabilityScanResultsUrlOk + +`func (o *McpPackageUpload) GetVulnerabilityScanResultsUrlOk() (*string, bool)` + +GetVulnerabilityScanResultsUrlOk returns a tuple with the VulnerabilityScanResultsUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityScanResultsUrl + +`func (o *McpPackageUpload) SetVulnerabilityScanResultsUrl(v string)` + +SetVulnerabilityScanResultsUrl sets VulnerabilityScanResultsUrl field to given value. + +### HasVulnerabilityScanResultsUrl + +`func (o *McpPackageUpload) HasVulnerabilityScanResultsUrl() bool` + +HasVulnerabilityScanResultsUrl 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/McpPackageUploadRequest.md b/docs/McpPackageUploadRequest.md new file mode 100644 index 00000000..e74d688c --- /dev/null +++ b/docs/McpPackageUploadRequest.md @@ -0,0 +1,149 @@ +# McpPackageUploadRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**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] + +## Methods + +### NewMcpPackageUploadRequest + +`func NewMcpPackageUploadRequest(packageFile string, ) *McpPackageUploadRequest` + +NewMcpPackageUploadRequest instantiates a new McpPackageUploadRequest 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 + +### NewMcpPackageUploadRequestWithDefaults + +`func NewMcpPackageUploadRequestWithDefaults() *McpPackageUploadRequest` + +NewMcpPackageUploadRequestWithDefaults instantiates a new McpPackageUploadRequest 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 + +### GetPackageFile + +`func (o *McpPackageUploadRequest) GetPackageFile() string` + +GetPackageFile returns the PackageFile field if non-nil, zero value otherwise. + +### GetPackageFileOk + +`func (o *McpPackageUploadRequest) GetPackageFileOk() (*string, bool)` + +GetPackageFileOk returns a tuple with the PackageFile field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPackageFile + +`func (o *McpPackageUploadRequest) SetPackageFile(v string)` + +SetPackageFile sets PackageFile field to given value. + + +### GetRepublish + +`func (o *McpPackageUploadRequest) GetRepublish() bool` + +GetRepublish returns the Republish field if non-nil, zero value otherwise. + +### GetRepublishOk + +`func (o *McpPackageUploadRequest) GetRepublishOk() (*bool, bool)` + +GetRepublishOk returns a tuple with the Republish field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRepublish + +`func (o *McpPackageUploadRequest) SetRepublish(v bool)` + +SetRepublish sets Republish field to given value. + +### HasRepublish + +`func (o *McpPackageUploadRequest) HasRepublish() bool` + +HasRepublish returns a boolean if a field has been set. + +### GetTags + +`func (o *McpPackageUploadRequest) GetTags() string` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *McpPackageUploadRequest) GetTagsOk() (*string, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *McpPackageUploadRequest) SetTags(v string)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *McpPackageUploadRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### SetTagsNil + +`func (o *McpPackageUploadRequest) SetTagsNil(b bool)` + + SetTagsNil sets the value for Tags to be an explicit nil + +### UnsetTags +`func (o *McpPackageUploadRequest) UnsetTags()` + +UnsetTags ensures that no value is present for Tags, not even an explicit nil +### GetVersion + +`func (o *McpPackageUploadRequest) GetVersion() string` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *McpPackageUploadRequest) GetVersionOk() (*string, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *McpPackageUploadRequest) SetVersion(v string)` + +SetVersion sets Version field to given value. + +### HasVersion + +`func (o *McpPackageUploadRequest) HasVersion() bool` + +HasVersion returns a boolean if a field has been set. + +### SetVersionNil + +`func (o *McpPackageUploadRequest) SetVersionNil(b bool)` + + SetVersionNil sets the value for Version to be an explicit nil + +### UnsetVersion +`func (o *McpPackageUploadRequest) UnsetVersion()` + +UnsetVersion ensures that no value is present for Version, 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/NpmUpstream.md b/docs/NpmUpstream.md index f9a6a606..ff9842c7 100644 --- a/docs/NpmUpstream.md +++ b/docs/NpmUpstream.md @@ -18,7 +18,7 @@ Name | Type | Description | Notes **ExtraValue2** | Pointer to **NullableString** | The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] **HasFailedSignatureVerification** | Pointer to **bool** | Whether the upstream has failed signature verification. | [optional] [readonly] **IndexPackageCount** | Pointer to **NullableInt64** | The number of packages available in this upstream source | [optional] [readonly] -**IndexStatus** | Pointer to **string** | The current indexing status of this upstream source | [optional] [readonly] +**IndexStatus** | Pointer to **NullableString** | The current indexing status of this upstream source | [optional] [readonly] **IsActive** | Pointer to **bool** | Whether or not this upstream is active and ready for requests. | [optional] **LastIndexed** | Pointer to **string** | The last time this upstream source was indexed | [optional] [readonly] **Mode** | Pointer to **string** | The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. | [optional] [default to "Proxy Only"] @@ -495,6 +495,16 @@ SetIndexStatus sets IndexStatus field to given value. HasIndexStatus returns a boolean if a field has been set. +### SetIndexStatusNil + +`func (o *NpmUpstream) SetIndexStatusNil(b bool)` + + SetIndexStatusNil sets the value for IndexStatus to be an explicit nil + +### UnsetIndexStatus +`func (o *NpmUpstream) UnsetIndexStatus()` + +UnsetIndexStatus ensures that no value is present for IndexStatus, not even an explicit nil ### GetIsActive `func (o *NpmUpstream) GetIsActive() bool` diff --git a/docs/NugetUpstream.md b/docs/NugetUpstream.md index 6239dbc6..a44972d9 100644 --- a/docs/NugetUpstream.md +++ b/docs/NugetUpstream.md @@ -18,7 +18,7 @@ Name | Type | Description | Notes **ExtraValue2** | Pointer to **NullableString** | The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] **HasFailedSignatureVerification** | Pointer to **bool** | Whether the upstream has failed signature verification. | [optional] [readonly] **IndexPackageCount** | Pointer to **NullableInt64** | The number of packages available in this upstream source | [optional] [readonly] -**IndexStatus** | Pointer to **string** | The current indexing status of this upstream source | [optional] [readonly] +**IndexStatus** | Pointer to **NullableString** | The current indexing status of this upstream source | [optional] [readonly] **IsActive** | Pointer to **bool** | Whether or not this upstream is active and ready for requests. | [optional] **LastIndexed** | Pointer to **string** | The last time this upstream source was indexed | [optional] [readonly] **Mode** | Pointer to **string** | The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. | [optional] [default to "Proxy Only"] @@ -494,6 +494,16 @@ SetIndexStatus sets IndexStatus field to given value. HasIndexStatus returns a boolean if a field has been set. +### SetIndexStatusNil + +`func (o *NugetUpstream) SetIndexStatusNil(b bool)` + + SetIndexStatusNil sets the value for IndexStatus to be an explicit nil + +### UnsetIndexStatus +`func (o *NugetUpstream) UnsetIndexStatus()` + +UnsetIndexStatus ensures that no value is present for IndexStatus, not even an explicit nil ### GetIsActive `func (o *NugetUpstream) GetIsActive() bool` diff --git a/docs/PackageRecycleBin.md b/docs/PackageRecycleBin.md new file mode 100644 index 00000000..e816137c --- /dev/null +++ b/docs/PackageRecycleBin.md @@ -0,0 +1,98 @@ +# PackageRecycleBin + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Action** | **string** | The action to perform on soft-deleted packages. | +**Identifiers** | **[]string** | A list of soft-deleted package identifiers to action. | +**Repository** | Pointer to **string** | The repository name to filter packages to. If not provided, the action will be performed across all accessible repositories in the workspace. | [optional] + +## Methods + +### NewPackageRecycleBin + +`func NewPackageRecycleBin(action string, identifiers []string, ) *PackageRecycleBin` + +NewPackageRecycleBin instantiates a new PackageRecycleBin 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 + +### NewPackageRecycleBinWithDefaults + +`func NewPackageRecycleBinWithDefaults() *PackageRecycleBin` + +NewPackageRecycleBinWithDefaults instantiates a new PackageRecycleBin 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 + +### GetAction + +`func (o *PackageRecycleBin) GetAction() string` + +GetAction returns the Action field if non-nil, zero value otherwise. + +### GetActionOk + +`func (o *PackageRecycleBin) GetActionOk() (*string, bool)` + +GetActionOk returns a tuple with the Action field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAction + +`func (o *PackageRecycleBin) SetAction(v string)` + +SetAction sets Action field to given value. + + +### GetIdentifiers + +`func (o *PackageRecycleBin) GetIdentifiers() []string` + +GetIdentifiers returns the Identifiers field if non-nil, zero value otherwise. + +### GetIdentifiersOk + +`func (o *PackageRecycleBin) GetIdentifiersOk() (*[]string, bool)` + +GetIdentifiersOk returns a tuple with the Identifiers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIdentifiers + +`func (o *PackageRecycleBin) SetIdentifiers(v []string)` + +SetIdentifiers sets Identifiers field to given value. + + +### GetRepository + +`func (o *PackageRecycleBin) GetRepository() string` + +GetRepository returns the Repository field if non-nil, zero value otherwise. + +### GetRepositoryOk + +`func (o *PackageRecycleBin) GetRepositoryOk() (*string, bool)` + +GetRepositoryOk returns a tuple with the Repository field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRepository + +`func (o *PackageRecycleBin) SetRepository(v string)` + +SetRepository sets Repository field to given value. + +### HasRepository + +`func (o *PackageRecycleBin) HasRepository() bool` + +HasRepository 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/PackagesApi.md b/docs/PackagesApi.md index 0d651107..e7c7210d 100644 --- a/docs/PackagesApi.md +++ b/docs/PackagesApi.md @@ -34,6 +34,7 @@ Method | HTTP request | Description [**PackagesUploadHuggingface**](PackagesApi.md#PackagesUploadHuggingface) | **Post** /packages/{owner}/{repo}/upload/huggingface/ | Create a new HuggingFace package [**PackagesUploadLuarocks**](PackagesApi.md#PackagesUploadLuarocks) | **Post** /packages/{owner}/{repo}/upload/luarocks/ | Create a new LuaRocks package [**PackagesUploadMaven**](PackagesApi.md#PackagesUploadMaven) | **Post** /packages/{owner}/{repo}/upload/maven/ | Create a new Maven package +[**PackagesUploadMcp**](PackagesApi.md#PackagesUploadMcp) | **Post** /packages/{owner}/{repo}/upload/mcp/ | Create a new MCP package [**PackagesUploadNpm**](PackagesApi.md#PackagesUploadNpm) | **Post** /packages/{owner}/{repo}/upload/npm/ | Create a new npm package [**PackagesUploadNuget**](PackagesApi.md#PackagesUploadNuget) | **Post** /packages/{owner}/{repo}/upload/nuget/ | Create a new NuGet package [**PackagesUploadP2**](PackagesApi.md#PackagesUploadP2) | **Post** /packages/{owner}/{repo}/upload/p2/ | Create a new P2 package @@ -62,6 +63,7 @@ Method | HTTP request | Description [**PackagesValidateUploadHuggingface**](PackagesApi.md#PackagesValidateUploadHuggingface) | **Post** /packages/{owner}/{repo}/validate-upload/huggingface/ | Validate parameters for create HuggingFace package [**PackagesValidateUploadLuarocks**](PackagesApi.md#PackagesValidateUploadLuarocks) | **Post** /packages/{owner}/{repo}/validate-upload/luarocks/ | Validate parameters for create LuaRocks package [**PackagesValidateUploadMaven**](PackagesApi.md#PackagesValidateUploadMaven) | **Post** /packages/{owner}/{repo}/validate-upload/maven/ | Validate parameters for create Maven package +[**PackagesValidateUploadMcp**](PackagesApi.md#PackagesValidateUploadMcp) | **Post** /packages/{owner}/{repo}/validate-upload/mcp/ | Validate parameters for create MCP package [**PackagesValidateUploadNpm**](PackagesApi.md#PackagesValidateUploadNpm) | **Post** /packages/{owner}/{repo}/validate-upload/npm/ | Validate parameters for create npm package [**PackagesValidateUploadNuget**](PackagesApi.md#PackagesValidateUploadNuget) | **Post** /packages/{owner}/{repo}/validate-upload/nuget/ | Validate parameters for create NuGet package [**PackagesValidateUploadP2**](PackagesApi.md#PackagesValidateUploadP2) | **Post** /packages/{owner}/{repo}/validate-upload/p2/ | Validate parameters for create P2 package @@ -2361,6 +2363,81 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## PackagesUploadMcp + +> McpPackageUpload PackagesUploadMcp(ctx, owner, repo).Data(data).Execute() + +Create a new MCP package + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/cloudsmith-io/cloudsmith-api-go" +) + +func main() { + owner := "owner_example" // string | + repo := "repo_example" // string | + data := *openapiclient.NewMcpPackageUploadRequest("PackageFile_example") // McpPackageUploadRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PackagesApi.PackagesUploadMcp(context.Background(), owner, repo).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PackagesApi.PackagesUploadMcp``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PackagesUploadMcp`: McpPackageUpload + fmt.Fprintf(os.Stdout, "Response from `PackagesApi.PackagesUploadMcp`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**owner** | **string** | | +**repo** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPackagesUploadMcpRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **data** | [**McpPackageUploadRequest**](McpPackageUploadRequest.md) | | + +### Return type + +[**McpPackageUpload**](McpPackageUpload.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) + + ## PackagesUploadNpm > NpmPackageUpload PackagesUploadNpm(ctx, owner, repo).Data(data).Execute() @@ -4427,6 +4504,79 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## PackagesValidateUploadMcp + +> PackagesValidateUploadMcp(ctx, owner, repo).Data(data).Execute() + +Validate parameters for create MCP package + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/cloudsmith-io/cloudsmith-api-go" +) + +func main() { + owner := "owner_example" // string | + repo := "repo_example" // string | + data := *openapiclient.NewMcpPackageUploadRequest("PackageFile_example") // McpPackageUploadRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.PackagesApi.PackagesValidateUploadMcp(context.Background(), owner, repo).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PackagesApi.PackagesValidateUploadMcp``: %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. +**owner** | **string** | | +**repo** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPackagesValidateUploadMcpRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **data** | [**McpPackageUploadRequest**](McpPackageUploadRequest.md) | | + +### Return type + + (empty response body) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## PackagesValidateUploadNpm > PackagesValidateUploadNpm(ctx, owner, repo).Data(data).Execute() diff --git a/docs/PythonUpstream.md b/docs/PythonUpstream.md index 9861d66d..c08a94ef 100644 --- a/docs/PythonUpstream.md +++ b/docs/PythonUpstream.md @@ -18,7 +18,7 @@ Name | Type | Description | Notes **ExtraValue2** | Pointer to **NullableString** | The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] **HasFailedSignatureVerification** | Pointer to **bool** | Whether the upstream has failed signature verification. | [optional] [readonly] **IndexPackageCount** | Pointer to **NullableInt64** | The number of packages available in this upstream source | [optional] [readonly] -**IndexStatus** | Pointer to **string** | The current indexing status of this upstream source | [optional] [readonly] +**IndexStatus** | Pointer to **NullableString** | The current indexing status of this upstream source | [optional] [readonly] **IsActive** | Pointer to **bool** | Whether or not this upstream is active and ready for requests. | [optional] **LastIndexed** | Pointer to **string** | The last time this upstream source was indexed | [optional] [readonly] **Mode** | Pointer to **string** | The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. | [optional] [default to "Proxy Only"] @@ -495,6 +495,16 @@ SetIndexStatus sets IndexStatus field to given value. HasIndexStatus returns a boolean if a field has been set. +### SetIndexStatusNil + +`func (o *PythonUpstream) SetIndexStatusNil(b bool)` + + SetIndexStatusNil sets the value for IndexStatus to be an explicit nil + +### UnsetIndexStatus +`func (o *PythonUpstream) UnsetIndexStatus()` + +UnsetIndexStatus ensures that no value is present for IndexStatus, not even an explicit nil ### GetIsActive `func (o *PythonUpstream) GetIsActive() bool` diff --git a/docs/RecycleBinApi.md b/docs/RecycleBinApi.md new file mode 100644 index 00000000..4dd8eafa --- /dev/null +++ b/docs/RecycleBinApi.md @@ -0,0 +1,158 @@ +# \RecycleBinApi + +All URIs are relative to *https://api.cloudsmith.io* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**RecycleBinList**](RecycleBinApi.md#RecycleBinList) | **Get** /recycle-bin/{owner}/ | List soft-deleted packages in recycle bin +[**RecycleBinRecycleBinAction**](RecycleBinApi.md#RecycleBinRecycleBinAction) | **Post** /recycle-bin/{owner}/action/ | + + + +## RecycleBinList + +> []RecycleBinPackage RecycleBinList(ctx, owner).Page(page).PageSize(pageSize).Repository(repository).Execute() + +List soft-deleted packages in recycle bin + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/cloudsmith-io/cloudsmith-api-go" +) + +func main() { + owner := "owner_example" // string | + 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) + repository := "repository_example" // string | Filter packages by repository slug (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RecycleBinApi.RecycleBinList(context.Background(), owner).Page(page).PageSize(pageSize).Repository(repository).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RecycleBinApi.RecycleBinList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `RecycleBinList`: []RecycleBinPackage + fmt.Fprintf(os.Stdout, "Response from `RecycleBinApi.RecycleBinList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**owner** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiRecycleBinListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **page** | **int64** | A page number within the paginated result set. | + **pageSize** | **int64** | Number of results to return per page. | + **repository** | **string** | Filter packages by repository slug | + +### Return type + +[**[]RecycleBinPackage**](RecycleBinPackage.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) + + +## RecycleBinRecycleBinAction + +> PackageBulkActionResponse RecycleBinRecycleBinAction(ctx, owner).Data(data).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/cloudsmith-io/cloudsmith-api-go" +) + +func main() { + owner := "owner_example" // string | + data := *openapiclient.NewPackageRecycleBin("Action_example", []string{"Identifiers_example"}) // PackageRecycleBin | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RecycleBinApi.RecycleBinRecycleBinAction(context.Background(), owner).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RecycleBinApi.RecycleBinRecycleBinAction``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `RecycleBinRecycleBinAction`: PackageBulkActionResponse + fmt.Fprintf(os.Stdout, "Response from `RecycleBinApi.RecycleBinRecycleBinAction`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**owner** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiRecycleBinRecycleBinActionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **data** | [**PackageRecycleBin**](PackageRecycleBin.md) | | + +### Return type + +[**PackageBulkActionResponse**](PackageBulkActionResponse.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) + diff --git a/docs/RecycleBinPackage.md b/docs/RecycleBinPackage.md new file mode 100644 index 00000000..ac2119c5 --- /dev/null +++ b/docs/RecycleBinPackage.md @@ -0,0 +1,714 @@ +# RecycleBinPackage + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ActionBy** | Pointer to **NullableString** | The name of the user who deleted the package. | [optional] [readonly] +**Downloads** | Pointer to **int64** | | [optional] [readonly] +**Filename** | Pointer to **string** | | [optional] [readonly] +**Format** | Pointer to **string** | | [optional] [readonly] +**FullyQualifiedName** | Pointer to **string** | The fully qualified name of the package. | [optional] [readonly] +**Identifiers** | Pointer to **map[string]string** | | [optional] [readonly] +**InvokedRetentionRule** | Pointer to **map[string]string** | Information about the retention rule that triggered deletion (if any). | [optional] [readonly] +**IsDeleteable** | Pointer to **bool** | | [optional] [readonly] +**IsQuarantined** | Pointer to **bool** | | [optional] [readonly] +**IsRestorable** | Pointer to **bool** | | [optional] [readonly] +**Name** | Pointer to **NullableString** | The name of this package. | [optional] [readonly] +**PolicyViolated** | Pointer to **bool** | Whether or not the package has violated any policy. | [optional] [readonly] +**Repository** | Pointer to **string** | | [optional] [readonly] +**SecurityScanCompletedAt** | Pointer to **NullableTime** | The datetime the security scanning was completed. | [optional] [readonly] +**SecurityScanStatus** | Pointer to **NullableString** | | [optional] [readonly] [default to "Awaiting Security Scan"] +**Size** | Pointer to **int64** | The calculated size of the package. | [optional] [readonly] +**SlugPerm** | Pointer to **string** | | [optional] [readonly] +**Status** | Pointer to **int64** | The synchronisation status of the package. | [optional] [readonly] +**StatusUpdatedAt** | Pointer to **time.Time** | The datetime the package status was updated at. | [optional] [readonly] +**Tags** | Pointer to **map[string]interface{}** | All tags on the package, grouped by tag type. This includes immutable tags, but doesn't distinguish them from mutable. To see which tags are immutable specifically, see the tags_immutable field. | [optional] +**TypeDisplay** | Pointer to **string** | | [optional] [readonly] +**UploadedAt** | Pointer to **time.Time** | The date this package was uploaded. | [optional] [readonly] +**Uploader** | Pointer to **string** | | [optional] [readonly] +**Version** | Pointer to **NullableString** | The raw version for this package. | [optional] [readonly] + +## Methods + +### NewRecycleBinPackage + +`func NewRecycleBinPackage() *RecycleBinPackage` + +NewRecycleBinPackage instantiates a new RecycleBinPackage 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 + +### NewRecycleBinPackageWithDefaults + +`func NewRecycleBinPackageWithDefaults() *RecycleBinPackage` + +NewRecycleBinPackageWithDefaults instantiates a new RecycleBinPackage 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 + +### GetActionBy + +`func (o *RecycleBinPackage) GetActionBy() string` + +GetActionBy returns the ActionBy field if non-nil, zero value otherwise. + +### GetActionByOk + +`func (o *RecycleBinPackage) GetActionByOk() (*string, bool)` + +GetActionByOk returns a tuple with the ActionBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetActionBy + +`func (o *RecycleBinPackage) SetActionBy(v string)` + +SetActionBy sets ActionBy field to given value. + +### HasActionBy + +`func (o *RecycleBinPackage) HasActionBy() bool` + +HasActionBy returns a boolean if a field has been set. + +### SetActionByNil + +`func (o *RecycleBinPackage) SetActionByNil(b bool)` + + SetActionByNil sets the value for ActionBy to be an explicit nil + +### UnsetActionBy +`func (o *RecycleBinPackage) UnsetActionBy()` + +UnsetActionBy ensures that no value is present for ActionBy, not even an explicit nil +### GetDownloads + +`func (o *RecycleBinPackage) GetDownloads() int64` + +GetDownloads returns the Downloads field if non-nil, zero value otherwise. + +### GetDownloadsOk + +`func (o *RecycleBinPackage) GetDownloadsOk() (*int64, bool)` + +GetDownloadsOk returns a tuple with the Downloads field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDownloads + +`func (o *RecycleBinPackage) SetDownloads(v int64)` + +SetDownloads sets Downloads field to given value. + +### HasDownloads + +`func (o *RecycleBinPackage) HasDownloads() bool` + +HasDownloads returns a boolean if a field has been set. + +### GetFilename + +`func (o *RecycleBinPackage) GetFilename() string` + +GetFilename returns the Filename field if non-nil, zero value otherwise. + +### GetFilenameOk + +`func (o *RecycleBinPackage) GetFilenameOk() (*string, bool)` + +GetFilenameOk returns a tuple with the Filename field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFilename + +`func (o *RecycleBinPackage) SetFilename(v string)` + +SetFilename sets Filename field to given value. + +### HasFilename + +`func (o *RecycleBinPackage) HasFilename() bool` + +HasFilename returns a boolean if a field has been set. + +### GetFormat + +`func (o *RecycleBinPackage) GetFormat() string` + +GetFormat returns the Format field if non-nil, zero value otherwise. + +### GetFormatOk + +`func (o *RecycleBinPackage) GetFormatOk() (*string, bool)` + +GetFormatOk returns a tuple with the Format field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFormat + +`func (o *RecycleBinPackage) SetFormat(v string)` + +SetFormat sets Format field to given value. + +### HasFormat + +`func (o *RecycleBinPackage) HasFormat() bool` + +HasFormat returns a boolean if a field has been set. + +### GetFullyQualifiedName + +`func (o *RecycleBinPackage) GetFullyQualifiedName() string` + +GetFullyQualifiedName returns the FullyQualifiedName field if non-nil, zero value otherwise. + +### GetFullyQualifiedNameOk + +`func (o *RecycleBinPackage) GetFullyQualifiedNameOk() (*string, bool)` + +GetFullyQualifiedNameOk returns a tuple with the FullyQualifiedName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFullyQualifiedName + +`func (o *RecycleBinPackage) SetFullyQualifiedName(v string)` + +SetFullyQualifiedName sets FullyQualifiedName field to given value. + +### HasFullyQualifiedName + +`func (o *RecycleBinPackage) HasFullyQualifiedName() bool` + +HasFullyQualifiedName returns a boolean if a field has been set. + +### GetIdentifiers + +`func (o *RecycleBinPackage) GetIdentifiers() map[string]string` + +GetIdentifiers returns the Identifiers field if non-nil, zero value otherwise. + +### GetIdentifiersOk + +`func (o *RecycleBinPackage) GetIdentifiersOk() (*map[string]string, bool)` + +GetIdentifiersOk returns a tuple with the Identifiers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIdentifiers + +`func (o *RecycleBinPackage) SetIdentifiers(v map[string]string)` + +SetIdentifiers sets Identifiers field to given value. + +### HasIdentifiers + +`func (o *RecycleBinPackage) HasIdentifiers() bool` + +HasIdentifiers returns a boolean if a field has been set. + +### GetInvokedRetentionRule + +`func (o *RecycleBinPackage) GetInvokedRetentionRule() map[string]string` + +GetInvokedRetentionRule returns the InvokedRetentionRule field if non-nil, zero value otherwise. + +### GetInvokedRetentionRuleOk + +`func (o *RecycleBinPackage) GetInvokedRetentionRuleOk() (*map[string]string, bool)` + +GetInvokedRetentionRuleOk returns a tuple with the InvokedRetentionRule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInvokedRetentionRule + +`func (o *RecycleBinPackage) SetInvokedRetentionRule(v map[string]string)` + +SetInvokedRetentionRule sets InvokedRetentionRule field to given value. + +### HasInvokedRetentionRule + +`func (o *RecycleBinPackage) HasInvokedRetentionRule() bool` + +HasInvokedRetentionRule returns a boolean if a field has been set. + +### SetInvokedRetentionRuleNil + +`func (o *RecycleBinPackage) SetInvokedRetentionRuleNil(b bool)` + + SetInvokedRetentionRuleNil sets the value for InvokedRetentionRule to be an explicit nil + +### UnsetInvokedRetentionRule +`func (o *RecycleBinPackage) UnsetInvokedRetentionRule()` + +UnsetInvokedRetentionRule ensures that no value is present for InvokedRetentionRule, not even an explicit nil +### GetIsDeleteable + +`func (o *RecycleBinPackage) GetIsDeleteable() bool` + +GetIsDeleteable returns the IsDeleteable field if non-nil, zero value otherwise. + +### GetIsDeleteableOk + +`func (o *RecycleBinPackage) GetIsDeleteableOk() (*bool, bool)` + +GetIsDeleteableOk returns a tuple with the IsDeleteable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsDeleteable + +`func (o *RecycleBinPackage) SetIsDeleteable(v bool)` + +SetIsDeleteable sets IsDeleteable field to given value. + +### HasIsDeleteable + +`func (o *RecycleBinPackage) HasIsDeleteable() bool` + +HasIsDeleteable returns a boolean if a field has been set. + +### GetIsQuarantined + +`func (o *RecycleBinPackage) GetIsQuarantined() bool` + +GetIsQuarantined returns the IsQuarantined field if non-nil, zero value otherwise. + +### GetIsQuarantinedOk + +`func (o *RecycleBinPackage) GetIsQuarantinedOk() (*bool, bool)` + +GetIsQuarantinedOk returns a tuple with the IsQuarantined field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsQuarantined + +`func (o *RecycleBinPackage) SetIsQuarantined(v bool)` + +SetIsQuarantined sets IsQuarantined field to given value. + +### HasIsQuarantined + +`func (o *RecycleBinPackage) HasIsQuarantined() bool` + +HasIsQuarantined returns a boolean if a field has been set. + +### GetIsRestorable + +`func (o *RecycleBinPackage) GetIsRestorable() bool` + +GetIsRestorable returns the IsRestorable field if non-nil, zero value otherwise. + +### GetIsRestorableOk + +`func (o *RecycleBinPackage) GetIsRestorableOk() (*bool, bool)` + +GetIsRestorableOk returns a tuple with the IsRestorable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsRestorable + +`func (o *RecycleBinPackage) SetIsRestorable(v bool)` + +SetIsRestorable sets IsRestorable field to given value. + +### HasIsRestorable + +`func (o *RecycleBinPackage) HasIsRestorable() bool` + +HasIsRestorable returns a boolean if a field has been set. + +### GetName + +`func (o *RecycleBinPackage) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *RecycleBinPackage) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *RecycleBinPackage) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *RecycleBinPackage) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *RecycleBinPackage) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *RecycleBinPackage) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetPolicyViolated + +`func (o *RecycleBinPackage) GetPolicyViolated() bool` + +GetPolicyViolated returns the PolicyViolated field if non-nil, zero value otherwise. + +### GetPolicyViolatedOk + +`func (o *RecycleBinPackage) GetPolicyViolatedOk() (*bool, bool)` + +GetPolicyViolatedOk returns a tuple with the PolicyViolated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPolicyViolated + +`func (o *RecycleBinPackage) SetPolicyViolated(v bool)` + +SetPolicyViolated sets PolicyViolated field to given value. + +### HasPolicyViolated + +`func (o *RecycleBinPackage) HasPolicyViolated() bool` + +HasPolicyViolated returns a boolean if a field has been set. + +### GetRepository + +`func (o *RecycleBinPackage) GetRepository() string` + +GetRepository returns the Repository field if non-nil, zero value otherwise. + +### GetRepositoryOk + +`func (o *RecycleBinPackage) GetRepositoryOk() (*string, bool)` + +GetRepositoryOk returns a tuple with the Repository field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRepository + +`func (o *RecycleBinPackage) SetRepository(v string)` + +SetRepository sets Repository field to given value. + +### HasRepository + +`func (o *RecycleBinPackage) HasRepository() bool` + +HasRepository returns a boolean if a field has been set. + +### GetSecurityScanCompletedAt + +`func (o *RecycleBinPackage) GetSecurityScanCompletedAt() time.Time` + +GetSecurityScanCompletedAt returns the SecurityScanCompletedAt field if non-nil, zero value otherwise. + +### GetSecurityScanCompletedAtOk + +`func (o *RecycleBinPackage) GetSecurityScanCompletedAtOk() (*time.Time, bool)` + +GetSecurityScanCompletedAtOk returns a tuple with the SecurityScanCompletedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecurityScanCompletedAt + +`func (o *RecycleBinPackage) SetSecurityScanCompletedAt(v time.Time)` + +SetSecurityScanCompletedAt sets SecurityScanCompletedAt field to given value. + +### HasSecurityScanCompletedAt + +`func (o *RecycleBinPackage) HasSecurityScanCompletedAt() bool` + +HasSecurityScanCompletedAt returns a boolean if a field has been set. + +### SetSecurityScanCompletedAtNil + +`func (o *RecycleBinPackage) SetSecurityScanCompletedAtNil(b bool)` + + SetSecurityScanCompletedAtNil sets the value for SecurityScanCompletedAt to be an explicit nil + +### UnsetSecurityScanCompletedAt +`func (o *RecycleBinPackage) UnsetSecurityScanCompletedAt()` + +UnsetSecurityScanCompletedAt ensures that no value is present for SecurityScanCompletedAt, not even an explicit nil +### GetSecurityScanStatus + +`func (o *RecycleBinPackage) GetSecurityScanStatus() string` + +GetSecurityScanStatus returns the SecurityScanStatus field if non-nil, zero value otherwise. + +### GetSecurityScanStatusOk + +`func (o *RecycleBinPackage) GetSecurityScanStatusOk() (*string, bool)` + +GetSecurityScanStatusOk returns a tuple with the SecurityScanStatus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecurityScanStatus + +`func (o *RecycleBinPackage) SetSecurityScanStatus(v string)` + +SetSecurityScanStatus sets SecurityScanStatus field to given value. + +### HasSecurityScanStatus + +`func (o *RecycleBinPackage) HasSecurityScanStatus() bool` + +HasSecurityScanStatus returns a boolean if a field has been set. + +### SetSecurityScanStatusNil + +`func (o *RecycleBinPackage) SetSecurityScanStatusNil(b bool)` + + SetSecurityScanStatusNil sets the value for SecurityScanStatus to be an explicit nil + +### UnsetSecurityScanStatus +`func (o *RecycleBinPackage) UnsetSecurityScanStatus()` + +UnsetSecurityScanStatus ensures that no value is present for SecurityScanStatus, not even an explicit nil +### GetSize + +`func (o *RecycleBinPackage) GetSize() int64` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *RecycleBinPackage) 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 *RecycleBinPackage) SetSize(v int64)` + +SetSize sets Size field to given value. + +### HasSize + +`func (o *RecycleBinPackage) HasSize() bool` + +HasSize returns a boolean if a field has been set. + +### GetSlugPerm + +`func (o *RecycleBinPackage) GetSlugPerm() string` + +GetSlugPerm returns the SlugPerm field if non-nil, zero value otherwise. + +### GetSlugPermOk + +`func (o *RecycleBinPackage) 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 *RecycleBinPackage) SetSlugPerm(v string)` + +SetSlugPerm sets SlugPerm field to given value. + +### HasSlugPerm + +`func (o *RecycleBinPackage) HasSlugPerm() bool` + +HasSlugPerm returns a boolean if a field has been set. + +### GetStatus + +`func (o *RecycleBinPackage) GetStatus() int64` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *RecycleBinPackage) GetStatusOk() (*int64, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *RecycleBinPackage) SetStatus(v int64)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *RecycleBinPackage) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetStatusUpdatedAt + +`func (o *RecycleBinPackage) GetStatusUpdatedAt() time.Time` + +GetStatusUpdatedAt returns the StatusUpdatedAt field if non-nil, zero value otherwise. + +### GetStatusUpdatedAtOk + +`func (o *RecycleBinPackage) GetStatusUpdatedAtOk() (*time.Time, bool)` + +GetStatusUpdatedAtOk returns a tuple with the StatusUpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatusUpdatedAt + +`func (o *RecycleBinPackage) SetStatusUpdatedAt(v time.Time)` + +SetStatusUpdatedAt sets StatusUpdatedAt field to given value. + +### HasStatusUpdatedAt + +`func (o *RecycleBinPackage) HasStatusUpdatedAt() bool` + +HasStatusUpdatedAt returns a boolean if a field has been set. + +### GetTags + +`func (o *RecycleBinPackage) GetTags() map[string]interface{}` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *RecycleBinPackage) GetTagsOk() (*map[string]interface{}, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *RecycleBinPackage) SetTags(v map[string]interface{})` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *RecycleBinPackage) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetTypeDisplay + +`func (o *RecycleBinPackage) GetTypeDisplay() string` + +GetTypeDisplay returns the TypeDisplay field if non-nil, zero value otherwise. + +### GetTypeDisplayOk + +`func (o *RecycleBinPackage) GetTypeDisplayOk() (*string, bool)` + +GetTypeDisplayOk returns a tuple with the TypeDisplay field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTypeDisplay + +`func (o *RecycleBinPackage) SetTypeDisplay(v string)` + +SetTypeDisplay sets TypeDisplay field to given value. + +### HasTypeDisplay + +`func (o *RecycleBinPackage) HasTypeDisplay() bool` + +HasTypeDisplay returns a boolean if a field has been set. + +### GetUploadedAt + +`func (o *RecycleBinPackage) GetUploadedAt() time.Time` + +GetUploadedAt returns the UploadedAt field if non-nil, zero value otherwise. + +### GetUploadedAtOk + +`func (o *RecycleBinPackage) GetUploadedAtOk() (*time.Time, bool)` + +GetUploadedAtOk returns a tuple with the UploadedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUploadedAt + +`func (o *RecycleBinPackage) SetUploadedAt(v time.Time)` + +SetUploadedAt sets UploadedAt field to given value. + +### HasUploadedAt + +`func (o *RecycleBinPackage) HasUploadedAt() bool` + +HasUploadedAt returns a boolean if a field has been set. + +### GetUploader + +`func (o *RecycleBinPackage) GetUploader() string` + +GetUploader returns the Uploader field if non-nil, zero value otherwise. + +### GetUploaderOk + +`func (o *RecycleBinPackage) GetUploaderOk() (*string, bool)` + +GetUploaderOk returns a tuple with the Uploader field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUploader + +`func (o *RecycleBinPackage) SetUploader(v string)` + +SetUploader sets Uploader field to given value. + +### HasUploader + +`func (o *RecycleBinPackage) HasUploader() bool` + +HasUploader returns a boolean if a field has been set. + +### GetVersion + +`func (o *RecycleBinPackage) GetVersion() string` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *RecycleBinPackage) GetVersionOk() (*string, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *RecycleBinPackage) SetVersion(v string)` + +SetVersion sets Version field to given value. + +### HasVersion + +`func (o *RecycleBinPackage) HasVersion() bool` + +HasVersion returns a boolean if a field has been set. + +### SetVersionNil + +`func (o *RecycleBinPackage) SetVersionNil(b bool)` + + SetVersionNil sets the value for Version to be an explicit nil + +### UnsetVersion +`func (o *RecycleBinPackage) UnsetVersion()` + +UnsetVersion ensures that no value is present for Version, 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/ReposApi.md b/docs/ReposApi.md index f27c578c..d716bedb 100644 --- a/docs/ReposApi.md +++ b/docs/ReposApi.md @@ -8,7 +8,7 @@ Method | HTTP request | Description [**RepoRetentionPartialUpdate**](ReposApi.md#RepoRetentionPartialUpdate) | **Patch** /repos/{owner}/{repo}/retention/ | Update the retention rules for the repository. [**RepoRetentionRead**](ReposApi.md#RepoRetentionRead) | **Get** /repos/{owner}/{repo}/retention/ | Retrieve the retention rules for the repository. [**ReposCreate**](ReposApi.md#ReposCreate) | **Post** /repos/{owner}/ | Create a new repository in a given namespace. -[**ReposDelete**](ReposApi.md#ReposDelete) | **Delete** /repos/{owner}/{identifier}/ | Delete a repository in a given namespace. +[**ReposDelete**](ReposApi.md#ReposDelete) | **Delete** /repos/{owner}/{identifier}/ | [**ReposEcdsaCreate**](ReposApi.md#ReposEcdsaCreate) | **Post** /repos/{owner}/{identifier}/ecdsa/ | Set the active ECDSA key for the Repository. [**ReposEcdsaList**](ReposApi.md#ReposEcdsaList) | **Get** /repos/{owner}/{identifier}/ecdsa/ | Retrieve the active ECDSA key for the Repository. [**ReposEcdsaRegenerate**](ReposApi.md#ReposEcdsaRegenerate) | **Post** /repos/{owner}/{identifier}/ecdsa/regenerate/ | Regenerate ECDSA Key for the Repository. @@ -454,7 +454,7 @@ Name | Type | Description | Notes > ReposDelete(ctx, owner, identifier).Execute() -Delete a repository in a given namespace. + diff --git a/docs/RepositoryToken.md b/docs/RepositoryToken.md index fa5a0989..b94fc30b 100644 --- a/docs/RepositoryToken.md +++ b/docs/RepositoryToken.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**AccessPrivateBroadcasts** | Pointer to **bool** | If enabled, this token can be used for private broadcasts | [optional] +**AccessPrivateBroadcasts** | Pointer to **bool** | If enabled, this token can be used for private broadcasts | [optional] [readonly] **Clients** | Pointer to **int64** | | [optional] [readonly] **CreatedAt** | Pointer to **time.Time** | The datetime the token was updated at. | [optional] [readonly] **CreatedBy** | Pointer to **string** | | [optional] [readonly] diff --git a/docs/RepositoryTokenPrivateBroadcasts.md b/docs/RepositoryTokenPrivateBroadcasts.md new file mode 100644 index 00000000..912b0a25 --- /dev/null +++ b/docs/RepositoryTokenPrivateBroadcasts.md @@ -0,0 +1,51 @@ +# RepositoryTokenPrivateBroadcasts + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccessPrivateBroadcasts** | **bool** | Whether the token should have access to private broadcasts. | + +## Methods + +### NewRepositoryTokenPrivateBroadcasts + +`func NewRepositoryTokenPrivateBroadcasts(accessPrivateBroadcasts bool, ) *RepositoryTokenPrivateBroadcasts` + +NewRepositoryTokenPrivateBroadcasts instantiates a new RepositoryTokenPrivateBroadcasts 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 + +### NewRepositoryTokenPrivateBroadcastsWithDefaults + +`func NewRepositoryTokenPrivateBroadcastsWithDefaults() *RepositoryTokenPrivateBroadcasts` + +NewRepositoryTokenPrivateBroadcastsWithDefaults instantiates a new RepositoryTokenPrivateBroadcasts 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 + +### GetAccessPrivateBroadcasts + +`func (o *RepositoryTokenPrivateBroadcasts) GetAccessPrivateBroadcasts() bool` + +GetAccessPrivateBroadcasts returns the AccessPrivateBroadcasts field if non-nil, zero value otherwise. + +### GetAccessPrivateBroadcastsOk + +`func (o *RepositoryTokenPrivateBroadcasts) GetAccessPrivateBroadcastsOk() (*bool, bool)` + +GetAccessPrivateBroadcastsOk returns a tuple with the AccessPrivateBroadcasts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccessPrivateBroadcasts + +`func (o *RepositoryTokenPrivateBroadcasts) SetAccessPrivateBroadcasts(v bool)` + +SetAccessPrivateBroadcasts sets AccessPrivateBroadcasts 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/RepositoryTokenPrivateBroadcastsRequest.md b/docs/RepositoryTokenPrivateBroadcastsRequest.md new file mode 100644 index 00000000..f8252db2 --- /dev/null +++ b/docs/RepositoryTokenPrivateBroadcastsRequest.md @@ -0,0 +1,51 @@ +# RepositoryTokenPrivateBroadcastsRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccessPrivateBroadcasts** | **bool** | Whether the token should have access to private broadcasts. | + +## Methods + +### NewRepositoryTokenPrivateBroadcastsRequest + +`func NewRepositoryTokenPrivateBroadcastsRequest(accessPrivateBroadcasts bool, ) *RepositoryTokenPrivateBroadcastsRequest` + +NewRepositoryTokenPrivateBroadcastsRequest instantiates a new RepositoryTokenPrivateBroadcastsRequest 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 + +### NewRepositoryTokenPrivateBroadcastsRequestWithDefaults + +`func NewRepositoryTokenPrivateBroadcastsRequestWithDefaults() *RepositoryTokenPrivateBroadcastsRequest` + +NewRepositoryTokenPrivateBroadcastsRequestWithDefaults instantiates a new RepositoryTokenPrivateBroadcastsRequest 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 + +### GetAccessPrivateBroadcasts + +`func (o *RepositoryTokenPrivateBroadcastsRequest) GetAccessPrivateBroadcasts() bool` + +GetAccessPrivateBroadcasts returns the AccessPrivateBroadcasts field if non-nil, zero value otherwise. + +### GetAccessPrivateBroadcastsOk + +`func (o *RepositoryTokenPrivateBroadcastsRequest) GetAccessPrivateBroadcastsOk() (*bool, bool)` + +GetAccessPrivateBroadcastsOk returns a tuple with the AccessPrivateBroadcasts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccessPrivateBroadcasts + +`func (o *RepositoryTokenPrivateBroadcastsRequest) SetAccessPrivateBroadcasts(v bool)` + +SetAccessPrivateBroadcasts sets AccessPrivateBroadcasts 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/RepositoryTokenRefresh.md b/docs/RepositoryTokenRefresh.md index 53d0f307..fb647dd8 100644 --- a/docs/RepositoryTokenRefresh.md +++ b/docs/RepositoryTokenRefresh.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**AccessPrivateBroadcasts** | Pointer to **bool** | If enabled, this token can be used for private broadcasts | [optional] +**AccessPrivateBroadcasts** | Pointer to **bool** | If enabled, this token can be used for private broadcasts | [optional] [readonly] **Clients** | Pointer to **int64** | | [optional] [readonly] **CreatedAt** | Pointer to **time.Time** | The datetime the token was updated at. | [optional] [readonly] **CreatedBy** | Pointer to **string** | | [optional] [readonly] diff --git a/docs/RepositoryTokenRefreshRequest.md b/docs/RepositoryTokenRefreshRequest.md index 1eac44ec..d5bb353a 100644 --- a/docs/RepositoryTokenRefreshRequest.md +++ b/docs/RepositoryTokenRefreshRequest.md @@ -4,7 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**AccessPrivateBroadcasts** | Pointer to **bool** | If enabled, this token can be used for private broadcasts | [optional] **EulaRequired** | Pointer to **bool** | If checked, a EULA acceptance is required for this token. | [optional] **IsActive** | Pointer to **bool** | If enabled, the token will allow downloads based on configured restrictions (if any). | [optional] **LimitBandwidth** | Pointer to **NullableInt64** | The maximum download bandwidth allowed for the token. Values are expressed as the selected unit of bandwidth. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. | [optional] @@ -39,31 +38,6 @@ NewRepositoryTokenRefreshRequestWithDefaults instantiates a new RepositoryTokenR 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 -### GetAccessPrivateBroadcasts - -`func (o *RepositoryTokenRefreshRequest) GetAccessPrivateBroadcasts() bool` - -GetAccessPrivateBroadcasts returns the AccessPrivateBroadcasts field if non-nil, zero value otherwise. - -### GetAccessPrivateBroadcastsOk - -`func (o *RepositoryTokenRefreshRequest) GetAccessPrivateBroadcastsOk() (*bool, bool)` - -GetAccessPrivateBroadcastsOk returns a tuple with the AccessPrivateBroadcasts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAccessPrivateBroadcasts - -`func (o *RepositoryTokenRefreshRequest) SetAccessPrivateBroadcasts(v bool)` - -SetAccessPrivateBroadcasts sets AccessPrivateBroadcasts field to given value. - -### HasAccessPrivateBroadcasts - -`func (o *RepositoryTokenRefreshRequest) HasAccessPrivateBroadcasts() bool` - -HasAccessPrivateBroadcasts returns a boolean if a field has been set. - ### GetEulaRequired `func (o *RepositoryTokenRefreshRequest) GetEulaRequired() bool` diff --git a/docs/RepositoryTokenRequest.md b/docs/RepositoryTokenRequest.md index d1fa5ec7..7b7fe697 100644 --- a/docs/RepositoryTokenRequest.md +++ b/docs/RepositoryTokenRequest.md @@ -4,7 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**AccessPrivateBroadcasts** | Pointer to **bool** | If enabled, this token can be used for private broadcasts | [optional] **EulaRequired** | Pointer to **bool** | If checked, a EULA acceptance is required for this token. | [optional] **IsActive** | Pointer to **bool** | If enabled, the token will allow downloads based on configured restrictions (if any). | [optional] **LimitBandwidth** | Pointer to **NullableInt64** | The maximum download bandwidth allowed for the token. Values are expressed as the selected unit of bandwidth. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. | [optional] @@ -40,31 +39,6 @@ NewRepositoryTokenRequestWithDefaults instantiates a new RepositoryTokenRequest 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 -### GetAccessPrivateBroadcasts - -`func (o *RepositoryTokenRequest) GetAccessPrivateBroadcasts() bool` - -GetAccessPrivateBroadcasts returns the AccessPrivateBroadcasts field if non-nil, zero value otherwise. - -### GetAccessPrivateBroadcastsOk - -`func (o *RepositoryTokenRequest) GetAccessPrivateBroadcastsOk() (*bool, bool)` - -GetAccessPrivateBroadcastsOk returns a tuple with the AccessPrivateBroadcasts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAccessPrivateBroadcasts - -`func (o *RepositoryTokenRequest) SetAccessPrivateBroadcasts(v bool)` - -SetAccessPrivateBroadcasts sets AccessPrivateBroadcasts field to given value. - -### HasAccessPrivateBroadcasts - -`func (o *RepositoryTokenRequest) HasAccessPrivateBroadcasts() bool` - -HasAccessPrivateBroadcasts returns a boolean if a field has been set. - ### GetEulaRequired `func (o *RepositoryTokenRequest) GetEulaRequired() bool` diff --git a/docs/RepositoryTokenRequestPatch.md b/docs/RepositoryTokenRequestPatch.md index 8f0dd1b3..af340c8f 100644 --- a/docs/RepositoryTokenRequestPatch.md +++ b/docs/RepositoryTokenRequestPatch.md @@ -4,7 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**AccessPrivateBroadcasts** | Pointer to **bool** | If enabled, this token can be used for private broadcasts | [optional] **EulaRequired** | Pointer to **bool** | If checked, a EULA acceptance is required for this token. | [optional] **IsActive** | Pointer to **bool** | If enabled, the token will allow downloads based on configured restrictions (if any). | [optional] **LimitBandwidth** | Pointer to **NullableInt64** | The maximum download bandwidth allowed for the token. Values are expressed as the selected unit of bandwidth. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. | [optional] @@ -40,31 +39,6 @@ NewRepositoryTokenRequestPatchWithDefaults instantiates a new RepositoryTokenReq 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 -### GetAccessPrivateBroadcasts - -`func (o *RepositoryTokenRequestPatch) GetAccessPrivateBroadcasts() bool` - -GetAccessPrivateBroadcasts returns the AccessPrivateBroadcasts field if non-nil, zero value otherwise. - -### GetAccessPrivateBroadcastsOk - -`func (o *RepositoryTokenRequestPatch) GetAccessPrivateBroadcastsOk() (*bool, bool)` - -GetAccessPrivateBroadcastsOk returns a tuple with the AccessPrivateBroadcasts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAccessPrivateBroadcasts - -`func (o *RepositoryTokenRequestPatch) SetAccessPrivateBroadcasts(v bool)` - -SetAccessPrivateBroadcasts sets AccessPrivateBroadcasts field to given value. - -### HasAccessPrivateBroadcasts - -`func (o *RepositoryTokenRequestPatch) HasAccessPrivateBroadcasts() bool` - -HasAccessPrivateBroadcasts returns a boolean if a field has been set. - ### GetEulaRequired `func (o *RepositoryTokenRequestPatch) GetEulaRequired() bool` diff --git a/docs/RpmUpstream.md b/docs/RpmUpstream.md index e754c192..bff4a27c 100644 --- a/docs/RpmUpstream.md +++ b/docs/RpmUpstream.md @@ -24,7 +24,7 @@ Name | Type | Description | Notes **HasFailedSignatureVerification** | Pointer to **bool** | Whether the upstream has failed signature verification. | [optional] [readonly] **IncludeSources** | Pointer to **bool** | When checked, source packages will be available from this upstream. | [optional] **IndexPackageCount** | Pointer to **NullableInt64** | The number of packages available in this upstream source | [optional] [readonly] -**IndexStatus** | Pointer to **string** | The current indexing status of this upstream source | [optional] [readonly] +**IndexStatus** | Pointer to **NullableString** | The current indexing status of this upstream source | [optional] [readonly] **IsActive** | Pointer to **bool** | Whether or not this upstream is active and ready for requests. | [optional] **LastIndexed** | Pointer to **string** | The last time this upstream source was indexed | [optional] [readonly] **Mode** | Pointer to **string** | The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. | [optional] [default to "Proxy Only"] @@ -666,6 +666,16 @@ SetIndexStatus sets IndexStatus field to given value. HasIndexStatus returns a boolean if a field has been set. +### SetIndexStatusNil + +`func (o *RpmUpstream) SetIndexStatusNil(b bool)` + + SetIndexStatusNil sets the value for IndexStatus to be an explicit nil + +### UnsetIndexStatus +`func (o *RpmUpstream) UnsetIndexStatus()` + +UnsetIndexStatus ensures that no value is present for IndexStatus, not even an explicit nil ### GetIsActive `func (o *RpmUpstream) GetIsActive() bool` diff --git a/docs/RubyUpstream.md b/docs/RubyUpstream.md index 6048e4d0..7b2461f5 100644 --- a/docs/RubyUpstream.md +++ b/docs/RubyUpstream.md @@ -18,7 +18,7 @@ Name | Type | Description | Notes **ExtraValue2** | Pointer to **NullableString** | The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] **HasFailedSignatureVerification** | Pointer to **bool** | Whether the upstream has failed signature verification. | [optional] [readonly] **IndexPackageCount** | Pointer to **NullableInt64** | The number of packages available in this upstream source | [optional] [readonly] -**IndexStatus** | Pointer to **string** | The current indexing status of this upstream source | [optional] [readonly] +**IndexStatus** | Pointer to **NullableString** | The current indexing status of this upstream source | [optional] [readonly] **IsActive** | Pointer to **bool** | Whether or not this upstream is active and ready for requests. | [optional] **LastIndexed** | Pointer to **string** | The last time this upstream source was indexed | [optional] [readonly] **Mode** | Pointer to **string** | The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. | [optional] [default to "Proxy Only"] @@ -494,6 +494,16 @@ SetIndexStatus sets IndexStatus field to given value. HasIndexStatus returns a boolean if a field has been set. +### SetIndexStatusNil + +`func (o *RubyUpstream) SetIndexStatusNil(b bool)` + + SetIndexStatusNil sets the value for IndexStatus to be an explicit nil + +### UnsetIndexStatus +`func (o *RubyUpstream) UnsetIndexStatus()` + +UnsetIndexStatus ensures that no value is present for IndexStatus, not even an explicit nil ### GetIsActive `func (o *RubyUpstream) GetIsActive() bool` diff --git a/docs/SwiftUpstream.md b/docs/SwiftUpstream.md index 3bb1d2a5..39496785 100644 --- a/docs/SwiftUpstream.md +++ b/docs/SwiftUpstream.md @@ -18,7 +18,7 @@ Name | Type | Description | Notes **ExtraValue2** | Pointer to **NullableString** | The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] **HasFailedSignatureVerification** | Pointer to **bool** | Whether the upstream has failed signature verification. | [optional] [readonly] **IndexPackageCount** | Pointer to **NullableInt64** | The number of packages available in this upstream source | [optional] [readonly] -**IndexStatus** | Pointer to **string** | The current indexing status of this upstream source | [optional] [readonly] +**IndexStatus** | Pointer to **NullableString** | The current indexing status of this upstream source | [optional] [readonly] **IsActive** | Pointer to **bool** | Whether or not this upstream is active and ready for requests. | [optional] **LastIndexed** | Pointer to **string** | The last time this upstream source was indexed | [optional] [readonly] **Mode** | Pointer to **string** | The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. | [optional] [default to "Proxy Only"] @@ -494,6 +494,16 @@ SetIndexStatus sets IndexStatus field to given value. HasIndexStatus returns a boolean if a field has been set. +### SetIndexStatusNil + +`func (o *SwiftUpstream) SetIndexStatusNil(b bool)` + + SetIndexStatusNil sets the value for IndexStatus to be an explicit nil + +### UnsetIndexStatus +`func (o *SwiftUpstream) UnsetIndexStatus()` + +UnsetIndexStatus ensures that no value is present for IndexStatus, not even an explicit nil ### GetIsActive `func (o *SwiftUpstream) GetIsActive() bool` diff --git a/model_allocated_limit.go b/model_allocated_limit.go index b1e2cf4e..0e339e9b 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_allocated_limit_raw.go b/model_allocated_limit_raw.go index c7bdef27..058050f6 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_alpine_package_upload.go b/model_alpine_package_upload.go index 33788f38..aa1cc381 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_alpine_package_upload_request.go b/model_alpine_package_upload_request.go index f94e9a3e..f71a64ba 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_alpine_upstream.go b/model_alpine_upstream.go index c6981d5d..5cbd497a 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ @@ -50,7 +50,7 @@ type AlpineUpstream struct { // The number of packages available in this upstream source IndexPackageCount NullableInt64 `json:"index_package_count,omitempty"` // The current indexing status of this upstream source - IndexStatus *string `json:"index_status,omitempty"` + IndexStatus NullableString `json:"index_status,omitempty"` // Whether or not this upstream is active and ready for requests. IsActive *bool `json:"is_active,omitempty"` // The last time this upstream source was indexed @@ -62,9 +62,17 @@ type AlpineUpstream struct { // When true, this upstream source is pending validation. PendingValidation *bool `json:"pending_validation,omitempty"` // Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. - Priority *int64 `json:"priority,omitempty"` - SlugPerm *string `json:"slug_perm,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"` - UpdatedAt *time.Time `json:"updated_at,omitempty"` + Priority *int64 `json:"priority,omitempty"` + // A base64-encoded RSA public key in PEM format used to verify package signatures. + RsaKeyInline NullableString `json:"rsa_key_inline,omitempty"` + // When provided, Cloudsmith will fetch and validate the RSA public key at this URL and use it to verify package signatures from this upstream. + RsaKeyUrl NullableString `json:"rsa_key_url,omitempty"` + // The RSA signature verification mode for this upstream. + RsaVerification *string `json:"rsa_verification,omitempty"` + // The RSA signature verification status for this upstream. + RsaVerificationStatus *string `json:"rsa_verification_status,omitempty"` + SlugPerm *string `json:"slug_perm,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` // The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. UpstreamUrl string `json:"upstream_url"` // If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. @@ -85,6 +93,8 @@ func NewAlpineUpstream(name string, upstreamUrl string) *AlpineUpstream { var mode string = "Proxy Only" this.Mode = &mode this.Name = name + var rsaVerification string = "Allow All" + this.RsaVerification = &rsaVerification this.UpstreamUrl = upstreamUrl return &this } @@ -98,6 +108,8 @@ func NewAlpineUpstreamWithDefaults() *AlpineUpstream { this.AuthMode = &authMode var mode string = "Proxy Only" this.Mode = &mode + var rsaVerification string = "Allow All" + this.RsaVerification = &rsaVerification return &this } @@ -626,36 +638,47 @@ func (o *AlpineUpstream) UnsetIndexPackageCount() { o.IndexPackageCount.Unset() } -// GetIndexStatus returns the IndexStatus field value if set, zero value otherwise. +// GetIndexStatus returns the IndexStatus field value if set, zero value otherwise (both if not set or set to explicit null). func (o *AlpineUpstream) GetIndexStatus() string { - if o == nil || IsNil(o.IndexStatus) { + if o == nil || IsNil(o.IndexStatus.Get()) { var ret string return ret } - return *o.IndexStatus + return *o.IndexStatus.Get() } // GetIndexStatusOk returns a tuple with the IndexStatus 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 *AlpineUpstream) GetIndexStatusOk() (*string, bool) { - if o == nil || IsNil(o.IndexStatus) { + if o == nil { return nil, false } - return o.IndexStatus, true + return o.IndexStatus.Get(), o.IndexStatus.IsSet() } // HasIndexStatus returns a boolean if a field has been set. func (o *AlpineUpstream) HasIndexStatus() bool { - if o != nil && !IsNil(o.IndexStatus) { + if o != nil && o.IndexStatus.IsSet() { return true } return false } -// SetIndexStatus gets a reference to the given string and assigns it to the IndexStatus field. +// SetIndexStatus gets a reference to the given NullableString and assigns it to the IndexStatus field. func (o *AlpineUpstream) SetIndexStatus(v string) { - o.IndexStatus = &v + o.IndexStatus.Set(&v) +} + +// SetIndexStatusNil sets the value for IndexStatus to be an explicit nil +func (o *AlpineUpstream) SetIndexStatusNil() { + o.IndexStatus.Set(nil) +} + +// UnsetIndexStatus ensures that no value is present for IndexStatus, not even an explicit nil +func (o *AlpineUpstream) UnsetIndexStatus() { + o.IndexStatus.Unset() } // GetIsActive returns the IsActive field value if set, zero value otherwise. @@ -842,6 +865,156 @@ func (o *AlpineUpstream) SetPriority(v int64) { o.Priority = &v } +// GetRsaKeyInline returns the RsaKeyInline field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlpineUpstream) GetRsaKeyInline() string { + if o == nil || IsNil(o.RsaKeyInline.Get()) { + var ret string + return ret + } + return *o.RsaKeyInline.Get() +} + +// GetRsaKeyInlineOk returns a tuple with the RsaKeyInline 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 *AlpineUpstream) GetRsaKeyInlineOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.RsaKeyInline.Get(), o.RsaKeyInline.IsSet() +} + +// HasRsaKeyInline returns a boolean if a field has been set. +func (o *AlpineUpstream) HasRsaKeyInline() bool { + if o != nil && o.RsaKeyInline.IsSet() { + return true + } + + return false +} + +// SetRsaKeyInline gets a reference to the given NullableString and assigns it to the RsaKeyInline field. +func (o *AlpineUpstream) SetRsaKeyInline(v string) { + o.RsaKeyInline.Set(&v) +} + +// SetRsaKeyInlineNil sets the value for RsaKeyInline to be an explicit nil +func (o *AlpineUpstream) SetRsaKeyInlineNil() { + o.RsaKeyInline.Set(nil) +} + +// UnsetRsaKeyInline ensures that no value is present for RsaKeyInline, not even an explicit nil +func (o *AlpineUpstream) UnsetRsaKeyInline() { + o.RsaKeyInline.Unset() +} + +// GetRsaKeyUrl returns the RsaKeyUrl field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlpineUpstream) GetRsaKeyUrl() string { + if o == nil || IsNil(o.RsaKeyUrl.Get()) { + var ret string + return ret + } + return *o.RsaKeyUrl.Get() +} + +// GetRsaKeyUrlOk returns a tuple with the RsaKeyUrl 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 *AlpineUpstream) GetRsaKeyUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.RsaKeyUrl.Get(), o.RsaKeyUrl.IsSet() +} + +// HasRsaKeyUrl returns a boolean if a field has been set. +func (o *AlpineUpstream) HasRsaKeyUrl() bool { + if o != nil && o.RsaKeyUrl.IsSet() { + return true + } + + return false +} + +// SetRsaKeyUrl gets a reference to the given NullableString and assigns it to the RsaKeyUrl field. +func (o *AlpineUpstream) SetRsaKeyUrl(v string) { + o.RsaKeyUrl.Set(&v) +} + +// SetRsaKeyUrlNil sets the value for RsaKeyUrl to be an explicit nil +func (o *AlpineUpstream) SetRsaKeyUrlNil() { + o.RsaKeyUrl.Set(nil) +} + +// UnsetRsaKeyUrl ensures that no value is present for RsaKeyUrl, not even an explicit nil +func (o *AlpineUpstream) UnsetRsaKeyUrl() { + o.RsaKeyUrl.Unset() +} + +// GetRsaVerification returns the RsaVerification field value if set, zero value otherwise. +func (o *AlpineUpstream) GetRsaVerification() string { + if o == nil || IsNil(o.RsaVerification) { + var ret string + return ret + } + return *o.RsaVerification +} + +// GetRsaVerificationOk returns a tuple with the RsaVerification field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlpineUpstream) GetRsaVerificationOk() (*string, bool) { + if o == nil || IsNil(o.RsaVerification) { + return nil, false + } + return o.RsaVerification, true +} + +// HasRsaVerification returns a boolean if a field has been set. +func (o *AlpineUpstream) HasRsaVerification() bool { + if o != nil && !IsNil(o.RsaVerification) { + return true + } + + return false +} + +// SetRsaVerification gets a reference to the given string and assigns it to the RsaVerification field. +func (o *AlpineUpstream) SetRsaVerification(v string) { + o.RsaVerification = &v +} + +// GetRsaVerificationStatus returns the RsaVerificationStatus field value if set, zero value otherwise. +func (o *AlpineUpstream) GetRsaVerificationStatus() string { + if o == nil || IsNil(o.RsaVerificationStatus) { + var ret string + return ret + } + return *o.RsaVerificationStatus +} + +// GetRsaVerificationStatusOk returns a tuple with the RsaVerificationStatus field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlpineUpstream) GetRsaVerificationStatusOk() (*string, bool) { + if o == nil || IsNil(o.RsaVerificationStatus) { + return nil, false + } + return o.RsaVerificationStatus, true +} + +// HasRsaVerificationStatus returns a boolean if a field has been set. +func (o *AlpineUpstream) HasRsaVerificationStatus() bool { + if o != nil && !IsNil(o.RsaVerificationStatus) { + return true + } + + return false +} + +// SetRsaVerificationStatus gets a reference to the given string and assigns it to the RsaVerificationStatus field. +func (o *AlpineUpstream) SetRsaVerificationStatus(v string) { + o.RsaVerificationStatus = &v +} + // GetSlugPerm returns the SlugPerm field value if set, zero value otherwise. func (o *AlpineUpstream) GetSlugPerm() string { if o == nil || IsNil(o.SlugPerm) { @@ -1014,8 +1187,8 @@ func (o AlpineUpstream) ToMap() (map[string]interface{}, error) { if o.IndexPackageCount.IsSet() { toSerialize["index_package_count"] = o.IndexPackageCount.Get() } - if !IsNil(o.IndexStatus) { - toSerialize["index_status"] = o.IndexStatus + if o.IndexStatus.IsSet() { + toSerialize["index_status"] = o.IndexStatus.Get() } if !IsNil(o.IsActive) { toSerialize["is_active"] = o.IsActive @@ -1033,6 +1206,18 @@ func (o AlpineUpstream) ToMap() (map[string]interface{}, error) { if !IsNil(o.Priority) { toSerialize["priority"] = o.Priority } + if o.RsaKeyInline.IsSet() { + toSerialize["rsa_key_inline"] = o.RsaKeyInline.Get() + } + if o.RsaKeyUrl.IsSet() { + toSerialize["rsa_key_url"] = o.RsaKeyUrl.Get() + } + if !IsNil(o.RsaVerification) { + toSerialize["rsa_verification"] = o.RsaVerification + } + if !IsNil(o.RsaVerificationStatus) { + toSerialize["rsa_verification_status"] = o.RsaVerificationStatus + } if !IsNil(o.SlugPerm) { toSerialize["slug_perm"] = o.SlugPerm } @@ -1108,6 +1293,10 @@ func (o *AlpineUpstream) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "name") delete(additionalProperties, "pending_validation") delete(additionalProperties, "priority") + delete(additionalProperties, "rsa_key_inline") + delete(additionalProperties, "rsa_key_url") + delete(additionalProperties, "rsa_verification") + delete(additionalProperties, "rsa_verification_status") delete(additionalProperties, "slug_perm") delete(additionalProperties, "updated_at") delete(additionalProperties, "upstream_url") diff --git a/model_alpine_upstream_request.go b/model_alpine_upstream_request.go index 6dc1f089..0f24141a 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ @@ -43,6 +43,10 @@ type AlpineUpstreamRequest struct { Name string `json:"name" validate:"regexp=^\\\\w[\\\\w \\\\-'\\\\.\\/()]+$"` // Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. Priority *int64 `json:"priority,omitempty"` + // When provided, Cloudsmith will fetch and validate the RSA public key at this URL and use it to verify package signatures from this upstream. + RsaKeyUrl NullableString `json:"rsa_key_url,omitempty"` + // The RSA signature verification mode for this upstream. + RsaVerification *string `json:"rsa_verification,omitempty"` // The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. UpstreamUrl string `json:"upstream_url"` // If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. @@ -63,6 +67,8 @@ func NewAlpineUpstreamRequest(name string, upstreamUrl string) *AlpineUpstreamRe var mode string = "Proxy Only" this.Mode = &mode this.Name = name + var rsaVerification string = "Allow All" + this.RsaVerification = &rsaVerification this.UpstreamUrl = upstreamUrl return &this } @@ -76,6 +82,8 @@ func NewAlpineUpstreamRequestWithDefaults() *AlpineUpstreamRequest { this.AuthMode = &authMode var mode string = "Proxy Only" this.Mode = &mode + var rsaVerification string = "Allow All" + this.RsaVerification = &rsaVerification return &this } @@ -489,6 +497,81 @@ func (o *AlpineUpstreamRequest) SetPriority(v int64) { o.Priority = &v } +// GetRsaKeyUrl returns the RsaKeyUrl field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlpineUpstreamRequest) GetRsaKeyUrl() string { + if o == nil || IsNil(o.RsaKeyUrl.Get()) { + var ret string + return ret + } + return *o.RsaKeyUrl.Get() +} + +// GetRsaKeyUrlOk returns a tuple with the RsaKeyUrl 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 *AlpineUpstreamRequest) GetRsaKeyUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.RsaKeyUrl.Get(), o.RsaKeyUrl.IsSet() +} + +// HasRsaKeyUrl returns a boolean if a field has been set. +func (o *AlpineUpstreamRequest) HasRsaKeyUrl() bool { + if o != nil && o.RsaKeyUrl.IsSet() { + return true + } + + return false +} + +// SetRsaKeyUrl gets a reference to the given NullableString and assigns it to the RsaKeyUrl field. +func (o *AlpineUpstreamRequest) SetRsaKeyUrl(v string) { + o.RsaKeyUrl.Set(&v) +} + +// SetRsaKeyUrlNil sets the value for RsaKeyUrl to be an explicit nil +func (o *AlpineUpstreamRequest) SetRsaKeyUrlNil() { + o.RsaKeyUrl.Set(nil) +} + +// UnsetRsaKeyUrl ensures that no value is present for RsaKeyUrl, not even an explicit nil +func (o *AlpineUpstreamRequest) UnsetRsaKeyUrl() { + o.RsaKeyUrl.Unset() +} + +// GetRsaVerification returns the RsaVerification field value if set, zero value otherwise. +func (o *AlpineUpstreamRequest) GetRsaVerification() string { + if o == nil || IsNil(o.RsaVerification) { + var ret string + return ret + } + return *o.RsaVerification +} + +// GetRsaVerificationOk returns a tuple with the RsaVerification field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlpineUpstreamRequest) GetRsaVerificationOk() (*string, bool) { + if o == nil || IsNil(o.RsaVerification) { + return nil, false + } + return o.RsaVerification, true +} + +// HasRsaVerification returns a boolean if a field has been set. +func (o *AlpineUpstreamRequest) HasRsaVerification() bool { + if o != nil && !IsNil(o.RsaVerification) { + return true + } + + return false +} + +// SetRsaVerification gets a reference to the given string and assigns it to the RsaVerification field. +func (o *AlpineUpstreamRequest) SetRsaVerification(v string) { + o.RsaVerification = &v +} + // GetUpstreamUrl returns the UpstreamUrl field value func (o *AlpineUpstreamRequest) GetUpstreamUrl() string { if o == nil { @@ -586,6 +669,12 @@ func (o AlpineUpstreamRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Priority) { toSerialize["priority"] = o.Priority } + if o.RsaKeyUrl.IsSet() { + toSerialize["rsa_key_url"] = o.RsaKeyUrl.Get() + } + if !IsNil(o.RsaVerification) { + toSerialize["rsa_verification"] = o.RsaVerification + } toSerialize["upstream_url"] = o.UpstreamUrl if !IsNil(o.VerifySsl) { toSerialize["verify_ssl"] = o.VerifySsl @@ -645,6 +734,8 @@ func (o *AlpineUpstreamRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "mode") delete(additionalProperties, "name") delete(additionalProperties, "priority") + delete(additionalProperties, "rsa_key_url") + delete(additionalProperties, "rsa_verification") delete(additionalProperties, "upstream_url") delete(additionalProperties, "verify_ssl") o.AdditionalProperties = additionalProperties diff --git a/model_alpine_upstream_request_patch.go b/model_alpine_upstream_request_patch.go index 18bf614f..52e0d7b1 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ @@ -42,6 +42,10 @@ type AlpineUpstreamRequestPatch struct { Name *string `json:"name,omitempty" validate:"regexp=^\\\\w[\\\\w \\\\-'\\\\.\\/()]+$"` // Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. Priority *int64 `json:"priority,omitempty"` + // When provided, Cloudsmith will fetch and validate the RSA public key at this URL and use it to verify package signatures from this upstream. + RsaKeyUrl NullableString `json:"rsa_key_url,omitempty"` + // The RSA signature verification mode for this upstream. + RsaVerification *string `json:"rsa_verification,omitempty"` // The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. UpstreamUrl *string `json:"upstream_url,omitempty"` // If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. @@ -61,6 +65,8 @@ func NewAlpineUpstreamRequestPatch() *AlpineUpstreamRequestPatch { this.AuthMode = &authMode var mode string = "Proxy Only" this.Mode = &mode + var rsaVerification string = "Allow All" + this.RsaVerification = &rsaVerification return &this } @@ -73,6 +79,8 @@ func NewAlpineUpstreamRequestPatchWithDefaults() *AlpineUpstreamRequestPatch { this.AuthMode = &authMode var mode string = "Proxy Only" this.Mode = &mode + var rsaVerification string = "Allow All" + this.RsaVerification = &rsaVerification return &this } @@ -494,6 +502,81 @@ func (o *AlpineUpstreamRequestPatch) SetPriority(v int64) { o.Priority = &v } +// GetRsaKeyUrl returns the RsaKeyUrl field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlpineUpstreamRequestPatch) GetRsaKeyUrl() string { + if o == nil || IsNil(o.RsaKeyUrl.Get()) { + var ret string + return ret + } + return *o.RsaKeyUrl.Get() +} + +// GetRsaKeyUrlOk returns a tuple with the RsaKeyUrl 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 *AlpineUpstreamRequestPatch) GetRsaKeyUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.RsaKeyUrl.Get(), o.RsaKeyUrl.IsSet() +} + +// HasRsaKeyUrl returns a boolean if a field has been set. +func (o *AlpineUpstreamRequestPatch) HasRsaKeyUrl() bool { + if o != nil && o.RsaKeyUrl.IsSet() { + return true + } + + return false +} + +// SetRsaKeyUrl gets a reference to the given NullableString and assigns it to the RsaKeyUrl field. +func (o *AlpineUpstreamRequestPatch) SetRsaKeyUrl(v string) { + o.RsaKeyUrl.Set(&v) +} + +// SetRsaKeyUrlNil sets the value for RsaKeyUrl to be an explicit nil +func (o *AlpineUpstreamRequestPatch) SetRsaKeyUrlNil() { + o.RsaKeyUrl.Set(nil) +} + +// UnsetRsaKeyUrl ensures that no value is present for RsaKeyUrl, not even an explicit nil +func (o *AlpineUpstreamRequestPatch) UnsetRsaKeyUrl() { + o.RsaKeyUrl.Unset() +} + +// GetRsaVerification returns the RsaVerification field value if set, zero value otherwise. +func (o *AlpineUpstreamRequestPatch) GetRsaVerification() string { + if o == nil || IsNil(o.RsaVerification) { + var ret string + return ret + } + return *o.RsaVerification +} + +// GetRsaVerificationOk returns a tuple with the RsaVerification field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlpineUpstreamRequestPatch) GetRsaVerificationOk() (*string, bool) { + if o == nil || IsNil(o.RsaVerification) { + return nil, false + } + return o.RsaVerification, true +} + +// HasRsaVerification returns a boolean if a field has been set. +func (o *AlpineUpstreamRequestPatch) HasRsaVerification() bool { + if o != nil && !IsNil(o.RsaVerification) { + return true + } + + return false +} + +// SetRsaVerification gets a reference to the given string and assigns it to the RsaVerification field. +func (o *AlpineUpstreamRequestPatch) SetRsaVerification(v string) { + o.RsaVerification = &v +} + // GetUpstreamUrl returns the UpstreamUrl field value if set, zero value otherwise. func (o *AlpineUpstreamRequestPatch) GetUpstreamUrl() string { if o == nil || IsNil(o.UpstreamUrl) { @@ -601,6 +684,12 @@ func (o AlpineUpstreamRequestPatch) ToMap() (map[string]interface{}, error) { if !IsNil(o.Priority) { toSerialize["priority"] = o.Priority } + if o.RsaKeyUrl.IsSet() { + toSerialize["rsa_key_url"] = o.RsaKeyUrl.Get() + } + if !IsNil(o.RsaVerification) { + toSerialize["rsa_verification"] = o.RsaVerification + } if !IsNil(o.UpstreamUrl) { toSerialize["upstream_url"] = o.UpstreamUrl } @@ -640,6 +729,8 @@ func (o *AlpineUpstreamRequestPatch) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "mode") delete(additionalProperties, "name") delete(additionalProperties, "priority") + delete(additionalProperties, "rsa_key_url") + delete(additionalProperties, "rsa_verification") delete(additionalProperties, "upstream_url") delete(additionalProperties, "verify_ssl") o.AdditionalProperties = additionalProperties diff --git a/model_architecture.go b/model_architecture.go index 3f66c902..61200709 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_broadcast_token.go b/model_broadcast_token.go index f6125f86..4ff4e4f0 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_broadcast_token_input.go b/model_broadcast_token_input.go index bb8c3154..51155a6a 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_cargo_package_upload.go b/model_cargo_package_upload.go index 9d433622..4dda00c7 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_cargo_package_upload_request.go b/model_cargo_package_upload_request.go index dc5ab5d7..3b913cf7 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_cargo_upstream.go b/model_cargo_upstream.go index 85c82f4f..9d4ac570 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ @@ -50,7 +50,7 @@ type CargoUpstream struct { // The number of packages available in this upstream source IndexPackageCount NullableInt64 `json:"index_package_count,omitempty"` // The current indexing status of this upstream source - IndexStatus *string `json:"index_status,omitempty"` + IndexStatus NullableString `json:"index_status,omitempty"` // Whether or not this upstream is active and ready for requests. IsActive *bool `json:"is_active,omitempty"` // The last time this upstream source was indexed @@ -626,36 +626,47 @@ func (o *CargoUpstream) UnsetIndexPackageCount() { o.IndexPackageCount.Unset() } -// GetIndexStatus returns the IndexStatus field value if set, zero value otherwise. +// GetIndexStatus returns the IndexStatus field value if set, zero value otherwise (both if not set or set to explicit null). func (o *CargoUpstream) GetIndexStatus() string { - if o == nil || IsNil(o.IndexStatus) { + if o == nil || IsNil(o.IndexStatus.Get()) { var ret string return ret } - return *o.IndexStatus + return *o.IndexStatus.Get() } // GetIndexStatusOk returns a tuple with the IndexStatus 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 *CargoUpstream) GetIndexStatusOk() (*string, bool) { - if o == nil || IsNil(o.IndexStatus) { + if o == nil { return nil, false } - return o.IndexStatus, true + return o.IndexStatus.Get(), o.IndexStatus.IsSet() } // HasIndexStatus returns a boolean if a field has been set. func (o *CargoUpstream) HasIndexStatus() bool { - if o != nil && !IsNil(o.IndexStatus) { + if o != nil && o.IndexStatus.IsSet() { return true } return false } -// SetIndexStatus gets a reference to the given string and assigns it to the IndexStatus field. +// SetIndexStatus gets a reference to the given NullableString and assigns it to the IndexStatus field. func (o *CargoUpstream) SetIndexStatus(v string) { - o.IndexStatus = &v + o.IndexStatus.Set(&v) +} + +// SetIndexStatusNil sets the value for IndexStatus to be an explicit nil +func (o *CargoUpstream) SetIndexStatusNil() { + o.IndexStatus.Set(nil) +} + +// UnsetIndexStatus ensures that no value is present for IndexStatus, not even an explicit nil +func (o *CargoUpstream) UnsetIndexStatus() { + o.IndexStatus.Unset() } // GetIsActive returns the IsActive field value if set, zero value otherwise. @@ -1014,8 +1025,8 @@ func (o CargoUpstream) ToMap() (map[string]interface{}, error) { if o.IndexPackageCount.IsSet() { toSerialize["index_package_count"] = o.IndexPackageCount.Get() } - if !IsNil(o.IndexStatus) { - toSerialize["index_status"] = o.IndexStatus + if o.IndexStatus.IsSet() { + toSerialize["index_status"] = o.IndexStatus.Get() } if !IsNil(o.IsActive) { toSerialize["is_active"] = o.IsActive diff --git a/model_cargo_upstream_request.go b/model_cargo_upstream_request.go index 945e8a78..cdc8ba1b 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_cargo_upstream_request_patch.go b/model_cargo_upstream_request_patch.go index 666d00db..e231ef45 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_cocoapods_package_upload.go b/model_cocoapods_package_upload.go index 932dcbc8..5efbdd34 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_cocoapods_package_upload_request.go b/model_cocoapods_package_upload_request.go index 51b508e5..ba80a583 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_common_bandwidth_metrics.go b/model_common_bandwidth_metrics.go index 997e2ce2..1f24cf26 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_common_bandwidth_metrics_value.go b/model_common_bandwidth_metrics_value.go index 57f7a762..183f9075 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_common_downloads_metrics.go b/model_common_downloads_metrics.go index fe7aba48..1cd664c8 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_common_downloads_metrics_value.go b/model_common_downloads_metrics_value.go index 6ebeabf4..31c80cfa 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_common_metrics.go b/model_common_metrics.go index a008d2ff..31b22702 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_composer_package_upload.go b/model_composer_package_upload.go index 4b219cb3..fba67654 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_composer_package_upload_request.go b/model_composer_package_upload_request.go index 360c5c16..9297a322 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_composer_upstream.go b/model_composer_upstream.go index 716e8686..67c39da1 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ @@ -50,7 +50,7 @@ type ComposerUpstream struct { // The number of packages available in this upstream source IndexPackageCount NullableInt64 `json:"index_package_count,omitempty"` // The current indexing status of this upstream source - IndexStatus *string `json:"index_status,omitempty"` + IndexStatus NullableString `json:"index_status,omitempty"` // Whether or not this upstream is active and ready for requests. IsActive *bool `json:"is_active,omitempty"` // The last time this upstream source was indexed @@ -626,36 +626,47 @@ func (o *ComposerUpstream) UnsetIndexPackageCount() { o.IndexPackageCount.Unset() } -// GetIndexStatus returns the IndexStatus field value if set, zero value otherwise. +// GetIndexStatus returns the IndexStatus field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ComposerUpstream) GetIndexStatus() string { - if o == nil || IsNil(o.IndexStatus) { + if o == nil || IsNil(o.IndexStatus.Get()) { var ret string return ret } - return *o.IndexStatus + return *o.IndexStatus.Get() } // GetIndexStatusOk returns a tuple with the IndexStatus 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 *ComposerUpstream) GetIndexStatusOk() (*string, bool) { - if o == nil || IsNil(o.IndexStatus) { + if o == nil { return nil, false } - return o.IndexStatus, true + return o.IndexStatus.Get(), o.IndexStatus.IsSet() } // HasIndexStatus returns a boolean if a field has been set. func (o *ComposerUpstream) HasIndexStatus() bool { - if o != nil && !IsNil(o.IndexStatus) { + if o != nil && o.IndexStatus.IsSet() { return true } return false } -// SetIndexStatus gets a reference to the given string and assigns it to the IndexStatus field. +// SetIndexStatus gets a reference to the given NullableString and assigns it to the IndexStatus field. func (o *ComposerUpstream) SetIndexStatus(v string) { - o.IndexStatus = &v + o.IndexStatus.Set(&v) +} + +// SetIndexStatusNil sets the value for IndexStatus to be an explicit nil +func (o *ComposerUpstream) SetIndexStatusNil() { + o.IndexStatus.Set(nil) +} + +// UnsetIndexStatus ensures that no value is present for IndexStatus, not even an explicit nil +func (o *ComposerUpstream) UnsetIndexStatus() { + o.IndexStatus.Unset() } // GetIsActive returns the IsActive field value if set, zero value otherwise. @@ -1014,8 +1025,8 @@ func (o ComposerUpstream) ToMap() (map[string]interface{}, error) { if o.IndexPackageCount.IsSet() { toSerialize["index_package_count"] = o.IndexPackageCount.Get() } - if !IsNil(o.IndexStatus) { - toSerialize["index_status"] = o.IndexStatus + if o.IndexStatus.IsSet() { + toSerialize["index_status"] = o.IndexStatus.Get() } if !IsNil(o.IsActive) { toSerialize["is_active"] = o.IsActive diff --git a/model_composer_upstream_request.go b/model_composer_upstream_request.go index 08245454..69fbc047 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_composer_upstream_request_patch.go b/model_composer_upstream_request_patch.go index 45c30258..abf2d1e4 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_conan_package_upload.go b/model_conan_package_upload.go index 4ab888f2..15314467 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_conan_package_upload_request.go b/model_conan_package_upload_request.go index c541ce72..5fb3d8aa 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_conda_package_upload.go b/model_conda_package_upload.go index b7fce5f2..72ac2c2e 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_conda_package_upload_request.go b/model_conda_package_upload_request.go index c1f525de..ba3ea923 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_conda_upstream.go b/model_conda_upstream.go index 9412c104..23fc296c 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ @@ -50,7 +50,7 @@ type CondaUpstream struct { // The number of packages available in this upstream source IndexPackageCount NullableInt64 `json:"index_package_count,omitempty"` // The current indexing status of this upstream source - IndexStatus *string `json:"index_status,omitempty"` + IndexStatus NullableString `json:"index_status,omitempty"` // Whether or not this upstream is active and ready for requests. IsActive *bool `json:"is_active,omitempty"` // The last time this upstream source was indexed @@ -626,36 +626,47 @@ func (o *CondaUpstream) UnsetIndexPackageCount() { o.IndexPackageCount.Unset() } -// GetIndexStatus returns the IndexStatus field value if set, zero value otherwise. +// GetIndexStatus returns the IndexStatus field value if set, zero value otherwise (both if not set or set to explicit null). func (o *CondaUpstream) GetIndexStatus() string { - if o == nil || IsNil(o.IndexStatus) { + if o == nil || IsNil(o.IndexStatus.Get()) { var ret string return ret } - return *o.IndexStatus + return *o.IndexStatus.Get() } // GetIndexStatusOk returns a tuple with the IndexStatus 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 *CondaUpstream) GetIndexStatusOk() (*string, bool) { - if o == nil || IsNil(o.IndexStatus) { + if o == nil { return nil, false } - return o.IndexStatus, true + return o.IndexStatus.Get(), o.IndexStatus.IsSet() } // HasIndexStatus returns a boolean if a field has been set. func (o *CondaUpstream) HasIndexStatus() bool { - if o != nil && !IsNil(o.IndexStatus) { + if o != nil && o.IndexStatus.IsSet() { return true } return false } -// SetIndexStatus gets a reference to the given string and assigns it to the IndexStatus field. +// SetIndexStatus gets a reference to the given NullableString and assigns it to the IndexStatus field. func (o *CondaUpstream) SetIndexStatus(v string) { - o.IndexStatus = &v + o.IndexStatus.Set(&v) +} + +// SetIndexStatusNil sets the value for IndexStatus to be an explicit nil +func (o *CondaUpstream) SetIndexStatusNil() { + o.IndexStatus.Set(nil) +} + +// UnsetIndexStatus ensures that no value is present for IndexStatus, not even an explicit nil +func (o *CondaUpstream) UnsetIndexStatus() { + o.IndexStatus.Unset() } // GetIsActive returns the IsActive field value if set, zero value otherwise. @@ -1014,8 +1025,8 @@ func (o CondaUpstream) ToMap() (map[string]interface{}, error) { if o.IndexPackageCount.IsSet() { toSerialize["index_package_count"] = o.IndexPackageCount.Get() } - if !IsNil(o.IndexStatus) { - toSerialize["index_status"] = o.IndexStatus + if o.IndexStatus.IsSet() { + toSerialize["index_status"] = o.IndexStatus.Get() } if !IsNil(o.IsActive) { toSerialize["is_active"] = o.IsActive diff --git a/model_conda_upstream_request.go b/model_conda_upstream_request.go index 4c5d480d..8c7dcbde 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_conda_upstream_request_patch.go b/model_conda_upstream_request_patch.go index 96476c2d..c970566e 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_cran_package_upload.go b/model_cran_package_upload.go index 2897c8a1..4a377503 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_cran_package_upload_request.go b/model_cran_package_upload_request.go index ec2a4a54..7b5335be 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_cran_upstream.go b/model_cran_upstream.go index 07227949..c8054c77 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ @@ -50,7 +50,7 @@ type CranUpstream struct { // The number of packages available in this upstream source IndexPackageCount NullableInt64 `json:"index_package_count,omitempty"` // The current indexing status of this upstream source - IndexStatus *string `json:"index_status,omitempty"` + IndexStatus NullableString `json:"index_status,omitempty"` // Whether or not this upstream is active and ready for requests. IsActive *bool `json:"is_active,omitempty"` // The last time this upstream source was indexed @@ -626,36 +626,47 @@ func (o *CranUpstream) UnsetIndexPackageCount() { o.IndexPackageCount.Unset() } -// GetIndexStatus returns the IndexStatus field value if set, zero value otherwise. +// GetIndexStatus returns the IndexStatus field value if set, zero value otherwise (both if not set or set to explicit null). func (o *CranUpstream) GetIndexStatus() string { - if o == nil || IsNil(o.IndexStatus) { + if o == nil || IsNil(o.IndexStatus.Get()) { var ret string return ret } - return *o.IndexStatus + return *o.IndexStatus.Get() } // GetIndexStatusOk returns a tuple with the IndexStatus 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 *CranUpstream) GetIndexStatusOk() (*string, bool) { - if o == nil || IsNil(o.IndexStatus) { + if o == nil { return nil, false } - return o.IndexStatus, true + return o.IndexStatus.Get(), o.IndexStatus.IsSet() } // HasIndexStatus returns a boolean if a field has been set. func (o *CranUpstream) HasIndexStatus() bool { - if o != nil && !IsNil(o.IndexStatus) { + if o != nil && o.IndexStatus.IsSet() { return true } return false } -// SetIndexStatus gets a reference to the given string and assigns it to the IndexStatus field. +// SetIndexStatus gets a reference to the given NullableString and assigns it to the IndexStatus field. func (o *CranUpstream) SetIndexStatus(v string) { - o.IndexStatus = &v + o.IndexStatus.Set(&v) +} + +// SetIndexStatusNil sets the value for IndexStatus to be an explicit nil +func (o *CranUpstream) SetIndexStatusNil() { + o.IndexStatus.Set(nil) +} + +// UnsetIndexStatus ensures that no value is present for IndexStatus, not even an explicit nil +func (o *CranUpstream) UnsetIndexStatus() { + o.IndexStatus.Unset() } // GetIsActive returns the IsActive field value if set, zero value otherwise. @@ -1014,8 +1025,8 @@ func (o CranUpstream) ToMap() (map[string]interface{}, error) { if o.IndexPackageCount.IsSet() { toSerialize["index_package_count"] = o.IndexPackageCount.Get() } - if !IsNil(o.IndexStatus) { - toSerialize["index_status"] = o.IndexStatus + if o.IndexStatus.IsSet() { + toSerialize["index_status"] = o.IndexStatus.Get() } if !IsNil(o.IsActive) { toSerialize["is_active"] = o.IsActive diff --git a/model_cran_upstream_request.go b/model_cran_upstream_request.go index adea1b17..c308f162 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_cran_upstream_request_patch.go b/model_cran_upstream_request_patch.go index 2a89cd23..7658e4bb 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_dart_package_upload.go b/model_dart_package_upload.go index dd5e7fb4..985e9a6b 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_dart_package_upload_request.go b/model_dart_package_upload_request.go index c4c41824..7f7e355f 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_dart_upstream.go b/model_dart_upstream.go index f9c4bed5..ba695f17 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ @@ -50,7 +50,7 @@ type DartUpstream struct { // The number of packages available in this upstream source IndexPackageCount NullableInt64 `json:"index_package_count,omitempty"` // The current indexing status of this upstream source - IndexStatus *string `json:"index_status,omitempty"` + IndexStatus NullableString `json:"index_status,omitempty"` // Whether or not this upstream is active and ready for requests. IsActive *bool `json:"is_active,omitempty"` // The last time this upstream source was indexed @@ -626,36 +626,47 @@ func (o *DartUpstream) UnsetIndexPackageCount() { o.IndexPackageCount.Unset() } -// GetIndexStatus returns the IndexStatus field value if set, zero value otherwise. +// GetIndexStatus returns the IndexStatus field value if set, zero value otherwise (both if not set or set to explicit null). func (o *DartUpstream) GetIndexStatus() string { - if o == nil || IsNil(o.IndexStatus) { + if o == nil || IsNil(o.IndexStatus.Get()) { var ret string return ret } - return *o.IndexStatus + return *o.IndexStatus.Get() } // GetIndexStatusOk returns a tuple with the IndexStatus 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 *DartUpstream) GetIndexStatusOk() (*string, bool) { - if o == nil || IsNil(o.IndexStatus) { + if o == nil { return nil, false } - return o.IndexStatus, true + return o.IndexStatus.Get(), o.IndexStatus.IsSet() } // HasIndexStatus returns a boolean if a field has been set. func (o *DartUpstream) HasIndexStatus() bool { - if o != nil && !IsNil(o.IndexStatus) { + if o != nil && o.IndexStatus.IsSet() { return true } return false } -// SetIndexStatus gets a reference to the given string and assigns it to the IndexStatus field. +// SetIndexStatus gets a reference to the given NullableString and assigns it to the IndexStatus field. func (o *DartUpstream) SetIndexStatus(v string) { - o.IndexStatus = &v + o.IndexStatus.Set(&v) +} + +// SetIndexStatusNil sets the value for IndexStatus to be an explicit nil +func (o *DartUpstream) SetIndexStatusNil() { + o.IndexStatus.Set(nil) +} + +// UnsetIndexStatus ensures that no value is present for IndexStatus, not even an explicit nil +func (o *DartUpstream) UnsetIndexStatus() { + o.IndexStatus.Unset() } // GetIsActive returns the IsActive field value if set, zero value otherwise. @@ -1014,8 +1025,8 @@ func (o DartUpstream) ToMap() (map[string]interface{}, error) { if o.IndexPackageCount.IsSet() { toSerialize["index_package_count"] = o.IndexPackageCount.Get() } - if !IsNil(o.IndexStatus) { - toSerialize["index_status"] = o.IndexStatus + if o.IndexStatus.IsSet() { + toSerialize["index_status"] = o.IndexStatus.Get() } if !IsNil(o.IsActive) { toSerialize["is_active"] = o.IsActive diff --git a/model_dart_upstream_request.go b/model_dart_upstream_request.go index 450b707a..cd77156f 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_dart_upstream_request_patch.go b/model_dart_upstream_request_patch.go index 068cf211..e2a29ca8 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_deb_package_upload.go b/model_deb_package_upload.go index 95d8dadf..8efb172e 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_deb_package_upload_request.go b/model_deb_package_upload_request.go index 0591e44c..c68047f3 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_deb_upstream.go b/model_deb_upstream.go index d02bb3ff..b3bdabad 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ @@ -63,7 +63,7 @@ type DebUpstream struct { // The number of packages available in this upstream source IndexPackageCount NullableInt64 `json:"index_package_count,omitempty"` // The current indexing status of this upstream source - IndexStatus *string `json:"index_status,omitempty"` + IndexStatus NullableString `json:"index_status,omitempty"` // Whether or not this upstream is active and ready for requests. IsActive *bool `json:"is_active,omitempty"` // The last time this upstream source was indexed @@ -886,36 +886,47 @@ func (o *DebUpstream) UnsetIndexPackageCount() { o.IndexPackageCount.Unset() } -// GetIndexStatus returns the IndexStatus field value if set, zero value otherwise. +// GetIndexStatus returns the IndexStatus field value if set, zero value otherwise (both if not set or set to explicit null). func (o *DebUpstream) GetIndexStatus() string { - if o == nil || IsNil(o.IndexStatus) { + if o == nil || IsNil(o.IndexStatus.Get()) { var ret string return ret } - return *o.IndexStatus + return *o.IndexStatus.Get() } // GetIndexStatusOk returns a tuple with the IndexStatus 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 *DebUpstream) GetIndexStatusOk() (*string, bool) { - if o == nil || IsNil(o.IndexStatus) { + if o == nil { return nil, false } - return o.IndexStatus, true + return o.IndexStatus.Get(), o.IndexStatus.IsSet() } // HasIndexStatus returns a boolean if a field has been set. func (o *DebUpstream) HasIndexStatus() bool { - if o != nil && !IsNil(o.IndexStatus) { + if o != nil && o.IndexStatus.IsSet() { return true } return false } -// SetIndexStatus gets a reference to the given string and assigns it to the IndexStatus field. +// SetIndexStatus gets a reference to the given NullableString and assigns it to the IndexStatus field. func (o *DebUpstream) SetIndexStatus(v string) { - o.IndexStatus = &v + o.IndexStatus.Set(&v) +} + +// SetIndexStatusNil sets the value for IndexStatus to be an explicit nil +func (o *DebUpstream) SetIndexStatusNil() { + o.IndexStatus.Set(nil) +} + +// UnsetIndexStatus ensures that no value is present for IndexStatus, not even an explicit nil +func (o *DebUpstream) UnsetIndexStatus() { + o.IndexStatus.Unset() } // GetIsActive returns the IsActive field value if set, zero value otherwise. @@ -1368,8 +1379,8 @@ func (o DebUpstream) ToMap() (map[string]interface{}, error) { if o.IndexPackageCount.IsSet() { toSerialize["index_package_count"] = o.IndexPackageCount.Get() } - if !IsNil(o.IndexStatus) { - toSerialize["index_status"] = o.IndexStatus + if o.IndexStatus.IsSet() { + toSerialize["index_status"] = o.IndexStatus.Get() } if !IsNil(o.IsActive) { toSerialize["is_active"] = o.IsActive diff --git a/model_deb_upstream_request.go b/model_deb_upstream_request.go index 12026117..b16de8a6 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_deb_upstream_request_patch.go b/model_deb_upstream_request_patch.go index 3859f863..f09fc899 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_distribution.go b/model_distribution.go index 52a87283..1ecb7298 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_distribution_full.go b/model_distribution_full.go index e76462eb..33132816 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_distribution_version.go b/model_distribution_version.go index 7b6de68b..d7852155 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_docker_package_upload.go b/model_docker_package_upload.go index 992a0d65..ce16fd0b 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_docker_package_upload_request.go b/model_docker_package_upload_request.go index 28cfc6c9..31af77aa 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_docker_upstream.go b/model_docker_upstream.go index d8fb9bd8..0559aa24 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_docker_upstream_request.go b/model_docker_upstream_request.go index af5c36f8..2b5817db 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_docker_upstream_request_patch.go b/model_docker_upstream_request_patch.go index 5e5dd193..1f70b352 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_dynamic_mapping.go b/model_dynamic_mapping.go index 382381db..c7791b4d 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_entitlement_usage_metrics.go b/model_entitlement_usage_metrics.go index b28b5620..afdaaf35 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_error_detail.go b/model_error_detail.go index 7afcfe5c..a45596b9 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_eula.go b/model_eula.go index 8950daa6..50f93578 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_format.go b/model_format.go index bf9e4ac4..c7679517 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_format_support.go b/model_format_support.go index d13ee0a6..992f24c1 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_format_support_upstream.go b/model_format_support_upstream.go index 060b2275..67664069 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_generic_package_upload.go b/model_generic_package_upload.go index bb068e36..c516acb0 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_generic_package_upload_request.go b/model_generic_package_upload_request.go index 2f5a93db..f6fc8d21 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_generic_upstream.go b/model_generic_upstream.go index cd6e9710..4f260c76 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ @@ -50,7 +50,7 @@ type GenericUpstream struct { // The number of packages available in this upstream source IndexPackageCount NullableInt64 `json:"index_package_count,omitempty"` // The current indexing status of this upstream source - IndexStatus *string `json:"index_status,omitempty"` + IndexStatus NullableString `json:"index_status,omitempty"` // Whether or not this upstream is active and ready for requests. IsActive *bool `json:"is_active,omitempty"` // The last time this upstream source was indexed @@ -628,36 +628,47 @@ func (o *GenericUpstream) UnsetIndexPackageCount() { o.IndexPackageCount.Unset() } -// GetIndexStatus returns the IndexStatus field value if set, zero value otherwise. +// GetIndexStatus returns the IndexStatus field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GenericUpstream) GetIndexStatus() string { - if o == nil || IsNil(o.IndexStatus) { + if o == nil || IsNil(o.IndexStatus.Get()) { var ret string return ret } - return *o.IndexStatus + return *o.IndexStatus.Get() } // GetIndexStatusOk returns a tuple with the IndexStatus 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 *GenericUpstream) GetIndexStatusOk() (*string, bool) { - if o == nil || IsNil(o.IndexStatus) { + if o == nil { return nil, false } - return o.IndexStatus, true + return o.IndexStatus.Get(), o.IndexStatus.IsSet() } // HasIndexStatus returns a boolean if a field has been set. func (o *GenericUpstream) HasIndexStatus() bool { - if o != nil && !IsNil(o.IndexStatus) { + if o != nil && o.IndexStatus.IsSet() { return true } return false } -// SetIndexStatus gets a reference to the given string and assigns it to the IndexStatus field. +// SetIndexStatus gets a reference to the given NullableString and assigns it to the IndexStatus field. func (o *GenericUpstream) SetIndexStatus(v string) { - o.IndexStatus = &v + o.IndexStatus.Set(&v) +} + +// SetIndexStatusNil sets the value for IndexStatus to be an explicit nil +func (o *GenericUpstream) SetIndexStatusNil() { + o.IndexStatus.Set(nil) +} + +// UnsetIndexStatus ensures that no value is present for IndexStatus, not even an explicit nil +func (o *GenericUpstream) UnsetIndexStatus() { + o.IndexStatus.Unset() } // GetIsActive returns the IsActive field value if set, zero value otherwise. @@ -1048,8 +1059,8 @@ func (o GenericUpstream) ToMap() (map[string]interface{}, error) { if o.IndexPackageCount.IsSet() { toSerialize["index_package_count"] = o.IndexPackageCount.Get() } - if !IsNil(o.IndexStatus) { - toSerialize["index_status"] = o.IndexStatus + if o.IndexStatus.IsSet() { + toSerialize["index_status"] = o.IndexStatus.Get() } if !IsNil(o.IsActive) { toSerialize["is_active"] = o.IsActive diff --git a/model_generic_upstream_request.go b/model_generic_upstream_request.go index b408b76b..ec93cfeb 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_generic_upstream_request_patch.go b/model_generic_upstream_request_patch.go index 99c29c70..f7c1b2e9 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_geo_ip_location.go b/model_geo_ip_location.go index d4af4dcb..4178898b 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_go_package_upload.go b/model_go_package_upload.go index a69c1990..d908b818 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_go_package_upload_request.go b/model_go_package_upload_request.go index 5578189f..bb3f59c5 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_go_upstream.go b/model_go_upstream.go index a234c54c..97bdaa0b 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ @@ -50,7 +50,7 @@ type GoUpstream struct { // The number of packages available in this upstream source IndexPackageCount NullableInt64 `json:"index_package_count,omitempty"` // The current indexing status of this upstream source - IndexStatus *string `json:"index_status,omitempty"` + IndexStatus NullableString `json:"index_status,omitempty"` // Whether or not this upstream is active and ready for requests. IsActive *bool `json:"is_active,omitempty"` // The last time this upstream source was indexed @@ -626,36 +626,47 @@ func (o *GoUpstream) UnsetIndexPackageCount() { o.IndexPackageCount.Unset() } -// GetIndexStatus returns the IndexStatus field value if set, zero value otherwise. +// GetIndexStatus returns the IndexStatus field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GoUpstream) GetIndexStatus() string { - if o == nil || IsNil(o.IndexStatus) { + if o == nil || IsNil(o.IndexStatus.Get()) { var ret string return ret } - return *o.IndexStatus + return *o.IndexStatus.Get() } // GetIndexStatusOk returns a tuple with the IndexStatus 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 *GoUpstream) GetIndexStatusOk() (*string, bool) { - if o == nil || IsNil(o.IndexStatus) { + if o == nil { return nil, false } - return o.IndexStatus, true + return o.IndexStatus.Get(), o.IndexStatus.IsSet() } // HasIndexStatus returns a boolean if a field has been set. func (o *GoUpstream) HasIndexStatus() bool { - if o != nil && !IsNil(o.IndexStatus) { + if o != nil && o.IndexStatus.IsSet() { return true } return false } -// SetIndexStatus gets a reference to the given string and assigns it to the IndexStatus field. +// SetIndexStatus gets a reference to the given NullableString and assigns it to the IndexStatus field. func (o *GoUpstream) SetIndexStatus(v string) { - o.IndexStatus = &v + o.IndexStatus.Set(&v) +} + +// SetIndexStatusNil sets the value for IndexStatus to be an explicit nil +func (o *GoUpstream) SetIndexStatusNil() { + o.IndexStatus.Set(nil) +} + +// UnsetIndexStatus ensures that no value is present for IndexStatus, not even an explicit nil +func (o *GoUpstream) UnsetIndexStatus() { + o.IndexStatus.Unset() } // GetIsActive returns the IsActive field value if set, zero value otherwise. @@ -1014,8 +1025,8 @@ func (o GoUpstream) ToMap() (map[string]interface{}, error) { if o.IndexPackageCount.IsSet() { toSerialize["index_package_count"] = o.IndexPackageCount.Get() } - if !IsNil(o.IndexStatus) { - toSerialize["index_status"] = o.IndexStatus + if o.IndexStatus.IsSet() { + toSerialize["index_status"] = o.IndexStatus.Get() } if !IsNil(o.IsActive) { toSerialize["is_active"] = o.IsActive diff --git a/model_go_upstream_request.go b/model_go_upstream_request.go index fc254ea3..c8c49336 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_go_upstream_request_patch.go b/model_go_upstream_request_patch.go index d1167999..c8eb3662 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_helm_package_upload.go b/model_helm_package_upload.go index ff316f84..9cc961e3 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_helm_package_upload_request.go b/model_helm_package_upload_request.go index c50265e7..c000551d 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_helm_upstream.go b/model_helm_upstream.go index eb37049d..e609ca3a 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ @@ -50,7 +50,7 @@ type HelmUpstream struct { // The number of packages available in this upstream source IndexPackageCount NullableInt64 `json:"index_package_count,omitempty"` // The current indexing status of this upstream source - IndexStatus *string `json:"index_status,omitempty"` + IndexStatus NullableString `json:"index_status,omitempty"` // Whether or not this upstream is active and ready for requests. IsActive *bool `json:"is_active,omitempty"` // The last time this upstream source was indexed @@ -626,36 +626,47 @@ func (o *HelmUpstream) UnsetIndexPackageCount() { o.IndexPackageCount.Unset() } -// GetIndexStatus returns the IndexStatus field value if set, zero value otherwise. +// GetIndexStatus returns the IndexStatus field value if set, zero value otherwise (both if not set or set to explicit null). func (o *HelmUpstream) GetIndexStatus() string { - if o == nil || IsNil(o.IndexStatus) { + if o == nil || IsNil(o.IndexStatus.Get()) { var ret string return ret } - return *o.IndexStatus + return *o.IndexStatus.Get() } // GetIndexStatusOk returns a tuple with the IndexStatus 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 *HelmUpstream) GetIndexStatusOk() (*string, bool) { - if o == nil || IsNil(o.IndexStatus) { + if o == nil { return nil, false } - return o.IndexStatus, true + return o.IndexStatus.Get(), o.IndexStatus.IsSet() } // HasIndexStatus returns a boolean if a field has been set. func (o *HelmUpstream) HasIndexStatus() bool { - if o != nil && !IsNil(o.IndexStatus) { + if o != nil && o.IndexStatus.IsSet() { return true } return false } -// SetIndexStatus gets a reference to the given string and assigns it to the IndexStatus field. +// SetIndexStatus gets a reference to the given NullableString and assigns it to the IndexStatus field. func (o *HelmUpstream) SetIndexStatus(v string) { - o.IndexStatus = &v + o.IndexStatus.Set(&v) +} + +// SetIndexStatusNil sets the value for IndexStatus to be an explicit nil +func (o *HelmUpstream) SetIndexStatusNil() { + o.IndexStatus.Set(nil) +} + +// UnsetIndexStatus ensures that no value is present for IndexStatus, not even an explicit nil +func (o *HelmUpstream) UnsetIndexStatus() { + o.IndexStatus.Unset() } // GetIsActive returns the IsActive field value if set, zero value otherwise. @@ -1014,8 +1025,8 @@ func (o HelmUpstream) ToMap() (map[string]interface{}, error) { if o.IndexPackageCount.IsSet() { toSerialize["index_package_count"] = o.IndexPackageCount.Get() } - if !IsNil(o.IndexStatus) { - toSerialize["index_status"] = o.IndexStatus + if o.IndexStatus.IsSet() { + toSerialize["index_status"] = o.IndexStatus.Get() } if !IsNil(o.IsActive) { toSerialize["is_active"] = o.IsActive diff --git a/model_helm_upstream_request.go b/model_helm_upstream_request.go index 8a0c3cc7..66d834fa 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_helm_upstream_request_patch.go b/model_helm_upstream_request_patch.go index 3c9cf82e..de950315 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_hex_package_upload.go b/model_hex_package_upload.go index 814ee6e9..18926db3 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_hex_package_upload_request.go b/model_hex_package_upload_request.go index 309a751a..9b4205ef 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_hex_upstream.go b/model_hex_upstream.go index daaead3a..2a0f3889 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ @@ -50,7 +50,7 @@ type HexUpstream struct { // The number of packages available in this upstream source IndexPackageCount NullableInt64 `json:"index_package_count,omitempty"` // The current indexing status of this upstream source - IndexStatus *string `json:"index_status,omitempty"` + IndexStatus NullableString `json:"index_status,omitempty"` // Whether or not this upstream is active and ready for requests. IsActive *bool `json:"is_active,omitempty"` // The last time this upstream source was indexed @@ -626,36 +626,47 @@ func (o *HexUpstream) UnsetIndexPackageCount() { o.IndexPackageCount.Unset() } -// GetIndexStatus returns the IndexStatus field value if set, zero value otherwise. +// GetIndexStatus returns the IndexStatus field value if set, zero value otherwise (both if not set or set to explicit null). func (o *HexUpstream) GetIndexStatus() string { - if o == nil || IsNil(o.IndexStatus) { + if o == nil || IsNil(o.IndexStatus.Get()) { var ret string return ret } - return *o.IndexStatus + return *o.IndexStatus.Get() } // GetIndexStatusOk returns a tuple with the IndexStatus 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 *HexUpstream) GetIndexStatusOk() (*string, bool) { - if o == nil || IsNil(o.IndexStatus) { + if o == nil { return nil, false } - return o.IndexStatus, true + return o.IndexStatus.Get(), o.IndexStatus.IsSet() } // HasIndexStatus returns a boolean if a field has been set. func (o *HexUpstream) HasIndexStatus() bool { - if o != nil && !IsNil(o.IndexStatus) { + if o != nil && o.IndexStatus.IsSet() { return true } return false } -// SetIndexStatus gets a reference to the given string and assigns it to the IndexStatus field. +// SetIndexStatus gets a reference to the given NullableString and assigns it to the IndexStatus field. func (o *HexUpstream) SetIndexStatus(v string) { - o.IndexStatus = &v + o.IndexStatus.Set(&v) +} + +// SetIndexStatusNil sets the value for IndexStatus to be an explicit nil +func (o *HexUpstream) SetIndexStatusNil() { + o.IndexStatus.Set(nil) +} + +// UnsetIndexStatus ensures that no value is present for IndexStatus, not even an explicit nil +func (o *HexUpstream) UnsetIndexStatus() { + o.IndexStatus.Unset() } // GetIsActive returns the IsActive field value if set, zero value otherwise. @@ -1014,8 +1025,8 @@ func (o HexUpstream) ToMap() (map[string]interface{}, error) { if o.IndexPackageCount.IsSet() { toSerialize["index_package_count"] = o.IndexPackageCount.Get() } - if !IsNil(o.IndexStatus) { - toSerialize["index_status"] = o.IndexStatus + if o.IndexStatus.IsSet() { + toSerialize["index_status"] = o.IndexStatus.Get() } if !IsNil(o.IsActive) { toSerialize["is_active"] = o.IsActive diff --git a/model_hex_upstream_request.go b/model_hex_upstream_request.go index 71a7d52f..ac387c15 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_hex_upstream_request_patch.go b/model_hex_upstream_request_patch.go index 5853dd43..dc10f07a 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_history.go b/model_history.go index de880d22..0503aefb 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_history_fieldset.go b/model_history_fieldset.go index 513189ea..19fe0a0f 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_history_fieldset_raw.go b/model_history_fieldset_raw.go index de466196..1fc23945 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_huggingface_package_upload.go b/model_huggingface_package_upload.go index 53d3fb2c..3e0a8d3a 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_huggingface_package_upload_request.go b/model_huggingface_package_upload_request.go index 884a87f7..f23f2079 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_huggingface_upstream.go b/model_huggingface_upstream.go index e06bb80f..f60e99a7 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ @@ -50,7 +50,7 @@ type HuggingfaceUpstream struct { // The number of packages available in this upstream source IndexPackageCount NullableInt64 `json:"index_package_count,omitempty"` // The current indexing status of this upstream source - IndexStatus *string `json:"index_status,omitempty"` + IndexStatus NullableString `json:"index_status,omitempty"` // Whether or not this upstream is active and ready for requests. IsActive *bool `json:"is_active,omitempty"` // The last time this upstream source was indexed @@ -626,36 +626,47 @@ func (o *HuggingfaceUpstream) UnsetIndexPackageCount() { o.IndexPackageCount.Unset() } -// GetIndexStatus returns the IndexStatus field value if set, zero value otherwise. +// GetIndexStatus returns the IndexStatus field value if set, zero value otherwise (both if not set or set to explicit null). func (o *HuggingfaceUpstream) GetIndexStatus() string { - if o == nil || IsNil(o.IndexStatus) { + if o == nil || IsNil(o.IndexStatus.Get()) { var ret string return ret } - return *o.IndexStatus + return *o.IndexStatus.Get() } // GetIndexStatusOk returns a tuple with the IndexStatus 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 *HuggingfaceUpstream) GetIndexStatusOk() (*string, bool) { - if o == nil || IsNil(o.IndexStatus) { + if o == nil { return nil, false } - return o.IndexStatus, true + return o.IndexStatus.Get(), o.IndexStatus.IsSet() } // HasIndexStatus returns a boolean if a field has been set. func (o *HuggingfaceUpstream) HasIndexStatus() bool { - if o != nil && !IsNil(o.IndexStatus) { + if o != nil && o.IndexStatus.IsSet() { return true } return false } -// SetIndexStatus gets a reference to the given string and assigns it to the IndexStatus field. +// SetIndexStatus gets a reference to the given NullableString and assigns it to the IndexStatus field. func (o *HuggingfaceUpstream) SetIndexStatus(v string) { - o.IndexStatus = &v + o.IndexStatus.Set(&v) +} + +// SetIndexStatusNil sets the value for IndexStatus to be an explicit nil +func (o *HuggingfaceUpstream) SetIndexStatusNil() { + o.IndexStatus.Set(nil) +} + +// UnsetIndexStatus ensures that no value is present for IndexStatus, not even an explicit nil +func (o *HuggingfaceUpstream) UnsetIndexStatus() { + o.IndexStatus.Unset() } // GetIsActive returns the IsActive field value if set, zero value otherwise. @@ -1014,8 +1025,8 @@ func (o HuggingfaceUpstream) ToMap() (map[string]interface{}, error) { if o.IndexPackageCount.IsSet() { toSerialize["index_package_count"] = o.IndexPackageCount.Get() } - if !IsNil(o.IndexStatus) { - toSerialize["index_status"] = o.IndexStatus + if o.IndexStatus.IsSet() { + toSerialize["index_status"] = o.IndexStatus.Get() } if !IsNil(o.IsActive) { toSerialize["is_active"] = o.IsActive diff --git a/model_huggingface_upstream_request.go b/model_huggingface_upstream_request.go index e16c3264..946d3790 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_huggingface_upstream_request_patch.go b/model_huggingface_upstream_request_patch.go index bf957e19..2c4a5aee 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_luarocks_package_upload.go b/model_luarocks_package_upload.go index 1acc5792..dd479db5 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_luarocks_package_upload_request.go b/model_luarocks_package_upload_request.go index ba77cb33..43bfc189 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_maven_package_upload.go b/model_maven_package_upload.go index 0b8cbc07..644a9011 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_maven_package_upload_request.go b/model_maven_package_upload_request.go index c888f14a..d2db907a 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_maven_upstream.go b/model_maven_upstream.go index 06456f78..669eb9f9 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ @@ -57,7 +57,7 @@ type MavenUpstream struct { // The number of packages available in this upstream source IndexPackageCount NullableInt64 `json:"index_package_count,omitempty"` // The current indexing status of this upstream source - IndexStatus *string `json:"index_status,omitempty"` + IndexStatus NullableString `json:"index_status,omitempty"` // Whether or not this upstream is active and ready for requests. IsActive *bool `json:"is_active,omitempty"` // The last time this upstream source was indexed @@ -795,36 +795,47 @@ func (o *MavenUpstream) UnsetIndexPackageCount() { o.IndexPackageCount.Unset() } -// GetIndexStatus returns the IndexStatus field value if set, zero value otherwise. +// GetIndexStatus returns the IndexStatus field value if set, zero value otherwise (both if not set or set to explicit null). func (o *MavenUpstream) GetIndexStatus() string { - if o == nil || IsNil(o.IndexStatus) { + if o == nil || IsNil(o.IndexStatus.Get()) { var ret string return ret } - return *o.IndexStatus + return *o.IndexStatus.Get() } // GetIndexStatusOk returns a tuple with the IndexStatus 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 *MavenUpstream) GetIndexStatusOk() (*string, bool) { - if o == nil || IsNil(o.IndexStatus) { + if o == nil { return nil, false } - return o.IndexStatus, true + return o.IndexStatus.Get(), o.IndexStatus.IsSet() } // HasIndexStatus returns a boolean if a field has been set. func (o *MavenUpstream) HasIndexStatus() bool { - if o != nil && !IsNil(o.IndexStatus) { + if o != nil && o.IndexStatus.IsSet() { return true } return false } -// SetIndexStatus gets a reference to the given string and assigns it to the IndexStatus field. +// SetIndexStatus gets a reference to the given NullableString and assigns it to the IndexStatus field. func (o *MavenUpstream) SetIndexStatus(v string) { - o.IndexStatus = &v + o.IndexStatus.Set(&v) +} + +// SetIndexStatusNil sets the value for IndexStatus to be an explicit nil +func (o *MavenUpstream) SetIndexStatusNil() { + o.IndexStatus.Set(nil) +} + +// UnsetIndexStatus ensures that no value is present for IndexStatus, not even an explicit nil +func (o *MavenUpstream) UnsetIndexStatus() { + o.IndexStatus.Unset() } // GetIsActive returns the IsActive field value if set, zero value otherwise. @@ -1259,8 +1270,8 @@ func (o MavenUpstream) ToMap() (map[string]interface{}, error) { if o.IndexPackageCount.IsSet() { toSerialize["index_package_count"] = o.IndexPackageCount.Get() } - if !IsNil(o.IndexStatus) { - toSerialize["index_status"] = o.IndexStatus + if o.IndexStatus.IsSet() { + toSerialize["index_status"] = o.IndexStatus.Get() } if !IsNil(o.IsActive) { toSerialize["is_active"] = o.IsActive diff --git a/model_maven_upstream_request.go b/model_maven_upstream_request.go index 56d4613b..13ecc3b7 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_maven_upstream_request_patch.go b/model_maven_upstream_request_patch.go index ed77f2e4..282cff95 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_mcp_package_upload.go b/model_mcp_package_upload.go new file mode 100644 index 00000000..9d8cc78c --- /dev/null +++ b/model_mcp_package_upload.go @@ -0,0 +1,3476 @@ +/* +Cloudsmith API (v1) + +The API to the Cloudsmith Service + +API version: 1.1137.0 +Contact: support@cloudsmith.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cloudsmith + +import ( + "encoding/json" + "time" +) + +// checks if the McpPackageUpload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &McpPackageUpload{} + +// McpPackageUpload struct for McpPackageUpload +type McpPackageUpload struct { + Architectures []Architecture `json:"architectures,omitempty"` + CdnUrl NullableString `json:"cdn_url,omitempty"` + ChecksumMd5 *string `json:"checksum_md5,omitempty"` + ChecksumSha1 *string `json:"checksum_sha1,omitempty"` + ChecksumSha256 *string `json:"checksum_sha256,omitempty"` + ChecksumSha512 *string `json:"checksum_sha512,omitempty"` + // A checksum of all of the package's dependencies. + 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"` + Distro NullableDistribution `json:"distro,omitempty"` + DistroVersion *DistributionVersion `json:"distro_version,omitempty"` + Downloads *int64 `json:"downloads,omitempty"` + // The epoch of the package version (if any). + Epoch NullableInt64 `json:"epoch,omitempty"` + Extension *string `json:"extension,omitempty"` + Filename *string `json:"filename,omitempty"` + Files []PackageFile `json:"files,omitempty"` + Format *string `json:"format,omitempty"` + FormatUrl *string `json:"format_url,omitempty"` + // Amount of storage that will be freed if this package is deleted + FreeableStorage *int64 `json:"freeable_storage,omitempty"` + FullyQualifiedName NullableString `json:"fully_qualified_name,omitempty"` + // 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"` + 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. + Name NullableString `json:"name,omitempty"` + Namespace *string `json:"namespace,omitempty"` + NamespaceUrl *string `json:"namespace_url,omitempty"` + NumFiles *int64 `json:"num_files,omitempty"` + OriginRepository *string `json:"origin_repository,omitempty"` + OriginRepositoryUrl *string `json:"origin_repository_url,omitempty"` + // The type of package contents. + PackageType *int64 `json:"package_type,omitempty"` + // Whether or not the package has violated any policy. + PolicyViolated *bool `json:"policy_violated,omitempty"` + // The raw license string. + RawLicense NullableString `json:"raw_license,omitempty"` + // The release of the package version (if any). + Release NullableString `json:"release,omitempty"` + Repository *string `json:"repository,omitempty"` + RepositoryUrl *string `json:"repository_url,omitempty"` + // The datetime the security scanning was completed. + SecurityScanCompletedAt NullableTime `json:"security_scan_completed_at,omitempty"` + // The datetime the security scanning was started. + SecurityScanStartedAt NullableTime `json:"security_scan_started_at,omitempty"` + SecurityScanStatus NullableString `json:"security_scan_status,omitempty"` + // The datetime the security scanning status was updated. + SecurityScanStatusUpdatedAt NullableTime `json:"security_scan_status_updated_at,omitempty"` + SelfHtmlUrl *string `json:"self_html_url,omitempty"` + SelfUrl *string `json:"self_url,omitempty"` + SelfWebappUrl *string `json:"self_webapp_url,omitempty"` + SignatureUrl NullableString `json:"signature_url,omitempty"` + // The calculated size of the package. + Size *int64 `json:"size,omitempty"` + // The public unique identifier for the package. + Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"` + SlugPerm *string `json:"slug_perm,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"` + // The SPDX license identifier for this package. + SpdxLicense NullableString `json:"spdx_license,omitempty"` + // The synchronisation (in progress) stage of the package. + Stage *int64 `json:"stage,omitempty"` + StageStr *string `json:"stage_str,omitempty"` + // The datetime the package stage was updated at. + StageUpdatedAt *time.Time `json:"stage_updated_at,omitempty"` + // The synchronisation status of the package. + Status *int64 `json:"status,omitempty"` + // A textual description for the synchronous status reason (if any + StatusReason NullableString `json:"status_reason,omitempty"` + StatusStr *string `json:"status_str,omitempty"` + // The datetime the package status was updated at. + StatusUpdatedAt *time.Time `json:"status_updated_at,omitempty"` + StatusUrl *string `json:"status_url,omitempty"` + Subtype *string `json:"subtype,omitempty"` + // A one-liner synopsis of this package. + Summary NullableString `json:"summary,omitempty"` + // The datetime the package sync was finished at. + SyncFinishedAt NullableTime `json:"sync_finished_at,omitempty"` + // Synchronisation progress (from 0-100) + SyncProgress *int64 `json:"sync_progress,omitempty"` + // All tags on the package, grouped by tag type. This includes immutable tags, but doesn't distinguish them from mutable. To see which tags are immutable specifically, see the tags_immutable field. + TagsAutomatic map[string]interface{} `json:"tags_automatic,omitempty"` + // All tags on the package, grouped by tag type. This includes immutable tags, but doesn't distinguish them from mutable. To see which tags are immutable specifically, see the tags_immutable field. + TagsImmutable map[string]interface{} `json:"tags_immutable,omitempty"` + TypeDisplay *string `json:"type_display,omitempty"` + // The date this package was uploaded. + UploadedAt *time.Time `json:"uploaded_at,omitempty"` + 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"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _McpPackageUpload McpPackageUpload + +// NewMcpPackageUpload instantiates a new McpPackageUpload 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 NewMcpPackageUpload() *McpPackageUpload { + this := McpPackageUpload{} + return &this +} + +// NewMcpPackageUploadWithDefaults instantiates a new McpPackageUpload 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 NewMcpPackageUploadWithDefaults() *McpPackageUpload { + this := McpPackageUpload{} + return &this +} + +// GetArchitectures returns the Architectures field value if set, zero value otherwise. +func (o *McpPackageUpload) GetArchitectures() []Architecture { + if o == nil || IsNil(o.Architectures) { + var ret []Architecture + return ret + } + return o.Architectures +} + +// GetArchitecturesOk returns a tuple with the Architectures field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *McpPackageUpload) GetArchitecturesOk() ([]Architecture, bool) { + if o == nil || IsNil(o.Architectures) { + return nil, false + } + return o.Architectures, true +} + +// HasArchitectures returns a boolean if a field has been set. +func (o *McpPackageUpload) HasArchitectures() bool { + if o != nil && !IsNil(o.Architectures) { + return true + } + + return false +} + +// SetArchitectures gets a reference to the given []Architecture and assigns it to the Architectures field. +func (o *McpPackageUpload) SetArchitectures(v []Architecture) { + o.Architectures = v +} + +// GetCdnUrl returns the CdnUrl field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *McpPackageUpload) GetCdnUrl() string { + if o == nil || IsNil(o.CdnUrl.Get()) { + var ret string + return ret + } + return *o.CdnUrl.Get() +} + +// GetCdnUrlOk returns a tuple with the CdnUrl 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) GetCdnUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CdnUrl.Get(), o.CdnUrl.IsSet() +} + +// HasCdnUrl returns a boolean if a field has been set. +func (o *McpPackageUpload) HasCdnUrl() bool { + if o != nil && o.CdnUrl.IsSet() { + return true + } + + return false +} + +// SetCdnUrl gets a reference to the given NullableString and assigns it to the CdnUrl field. +func (o *McpPackageUpload) SetCdnUrl(v string) { + o.CdnUrl.Set(&v) +} + +// SetCdnUrlNil sets the value for CdnUrl to be an explicit nil +func (o *McpPackageUpload) SetCdnUrlNil() { + o.CdnUrl.Set(nil) +} + +// UnsetCdnUrl ensures that no value is present for CdnUrl, not even an explicit nil +func (o *McpPackageUpload) UnsetCdnUrl() { + o.CdnUrl.Unset() +} + +// GetChecksumMd5 returns the ChecksumMd5 field value if set, zero value otherwise. +func (o *McpPackageUpload) GetChecksumMd5() string { + if o == nil || IsNil(o.ChecksumMd5) { + var ret string + return ret + } + return *o.ChecksumMd5 +} + +// GetChecksumMd5Ok returns a tuple with the ChecksumMd5 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *McpPackageUpload) GetChecksumMd5Ok() (*string, bool) { + if o == nil || IsNil(o.ChecksumMd5) { + return nil, false + } + return o.ChecksumMd5, true +} + +// HasChecksumMd5 returns a boolean if a field has been set. +func (o *McpPackageUpload) HasChecksumMd5() bool { + if o != nil && !IsNil(o.ChecksumMd5) { + return true + } + + return false +} + +// SetChecksumMd5 gets a reference to the given string and assigns it to the ChecksumMd5 field. +func (o *McpPackageUpload) SetChecksumMd5(v string) { + o.ChecksumMd5 = &v +} + +// GetChecksumSha1 returns the ChecksumSha1 field value if set, zero value otherwise. +func (o *McpPackageUpload) GetChecksumSha1() string { + if o == nil || IsNil(o.ChecksumSha1) { + var ret string + return ret + } + return *o.ChecksumSha1 +} + +// GetChecksumSha1Ok returns a tuple with the ChecksumSha1 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *McpPackageUpload) GetChecksumSha1Ok() (*string, bool) { + if o == nil || IsNil(o.ChecksumSha1) { + return nil, false + } + return o.ChecksumSha1, true +} + +// HasChecksumSha1 returns a boolean if a field has been set. +func (o *McpPackageUpload) HasChecksumSha1() bool { + if o != nil && !IsNil(o.ChecksumSha1) { + return true + } + + return false +} + +// SetChecksumSha1 gets a reference to the given string and assigns it to the ChecksumSha1 field. +func (o *McpPackageUpload) SetChecksumSha1(v string) { + o.ChecksumSha1 = &v +} + +// GetChecksumSha256 returns the ChecksumSha256 field value if set, zero value otherwise. +func (o *McpPackageUpload) GetChecksumSha256() string { + if o == nil || IsNil(o.ChecksumSha256) { + var ret string + return ret + } + return *o.ChecksumSha256 +} + +// GetChecksumSha256Ok returns a tuple with the ChecksumSha256 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *McpPackageUpload) GetChecksumSha256Ok() (*string, bool) { + if o == nil || IsNil(o.ChecksumSha256) { + return nil, false + } + return o.ChecksumSha256, true +} + +// HasChecksumSha256 returns a boolean if a field has been set. +func (o *McpPackageUpload) HasChecksumSha256() bool { + if o != nil && !IsNil(o.ChecksumSha256) { + return true + } + + return false +} + +// SetChecksumSha256 gets a reference to the given string and assigns it to the ChecksumSha256 field. +func (o *McpPackageUpload) SetChecksumSha256(v string) { + o.ChecksumSha256 = &v +} + +// GetChecksumSha512 returns the ChecksumSha512 field value if set, zero value otherwise. +func (o *McpPackageUpload) GetChecksumSha512() string { + if o == nil || IsNil(o.ChecksumSha512) { + var ret string + return ret + } + return *o.ChecksumSha512 +} + +// GetChecksumSha512Ok returns a tuple with the ChecksumSha512 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *McpPackageUpload) GetChecksumSha512Ok() (*string, bool) { + if o == nil || IsNil(o.ChecksumSha512) { + return nil, false + } + return o.ChecksumSha512, true +} + +// HasChecksumSha512 returns a boolean if a field has been set. +func (o *McpPackageUpload) HasChecksumSha512() bool { + if o != nil && !IsNil(o.ChecksumSha512) { + return true + } + + return false +} + +// SetChecksumSha512 gets a reference to the given string and assigns it to the ChecksumSha512 field. +func (o *McpPackageUpload) SetChecksumSha512(v string) { + o.ChecksumSha512 = &v +} + +// GetDependenciesChecksumMd5 returns the DependenciesChecksumMd5 field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *McpPackageUpload) GetDependenciesChecksumMd5() string { + if o == nil || IsNil(o.DependenciesChecksumMd5.Get()) { + var ret string + return ret + } + return *o.DependenciesChecksumMd5.Get() +} + +// GetDependenciesChecksumMd5Ok returns a tuple with the DependenciesChecksumMd5 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) GetDependenciesChecksumMd5Ok() (*string, bool) { + if o == nil { + return nil, false + } + return o.DependenciesChecksumMd5.Get(), o.DependenciesChecksumMd5.IsSet() +} + +// HasDependenciesChecksumMd5 returns a boolean if a field has been set. +func (o *McpPackageUpload) HasDependenciesChecksumMd5() bool { + if o != nil && o.DependenciesChecksumMd5.IsSet() { + return true + } + + return false +} + +// SetDependenciesChecksumMd5 gets a reference to the given NullableString and assigns it to the DependenciesChecksumMd5 field. +func (o *McpPackageUpload) SetDependenciesChecksumMd5(v string) { + o.DependenciesChecksumMd5.Set(&v) +} + +// SetDependenciesChecksumMd5Nil sets the value for DependenciesChecksumMd5 to be an explicit nil +func (o *McpPackageUpload) SetDependenciesChecksumMd5Nil() { + o.DependenciesChecksumMd5.Set(nil) +} + +// UnsetDependenciesChecksumMd5 ensures that no value is present for DependenciesChecksumMd5, not even an explicit nil +func (o *McpPackageUpload) UnsetDependenciesChecksumMd5() { + o.DependenciesChecksumMd5.Unset() +} + +// GetDependenciesUrl returns the DependenciesUrl field value if set, zero value otherwise. +func (o *McpPackageUpload) GetDependenciesUrl() string { + if o == nil || IsNil(o.DependenciesUrl) { + var ret string + return ret + } + return *o.DependenciesUrl +} + +// GetDependenciesUrlOk returns a tuple with the DependenciesUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *McpPackageUpload) GetDependenciesUrlOk() (*string, bool) { + if o == nil || IsNil(o.DependenciesUrl) { + return nil, false + } + return o.DependenciesUrl, true +} + +// HasDependenciesUrl returns a boolean if a field has been set. +func (o *McpPackageUpload) HasDependenciesUrl() bool { + if o != nil && !IsNil(o.DependenciesUrl) { + return true + } + + return false +} + +// SetDependenciesUrl gets a reference to the given string and assigns it to the DependenciesUrl field. +func (o *McpPackageUpload) SetDependenciesUrl(v string) { + o.DependenciesUrl = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *McpPackageUpload) GetDescription() string { + if o == nil || IsNil(o.Description.Get()) { + var ret string + return ret + } + return *o.Description.Get() +} + +// GetDescriptionOk returns a tuple with the Description 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) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Description.Get(), o.Description.IsSet() +} + +// HasDescription returns a boolean if a field has been set. +func (o *McpPackageUpload) HasDescription() bool { + if o != nil && o.Description.IsSet() { + return true + } + + return false +} + +// SetDescription gets a reference to the given NullableString and assigns it to the Description field. +func (o *McpPackageUpload) SetDescription(v string) { + o.Description.Set(&v) +} + +// SetDescriptionNil sets the value for Description to be an explicit nil +func (o *McpPackageUpload) SetDescriptionNil() { + o.Description.Set(nil) +} + +// UnsetDescription ensures that no value is present for Description, not even an explicit nil +func (o *McpPackageUpload) UnsetDescription() { + o.Description.Unset() +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *McpPackageUpload) GetDisplayName() string { + if o == nil || IsNil(o.DisplayName) { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *McpPackageUpload) GetDisplayNameOk() (*string, bool) { + if o == nil || IsNil(o.DisplayName) { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *McpPackageUpload) HasDisplayName() bool { + if o != nil && !IsNil(o.DisplayName) { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *McpPackageUpload) SetDisplayName(v string) { + o.DisplayName = &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()) { + var ret Distribution + return ret + } + return *o.Distro.Get() +} + +// GetDistroOk returns a tuple with the Distro 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) GetDistroOk() (*Distribution, bool) { + if o == nil { + return nil, false + } + return o.Distro.Get(), o.Distro.IsSet() +} + +// HasDistro returns a boolean if a field has been set. +func (o *McpPackageUpload) HasDistro() bool { + if o != nil && o.Distro.IsSet() { + return true + } + + return false +} + +// SetDistro gets a reference to the given NullableDistribution and assigns it to the Distro field. +func (o *McpPackageUpload) SetDistro(v Distribution) { + o.Distro.Set(&v) +} + +// SetDistroNil sets the value for Distro to be an explicit nil +func (o *McpPackageUpload) SetDistroNil() { + o.Distro.Set(nil) +} + +// UnsetDistro ensures that no value is present for Distro, not even an explicit nil +func (o *McpPackageUpload) UnsetDistro() { + o.Distro.Unset() +} + +// GetDistroVersion returns the DistroVersion field value if set, zero value otherwise. +func (o *McpPackageUpload) GetDistroVersion() DistributionVersion { + if o == nil || IsNil(o.DistroVersion) { + var ret DistributionVersion + return ret + } + return *o.DistroVersion +} + +// GetDistroVersionOk returns a tuple with the DistroVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *McpPackageUpload) GetDistroVersionOk() (*DistributionVersion, bool) { + if o == nil || IsNil(o.DistroVersion) { + return nil, false + } + return o.DistroVersion, true +} + +// HasDistroVersion returns a boolean if a field has been set. +func (o *McpPackageUpload) HasDistroVersion() bool { + if o != nil && !IsNil(o.DistroVersion) { + return true + } + + return false +} + +// SetDistroVersion gets a reference to the given DistributionVersion and assigns it to the DistroVersion field. +func (o *McpPackageUpload) SetDistroVersion(v DistributionVersion) { + o.DistroVersion = &v +} + +// GetDownloads returns the Downloads field value if set, zero value otherwise. +func (o *McpPackageUpload) GetDownloads() int64 { + if o == nil || IsNil(o.Downloads) { + var ret int64 + return ret + } + return *o.Downloads +} + +// GetDownloadsOk returns a tuple with the Downloads field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *McpPackageUpload) GetDownloadsOk() (*int64, bool) { + if o == nil || IsNil(o.Downloads) { + return nil, false + } + return o.Downloads, true +} + +// HasDownloads returns a boolean if a field has been set. +func (o *McpPackageUpload) HasDownloads() bool { + if o != nil && !IsNil(o.Downloads) { + return true + } + + return false +} + +// SetDownloads gets a reference to the given int64 and assigns it to the Downloads field. +func (o *McpPackageUpload) SetDownloads(v int64) { + o.Downloads = &v +} + +// GetEpoch returns the Epoch field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *McpPackageUpload) GetEpoch() int64 { + if o == nil || IsNil(o.Epoch.Get()) { + var ret int64 + return ret + } + return *o.Epoch.Get() +} + +// GetEpochOk returns a tuple with the Epoch 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) GetEpochOk() (*int64, bool) { + if o == nil { + return nil, false + } + return o.Epoch.Get(), o.Epoch.IsSet() +} + +// HasEpoch returns a boolean if a field has been set. +func (o *McpPackageUpload) HasEpoch() bool { + if o != nil && o.Epoch.IsSet() { + return true + } + + return false +} + +// SetEpoch gets a reference to the given NullableInt64 and assigns it to the Epoch field. +func (o *McpPackageUpload) SetEpoch(v int64) { + o.Epoch.Set(&v) +} + +// SetEpochNil sets the value for Epoch to be an explicit nil +func (o *McpPackageUpload) SetEpochNil() { + o.Epoch.Set(nil) +} + +// UnsetEpoch ensures that no value is present for Epoch, not even an explicit nil +func (o *McpPackageUpload) UnsetEpoch() { + o.Epoch.Unset() +} + +// GetExtension returns the Extension field value if set, zero value otherwise. +func (o *McpPackageUpload) GetExtension() string { + if o == nil || IsNil(o.Extension) { + var ret string + return ret + } + return *o.Extension +} + +// GetExtensionOk returns a tuple with the Extension field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *McpPackageUpload) GetExtensionOk() (*string, bool) { + if o == nil || IsNil(o.Extension) { + return nil, false + } + return o.Extension, true +} + +// HasExtension returns a boolean if a field has been set. +func (o *McpPackageUpload) HasExtension() bool { + if o != nil && !IsNil(o.Extension) { + return true + } + + return false +} + +// SetExtension gets a reference to the given string and assigns it to the Extension field. +func (o *McpPackageUpload) SetExtension(v string) { + o.Extension = &v +} + +// GetFilename returns the Filename field value if set, zero value otherwise. +func (o *McpPackageUpload) GetFilename() string { + if o == nil || IsNil(o.Filename) { + var ret string + return ret + } + return *o.Filename +} + +// GetFilenameOk returns a tuple with the Filename field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *McpPackageUpload) GetFilenameOk() (*string, bool) { + if o == nil || IsNil(o.Filename) { + return nil, false + } + return o.Filename, true +} + +// HasFilename returns a boolean if a field has been set. +func (o *McpPackageUpload) HasFilename() bool { + if o != nil && !IsNil(o.Filename) { + return true + } + + return false +} + +// SetFilename gets a reference to the given string and assigns it to the Filename field. +func (o *McpPackageUpload) SetFilename(v string) { + o.Filename = &v +} + +// GetFiles returns the Files field value if set, zero value otherwise. +func (o *McpPackageUpload) GetFiles() []PackageFile { + if o == nil || IsNil(o.Files) { + var ret []PackageFile + return ret + } + return o.Files +} + +// GetFilesOk returns a tuple with the Files field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *McpPackageUpload) GetFilesOk() ([]PackageFile, bool) { + if o == nil || IsNil(o.Files) { + return nil, false + } + return o.Files, true +} + +// HasFiles returns a boolean if a field has been set. +func (o *McpPackageUpload) HasFiles() bool { + if o != nil && !IsNil(o.Files) { + return true + } + + return false +} + +// SetFiles gets a reference to the given []PackageFile and assigns it to the Files field. +func (o *McpPackageUpload) SetFiles(v []PackageFile) { + o.Files = v +} + +// GetFormat returns the Format field value if set, zero value otherwise. +func (o *McpPackageUpload) GetFormat() string { + if o == nil || IsNil(o.Format) { + var ret string + return ret + } + return *o.Format +} + +// GetFormatOk returns a tuple with the Format field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *McpPackageUpload) GetFormatOk() (*string, bool) { + if o == nil || IsNil(o.Format) { + return nil, false + } + return o.Format, true +} + +// HasFormat returns a boolean if a field has been set. +func (o *McpPackageUpload) HasFormat() bool { + if o != nil && !IsNil(o.Format) { + return true + } + + return false +} + +// SetFormat gets a reference to the given string and assigns it to the Format field. +func (o *McpPackageUpload) SetFormat(v string) { + o.Format = &v +} + +// GetFormatUrl returns the FormatUrl field value if set, zero value otherwise. +func (o *McpPackageUpload) GetFormatUrl() string { + if o == nil || IsNil(o.FormatUrl) { + var ret string + return ret + } + return *o.FormatUrl +} + +// GetFormatUrlOk returns a tuple with the FormatUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *McpPackageUpload) GetFormatUrlOk() (*string, bool) { + if o == nil || IsNil(o.FormatUrl) { + return nil, false + } + return o.FormatUrl, true +} + +// HasFormatUrl returns a boolean if a field has been set. +func (o *McpPackageUpload) HasFormatUrl() bool { + if o != nil && !IsNil(o.FormatUrl) { + return true + } + + return false +} + +// SetFormatUrl gets a reference to the given string and assigns it to the FormatUrl field. +func (o *McpPackageUpload) SetFormatUrl(v string) { + o.FormatUrl = &v +} + +// GetFreeableStorage returns the FreeableStorage field value if set, zero value otherwise. +func (o *McpPackageUpload) GetFreeableStorage() int64 { + if o == nil || IsNil(o.FreeableStorage) { + var ret int64 + return ret + } + return *o.FreeableStorage +} + +// GetFreeableStorageOk returns a tuple with the FreeableStorage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *McpPackageUpload) GetFreeableStorageOk() (*int64, bool) { + if o == nil || IsNil(o.FreeableStorage) { + return nil, false + } + return o.FreeableStorage, true +} + +// HasFreeableStorage returns a boolean if a field has been set. +func (o *McpPackageUpload) HasFreeableStorage() bool { + if o != nil && !IsNil(o.FreeableStorage) { + return true + } + + return false +} + +// SetFreeableStorage gets a reference to the given int64 and assigns it to the FreeableStorage field. +func (o *McpPackageUpload) SetFreeableStorage(v int64) { + o.FreeableStorage = &v +} + +// GetFullyQualifiedName returns the FullyQualifiedName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *McpPackageUpload) GetFullyQualifiedName() string { + if o == nil || IsNil(o.FullyQualifiedName.Get()) { + var ret string + return ret + } + return *o.FullyQualifiedName.Get() +} + +// GetFullyQualifiedNameOk returns a tuple with the FullyQualifiedName 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) GetFullyQualifiedNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.FullyQualifiedName.Get(), o.FullyQualifiedName.IsSet() +} + +// HasFullyQualifiedName returns a boolean if a field has been set. +func (o *McpPackageUpload) HasFullyQualifiedName() bool { + if o != nil && o.FullyQualifiedName.IsSet() { + return true + } + + return false +} + +// SetFullyQualifiedName gets a reference to the given NullableString and assigns it to the FullyQualifiedName field. +func (o *McpPackageUpload) SetFullyQualifiedName(v string) { + o.FullyQualifiedName.Set(&v) +} + +// SetFullyQualifiedNameNil sets the value for FullyQualifiedName to be an explicit nil +func (o *McpPackageUpload) SetFullyQualifiedNameNil() { + o.FullyQualifiedName.Set(nil) +} + +// UnsetFullyQualifiedName ensures that no value is present for FullyQualifiedName, not even an explicit nil +func (o *McpPackageUpload) UnsetFullyQualifiedName() { + o.FullyQualifiedName.Unset() +} + +// GetIdentifierPerm returns the IdentifierPerm field value if set, zero value otherwise. +func (o *McpPackageUpload) GetIdentifierPerm() string { + if o == nil || IsNil(o.IdentifierPerm) { + var ret string + return ret + } + return *o.IdentifierPerm +} + +// GetIdentifierPermOk returns a tuple with the IdentifierPerm field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *McpPackageUpload) GetIdentifierPermOk() (*string, bool) { + if o == nil || IsNil(o.IdentifierPerm) { + return nil, false + } + return o.IdentifierPerm, true +} + +// HasIdentifierPerm returns a boolean if a field has been set. +func (o *McpPackageUpload) HasIdentifierPerm() bool { + if o != nil && !IsNil(o.IdentifierPerm) { + return true + } + + return false +} + +// SetIdentifierPerm gets a reference to the given string and assigns it to the IdentifierPerm field. +func (o *McpPackageUpload) SetIdentifierPerm(v string) { + o.IdentifierPerm = &v +} + +// GetIdentifiers returns the Identifiers field value if set, zero value otherwise. +func (o *McpPackageUpload) GetIdentifiers() map[string]string { + if o == nil || IsNil(o.Identifiers) { + var ret map[string]string + return ret + } + return *o.Identifiers +} + +// GetIdentifiersOk returns a tuple with the Identifiers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *McpPackageUpload) GetIdentifiersOk() (*map[string]string, bool) { + if o == nil || IsNil(o.Identifiers) { + return nil, false + } + return o.Identifiers, true +} + +// HasIdentifiers returns a boolean if a field has been set. +func (o *McpPackageUpload) HasIdentifiers() bool { + if o != nil && !IsNil(o.Identifiers) { + return true + } + + return false +} + +// SetIdentifiers gets a reference to the given map[string]string and assigns it to the Identifiers field. +func (o *McpPackageUpload) SetIdentifiers(v map[string]string) { + o.Identifiers = &v +} + +// GetIndexed returns the Indexed field value if set, zero value otherwise. +func (o *McpPackageUpload) GetIndexed() bool { + if o == nil || IsNil(o.Indexed) { + var ret bool + return ret + } + return *o.Indexed +} + +// GetIndexedOk returns a tuple with the Indexed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *McpPackageUpload) GetIndexedOk() (*bool, bool) { + if o == nil || IsNil(o.Indexed) { + return nil, false + } + return o.Indexed, true +} + +// HasIndexed returns a boolean if a field has been set. +func (o *McpPackageUpload) HasIndexed() bool { + if o != nil && !IsNil(o.Indexed) { + return true + } + + return false +} + +// SetIndexed gets a reference to the given bool and assigns it to the Indexed field. +func (o *McpPackageUpload) SetIndexed(v bool) { + o.Indexed = &v +} + +// GetIsCancellable returns the IsCancellable field value if set, zero value otherwise. +func (o *McpPackageUpload) GetIsCancellable() bool { + if o == nil || IsNil(o.IsCancellable) { + var ret bool + return ret + } + return *o.IsCancellable +} + +// GetIsCancellableOk returns a tuple with the IsCancellable field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *McpPackageUpload) GetIsCancellableOk() (*bool, bool) { + if o == nil || IsNil(o.IsCancellable) { + return nil, false + } + return o.IsCancellable, true +} + +// HasIsCancellable returns a boolean if a field has been set. +func (o *McpPackageUpload) HasIsCancellable() bool { + if o != nil && !IsNil(o.IsCancellable) { + return true + } + + return false +} + +// SetIsCancellable gets a reference to the given bool and assigns it to the IsCancellable field. +func (o *McpPackageUpload) SetIsCancellable(v bool) { + o.IsCancellable = &v +} + +// GetIsCopyable returns the IsCopyable field value if set, zero value otherwise. +func (o *McpPackageUpload) GetIsCopyable() bool { + if o == nil || IsNil(o.IsCopyable) { + var ret bool + return ret + } + return *o.IsCopyable +} + +// GetIsCopyableOk returns a tuple with the IsCopyable field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *McpPackageUpload) GetIsCopyableOk() (*bool, bool) { + if o == nil || IsNil(o.IsCopyable) { + return nil, false + } + return o.IsCopyable, true +} + +// HasIsCopyable returns a boolean if a field has been set. +func (o *McpPackageUpload) HasIsCopyable() bool { + if o != nil && !IsNil(o.IsCopyable) { + return true + } + + return false +} + +// SetIsCopyable gets a reference to the given bool and assigns it to the IsCopyable field. +func (o *McpPackageUpload) SetIsCopyable(v bool) { + o.IsCopyable = &v +} + +// GetIsDeleteable returns the IsDeleteable field value if set, zero value otherwise. +func (o *McpPackageUpload) GetIsDeleteable() bool { + if o == nil || IsNil(o.IsDeleteable) { + var ret bool + return ret + } + return *o.IsDeleteable +} + +// GetIsDeleteableOk returns a tuple with the IsDeleteable field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *McpPackageUpload) GetIsDeleteableOk() (*bool, bool) { + if o == nil || IsNil(o.IsDeleteable) { + return nil, false + } + return o.IsDeleteable, true +} + +// HasIsDeleteable returns a boolean if a field has been set. +func (o *McpPackageUpload) HasIsDeleteable() bool { + if o != nil && !IsNil(o.IsDeleteable) { + return true + } + + return false +} + +// SetIsDeleteable gets a reference to the given bool and assigns it to the IsDeleteable field. +func (o *McpPackageUpload) SetIsDeleteable(v bool) { + o.IsDeleteable = &v +} + +// GetIsDownloadable returns the IsDownloadable field value if set, zero value otherwise. +func (o *McpPackageUpload) GetIsDownloadable() bool { + if o == nil || IsNil(o.IsDownloadable) { + var ret bool + return ret + } + return *o.IsDownloadable +} + +// GetIsDownloadableOk returns a tuple with the IsDownloadable field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *McpPackageUpload) GetIsDownloadableOk() (*bool, bool) { + if o == nil || IsNil(o.IsDownloadable) { + return nil, false + } + return o.IsDownloadable, true +} + +// HasIsDownloadable returns a boolean if a field has been set. +func (o *McpPackageUpload) HasIsDownloadable() bool { + if o != nil && !IsNil(o.IsDownloadable) { + return true + } + + return false +} + +// SetIsDownloadable gets a reference to the given bool and assigns it to the IsDownloadable field. +func (o *McpPackageUpload) SetIsDownloadable(v bool) { + o.IsDownloadable = &v +} + +// GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. +func (o *McpPackageUpload) GetIsMoveable() bool { + if o == nil || IsNil(o.IsMoveable) { + var ret bool + return ret + } + return *o.IsMoveable +} + +// GetIsMoveableOk returns a tuple with the IsMoveable field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *McpPackageUpload) GetIsMoveableOk() (*bool, bool) { + if o == nil || IsNil(o.IsMoveable) { + return nil, false + } + return o.IsMoveable, true +} + +// HasIsMoveable returns a boolean if a field has been set. +func (o *McpPackageUpload) HasIsMoveable() bool { + if o != nil && !IsNil(o.IsMoveable) { + return true + } + + return false +} + +// SetIsMoveable gets a reference to the given bool and assigns it to the IsMoveable field. +func (o *McpPackageUpload) SetIsMoveable(v bool) { + o.IsMoveable = &v +} + +// GetIsQuarantinable returns the IsQuarantinable field value if set, zero value otherwise. +func (o *McpPackageUpload) GetIsQuarantinable() bool { + if o == nil || IsNil(o.IsQuarantinable) { + var ret bool + return ret + } + return *o.IsQuarantinable +} + +// GetIsQuarantinableOk returns a tuple with the IsQuarantinable field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *McpPackageUpload) GetIsQuarantinableOk() (*bool, bool) { + if o == nil || IsNil(o.IsQuarantinable) { + return nil, false + } + return o.IsQuarantinable, true +} + +// HasIsQuarantinable returns a boolean if a field has been set. +func (o *McpPackageUpload) HasIsQuarantinable() bool { + if o != nil && !IsNil(o.IsQuarantinable) { + return true + } + + return false +} + +// SetIsQuarantinable gets a reference to the given bool and assigns it to the IsQuarantinable field. +func (o *McpPackageUpload) SetIsQuarantinable(v bool) { + o.IsQuarantinable = &v +} + +// GetIsQuarantined returns the IsQuarantined field value if set, zero value otherwise. +func (o *McpPackageUpload) GetIsQuarantined() bool { + if o == nil || IsNil(o.IsQuarantined) { + var ret bool + return ret + } + return *o.IsQuarantined +} + +// GetIsQuarantinedOk returns a tuple with the IsQuarantined field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *McpPackageUpload) GetIsQuarantinedOk() (*bool, bool) { + if o == nil || IsNil(o.IsQuarantined) { + return nil, false + } + return o.IsQuarantined, true +} + +// HasIsQuarantined returns a boolean if a field has been set. +func (o *McpPackageUpload) HasIsQuarantined() bool { + if o != nil && !IsNil(o.IsQuarantined) { + return true + } + + return false +} + +// SetIsQuarantined gets a reference to the given bool and assigns it to the IsQuarantined field. +func (o *McpPackageUpload) SetIsQuarantined(v bool) { + o.IsQuarantined = &v +} + +// GetIsResyncable returns the IsResyncable field value if set, zero value otherwise. +func (o *McpPackageUpload) GetIsResyncable() bool { + if o == nil || IsNil(o.IsResyncable) { + var ret bool + return ret + } + return *o.IsResyncable +} + +// GetIsResyncableOk returns a tuple with the IsResyncable field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *McpPackageUpload) GetIsResyncableOk() (*bool, bool) { + if o == nil || IsNil(o.IsResyncable) { + return nil, false + } + return o.IsResyncable, true +} + +// HasIsResyncable returns a boolean if a field has been set. +func (o *McpPackageUpload) HasIsResyncable() bool { + if o != nil && !IsNil(o.IsResyncable) { + return true + } + + return false +} + +// SetIsResyncable gets a reference to the given bool and assigns it to the IsResyncable field. +func (o *McpPackageUpload) SetIsResyncable(v bool) { + o.IsResyncable = &v +} + +// GetIsSecurityScannable returns the IsSecurityScannable field value if set, zero value otherwise. +func (o *McpPackageUpload) GetIsSecurityScannable() bool { + if o == nil || IsNil(o.IsSecurityScannable) { + var ret bool + return ret + } + return *o.IsSecurityScannable +} + +// GetIsSecurityScannableOk returns a tuple with the IsSecurityScannable field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *McpPackageUpload) GetIsSecurityScannableOk() (*bool, bool) { + if o == nil || IsNil(o.IsSecurityScannable) { + return nil, false + } + return o.IsSecurityScannable, true +} + +// HasIsSecurityScannable returns a boolean if a field has been set. +func (o *McpPackageUpload) HasIsSecurityScannable() bool { + if o != nil && !IsNil(o.IsSecurityScannable) { + return true + } + + return false +} + +// SetIsSecurityScannable gets a reference to the given bool and assigns it to the IsSecurityScannable field. +func (o *McpPackageUpload) SetIsSecurityScannable(v bool) { + o.IsSecurityScannable = &v +} + +// GetIsSyncAwaiting returns the IsSyncAwaiting field value if set, zero value otherwise. +func (o *McpPackageUpload) GetIsSyncAwaiting() bool { + if o == nil || IsNil(o.IsSyncAwaiting) { + var ret bool + return ret + } + return *o.IsSyncAwaiting +} + +// GetIsSyncAwaitingOk returns a tuple with the IsSyncAwaiting field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *McpPackageUpload) GetIsSyncAwaitingOk() (*bool, bool) { + if o == nil || IsNil(o.IsSyncAwaiting) { + return nil, false + } + return o.IsSyncAwaiting, true +} + +// HasIsSyncAwaiting returns a boolean if a field has been set. +func (o *McpPackageUpload) HasIsSyncAwaiting() bool { + if o != nil && !IsNil(o.IsSyncAwaiting) { + return true + } + + return false +} + +// SetIsSyncAwaiting gets a reference to the given bool and assigns it to the IsSyncAwaiting field. +func (o *McpPackageUpload) SetIsSyncAwaiting(v bool) { + o.IsSyncAwaiting = &v +} + +// GetIsSyncCompleted returns the IsSyncCompleted field value if set, zero value otherwise. +func (o *McpPackageUpload) GetIsSyncCompleted() bool { + if o == nil || IsNil(o.IsSyncCompleted) { + var ret bool + return ret + } + return *o.IsSyncCompleted +} + +// GetIsSyncCompletedOk returns a tuple with the IsSyncCompleted field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *McpPackageUpload) GetIsSyncCompletedOk() (*bool, bool) { + if o == nil || IsNil(o.IsSyncCompleted) { + return nil, false + } + return o.IsSyncCompleted, true +} + +// HasIsSyncCompleted returns a boolean if a field has been set. +func (o *McpPackageUpload) HasIsSyncCompleted() bool { + if o != nil && !IsNil(o.IsSyncCompleted) { + return true + } + + return false +} + +// SetIsSyncCompleted gets a reference to the given bool and assigns it to the IsSyncCompleted field. +func (o *McpPackageUpload) SetIsSyncCompleted(v bool) { + o.IsSyncCompleted = &v +} + +// GetIsSyncFailed returns the IsSyncFailed field value if set, zero value otherwise. +func (o *McpPackageUpload) GetIsSyncFailed() bool { + if o == nil || IsNil(o.IsSyncFailed) { + var ret bool + return ret + } + return *o.IsSyncFailed +} + +// GetIsSyncFailedOk returns a tuple with the IsSyncFailed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *McpPackageUpload) GetIsSyncFailedOk() (*bool, bool) { + if o == nil || IsNil(o.IsSyncFailed) { + return nil, false + } + return o.IsSyncFailed, true +} + +// HasIsSyncFailed returns a boolean if a field has been set. +func (o *McpPackageUpload) HasIsSyncFailed() bool { + if o != nil && !IsNil(o.IsSyncFailed) { + return true + } + + return false +} + +// SetIsSyncFailed gets a reference to the given bool and assigns it to the IsSyncFailed field. +func (o *McpPackageUpload) SetIsSyncFailed(v bool) { + o.IsSyncFailed = &v +} + +// GetIsSyncInFlight returns the IsSyncInFlight field value if set, zero value otherwise. +func (o *McpPackageUpload) GetIsSyncInFlight() bool { + if o == nil || IsNil(o.IsSyncInFlight) { + var ret bool + return ret + } + return *o.IsSyncInFlight +} + +// GetIsSyncInFlightOk returns a tuple with the IsSyncInFlight field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *McpPackageUpload) GetIsSyncInFlightOk() (*bool, bool) { + if o == nil || IsNil(o.IsSyncInFlight) { + return nil, false + } + return o.IsSyncInFlight, true +} + +// HasIsSyncInFlight returns a boolean if a field has been set. +func (o *McpPackageUpload) HasIsSyncInFlight() bool { + if o != nil && !IsNil(o.IsSyncInFlight) { + return true + } + + return false +} + +// SetIsSyncInFlight gets a reference to the given bool and assigns it to the IsSyncInFlight field. +func (o *McpPackageUpload) SetIsSyncInFlight(v bool) { + o.IsSyncInFlight = &v +} + +// GetIsSyncInProgress returns the IsSyncInProgress field value if set, zero value otherwise. +func (o *McpPackageUpload) GetIsSyncInProgress() bool { + if o == nil || IsNil(o.IsSyncInProgress) { + var ret bool + return ret + } + return *o.IsSyncInProgress +} + +// GetIsSyncInProgressOk returns a tuple with the IsSyncInProgress field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *McpPackageUpload) GetIsSyncInProgressOk() (*bool, bool) { + if o == nil || IsNil(o.IsSyncInProgress) { + return nil, false + } + return o.IsSyncInProgress, true +} + +// HasIsSyncInProgress returns a boolean if a field has been set. +func (o *McpPackageUpload) HasIsSyncInProgress() bool { + if o != nil && !IsNil(o.IsSyncInProgress) { + return true + } + + return false +} + +// SetIsSyncInProgress gets a reference to the given bool and assigns it to the IsSyncInProgress field. +func (o *McpPackageUpload) SetIsSyncInProgress(v bool) { + o.IsSyncInProgress = &v +} + +// GetLicense returns the License field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *McpPackageUpload) GetLicense() string { + if o == nil || IsNil(o.License.Get()) { + var ret string + return ret + } + return *o.License.Get() +} + +// GetLicenseOk returns a tuple with the License 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) GetLicenseOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.License.Get(), o.License.IsSet() +} + +// HasLicense returns a boolean if a field has been set. +func (o *McpPackageUpload) HasLicense() bool { + if o != nil && o.License.IsSet() { + return true + } + + return false +} + +// SetLicense gets a reference to the given NullableString and assigns it to the License field. +func (o *McpPackageUpload) SetLicense(v string) { + o.License.Set(&v) +} + +// SetLicenseNil sets the value for License to be an explicit nil +func (o *McpPackageUpload) SetLicenseNil() { + o.License.Set(nil) +} + +// UnsetLicense ensures that no value is present for License, not even an explicit nil +func (o *McpPackageUpload) UnsetLicense() { + o.License.Unset() +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *McpPackageUpload) GetName() string { + if o == nil || IsNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name 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) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *McpPackageUpload) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *McpPackageUpload) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *McpPackageUpload) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *McpPackageUpload) UnsetName() { + o.Name.Unset() +} + +// GetNamespace returns the Namespace field value if set, zero value otherwise. +func (o *McpPackageUpload) GetNamespace() string { + if o == nil || IsNil(o.Namespace) { + var ret string + return ret + } + return *o.Namespace +} + +// GetNamespaceOk returns a tuple with the Namespace field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *McpPackageUpload) GetNamespaceOk() (*string, bool) { + if o == nil || IsNil(o.Namespace) { + return nil, false + } + return o.Namespace, true +} + +// HasNamespace returns a boolean if a field has been set. +func (o *McpPackageUpload) HasNamespace() bool { + if o != nil && !IsNil(o.Namespace) { + return true + } + + return false +} + +// SetNamespace gets a reference to the given string and assigns it to the Namespace field. +func (o *McpPackageUpload) SetNamespace(v string) { + o.Namespace = &v +} + +// GetNamespaceUrl returns the NamespaceUrl field value if set, zero value otherwise. +func (o *McpPackageUpload) GetNamespaceUrl() string { + if o == nil || IsNil(o.NamespaceUrl) { + var ret string + return ret + } + return *o.NamespaceUrl +} + +// GetNamespaceUrlOk returns a tuple with the NamespaceUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *McpPackageUpload) GetNamespaceUrlOk() (*string, bool) { + if o == nil || IsNil(o.NamespaceUrl) { + return nil, false + } + return o.NamespaceUrl, true +} + +// HasNamespaceUrl returns a boolean if a field has been set. +func (o *McpPackageUpload) HasNamespaceUrl() bool { + if o != nil && !IsNil(o.NamespaceUrl) { + return true + } + + return false +} + +// SetNamespaceUrl gets a reference to the given string and assigns it to the NamespaceUrl field. +func (o *McpPackageUpload) SetNamespaceUrl(v string) { + o.NamespaceUrl = &v +} + +// GetNumFiles returns the NumFiles field value if set, zero value otherwise. +func (o *McpPackageUpload) GetNumFiles() int64 { + if o == nil || IsNil(o.NumFiles) { + var ret int64 + return ret + } + return *o.NumFiles +} + +// GetNumFilesOk returns a tuple with the NumFiles field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *McpPackageUpload) GetNumFilesOk() (*int64, bool) { + if o == nil || IsNil(o.NumFiles) { + return nil, false + } + return o.NumFiles, true +} + +// HasNumFiles returns a boolean if a field has been set. +func (o *McpPackageUpload) HasNumFiles() bool { + if o != nil && !IsNil(o.NumFiles) { + return true + } + + return false +} + +// SetNumFiles gets a reference to the given int64 and assigns it to the NumFiles field. +func (o *McpPackageUpload) SetNumFiles(v int64) { + o.NumFiles = &v +} + +// GetOriginRepository returns the OriginRepository field value if set, zero value otherwise. +func (o *McpPackageUpload) GetOriginRepository() string { + if o == nil || IsNil(o.OriginRepository) { + var ret string + return ret + } + return *o.OriginRepository +} + +// GetOriginRepositoryOk returns a tuple with the OriginRepository field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *McpPackageUpload) GetOriginRepositoryOk() (*string, bool) { + if o == nil || IsNil(o.OriginRepository) { + return nil, false + } + return o.OriginRepository, true +} + +// HasOriginRepository returns a boolean if a field has been set. +func (o *McpPackageUpload) HasOriginRepository() bool { + if o != nil && !IsNil(o.OriginRepository) { + return true + } + + return false +} + +// SetOriginRepository gets a reference to the given string and assigns it to the OriginRepository field. +func (o *McpPackageUpload) SetOriginRepository(v string) { + o.OriginRepository = &v +} + +// GetOriginRepositoryUrl returns the OriginRepositoryUrl field value if set, zero value otherwise. +func (o *McpPackageUpload) GetOriginRepositoryUrl() string { + if o == nil || IsNil(o.OriginRepositoryUrl) { + var ret string + return ret + } + return *o.OriginRepositoryUrl +} + +// GetOriginRepositoryUrlOk returns a tuple with the OriginRepositoryUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *McpPackageUpload) GetOriginRepositoryUrlOk() (*string, bool) { + if o == nil || IsNil(o.OriginRepositoryUrl) { + return nil, false + } + return o.OriginRepositoryUrl, true +} + +// HasOriginRepositoryUrl returns a boolean if a field has been set. +func (o *McpPackageUpload) HasOriginRepositoryUrl() bool { + if o != nil && !IsNil(o.OriginRepositoryUrl) { + return true + } + + return false +} + +// SetOriginRepositoryUrl gets a reference to the given string and assigns it to the OriginRepositoryUrl field. +func (o *McpPackageUpload) SetOriginRepositoryUrl(v string) { + o.OriginRepositoryUrl = &v +} + +// GetPackageType returns the PackageType field value if set, zero value otherwise. +func (o *McpPackageUpload) GetPackageType() int64 { + if o == nil || IsNil(o.PackageType) { + var ret int64 + return ret + } + return *o.PackageType +} + +// GetPackageTypeOk returns a tuple with the PackageType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *McpPackageUpload) GetPackageTypeOk() (*int64, bool) { + if o == nil || IsNil(o.PackageType) { + return nil, false + } + return o.PackageType, true +} + +// HasPackageType returns a boolean if a field has been set. +func (o *McpPackageUpload) HasPackageType() bool { + if o != nil && !IsNil(o.PackageType) { + return true + } + + return false +} + +// SetPackageType gets a reference to the given int64 and assigns it to the PackageType field. +func (o *McpPackageUpload) SetPackageType(v int64) { + o.PackageType = &v +} + +// GetPolicyViolated returns the PolicyViolated field value if set, zero value otherwise. +func (o *McpPackageUpload) GetPolicyViolated() bool { + if o == nil || IsNil(o.PolicyViolated) { + var ret bool + return ret + } + return *o.PolicyViolated +} + +// GetPolicyViolatedOk returns a tuple with the PolicyViolated field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *McpPackageUpload) GetPolicyViolatedOk() (*bool, bool) { + if o == nil || IsNil(o.PolicyViolated) { + return nil, false + } + return o.PolicyViolated, true +} + +// HasPolicyViolated returns a boolean if a field has been set. +func (o *McpPackageUpload) HasPolicyViolated() bool { + if o != nil && !IsNil(o.PolicyViolated) { + return true + } + + return false +} + +// SetPolicyViolated gets a reference to the given bool and assigns it to the PolicyViolated field. +func (o *McpPackageUpload) SetPolicyViolated(v bool) { + o.PolicyViolated = &v +} + +// GetRawLicense returns the RawLicense field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *McpPackageUpload) GetRawLicense() string { + if o == nil || IsNil(o.RawLicense.Get()) { + var ret string + return ret + } + return *o.RawLicense.Get() +} + +// GetRawLicenseOk returns a tuple with the RawLicense 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) GetRawLicenseOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.RawLicense.Get(), o.RawLicense.IsSet() +} + +// HasRawLicense returns a boolean if a field has been set. +func (o *McpPackageUpload) HasRawLicense() bool { + if o != nil && o.RawLicense.IsSet() { + return true + } + + return false +} + +// SetRawLicense gets a reference to the given NullableString and assigns it to the RawLicense field. +func (o *McpPackageUpload) SetRawLicense(v string) { + o.RawLicense.Set(&v) +} + +// SetRawLicenseNil sets the value for RawLicense to be an explicit nil +func (o *McpPackageUpload) SetRawLicenseNil() { + o.RawLicense.Set(nil) +} + +// UnsetRawLicense ensures that no value is present for RawLicense, not even an explicit nil +func (o *McpPackageUpload) UnsetRawLicense() { + o.RawLicense.Unset() +} + +// GetRelease returns the Release field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *McpPackageUpload) GetRelease() string { + if o == nil || IsNil(o.Release.Get()) { + var ret string + return ret + } + return *o.Release.Get() +} + +// GetReleaseOk returns a tuple with the Release 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) GetReleaseOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Release.Get(), o.Release.IsSet() +} + +// HasRelease returns a boolean if a field has been set. +func (o *McpPackageUpload) HasRelease() bool { + if o != nil && o.Release.IsSet() { + return true + } + + return false +} + +// SetRelease gets a reference to the given NullableString and assigns it to the Release field. +func (o *McpPackageUpload) SetRelease(v string) { + o.Release.Set(&v) +} + +// SetReleaseNil sets the value for Release to be an explicit nil +func (o *McpPackageUpload) SetReleaseNil() { + o.Release.Set(nil) +} + +// UnsetRelease ensures that no value is present for Release, not even an explicit nil +func (o *McpPackageUpload) UnsetRelease() { + o.Release.Unset() +} + +// GetRepository returns the Repository field value if set, zero value otherwise. +func (o *McpPackageUpload) GetRepository() string { + if o == nil || IsNil(o.Repository) { + var ret string + return ret + } + return *o.Repository +} + +// GetRepositoryOk returns a tuple with the Repository field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *McpPackageUpload) GetRepositoryOk() (*string, bool) { + if o == nil || IsNil(o.Repository) { + return nil, false + } + return o.Repository, true +} + +// HasRepository returns a boolean if a field has been set. +func (o *McpPackageUpload) HasRepository() bool { + if o != nil && !IsNil(o.Repository) { + return true + } + + return false +} + +// SetRepository gets a reference to the given string and assigns it to the Repository field. +func (o *McpPackageUpload) SetRepository(v string) { + o.Repository = &v +} + +// GetRepositoryUrl returns the RepositoryUrl field value if set, zero value otherwise. +func (o *McpPackageUpload) GetRepositoryUrl() string { + if o == nil || IsNil(o.RepositoryUrl) { + var ret string + return ret + } + return *o.RepositoryUrl +} + +// GetRepositoryUrlOk returns a tuple with the RepositoryUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *McpPackageUpload) GetRepositoryUrlOk() (*string, bool) { + if o == nil || IsNil(o.RepositoryUrl) { + return nil, false + } + return o.RepositoryUrl, true +} + +// HasRepositoryUrl returns a boolean if a field has been set. +func (o *McpPackageUpload) HasRepositoryUrl() bool { + if o != nil && !IsNil(o.RepositoryUrl) { + return true + } + + return false +} + +// SetRepositoryUrl gets a reference to the given string and assigns it to the RepositoryUrl field. +func (o *McpPackageUpload) SetRepositoryUrl(v string) { + o.RepositoryUrl = &v +} + +// GetSecurityScanCompletedAt returns the SecurityScanCompletedAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *McpPackageUpload) GetSecurityScanCompletedAt() time.Time { + if o == nil || IsNil(o.SecurityScanCompletedAt.Get()) { + var ret time.Time + return ret + } + return *o.SecurityScanCompletedAt.Get() +} + +// GetSecurityScanCompletedAtOk returns a tuple with the SecurityScanCompletedAt 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) GetSecurityScanCompletedAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.SecurityScanCompletedAt.Get(), o.SecurityScanCompletedAt.IsSet() +} + +// HasSecurityScanCompletedAt returns a boolean if a field has been set. +func (o *McpPackageUpload) HasSecurityScanCompletedAt() bool { + if o != nil && o.SecurityScanCompletedAt.IsSet() { + return true + } + + return false +} + +// SetSecurityScanCompletedAt gets a reference to the given NullableTime and assigns it to the SecurityScanCompletedAt field. +func (o *McpPackageUpload) SetSecurityScanCompletedAt(v time.Time) { + o.SecurityScanCompletedAt.Set(&v) +} + +// SetSecurityScanCompletedAtNil sets the value for SecurityScanCompletedAt to be an explicit nil +func (o *McpPackageUpload) SetSecurityScanCompletedAtNil() { + o.SecurityScanCompletedAt.Set(nil) +} + +// UnsetSecurityScanCompletedAt ensures that no value is present for SecurityScanCompletedAt, not even an explicit nil +func (o *McpPackageUpload) UnsetSecurityScanCompletedAt() { + o.SecurityScanCompletedAt.Unset() +} + +// GetSecurityScanStartedAt returns the SecurityScanStartedAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *McpPackageUpload) GetSecurityScanStartedAt() time.Time { + if o == nil || IsNil(o.SecurityScanStartedAt.Get()) { + var ret time.Time + return ret + } + return *o.SecurityScanStartedAt.Get() +} + +// GetSecurityScanStartedAtOk returns a tuple with the SecurityScanStartedAt 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) GetSecurityScanStartedAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.SecurityScanStartedAt.Get(), o.SecurityScanStartedAt.IsSet() +} + +// HasSecurityScanStartedAt returns a boolean if a field has been set. +func (o *McpPackageUpload) HasSecurityScanStartedAt() bool { + if o != nil && o.SecurityScanStartedAt.IsSet() { + return true + } + + return false +} + +// SetSecurityScanStartedAt gets a reference to the given NullableTime and assigns it to the SecurityScanStartedAt field. +func (o *McpPackageUpload) SetSecurityScanStartedAt(v time.Time) { + o.SecurityScanStartedAt.Set(&v) +} + +// SetSecurityScanStartedAtNil sets the value for SecurityScanStartedAt to be an explicit nil +func (o *McpPackageUpload) SetSecurityScanStartedAtNil() { + o.SecurityScanStartedAt.Set(nil) +} + +// UnsetSecurityScanStartedAt ensures that no value is present for SecurityScanStartedAt, not even an explicit nil +func (o *McpPackageUpload) UnsetSecurityScanStartedAt() { + o.SecurityScanStartedAt.Unset() +} + +// GetSecurityScanStatus returns the SecurityScanStatus field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *McpPackageUpload) GetSecurityScanStatus() string { + if o == nil || IsNil(o.SecurityScanStatus.Get()) { + var ret string + return ret + } + return *o.SecurityScanStatus.Get() +} + +// GetSecurityScanStatusOk returns a tuple with the SecurityScanStatus 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) GetSecurityScanStatusOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SecurityScanStatus.Get(), o.SecurityScanStatus.IsSet() +} + +// HasSecurityScanStatus returns a boolean if a field has been set. +func (o *McpPackageUpload) HasSecurityScanStatus() bool { + if o != nil && o.SecurityScanStatus.IsSet() { + return true + } + + return false +} + +// SetSecurityScanStatus gets a reference to the given NullableString and assigns it to the SecurityScanStatus field. +func (o *McpPackageUpload) SetSecurityScanStatus(v string) { + o.SecurityScanStatus.Set(&v) +} + +// SetSecurityScanStatusNil sets the value for SecurityScanStatus to be an explicit nil +func (o *McpPackageUpload) SetSecurityScanStatusNil() { + o.SecurityScanStatus.Set(nil) +} + +// UnsetSecurityScanStatus ensures that no value is present for SecurityScanStatus, not even an explicit nil +func (o *McpPackageUpload) UnsetSecurityScanStatus() { + o.SecurityScanStatus.Unset() +} + +// GetSecurityScanStatusUpdatedAt returns the SecurityScanStatusUpdatedAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *McpPackageUpload) GetSecurityScanStatusUpdatedAt() time.Time { + if o == nil || IsNil(o.SecurityScanStatusUpdatedAt.Get()) { + var ret time.Time + return ret + } + return *o.SecurityScanStatusUpdatedAt.Get() +} + +// GetSecurityScanStatusUpdatedAtOk returns a tuple with the SecurityScanStatusUpdatedAt 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) GetSecurityScanStatusUpdatedAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.SecurityScanStatusUpdatedAt.Get(), o.SecurityScanStatusUpdatedAt.IsSet() +} + +// HasSecurityScanStatusUpdatedAt returns a boolean if a field has been set. +func (o *McpPackageUpload) HasSecurityScanStatusUpdatedAt() bool { + if o != nil && o.SecurityScanStatusUpdatedAt.IsSet() { + return true + } + + return false +} + +// SetSecurityScanStatusUpdatedAt gets a reference to the given NullableTime and assigns it to the SecurityScanStatusUpdatedAt field. +func (o *McpPackageUpload) SetSecurityScanStatusUpdatedAt(v time.Time) { + o.SecurityScanStatusUpdatedAt.Set(&v) +} + +// SetSecurityScanStatusUpdatedAtNil sets the value for SecurityScanStatusUpdatedAt to be an explicit nil +func (o *McpPackageUpload) SetSecurityScanStatusUpdatedAtNil() { + o.SecurityScanStatusUpdatedAt.Set(nil) +} + +// UnsetSecurityScanStatusUpdatedAt ensures that no value is present for SecurityScanStatusUpdatedAt, not even an explicit nil +func (o *McpPackageUpload) UnsetSecurityScanStatusUpdatedAt() { + o.SecurityScanStatusUpdatedAt.Unset() +} + +// GetSelfHtmlUrl returns the SelfHtmlUrl field value if set, zero value otherwise. +func (o *McpPackageUpload) GetSelfHtmlUrl() string { + if o == nil || IsNil(o.SelfHtmlUrl) { + var ret string + return ret + } + return *o.SelfHtmlUrl +} + +// GetSelfHtmlUrlOk returns a tuple with the SelfHtmlUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *McpPackageUpload) GetSelfHtmlUrlOk() (*string, bool) { + if o == nil || IsNil(o.SelfHtmlUrl) { + return nil, false + } + return o.SelfHtmlUrl, true +} + +// HasSelfHtmlUrl returns a boolean if a field has been set. +func (o *McpPackageUpload) HasSelfHtmlUrl() bool { + if o != nil && !IsNil(o.SelfHtmlUrl) { + return true + } + + return false +} + +// SetSelfHtmlUrl gets a reference to the given string and assigns it to the SelfHtmlUrl field. +func (o *McpPackageUpload) SetSelfHtmlUrl(v string) { + o.SelfHtmlUrl = &v +} + +// GetSelfUrl returns the SelfUrl field value if set, zero value otherwise. +func (o *McpPackageUpload) GetSelfUrl() string { + if o == nil || IsNil(o.SelfUrl) { + var ret string + return ret + } + return *o.SelfUrl +} + +// GetSelfUrlOk returns a tuple with the SelfUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *McpPackageUpload) GetSelfUrlOk() (*string, bool) { + if o == nil || IsNil(o.SelfUrl) { + return nil, false + } + return o.SelfUrl, true +} + +// HasSelfUrl returns a boolean if a field has been set. +func (o *McpPackageUpload) HasSelfUrl() bool { + if o != nil && !IsNil(o.SelfUrl) { + return true + } + + return false +} + +// SetSelfUrl gets a reference to the given string and assigns it to the SelfUrl field. +func (o *McpPackageUpload) SetSelfUrl(v string) { + o.SelfUrl = &v +} + +// GetSelfWebappUrl returns the SelfWebappUrl field value if set, zero value otherwise. +func (o *McpPackageUpload) GetSelfWebappUrl() string { + if o == nil || IsNil(o.SelfWebappUrl) { + var ret string + return ret + } + return *o.SelfWebappUrl +} + +// GetSelfWebappUrlOk returns a tuple with the SelfWebappUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *McpPackageUpload) GetSelfWebappUrlOk() (*string, bool) { + if o == nil || IsNil(o.SelfWebappUrl) { + return nil, false + } + return o.SelfWebappUrl, true +} + +// HasSelfWebappUrl returns a boolean if a field has been set. +func (o *McpPackageUpload) HasSelfWebappUrl() bool { + if o != nil && !IsNil(o.SelfWebappUrl) { + return true + } + + return false +} + +// SetSelfWebappUrl gets a reference to the given string and assigns it to the SelfWebappUrl field. +func (o *McpPackageUpload) SetSelfWebappUrl(v string) { + o.SelfWebappUrl = &v +} + +// GetSignatureUrl returns the SignatureUrl field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *McpPackageUpload) GetSignatureUrl() string { + if o == nil || IsNil(o.SignatureUrl.Get()) { + var ret string + return ret + } + return *o.SignatureUrl.Get() +} + +// GetSignatureUrlOk returns a tuple with the SignatureUrl 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) GetSignatureUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SignatureUrl.Get(), o.SignatureUrl.IsSet() +} + +// HasSignatureUrl returns a boolean if a field has been set. +func (o *McpPackageUpload) HasSignatureUrl() bool { + if o != nil && o.SignatureUrl.IsSet() { + return true + } + + return false +} + +// SetSignatureUrl gets a reference to the given NullableString and assigns it to the SignatureUrl field. +func (o *McpPackageUpload) SetSignatureUrl(v string) { + o.SignatureUrl.Set(&v) +} + +// SetSignatureUrlNil sets the value for SignatureUrl to be an explicit nil +func (o *McpPackageUpload) SetSignatureUrlNil() { + o.SignatureUrl.Set(nil) +} + +// UnsetSignatureUrl ensures that no value is present for SignatureUrl, not even an explicit nil +func (o *McpPackageUpload) UnsetSignatureUrl() { + o.SignatureUrl.Unset() +} + +// GetSize returns the Size field value if set, zero value otherwise. +func (o *McpPackageUpload) 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 *McpPackageUpload) 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 *McpPackageUpload) 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 *McpPackageUpload) SetSize(v int64) { + o.Size = &v +} + +// GetSlug returns the Slug field value if set, zero value otherwise. +func (o *McpPackageUpload) 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 *McpPackageUpload) 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 *McpPackageUpload) 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 *McpPackageUpload) SetSlug(v string) { + o.Slug = &v +} + +// GetSlugPerm returns the SlugPerm field value if set, zero value otherwise. +func (o *McpPackageUpload) 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 *McpPackageUpload) 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 *McpPackageUpload) 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 *McpPackageUpload) SetSlugPerm(v string) { + o.SlugPerm = &v +} + +// GetSpdxLicense returns the SpdxLicense field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *McpPackageUpload) GetSpdxLicense() string { + if o == nil || IsNil(o.SpdxLicense.Get()) { + var ret string + return ret + } + return *o.SpdxLicense.Get() +} + +// GetSpdxLicenseOk returns a tuple with the SpdxLicense 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) GetSpdxLicenseOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SpdxLicense.Get(), o.SpdxLicense.IsSet() +} + +// HasSpdxLicense returns a boolean if a field has been set. +func (o *McpPackageUpload) HasSpdxLicense() bool { + if o != nil && o.SpdxLicense.IsSet() { + return true + } + + return false +} + +// SetSpdxLicense gets a reference to the given NullableString and assigns it to the SpdxLicense field. +func (o *McpPackageUpload) SetSpdxLicense(v string) { + o.SpdxLicense.Set(&v) +} + +// SetSpdxLicenseNil sets the value for SpdxLicense to be an explicit nil +func (o *McpPackageUpload) SetSpdxLicenseNil() { + o.SpdxLicense.Set(nil) +} + +// UnsetSpdxLicense ensures that no value is present for SpdxLicense, not even an explicit nil +func (o *McpPackageUpload) UnsetSpdxLicense() { + o.SpdxLicense.Unset() +} + +// GetStage returns the Stage field value if set, zero value otherwise. +func (o *McpPackageUpload) GetStage() int64 { + if o == nil || IsNil(o.Stage) { + var ret int64 + return ret + } + return *o.Stage +} + +// GetStageOk returns a tuple with the Stage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *McpPackageUpload) GetStageOk() (*int64, bool) { + if o == nil || IsNil(o.Stage) { + return nil, false + } + return o.Stage, true +} + +// HasStage returns a boolean if a field has been set. +func (o *McpPackageUpload) HasStage() bool { + if o != nil && !IsNil(o.Stage) { + return true + } + + return false +} + +// SetStage gets a reference to the given int64 and assigns it to the Stage field. +func (o *McpPackageUpload) SetStage(v int64) { + o.Stage = &v +} + +// GetStageStr returns the StageStr field value if set, zero value otherwise. +func (o *McpPackageUpload) GetStageStr() string { + if o == nil || IsNil(o.StageStr) { + var ret string + return ret + } + return *o.StageStr +} + +// GetStageStrOk returns a tuple with the StageStr field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *McpPackageUpload) GetStageStrOk() (*string, bool) { + if o == nil || IsNil(o.StageStr) { + return nil, false + } + return o.StageStr, true +} + +// HasStageStr returns a boolean if a field has been set. +func (o *McpPackageUpload) HasStageStr() bool { + if o != nil && !IsNil(o.StageStr) { + return true + } + + return false +} + +// SetStageStr gets a reference to the given string and assigns it to the StageStr field. +func (o *McpPackageUpload) SetStageStr(v string) { + o.StageStr = &v +} + +// GetStageUpdatedAt returns the StageUpdatedAt field value if set, zero value otherwise. +func (o *McpPackageUpload) GetStageUpdatedAt() time.Time { + if o == nil || IsNil(o.StageUpdatedAt) { + var ret time.Time + return ret + } + return *o.StageUpdatedAt +} + +// GetStageUpdatedAtOk returns a tuple with the StageUpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *McpPackageUpload) GetStageUpdatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.StageUpdatedAt) { + return nil, false + } + return o.StageUpdatedAt, true +} + +// HasStageUpdatedAt returns a boolean if a field has been set. +func (o *McpPackageUpload) HasStageUpdatedAt() bool { + if o != nil && !IsNil(o.StageUpdatedAt) { + return true + } + + return false +} + +// SetStageUpdatedAt gets a reference to the given time.Time and assigns it to the StageUpdatedAt field. +func (o *McpPackageUpload) SetStageUpdatedAt(v time.Time) { + o.StageUpdatedAt = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *McpPackageUpload) GetStatus() int64 { + if o == nil || IsNil(o.Status) { + var ret int64 + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *McpPackageUpload) GetStatusOk() (*int64, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *McpPackageUpload) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given int64 and assigns it to the Status field. +func (o *McpPackageUpload) SetStatus(v int64) { + o.Status = &v +} + +// GetStatusReason returns the StatusReason field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *McpPackageUpload) GetStatusReason() string { + if o == nil || IsNil(o.StatusReason.Get()) { + var ret string + return ret + } + return *o.StatusReason.Get() +} + +// GetStatusReasonOk returns a tuple with the StatusReason 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) GetStatusReasonOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.StatusReason.Get(), o.StatusReason.IsSet() +} + +// HasStatusReason returns a boolean if a field has been set. +func (o *McpPackageUpload) HasStatusReason() bool { + if o != nil && o.StatusReason.IsSet() { + return true + } + + return false +} + +// SetStatusReason gets a reference to the given NullableString and assigns it to the StatusReason field. +func (o *McpPackageUpload) SetStatusReason(v string) { + o.StatusReason.Set(&v) +} + +// SetStatusReasonNil sets the value for StatusReason to be an explicit nil +func (o *McpPackageUpload) SetStatusReasonNil() { + o.StatusReason.Set(nil) +} + +// UnsetStatusReason ensures that no value is present for StatusReason, not even an explicit nil +func (o *McpPackageUpload) UnsetStatusReason() { + o.StatusReason.Unset() +} + +// GetStatusStr returns the StatusStr field value if set, zero value otherwise. +func (o *McpPackageUpload) GetStatusStr() string { + if o == nil || IsNil(o.StatusStr) { + var ret string + return ret + } + return *o.StatusStr +} + +// GetStatusStrOk returns a tuple with the StatusStr field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *McpPackageUpload) GetStatusStrOk() (*string, bool) { + if o == nil || IsNil(o.StatusStr) { + return nil, false + } + return o.StatusStr, true +} + +// HasStatusStr returns a boolean if a field has been set. +func (o *McpPackageUpload) HasStatusStr() bool { + if o != nil && !IsNil(o.StatusStr) { + return true + } + + return false +} + +// SetStatusStr gets a reference to the given string and assigns it to the StatusStr field. +func (o *McpPackageUpload) SetStatusStr(v string) { + o.StatusStr = &v +} + +// GetStatusUpdatedAt returns the StatusUpdatedAt field value if set, zero value otherwise. +func (o *McpPackageUpload) GetStatusUpdatedAt() time.Time { + if o == nil || IsNil(o.StatusUpdatedAt) { + var ret time.Time + return ret + } + return *o.StatusUpdatedAt +} + +// GetStatusUpdatedAtOk returns a tuple with the StatusUpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *McpPackageUpload) GetStatusUpdatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.StatusUpdatedAt) { + return nil, false + } + return o.StatusUpdatedAt, true +} + +// HasStatusUpdatedAt returns a boolean if a field has been set. +func (o *McpPackageUpload) HasStatusUpdatedAt() bool { + if o != nil && !IsNil(o.StatusUpdatedAt) { + return true + } + + return false +} + +// SetStatusUpdatedAt gets a reference to the given time.Time and assigns it to the StatusUpdatedAt field. +func (o *McpPackageUpload) SetStatusUpdatedAt(v time.Time) { + o.StatusUpdatedAt = &v +} + +// GetStatusUrl returns the StatusUrl field value if set, zero value otherwise. +func (o *McpPackageUpload) GetStatusUrl() string { + if o == nil || IsNil(o.StatusUrl) { + var ret string + return ret + } + return *o.StatusUrl +} + +// GetStatusUrlOk returns a tuple with the StatusUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *McpPackageUpload) GetStatusUrlOk() (*string, bool) { + if o == nil || IsNil(o.StatusUrl) { + return nil, false + } + return o.StatusUrl, true +} + +// HasStatusUrl returns a boolean if a field has been set. +func (o *McpPackageUpload) HasStatusUrl() bool { + if o != nil && !IsNil(o.StatusUrl) { + return true + } + + return false +} + +// SetStatusUrl gets a reference to the given string and assigns it to the StatusUrl field. +func (o *McpPackageUpload) SetStatusUrl(v string) { + o.StatusUrl = &v +} + +// GetSubtype returns the Subtype field value if set, zero value otherwise. +func (o *McpPackageUpload) GetSubtype() string { + if o == nil || IsNil(o.Subtype) { + var ret string + return ret + } + return *o.Subtype +} + +// GetSubtypeOk returns a tuple with the Subtype field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *McpPackageUpload) GetSubtypeOk() (*string, bool) { + if o == nil || IsNil(o.Subtype) { + return nil, false + } + return o.Subtype, true +} + +// HasSubtype returns a boolean if a field has been set. +func (o *McpPackageUpload) HasSubtype() bool { + if o != nil && !IsNil(o.Subtype) { + return true + } + + return false +} + +// SetSubtype gets a reference to the given string and assigns it to the Subtype field. +func (o *McpPackageUpload) SetSubtype(v string) { + o.Subtype = &v +} + +// GetSummary returns the Summary field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *McpPackageUpload) GetSummary() string { + if o == nil || IsNil(o.Summary.Get()) { + var ret string + return ret + } + return *o.Summary.Get() +} + +// GetSummaryOk returns a tuple with the Summary 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) GetSummaryOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Summary.Get(), o.Summary.IsSet() +} + +// HasSummary returns a boolean if a field has been set. +func (o *McpPackageUpload) HasSummary() bool { + if o != nil && o.Summary.IsSet() { + return true + } + + return false +} + +// SetSummary gets a reference to the given NullableString and assigns it to the Summary field. +func (o *McpPackageUpload) SetSummary(v string) { + o.Summary.Set(&v) +} + +// SetSummaryNil sets the value for Summary to be an explicit nil +func (o *McpPackageUpload) SetSummaryNil() { + o.Summary.Set(nil) +} + +// UnsetSummary ensures that no value is present for Summary, not even an explicit nil +func (o *McpPackageUpload) UnsetSummary() { + o.Summary.Unset() +} + +// GetSyncFinishedAt returns the SyncFinishedAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *McpPackageUpload) GetSyncFinishedAt() time.Time { + if o == nil || IsNil(o.SyncFinishedAt.Get()) { + var ret time.Time + return ret + } + return *o.SyncFinishedAt.Get() +} + +// GetSyncFinishedAtOk returns a tuple with the SyncFinishedAt 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) GetSyncFinishedAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.SyncFinishedAt.Get(), o.SyncFinishedAt.IsSet() +} + +// HasSyncFinishedAt returns a boolean if a field has been set. +func (o *McpPackageUpload) HasSyncFinishedAt() bool { + if o != nil && o.SyncFinishedAt.IsSet() { + return true + } + + return false +} + +// SetSyncFinishedAt gets a reference to the given NullableTime and assigns it to the SyncFinishedAt field. +func (o *McpPackageUpload) SetSyncFinishedAt(v time.Time) { + o.SyncFinishedAt.Set(&v) +} + +// SetSyncFinishedAtNil sets the value for SyncFinishedAt to be an explicit nil +func (o *McpPackageUpload) SetSyncFinishedAtNil() { + o.SyncFinishedAt.Set(nil) +} + +// UnsetSyncFinishedAt ensures that no value is present for SyncFinishedAt, not even an explicit nil +func (o *McpPackageUpload) UnsetSyncFinishedAt() { + o.SyncFinishedAt.Unset() +} + +// GetSyncProgress returns the SyncProgress field value if set, zero value otherwise. +func (o *McpPackageUpload) GetSyncProgress() int64 { + if o == nil || IsNil(o.SyncProgress) { + var ret int64 + return ret + } + return *o.SyncProgress +} + +// GetSyncProgressOk returns a tuple with the SyncProgress field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *McpPackageUpload) GetSyncProgressOk() (*int64, bool) { + if o == nil || IsNil(o.SyncProgress) { + return nil, false + } + return o.SyncProgress, true +} + +// HasSyncProgress returns a boolean if a field has been set. +func (o *McpPackageUpload) HasSyncProgress() bool { + if o != nil && !IsNil(o.SyncProgress) { + return true + } + + return false +} + +// SetSyncProgress gets a reference to the given int64 and assigns it to the SyncProgress field. +func (o *McpPackageUpload) SetSyncProgress(v int64) { + o.SyncProgress = &v +} + +// GetTagsAutomatic returns the TagsAutomatic field value if set, zero value otherwise. +func (o *McpPackageUpload) GetTagsAutomatic() map[string]interface{} { + if o == nil || IsNil(o.TagsAutomatic) { + var ret map[string]interface{} + return ret + } + return o.TagsAutomatic +} + +// GetTagsAutomaticOk returns a tuple with the TagsAutomatic field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *McpPackageUpload) GetTagsAutomaticOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.TagsAutomatic) { + return map[string]interface{}{}, false + } + return o.TagsAutomatic, true +} + +// HasTagsAutomatic returns a boolean if a field has been set. +func (o *McpPackageUpload) HasTagsAutomatic() bool { + if o != nil && !IsNil(o.TagsAutomatic) { + return true + } + + return false +} + +// SetTagsAutomatic gets a reference to the given map[string]interface{} and assigns it to the TagsAutomatic field. +func (o *McpPackageUpload) SetTagsAutomatic(v map[string]interface{}) { + o.TagsAutomatic = v +} + +// GetTagsImmutable returns the TagsImmutable field value if set, zero value otherwise. +func (o *McpPackageUpload) GetTagsImmutable() map[string]interface{} { + if o == nil || IsNil(o.TagsImmutable) { + var ret map[string]interface{} + return ret + } + return o.TagsImmutable +} + +// GetTagsImmutableOk returns a tuple with the TagsImmutable field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *McpPackageUpload) GetTagsImmutableOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.TagsImmutable) { + return map[string]interface{}{}, false + } + return o.TagsImmutable, true +} + +// HasTagsImmutable returns a boolean if a field has been set. +func (o *McpPackageUpload) HasTagsImmutable() bool { + if o != nil && !IsNil(o.TagsImmutable) { + return true + } + + return false +} + +// SetTagsImmutable gets a reference to the given map[string]interface{} and assigns it to the TagsImmutable field. +func (o *McpPackageUpload) SetTagsImmutable(v map[string]interface{}) { + o.TagsImmutable = v +} + +// GetTypeDisplay returns the TypeDisplay field value if set, zero value otherwise. +func (o *McpPackageUpload) GetTypeDisplay() string { + if o == nil || IsNil(o.TypeDisplay) { + var ret string + return ret + } + return *o.TypeDisplay +} + +// GetTypeDisplayOk returns a tuple with the TypeDisplay field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *McpPackageUpload) GetTypeDisplayOk() (*string, bool) { + if o == nil || IsNil(o.TypeDisplay) { + return nil, false + } + return o.TypeDisplay, true +} + +// HasTypeDisplay returns a boolean if a field has been set. +func (o *McpPackageUpload) HasTypeDisplay() bool { + if o != nil && !IsNil(o.TypeDisplay) { + return true + } + + return false +} + +// SetTypeDisplay gets a reference to the given string and assigns it to the TypeDisplay field. +func (o *McpPackageUpload) SetTypeDisplay(v string) { + o.TypeDisplay = &v +} + +// GetUploadedAt returns the UploadedAt field value if set, zero value otherwise. +func (o *McpPackageUpload) GetUploadedAt() time.Time { + if o == nil || IsNil(o.UploadedAt) { + var ret time.Time + return ret + } + return *o.UploadedAt +} + +// GetUploadedAtOk returns a tuple with the UploadedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *McpPackageUpload) GetUploadedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.UploadedAt) { + return nil, false + } + return o.UploadedAt, true +} + +// HasUploadedAt returns a boolean if a field has been set. +func (o *McpPackageUpload) HasUploadedAt() bool { + if o != nil && !IsNil(o.UploadedAt) { + return true + } + + return false +} + +// SetUploadedAt gets a reference to the given time.Time and assigns it to the UploadedAt field. +func (o *McpPackageUpload) SetUploadedAt(v time.Time) { + o.UploadedAt = &v +} + +// GetUploader returns the Uploader field value if set, zero value otherwise. +func (o *McpPackageUpload) GetUploader() string { + if o == nil || IsNil(o.Uploader) { + var ret string + return ret + } + return *o.Uploader +} + +// GetUploaderOk returns a tuple with the Uploader field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *McpPackageUpload) GetUploaderOk() (*string, bool) { + if o == nil || IsNil(o.Uploader) { + return nil, false + } + return o.Uploader, true +} + +// HasUploader returns a boolean if a field has been set. +func (o *McpPackageUpload) HasUploader() bool { + if o != nil && !IsNil(o.Uploader) { + return true + } + + return false +} + +// SetUploader gets a reference to the given string and assigns it to the Uploader field. +func (o *McpPackageUpload) SetUploader(v string) { + o.Uploader = &v +} + +// GetUploaderUrl returns the UploaderUrl field value if set, zero value otherwise. +func (o *McpPackageUpload) GetUploaderUrl() string { + if o == nil || IsNil(o.UploaderUrl) { + var ret string + return ret + } + return *o.UploaderUrl +} + +// GetUploaderUrlOk returns a tuple with the UploaderUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *McpPackageUpload) GetUploaderUrlOk() (*string, bool) { + if o == nil || IsNil(o.UploaderUrl) { + return nil, false + } + return o.UploaderUrl, true +} + +// HasUploaderUrl returns a boolean if a field has been set. +func (o *McpPackageUpload) HasUploaderUrl() bool { + if o != nil && !IsNil(o.UploaderUrl) { + return true + } + + return false +} + +// SetUploaderUrl gets a reference to the given string and assigns it to the UploaderUrl field. +func (o *McpPackageUpload) SetUploaderUrl(v string) { + o.UploaderUrl = &v +} + +// GetVersion returns the Version field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *McpPackageUpload) GetVersion() string { + if o == nil || IsNil(o.Version.Get()) { + var ret string + return ret + } + return *o.Version.Get() +} + +// GetVersionOk returns a tuple with the Version 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) GetVersionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Version.Get(), o.Version.IsSet() +} + +// HasVersion returns a boolean if a field has been set. +func (o *McpPackageUpload) HasVersion() bool { + if o != nil && o.Version.IsSet() { + return true + } + + return false +} + +// SetVersion gets a reference to the given NullableString and assigns it to the Version field. +func (o *McpPackageUpload) SetVersion(v string) { + o.Version.Set(&v) +} + +// SetVersionNil sets the value for Version to be an explicit nil +func (o *McpPackageUpload) SetVersionNil() { + o.Version.Set(nil) +} + +// UnsetVersion ensures that no value is present for Version, not even an explicit nil +func (o *McpPackageUpload) UnsetVersion() { + o.Version.Unset() +} + +// GetVersionOrig returns the VersionOrig field value if set, zero value otherwise. +func (o *McpPackageUpload) GetVersionOrig() string { + if o == nil || IsNil(o.VersionOrig) { + var ret string + return ret + } + return *o.VersionOrig +} + +// GetVersionOrigOk returns a tuple with the VersionOrig field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *McpPackageUpload) GetVersionOrigOk() (*string, bool) { + if o == nil || IsNil(o.VersionOrig) { + return nil, false + } + return o.VersionOrig, true +} + +// HasVersionOrig returns a boolean if a field has been set. +func (o *McpPackageUpload) HasVersionOrig() bool { + if o != nil && !IsNil(o.VersionOrig) { + return true + } + + return false +} + +// SetVersionOrig gets a reference to the given string and assigns it to the VersionOrig field. +func (o *McpPackageUpload) SetVersionOrig(v string) { + o.VersionOrig = &v +} + +// GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. +func (o *McpPackageUpload) GetVulnerabilityScanResultsUrl() string { + if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { + var ret string + return ret + } + return *o.VulnerabilityScanResultsUrl +} + +// GetVulnerabilityScanResultsUrlOk returns a tuple with the VulnerabilityScanResultsUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *McpPackageUpload) GetVulnerabilityScanResultsUrlOk() (*string, bool) { + if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { + return nil, false + } + return o.VulnerabilityScanResultsUrl, true +} + +// HasVulnerabilityScanResultsUrl returns a boolean if a field has been set. +func (o *McpPackageUpload) HasVulnerabilityScanResultsUrl() bool { + if o != nil && !IsNil(o.VulnerabilityScanResultsUrl) { + return true + } + + return false +} + +// SetVulnerabilityScanResultsUrl gets a reference to the given string and assigns it to the VulnerabilityScanResultsUrl field. +func (o *McpPackageUpload) SetVulnerabilityScanResultsUrl(v string) { + o.VulnerabilityScanResultsUrl = &v +} + +func (o McpPackageUpload) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o McpPackageUpload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Architectures) { + toSerialize["architectures"] = o.Architectures + } + if o.CdnUrl.IsSet() { + toSerialize["cdn_url"] = o.CdnUrl.Get() + } + if !IsNil(o.ChecksumMd5) { + toSerialize["checksum_md5"] = o.ChecksumMd5 + } + if !IsNil(o.ChecksumSha1) { + toSerialize["checksum_sha1"] = o.ChecksumSha1 + } + if !IsNil(o.ChecksumSha256) { + toSerialize["checksum_sha256"] = o.ChecksumSha256 + } + if !IsNil(o.ChecksumSha512) { + toSerialize["checksum_sha512"] = o.ChecksumSha512 + } + if o.DependenciesChecksumMd5.IsSet() { + toSerialize["dependencies_checksum_md5"] = o.DependenciesChecksumMd5.Get() + } + if !IsNil(o.DependenciesUrl) { + toSerialize["dependencies_url"] = o.DependenciesUrl + } + if o.Description.IsSet() { + toSerialize["description"] = o.Description.Get() + } + if !IsNil(o.DisplayName) { + toSerialize["display_name"] = o.DisplayName + } + if o.Distro.IsSet() { + toSerialize["distro"] = o.Distro.Get() + } + if !IsNil(o.DistroVersion) { + toSerialize["distro_version"] = o.DistroVersion + } + if !IsNil(o.Downloads) { + toSerialize["downloads"] = o.Downloads + } + if o.Epoch.IsSet() { + toSerialize["epoch"] = o.Epoch.Get() + } + if !IsNil(o.Extension) { + toSerialize["extension"] = o.Extension + } + if !IsNil(o.Filename) { + toSerialize["filename"] = o.Filename + } + if !IsNil(o.Files) { + toSerialize["files"] = o.Files + } + if !IsNil(o.Format) { + toSerialize["format"] = o.Format + } + if !IsNil(o.FormatUrl) { + toSerialize["format_url"] = o.FormatUrl + } + if !IsNil(o.FreeableStorage) { + toSerialize["freeable_storage"] = o.FreeableStorage + } + if o.FullyQualifiedName.IsSet() { + toSerialize["fully_qualified_name"] = o.FullyQualifiedName.Get() + } + if !IsNil(o.IdentifierPerm) { + toSerialize["identifier_perm"] = o.IdentifierPerm + } + if !IsNil(o.Identifiers) { + toSerialize["identifiers"] = o.Identifiers + } + if !IsNil(o.Indexed) { + toSerialize["indexed"] = o.Indexed + } + if !IsNil(o.IsCancellable) { + toSerialize["is_cancellable"] = o.IsCancellable + } + if !IsNil(o.IsCopyable) { + toSerialize["is_copyable"] = o.IsCopyable + } + if !IsNil(o.IsDeleteable) { + toSerialize["is_deleteable"] = o.IsDeleteable + } + if !IsNil(o.IsDownloadable) { + toSerialize["is_downloadable"] = o.IsDownloadable + } + if !IsNil(o.IsMoveable) { + toSerialize["is_moveable"] = o.IsMoveable + } + if !IsNil(o.IsQuarantinable) { + toSerialize["is_quarantinable"] = o.IsQuarantinable + } + if !IsNil(o.IsQuarantined) { + toSerialize["is_quarantined"] = o.IsQuarantined + } + if !IsNil(o.IsResyncable) { + toSerialize["is_resyncable"] = o.IsResyncable + } + if !IsNil(o.IsSecurityScannable) { + toSerialize["is_security_scannable"] = o.IsSecurityScannable + } + if !IsNil(o.IsSyncAwaiting) { + toSerialize["is_sync_awaiting"] = o.IsSyncAwaiting + } + if !IsNil(o.IsSyncCompleted) { + toSerialize["is_sync_completed"] = o.IsSyncCompleted + } + if !IsNil(o.IsSyncFailed) { + toSerialize["is_sync_failed"] = o.IsSyncFailed + } + if !IsNil(o.IsSyncInFlight) { + toSerialize["is_sync_in_flight"] = o.IsSyncInFlight + } + if !IsNil(o.IsSyncInProgress) { + toSerialize["is_sync_in_progress"] = o.IsSyncInProgress + } + if o.License.IsSet() { + toSerialize["license"] = o.License.Get() + } + if o.Name.IsSet() { + toSerialize["name"] = o.Name.Get() + } + if !IsNil(o.Namespace) { + toSerialize["namespace"] = o.Namespace + } + if !IsNil(o.NamespaceUrl) { + toSerialize["namespace_url"] = o.NamespaceUrl + } + if !IsNil(o.NumFiles) { + toSerialize["num_files"] = o.NumFiles + } + if !IsNil(o.OriginRepository) { + toSerialize["origin_repository"] = o.OriginRepository + } + if !IsNil(o.OriginRepositoryUrl) { + toSerialize["origin_repository_url"] = o.OriginRepositoryUrl + } + if !IsNil(o.PackageType) { + toSerialize["package_type"] = o.PackageType + } + if !IsNil(o.PolicyViolated) { + toSerialize["policy_violated"] = o.PolicyViolated + } + if o.RawLicense.IsSet() { + toSerialize["raw_license"] = o.RawLicense.Get() + } + if o.Release.IsSet() { + toSerialize["release"] = o.Release.Get() + } + if !IsNil(o.Repository) { + toSerialize["repository"] = o.Repository + } + if !IsNil(o.RepositoryUrl) { + toSerialize["repository_url"] = o.RepositoryUrl + } + if o.SecurityScanCompletedAt.IsSet() { + toSerialize["security_scan_completed_at"] = o.SecurityScanCompletedAt.Get() + } + if o.SecurityScanStartedAt.IsSet() { + toSerialize["security_scan_started_at"] = o.SecurityScanStartedAt.Get() + } + if o.SecurityScanStatus.IsSet() { + toSerialize["security_scan_status"] = o.SecurityScanStatus.Get() + } + if o.SecurityScanStatusUpdatedAt.IsSet() { + toSerialize["security_scan_status_updated_at"] = o.SecurityScanStatusUpdatedAt.Get() + } + if !IsNil(o.SelfHtmlUrl) { + toSerialize["self_html_url"] = o.SelfHtmlUrl + } + if !IsNil(o.SelfUrl) { + toSerialize["self_url"] = o.SelfUrl + } + if !IsNil(o.SelfWebappUrl) { + toSerialize["self_webapp_url"] = o.SelfWebappUrl + } + if o.SignatureUrl.IsSet() { + toSerialize["signature_url"] = o.SignatureUrl.Get() + } + if !IsNil(o.Size) { + toSerialize["size"] = o.Size + } + if !IsNil(o.Slug) { + toSerialize["slug"] = o.Slug + } + if !IsNil(o.SlugPerm) { + toSerialize["slug_perm"] = o.SlugPerm + } + if o.SpdxLicense.IsSet() { + toSerialize["spdx_license"] = o.SpdxLicense.Get() + } + if !IsNil(o.Stage) { + toSerialize["stage"] = o.Stage + } + if !IsNil(o.StageStr) { + toSerialize["stage_str"] = o.StageStr + } + if !IsNil(o.StageUpdatedAt) { + toSerialize["stage_updated_at"] = o.StageUpdatedAt + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if o.StatusReason.IsSet() { + toSerialize["status_reason"] = o.StatusReason.Get() + } + if !IsNil(o.StatusStr) { + toSerialize["status_str"] = o.StatusStr + } + if !IsNil(o.StatusUpdatedAt) { + toSerialize["status_updated_at"] = o.StatusUpdatedAt + } + if !IsNil(o.StatusUrl) { + toSerialize["status_url"] = o.StatusUrl + } + if !IsNil(o.Subtype) { + toSerialize["subtype"] = o.Subtype + } + if o.Summary.IsSet() { + toSerialize["summary"] = o.Summary.Get() + } + if o.SyncFinishedAt.IsSet() { + toSerialize["sync_finished_at"] = o.SyncFinishedAt.Get() + } + if !IsNil(o.SyncProgress) { + toSerialize["sync_progress"] = o.SyncProgress + } + if !IsNil(o.TagsAutomatic) { + toSerialize["tags_automatic"] = o.TagsAutomatic + } + if !IsNil(o.TagsImmutable) { + toSerialize["tags_immutable"] = o.TagsImmutable + } + if !IsNil(o.TypeDisplay) { + toSerialize["type_display"] = o.TypeDisplay + } + if !IsNil(o.UploadedAt) { + toSerialize["uploaded_at"] = o.UploadedAt + } + if !IsNil(o.Uploader) { + toSerialize["uploader"] = o.Uploader + } + if !IsNil(o.UploaderUrl) { + toSerialize["uploader_url"] = o.UploaderUrl + } + if o.Version.IsSet() { + toSerialize["version"] = o.Version.Get() + } + if !IsNil(o.VersionOrig) { + toSerialize["version_orig"] = o.VersionOrig + } + if !IsNil(o.VulnerabilityScanResultsUrl) { + toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *McpPackageUpload) UnmarshalJSON(data []byte) (err error) { + varMcpPackageUpload := _McpPackageUpload{} + + err = json.Unmarshal(data, &varMcpPackageUpload) + + if err != nil { + return err + } + + *o = McpPackageUpload(varMcpPackageUpload) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "architectures") + delete(additionalProperties, "cdn_url") + delete(additionalProperties, "checksum_md5") + delete(additionalProperties, "checksum_sha1") + delete(additionalProperties, "checksum_sha256") + delete(additionalProperties, "checksum_sha512") + delete(additionalProperties, "dependencies_checksum_md5") + delete(additionalProperties, "dependencies_url") + delete(additionalProperties, "description") + delete(additionalProperties, "display_name") + delete(additionalProperties, "distro") + delete(additionalProperties, "distro_version") + delete(additionalProperties, "downloads") + delete(additionalProperties, "epoch") + delete(additionalProperties, "extension") + delete(additionalProperties, "filename") + delete(additionalProperties, "files") + delete(additionalProperties, "format") + delete(additionalProperties, "format_url") + delete(additionalProperties, "freeable_storage") + delete(additionalProperties, "fully_qualified_name") + delete(additionalProperties, "identifier_perm") + delete(additionalProperties, "identifiers") + delete(additionalProperties, "indexed") + delete(additionalProperties, "is_cancellable") + delete(additionalProperties, "is_copyable") + delete(additionalProperties, "is_deleteable") + delete(additionalProperties, "is_downloadable") + delete(additionalProperties, "is_moveable") + delete(additionalProperties, "is_quarantinable") + delete(additionalProperties, "is_quarantined") + delete(additionalProperties, "is_resyncable") + delete(additionalProperties, "is_security_scannable") + delete(additionalProperties, "is_sync_awaiting") + delete(additionalProperties, "is_sync_completed") + delete(additionalProperties, "is_sync_failed") + delete(additionalProperties, "is_sync_in_flight") + delete(additionalProperties, "is_sync_in_progress") + delete(additionalProperties, "license") + delete(additionalProperties, "name") + delete(additionalProperties, "namespace") + delete(additionalProperties, "namespace_url") + delete(additionalProperties, "num_files") + delete(additionalProperties, "origin_repository") + delete(additionalProperties, "origin_repository_url") + delete(additionalProperties, "package_type") + delete(additionalProperties, "policy_violated") + delete(additionalProperties, "raw_license") + delete(additionalProperties, "release") + delete(additionalProperties, "repository") + delete(additionalProperties, "repository_url") + delete(additionalProperties, "security_scan_completed_at") + delete(additionalProperties, "security_scan_started_at") + delete(additionalProperties, "security_scan_status") + delete(additionalProperties, "security_scan_status_updated_at") + delete(additionalProperties, "self_html_url") + delete(additionalProperties, "self_url") + delete(additionalProperties, "self_webapp_url") + delete(additionalProperties, "signature_url") + delete(additionalProperties, "size") + delete(additionalProperties, "slug") + delete(additionalProperties, "slug_perm") + delete(additionalProperties, "spdx_license") + delete(additionalProperties, "stage") + delete(additionalProperties, "stage_str") + delete(additionalProperties, "stage_updated_at") + delete(additionalProperties, "status") + delete(additionalProperties, "status_reason") + delete(additionalProperties, "status_str") + delete(additionalProperties, "status_updated_at") + delete(additionalProperties, "status_url") + delete(additionalProperties, "subtype") + delete(additionalProperties, "summary") + delete(additionalProperties, "sync_finished_at") + delete(additionalProperties, "sync_progress") + delete(additionalProperties, "tags_automatic") + delete(additionalProperties, "tags_immutable") + delete(additionalProperties, "type_display") + delete(additionalProperties, "uploaded_at") + delete(additionalProperties, "uploader") + delete(additionalProperties, "uploader_url") + delete(additionalProperties, "version") + delete(additionalProperties, "version_orig") + delete(additionalProperties, "vulnerability_scan_results_url") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableMcpPackageUpload struct { + value *McpPackageUpload + isSet bool +} + +func (v NullableMcpPackageUpload) Get() *McpPackageUpload { + return v.value +} + +func (v *NullableMcpPackageUpload) Set(val *McpPackageUpload) { + v.value = val + v.isSet = true +} + +func (v NullableMcpPackageUpload) IsSet() bool { + return v.isSet +} + +func (v *NullableMcpPackageUpload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMcpPackageUpload(val *McpPackageUpload) *NullableMcpPackageUpload { + return &NullableMcpPackageUpload{value: val, isSet: true} +} + +func (v NullableMcpPackageUpload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMcpPackageUpload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_mcp_package_upload_request.go b/model_mcp_package_upload_request.go new file mode 100644 index 00000000..1a9a52f2 --- /dev/null +++ b/model_mcp_package_upload_request.go @@ -0,0 +1,304 @@ +/* +Cloudsmith API (v1) + +The API to the Cloudsmith Service + +API version: 1.1137.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 McpPackageUploadRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &McpPackageUploadRequest{} + +// McpPackageUploadRequest struct for McpPackageUploadRequest +type McpPackageUploadRequest struct { + // 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"` + // The raw version for this package. + Version NullableString `json:"version,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _McpPackageUploadRequest McpPackageUploadRequest + +// NewMcpPackageUploadRequest instantiates a new McpPackageUploadRequest 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 NewMcpPackageUploadRequest(packageFile string) *McpPackageUploadRequest { + this := McpPackageUploadRequest{} + this.PackageFile = packageFile + return &this +} + +// NewMcpPackageUploadRequestWithDefaults instantiates a new McpPackageUploadRequest 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 NewMcpPackageUploadRequestWithDefaults() *McpPackageUploadRequest { + this := McpPackageUploadRequest{} + return &this +} + +// GetPackageFile returns the PackageFile field value +func (o *McpPackageUploadRequest) GetPackageFile() string { + if o == nil { + var ret string + return ret + } + + return o.PackageFile +} + +// GetPackageFileOk returns a tuple with the PackageFile field value +// and a boolean to check if the value has been set. +func (o *McpPackageUploadRequest) GetPackageFileOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.PackageFile, true +} + +// SetPackageFile sets field value +func (o *McpPackageUploadRequest) SetPackageFile(v string) { + o.PackageFile = v +} + +// GetRepublish returns the Republish field value if set, zero value otherwise. +func (o *McpPackageUploadRequest) GetRepublish() bool { + if o == nil || IsNil(o.Republish) { + var ret bool + return ret + } + return *o.Republish +} + +// GetRepublishOk returns a tuple with the Republish field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *McpPackageUploadRequest) GetRepublishOk() (*bool, bool) { + if o == nil || IsNil(o.Republish) { + return nil, false + } + return o.Republish, true +} + +// HasRepublish returns a boolean if a field has been set. +func (o *McpPackageUploadRequest) HasRepublish() bool { + if o != nil && !IsNil(o.Republish) { + return true + } + + return false +} + +// SetRepublish gets a reference to the given bool and assigns it to the Republish field. +func (o *McpPackageUploadRequest) SetRepublish(v bool) { + o.Republish = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *McpPackageUploadRequest) GetTags() string { + if o == nil || IsNil(o.Tags.Get()) { + var ret string + return ret + } + return *o.Tags.Get() +} + +// GetTagsOk returns a tuple with the Tags 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) GetTagsOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Tags.Get(), o.Tags.IsSet() +} + +// HasTags returns a boolean if a field has been set. +func (o *McpPackageUploadRequest) HasTags() bool { + if o != nil && o.Tags.IsSet() { + return true + } + + return false +} + +// SetTags gets a reference to the given NullableString and assigns it to the Tags field. +func (o *McpPackageUploadRequest) SetTags(v string) { + o.Tags.Set(&v) +} + +// SetTagsNil sets the value for Tags to be an explicit nil +func (o *McpPackageUploadRequest) SetTagsNil() { + o.Tags.Set(nil) +} + +// UnsetTags ensures that no value is present for Tags, not even an explicit nil +func (o *McpPackageUploadRequest) UnsetTags() { + o.Tags.Unset() +} + +// GetVersion returns the Version field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *McpPackageUploadRequest) GetVersion() string { + if o == nil || IsNil(o.Version.Get()) { + var ret string + return ret + } + return *o.Version.Get() +} + +// GetVersionOk returns a tuple with the Version 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) GetVersionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Version.Get(), o.Version.IsSet() +} + +// HasVersion returns a boolean if a field has been set. +func (o *McpPackageUploadRequest) HasVersion() bool { + if o != nil && o.Version.IsSet() { + return true + } + + return false +} + +// SetVersion gets a reference to the given NullableString and assigns it to the Version field. +func (o *McpPackageUploadRequest) SetVersion(v string) { + o.Version.Set(&v) +} + +// SetVersionNil sets the value for Version to be an explicit nil +func (o *McpPackageUploadRequest) SetVersionNil() { + o.Version.Set(nil) +} + +// UnsetVersion ensures that no value is present for Version, not even an explicit nil +func (o *McpPackageUploadRequest) UnsetVersion() { + o.Version.Unset() +} + +func (o McpPackageUploadRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o McpPackageUploadRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["package_file"] = o.PackageFile + if !IsNil(o.Republish) { + toSerialize["republish"] = o.Republish + } + if o.Tags.IsSet() { + toSerialize["tags"] = o.Tags.Get() + } + if o.Version.IsSet() { + toSerialize["version"] = o.Version.Get() + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *McpPackageUploadRequest) 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{ + "package_file", + } + + 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) + } + } + + varMcpPackageUploadRequest := _McpPackageUploadRequest{} + + err = json.Unmarshal(data, &varMcpPackageUploadRequest) + + if err != nil { + return err + } + + *o = McpPackageUploadRequest(varMcpPackageUploadRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "package_file") + delete(additionalProperties, "republish") + delete(additionalProperties, "tags") + delete(additionalProperties, "version") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableMcpPackageUploadRequest struct { + value *McpPackageUploadRequest + isSet bool +} + +func (v NullableMcpPackageUploadRequest) Get() *McpPackageUploadRequest { + return v.value +} + +func (v *NullableMcpPackageUploadRequest) Set(val *McpPackageUploadRequest) { + v.value = val + v.isSet = true +} + +func (v NullableMcpPackageUploadRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableMcpPackageUploadRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMcpPackageUploadRequest(val *McpPackageUploadRequest) *NullableMcpPackageUploadRequest { + return &NullableMcpPackageUploadRequest{value: val, isSet: true} +} + +func (v NullableMcpPackageUploadRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMcpPackageUploadRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_namespace.go b/model_namespace.go index 85c127f8..fd33135a 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_namespace_audit_log.go b/model_namespace_audit_log.go index 904f2c2f..868c2018 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_nested_license_policy.go b/model_nested_license_policy.go index f715ae95..217291b7 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_nested_vulnerability_policy.go b/model_nested_vulnerability_policy.go index 281a0fd3..4acbb6ed 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_nested_vulnerability_scan_results.go b/model_nested_vulnerability_scan_results.go index 5f47fcb3..3d28d8d1 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_npm_package_upload.go b/model_npm_package_upload.go index 49328710..70577d38 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_npm_package_upload_request.go b/model_npm_package_upload_request.go index 57539ef5..91f519df 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_npm_upstream.go b/model_npm_upstream.go index c3903f6e..e936ccce 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ @@ -50,7 +50,7 @@ type NpmUpstream struct { // The number of packages available in this upstream source IndexPackageCount NullableInt64 `json:"index_package_count,omitempty"` // The current indexing status of this upstream source - IndexStatus *string `json:"index_status,omitempty"` + IndexStatus NullableString `json:"index_status,omitempty"` // Whether or not this upstream is active and ready for requests. IsActive *bool `json:"is_active,omitempty"` // The last time this upstream source was indexed @@ -632,36 +632,47 @@ func (o *NpmUpstream) UnsetIndexPackageCount() { o.IndexPackageCount.Unset() } -// GetIndexStatus returns the IndexStatus field value if set, zero value otherwise. +// GetIndexStatus returns the IndexStatus field value if set, zero value otherwise (both if not set or set to explicit null). func (o *NpmUpstream) GetIndexStatus() string { - if o == nil || IsNil(o.IndexStatus) { + if o == nil || IsNil(o.IndexStatus.Get()) { var ret string return ret } - return *o.IndexStatus + return *o.IndexStatus.Get() } // GetIndexStatusOk returns a tuple with the IndexStatus 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 *NpmUpstream) GetIndexStatusOk() (*string, bool) { - if o == nil || IsNil(o.IndexStatus) { + if o == nil { return nil, false } - return o.IndexStatus, true + return o.IndexStatus.Get(), o.IndexStatus.IsSet() } // HasIndexStatus returns a boolean if a field has been set. func (o *NpmUpstream) HasIndexStatus() bool { - if o != nil && !IsNil(o.IndexStatus) { + if o != nil && o.IndexStatus.IsSet() { return true } return false } -// SetIndexStatus gets a reference to the given string and assigns it to the IndexStatus field. +// SetIndexStatus gets a reference to the given NullableString and assigns it to the IndexStatus field. func (o *NpmUpstream) SetIndexStatus(v string) { - o.IndexStatus = &v + o.IndexStatus.Set(&v) +} + +// SetIndexStatusNil sets the value for IndexStatus to be an explicit nil +func (o *NpmUpstream) SetIndexStatusNil() { + o.IndexStatus.Set(nil) +} + +// UnsetIndexStatus ensures that no value is present for IndexStatus, not even an explicit nil +func (o *NpmUpstream) UnsetIndexStatus() { + o.IndexStatus.Unset() } // GetIsActive returns the IsActive field value if set, zero value otherwise. @@ -1052,8 +1063,8 @@ func (o NpmUpstream) ToMap() (map[string]interface{}, error) { if o.IndexPackageCount.IsSet() { toSerialize["index_package_count"] = o.IndexPackageCount.Get() } - if !IsNil(o.IndexStatus) { - toSerialize["index_status"] = o.IndexStatus + if o.IndexStatus.IsSet() { + toSerialize["index_status"] = o.IndexStatus.Get() } if !IsNil(o.IsActive) { toSerialize["is_active"] = o.IsActive diff --git a/model_npm_upstream_request.go b/model_npm_upstream_request.go index 3fb72a4c..4f586f60 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_npm_upstream_request_patch.go b/model_npm_upstream_request_patch.go index b1700942..4b37b1a6 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_nuget_package_upload.go b/model_nuget_package_upload.go index bbfb5d7d..e1f9a7e8 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_nuget_package_upload_request.go b/model_nuget_package_upload_request.go index ad741584..8bcbfff5 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_nuget_upstream.go b/model_nuget_upstream.go index 42d296d7..f82adf80 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ @@ -50,7 +50,7 @@ type NugetUpstream struct { // The number of packages available in this upstream source IndexPackageCount NullableInt64 `json:"index_package_count,omitempty"` // The current indexing status of this upstream source - IndexStatus *string `json:"index_status,omitempty"` + IndexStatus NullableString `json:"index_status,omitempty"` // Whether or not this upstream is active and ready for requests. IsActive *bool `json:"is_active,omitempty"` // The last time this upstream source was indexed @@ -626,36 +626,47 @@ func (o *NugetUpstream) UnsetIndexPackageCount() { o.IndexPackageCount.Unset() } -// GetIndexStatus returns the IndexStatus field value if set, zero value otherwise. +// GetIndexStatus returns the IndexStatus field value if set, zero value otherwise (both if not set or set to explicit null). func (o *NugetUpstream) GetIndexStatus() string { - if o == nil || IsNil(o.IndexStatus) { + if o == nil || IsNil(o.IndexStatus.Get()) { var ret string return ret } - return *o.IndexStatus + return *o.IndexStatus.Get() } // GetIndexStatusOk returns a tuple with the IndexStatus 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 *NugetUpstream) GetIndexStatusOk() (*string, bool) { - if o == nil || IsNil(o.IndexStatus) { + if o == nil { return nil, false } - return o.IndexStatus, true + return o.IndexStatus.Get(), o.IndexStatus.IsSet() } // HasIndexStatus returns a boolean if a field has been set. func (o *NugetUpstream) HasIndexStatus() bool { - if o != nil && !IsNil(o.IndexStatus) { + if o != nil && o.IndexStatus.IsSet() { return true } return false } -// SetIndexStatus gets a reference to the given string and assigns it to the IndexStatus field. +// SetIndexStatus gets a reference to the given NullableString and assigns it to the IndexStatus field. func (o *NugetUpstream) SetIndexStatus(v string) { - o.IndexStatus = &v + o.IndexStatus.Set(&v) +} + +// SetIndexStatusNil sets the value for IndexStatus to be an explicit nil +func (o *NugetUpstream) SetIndexStatusNil() { + o.IndexStatus.Set(nil) +} + +// UnsetIndexStatus ensures that no value is present for IndexStatus, not even an explicit nil +func (o *NugetUpstream) UnsetIndexStatus() { + o.IndexStatus.Unset() } // GetIsActive returns the IsActive field value if set, zero value otherwise. @@ -1014,8 +1025,8 @@ func (o NugetUpstream) ToMap() (map[string]interface{}, error) { if o.IndexPackageCount.IsSet() { toSerialize["index_package_count"] = o.IndexPackageCount.Get() } - if !IsNil(o.IndexStatus) { - toSerialize["index_status"] = o.IndexStatus + if o.IndexStatus.IsSet() { + toSerialize["index_status"] = o.IndexStatus.Get() } if !IsNil(o.IsActive) { toSerialize["is_active"] = o.IsActive diff --git a/model_nuget_upstream_request.go b/model_nuget_upstream_request.go index 10675374..c21a3059 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_nuget_upstream_request_patch.go b/model_nuget_upstream_request_patch.go index 154c073a..2375e48d 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_organization.go b/model_organization.go index 81cc5c97..3ccb74e1 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_group_sync.go b/model_organization_group_sync.go index 6f361d0d..bce1ed87 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_group_sync_request.go b/model_organization_group_sync_request.go index 14da2447..b84ecf89 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_group_sync_status.go b/model_organization_group_sync_status.go index d037575d..1a408cbc 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_invite.go b/model_organization_invite.go index a547975c..75a3c1a4 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_invite_extend.go b/model_organization_invite_extend.go index 86b9324f..84d33401 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_invite_request.go b/model_organization_invite_request.go index 2d5673da..a623e3cb 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_invite_update.go b/model_organization_invite_update.go index f41c7e0c..8b93fefe 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_invite_update_request_patch.go b/model_organization_invite_update_request_patch.go index 93147182..e7dce911 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_membership.go b/model_organization_membership.go index 22794b9a..d824ac67 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_membership_role_update.go b/model_organization_membership_role_update.go index 0b9292bc..8d3d230e 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.1093.0 +API version: 1.1137.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 b5b37eb7..54d7cd04 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_membership_visibility_update.go b/model_organization_membership_visibility_update.go index cd78b4bd..95f2c445 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.1093.0 +API version: 1.1137.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 6d154b3f..89ad9190 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_package_license_policy.go b/model_organization_package_license_policy.go index d855987d..d269c94a 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_package_license_policy_request.go b/model_organization_package_license_policy_request.go index 5b1cd588..c916933b 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.1093.0 +API version: 1.1137.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 64574c86..1b22068b 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_package_vulnerability_policy.go b/model_organization_package_vulnerability_policy.go index 52a5f4c1..ecd8c88f 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_package_vulnerability_policy_request.go b/model_organization_package_vulnerability_policy_request.go index 231a7967..030d8ad3 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.1093.0 +API version: 1.1137.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 f79b092d..c16a58fb 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_saml_auth.go b/model_organization_saml_auth.go index 1c116905..2672f329 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_saml_auth_request_patch.go b/model_organization_saml_auth_request_patch.go index cb35567b..0d684c22 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_team.go b/model_organization_team.go index 466c86e5..9c6da0bd 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_team_invite.go b/model_organization_team_invite.go index 2d0052c2..41c4805e 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_team_members.go b/model_organization_team_members.go index 83a4e4b3..b6024237 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_team_request.go b/model_organization_team_request.go index 0cd238ba..fa80ee6d 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_team_request_patch.go b/model_organization_team_request_patch.go index df03df97..b3b8dc74 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_team_service_member.go b/model_organization_team_service_member.go index 5b74809c..38489cda 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_p2_package_upload.go b/model_p2_package_upload.go index 7c50bd92..ebeab6f4 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_p2_package_upload_request.go b/model_p2_package_upload_request.go index 3fe41301..4471adbd 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_package.go b/model_package.go index 2a98b4df..7f418f62 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_package_bulk_action.go b/model_package_bulk_action.go index f0fe9176..27d80bc7 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_package_bulk_action_response.go b/model_package_bulk_action_response.go index 31a4a47e..11872a2e 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_package_copy.go b/model_package_copy.go index 4922c1a1..1e528f1e 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_package_copy_request.go b/model_package_copy_request.go index 603b0f41..5eed4f3b 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_package_deny_policy.go b/model_package_deny_policy.go index e5b9656e..3eed395d 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_package_deny_policy_request.go b/model_package_deny_policy_request.go index 285f7236..32629b0b 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_package_deny_policy_request_patch.go b/model_package_deny_policy_request_patch.go index 19f7bef6..ff784a08 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_package_dependencies.go b/model_package_dependencies.go index fd060b67..36741d9b 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_package_dependency.go b/model_package_dependency.go index 6691db4d..17bce294 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_package_file.go b/model_package_file.go index c3b0a239..ac703a9c 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_package_file_parts_upload.go b/model_package_file_parts_upload.go index d60b7a20..0462bcd1 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_package_file_upload.go b/model_package_file_upload.go index 8abaacf2..3d550746 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_package_file_upload_request.go b/model_package_file_upload_request.go index 6f0f42cb..e56b8998 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_package_group.go b/model_package_group.go index 0d2b6712..cbe6e1ba 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_package_license.go b/model_package_license.go index b6353ee1..a8b675a7 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_package_license_policy_evaluation_request.go b/model_package_license_policy_evaluation_request.go index e477b849..38cacb6d 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_package_license_policy_violation_log.go b/model_package_license_policy_violation_log.go index b7a06928..2ad91653 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.1093.0 +API version: 1.1137.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 afe4fc2e..9fe56037 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_package_license_request_patch.go b/model_package_license_request_patch.go index 8f58f6d3..f77cace7 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_package_move.go b/model_package_move.go index 65c16bd2..a0418116 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_package_move_request.go b/model_package_move_request.go index c7ab14c5..1ffafda6 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_package_quarantine.go b/model_package_quarantine.go index e9ce0d14..7217e0ba 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_package_quarantine_request.go b/model_package_quarantine_request.go index ad291b10..0c25f607 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_package_recycle_bin.go b/model_package_recycle_bin.go new file mode 100644 index 00000000..c8569096 --- /dev/null +++ b/model_package_recycle_bin.go @@ -0,0 +1,236 @@ +/* +Cloudsmith API (v1) + +The API to the Cloudsmith Service + +API version: 1.1137.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 PackageRecycleBin type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PackageRecycleBin{} + +// PackageRecycleBin struct for PackageRecycleBin +type PackageRecycleBin struct { + // The action to perform on soft-deleted packages. + Action string `json:"action"` + // A list of soft-deleted package identifiers to action. + Identifiers []string `json:"identifiers"` + // The repository name to filter packages to. If not provided, the action will be performed across all accessible repositories in the workspace. + Repository *string `json:"repository,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PackageRecycleBin PackageRecycleBin + +// NewPackageRecycleBin instantiates a new PackageRecycleBin 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 NewPackageRecycleBin(action string, identifiers []string) *PackageRecycleBin { + this := PackageRecycleBin{} + this.Action = action + this.Identifiers = identifiers + return &this +} + +// NewPackageRecycleBinWithDefaults instantiates a new PackageRecycleBin 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 NewPackageRecycleBinWithDefaults() *PackageRecycleBin { + this := PackageRecycleBin{} + return &this +} + +// GetAction returns the Action field value +func (o *PackageRecycleBin) GetAction() string { + if o == nil { + var ret string + return ret + } + + return o.Action +} + +// GetActionOk returns a tuple with the Action field value +// and a boolean to check if the value has been set. +func (o *PackageRecycleBin) GetActionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Action, true +} + +// SetAction sets field value +func (o *PackageRecycleBin) SetAction(v string) { + o.Action = v +} + +// GetIdentifiers returns the Identifiers field value +func (o *PackageRecycleBin) GetIdentifiers() []string { + if o == nil { + var ret []string + return ret + } + + return o.Identifiers +} + +// GetIdentifiersOk returns a tuple with the Identifiers field value +// and a boolean to check if the value has been set. +func (o *PackageRecycleBin) GetIdentifiersOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Identifiers, true +} + +// SetIdentifiers sets field value +func (o *PackageRecycleBin) SetIdentifiers(v []string) { + o.Identifiers = v +} + +// GetRepository returns the Repository field value if set, zero value otherwise. +func (o *PackageRecycleBin) GetRepository() string { + if o == nil || IsNil(o.Repository) { + var ret string + return ret + } + return *o.Repository +} + +// GetRepositoryOk returns a tuple with the Repository field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageRecycleBin) GetRepositoryOk() (*string, bool) { + if o == nil || IsNil(o.Repository) { + return nil, false + } + return o.Repository, true +} + +// HasRepository returns a boolean if a field has been set. +func (o *PackageRecycleBin) HasRepository() bool { + if o != nil && !IsNil(o.Repository) { + return true + } + + return false +} + +// SetRepository gets a reference to the given string and assigns it to the Repository field. +func (o *PackageRecycleBin) SetRepository(v string) { + o.Repository = &v +} + +func (o PackageRecycleBin) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PackageRecycleBin) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["action"] = o.Action + toSerialize["identifiers"] = o.Identifiers + if !IsNil(o.Repository) { + toSerialize["repository"] = o.Repository + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PackageRecycleBin) 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{ + "action", + "identifiers", + } + + 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) + } + } + + varPackageRecycleBin := _PackageRecycleBin{} + + err = json.Unmarshal(data, &varPackageRecycleBin) + + if err != nil { + return err + } + + *o = PackageRecycleBin(varPackageRecycleBin) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "action") + delete(additionalProperties, "identifiers") + delete(additionalProperties, "repository") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePackageRecycleBin struct { + value *PackageRecycleBin + isSet bool +} + +func (v NullablePackageRecycleBin) Get() *PackageRecycleBin { + return v.value +} + +func (v *NullablePackageRecycleBin) Set(val *PackageRecycleBin) { + v.value = val + v.isSet = true +} + +func (v NullablePackageRecycleBin) IsSet() bool { + return v.isSet +} + +func (v *NullablePackageRecycleBin) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePackageRecycleBin(val *PackageRecycleBin) *NullablePackageRecycleBin { + return &NullablePackageRecycleBin{value: val, isSet: true} +} + +func (v NullablePackageRecycleBin) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePackageRecycleBin) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_package_resync.go b/model_package_resync.go index fd1458bf..f47985d3 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_package_status.go b/model_package_status.go index 98d47a12..f40b67eb 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_package_tag.go b/model_package_tag.go index 0e80326d..b729dae1 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_package_tag_request.go b/model_package_tag_request.go index 7853c38b..e86688eb 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_package_usage_metrics.go b/model_package_usage_metrics.go index 664ab2fb..afa3f185 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_package_vulnerability.go b/model_package_vulnerability.go index e792011d..5a8e7482 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_package_vulnerability_policy_evaluation_request.go b/model_package_vulnerability_policy_evaluation_request.go index f2c209fb..7b356c9e 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_package_vulnerability_policy_violation_log.go b/model_package_vulnerability_policy_violation_log.go index dd2ee7a3..830bab77 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.1093.0 +API version: 1.1137.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 df0adca6..ef8e8d6b 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_packages_groups_list_200_response.go b/model_packages_groups_list_200_response.go index c8d3e3ab..deb9f955 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_provider_settings.go b/model_provider_settings.go index e14c6ebd..e61841fa 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_provider_settings_write.go b/model_provider_settings_write.go index 5aff282b..1442d2f5 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_provider_settings_write_request.go b/model_provider_settings_write_request.go index afde12e6..f884cb46 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_provider_settings_write_request_patch.go b/model_provider_settings_write_request_patch.go index bd92a3a7..0c50cfae 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_python_package_upload.go b/model_python_package_upload.go index 3c337b87..1e5868a8 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_python_package_upload_request.go b/model_python_package_upload_request.go index bfec6932..9a756142 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_python_upstream.go b/model_python_upstream.go index 97f2bc9a..df8768bb 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ @@ -50,7 +50,7 @@ type PythonUpstream struct { // The number of packages available in this upstream source IndexPackageCount NullableInt64 `json:"index_package_count,omitempty"` // The current indexing status of this upstream source - IndexStatus *string `json:"index_status,omitempty"` + IndexStatus NullableString `json:"index_status,omitempty"` // Whether or not this upstream is active and ready for requests. IsActive *bool `json:"is_active,omitempty"` // The last time this upstream source was indexed @@ -632,36 +632,47 @@ func (o *PythonUpstream) UnsetIndexPackageCount() { o.IndexPackageCount.Unset() } -// GetIndexStatus returns the IndexStatus field value if set, zero value otherwise. +// GetIndexStatus returns the IndexStatus field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PythonUpstream) GetIndexStatus() string { - if o == nil || IsNil(o.IndexStatus) { + if o == nil || IsNil(o.IndexStatus.Get()) { var ret string return ret } - return *o.IndexStatus + return *o.IndexStatus.Get() } // GetIndexStatusOk returns a tuple with the IndexStatus 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 *PythonUpstream) GetIndexStatusOk() (*string, bool) { - if o == nil || IsNil(o.IndexStatus) { + if o == nil { return nil, false } - return o.IndexStatus, true + return o.IndexStatus.Get(), o.IndexStatus.IsSet() } // HasIndexStatus returns a boolean if a field has been set. func (o *PythonUpstream) HasIndexStatus() bool { - if o != nil && !IsNil(o.IndexStatus) { + if o != nil && o.IndexStatus.IsSet() { return true } return false } -// SetIndexStatus gets a reference to the given string and assigns it to the IndexStatus field. +// SetIndexStatus gets a reference to the given NullableString and assigns it to the IndexStatus field. func (o *PythonUpstream) SetIndexStatus(v string) { - o.IndexStatus = &v + o.IndexStatus.Set(&v) +} + +// SetIndexStatusNil sets the value for IndexStatus to be an explicit nil +func (o *PythonUpstream) SetIndexStatusNil() { + o.IndexStatus.Set(nil) +} + +// UnsetIndexStatus ensures that no value is present for IndexStatus, not even an explicit nil +func (o *PythonUpstream) UnsetIndexStatus() { + o.IndexStatus.Unset() } // GetIsActive returns the IsActive field value if set, zero value otherwise. @@ -1052,8 +1063,8 @@ func (o PythonUpstream) ToMap() (map[string]interface{}, error) { if o.IndexPackageCount.IsSet() { toSerialize["index_package_count"] = o.IndexPackageCount.Get() } - if !IsNil(o.IndexStatus) { - toSerialize["index_status"] = o.IndexStatus + if o.IndexStatus.IsSet() { + toSerialize["index_status"] = o.IndexStatus.Get() } if !IsNil(o.IsActive) { toSerialize["is_active"] = o.IsActive diff --git a/model_python_upstream_request.go b/model_python_upstream_request.go index bd652571..bbe807e4 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_python_upstream_request_patch.go b/model_python_upstream_request_patch.go index 7569f341..6336883d 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_quota.go b/model_quota.go index 65b62b78..7f904c32 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_quota_history.go b/model_quota_history.go index 00244c6f..93f48c79 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_rate_check.go b/model_rate_check.go index b200b7e8..c8db6dbc 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_raw_package_upload.go b/model_raw_package_upload.go index d95ab026..52a09979 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_raw_package_upload_request.go b/model_raw_package_upload_request.go index 24135bb1..113a4679 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_recycle_bin_package.go b/model_recycle_bin_package.go new file mode 100644 index 00000000..7bb8987d --- /dev/null +++ b/model_recycle_bin_package.go @@ -0,0 +1,1074 @@ +/* +Cloudsmith API (v1) + +The API to the Cloudsmith Service + +API version: 1.1137.0 +Contact: support@cloudsmith.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cloudsmith + +import ( + "encoding/json" + "time" +) + +// checks if the RecycleBinPackage type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RecycleBinPackage{} + +// RecycleBinPackage struct for RecycleBinPackage +type RecycleBinPackage struct { + // The name of the user who deleted the package. + ActionBy NullableString `json:"action_by,omitempty"` + Downloads *int64 `json:"downloads,omitempty"` + Filename *string `json:"filename,omitempty"` + Format *string `json:"format,omitempty"` + // The fully qualified name of the package. + FullyQualifiedName *string `json:"fully_qualified_name,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + // Information about the retention rule that triggered deletion (if any). + InvokedRetentionRule map[string]string `json:"invoked_retention_rule,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsRestorable *bool `json:"is_restorable,omitempty"` + // The name of this package. + Name NullableString `json:"name,omitempty"` + // Whether or not the package has violated any policy. + PolicyViolated *bool `json:"policy_violated,omitempty"` + Repository *string `json:"repository,omitempty"` + // The datetime the security scanning was completed. + SecurityScanCompletedAt NullableTime `json:"security_scan_completed_at,omitempty"` + SecurityScanStatus NullableString `json:"security_scan_status,omitempty"` + // The calculated size of the package. + Size *int64 `json:"size,omitempty"` + SlugPerm *string `json:"slug_perm,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"` + // The synchronisation status of the package. + Status *int64 `json:"status,omitempty"` + // The datetime the package status was updated at. + StatusUpdatedAt *time.Time `json:"status_updated_at,omitempty"` + // All tags on the package, grouped by tag type. This includes immutable tags, but doesn't distinguish them from mutable. To see which tags are immutable specifically, see the tags_immutable field. + Tags map[string]interface{} `json:"tags,omitempty"` + TypeDisplay *string `json:"type_display,omitempty"` + // The date this package was uploaded. + UploadedAt *time.Time `json:"uploaded_at,omitempty"` + Uploader *string `json:"uploader,omitempty"` + // The raw version for this package. + Version NullableString `json:"version,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _RecycleBinPackage RecycleBinPackage + +// NewRecycleBinPackage instantiates a new RecycleBinPackage 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 NewRecycleBinPackage() *RecycleBinPackage { + this := RecycleBinPackage{} + return &this +} + +// NewRecycleBinPackageWithDefaults instantiates a new RecycleBinPackage 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 NewRecycleBinPackageWithDefaults() *RecycleBinPackage { + this := RecycleBinPackage{} + return &this +} + +// GetActionBy returns the ActionBy field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RecycleBinPackage) GetActionBy() string { + if o == nil || IsNil(o.ActionBy.Get()) { + var ret string + return ret + } + return *o.ActionBy.Get() +} + +// GetActionByOk returns a tuple with the ActionBy 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 *RecycleBinPackage) GetActionByOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ActionBy.Get(), o.ActionBy.IsSet() +} + +// HasActionBy returns a boolean if a field has been set. +func (o *RecycleBinPackage) HasActionBy() bool { + if o != nil && o.ActionBy.IsSet() { + return true + } + + return false +} + +// SetActionBy gets a reference to the given NullableString and assigns it to the ActionBy field. +func (o *RecycleBinPackage) SetActionBy(v string) { + o.ActionBy.Set(&v) +} + +// SetActionByNil sets the value for ActionBy to be an explicit nil +func (o *RecycleBinPackage) SetActionByNil() { + o.ActionBy.Set(nil) +} + +// UnsetActionBy ensures that no value is present for ActionBy, not even an explicit nil +func (o *RecycleBinPackage) UnsetActionBy() { + o.ActionBy.Unset() +} + +// GetDownloads returns the Downloads field value if set, zero value otherwise. +func (o *RecycleBinPackage) GetDownloads() int64 { + if o == nil || IsNil(o.Downloads) { + var ret int64 + return ret + } + return *o.Downloads +} + +// GetDownloadsOk returns a tuple with the Downloads field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RecycleBinPackage) GetDownloadsOk() (*int64, bool) { + if o == nil || IsNil(o.Downloads) { + return nil, false + } + return o.Downloads, true +} + +// HasDownloads returns a boolean if a field has been set. +func (o *RecycleBinPackage) HasDownloads() bool { + if o != nil && !IsNil(o.Downloads) { + return true + } + + return false +} + +// SetDownloads gets a reference to the given int64 and assigns it to the Downloads field. +func (o *RecycleBinPackage) SetDownloads(v int64) { + o.Downloads = &v +} + +// GetFilename returns the Filename field value if set, zero value otherwise. +func (o *RecycleBinPackage) GetFilename() string { + if o == nil || IsNil(o.Filename) { + var ret string + return ret + } + return *o.Filename +} + +// GetFilenameOk returns a tuple with the Filename field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RecycleBinPackage) GetFilenameOk() (*string, bool) { + if o == nil || IsNil(o.Filename) { + return nil, false + } + return o.Filename, true +} + +// HasFilename returns a boolean if a field has been set. +func (o *RecycleBinPackage) HasFilename() bool { + if o != nil && !IsNil(o.Filename) { + return true + } + + return false +} + +// SetFilename gets a reference to the given string and assigns it to the Filename field. +func (o *RecycleBinPackage) SetFilename(v string) { + o.Filename = &v +} + +// GetFormat returns the Format field value if set, zero value otherwise. +func (o *RecycleBinPackage) GetFormat() string { + if o == nil || IsNil(o.Format) { + var ret string + return ret + } + return *o.Format +} + +// GetFormatOk returns a tuple with the Format field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RecycleBinPackage) GetFormatOk() (*string, bool) { + if o == nil || IsNil(o.Format) { + return nil, false + } + return o.Format, true +} + +// HasFormat returns a boolean if a field has been set. +func (o *RecycleBinPackage) HasFormat() bool { + if o != nil && !IsNil(o.Format) { + return true + } + + return false +} + +// SetFormat gets a reference to the given string and assigns it to the Format field. +func (o *RecycleBinPackage) SetFormat(v string) { + o.Format = &v +} + +// GetFullyQualifiedName returns the FullyQualifiedName field value if set, zero value otherwise. +func (o *RecycleBinPackage) GetFullyQualifiedName() string { + if o == nil || IsNil(o.FullyQualifiedName) { + var ret string + return ret + } + return *o.FullyQualifiedName +} + +// GetFullyQualifiedNameOk returns a tuple with the FullyQualifiedName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RecycleBinPackage) GetFullyQualifiedNameOk() (*string, bool) { + if o == nil || IsNil(o.FullyQualifiedName) { + return nil, false + } + return o.FullyQualifiedName, true +} + +// HasFullyQualifiedName returns a boolean if a field has been set. +func (o *RecycleBinPackage) HasFullyQualifiedName() bool { + if o != nil && !IsNil(o.FullyQualifiedName) { + return true + } + + return false +} + +// SetFullyQualifiedName gets a reference to the given string and assigns it to the FullyQualifiedName field. +func (o *RecycleBinPackage) SetFullyQualifiedName(v string) { + o.FullyQualifiedName = &v +} + +// GetIdentifiers returns the Identifiers field value if set, zero value otherwise. +func (o *RecycleBinPackage) GetIdentifiers() map[string]string { + if o == nil || IsNil(o.Identifiers) { + var ret map[string]string + return ret + } + return *o.Identifiers +} + +// GetIdentifiersOk returns a tuple with the Identifiers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RecycleBinPackage) GetIdentifiersOk() (*map[string]string, bool) { + if o == nil || IsNil(o.Identifiers) { + return nil, false + } + return o.Identifiers, true +} + +// HasIdentifiers returns a boolean if a field has been set. +func (o *RecycleBinPackage) HasIdentifiers() bool { + if o != nil && !IsNil(o.Identifiers) { + return true + } + + return false +} + +// SetIdentifiers gets a reference to the given map[string]string and assigns it to the Identifiers field. +func (o *RecycleBinPackage) SetIdentifiers(v map[string]string) { + o.Identifiers = &v +} + +// GetInvokedRetentionRule returns the InvokedRetentionRule field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RecycleBinPackage) GetInvokedRetentionRule() map[string]string { + if o == nil { + var ret map[string]string + return ret + } + return o.InvokedRetentionRule +} + +// GetInvokedRetentionRuleOk returns a tuple with the InvokedRetentionRule 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 *RecycleBinPackage) GetInvokedRetentionRuleOk() (*map[string]string, bool) { + if o == nil || IsNil(o.InvokedRetentionRule) { + return nil, false + } + return &o.InvokedRetentionRule, true +} + +// HasInvokedRetentionRule returns a boolean if a field has been set. +func (o *RecycleBinPackage) HasInvokedRetentionRule() bool { + if o != nil && !IsNil(o.InvokedRetentionRule) { + return true + } + + return false +} + +// SetInvokedRetentionRule gets a reference to the given map[string]string and assigns it to the InvokedRetentionRule field. +func (o *RecycleBinPackage) SetInvokedRetentionRule(v map[string]string) { + o.InvokedRetentionRule = v +} + +// GetIsDeleteable returns the IsDeleteable field value if set, zero value otherwise. +func (o *RecycleBinPackage) GetIsDeleteable() bool { + if o == nil || IsNil(o.IsDeleteable) { + var ret bool + return ret + } + return *o.IsDeleteable +} + +// GetIsDeleteableOk returns a tuple with the IsDeleteable field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RecycleBinPackage) GetIsDeleteableOk() (*bool, bool) { + if o == nil || IsNil(o.IsDeleteable) { + return nil, false + } + return o.IsDeleteable, true +} + +// HasIsDeleteable returns a boolean if a field has been set. +func (o *RecycleBinPackage) HasIsDeleteable() bool { + if o != nil && !IsNil(o.IsDeleteable) { + return true + } + + return false +} + +// SetIsDeleteable gets a reference to the given bool and assigns it to the IsDeleteable field. +func (o *RecycleBinPackage) SetIsDeleteable(v bool) { + o.IsDeleteable = &v +} + +// GetIsQuarantined returns the IsQuarantined field value if set, zero value otherwise. +func (o *RecycleBinPackage) GetIsQuarantined() bool { + if o == nil || IsNil(o.IsQuarantined) { + var ret bool + return ret + } + return *o.IsQuarantined +} + +// GetIsQuarantinedOk returns a tuple with the IsQuarantined field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RecycleBinPackage) GetIsQuarantinedOk() (*bool, bool) { + if o == nil || IsNil(o.IsQuarantined) { + return nil, false + } + return o.IsQuarantined, true +} + +// HasIsQuarantined returns a boolean if a field has been set. +func (o *RecycleBinPackage) HasIsQuarantined() bool { + if o != nil && !IsNil(o.IsQuarantined) { + return true + } + + return false +} + +// SetIsQuarantined gets a reference to the given bool and assigns it to the IsQuarantined field. +func (o *RecycleBinPackage) SetIsQuarantined(v bool) { + o.IsQuarantined = &v +} + +// GetIsRestorable returns the IsRestorable field value if set, zero value otherwise. +func (o *RecycleBinPackage) GetIsRestorable() bool { + if o == nil || IsNil(o.IsRestorable) { + var ret bool + return ret + } + return *o.IsRestorable +} + +// GetIsRestorableOk returns a tuple with the IsRestorable field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RecycleBinPackage) GetIsRestorableOk() (*bool, bool) { + if o == nil || IsNil(o.IsRestorable) { + return nil, false + } + return o.IsRestorable, true +} + +// HasIsRestorable returns a boolean if a field has been set. +func (o *RecycleBinPackage) HasIsRestorable() bool { + if o != nil && !IsNil(o.IsRestorable) { + return true + } + + return false +} + +// SetIsRestorable gets a reference to the given bool and assigns it to the IsRestorable field. +func (o *RecycleBinPackage) SetIsRestorable(v bool) { + o.IsRestorable = &v +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RecycleBinPackage) GetName() string { + if o == nil || IsNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name 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 *RecycleBinPackage) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *RecycleBinPackage) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *RecycleBinPackage) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *RecycleBinPackage) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *RecycleBinPackage) UnsetName() { + o.Name.Unset() +} + +// GetPolicyViolated returns the PolicyViolated field value if set, zero value otherwise. +func (o *RecycleBinPackage) GetPolicyViolated() bool { + if o == nil || IsNil(o.PolicyViolated) { + var ret bool + return ret + } + return *o.PolicyViolated +} + +// GetPolicyViolatedOk returns a tuple with the PolicyViolated field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RecycleBinPackage) GetPolicyViolatedOk() (*bool, bool) { + if o == nil || IsNil(o.PolicyViolated) { + return nil, false + } + return o.PolicyViolated, true +} + +// HasPolicyViolated returns a boolean if a field has been set. +func (o *RecycleBinPackage) HasPolicyViolated() bool { + if o != nil && !IsNil(o.PolicyViolated) { + return true + } + + return false +} + +// SetPolicyViolated gets a reference to the given bool and assigns it to the PolicyViolated field. +func (o *RecycleBinPackage) SetPolicyViolated(v bool) { + o.PolicyViolated = &v +} + +// GetRepository returns the Repository field value if set, zero value otherwise. +func (o *RecycleBinPackage) GetRepository() string { + if o == nil || IsNil(o.Repository) { + var ret string + return ret + } + return *o.Repository +} + +// GetRepositoryOk returns a tuple with the Repository field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RecycleBinPackage) GetRepositoryOk() (*string, bool) { + if o == nil || IsNil(o.Repository) { + return nil, false + } + return o.Repository, true +} + +// HasRepository returns a boolean if a field has been set. +func (o *RecycleBinPackage) HasRepository() bool { + if o != nil && !IsNil(o.Repository) { + return true + } + + return false +} + +// SetRepository gets a reference to the given string and assigns it to the Repository field. +func (o *RecycleBinPackage) SetRepository(v string) { + o.Repository = &v +} + +// GetSecurityScanCompletedAt returns the SecurityScanCompletedAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RecycleBinPackage) GetSecurityScanCompletedAt() time.Time { + if o == nil || IsNil(o.SecurityScanCompletedAt.Get()) { + var ret time.Time + return ret + } + return *o.SecurityScanCompletedAt.Get() +} + +// GetSecurityScanCompletedAtOk returns a tuple with the SecurityScanCompletedAt 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 *RecycleBinPackage) GetSecurityScanCompletedAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.SecurityScanCompletedAt.Get(), o.SecurityScanCompletedAt.IsSet() +} + +// HasSecurityScanCompletedAt returns a boolean if a field has been set. +func (o *RecycleBinPackage) HasSecurityScanCompletedAt() bool { + if o != nil && o.SecurityScanCompletedAt.IsSet() { + return true + } + + return false +} + +// SetSecurityScanCompletedAt gets a reference to the given NullableTime and assigns it to the SecurityScanCompletedAt field. +func (o *RecycleBinPackage) SetSecurityScanCompletedAt(v time.Time) { + o.SecurityScanCompletedAt.Set(&v) +} + +// SetSecurityScanCompletedAtNil sets the value for SecurityScanCompletedAt to be an explicit nil +func (o *RecycleBinPackage) SetSecurityScanCompletedAtNil() { + o.SecurityScanCompletedAt.Set(nil) +} + +// UnsetSecurityScanCompletedAt ensures that no value is present for SecurityScanCompletedAt, not even an explicit nil +func (o *RecycleBinPackage) UnsetSecurityScanCompletedAt() { + o.SecurityScanCompletedAt.Unset() +} + +// GetSecurityScanStatus returns the SecurityScanStatus field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RecycleBinPackage) GetSecurityScanStatus() string { + if o == nil || IsNil(o.SecurityScanStatus.Get()) { + var ret string + return ret + } + return *o.SecurityScanStatus.Get() +} + +// GetSecurityScanStatusOk returns a tuple with the SecurityScanStatus 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 *RecycleBinPackage) GetSecurityScanStatusOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SecurityScanStatus.Get(), o.SecurityScanStatus.IsSet() +} + +// HasSecurityScanStatus returns a boolean if a field has been set. +func (o *RecycleBinPackage) HasSecurityScanStatus() bool { + if o != nil && o.SecurityScanStatus.IsSet() { + return true + } + + return false +} + +// SetSecurityScanStatus gets a reference to the given NullableString and assigns it to the SecurityScanStatus field. +func (o *RecycleBinPackage) SetSecurityScanStatus(v string) { + o.SecurityScanStatus.Set(&v) +} + +// SetSecurityScanStatusNil sets the value for SecurityScanStatus to be an explicit nil +func (o *RecycleBinPackage) SetSecurityScanStatusNil() { + o.SecurityScanStatus.Set(nil) +} + +// UnsetSecurityScanStatus ensures that no value is present for SecurityScanStatus, not even an explicit nil +func (o *RecycleBinPackage) UnsetSecurityScanStatus() { + o.SecurityScanStatus.Unset() +} + +// GetSize returns the Size field value if set, zero value otherwise. +func (o *RecycleBinPackage) 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 *RecycleBinPackage) 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 *RecycleBinPackage) 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 *RecycleBinPackage) SetSize(v int64) { + o.Size = &v +} + +// GetSlugPerm returns the SlugPerm field value if set, zero value otherwise. +func (o *RecycleBinPackage) 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 *RecycleBinPackage) 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 *RecycleBinPackage) 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 *RecycleBinPackage) SetSlugPerm(v string) { + o.SlugPerm = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *RecycleBinPackage) GetStatus() int64 { + if o == nil || IsNil(o.Status) { + var ret int64 + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RecycleBinPackage) GetStatusOk() (*int64, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *RecycleBinPackage) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given int64 and assigns it to the Status field. +func (o *RecycleBinPackage) SetStatus(v int64) { + o.Status = &v +} + +// GetStatusUpdatedAt returns the StatusUpdatedAt field value if set, zero value otherwise. +func (o *RecycleBinPackage) GetStatusUpdatedAt() time.Time { + if o == nil || IsNil(o.StatusUpdatedAt) { + var ret time.Time + return ret + } + return *o.StatusUpdatedAt +} + +// GetStatusUpdatedAtOk returns a tuple with the StatusUpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RecycleBinPackage) GetStatusUpdatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.StatusUpdatedAt) { + return nil, false + } + return o.StatusUpdatedAt, true +} + +// HasStatusUpdatedAt returns a boolean if a field has been set. +func (o *RecycleBinPackage) HasStatusUpdatedAt() bool { + if o != nil && !IsNil(o.StatusUpdatedAt) { + return true + } + + return false +} + +// SetStatusUpdatedAt gets a reference to the given time.Time and assigns it to the StatusUpdatedAt field. +func (o *RecycleBinPackage) SetStatusUpdatedAt(v time.Time) { + o.StatusUpdatedAt = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *RecycleBinPackage) GetTags() map[string]interface{} { + if o == nil || IsNil(o.Tags) { + var ret map[string]interface{} + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RecycleBinPackage) GetTagsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Tags) { + return map[string]interface{}{}, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *RecycleBinPackage) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given map[string]interface{} and assigns it to the Tags field. +func (o *RecycleBinPackage) SetTags(v map[string]interface{}) { + o.Tags = v +} + +// GetTypeDisplay returns the TypeDisplay field value if set, zero value otherwise. +func (o *RecycleBinPackage) GetTypeDisplay() string { + if o == nil || IsNil(o.TypeDisplay) { + var ret string + return ret + } + return *o.TypeDisplay +} + +// GetTypeDisplayOk returns a tuple with the TypeDisplay field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RecycleBinPackage) GetTypeDisplayOk() (*string, bool) { + if o == nil || IsNil(o.TypeDisplay) { + return nil, false + } + return o.TypeDisplay, true +} + +// HasTypeDisplay returns a boolean if a field has been set. +func (o *RecycleBinPackage) HasTypeDisplay() bool { + if o != nil && !IsNil(o.TypeDisplay) { + return true + } + + return false +} + +// SetTypeDisplay gets a reference to the given string and assigns it to the TypeDisplay field. +func (o *RecycleBinPackage) SetTypeDisplay(v string) { + o.TypeDisplay = &v +} + +// GetUploadedAt returns the UploadedAt field value if set, zero value otherwise. +func (o *RecycleBinPackage) GetUploadedAt() time.Time { + if o == nil || IsNil(o.UploadedAt) { + var ret time.Time + return ret + } + return *o.UploadedAt +} + +// GetUploadedAtOk returns a tuple with the UploadedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RecycleBinPackage) GetUploadedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.UploadedAt) { + return nil, false + } + return o.UploadedAt, true +} + +// HasUploadedAt returns a boolean if a field has been set. +func (o *RecycleBinPackage) HasUploadedAt() bool { + if o != nil && !IsNil(o.UploadedAt) { + return true + } + + return false +} + +// SetUploadedAt gets a reference to the given time.Time and assigns it to the UploadedAt field. +func (o *RecycleBinPackage) SetUploadedAt(v time.Time) { + o.UploadedAt = &v +} + +// GetUploader returns the Uploader field value if set, zero value otherwise. +func (o *RecycleBinPackage) GetUploader() string { + if o == nil || IsNil(o.Uploader) { + var ret string + return ret + } + return *o.Uploader +} + +// GetUploaderOk returns a tuple with the Uploader field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RecycleBinPackage) GetUploaderOk() (*string, bool) { + if o == nil || IsNil(o.Uploader) { + return nil, false + } + return o.Uploader, true +} + +// HasUploader returns a boolean if a field has been set. +func (o *RecycleBinPackage) HasUploader() bool { + if o != nil && !IsNil(o.Uploader) { + return true + } + + return false +} + +// SetUploader gets a reference to the given string and assigns it to the Uploader field. +func (o *RecycleBinPackage) SetUploader(v string) { + o.Uploader = &v +} + +// GetVersion returns the Version field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RecycleBinPackage) GetVersion() string { + if o == nil || IsNil(o.Version.Get()) { + var ret string + return ret + } + return *o.Version.Get() +} + +// GetVersionOk returns a tuple with the Version 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 *RecycleBinPackage) GetVersionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Version.Get(), o.Version.IsSet() +} + +// HasVersion returns a boolean if a field has been set. +func (o *RecycleBinPackage) HasVersion() bool { + if o != nil && o.Version.IsSet() { + return true + } + + return false +} + +// SetVersion gets a reference to the given NullableString and assigns it to the Version field. +func (o *RecycleBinPackage) SetVersion(v string) { + o.Version.Set(&v) +} + +// SetVersionNil sets the value for Version to be an explicit nil +func (o *RecycleBinPackage) SetVersionNil() { + o.Version.Set(nil) +} + +// UnsetVersion ensures that no value is present for Version, not even an explicit nil +func (o *RecycleBinPackage) UnsetVersion() { + o.Version.Unset() +} + +func (o RecycleBinPackage) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RecycleBinPackage) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.ActionBy.IsSet() { + toSerialize["action_by"] = o.ActionBy.Get() + } + if !IsNil(o.Downloads) { + toSerialize["downloads"] = o.Downloads + } + if !IsNil(o.Filename) { + toSerialize["filename"] = o.Filename + } + if !IsNil(o.Format) { + toSerialize["format"] = o.Format + } + if !IsNil(o.FullyQualifiedName) { + toSerialize["fully_qualified_name"] = o.FullyQualifiedName + } + if !IsNil(o.Identifiers) { + toSerialize["identifiers"] = o.Identifiers + } + if o.InvokedRetentionRule != nil { + toSerialize["invoked_retention_rule"] = o.InvokedRetentionRule + } + if !IsNil(o.IsDeleteable) { + toSerialize["is_deleteable"] = o.IsDeleteable + } + if !IsNil(o.IsQuarantined) { + toSerialize["is_quarantined"] = o.IsQuarantined + } + if !IsNil(o.IsRestorable) { + toSerialize["is_restorable"] = o.IsRestorable + } + if o.Name.IsSet() { + toSerialize["name"] = o.Name.Get() + } + if !IsNil(o.PolicyViolated) { + toSerialize["policy_violated"] = o.PolicyViolated + } + if !IsNil(o.Repository) { + toSerialize["repository"] = o.Repository + } + if o.SecurityScanCompletedAt.IsSet() { + toSerialize["security_scan_completed_at"] = o.SecurityScanCompletedAt.Get() + } + if o.SecurityScanStatus.IsSet() { + toSerialize["security_scan_status"] = o.SecurityScanStatus.Get() + } + if !IsNil(o.Size) { + toSerialize["size"] = o.Size + } + if !IsNil(o.SlugPerm) { + toSerialize["slug_perm"] = o.SlugPerm + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.StatusUpdatedAt) { + toSerialize["status_updated_at"] = o.StatusUpdatedAt + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.TypeDisplay) { + toSerialize["type_display"] = o.TypeDisplay + } + if !IsNil(o.UploadedAt) { + toSerialize["uploaded_at"] = o.UploadedAt + } + if !IsNil(o.Uploader) { + toSerialize["uploader"] = o.Uploader + } + if o.Version.IsSet() { + toSerialize["version"] = o.Version.Get() + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *RecycleBinPackage) UnmarshalJSON(data []byte) (err error) { + varRecycleBinPackage := _RecycleBinPackage{} + + err = json.Unmarshal(data, &varRecycleBinPackage) + + if err != nil { + return err + } + + *o = RecycleBinPackage(varRecycleBinPackage) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "action_by") + delete(additionalProperties, "downloads") + delete(additionalProperties, "filename") + delete(additionalProperties, "format") + delete(additionalProperties, "fully_qualified_name") + delete(additionalProperties, "identifiers") + delete(additionalProperties, "invoked_retention_rule") + delete(additionalProperties, "is_deleteable") + delete(additionalProperties, "is_quarantined") + delete(additionalProperties, "is_restorable") + delete(additionalProperties, "name") + delete(additionalProperties, "policy_violated") + delete(additionalProperties, "repository") + delete(additionalProperties, "security_scan_completed_at") + delete(additionalProperties, "security_scan_status") + delete(additionalProperties, "size") + delete(additionalProperties, "slug_perm") + delete(additionalProperties, "status") + delete(additionalProperties, "status_updated_at") + delete(additionalProperties, "tags") + delete(additionalProperties, "type_display") + delete(additionalProperties, "uploaded_at") + delete(additionalProperties, "uploader") + delete(additionalProperties, "version") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableRecycleBinPackage struct { + value *RecycleBinPackage + isSet bool +} + +func (v NullableRecycleBinPackage) Get() *RecycleBinPackage { + return v.value +} + +func (v *NullableRecycleBinPackage) Set(val *RecycleBinPackage) { + v.value = val + v.isSet = true +} + +func (v NullableRecycleBinPackage) IsSet() bool { + return v.isSet +} + +func (v *NullableRecycleBinPackage) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRecycleBinPackage(val *RecycleBinPackage) *NullableRecycleBinPackage { + return &NullableRecycleBinPackage{value: val, isSet: true} +} + +func (v NullableRecycleBinPackage) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRecycleBinPackage) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_repository.go b/model_repository.go index 44338075..2cd5adf9 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_audit_log.go b/model_repository_audit_log.go index aba674d7..2f539a24 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_create.go b/model_repository_create.go index 112f578d..3d024620 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_create_request.go b/model_repository_create_request.go index 1a5c3687..9a0e5270 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_ecdsa_key.go b/model_repository_ecdsa_key.go index 1400db35..bcbd84f6 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_ecdsa_key_create.go b/model_repository_ecdsa_key_create.go index 57e1cac0..df054f69 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_geo_ip_cidr.go b/model_repository_geo_ip_cidr.go index 88efc880..3de6ce20 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_geo_ip_country_code.go b/model_repository_geo_ip_country_code.go index 7eccdcf3..0eea4543 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_geo_ip_rules.go b/model_repository_geo_ip_rules.go index b133f9da..83b23e8f 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_geo_ip_rules_request.go b/model_repository_geo_ip_rules_request.go index 7b7534a2..dd79cc58 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.1093.0 +API version: 1.1137.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 96b2e638..3f60e501 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_geo_ip_status.go b/model_repository_geo_ip_status.go index 82354a15..b80f367e 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_geo_ip_test_address.go b/model_repository_geo_ip_test_address.go index f772e4e8..0bf43dce 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.1093.0 +API version: 1.1137.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 a49054f6..a11cecb9 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.1093.0 +API version: 1.1137.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 f1e63cf3..b44d75f7 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_gpg_key.go b/model_repository_gpg_key.go index 989c80ed..af1d33ef 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_gpg_key_create.go b/model_repository_gpg_key_create.go index b657a92b..b182860e 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_privilege_dict.go b/model_repository_privilege_dict.go index 15f6ab0f..10e79bb1 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_privilege_input.go b/model_repository_privilege_input.go index 72f49896..12f1158f 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_privilege_input_request.go b/model_repository_privilege_input_request.go index d856ec0c..4652403b 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_privilege_input_request_patch.go b/model_repository_privilege_input_request_patch.go index 3f754fdf..3a422c83 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_request_patch.go b/model_repository_request_patch.go index 21928f32..a9cbc18d 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_retention_rules.go b/model_repository_retention_rules.go index 86077506..4c09653a 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_retention_rules_request_patch.go b/model_repository_retention_rules_request_patch.go index a0c2184c..cdfac034 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_rsa_key.go b/model_repository_rsa_key.go index cfe5e2d1..a3a46be0 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_rsa_key_create.go b/model_repository_rsa_key_create.go index 3f5f4928..a841cdcc 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_token.go b/model_repository_token.go index 9e55c85f..07dd3cd8 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_token_private_broadcasts.go b/model_repository_token_private_broadcasts.go new file mode 100644 index 00000000..c747ab77 --- /dev/null +++ b/model_repository_token_private_broadcasts.go @@ -0,0 +1,168 @@ +/* +Cloudsmith API (v1) + +The API to the Cloudsmith Service + +API version: 1.1137.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 RepositoryTokenPrivateBroadcasts type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RepositoryTokenPrivateBroadcasts{} + +// RepositoryTokenPrivateBroadcasts struct for RepositoryTokenPrivateBroadcasts +type RepositoryTokenPrivateBroadcasts struct { + // Whether the token should have access to private broadcasts. + AccessPrivateBroadcasts bool `json:"access_private_broadcasts"` + AdditionalProperties map[string]interface{} +} + +type _RepositoryTokenPrivateBroadcasts RepositoryTokenPrivateBroadcasts + +// NewRepositoryTokenPrivateBroadcasts instantiates a new RepositoryTokenPrivateBroadcasts 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 NewRepositoryTokenPrivateBroadcasts(accessPrivateBroadcasts bool) *RepositoryTokenPrivateBroadcasts { + this := RepositoryTokenPrivateBroadcasts{} + this.AccessPrivateBroadcasts = accessPrivateBroadcasts + return &this +} + +// NewRepositoryTokenPrivateBroadcastsWithDefaults instantiates a new RepositoryTokenPrivateBroadcasts 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 NewRepositoryTokenPrivateBroadcastsWithDefaults() *RepositoryTokenPrivateBroadcasts { + this := RepositoryTokenPrivateBroadcasts{} + return &this +} + +// GetAccessPrivateBroadcasts returns the AccessPrivateBroadcasts field value +func (o *RepositoryTokenPrivateBroadcasts) GetAccessPrivateBroadcasts() bool { + if o == nil { + var ret bool + return ret + } + + return o.AccessPrivateBroadcasts +} + +// GetAccessPrivateBroadcastsOk returns a tuple with the AccessPrivateBroadcasts field value +// and a boolean to check if the value has been set. +func (o *RepositoryTokenPrivateBroadcasts) GetAccessPrivateBroadcastsOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.AccessPrivateBroadcasts, true +} + +// SetAccessPrivateBroadcasts sets field value +func (o *RepositoryTokenPrivateBroadcasts) SetAccessPrivateBroadcasts(v bool) { + o.AccessPrivateBroadcasts = v +} + +func (o RepositoryTokenPrivateBroadcasts) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RepositoryTokenPrivateBroadcasts) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["access_private_broadcasts"] = o.AccessPrivateBroadcasts + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *RepositoryTokenPrivateBroadcasts) 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{ + "access_private_broadcasts", + } + + 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) + } + } + + varRepositoryTokenPrivateBroadcasts := _RepositoryTokenPrivateBroadcasts{} + + err = json.Unmarshal(data, &varRepositoryTokenPrivateBroadcasts) + + if err != nil { + return err + } + + *o = RepositoryTokenPrivateBroadcasts(varRepositoryTokenPrivateBroadcasts) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "access_private_broadcasts") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableRepositoryTokenPrivateBroadcasts struct { + value *RepositoryTokenPrivateBroadcasts + isSet bool +} + +func (v NullableRepositoryTokenPrivateBroadcasts) Get() *RepositoryTokenPrivateBroadcasts { + return v.value +} + +func (v *NullableRepositoryTokenPrivateBroadcasts) Set(val *RepositoryTokenPrivateBroadcasts) { + v.value = val + v.isSet = true +} + +func (v NullableRepositoryTokenPrivateBroadcasts) IsSet() bool { + return v.isSet +} + +func (v *NullableRepositoryTokenPrivateBroadcasts) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRepositoryTokenPrivateBroadcasts(val *RepositoryTokenPrivateBroadcasts) *NullableRepositoryTokenPrivateBroadcasts { + return &NullableRepositoryTokenPrivateBroadcasts{value: val, isSet: true} +} + +func (v NullableRepositoryTokenPrivateBroadcasts) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRepositoryTokenPrivateBroadcasts) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_repository_token_private_broadcasts_request.go b/model_repository_token_private_broadcasts_request.go new file mode 100644 index 00000000..59c3440f --- /dev/null +++ b/model_repository_token_private_broadcasts_request.go @@ -0,0 +1,168 @@ +/* +Cloudsmith API (v1) + +The API to the Cloudsmith Service + +API version: 1.1137.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 RepositoryTokenPrivateBroadcastsRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RepositoryTokenPrivateBroadcastsRequest{} + +// RepositoryTokenPrivateBroadcastsRequest struct for RepositoryTokenPrivateBroadcastsRequest +type RepositoryTokenPrivateBroadcastsRequest struct { + // Whether the token should have access to private broadcasts. + AccessPrivateBroadcasts bool `json:"access_private_broadcasts"` + AdditionalProperties map[string]interface{} +} + +type _RepositoryTokenPrivateBroadcastsRequest RepositoryTokenPrivateBroadcastsRequest + +// NewRepositoryTokenPrivateBroadcastsRequest instantiates a new RepositoryTokenPrivateBroadcastsRequest 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 NewRepositoryTokenPrivateBroadcastsRequest(accessPrivateBroadcasts bool) *RepositoryTokenPrivateBroadcastsRequest { + this := RepositoryTokenPrivateBroadcastsRequest{} + this.AccessPrivateBroadcasts = accessPrivateBroadcasts + return &this +} + +// NewRepositoryTokenPrivateBroadcastsRequestWithDefaults instantiates a new RepositoryTokenPrivateBroadcastsRequest 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 NewRepositoryTokenPrivateBroadcastsRequestWithDefaults() *RepositoryTokenPrivateBroadcastsRequest { + this := RepositoryTokenPrivateBroadcastsRequest{} + return &this +} + +// GetAccessPrivateBroadcasts returns the AccessPrivateBroadcasts field value +func (o *RepositoryTokenPrivateBroadcastsRequest) GetAccessPrivateBroadcasts() bool { + if o == nil { + var ret bool + return ret + } + + return o.AccessPrivateBroadcasts +} + +// GetAccessPrivateBroadcastsOk returns a tuple with the AccessPrivateBroadcasts field value +// and a boolean to check if the value has been set. +func (o *RepositoryTokenPrivateBroadcastsRequest) GetAccessPrivateBroadcastsOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.AccessPrivateBroadcasts, true +} + +// SetAccessPrivateBroadcasts sets field value +func (o *RepositoryTokenPrivateBroadcastsRequest) SetAccessPrivateBroadcasts(v bool) { + o.AccessPrivateBroadcasts = v +} + +func (o RepositoryTokenPrivateBroadcastsRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RepositoryTokenPrivateBroadcastsRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["access_private_broadcasts"] = o.AccessPrivateBroadcasts + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *RepositoryTokenPrivateBroadcastsRequest) 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{ + "access_private_broadcasts", + } + + 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) + } + } + + varRepositoryTokenPrivateBroadcastsRequest := _RepositoryTokenPrivateBroadcastsRequest{} + + err = json.Unmarshal(data, &varRepositoryTokenPrivateBroadcastsRequest) + + if err != nil { + return err + } + + *o = RepositoryTokenPrivateBroadcastsRequest(varRepositoryTokenPrivateBroadcastsRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "access_private_broadcasts") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableRepositoryTokenPrivateBroadcastsRequest struct { + value *RepositoryTokenPrivateBroadcastsRequest + isSet bool +} + +func (v NullableRepositoryTokenPrivateBroadcastsRequest) Get() *RepositoryTokenPrivateBroadcastsRequest { + return v.value +} + +func (v *NullableRepositoryTokenPrivateBroadcastsRequest) Set(val *RepositoryTokenPrivateBroadcastsRequest) { + v.value = val + v.isSet = true +} + +func (v NullableRepositoryTokenPrivateBroadcastsRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableRepositoryTokenPrivateBroadcastsRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRepositoryTokenPrivateBroadcastsRequest(val *RepositoryTokenPrivateBroadcastsRequest) *NullableRepositoryTokenPrivateBroadcastsRequest { + return &NullableRepositoryTokenPrivateBroadcastsRequest{value: val, isSet: true} +} + +func (v NullableRepositoryTokenPrivateBroadcastsRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRepositoryTokenPrivateBroadcastsRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_repository_token_refresh.go b/model_repository_token_refresh.go index 46ce78be..6b0bbfc2 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_token_refresh_request.go b/model_repository_token_refresh_request.go index 6c43d029..a6810b12 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ @@ -21,8 +21,6 @@ var _ MappedNullable = &RepositoryTokenRefreshRequest{} // RepositoryTokenRefreshRequest struct for RepositoryTokenRefreshRequest type RepositoryTokenRefreshRequest struct { - // If enabled, this token can be used for private broadcasts - AccessPrivateBroadcasts *bool `json:"access_private_broadcasts,omitempty"` // If checked, a EULA acceptance is required for this token. EulaRequired *bool `json:"eula_required,omitempty"` // If enabled, the token will allow downloads based on configured restrictions (if any). @@ -77,38 +75,6 @@ func NewRepositoryTokenRefreshRequestWithDefaults() *RepositoryTokenRefreshReque return &this } -// GetAccessPrivateBroadcasts returns the AccessPrivateBroadcasts field value if set, zero value otherwise. -func (o *RepositoryTokenRefreshRequest) GetAccessPrivateBroadcasts() bool { - if o == nil || IsNil(o.AccessPrivateBroadcasts) { - var ret bool - return ret - } - return *o.AccessPrivateBroadcasts -} - -// GetAccessPrivateBroadcastsOk returns a tuple with the AccessPrivateBroadcasts field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *RepositoryTokenRefreshRequest) GetAccessPrivateBroadcastsOk() (*bool, bool) { - if o == nil || IsNil(o.AccessPrivateBroadcasts) { - return nil, false - } - return o.AccessPrivateBroadcasts, true -} - -// HasAccessPrivateBroadcasts returns a boolean if a field has been set. -func (o *RepositoryTokenRefreshRequest) HasAccessPrivateBroadcasts() bool { - if o != nil && !IsNil(o.AccessPrivateBroadcasts) { - return true - } - - return false -} - -// SetAccessPrivateBroadcasts gets a reference to the given bool and assigns it to the AccessPrivateBroadcasts field. -func (o *RepositoryTokenRefreshRequest) SetAccessPrivateBroadcasts(v bool) { - o.AccessPrivateBroadcasts = &v -} - // GetEulaRequired returns the EulaRequired field value if set, zero value otherwise. func (o *RepositoryTokenRefreshRequest) GetEulaRequired() bool { if o == nil || IsNil(o.EulaRequired) { @@ -678,9 +644,6 @@ func (o RepositoryTokenRefreshRequest) MarshalJSON() ([]byte, error) { func (o RepositoryTokenRefreshRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !IsNil(o.AccessPrivateBroadcasts) { - toSerialize["access_private_broadcasts"] = o.AccessPrivateBroadcasts - } if !IsNil(o.EulaRequired) { toSerialize["eula_required"] = o.EulaRequired } @@ -745,7 +708,6 @@ func (o *RepositoryTokenRefreshRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "access_private_broadcasts") delete(additionalProperties, "eula_required") delete(additionalProperties, "is_active") delete(additionalProperties, "limit_bandwidth") diff --git a/model_repository_token_request.go b/model_repository_token_request.go index 0981ec70..ed3c4f29 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ @@ -22,8 +22,6 @@ var _ MappedNullable = &RepositoryTokenRequest{} // RepositoryTokenRequest struct for RepositoryTokenRequest type RepositoryTokenRequest struct { - // If enabled, this token can be used for private broadcasts - AccessPrivateBroadcasts *bool `json:"access_private_broadcasts,omitempty"` // If checked, a EULA acceptance is required for this token. EulaRequired *bool `json:"eula_required,omitempty"` // If enabled, the token will allow downloads based on configured restrictions (if any). @@ -80,38 +78,6 @@ func NewRepositoryTokenRequestWithDefaults() *RepositoryTokenRequest { return &this } -// GetAccessPrivateBroadcasts returns the AccessPrivateBroadcasts field value if set, zero value otherwise. -func (o *RepositoryTokenRequest) GetAccessPrivateBroadcasts() bool { - if o == nil || IsNil(o.AccessPrivateBroadcasts) { - var ret bool - return ret - } - return *o.AccessPrivateBroadcasts -} - -// GetAccessPrivateBroadcastsOk returns a tuple with the AccessPrivateBroadcasts field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *RepositoryTokenRequest) GetAccessPrivateBroadcastsOk() (*bool, bool) { - if o == nil || IsNil(o.AccessPrivateBroadcasts) { - return nil, false - } - return o.AccessPrivateBroadcasts, true -} - -// HasAccessPrivateBroadcasts returns a boolean if a field has been set. -func (o *RepositoryTokenRequest) HasAccessPrivateBroadcasts() bool { - if o != nil && !IsNil(o.AccessPrivateBroadcasts) { - return true - } - - return false -} - -// SetAccessPrivateBroadcasts gets a reference to the given bool and assigns it to the AccessPrivateBroadcasts field. -func (o *RepositoryTokenRequest) SetAccessPrivateBroadcasts(v bool) { - o.AccessPrivateBroadcasts = &v -} - // GetEulaRequired returns the EulaRequired field value if set, zero value otherwise. func (o *RepositoryTokenRequest) GetEulaRequired() bool { if o == nil || IsNil(o.EulaRequired) { @@ -705,9 +671,6 @@ func (o RepositoryTokenRequest) MarshalJSON() ([]byte, error) { func (o RepositoryTokenRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !IsNil(o.AccessPrivateBroadcasts) { - toSerialize["access_private_broadcasts"] = o.AccessPrivateBroadcasts - } if !IsNil(o.EulaRequired) { toSerialize["eula_required"] = o.EulaRequired } @@ -794,7 +757,6 @@ func (o *RepositoryTokenRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "access_private_broadcasts") delete(additionalProperties, "eula_required") delete(additionalProperties, "is_active") delete(additionalProperties, "limit_bandwidth") diff --git a/model_repository_token_request_patch.go b/model_repository_token_request_patch.go index bbc22421..1a21663a 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ @@ -21,8 +21,6 @@ var _ MappedNullable = &RepositoryTokenRequestPatch{} // RepositoryTokenRequestPatch struct for RepositoryTokenRequestPatch type RepositoryTokenRequestPatch struct { - // If enabled, this token can be used for private broadcasts - AccessPrivateBroadcasts *bool `json:"access_private_broadcasts,omitempty"` // If checked, a EULA acceptance is required for this token. EulaRequired *bool `json:"eula_required,omitempty"` // If enabled, the token will allow downloads based on configured restrictions (if any). @@ -78,38 +76,6 @@ func NewRepositoryTokenRequestPatchWithDefaults() *RepositoryTokenRequestPatch { return &this } -// GetAccessPrivateBroadcasts returns the AccessPrivateBroadcasts field value if set, zero value otherwise. -func (o *RepositoryTokenRequestPatch) GetAccessPrivateBroadcasts() bool { - if o == nil || IsNil(o.AccessPrivateBroadcasts) { - var ret bool - return ret - } - return *o.AccessPrivateBroadcasts -} - -// GetAccessPrivateBroadcastsOk returns a tuple with the AccessPrivateBroadcasts field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *RepositoryTokenRequestPatch) GetAccessPrivateBroadcastsOk() (*bool, bool) { - if o == nil || IsNil(o.AccessPrivateBroadcasts) { - return nil, false - } - return o.AccessPrivateBroadcasts, true -} - -// HasAccessPrivateBroadcasts returns a boolean if a field has been set. -func (o *RepositoryTokenRequestPatch) HasAccessPrivateBroadcasts() bool { - if o != nil && !IsNil(o.AccessPrivateBroadcasts) { - return true - } - - return false -} - -// SetAccessPrivateBroadcasts gets a reference to the given bool and assigns it to the AccessPrivateBroadcasts field. -func (o *RepositoryTokenRequestPatch) SetAccessPrivateBroadcasts(v bool) { - o.AccessPrivateBroadcasts = &v -} - // GetEulaRequired returns the EulaRequired field value if set, zero value otherwise. func (o *RepositoryTokenRequestPatch) GetEulaRequired() bool { if o == nil || IsNil(o.EulaRequired) { @@ -711,9 +677,6 @@ func (o RepositoryTokenRequestPatch) MarshalJSON() ([]byte, error) { func (o RepositoryTokenRequestPatch) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !IsNil(o.AccessPrivateBroadcasts) { - toSerialize["access_private_broadcasts"] = o.AccessPrivateBroadcasts - } if !IsNil(o.EulaRequired) { toSerialize["eula_required"] = o.EulaRequired } @@ -781,7 +744,6 @@ func (o *RepositoryTokenRequestPatch) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "access_private_broadcasts") delete(additionalProperties, "eula_required") delete(additionalProperties, "is_active") delete(additionalProperties, "limit_bandwidth") diff --git a/model_repository_token_sync.go b/model_repository_token_sync.go index a81225a8..365a6866 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_token_sync_request.go b/model_repository_token_sync_request.go index 74c337bc..1f2216b4 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_transfer_region.go b/model_repository_transfer_region.go index d89639e3..15292377 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_transfer_region_request.go b/model_repository_transfer_region_request.go index ae10cac5..a2ba3f7e 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_webhook.go b/model_repository_webhook.go index 1a9cbd6e..4e99f059 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_webhook_request.go b/model_repository_webhook_request.go index 4ded8201..fb0e01d6 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_webhook_request_patch.go b/model_repository_webhook_request_patch.go index 09cd49a5..17e2634d 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_x509_ecdsa_certificate.go b/model_repository_x509_ecdsa_certificate.go index 4afee669..51e1cdd1 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_x509_rsa_certificate.go b/model_repository_x509_rsa_certificate.go index 9db2b022..d060c669 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_resources_rate_check.go b/model_resources_rate_check.go index 44ecc71e..a31b6f85 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_rpm_package_upload.go b/model_rpm_package_upload.go index 5bf24437..ded8ca10 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_rpm_package_upload_request.go b/model_rpm_package_upload_request.go index f8247a95..472d94a7 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_rpm_upstream.go b/model_rpm_upstream.go index 9f3644d3..c145d60f 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ @@ -61,7 +61,7 @@ type RpmUpstream struct { // The number of packages available in this upstream source IndexPackageCount NullableInt64 `json:"index_package_count,omitempty"` // The current indexing status of this upstream source - IndexStatus *string `json:"index_status,omitempty"` + IndexStatus NullableString `json:"index_status,omitempty"` // Whether or not this upstream is active and ready for requests. IsActive *bool `json:"is_active,omitempty"` // The last time this upstream source was indexed @@ -850,36 +850,47 @@ func (o *RpmUpstream) UnsetIndexPackageCount() { o.IndexPackageCount.Unset() } -// GetIndexStatus returns the IndexStatus field value if set, zero value otherwise. +// GetIndexStatus returns the IndexStatus field value if set, zero value otherwise (both if not set or set to explicit null). func (o *RpmUpstream) GetIndexStatus() string { - if o == nil || IsNil(o.IndexStatus) { + if o == nil || IsNil(o.IndexStatus.Get()) { var ret string return ret } - return *o.IndexStatus + return *o.IndexStatus.Get() } // GetIndexStatusOk returns a tuple with the IndexStatus 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 *RpmUpstream) GetIndexStatusOk() (*string, bool) { - if o == nil || IsNil(o.IndexStatus) { + if o == nil { return nil, false } - return o.IndexStatus, true + return o.IndexStatus.Get(), o.IndexStatus.IsSet() } // HasIndexStatus returns a boolean if a field has been set. func (o *RpmUpstream) HasIndexStatus() bool { - if o != nil && !IsNil(o.IndexStatus) { + if o != nil && o.IndexStatus.IsSet() { return true } return false } -// SetIndexStatus gets a reference to the given string and assigns it to the IndexStatus field. +// SetIndexStatus gets a reference to the given NullableString and assigns it to the IndexStatus field. func (o *RpmUpstream) SetIndexStatus(v string) { - o.IndexStatus = &v + o.IndexStatus.Set(&v) +} + +// SetIndexStatusNil sets the value for IndexStatus to be an explicit nil +func (o *RpmUpstream) SetIndexStatusNil() { + o.IndexStatus.Set(nil) +} + +// UnsetIndexStatus ensures that no value is present for IndexStatus, not even an explicit nil +func (o *RpmUpstream) UnsetIndexStatus() { + o.IndexStatus.Unset() } // GetIsActive returns the IsActive field value if set, zero value otherwise. @@ -1286,8 +1297,8 @@ func (o RpmUpstream) ToMap() (map[string]interface{}, error) { if o.IndexPackageCount.IsSet() { toSerialize["index_package_count"] = o.IndexPackageCount.Get() } - if !IsNil(o.IndexStatus) { - toSerialize["index_status"] = o.IndexStatus + if o.IndexStatus.IsSet() { + toSerialize["index_status"] = o.IndexStatus.Get() } if !IsNil(o.IsActive) { toSerialize["is_active"] = o.IsActive diff --git a/model_rpm_upstream_request.go b/model_rpm_upstream_request.go index e2ccc9ef..2a1d6bb0 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_rpm_upstream_request_patch.go b/model_rpm_upstream_request_patch.go index 25e8c9ea..ac428768 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_ruby_package_upload.go b/model_ruby_package_upload.go index 95fa6f05..fa140ffd 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_ruby_package_upload_request.go b/model_ruby_package_upload_request.go index d4d1d048..f1d744c0 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_ruby_upstream.go b/model_ruby_upstream.go index 5f441c20..ae0a815a 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ @@ -50,7 +50,7 @@ type RubyUpstream struct { // The number of packages available in this upstream source IndexPackageCount NullableInt64 `json:"index_package_count,omitempty"` // The current indexing status of this upstream source - IndexStatus *string `json:"index_status,omitempty"` + IndexStatus NullableString `json:"index_status,omitempty"` // Whether or not this upstream is active and ready for requests. IsActive *bool `json:"is_active,omitempty"` // The last time this upstream source was indexed @@ -626,36 +626,47 @@ func (o *RubyUpstream) UnsetIndexPackageCount() { o.IndexPackageCount.Unset() } -// GetIndexStatus returns the IndexStatus field value if set, zero value otherwise. +// GetIndexStatus returns the IndexStatus field value if set, zero value otherwise (both if not set or set to explicit null). func (o *RubyUpstream) GetIndexStatus() string { - if o == nil || IsNil(o.IndexStatus) { + if o == nil || IsNil(o.IndexStatus.Get()) { var ret string return ret } - return *o.IndexStatus + return *o.IndexStatus.Get() } // GetIndexStatusOk returns a tuple with the IndexStatus 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 *RubyUpstream) GetIndexStatusOk() (*string, bool) { - if o == nil || IsNil(o.IndexStatus) { + if o == nil { return nil, false } - return o.IndexStatus, true + return o.IndexStatus.Get(), o.IndexStatus.IsSet() } // HasIndexStatus returns a boolean if a field has been set. func (o *RubyUpstream) HasIndexStatus() bool { - if o != nil && !IsNil(o.IndexStatus) { + if o != nil && o.IndexStatus.IsSet() { return true } return false } -// SetIndexStatus gets a reference to the given string and assigns it to the IndexStatus field. +// SetIndexStatus gets a reference to the given NullableString and assigns it to the IndexStatus field. func (o *RubyUpstream) SetIndexStatus(v string) { - o.IndexStatus = &v + o.IndexStatus.Set(&v) +} + +// SetIndexStatusNil sets the value for IndexStatus to be an explicit nil +func (o *RubyUpstream) SetIndexStatusNil() { + o.IndexStatus.Set(nil) +} + +// UnsetIndexStatus ensures that no value is present for IndexStatus, not even an explicit nil +func (o *RubyUpstream) UnsetIndexStatus() { + o.IndexStatus.Unset() } // GetIsActive returns the IsActive field value if set, zero value otherwise. @@ -1014,8 +1025,8 @@ func (o RubyUpstream) ToMap() (map[string]interface{}, error) { if o.IndexPackageCount.IsSet() { toSerialize["index_package_count"] = o.IndexPackageCount.Get() } - if !IsNil(o.IndexStatus) { - toSerialize["index_status"] = o.IndexStatus + if o.IndexStatus.IsSet() { + toSerialize["index_status"] = o.IndexStatus.Get() } if !IsNil(o.IsActive) { toSerialize["is_active"] = o.IsActive diff --git a/model_ruby_upstream_request.go b/model_ruby_upstream_request.go index 8af2e600..658800de 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_ruby_upstream_request_patch.go b/model_ruby_upstream_request_patch.go index 077a26c0..23046998 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_service.go b/model_service.go index db72f8c3..0ed48620 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_service_request.go b/model_service_request.go index 6104d593..b3abc64a 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_service_request_patch.go b/model_service_request_patch.go index 4e28c7f6..9d6de5b5 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_service_teams.go b/model_service_teams.go index dda85cd6..177c4644 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_status_basic.go b/model_status_basic.go index 62c4b93b..051b08bb 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_storage_allocated_limit.go b/model_storage_allocated_limit.go index ab5a1870..096d87ab 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_storage_allocated_limit_raw.go b/model_storage_allocated_limit_raw.go index bd06bc53..c5140c84 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_storage_region.go b/model_storage_region.go index ada515fd..565c1614 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_storage_usage.go b/model_storage_usage.go index f0d3cc89..3fe44a35 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_storage_usage_raw.go b/model_storage_usage_raw.go index 04a1e355..d93a1316 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_swift_package_upload.go b/model_swift_package_upload.go index b7ed1156..90b64e6e 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_swift_package_upload_request.go b/model_swift_package_upload_request.go index 21440b6b..0f238e4e 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_swift_upstream.go b/model_swift_upstream.go index de2e2c6d..4aaffe43 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ @@ -50,7 +50,7 @@ type SwiftUpstream struct { // The number of packages available in this upstream source IndexPackageCount NullableInt64 `json:"index_package_count,omitempty"` // The current indexing status of this upstream source - IndexStatus *string `json:"index_status,omitempty"` + IndexStatus NullableString `json:"index_status,omitempty"` // Whether or not this upstream is active and ready for requests. IsActive *bool `json:"is_active,omitempty"` // The last time this upstream source was indexed @@ -626,36 +626,47 @@ func (o *SwiftUpstream) UnsetIndexPackageCount() { o.IndexPackageCount.Unset() } -// GetIndexStatus returns the IndexStatus field value if set, zero value otherwise. +// GetIndexStatus returns the IndexStatus field value if set, zero value otherwise (both if not set or set to explicit null). func (o *SwiftUpstream) GetIndexStatus() string { - if o == nil || IsNil(o.IndexStatus) { + if o == nil || IsNil(o.IndexStatus.Get()) { var ret string return ret } - return *o.IndexStatus + return *o.IndexStatus.Get() } // GetIndexStatusOk returns a tuple with the IndexStatus 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 *SwiftUpstream) GetIndexStatusOk() (*string, bool) { - if o == nil || IsNil(o.IndexStatus) { + if o == nil { return nil, false } - return o.IndexStatus, true + return o.IndexStatus.Get(), o.IndexStatus.IsSet() } // HasIndexStatus returns a boolean if a field has been set. func (o *SwiftUpstream) HasIndexStatus() bool { - if o != nil && !IsNil(o.IndexStatus) { + if o != nil && o.IndexStatus.IsSet() { return true } return false } -// SetIndexStatus gets a reference to the given string and assigns it to the IndexStatus field. +// SetIndexStatus gets a reference to the given NullableString and assigns it to the IndexStatus field. func (o *SwiftUpstream) SetIndexStatus(v string) { - o.IndexStatus = &v + o.IndexStatus.Set(&v) +} + +// SetIndexStatusNil sets the value for IndexStatus to be an explicit nil +func (o *SwiftUpstream) SetIndexStatusNil() { + o.IndexStatus.Set(nil) +} + +// UnsetIndexStatus ensures that no value is present for IndexStatus, not even an explicit nil +func (o *SwiftUpstream) UnsetIndexStatus() { + o.IndexStatus.Unset() } // GetIsActive returns the IsActive field value if set, zero value otherwise. @@ -1014,8 +1025,8 @@ func (o SwiftUpstream) ToMap() (map[string]interface{}, error) { if o.IndexPackageCount.IsSet() { toSerialize["index_package_count"] = o.IndexPackageCount.Get() } - if !IsNil(o.IndexStatus) { - toSerialize["index_status"] = o.IndexStatus + if o.IndexStatus.IsSet() { + toSerialize["index_status"] = o.IndexStatus.Get() } if !IsNil(o.IsActive) { toSerialize["is_active"] = o.IsActive diff --git a/model_swift_upstream_request.go b/model_swift_upstream_request.go index 2996ef23..08111bc7 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_swift_upstream_request_patch.go b/model_swift_upstream_request_patch.go index 00f716b5..66d5122d 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_terraform_package_upload.go b/model_terraform_package_upload.go index b5e989f1..1e1bda96 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_terraform_package_upload_request.go b/model_terraform_package_upload_request.go index 98b44eb2..08da2bad 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_usage.go b/model_usage.go index db84c16e..7ed5543b 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_usage_fieldset.go b/model_usage_fieldset.go index 3bc0e6d2..2e46db4b 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_usage_limits.go b/model_usage_limits.go index f2cb8cb5..4a5c5389 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_usage_limits_raw.go b/model_usage_limits_raw.go index 747fe40e..a07198d9 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_usage_raw.go b/model_usage_raw.go index 3856ba92..f702cab7 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_user_auth_token.go b/model_user_auth_token.go index 8248dcbe..be9e4cec 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_user_auth_token_request.go b/model_user_auth_token_request.go index 427d1238..3890e011 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_user_authentication_token.go b/model_user_authentication_token.go index 4f4ed068..7d89f89b 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_user_brief.go b/model_user_brief.go index 8e9f0141..eb806b7f 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_user_profile.go b/model_user_profile.go index bdd1271a..68db3486 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_user_tokens_list_200_response.go b/model_user_tokens_list_200_response.go index 6ee0c321..4806cb93 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_vagrant_package_upload.go b/model_vagrant_package_upload.go index 9c4c9708..7e5e7a79 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_vagrant_package_upload_request.go b/model_vagrant_package_upload_request.go index 8417f95a..777ed166 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_vsx_package_upload.go b/model_vsx_package_upload.go index 73a58249..f2834283 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_vsx_package_upload_request.go b/model_vsx_package_upload_request.go index 954e4862..fed03831 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_vulnerability.go b/model_vulnerability.go index 10214891..419d30be 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_vulnerability_scan.go b/model_vulnerability_scan.go index 916d4357..09075b1e 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_vulnerability_scan_results.go b/model_vulnerability_scan_results.go index 0284143b..ea270a8c 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_vulnerability_scan_results_list.go b/model_vulnerability_scan_results_list.go index 9361966c..d12bb9cd 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_vulnerability_scan_version.go b/model_vulnerability_scan_version.go index 7908abb9..9613c0c7 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/model_webhook_template.go b/model_webhook_template.go index 1c67e4e9..3fa3714a 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.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/response.go b/response.go index 1d2486fc..7f327144 100644 --- a/response.go +++ b/response.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */ diff --git a/utils.go b/utils.go index a8d1a3ce..9677ce06 100644 --- a/utils.go +++ b/utils.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1093.0 +API version: 1.1137.0 Contact: support@cloudsmith.io */