From 31e1f2b43b418e3a89d7f703824b557fd925c578 Mon Sep 17 00:00:00 2001 From: Bartosz Blizniak Date: Tue, 14 Oct 2025 17:19:52 +0100 Subject: [PATCH 1/3] Update go bindings to v0.0.50 --- .openapi-generator/FILES | 20 + README.md | 31 +- api/openapi.yaml | 5499 ++++++++++++----- api_audit_log.go | 2 +- api_badges.go | 2 +- api_distros.go | 2 +- api_entitlements.go | 2 +- api_files.go | 2 +- api_formats.go | 2 +- api_metrics.go | 2 +- api_namespaces.go | 2 +- api_orgs.go | 12 +- api_packages.go | 498 +- api_quota.go | 2 +- api_rates.go | 2 +- api_repos.go | 2978 +++++++-- api_status.go | 2 +- api_storage_regions.go | 2 +- api_user.go | 2 +- api_users.go | 2 +- api_vulnerabilities.go | 2 +- api_webhooks.go | 2 +- bin/generate | 2 +- client.go | 4 +- configuration.go | 4 +- docs/AlpinePackageUpload.md | 26 + docs/CargoPackageUpload.md | 26 + docs/CocoapodsPackageUpload.md | 26 + docs/ComposerPackageUpload.md | 26 + docs/ConanPackageUpload.md | 26 + docs/CondaPackageUpload.md | 26 + docs/CondaUpstream.md | 548 ++ docs/CondaUpstreamRequest.md | 418 ++ docs/CondaUpstreamRequestPatch.md | 428 ++ docs/CranPackageUpload.md | 26 + docs/DartPackageUpload.md | 26 + docs/DebPackageUpload.md | 26 + docs/DockerPackageUpload.md | 26 + docs/GoPackageUpload.md | 26 + docs/HelmPackageUpload.md | 26 + docs/HexPackageUpload.md | 26 + docs/HuggingfacePackageUpload.md | 2316 +++++++ docs/HuggingfacePackageUploadRequest.md | 113 + docs/HuggingfaceUpstream.md | 548 ++ docs/HuggingfaceUpstreamRequest.md | 418 ++ docs/HuggingfaceUpstreamRequestPatch.md | 428 ++ docs/LuarocksPackageUpload.md | 26 + docs/MavenPackageUpload.md | 26 + docs/NpmPackageUpload.md | 26 + docs/NugetPackageUpload.md | 26 + docs/OrgsApi.md | 6 +- docs/P2PackageUpload.md | 26 + docs/Package.md | 26 + docs/PackageCopy.md | 26 + docs/PackageLicense.md | 159 + docs/PackageLicenseRequestPatch.md | 200 + docs/PackageMove.md | 26 + docs/PackageQuarantine.md | 26 + docs/PackageResync.md | 26 + docs/PackageTag.md | 26 + docs/PackagesApi.md | 235 +- docs/PythonPackageUpload.md | 26 + docs/RawPackageUpload.md | 26 + docs/ReposApi.md | 1722 ++++-- docs/RpmPackageUpload.md | 26 + docs/RubyPackageUpload.md | 26 + docs/StatusBasic.md | 2 +- docs/SwiftPackageUpload.md | 26 + docs/TerraformPackageUpload.md | 26 + docs/VagrantPackageUpload.md | 26 + docs/Vulnerability.md | 26 + model_allocated_limit.go | 2 +- model_allocated_limit_raw.go | 2 +- model_alpine_package_upload.go | 40 +- model_alpine_package_upload_request.go | 2 +- model_architecture.go | 2 +- model_cargo_package_upload.go | 40 +- model_cargo_package_upload_request.go | 2 +- model_cargo_upstream.go | 2 +- model_cargo_upstream_request.go | 2 +- model_cargo_upstream_request_patch.go | 2 +- model_cocoapods_package_upload.go | 40 +- 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 | 40 +- model_composer_package_upload_request.go | 2 +- model_composer_upstream.go | 2 +- model_composer_upstream_request.go | 2 +- model_composer_upstream_request_patch.go | 2 +- model_conan_package_upload.go | 40 +- model_conan_package_upload_request.go | 2 +- model_conda_package_upload.go | 40 +- model_conda_package_upload_request.go | 2 +- model_conda_upstream.go | 878 +++ model_conda_upstream_request.go | 690 +++ model_conda_upstream_request_patch.go | 685 ++ model_cran_package_upload.go | 40 +- model_cran_package_upload_request.go | 2 +- model_cran_upstream.go | 2 +- model_cran_upstream_request.go | 2 +- model_cran_upstream_request_patch.go | 2 +- model_dart_package_upload.go | 40 +- model_dart_package_upload_request.go | 2 +- model_dart_upstream.go | 2 +- model_dart_upstream_request.go | 2 +- model_dart_upstream_request_patch.go | 2 +- model_deb_package_upload.go | 40 +- model_deb_package_upload_request.go | 2 +- model_deb_upstream.go | 2 +- model_deb_upstream_request.go | 2 +- model_deb_upstream_request_patch.go | 2 +- model_distribution.go | 2 +- model_distribution_full.go | 2 +- model_distribution_version.go | 2 +- model_docker_package_upload.go | 40 +- 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_geo_ip_location.go | 2 +- model_go_package_upload.go | 40 +- model_go_package_upload_request.go | 2 +- model_go_upstream.go | 2 +- model_go_upstream_request.go | 2 +- model_go_upstream_request_patch.go | 2 +- model_helm_package_upload.go | 40 +- model_helm_package_upload_request.go | 2 +- model_helm_upstream.go | 2 +- model_helm_upstream_request.go | 2 +- model_helm_upstream_request_patch.go | 2 +- model_hex_package_upload.go | 40 +- model_hex_package_upload_request.go | 2 +- model_hex_upstream.go | 2 +- model_hex_upstream_request.go | 2 +- model_hex_upstream_request_patch.go | 2 +- model_history.go | 2 +- model_history_fieldset.go | 2 +- model_history_fieldset_raw.go | 2 +- model_huggingface_package_upload.go | 3341 ++++++++++ model_huggingface_package_upload_request.go | 255 + model_huggingface_upstream.go | 878 +++ model_huggingface_upstream_request.go | 690 +++ model_huggingface_upstream_request_patch.go | 685 ++ model_luarocks_package_upload.go | 40 +- model_luarocks_package_upload_request.go | 2 +- model_maven_package_upload.go | 40 +- model_maven_package_upload_request.go | 2 +- model_maven_upstream.go | 2 +- model_maven_upstream_request.go | 2 +- model_maven_upstream_request_patch.go | 2 +- model_namespace.go | 2 +- model_namespace_audit_log.go | 2 +- model_nested_license_policy.go | 2 +- model_nested_vulnerability_policy.go | 2 +- model_nested_vulnerability_scan_results.go | 2 +- model_npm_package_upload.go | 40 +- model_npm_package_upload_request.go | 2 +- model_npm_upstream.go | 2 +- model_npm_upstream_request.go | 2 +- model_npm_upstream_request_patch.go | 2 +- model_nuget_package_upload.go | 40 +- model_nuget_package_upload_request.go | 2 +- model_nuget_upstream.go | 2 +- 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_membership.go | 2 +- model_organization_team_request.go | 2 +- model_organization_team_request_patch.go | 2 +- model_p2_package_upload.go | 40 +- model_p2_package_upload_request.go | 2 +- model_package.go | 40 +- model_package_copy.go | 40 +- 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 | 315 + ...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 | 354 ++ model_package_move.go | 40 +- model_package_move_request.go | 2 +- model_package_quarantine.go | 40 +- model_package_quarantine_request.go | 2 +- model_package_resync.go | 40 +- model_package_status.go | 2 +- model_package_tag.go | 40 +- 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 | 40 +- model_python_package_upload_request.go | 2 +- model_python_upstream.go | 2 +- model_python_upstream_request.go | 2 +- model_python_upstream_request_patch.go | 2 +- model_quota.go | 2 +- model_quota_history.go | 2 +- model_rate_check.go | 2 +- model_raw_package_upload.go | 40 +- model_raw_package_upload_request.go | 2 +- model_repository.go | 2 +- model_repository_audit_log.go | 2 +- model_repository_create.go | 2 +- model_repository_create_request.go | 2 +- model_repository_ecdsa_key.go | 2 +- model_repository_ecdsa_key_create.go | 2 +- model_repository_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_refresh.go | 2 +- model_repository_token_refresh_request.go | 2 +- model_repository_token_request.go | 2 +- model_repository_token_request_patch.go | 2 +- model_repository_token_sync.go | 2 +- model_repository_token_sync_request.go | 2 +- model_repository_transfer_region.go | 2 +- model_repository_transfer_region_request.go | 2 +- model_repository_webhook.go | 2 +- model_repository_webhook_request.go | 2 +- model_repository_webhook_request_patch.go | 2 +- model_repository_x509_ecdsa_certificate.go | 2 +- model_repository_x509_rsa_certificate.go | 2 +- model_resources_rate_check.go | 2 +- model_rpm_package_upload.go | 40 +- model_rpm_package_upload_request.go | 2 +- model_rpm_upstream.go | 2 +- model_rpm_upstream_request.go | 2 +- model_rpm_upstream_request_patch.go | 2 +- model_ruby_package_upload.go | 40 +- model_ruby_package_upload_request.go | 2 +- model_ruby_upstream.go | 2 +- model_ruby_upstream_request.go | 2 +- model_ruby_upstream_request_patch.go | 2 +- model_service.go | 2 +- model_service_request.go | 2 +- model_service_request_patch.go | 2 +- model_service_teams.go | 2 +- model_status_basic.go | 2 +- model_storage_allocated_limit.go | 2 +- model_storage_allocated_limit_raw.go | 2 +- model_storage_region.go | 2 +- model_storage_usage.go | 2 +- model_storage_usage_raw.go | 2 +- model_swift_package_upload.go | 40 +- model_swift_package_upload_request.go | 2 +- model_swift_upstream.go | 2 +- model_swift_upstream_request.go | 2 +- model_swift_upstream_request_patch.go | 2 +- model_terraform_package_upload.go | 40 +- 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 | 40 +- model_vagrant_package_upload_request.go | 2 +- model_vulnerability.go | 58 +- 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 +- 341 files changed, 25087 insertions(+), 2891 deletions(-) create mode 100644 docs/CondaUpstream.md create mode 100644 docs/CondaUpstreamRequest.md create mode 100644 docs/CondaUpstreamRequestPatch.md create mode 100644 docs/HuggingfacePackageUpload.md create mode 100644 docs/HuggingfacePackageUploadRequest.md create mode 100644 docs/HuggingfaceUpstream.md create mode 100644 docs/HuggingfaceUpstreamRequest.md create mode 100644 docs/HuggingfaceUpstreamRequestPatch.md create mode 100644 docs/PackageLicense.md create mode 100644 docs/PackageLicenseRequestPatch.md create mode 100644 model_conda_upstream.go create mode 100644 model_conda_upstream_request.go create mode 100644 model_conda_upstream_request_patch.go create mode 100644 model_huggingface_package_upload.go create mode 100644 model_huggingface_package_upload_request.go create mode 100644 model_huggingface_upstream.go create mode 100644 model_huggingface_upstream_request.go create mode 100644 model_huggingface_upstream_request_patch.go create mode 100644 model_package_license.go create mode 100644 model_package_license_request_patch.go diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index afe2518a..9598cf2d 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -51,6 +51,9 @@ docs/ConanPackageUpload.md docs/ConanPackageUploadRequest.md docs/CondaPackageUpload.md docs/CondaPackageUploadRequest.md +docs/CondaUpstream.md +docs/CondaUpstreamRequest.md +docs/CondaUpstreamRequestPatch.md docs/CranPackageUpload.md docs/CranPackageUploadRequest.md docs/CranUpstream.md @@ -104,6 +107,11 @@ docs/HexUpstreamRequestPatch.md docs/History.md docs/HistoryFieldset.md docs/HistoryFieldsetRaw.md +docs/HuggingfacePackageUpload.md +docs/HuggingfacePackageUploadRequest.md +docs/HuggingfaceUpstream.md +docs/HuggingfaceUpstreamRequest.md +docs/HuggingfaceUpstreamRequestPatch.md docs/LuarocksPackageUpload.md docs/LuarocksPackageUploadRequest.md docs/MavenPackageUpload.md @@ -172,9 +180,11 @@ docs/PackageFilePartsUpload.md docs/PackageFileUpload.md docs/PackageFileUploadRequest.md docs/PackageGroup.md +docs/PackageLicense.md docs/PackageLicensePolicyEvaluationRequest.md docs/PackageLicensePolicyViolationLog.md docs/PackageLicensePolicyViolationLogCursorPage.md +docs/PackageLicenseRequestPatch.md docs/PackageMove.md docs/PackageMoveRequest.md docs/PackageQuarantine.md @@ -329,6 +339,9 @@ model_conan_package_upload.go model_conan_package_upload_request.go model_conda_package_upload.go model_conda_package_upload_request.go +model_conda_upstream.go +model_conda_upstream_request.go +model_conda_upstream_request_patch.go model_cran_package_upload.go model_cran_package_upload_request.go model_cran_upstream.go @@ -378,6 +391,11 @@ model_hex_upstream_request_patch.go model_history.go model_history_fieldset.go model_history_fieldset_raw.go +model_huggingface_package_upload.go +model_huggingface_package_upload_request.go +model_huggingface_upstream.go +model_huggingface_upstream_request.go +model_huggingface_upstream_request_patch.go model_luarocks_package_upload.go model_luarocks_package_upload_request.go model_maven_package_upload.go @@ -443,9 +461,11 @@ model_package_file_parts_upload.go model_package_file_upload.go model_package_file_upload_request.go model_package_group.go +model_package_license.go model_package_license_policy_evaluation_request.go model_package_license_policy_violation_log.go model_package_license_policy_violation_log_cursor_page.go +model_package_license_request_patch.go model_package_move.go model_package_move_request.go model_package_quarantine.go diff --git a/README.md b/README.md index 9596ef72..fc4eabcd 100644 --- a/README.md +++ b/README.md @@ -5,11 +5,11 @@ 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.768.2 -- Package version: 0.0.49 +- API version: 1.830.6 +- Package version: 0.0.50 - Generator version: 7.9.0 - Build package: org.openapitools.codegen.languages.GoClientCodegen -For more information, please visit [https://docs.cloudsmith.com](https://docs.cloudsmith.com) +For more information, please visit [https://help.cloudsmith.io](https://help.cloudsmith.io) ## Installation @@ -191,6 +191,7 @@ Class | Method | HTTP request | Description *PackagesApi* | [**PackagesScan**](docs/PackagesApi.md#packagesscan) | **Post** /packages/{owner}/{repo}/{identifier}/scan/ | Schedule a package for scanning. *PackagesApi* | [**PackagesStatus**](docs/PackagesApi.md#packagesstatus) | **Get** /packages/{owner}/{repo}/{identifier}/status/ | Get the synchronization status for a package. *PackagesApi* | [**PackagesTag**](docs/PackagesApi.md#packagestag) | **Post** /packages/{owner}/{repo}/{identifier}/tag/ | Add/Replace/Remove tags for a package. +*PackagesApi* | [**PackagesUpdateLicense**](docs/PackagesApi.md#packagesupdatelicense) | **Patch** /packages/{owner}/{repo}/{identifier}/update-license/ | Update the license for a package. *PackagesApi* | [**PackagesUploadAlpine**](docs/PackagesApi.md#packagesuploadalpine) | **Post** /packages/{owner}/{repo}/upload/alpine/ | Create a new Alpine package *PackagesApi* | [**PackagesUploadCargo**](docs/PackagesApi.md#packagesuploadcargo) | **Post** /packages/{owner}/{repo}/upload/cargo/ | Create a new Cargo package *PackagesApi* | [**PackagesUploadCocoapods**](docs/PackagesApi.md#packagesuploadcocoapods) | **Post** /packages/{owner}/{repo}/upload/cocoapods/ | Create a new CocoaPods package @@ -204,6 +205,7 @@ Class | Method | HTTP request | Description *PackagesApi* | [**PackagesUploadGo**](docs/PackagesApi.md#packagesuploadgo) | **Post** /packages/{owner}/{repo}/upload/go/ | Create a new Go package *PackagesApi* | [**PackagesUploadHelm**](docs/PackagesApi.md#packagesuploadhelm) | **Post** /packages/{owner}/{repo}/upload/helm/ | Create a new Helm package *PackagesApi* | [**PackagesUploadHex**](docs/PackagesApi.md#packagesuploadhex) | **Post** /packages/{owner}/{repo}/upload/hex/ | Create a new Hex package +*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* | [**PackagesUploadNpm**](docs/PackagesApi.md#packagesuploadnpm) | **Post** /packages/{owner}/{repo}/upload/npm/ | Create a new npm package @@ -229,6 +231,7 @@ Class | Method | HTTP request | Description *PackagesApi* | [**PackagesValidateUploadGo**](docs/PackagesApi.md#packagesvalidateuploadgo) | **Post** /packages/{owner}/{repo}/validate-upload/go/ | Validate parameters for create Go package *PackagesApi* | [**PackagesValidateUploadHelm**](docs/PackagesApi.md#packagesvalidateuploadhelm) | **Post** /packages/{owner}/{repo}/validate-upload/helm/ | Validate parameters for create Helm package *PackagesApi* | [**PackagesValidateUploadHex**](docs/PackagesApi.md#packagesvalidateuploadhex) | **Post** /packages/{owner}/{repo}/validate-upload/hex/ | Validate parameters for create Hex package +*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* | [**PackagesValidateUploadNpm**](docs/PackagesApi.md#packagesvalidateuploadnpm) | **Post** /packages/{owner}/{repo}/validate-upload/npm/ | Validate parameters for create npm package @@ -285,6 +288,12 @@ Class | Method | HTTP request | Description *ReposApi* | [**ReposUpstreamComposerPartialUpdate**](docs/ReposApi.md#reposupstreamcomposerpartialupdate) | **Patch** /repos/{owner}/{identifier}/upstream/composer/{slug_perm}/ | Partially update a Composer upstream config for this repository. *ReposApi* | [**ReposUpstreamComposerRead**](docs/ReposApi.md#reposupstreamcomposerread) | **Get** /repos/{owner}/{identifier}/upstream/composer/{slug_perm}/ | Retrieve a Composer upstream config for this repository. *ReposApi* | [**ReposUpstreamComposerUpdate**](docs/ReposApi.md#reposupstreamcomposerupdate) | **Put** /repos/{owner}/{identifier}/upstream/composer/{slug_perm}/ | Update a Composer upstream config for this repository. +*ReposApi* | [**ReposUpstreamCondaCreate**](docs/ReposApi.md#reposupstreamcondacreate) | **Post** /repos/{owner}/{identifier}/upstream/conda/ | Create a Conda upstream config for this repository. +*ReposApi* | [**ReposUpstreamCondaDelete**](docs/ReposApi.md#reposupstreamcondadelete) | **Delete** /repos/{owner}/{identifier}/upstream/conda/{slug_perm}/ | Delete a Conda upstream config for this repository. +*ReposApi* | [**ReposUpstreamCondaList**](docs/ReposApi.md#reposupstreamcondalist) | **Get** /repos/{owner}/{identifier}/upstream/conda/ | List Conda upstream configs for this repository. +*ReposApi* | [**ReposUpstreamCondaPartialUpdate**](docs/ReposApi.md#reposupstreamcondapartialupdate) | **Patch** /repos/{owner}/{identifier}/upstream/conda/{slug_perm}/ | Partially update a Conda upstream config for this repository. +*ReposApi* | [**ReposUpstreamCondaRead**](docs/ReposApi.md#reposupstreamcondaread) | **Get** /repos/{owner}/{identifier}/upstream/conda/{slug_perm}/ | Retrieve a Conda upstream config for this repository. +*ReposApi* | [**ReposUpstreamCondaUpdate**](docs/ReposApi.md#reposupstreamcondaupdate) | **Put** /repos/{owner}/{identifier}/upstream/conda/{slug_perm}/ | Update a Conda upstream config for this repository. *ReposApi* | [**ReposUpstreamCranCreate**](docs/ReposApi.md#reposupstreamcrancreate) | **Post** /repos/{owner}/{identifier}/upstream/cran/ | Create a CRAN upstream config for this repository. *ReposApi* | [**ReposUpstreamCranDelete**](docs/ReposApi.md#reposupstreamcrandelete) | **Delete** /repos/{owner}/{identifier}/upstream/cran/{slug_perm}/ | Delete a CRAN upstream config for this repository. *ReposApi* | [**ReposUpstreamCranList**](docs/ReposApi.md#reposupstreamcranlist) | **Get** /repos/{owner}/{identifier}/upstream/cran/ | List CRAN upstream configs for this repository. @@ -327,6 +336,12 @@ Class | Method | HTTP request | Description *ReposApi* | [**ReposUpstreamHexPartialUpdate**](docs/ReposApi.md#reposupstreamhexpartialupdate) | **Patch** /repos/{owner}/{identifier}/upstream/hex/{slug_perm}/ | Partially update a Hex upstream config for this repository. *ReposApi* | [**ReposUpstreamHexRead**](docs/ReposApi.md#reposupstreamhexread) | **Get** /repos/{owner}/{identifier}/upstream/hex/{slug_perm}/ | Retrieve a Hex upstream config for this repository. *ReposApi* | [**ReposUpstreamHexUpdate**](docs/ReposApi.md#reposupstreamhexupdate) | **Put** /repos/{owner}/{identifier}/upstream/hex/{slug_perm}/ | Update a Hex upstream config for this repository. +*ReposApi* | [**ReposUpstreamHuggingfaceCreate**](docs/ReposApi.md#reposupstreamhuggingfacecreate) | **Post** /repos/{owner}/{identifier}/upstream/huggingface/ | Create a HuggingFace upstream config for this repository. +*ReposApi* | [**ReposUpstreamHuggingfaceDelete**](docs/ReposApi.md#reposupstreamhuggingfacedelete) | **Delete** /repos/{owner}/{identifier}/upstream/huggingface/{slug_perm}/ | Delete a HuggingFace upstream config for this repository. +*ReposApi* | [**ReposUpstreamHuggingfaceList**](docs/ReposApi.md#reposupstreamhuggingfacelist) | **Get** /repos/{owner}/{identifier}/upstream/huggingface/ | List HuggingFace upstream configs for this repository. +*ReposApi* | [**ReposUpstreamHuggingfacePartialUpdate**](docs/ReposApi.md#reposupstreamhuggingfacepartialupdate) | **Patch** /repos/{owner}/{identifier}/upstream/huggingface/{slug_perm}/ | Partially update a HuggingFace upstream config for this repository. +*ReposApi* | [**ReposUpstreamHuggingfaceRead**](docs/ReposApi.md#reposupstreamhuggingfaceread) | **Get** /repos/{owner}/{identifier}/upstream/huggingface/{slug_perm}/ | Retrieve a HuggingFace upstream config for this repository. +*ReposApi* | [**ReposUpstreamHuggingfaceUpdate**](docs/ReposApi.md#reposupstreamhuggingfaceupdate) | **Put** /repos/{owner}/{identifier}/upstream/huggingface/{slug_perm}/ | Update a HuggingFace upstream config for this repository. *ReposApi* | [**ReposUpstreamMavenCreate**](docs/ReposApi.md#reposupstreammavencreate) | **Post** /repos/{owner}/{identifier}/upstream/maven/ | Create a Maven upstream config for this repository. *ReposApi* | [**ReposUpstreamMavenDelete**](docs/ReposApi.md#reposupstreammavendelete) | **Delete** /repos/{owner}/{identifier}/upstream/maven/{slug_perm}/ | Delete a Maven upstream config for this repository. *ReposApi* | [**ReposUpstreamMavenList**](docs/ReposApi.md#reposupstreammavenlist) | **Get** /repos/{owner}/{identifier}/upstream/maven/ | List Maven upstream configs for this repository. @@ -420,6 +435,9 @@ Class | Method | HTTP request | Description - [ConanPackageUploadRequest](docs/ConanPackageUploadRequest.md) - [CondaPackageUpload](docs/CondaPackageUpload.md) - [CondaPackageUploadRequest](docs/CondaPackageUploadRequest.md) + - [CondaUpstream](docs/CondaUpstream.md) + - [CondaUpstreamRequest](docs/CondaUpstreamRequest.md) + - [CondaUpstreamRequestPatch](docs/CondaUpstreamRequestPatch.md) - [CranPackageUpload](docs/CranPackageUpload.md) - [CranPackageUploadRequest](docs/CranPackageUploadRequest.md) - [CranUpstream](docs/CranUpstream.md) @@ -469,6 +487,11 @@ Class | Method | HTTP request | Description - [History](docs/History.md) - [HistoryFieldset](docs/HistoryFieldset.md) - [HistoryFieldsetRaw](docs/HistoryFieldsetRaw.md) + - [HuggingfacePackageUpload](docs/HuggingfacePackageUpload.md) + - [HuggingfacePackageUploadRequest](docs/HuggingfacePackageUploadRequest.md) + - [HuggingfaceUpstream](docs/HuggingfaceUpstream.md) + - [HuggingfaceUpstreamRequest](docs/HuggingfaceUpstreamRequest.md) + - [HuggingfaceUpstreamRequestPatch](docs/HuggingfaceUpstreamRequestPatch.md) - [LuarocksPackageUpload](docs/LuarocksPackageUpload.md) - [LuarocksPackageUploadRequest](docs/LuarocksPackageUploadRequest.md) - [MavenPackageUpload](docs/MavenPackageUpload.md) @@ -534,9 +557,11 @@ Class | Method | HTTP request | Description - [PackageFileUpload](docs/PackageFileUpload.md) - [PackageFileUploadRequest](docs/PackageFileUploadRequest.md) - [PackageGroup](docs/PackageGroup.md) + - [PackageLicense](docs/PackageLicense.md) - [PackageLicensePolicyEvaluationRequest](docs/PackageLicensePolicyEvaluationRequest.md) - [PackageLicensePolicyViolationLog](docs/PackageLicensePolicyViolationLog.md) - [PackageLicensePolicyViolationLogCursorPage](docs/PackageLicensePolicyViolationLogCursorPage.md) + - [PackageLicenseRequestPatch](docs/PackageLicenseRequestPatch.md) - [PackageMove](docs/PackageMove.md) - [PackageMoveRequest](docs/PackageMoveRequest.md) - [PackageQuarantine](docs/PackageQuarantine.md) diff --git a/api/openapi.yaml b/api/openapi.yaml index b9ba662a..4cec5309 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -3,14 +3,14 @@ info: contact: email: support@cloudsmith.io name: Cloudsmith Support - url: https://support.cloudsmith.com/hc/en-us + url: https://help.cloudsmith.io description: The API to the Cloudsmith Service license: name: MIT url: https://opensource.org/licenses/MIT - termsOfService: https://trust.cloudsmith.com/resources?s=ujpmn8x2026adj246fdzh&name=cloudsmith-corporate-terms-of-service + termsOfService: https://help.cloudsmith.io title: Cloudsmith API (v1) - version: 1.768.2 + version: 1.830.6 servers: - url: https://api.cloudsmith.io/ security: @@ -4020,6 +4020,12 @@ paths: required: true schema: type: string + - description: "Filter accounts by type. Possible values are 'user' and 'service'.\ + \ If not provided, only users are returned." + in: query + name: user_kind + schema: + type: string responses: "200": content: @@ -4652,6 +4658,13 @@ paths: schema: default: name type: string + - description: Whether to hide packages which are subcomponents of another package + in the results + in: query + name: hide_subcomponents + schema: + default: false + type: boolean - description: "A search term for querying names, filenames, versions, distributions,\ \ architectures, formats, or statuses of packages." in: query @@ -5344,6 +5357,56 @@ paths: tags: - packages x-codegen-request-body-name: data + /packages/{owner}/{repo}/upload/huggingface/: + post: + description: Create a new HuggingFace package + operationId: packages_upload_huggingface + 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/HuggingfacePackageUploadRequest' + required: false + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/HuggingfacePackageUpload' + 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 HuggingFace package + tags: + - packages + x-codegen-request-body-name: data /packages/{owner}/{repo}/upload/luarocks/: post: description: Create a new LuaRocks package @@ -6555,6 +6618,53 @@ paths: tags: - packages x-codegen-request-body-name: data + /packages/{owner}/{repo}/validate-upload/huggingface/: + post: + description: Validate parameters for create HuggingFace package + operationId: packages_validate-upload_huggingface + 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/HuggingfacePackageUploadRequest' + 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 HuggingFace package + tags: + - packages + x-codegen-request-body-name: data /packages/{owner}/{repo}/validate-upload/luarocks/: post: description: Validate parameters for create LuaRocks package @@ -7565,6 +7675,55 @@ paths: tags: - packages x-codegen-request-body-name: data + /packages/{owner}/{repo}/{identifier}/update-license/: + patch: + description: Update the license for a package. + operationId: packages_update_license + 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/PackageLicenseRequestPatch' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Package' + description: Modified tags for the package. + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorDetail' + description: Request could not be processed (see detail). + "422": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorDetail' + description: Missing or invalid parameters (see detail). + summary: Update the license for a package. + tags: + - packages + x-codegen-request-body-name: data /quota/history/{owner}/: get: description: Quota history for a given namespace. @@ -9445,10 +9604,10 @@ paths: tags: - repos x-codegen-request-body-name: data - /repos/{owner}/{identifier}/upstream/cran/: + /repos/{owner}/{identifier}/upstream/conda/: get: - description: List CRAN upstream configs for this repository. - operationId: repos_upstream_cran_list + description: List Conda upstream configs for this repository. + operationId: repos_upstream_conda_list parameters: - in: path name: owner @@ -9476,7 +9635,7 @@ paths: application/json: schema: items: - $ref: '#/components/schemas/CranUpstream' + $ref: '#/components/schemas/CondaUpstream' type: array description: OK "400": @@ -9491,12 +9650,12 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: List CRAN upstream configs for this repository. + summary: List Conda upstream configs for this repository. tags: - repos post: - description: Create a CRAN upstream config for this repository. - operationId: repos_upstream_cran_create + description: Create a Conda upstream config for this repository. + operationId: repos_upstream_conda_create parameters: - in: path name: owner @@ -9512,14 +9671,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CranUpstreamRequest' + $ref: '#/components/schemas/CondaUpstreamRequest' required: false responses: "201": content: application/json: schema: - $ref: '#/components/schemas/CranUpstream' + $ref: '#/components/schemas/CondaUpstream' description: Created "400": content: @@ -9533,14 +9692,14 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Create a CRAN upstream config for this repository. + summary: Create a Conda upstream config for this repository. tags: - repos x-codegen-request-body-name: data - /repos/{owner}/{identifier}/upstream/cran/{slug_perm}/: + /repos/{owner}/{identifier}/upstream/conda/{slug_perm}/: delete: - description: Delete a CRAN upstream config for this repository. - operationId: repos_upstream_cran_delete + description: Delete a Conda upstream config for this repository. + operationId: repos_upstream_conda_delete parameters: - in: path name: owner @@ -9573,12 +9732,12 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Delete a CRAN upstream config for this repository. + summary: Delete a Conda upstream config for this repository. tags: - repos get: - description: Retrieve a CRAN upstream config for this repository. - operationId: repos_upstream_cran_read + description: Retrieve a Conda upstream config for this repository. + operationId: repos_upstream_conda_read parameters: - in: path name: owner @@ -9600,7 +9759,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CranUpstream' + $ref: '#/components/schemas/CondaUpstream' description: OK "400": content: @@ -9614,12 +9773,12 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Retrieve a CRAN upstream config for this repository. + summary: Retrieve a Conda upstream config for this repository. tags: - repos patch: - description: Partially update a CRAN upstream config for this repository. - operationId: repos_upstream_cran_partial_update + description: Partially update a Conda upstream config for this repository. + operationId: repos_upstream_conda_partial_update parameters: - in: path name: owner @@ -9640,14 +9799,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CranUpstreamRequestPatch' + $ref: '#/components/schemas/CondaUpstreamRequestPatch' required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/CranUpstream' + $ref: '#/components/schemas/CondaUpstream' description: OK "400": content: @@ -9661,13 +9820,13 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Partially update a CRAN upstream config for this repository. + summary: Partially update a Conda upstream config for this repository. tags: - repos x-codegen-request-body-name: data put: - description: Update a CRAN upstream config for this repository. - operationId: repos_upstream_cran_update + description: Update a Conda upstream config for this repository. + operationId: repos_upstream_conda_update parameters: - in: path name: owner @@ -9688,14 +9847,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CranUpstreamRequest' + $ref: '#/components/schemas/CondaUpstreamRequest' required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/CranUpstream' + $ref: '#/components/schemas/CondaUpstream' description: OK "400": content: @@ -9709,14 +9868,14 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Update a CRAN upstream config for this repository. + summary: Update a Conda upstream config for this repository. tags: - repos x-codegen-request-body-name: data - /repos/{owner}/{identifier}/upstream/dart/: + /repos/{owner}/{identifier}/upstream/cran/: get: - description: List Dart upstream configs for this repository. - operationId: repos_upstream_dart_list + description: List CRAN upstream configs for this repository. + operationId: repos_upstream_cran_list parameters: - in: path name: owner @@ -9744,7 +9903,7 @@ paths: application/json: schema: items: - $ref: '#/components/schemas/DartUpstream' + $ref: '#/components/schemas/CranUpstream' type: array description: OK "400": @@ -9759,12 +9918,12 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: List Dart upstream configs for this repository. + summary: List CRAN upstream configs for this repository. tags: - repos post: - description: Create a Dart upstream config for this repository. - operationId: repos_upstream_dart_create + description: Create a CRAN upstream config for this repository. + operationId: repos_upstream_cran_create parameters: - in: path name: owner @@ -9780,14 +9939,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DartUpstreamRequest' + $ref: '#/components/schemas/CranUpstreamRequest' required: false responses: "201": content: application/json: schema: - $ref: '#/components/schemas/DartUpstream' + $ref: '#/components/schemas/CranUpstream' description: Created "400": content: @@ -9801,14 +9960,14 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Create a Dart upstream config for this repository. + summary: Create a CRAN upstream config for this repository. tags: - repos x-codegen-request-body-name: data - /repos/{owner}/{identifier}/upstream/dart/{slug_perm}/: + /repos/{owner}/{identifier}/upstream/cran/{slug_perm}/: delete: - description: Delete a Dart upstream config for this repository. - operationId: repos_upstream_dart_delete + description: Delete a CRAN upstream config for this repository. + operationId: repos_upstream_cran_delete parameters: - in: path name: owner @@ -9841,12 +10000,12 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Delete a Dart upstream config for this repository. + summary: Delete a CRAN upstream config for this repository. tags: - repos get: - description: Retrieve a Dart upstream config for this repository. - operationId: repos_upstream_dart_read + description: Retrieve a CRAN upstream config for this repository. + operationId: repos_upstream_cran_read parameters: - in: path name: owner @@ -9868,7 +10027,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DartUpstream' + $ref: '#/components/schemas/CranUpstream' description: OK "400": content: @@ -9882,12 +10041,12 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Retrieve a Dart upstream config for this repository. + summary: Retrieve a CRAN upstream config for this repository. tags: - repos patch: - description: Partially update a Dart upstream config for this repository. - operationId: repos_upstream_dart_partial_update + description: Partially update a CRAN upstream config for this repository. + operationId: repos_upstream_cran_partial_update parameters: - in: path name: owner @@ -9908,14 +10067,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DartUpstreamRequestPatch' + $ref: '#/components/schemas/CranUpstreamRequestPatch' required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/DartUpstream' + $ref: '#/components/schemas/CranUpstream' description: OK "400": content: @@ -9929,13 +10088,13 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Partially update a Dart upstream config for this repository. + summary: Partially update a CRAN upstream config for this repository. tags: - repos x-codegen-request-body-name: data put: - description: Update a Dart upstream config for this repository. - operationId: repos_upstream_dart_update + description: Update a CRAN upstream config for this repository. + operationId: repos_upstream_cran_update parameters: - in: path name: owner @@ -9956,14 +10115,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DartUpstreamRequest' + $ref: '#/components/schemas/CranUpstreamRequest' required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/DartUpstream' + $ref: '#/components/schemas/CranUpstream' description: OK "400": content: @@ -9977,14 +10136,14 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Update a Dart upstream config for this repository. + summary: Update a CRAN upstream config for this repository. tags: - repos x-codegen-request-body-name: data - /repos/{owner}/{identifier}/upstream/deb/: + /repos/{owner}/{identifier}/upstream/dart/: get: - description: List Debian upstream configs for this repository. - operationId: repos_upstream_deb_list + description: List Dart upstream configs for this repository. + operationId: repos_upstream_dart_list parameters: - in: path name: owner @@ -10012,7 +10171,7 @@ paths: application/json: schema: items: - $ref: '#/components/schemas/DebUpstream' + $ref: '#/components/schemas/DartUpstream' type: array description: OK "400": @@ -10027,12 +10186,12 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: List Debian upstream configs for this repository. + summary: List Dart upstream configs for this repository. tags: - repos post: - description: Create a Debian upstream config for this repository. - operationId: repos_upstream_deb_create + description: Create a Dart upstream config for this repository. + operationId: repos_upstream_dart_create parameters: - in: path name: owner @@ -10048,14 +10207,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DebUpstreamRequest' + $ref: '#/components/schemas/DartUpstreamRequest' required: false responses: "201": content: application/json: schema: - $ref: '#/components/schemas/DebUpstream' + $ref: '#/components/schemas/DartUpstream' description: Created "400": content: @@ -10069,14 +10228,14 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Create a Debian upstream config for this repository. + summary: Create a Dart upstream config for this repository. tags: - repos x-codegen-request-body-name: data - /repos/{owner}/{identifier}/upstream/deb/{slug_perm}/: + /repos/{owner}/{identifier}/upstream/dart/{slug_perm}/: delete: - description: Delete a Debian upstream config for this repository. - operationId: repos_upstream_deb_delete + description: Delete a Dart upstream config for this repository. + operationId: repos_upstream_dart_delete parameters: - in: path name: owner @@ -10109,12 +10268,12 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Delete a Debian upstream config for this repository. + summary: Delete a Dart upstream config for this repository. tags: - repos get: - description: Retrieve a Debian upstream config for this repository. - operationId: repos_upstream_deb_read + description: Retrieve a Dart upstream config for this repository. + operationId: repos_upstream_dart_read parameters: - in: path name: owner @@ -10136,7 +10295,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DebUpstream' + $ref: '#/components/schemas/DartUpstream' description: OK "400": content: @@ -10150,12 +10309,12 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Retrieve a Debian upstream config for this repository. + summary: Retrieve a Dart upstream config for this repository. tags: - repos patch: - description: Partially update a Debian upstream config for this repository. - operationId: repos_upstream_deb_partial_update + description: Partially update a Dart upstream config for this repository. + operationId: repos_upstream_dart_partial_update parameters: - in: path name: owner @@ -10176,14 +10335,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DebUpstreamRequestPatch' + $ref: '#/components/schemas/DartUpstreamRequestPatch' required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/DebUpstream' + $ref: '#/components/schemas/DartUpstream' description: OK "400": content: @@ -10197,13 +10356,13 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Partially update a Debian upstream config for this repository. + summary: Partially update a Dart upstream config for this repository. tags: - repos x-codegen-request-body-name: data put: - description: Update a Debian upstream config for this repository. - operationId: repos_upstream_deb_update + description: Update a Dart upstream config for this repository. + operationId: repos_upstream_dart_update parameters: - in: path name: owner @@ -10224,14 +10383,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DebUpstreamRequest' + $ref: '#/components/schemas/DartUpstreamRequest' required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/DebUpstream' + $ref: '#/components/schemas/DartUpstream' description: OK "400": content: @@ -10245,14 +10404,14 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Update a Debian upstream config for this repository. + summary: Update a Dart upstream config for this repository. tags: - repos x-codegen-request-body-name: data - /repos/{owner}/{identifier}/upstream/docker/: + /repos/{owner}/{identifier}/upstream/deb/: get: - description: List Docker upstream configs for this repository. - operationId: repos_upstream_docker_list + description: List Debian upstream configs for this repository. + operationId: repos_upstream_deb_list parameters: - in: path name: owner @@ -10280,7 +10439,7 @@ paths: application/json: schema: items: - $ref: '#/components/schemas/DockerUpstream' + $ref: '#/components/schemas/DebUpstream' type: array description: OK "400": @@ -10295,12 +10454,12 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: List Docker upstream configs for this repository. + summary: List Debian upstream configs for this repository. tags: - repos post: - description: Create a Docker upstream config for this repository. - operationId: repos_upstream_docker_create + description: Create a Debian upstream config for this repository. + operationId: repos_upstream_deb_create parameters: - in: path name: owner @@ -10316,14 +10475,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DockerUpstreamRequest' + $ref: '#/components/schemas/DebUpstreamRequest' required: false responses: "201": content: application/json: schema: - $ref: '#/components/schemas/DockerUpstream' + $ref: '#/components/schemas/DebUpstream' description: Created "400": content: @@ -10337,14 +10496,14 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Create a Docker upstream config for this repository. + summary: Create a Debian upstream config for this repository. tags: - repos x-codegen-request-body-name: data - /repos/{owner}/{identifier}/upstream/docker/{slug_perm}/: + /repos/{owner}/{identifier}/upstream/deb/{slug_perm}/: delete: - description: Delete a Docker upstream config for this repository. - operationId: repos_upstream_docker_delete + description: Delete a Debian upstream config for this repository. + operationId: repos_upstream_deb_delete parameters: - in: path name: owner @@ -10377,12 +10536,12 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Delete a Docker upstream config for this repository. + summary: Delete a Debian upstream config for this repository. tags: - repos get: - description: Retrieve a Docker upstream config for this repository. - operationId: repos_upstream_docker_read + description: Retrieve a Debian upstream config for this repository. + operationId: repos_upstream_deb_read parameters: - in: path name: owner @@ -10404,7 +10563,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DockerUpstream' + $ref: '#/components/schemas/DebUpstream' description: OK "400": content: @@ -10418,12 +10577,12 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Retrieve a Docker upstream config for this repository. + summary: Retrieve a Debian upstream config for this repository. tags: - repos patch: - description: Partially update a Docker upstream config for this repository. - operationId: repos_upstream_docker_partial_update + description: Partially update a Debian upstream config for this repository. + operationId: repos_upstream_deb_partial_update parameters: - in: path name: owner @@ -10444,14 +10603,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DockerUpstreamRequestPatch' + $ref: '#/components/schemas/DebUpstreamRequestPatch' required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/DockerUpstream' + $ref: '#/components/schemas/DebUpstream' description: OK "400": content: @@ -10465,13 +10624,13 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Partially update a Docker upstream config for this repository. + summary: Partially update a Debian upstream config for this repository. tags: - repos x-codegen-request-body-name: data put: - description: Update a Docker upstream config for this repository. - operationId: repos_upstream_docker_update + description: Update a Debian upstream config for this repository. + operationId: repos_upstream_deb_update parameters: - in: path name: owner @@ -10492,14 +10651,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DockerUpstreamRequest' + $ref: '#/components/schemas/DebUpstreamRequest' required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/DockerUpstream' + $ref: '#/components/schemas/DebUpstream' description: OK "400": content: @@ -10513,14 +10672,14 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Update a Docker upstream config for this repository. + summary: Update a Debian upstream config for this repository. tags: - repos x-codegen-request-body-name: data - /repos/{owner}/{identifier}/upstream/go/: + /repos/{owner}/{identifier}/upstream/docker/: get: - description: List Go upstream configs for this repository. - operationId: repos_upstream_go_list + description: List Docker upstream configs for this repository. + operationId: repos_upstream_docker_list parameters: - in: path name: owner @@ -10548,7 +10707,7 @@ paths: application/json: schema: items: - $ref: '#/components/schemas/GoUpstream' + $ref: '#/components/schemas/DockerUpstream' type: array description: OK "400": @@ -10563,12 +10722,12 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: List Go upstream configs for this repository. + summary: List Docker upstream configs for this repository. tags: - repos post: - description: Create a Go upstream config for this repository. - operationId: repos_upstream_go_create + description: Create a Docker upstream config for this repository. + operationId: repos_upstream_docker_create parameters: - in: path name: owner @@ -10584,14 +10743,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GoUpstreamRequest' + $ref: '#/components/schemas/DockerUpstreamRequest' required: false responses: "201": content: application/json: schema: - $ref: '#/components/schemas/GoUpstream' + $ref: '#/components/schemas/DockerUpstream' description: Created "400": content: @@ -10605,14 +10764,14 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Create a Go upstream config for this repository. + summary: Create a Docker upstream config for this repository. tags: - repos x-codegen-request-body-name: data - /repos/{owner}/{identifier}/upstream/go/{slug_perm}/: + /repos/{owner}/{identifier}/upstream/docker/{slug_perm}/: delete: - description: Delete a Go upstream config for this repository. - operationId: repos_upstream_go_delete + description: Delete a Docker upstream config for this repository. + operationId: repos_upstream_docker_delete parameters: - in: path name: owner @@ -10645,12 +10804,12 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Delete a Go upstream config for this repository. + summary: Delete a Docker upstream config for this repository. tags: - repos get: - description: Retrieve a Go upstream config for this repository. - operationId: repos_upstream_go_read + description: Retrieve a Docker upstream config for this repository. + operationId: repos_upstream_docker_read parameters: - in: path name: owner @@ -10672,7 +10831,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GoUpstream' + $ref: '#/components/schemas/DockerUpstream' description: OK "400": content: @@ -10686,12 +10845,12 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Retrieve a Go upstream config for this repository. + summary: Retrieve a Docker upstream config for this repository. tags: - repos patch: - description: Partially update a Go upstream config for this repository. - operationId: repos_upstream_go_partial_update + description: Partially update a Docker upstream config for this repository. + operationId: repos_upstream_docker_partial_update parameters: - in: path name: owner @@ -10712,14 +10871,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GoUpstreamRequestPatch' + $ref: '#/components/schemas/DockerUpstreamRequestPatch' required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/GoUpstream' + $ref: '#/components/schemas/DockerUpstream' description: OK "400": content: @@ -10733,13 +10892,13 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Partially update a Go upstream config for this repository. + summary: Partially update a Docker upstream config for this repository. tags: - repos x-codegen-request-body-name: data put: - description: Update a Go upstream config for this repository. - operationId: repos_upstream_go_update + description: Update a Docker upstream config for this repository. + operationId: repos_upstream_docker_update parameters: - in: path name: owner @@ -10760,14 +10919,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GoUpstreamRequest' + $ref: '#/components/schemas/DockerUpstreamRequest' required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/GoUpstream' + $ref: '#/components/schemas/DockerUpstream' description: OK "400": content: @@ -10781,14 +10940,14 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Update a Go upstream config for this repository. + summary: Update a Docker upstream config for this repository. tags: - repos x-codegen-request-body-name: data - /repos/{owner}/{identifier}/upstream/helm/: + /repos/{owner}/{identifier}/upstream/go/: get: - description: List Helm upstream configs for this repository. - operationId: repos_upstream_helm_list + description: List Go upstream configs for this repository. + operationId: repos_upstream_go_list parameters: - in: path name: owner @@ -10816,7 +10975,7 @@ paths: application/json: schema: items: - $ref: '#/components/schemas/HelmUpstream' + $ref: '#/components/schemas/GoUpstream' type: array description: OK "400": @@ -10831,12 +10990,12 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: List Helm upstream configs for this repository. + summary: List Go upstream configs for this repository. tags: - repos post: - description: Create a Helm upstream config for this repository. - operationId: repos_upstream_helm_create + description: Create a Go upstream config for this repository. + operationId: repos_upstream_go_create parameters: - in: path name: owner @@ -10852,14 +11011,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/HelmUpstreamRequest' + $ref: '#/components/schemas/GoUpstreamRequest' required: false responses: "201": content: application/json: schema: - $ref: '#/components/schemas/HelmUpstream' + $ref: '#/components/schemas/GoUpstream' description: Created "400": content: @@ -10873,14 +11032,14 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Create a Helm upstream config for this repository. + summary: Create a Go upstream config for this repository. tags: - repos x-codegen-request-body-name: data - /repos/{owner}/{identifier}/upstream/helm/{slug_perm}/: + /repos/{owner}/{identifier}/upstream/go/{slug_perm}/: delete: - description: Delete a Helm upstream config for this repository. - operationId: repos_upstream_helm_delete + description: Delete a Go upstream config for this repository. + operationId: repos_upstream_go_delete parameters: - in: path name: owner @@ -10913,12 +11072,12 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Delete a Helm upstream config for this repository. + summary: Delete a Go upstream config for this repository. tags: - repos get: - description: Retrieve a Helm upstream config for this repository. - operationId: repos_upstream_helm_read + description: Retrieve a Go upstream config for this repository. + operationId: repos_upstream_go_read parameters: - in: path name: owner @@ -10940,7 +11099,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/HelmUpstream' + $ref: '#/components/schemas/GoUpstream' description: OK "400": content: @@ -10954,12 +11113,12 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Retrieve a Helm upstream config for this repository. + summary: Retrieve a Go upstream config for this repository. tags: - repos patch: - description: Partially update a Helm upstream config for this repository. - operationId: repos_upstream_helm_partial_update + description: Partially update a Go upstream config for this repository. + operationId: repos_upstream_go_partial_update parameters: - in: path name: owner @@ -10980,14 +11139,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/HelmUpstreamRequestPatch' + $ref: '#/components/schemas/GoUpstreamRequestPatch' required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/HelmUpstream' + $ref: '#/components/schemas/GoUpstream' description: OK "400": content: @@ -11001,13 +11160,13 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Partially update a Helm upstream config for this repository. + summary: Partially update a Go upstream config for this repository. tags: - repos x-codegen-request-body-name: data put: - description: Update a Helm upstream config for this repository. - operationId: repos_upstream_helm_update + description: Update a Go upstream config for this repository. + operationId: repos_upstream_go_update parameters: - in: path name: owner @@ -11028,14 +11187,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/HelmUpstreamRequest' + $ref: '#/components/schemas/GoUpstreamRequest' required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/HelmUpstream' + $ref: '#/components/schemas/GoUpstream' description: OK "400": content: @@ -11049,14 +11208,14 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Update a Helm upstream config for this repository. + summary: Update a Go upstream config for this repository. tags: - repos x-codegen-request-body-name: data - /repos/{owner}/{identifier}/upstream/hex/: + /repos/{owner}/{identifier}/upstream/helm/: get: - description: List Hex upstream configs for this repository. - operationId: repos_upstream_hex_list + description: List Helm upstream configs for this repository. + operationId: repos_upstream_helm_list parameters: - in: path name: owner @@ -11084,7 +11243,7 @@ paths: application/json: schema: items: - $ref: '#/components/schemas/HexUpstream' + $ref: '#/components/schemas/HelmUpstream' type: array description: OK "400": @@ -11099,12 +11258,12 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: List Hex upstream configs for this repository. + summary: List Helm upstream configs for this repository. tags: - repos post: - description: Create a Hex upstream config for this repository. - operationId: repos_upstream_hex_create + description: Create a Helm upstream config for this repository. + operationId: repos_upstream_helm_create parameters: - in: path name: owner @@ -11120,14 +11279,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/HexUpstreamRequest' + $ref: '#/components/schemas/HelmUpstreamRequest' required: false responses: "201": content: application/json: schema: - $ref: '#/components/schemas/HexUpstream' + $ref: '#/components/schemas/HelmUpstream' description: Created "400": content: @@ -11141,14 +11300,14 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Create a Hex upstream config for this repository. + summary: Create a Helm upstream config for this repository. tags: - repos x-codegen-request-body-name: data - /repos/{owner}/{identifier}/upstream/hex/{slug_perm}/: + /repos/{owner}/{identifier}/upstream/helm/{slug_perm}/: delete: - description: Delete a Hex upstream config for this repository. - operationId: repos_upstream_hex_delete + description: Delete a Helm upstream config for this repository. + operationId: repos_upstream_helm_delete parameters: - in: path name: owner @@ -11181,12 +11340,12 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Delete a Hex upstream config for this repository. + summary: Delete a Helm upstream config for this repository. tags: - repos get: - description: Retrieve a Hex upstream config for this repository. - operationId: repos_upstream_hex_read + description: Retrieve a Helm upstream config for this repository. + operationId: repos_upstream_helm_read parameters: - in: path name: owner @@ -11208,7 +11367,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/HexUpstream' + $ref: '#/components/schemas/HelmUpstream' description: OK "400": content: @@ -11222,12 +11381,12 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Retrieve a Hex upstream config for this repository. + summary: Retrieve a Helm upstream config for this repository. tags: - repos patch: - description: Partially update a Hex upstream config for this repository. - operationId: repos_upstream_hex_partial_update + description: Partially update a Helm upstream config for this repository. + operationId: repos_upstream_helm_partial_update parameters: - in: path name: owner @@ -11248,14 +11407,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/HexUpstreamRequestPatch' + $ref: '#/components/schemas/HelmUpstreamRequestPatch' required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/HexUpstream' + $ref: '#/components/schemas/HelmUpstream' description: OK "400": content: @@ -11269,13 +11428,13 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Partially update a Hex upstream config for this repository. + summary: Partially update a Helm upstream config for this repository. tags: - repos x-codegen-request-body-name: data put: - description: Update a Hex upstream config for this repository. - operationId: repos_upstream_hex_update + description: Update a Helm upstream config for this repository. + operationId: repos_upstream_helm_update parameters: - in: path name: owner @@ -11296,14 +11455,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/HexUpstreamRequest' + $ref: '#/components/schemas/HelmUpstreamRequest' required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/HexUpstream' + $ref: '#/components/schemas/HelmUpstream' description: OK "400": content: @@ -11317,14 +11476,14 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Update a Hex upstream config for this repository. + summary: Update a Helm upstream config for this repository. tags: - repos x-codegen-request-body-name: data - /repos/{owner}/{identifier}/upstream/maven/: + /repos/{owner}/{identifier}/upstream/hex/: get: - description: List Maven upstream configs for this repository. - operationId: repos_upstream_maven_list + description: List Hex upstream configs for this repository. + operationId: repos_upstream_hex_list parameters: - in: path name: owner @@ -11352,7 +11511,7 @@ paths: application/json: schema: items: - $ref: '#/components/schemas/MavenUpstream' + $ref: '#/components/schemas/HexUpstream' type: array description: OK "400": @@ -11367,12 +11526,12 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: List Maven upstream configs for this repository. + summary: List Hex upstream configs for this repository. tags: - repos post: - description: Create a Maven upstream config for this repository. - operationId: repos_upstream_maven_create + description: Create a Hex upstream config for this repository. + operationId: repos_upstream_hex_create parameters: - in: path name: owner @@ -11388,14 +11547,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/MavenUpstreamRequest' + $ref: '#/components/schemas/HexUpstreamRequest' required: false responses: "201": content: application/json: schema: - $ref: '#/components/schemas/MavenUpstream' + $ref: '#/components/schemas/HexUpstream' description: Created "400": content: @@ -11409,14 +11568,14 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Create a Maven upstream config for this repository. + summary: Create a Hex upstream config for this repository. tags: - repos x-codegen-request-body-name: data - /repos/{owner}/{identifier}/upstream/maven/{slug_perm}/: + /repos/{owner}/{identifier}/upstream/hex/{slug_perm}/: delete: - description: Delete a Maven upstream config for this repository. - operationId: repos_upstream_maven_delete + description: Delete a Hex upstream config for this repository. + operationId: repos_upstream_hex_delete parameters: - in: path name: owner @@ -11449,12 +11608,12 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Delete a Maven upstream config for this repository. + summary: Delete a Hex upstream config for this repository. tags: - repos get: - description: Retrieve a Maven upstream config for this repository. - operationId: repos_upstream_maven_read + description: Retrieve a Hex upstream config for this repository. + operationId: repos_upstream_hex_read parameters: - in: path name: owner @@ -11476,7 +11635,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/MavenUpstream' + $ref: '#/components/schemas/HexUpstream' description: OK "400": content: @@ -11490,12 +11649,12 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Retrieve a Maven upstream config for this repository. + summary: Retrieve a Hex upstream config for this repository. tags: - repos patch: - description: Partially update a Maven upstream config for this repository. - operationId: repos_upstream_maven_partial_update + description: Partially update a Hex upstream config for this repository. + operationId: repos_upstream_hex_partial_update parameters: - in: path name: owner @@ -11516,14 +11675,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/MavenUpstreamRequestPatch' + $ref: '#/components/schemas/HexUpstreamRequestPatch' required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/MavenUpstream' + $ref: '#/components/schemas/HexUpstream' description: OK "400": content: @@ -11537,13 +11696,13 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Partially update a Maven upstream config for this repository. + summary: Partially update a Hex upstream config for this repository. tags: - repos x-codegen-request-body-name: data put: - description: Update a Maven upstream config for this repository. - operationId: repos_upstream_maven_update + description: Update a Hex upstream config for this repository. + operationId: repos_upstream_hex_update parameters: - in: path name: owner @@ -11564,14 +11723,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/MavenUpstreamRequest' + $ref: '#/components/schemas/HexUpstreamRequest' required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/MavenUpstream' + $ref: '#/components/schemas/HexUpstream' description: OK "400": content: @@ -11585,14 +11744,14 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Update a Maven upstream config for this repository. + summary: Update a Hex upstream config for this repository. tags: - repos x-codegen-request-body-name: data - /repos/{owner}/{identifier}/upstream/npm/: + /repos/{owner}/{identifier}/upstream/huggingface/: get: - description: List npm upstream configs for this repository. - operationId: repos_upstream_npm_list + description: List HuggingFace upstream configs for this repository. + operationId: repos_upstream_huggingface_list parameters: - in: path name: owner @@ -11620,7 +11779,7 @@ paths: application/json: schema: items: - $ref: '#/components/schemas/NpmUpstream' + $ref: '#/components/schemas/HuggingfaceUpstream' type: array description: OK "400": @@ -11635,12 +11794,12 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: List npm upstream configs for this repository. + summary: List HuggingFace upstream configs for this repository. tags: - repos post: - description: Create a npm upstream config for this repository. - operationId: repos_upstream_npm_create + description: Create a HuggingFace upstream config for this repository. + operationId: repos_upstream_huggingface_create parameters: - in: path name: owner @@ -11656,14 +11815,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/NpmUpstreamRequest' + $ref: '#/components/schemas/HuggingfaceUpstreamRequest' required: false responses: "201": content: application/json: schema: - $ref: '#/components/schemas/NpmUpstream' + $ref: '#/components/schemas/HuggingfaceUpstream' description: Created "400": content: @@ -11677,14 +11836,14 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Create a npm upstream config for this repository. + summary: Create a HuggingFace upstream config for this repository. tags: - repos x-codegen-request-body-name: data - /repos/{owner}/{identifier}/upstream/npm/{slug_perm}/: + /repos/{owner}/{identifier}/upstream/huggingface/{slug_perm}/: delete: - description: Delete a npm upstream config for this repository. - operationId: repos_upstream_npm_delete + description: Delete a HuggingFace upstream config for this repository. + operationId: repos_upstream_huggingface_delete parameters: - in: path name: owner @@ -11717,12 +11876,12 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Delete a npm upstream config for this repository. + summary: Delete a HuggingFace upstream config for this repository. tags: - repos get: - description: Retrieve a npm upstream config for this repository. - operationId: repos_upstream_npm_read + description: Retrieve a HuggingFace upstream config for this repository. + operationId: repos_upstream_huggingface_read parameters: - in: path name: owner @@ -11744,7 +11903,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/NpmUpstream' + $ref: '#/components/schemas/HuggingfaceUpstream' description: OK "400": content: @@ -11758,12 +11917,12 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Retrieve a npm upstream config for this repository. + summary: Retrieve a HuggingFace upstream config for this repository. tags: - repos patch: - description: Partially update a npm upstream config for this repository. - operationId: repos_upstream_npm_partial_update + description: Partially update a HuggingFace upstream config for this repository. + operationId: repos_upstream_huggingface_partial_update parameters: - in: path name: owner @@ -11784,14 +11943,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/NpmUpstreamRequestPatch' + $ref: '#/components/schemas/HuggingfaceUpstreamRequestPatch' required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/NpmUpstream' + $ref: '#/components/schemas/HuggingfaceUpstream' description: OK "400": content: @@ -11805,13 +11964,13 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Partially update a npm upstream config for this repository. + summary: Partially update a HuggingFace upstream config for this repository. tags: - repos x-codegen-request-body-name: data put: - description: Update a npm upstream config for this repository. - operationId: repos_upstream_npm_update + description: Update a HuggingFace upstream config for this repository. + operationId: repos_upstream_huggingface_update parameters: - in: path name: owner @@ -11832,14 +11991,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/NpmUpstreamRequest' + $ref: '#/components/schemas/HuggingfaceUpstreamRequest' required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/NpmUpstream' + $ref: '#/components/schemas/HuggingfaceUpstream' description: OK "400": content: @@ -11853,14 +12012,14 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Update a npm upstream config for this repository. + summary: Update a HuggingFace upstream config for this repository. tags: - repos x-codegen-request-body-name: data - /repos/{owner}/{identifier}/upstream/nuget/: + /repos/{owner}/{identifier}/upstream/maven/: get: - description: List NuGet upstream configs for this repository. - operationId: repos_upstream_nuget_list + description: List Maven upstream configs for this repository. + operationId: repos_upstream_maven_list parameters: - in: path name: owner @@ -11888,7 +12047,7 @@ paths: application/json: schema: items: - $ref: '#/components/schemas/NugetUpstream' + $ref: '#/components/schemas/MavenUpstream' type: array description: OK "400": @@ -11903,12 +12062,12 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: List NuGet upstream configs for this repository. + summary: List Maven upstream configs for this repository. tags: - repos post: - description: Create a NuGet upstream config for this repository. - operationId: repos_upstream_nuget_create + description: Create a Maven upstream config for this repository. + operationId: repos_upstream_maven_create parameters: - in: path name: owner @@ -11924,14 +12083,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/NugetUpstreamRequest' + $ref: '#/components/schemas/MavenUpstreamRequest' required: false responses: "201": content: application/json: schema: - $ref: '#/components/schemas/NugetUpstream' + $ref: '#/components/schemas/MavenUpstream' description: Created "400": content: @@ -11945,14 +12104,14 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Create a NuGet upstream config for this repository. + summary: Create a Maven upstream config for this repository. tags: - repos x-codegen-request-body-name: data - /repos/{owner}/{identifier}/upstream/nuget/{slug_perm}/: + /repos/{owner}/{identifier}/upstream/maven/{slug_perm}/: delete: - description: Delete a NuGet upstream config for this repository. - operationId: repos_upstream_nuget_delete + description: Delete a Maven upstream config for this repository. + operationId: repos_upstream_maven_delete parameters: - in: path name: owner @@ -11985,12 +12144,12 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Delete a NuGet upstream config for this repository. + summary: Delete a Maven upstream config for this repository. tags: - repos get: - description: Retrieve a NuGet upstream config for this repository. - operationId: repos_upstream_nuget_read + description: Retrieve a Maven upstream config for this repository. + operationId: repos_upstream_maven_read parameters: - in: path name: owner @@ -12012,7 +12171,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/NugetUpstream' + $ref: '#/components/schemas/MavenUpstream' description: OK "400": content: @@ -12026,12 +12185,12 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Retrieve a NuGet upstream config for this repository. + summary: Retrieve a Maven upstream config for this repository. tags: - repos patch: - description: Partially update a NuGet upstream config for this repository. - operationId: repos_upstream_nuget_partial_update + description: Partially update a Maven upstream config for this repository. + operationId: repos_upstream_maven_partial_update parameters: - in: path name: owner @@ -12052,14 +12211,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/NugetUpstreamRequestPatch' + $ref: '#/components/schemas/MavenUpstreamRequestPatch' required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/NugetUpstream' + $ref: '#/components/schemas/MavenUpstream' description: OK "400": content: @@ -12073,13 +12232,13 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Partially update a NuGet upstream config for this repository. + summary: Partially update a Maven upstream config for this repository. tags: - repos x-codegen-request-body-name: data put: - description: Update a NuGet upstream config for this repository. - operationId: repos_upstream_nuget_update + description: Update a Maven upstream config for this repository. + operationId: repos_upstream_maven_update parameters: - in: path name: owner @@ -12100,14 +12259,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/NugetUpstreamRequest' + $ref: '#/components/schemas/MavenUpstreamRequest' required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/NugetUpstream' + $ref: '#/components/schemas/MavenUpstream' description: OK "400": content: @@ -12121,14 +12280,14 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Update a NuGet upstream config for this repository. + summary: Update a Maven upstream config for this repository. tags: - repos x-codegen-request-body-name: data - /repos/{owner}/{identifier}/upstream/python/: + /repos/{owner}/{identifier}/upstream/npm/: get: - description: List Python upstream configs for this repository. - operationId: repos_upstream_python_list + description: List npm upstream configs for this repository. + operationId: repos_upstream_npm_list parameters: - in: path name: owner @@ -12156,7 +12315,7 @@ paths: application/json: schema: items: - $ref: '#/components/schemas/PythonUpstream' + $ref: '#/components/schemas/NpmUpstream' type: array description: OK "400": @@ -12171,12 +12330,12 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: List Python upstream configs for this repository. + summary: List npm upstream configs for this repository. tags: - repos post: - description: Create a Python upstream config for this repository. - operationId: repos_upstream_python_create + description: Create a npm upstream config for this repository. + operationId: repos_upstream_npm_create parameters: - in: path name: owner @@ -12192,14 +12351,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PythonUpstreamRequest' + $ref: '#/components/schemas/NpmUpstreamRequest' required: false responses: "201": content: application/json: schema: - $ref: '#/components/schemas/PythonUpstream' + $ref: '#/components/schemas/NpmUpstream' description: Created "400": content: @@ -12213,14 +12372,14 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Create a Python upstream config for this repository. + summary: Create a npm upstream config for this repository. tags: - repos x-codegen-request-body-name: data - /repos/{owner}/{identifier}/upstream/python/{slug_perm}/: + /repos/{owner}/{identifier}/upstream/npm/{slug_perm}/: delete: - description: Delete a Python upstream config for this repository. - operationId: repos_upstream_python_delete + description: Delete a npm upstream config for this repository. + operationId: repos_upstream_npm_delete parameters: - in: path name: owner @@ -12253,12 +12412,12 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Delete a Python upstream config for this repository. + summary: Delete a npm upstream config for this repository. tags: - repos get: - description: Retrieve a Python upstream config for this repository. - operationId: repos_upstream_python_read + description: Retrieve a npm upstream config for this repository. + operationId: repos_upstream_npm_read parameters: - in: path name: owner @@ -12280,7 +12439,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PythonUpstream' + $ref: '#/components/schemas/NpmUpstream' description: OK "400": content: @@ -12294,12 +12453,12 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Retrieve a Python upstream config for this repository. + summary: Retrieve a npm upstream config for this repository. tags: - repos patch: - description: Partially update a Python upstream config for this repository. - operationId: repos_upstream_python_partial_update + description: Partially update a npm upstream config for this repository. + operationId: repos_upstream_npm_partial_update parameters: - in: path name: owner @@ -12320,14 +12479,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PythonUpstreamRequestPatch' + $ref: '#/components/schemas/NpmUpstreamRequestPatch' required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/PythonUpstream' + $ref: '#/components/schemas/NpmUpstream' description: OK "400": content: @@ -12341,13 +12500,13 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Partially update a Python upstream config for this repository. + summary: Partially update a npm upstream config for this repository. tags: - repos x-codegen-request-body-name: data put: - description: Update a Python upstream config for this repository. - operationId: repos_upstream_python_update + description: Update a npm upstream config for this repository. + operationId: repos_upstream_npm_update parameters: - in: path name: owner @@ -12368,14 +12527,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PythonUpstreamRequest' + $ref: '#/components/schemas/NpmUpstreamRequest' required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/PythonUpstream' + $ref: '#/components/schemas/NpmUpstream' description: OK "400": content: @@ -12389,14 +12548,14 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Update a Python upstream config for this repository. + summary: Update a npm upstream config for this repository. tags: - repos x-codegen-request-body-name: data - /repos/{owner}/{identifier}/upstream/rpm/: + /repos/{owner}/{identifier}/upstream/nuget/: get: - description: List RedHat upstream configs for this repository. - operationId: repos_upstream_rpm_list + description: List NuGet upstream configs for this repository. + operationId: repos_upstream_nuget_list parameters: - in: path name: owner @@ -12424,7 +12583,7 @@ paths: application/json: schema: items: - $ref: '#/components/schemas/RpmUpstream' + $ref: '#/components/schemas/NugetUpstream' type: array description: OK "400": @@ -12439,12 +12598,12 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: List RedHat upstream configs for this repository. + summary: List NuGet upstream configs for this repository. tags: - repos post: - description: Create a RedHat upstream config for this repository. - operationId: repos_upstream_rpm_create + description: Create a NuGet upstream config for this repository. + operationId: repos_upstream_nuget_create parameters: - in: path name: owner @@ -12460,14 +12619,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RpmUpstreamRequest' + $ref: '#/components/schemas/NugetUpstreamRequest' required: false responses: "201": content: application/json: schema: - $ref: '#/components/schemas/RpmUpstream' + $ref: '#/components/schemas/NugetUpstream' description: Created "400": content: @@ -12481,14 +12640,14 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Create a RedHat upstream config for this repository. + summary: Create a NuGet upstream config for this repository. tags: - repos x-codegen-request-body-name: data - /repos/{owner}/{identifier}/upstream/rpm/{slug_perm}/: + /repos/{owner}/{identifier}/upstream/nuget/{slug_perm}/: delete: - description: Delete a RedHat upstream config for this repository. - operationId: repos_upstream_rpm_delete + description: Delete a NuGet upstream config for this repository. + operationId: repos_upstream_nuget_delete parameters: - in: path name: owner @@ -12521,12 +12680,12 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Delete a RedHat upstream config for this repository. + summary: Delete a NuGet upstream config for this repository. tags: - repos get: - description: Retrieve a RedHat upstream config for this repository. - operationId: repos_upstream_rpm_read + description: Retrieve a NuGet upstream config for this repository. + operationId: repos_upstream_nuget_read parameters: - in: path name: owner @@ -12548,7 +12707,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RpmUpstream' + $ref: '#/components/schemas/NugetUpstream' description: OK "400": content: @@ -12562,12 +12721,12 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Retrieve a RedHat upstream config for this repository. + summary: Retrieve a NuGet upstream config for this repository. tags: - repos patch: - description: Partially update a RedHat upstream config for this repository. - operationId: repos_upstream_rpm_partial_update + description: Partially update a NuGet upstream config for this repository. + operationId: repos_upstream_nuget_partial_update parameters: - in: path name: owner @@ -12588,14 +12747,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RpmUpstreamRequestPatch' + $ref: '#/components/schemas/NugetUpstreamRequestPatch' required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/RpmUpstream' + $ref: '#/components/schemas/NugetUpstream' description: OK "400": content: @@ -12609,13 +12768,13 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Partially update a RedHat upstream config for this repository. + summary: Partially update a NuGet upstream config for this repository. tags: - repos x-codegen-request-body-name: data put: - description: Update a RedHat upstream config for this repository. - operationId: repos_upstream_rpm_update + description: Update a NuGet upstream config for this repository. + operationId: repos_upstream_nuget_update parameters: - in: path name: owner @@ -12636,14 +12795,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RpmUpstreamRequest' + $ref: '#/components/schemas/NugetUpstreamRequest' required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/RpmUpstream' + $ref: '#/components/schemas/NugetUpstream' description: OK "400": content: @@ -12657,14 +12816,14 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Update a RedHat upstream config for this repository. + summary: Update a NuGet upstream config for this repository. tags: - repos x-codegen-request-body-name: data - /repos/{owner}/{identifier}/upstream/ruby/: + /repos/{owner}/{identifier}/upstream/python/: get: - description: List Ruby upstream configs for this repository. - operationId: repos_upstream_ruby_list + description: List Python upstream configs for this repository. + operationId: repos_upstream_python_list parameters: - in: path name: owner @@ -12692,7 +12851,7 @@ paths: application/json: schema: items: - $ref: '#/components/schemas/RubyUpstream' + $ref: '#/components/schemas/PythonUpstream' type: array description: OK "400": @@ -12707,12 +12866,12 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: List Ruby upstream configs for this repository. + summary: List Python upstream configs for this repository. tags: - repos post: - description: Create a Ruby upstream config for this repository. - operationId: repos_upstream_ruby_create + description: Create a Python upstream config for this repository. + operationId: repos_upstream_python_create parameters: - in: path name: owner @@ -12728,14 +12887,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RubyUpstreamRequest' + $ref: '#/components/schemas/PythonUpstreamRequest' required: false responses: "201": content: application/json: schema: - $ref: '#/components/schemas/RubyUpstream' + $ref: '#/components/schemas/PythonUpstream' description: Created "400": content: @@ -12749,14 +12908,14 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Create a Ruby upstream config for this repository. + summary: Create a Python upstream config for this repository. tags: - repos x-codegen-request-body-name: data - /repos/{owner}/{identifier}/upstream/ruby/{slug_perm}/: + /repos/{owner}/{identifier}/upstream/python/{slug_perm}/: delete: - description: Delete a Ruby upstream config for this repository. - operationId: repos_upstream_ruby_delete + description: Delete a Python upstream config for this repository. + operationId: repos_upstream_python_delete parameters: - in: path name: owner @@ -12789,12 +12948,12 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Delete a Ruby upstream config for this repository. + summary: Delete a Python upstream config for this repository. tags: - repos get: - description: Retrieve a Ruby upstream config for this repository. - operationId: repos_upstream_ruby_read + description: Retrieve a Python upstream config for this repository. + operationId: repos_upstream_python_read parameters: - in: path name: owner @@ -12816,7 +12975,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RubyUpstream' + $ref: '#/components/schemas/PythonUpstream' description: OK "400": content: @@ -12830,12 +12989,12 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Retrieve a Ruby upstream config for this repository. + summary: Retrieve a Python upstream config for this repository. tags: - repos patch: - description: Partially update a Ruby upstream config for this repository. - operationId: repos_upstream_ruby_partial_update + description: Partially update a Python upstream config for this repository. + operationId: repos_upstream_python_partial_update parameters: - in: path name: owner @@ -12856,14 +13015,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RubyUpstreamRequestPatch' + $ref: '#/components/schemas/PythonUpstreamRequestPatch' required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/RubyUpstream' + $ref: '#/components/schemas/PythonUpstream' description: OK "400": content: @@ -12877,13 +13036,13 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Partially update a Ruby upstream config for this repository. + summary: Partially update a Python upstream config for this repository. tags: - repos x-codegen-request-body-name: data put: - description: Update a Ruby upstream config for this repository. - operationId: repos_upstream_ruby_update + description: Update a Python upstream config for this repository. + operationId: repos_upstream_python_update parameters: - in: path name: owner @@ -12904,14 +13063,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RubyUpstreamRequest' + $ref: '#/components/schemas/PythonUpstreamRequest' required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/RubyUpstream' + $ref: '#/components/schemas/PythonUpstream' description: OK "400": content: @@ -12925,14 +13084,14 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Update a Ruby upstream config for this repository. + summary: Update a Python upstream config for this repository. tags: - repos x-codegen-request-body-name: data - /repos/{owner}/{identifier}/upstream/swift/: + /repos/{owner}/{identifier}/upstream/rpm/: get: - description: List Swift upstream configs for this repository. - operationId: repos_upstream_swift_list + description: List RedHat upstream configs for this repository. + operationId: repos_upstream_rpm_list parameters: - in: path name: owner @@ -12960,7 +13119,7 @@ paths: application/json: schema: items: - $ref: '#/components/schemas/SwiftUpstream' + $ref: '#/components/schemas/RpmUpstream' type: array description: OK "400": @@ -12975,12 +13134,12 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: List Swift upstream configs for this repository. + summary: List RedHat upstream configs for this repository. tags: - repos post: - description: Create a Swift upstream config for this repository. - operationId: repos_upstream_swift_create + description: Create a RedHat upstream config for this repository. + operationId: repos_upstream_rpm_create parameters: - in: path name: owner @@ -12996,14 +13155,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SwiftUpstreamRequest' + $ref: '#/components/schemas/RpmUpstreamRequest' required: false responses: "201": content: application/json: schema: - $ref: '#/components/schemas/SwiftUpstream' + $ref: '#/components/schemas/RpmUpstream' description: Created "400": content: @@ -13017,14 +13176,14 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Create a Swift upstream config for this repository. + summary: Create a RedHat upstream config for this repository. tags: - repos x-codegen-request-body-name: data - /repos/{owner}/{identifier}/upstream/swift/{slug_perm}/: + /repos/{owner}/{identifier}/upstream/rpm/{slug_perm}/: delete: - description: Delete a Swift upstream config for this repository. - operationId: repos_upstream_swift_delete + description: Delete a RedHat upstream config for this repository. + operationId: repos_upstream_rpm_delete parameters: - in: path name: owner @@ -13057,12 +13216,12 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Delete a Swift upstream config for this repository. + summary: Delete a RedHat upstream config for this repository. tags: - repos get: - description: Retrieve a Swift upstream config for this repository. - operationId: repos_upstream_swift_read + description: Retrieve a RedHat upstream config for this repository. + operationId: repos_upstream_rpm_read parameters: - in: path name: owner @@ -13084,7 +13243,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SwiftUpstream' + $ref: '#/components/schemas/RpmUpstream' description: OK "400": content: @@ -13098,12 +13257,12 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Retrieve a Swift upstream config for this repository. + summary: Retrieve a RedHat upstream config for this repository. tags: - repos patch: - description: Partially update a Swift upstream config for this repository. - operationId: repos_upstream_swift_partial_update + description: Partially update a RedHat upstream config for this repository. + operationId: repos_upstream_rpm_partial_update parameters: - in: path name: owner @@ -13124,14 +13283,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SwiftUpstreamRequestPatch' + $ref: '#/components/schemas/RpmUpstreamRequestPatch' required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/SwiftUpstream' + $ref: '#/components/schemas/RpmUpstream' description: OK "400": content: @@ -13145,13 +13304,13 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Partially update a Swift upstream config for this repository. + summary: Partially update a RedHat upstream config for this repository. tags: - repos x-codegen-request-body-name: data put: - description: Update a Swift upstream config for this repository. - operationId: repos_upstream_swift_update + description: Update a RedHat upstream config for this repository. + operationId: repos_upstream_rpm_update parameters: - in: path name: owner @@ -13172,14 +13331,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SwiftUpstreamRequest' + $ref: '#/components/schemas/RpmUpstreamRequest' required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/SwiftUpstream' + $ref: '#/components/schemas/RpmUpstream' description: OK "400": content: @@ -13193,14 +13352,14 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Update a Swift upstream config for this repository. + summary: Update a RedHat upstream config for this repository. tags: - repos x-codegen-request-body-name: data - /repos/{owner}/{identifier}/x509-ecdsa/: + /repos/{owner}/{identifier}/upstream/ruby/: get: - description: Retrieve the active X.509 ECDSA certificate for the Repository. - operationId: repos_x509_ecdsa_list + description: List Ruby upstream configs for this repository. + operationId: repos_upstream_ruby_list parameters: - in: path name: owner @@ -13212,13 +13371,25 @@ paths: 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 responses: "200": content: application/json: schema: - $ref: '#/components/schemas/RepositoryX509EcdsaCertificate' - description: Retrieved the active X.509 ECDSA Certificate. + items: + $ref: '#/components/schemas/RubyUpstream' + type: array + description: OK "400": content: application/json: @@ -13231,13 +13402,12 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Retrieve the active X.509 ECDSA certificate for the Repository. + summary: List Ruby upstream configs for this repository. tags: - repos - /repos/{owner}/{identifier}/x509-rsa/: - get: - description: Retrieve the active X.509 RSA certificate for the Repository. - operationId: repos_x509_rsa_list + post: + description: Create a Ruby upstream config for this repository. + operationId: repos_upstream_ruby_create parameters: - in: path name: owner @@ -13249,13 +13419,19 @@ paths: required: true schema: type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/RubyUpstreamRequest' + required: false responses: - "200": + "201": content: application/json: schema: - $ref: '#/components/schemas/RepositoryX509RsaCertificate' - description: Retrieved the active X.509 RSA Certificate. + $ref: '#/components/schemas/RubyUpstream' + description: Created "400": content: application/json: @@ -13268,13 +13444,14 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Retrieve the active X.509 RSA certificate for the Repository. + summary: Create a Ruby upstream config for this repository. tags: - repos - /repos/{owner}/{repo}/retention/: - get: - description: Retrieve the retention rules for the repository. - operationId: repo_retention_read + x-codegen-request-body-name: data + /repos/{owner}/{identifier}/upstream/ruby/{slug_perm}/: + delete: + description: Delete a Ruby upstream config for this repository. + operationId: repos_upstream_ruby_delete parameters: - in: path name: owner @@ -13282,23 +13459,60 @@ paths: schema: type: string - in: path - name: repo + name: identifier + required: true + schema: + type: string + - in: path + name: slug_perm required: true schema: type: string responses: - "200": + "204": + content: {} + description: No Content + "400": content: application/json: schema: - $ref: '#/components/schemas/RepositoryRetentionRules' - description: Retrieved the retention rules for the repository. - "404": + $ref: '#/components/schemas/ErrorDetail' + description: Request could not be processed (see detail). + "422": content: application/json: schema: $ref: '#/components/schemas/ErrorDetail' - description: Owner namespace or repository not found + description: Missing or invalid parameters (see detail). + summary: Delete a Ruby upstream config for this repository. + tags: + - repos + get: + description: Retrieve a Ruby upstream config for this repository. + operationId: repos_upstream_ruby_read + parameters: + - in: path + name: owner + required: true + schema: + type: string + - in: path + name: identifier + required: true + schema: + type: string + - in: path + name: slug_perm + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/RubyUpstream' + description: OK "400": content: application/json: @@ -13311,12 +13525,12 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Retrieve the retention rules for the repository. + summary: Retrieve a Ruby upstream config for this repository. tags: - repos patch: - description: Update the retention rules for the repository. - operationId: repo_retention_partial_update + description: Partially update a Ruby upstream config for this repository. + operationId: repos_upstream_ruby_partial_update parameters: - in: path name: owner @@ -13324,7 +13538,12 @@ paths: schema: type: string - in: path - name: repo + name: identifier + required: true + schema: + type: string + - in: path + name: slug_perm required: true schema: type: string @@ -13332,21 +13551,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RepositoryRetentionRulesRequestPatch' + $ref: '#/components/schemas/RubyUpstreamRequestPatch' required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/RepositoryRetentionRules' - description: Updated the retention rules for the repository. - "404": - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorDetail' - description: Owner namespace or repository not found + $ref: '#/components/schemas/RubyUpstream' + description: OK "400": content: application/json: @@ -13359,14 +13572,13 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Update the retention rules for the repository. + summary: Partially update a Ruby upstream config for this repository. tags: - repos x-codegen-request-body-name: data - /repos/{owner}/{repo}/transfer-region/: - post: - description: Transfer a repository to a different region. - operationId: repos_transfer_region + put: + description: Update a Ruby upstream config for this repository. + operationId: repos_upstream_ruby_update parameters: - in: path name: owner @@ -13374,7 +13586,12 @@ paths: schema: type: string - in: path - name: repo + name: identifier + required: true + schema: + type: string + - in: path + name: slug_perm required: true schema: type: string @@ -13382,25 +13599,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RepositoryTransferRegionRequest' + $ref: '#/components/schemas/RubyUpstreamRequest' required: false responses: "200": - content: {} - description: Repository region transfer initiated. - "404": - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorDetail' - description: "Owner, namespace or repository not found." - "402": content: application/json: schema: - $ref: '#/components/schemas/ErrorDetail' - description: Custom storage regions not available on plan; upgrade your - account! + $ref: '#/components/schemas/RubyUpstream' + description: OK "400": content: application/json: @@ -13413,21 +13620,44 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Transfer a repository to a different region. + summary: Update a Ruby upstream config for this repository. tags: - repos x-codegen-request-body-name: data - /status/check/basic/: + /repos/{owner}/{identifier}/upstream/swift/: get: - description: Endpoint to check basic API connectivity. - operationId: status_check_basic + description: List Swift upstream configs for this repository. + operationId: repos_upstream_swift_list + parameters: + - in: path + name: owner + required: true + schema: + type: string + - in: path + name: identifier + 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 responses: "200": content: application/json: schema: - $ref: '#/components/schemas/StatusBasic' - description: Status check was successful + items: + $ref: '#/components/schemas/SwiftUpstream' + type: array + description: OK "400": content: application/json: @@ -13440,23 +13670,36 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - security: [] - summary: Endpoint to check basic API connectivity. + summary: List Swift upstream configs for this repository. tags: - - status - /storage-regions/: - get: - description: Get a list of all available storage regions. - operationId: storage-regions_list + - repos + post: + description: Create a Swift upstream config for this repository. + operationId: repos_upstream_swift_create + parameters: + - in: path + name: owner + required: true + schema: + type: string + - in: path + name: identifier + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/SwiftUpstreamRequest' + required: false responses: - "200": + "201": content: application/json: schema: - items: - $ref: '#/components/schemas/StorageRegion' - type: array - description: Available storage regions retrieved + $ref: '#/components/schemas/SwiftUpstream' + description: Created "400": content: application/json: @@ -13469,26 +13712,34 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Get a list of all available storage regions. + summary: Create a Swift upstream config for this repository. tags: - - storage-regions - /storage-regions/{slug}/: - get: - description: Get a specific storage region. - operationId: storage-regions_read + - repos + x-codegen-request-body-name: data + /repos/{owner}/{identifier}/upstream/swift/{slug_perm}/: + delete: + description: Delete a Swift upstream config for this repository. + operationId: repos_upstream_swift_delete parameters: - in: path - name: slug + name: owner + required: true + schema: + type: string + - in: path + name: identifier + required: true + schema: + type: string + - in: path + name: slug_perm required: true schema: type: string responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/StorageRegion' - description: OK + "204": + content: {} + description: No Content "400": content: application/json: @@ -13501,20 +13752,35 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Get a specific storage region. + summary: Delete a Swift upstream config for this repository. tags: - - storage-regions - /user/self/: + - repos get: - description: Provide a brief for the current user (if any). - operationId: user_self + description: Retrieve a Swift upstream config for this repository. + operationId: repos_upstream_swift_read + parameters: + - in: path + name: owner + required: true + schema: + type: string + - in: path + name: identifier + required: true + schema: + type: string + - in: path + name: slug_perm + required: true + schema: + type: string responses: "200": content: application/json: schema: - $ref: '#/components/schemas/UserBrief' - description: Retrieved brief for the current user + $ref: '#/components/schemas/SwiftUpstream' + description: OK "400": content: application/json: @@ -13527,75 +13793,89 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Provide a brief for the current user (if any). + summary: Retrieve a Swift upstream config for this repository. tags: - - user - /user/token/: - post: - description: |- - Handles both: - - Users authenticating with basic credentials to get a token - - Two-factor authentication flow - operationId: user_token_create + - repos + patch: + description: Partially update a Swift upstream config for this repository. + operationId: repos_upstream_swift_partial_update + parameters: + - in: path + name: owner + required: true + schema: + type: string + - in: path + name: identifier + required: true + schema: + type: string + - in: path + name: slug_perm + required: true + schema: + type: string requestBody: content: application/json: schema: - $ref: '#/components/schemas/UserAuthTokenRequest' + $ref: '#/components/schemas/SwiftUpstreamRequestPatch' required: false responses: - "201": + "200": content: application/json: schema: - $ref: '#/components/schemas/UserAuthToken' - description: Retrieved/created user API token/key. - "403": + $ref: '#/components/schemas/SwiftUpstream' + description: OK + "400": content: application/json: schema: $ref: '#/components/schemas/ErrorDetail' - description: Locked out. + description: Request could not be processed (see detail). "422": content: application/json: schema: $ref: '#/components/schemas/ErrorDetail' - description: Failed to authenticate. - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorDetail' - description: Request could not be processed (see detail). - security: - - basic: [] - summary: Create or retrieve API token for a user. + description: Missing or invalid parameters (see detail). + summary: Partially update a Swift upstream config for this repository. tags: - - user + - repos x-codegen-request-body-name: data - /user/tokens/: - get: - description: Retrieve the API key assigned to the user that is currently authenticated. - operationId: user_tokens_list + put: + description: Update a Swift upstream config for this repository. + operationId: repos_upstream_swift_update parameters: - - description: A page number within the paginated result set. - in: query - name: page + - in: path + name: owner + required: true schema: - type: integer - - description: Number of results to return per page. - in: query - name: page_size + type: string + - in: path + name: identifier + required: true schema: - type: integer + type: string + - in: path + name: slug_perm + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/SwiftUpstreamRequest' + required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/user_tokens_list_200_response' - description: Retrieved the API key for the user that is currently authenticated. + $ref: '#/components/schemas/SwiftUpstream' + description: OK "400": content: application/json: @@ -13608,41 +13888,59 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Retrieve the API key assigned to the user that is currently authenticated. + summary: Update a Swift upstream config for this repository. tags: - - user - post: - description: Create an API key for the user that is currently authenticated. - operationId: user_tokens_create + - repos + x-codegen-request-body-name: data + /repos/{owner}/{identifier}/x509-ecdsa/: + get: + description: Retrieve the active X.509 ECDSA certificate for the Repository. + operationId: repos_x509_ecdsa_list + parameters: + - in: path + name: owner + required: true + schema: + type: string + - in: path + name: identifier + required: true + schema: + type: string responses: - "201": + "200": content: application/json: schema: - $ref: '#/components/schemas/UserAuthenticationToken' - description: Created an API key for the user that is currently authenticated. + $ref: '#/components/schemas/RepositoryX509EcdsaCertificate' + description: Retrieved the active X.509 ECDSA Certificate. "400": content: application/json: schema: $ref: '#/components/schemas/ErrorDetail' - description: User has already created an API key. + description: Request could not be processed (see detail). "422": content: application/json: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Create an API key for the user that is currently authenticated. + summary: Retrieve the active X.509 ECDSA certificate for the Repository. tags: - - user - /user/tokens/{slug_perm}/refresh/: - put: - description: Refresh the specified API key for the user that is currently authenticated. - operationId: user_tokens_refresh + - repos + /repos/{owner}/{identifier}/x509-rsa/: + get: + description: Retrieve the active X.509 RSA certificate for the Repository. + operationId: repos_x509_rsa_list parameters: - in: path - name: slug_perm + name: owner + required: true + schema: + type: string + - in: path + name: identifier required: true schema: type: string @@ -13651,14 +13949,8 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UserAuthenticationToken' - description: Successfully refreshed the API key. - "404": - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorDetail' - description: The specified API key cannot be found. + $ref: '#/components/schemas/RepositoryX509RsaCertificate' + description: Retrieved the active X.509 RSA Certificate. "400": content: application/json: @@ -13671,20 +13963,423 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Refresh the specified API key for the user that is currently authenticated. + summary: Retrieve the active X.509 RSA certificate for the Repository. tags: - - user - /users/profile/{slug}/: + - repos + /repos/{owner}/{repo}/retention/: get: - description: Provide a brief for the specified user (if any). - operationId: users_profile_read + description: Retrieve the retention rules for the repository. + operationId: repo_retention_read parameters: - in: path - name: slug + name: owner required: true schema: type: string - responses: + - in: path + name: repo + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/RepositoryRetentionRules' + description: Retrieved the retention rules for the repository. + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorDetail' + description: Owner namespace 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: Retrieve the retention rules for the repository. + tags: + - repos + patch: + description: Update the retention rules for the repository. + operationId: repo_retention_partial_update + 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/RepositoryRetentionRulesRequestPatch' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/RepositoryRetentionRules' + description: Updated the retention rules for the repository. + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorDetail' + description: Owner namespace 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: Update the retention rules for the repository. + tags: + - repos + x-codegen-request-body-name: data + /repos/{owner}/{repo}/transfer-region/: + post: + description: Transfer a repository to a different region. + operationId: repos_transfer_region + 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/RepositoryTransferRegionRequest' + required: false + responses: + "200": + content: {} + description: Repository region transfer initiated. + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorDetail' + description: "Owner, namespace or repository not found." + "402": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorDetail' + description: Custom storage regions not available on plan; upgrade your + account! + "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: Transfer a repository to a different region. + tags: + - repos + x-codegen-request-body-name: data + /status/check/basic/: + get: + description: Endpoint to check basic API connectivity. + operationId: status_check_basic + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/StatusBasic' + description: Status check was successful + "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). + security: [] + summary: Endpoint to check basic API connectivity. + tags: + - status + /storage-regions/: + get: + description: Get a list of all available storage regions. + operationId: storage-regions_list + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/StorageRegion' + type: array + description: Available storage regions retrieved + "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: Get a list of all available storage regions. + tags: + - storage-regions + /storage-regions/{slug}/: + get: + description: Get a specific storage region. + operationId: storage-regions_read + parameters: + - in: path + name: slug + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/StorageRegion' + 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: Get a specific storage region. + tags: + - storage-regions + /user/self/: + get: + description: Provide a brief for the current user (if any). + operationId: user_self + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/UserBrief' + description: Retrieved brief for the current user + "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: Provide a brief for the current user (if any). + tags: + - user + /user/token/: + post: + description: |- + Handles both: + - Users authenticating with basic credentials to get a token + - Two-factor authentication flow + operationId: user_token_create + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UserAuthTokenRequest' + required: false + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/UserAuthToken' + description: Retrieved/created user API token/key. + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorDetail' + description: Locked out. + "422": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorDetail' + description: Failed to authenticate. + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorDetail' + description: Request could not be processed (see detail). + security: + - basic: [] + summary: Create or retrieve API token for a user. + tags: + - user + x-codegen-request-body-name: data + /user/tokens/: + get: + description: Retrieve the API key assigned to the user that is currently authenticated. + operationId: user_tokens_list + parameters: + - 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 + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/user_tokens_list_200_response' + description: Retrieved the API key for the user that is currently authenticated. + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorDetail' + description: Request could not be processed (see detail). + "422": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorDetail' + description: Missing or invalid parameters (see detail). + summary: Retrieve the API key assigned to the user that is currently authenticated. + tags: + - user + post: + description: Create an API key for the user that is currently authenticated. + operationId: user_tokens_create + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/UserAuthenticationToken' + description: Created an API key for the user that is currently authenticated. + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorDetail' + description: User has already created an API key. + "422": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorDetail' + description: Missing or invalid parameters (see detail). + summary: Create an API key for the user that is currently authenticated. + tags: + - user + /user/tokens/{slug_perm}/refresh/: + put: + description: Refresh the specified API key for the user that is currently authenticated. + operationId: user_tokens_refresh + parameters: + - in: path + name: slug_perm + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/UserAuthenticationToken' + description: Successfully refreshed the API key. + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorDetail' + description: The specified API key cannot be 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: Refresh the specified API key for the user that is currently authenticated. + tags: + - user + /users/profile/{slug}/: + get: + description: Provide a brief for the specified user (if any). + operationId: users_profile_read + parameters: + - in: path + name: slug + required: true + schema: + type: string + responses: "200": content: application/json: @@ -18265,130 +18960,733 @@ components: with an unknown severity are permitted by this policy. title: Allow unknown severity type: boolean - created_at: - format: date-time + created_at: + format: date-time + readOnly: true + title: Created at + type: string + description: + maxLength: 250 + minLength: 1 + nullable: true + title: Description + type: string + min_severity: + default: Critical + enum: + - Low + - Medium + - High + - Critical + title: Min severity + type: string + name: + maxLength: 100 + minLength: 1 + title: Name + type: string + on_violation_quarantine: + title: On violation quarantine + type: boolean + package_query_string: + minLength: 1 + nullable: true + title: Package query string + type: string + slug_perm: + format: slug + minLength: 1 + pattern: "^[-a-zA-Z0-9_]+$" + readOnly: true + title: Slug perm + type: string + updated_at: + format: date-time + readOnly: true + title: Updated at + type: string + required: + - name + type: object + OrganizationPackageVulnerabilityPolicyRequest: + example: + allow_unknown_severity: true + name: name + description: description + on_violation_quarantine: true + min_severity: Critical + package_query_string: package_query_string + properties: + allow_unknown_severity: + description: Denotes whether vulnerabilities detected by a security scan + with an unknown severity are permitted by this policy. + title: Allow unknown severity + type: boolean + description: + maxLength: 250 + minLength: 1 + nullable: true + title: Description + type: string + min_severity: + default: Critical + enum: + - Low + - Medium + - High + - Critical + title: Min severity + type: string + name: + maxLength: 100 + minLength: 1 + title: Name + type: string + on_violation_quarantine: + title: On violation quarantine + type: boolean + package_query_string: + minLength: 1 + nullable: true + title: Package query string + type: string + required: + - name + type: object + PackageVulnerabilityPolicyEvaluationRequest: + example: + updated_at: 2000-01-23T04:56:07.000+00:00 + violation_count: 6 + evaluation_count: 0 + created_at: 2000-01-23T04:56:07.000+00:00 + slug_perm: slug_perm + policy: + allow_unknown_severity: true + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + description: description + on_violation_quarantine: true + min_severity: Critical + package_query_string: package_query_string + slug_perm: slug_perm + url: https://openapi-generator.tech + status: Pending + properties: + created_at: + format: date-time + readOnly: true + title: Created at + type: string + evaluation_count: + readOnly: true + title: Evaluation count + type: integer + policy: + $ref: '#/components/schemas/NestedVulnerabilityPolicy' + slug_perm: + format: slug + minLength: 1 + pattern: "^[-a-zA-Z0-9_]+$" + readOnly: true + title: Slug perm + type: string + status: + default: Pending + enum: + - Pending + - In Progress + - Complete + - Cancelled + - Errored + readOnly: true + title: Status + type: string + updated_at: + format: date-time + readOnly: true + title: Updated at + type: string + violation_count: + readOnly: true + title: Violation count + type: integer + type: object + PackageVulnerabilityPolicyEvaluationRequestRequest: + type: object + OrganizationPackageVulnerabilityPolicyRequestPatch: + example: + allow_unknown_severity: true + name: name + description: description + on_violation_quarantine: true + min_severity: Critical + package_query_string: package_query_string + properties: + allow_unknown_severity: + description: Denotes whether vulnerabilities detected by a security scan + with an unknown severity are permitted by this policy. + title: Allow unknown severity + type: boolean + description: + maxLength: 250 + minLength: 1 + nullable: true + title: Description + type: string + min_severity: + default: Critical + enum: + - Low + - Medium + - High + - Critical + title: Min severity + type: string + name: + maxLength: 100 + minLength: 1 + title: Name + type: string + on_violation_quarantine: + title: On violation quarantine + type: boolean + package_query_string: + minLength: 1 + nullable: true + title: Package query string + type: string + type: object + Architecture: + example: + name: name + description: description + properties: + description: + maxLength: 64 + nullable: true + title: Description + type: string + name: + maxLength: 32 + minLength: 1 + title: Name + type: string + required: + - name + type: object + PackageFile: + example: + 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 + properties: + cdn_url: + nullable: true + readOnly: true + title: Cdn url + type: string + checksum_md5: + nullable: true + readOnly: true + title: Checksum md5 + type: string + checksum_sha1: + nullable: true + readOnly: true + title: Checksum sha1 + type: string + checksum_sha256: + nullable: true + readOnly: true + title: Checksum sha256 + type: string + checksum_sha512: + nullable: true + readOnly: true + title: Checksum sha512 + type: string + downloads: + readOnly: true + title: Downloads + type: integer + filename: + minLength: 1 + readOnly: true + title: Filename + type: string + is_downloadable: + readOnly: true + title: Is downloadable + type: boolean + is_primary: + readOnly: true + title: Is primary + type: boolean + is_synchronised: + readOnly: true + title: Is synchronised + type: boolean + signature_url: + nullable: true + readOnly: true + title: Signature url + type: string + size: + description: The calculated size of the file. + readOnly: true + title: Size + type: integer + slug_perm: + format: slug + minLength: 1 + pattern: "^[-a-zA-Z0-9_]+$" + readOnly: true + title: Slug perm + type: string + tag: + description: Freeform descriptor that describes what the file is. + nullable: true + readOnly: true + title: Tag + type: string + type: object + 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 + Package: + 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: 7 + 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: 5 + 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 + version: version + tags: "{}" + is_resyncable: true + license: license + filename: filename + size: 9 + 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 + num_files: 2 + status: 2 + 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 + vulnerability_scan_results_url: https://openapi-generator.tech + dependencies_checksum_md5: dependencies_checksum_md5 + policy_violated: true + downloads: 0 + subtype: subtype + uploader: uploader + 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: 4 + 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: 3 + 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 + 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: Created at + 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 - description: - maxLength: 250 - minLength: 1 + name: + description: The name of this package. nullable: true - title: Description + readOnly: true + title: Name type: string - min_severity: - default: Critical - enum: - - Low - - Medium - - High - - Critical - title: Min severity + namespace: + minLength: 1 + readOnly: true + title: Namespace type: string - name: - maxLength: 100 + namespace_url: + format: uri + readOnly: true + title: Namespace url + type: string + num_files: + readOnly: true + title: Num files + type: integer + origin_repository: minLength: 1 - title: Name + readOnly: true + title: Origin repository type: string - on_violation_quarantine: - title: On violation quarantine + 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 - package_query_string: - minLength: 1 + release: + description: The release of the package version (if any). nullable: true - title: Package query string + readOnly: true + title: Release type: string - slug_perm: - format: slug + repository: minLength: 1 - pattern: "^[-a-zA-Z0-9_]+$" readOnly: true - title: Slug perm + title: Repository type: string - updated_at: + 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: Updated at + title: Security scan completed at type: string - required: - - name - type: object - OrganizationPackageVulnerabilityPolicyRequest: - example: - allow_unknown_severity: true - name: name - description: description - on_violation_quarantine: true - min_severity: Critical - package_query_string: package_query_string - properties: - allow_unknown_severity: - description: Denotes whether vulnerabilities detected by a security scan - with an unknown severity are permitted by this policy. - title: Allow unknown severity - type: boolean - description: - maxLength: 250 - minLength: 1 + security_scan_started_at: + description: The datetime the security scanning was started. + format: date-time nullable: true - title: Description + readOnly: true + title: Security scan started at type: string - min_severity: - default: Critical + security_scan_status: + default: Awaiting Security Scan enum: - - Low - - Medium - - High - - Critical - title: Min severity + - 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 - name: - maxLength: 100 - minLength: 1 - title: Name + 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 - on_violation_quarantine: - title: On violation quarantine - type: boolean - package_query_string: + self_html_url: minLength: 1 - nullable: true - title: Package query string + readOnly: true + title: Self html url type: string - required: - - name - type: object - PackageVulnerabilityPolicyEvaluationRequest: - example: - updated_at: 2000-01-23T04:56:07.000+00:00 - violation_count: 6 - evaluation_count: 0 - created_at: 2000-01-23T04:56:07.000+00:00 - slug_perm: slug_perm - policy: - allow_unknown_severity: true - updated_at: 2000-01-23T04:56:07.000+00:00 - name: name - created_at: 2000-01-23T04:56:07.000+00:00 - description: description - on_violation_quarantine: true - min_severity: Critical - package_query_string: package_query_string - slug_perm: slug_perm - url: https://openapi-generator.tech - status: Pending - properties: - created_at: - format: date-time + self_url: + format: uri readOnly: true - title: Created at + title: Self url type: string - evaluation_count: + signature_url: + nullable: true readOnly: true - title: Evaluation count + title: Signature url + type: string + size: + description: The calculated size of the package. + readOnly: true + title: Size type: integer - policy: - $ref: '#/components/schemas/NestedVulnerabilityPolicy' + 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 @@ -18396,183 +19694,195 @@ components: readOnly: true title: Slug perm type: string - status: - default: Pending - enum: - - Pending - - In Progress - - Complete - - Cancelled - - Errored + stage: + description: The synchronisation (in progress) stage of the package. readOnly: true - title: Status + title: Stage + type: integer + stage_str: + readOnly: true + title: Stage str type: string - updated_at: + stage_updated_at: + description: The datetime the package stage was updated at. format: date-time readOnly: true - title: Updated at + title: Stage updated at type: string - violation_count: + status: + description: The synchronisation status of the package. readOnly: true - title: Violation count + title: Status type: integer - type: object - PackageVulnerabilityPolicyEvaluationRequestRequest: - type: object - OrganizationPackageVulnerabilityPolicyRequestPatch: - example: - allow_unknown_severity: true - name: name - description: description - on_violation_quarantine: true - min_severity: Critical - package_query_string: package_query_string - properties: - allow_unknown_severity: - description: Denotes whether vulnerabilities detected by a security scan - with an unknown severity are permitted by this policy. - title: Allow unknown severity - type: boolean - description: - maxLength: 250 - minLength: 1 - nullable: true - title: Description - type: string - min_severity: - default: Critical - enum: - - Low - - Medium - - High - - Critical - title: Min severity - type: string - name: - maxLength: 100 - minLength: 1 - title: Name - type: string - on_violation_quarantine: - title: On violation quarantine - type: boolean - package_query_string: - minLength: 1 - nullable: true - title: Package query string - type: string - type: object - Architecture: - example: - name: name - description: description - properties: - description: - maxLength: 64 + status_reason: + description: A textual description for the synchronous status reason (if + any nullable: true - title: Description + readOnly: true + title: Status reason type: string - name: - maxLength: 32 - minLength: 1 - title: Name + status_str: + readOnly: true + title: Status str type: string - required: - - name - type: object - PackageFile: - example: - 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 - properties: - cdn_url: - nullable: true + status_updated_at: + description: The datetime the package status was updated at. + format: date-time readOnly: true - title: Cdn url + title: Status updated at type: string - checksum_md5: - nullable: true + status_url: + format: uri readOnly: true - title: Checksum md5 + title: Status url type: string - checksum_sha1: - nullable: true + subtype: readOnly: true - title: Checksum sha1 + title: Subtype type: string - checksum_sha256: + summary: + description: A one-liner synopsis of this package. nullable: true readOnly: true - title: Checksum sha256 + title: Summary type: string - checksum_sha512: + sync_finished_at: + description: The datetime the package sync was finished at. + format: date-time nullable: true readOnly: true - title: Checksum sha512 + title: Sync finished at type: string - downloads: + sync_progress: + description: Synchronisation progress (from 0-100) readOnly: true - title: Downloads + title: Sync progress type: integer - filename: - minLength: 1 + 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 + 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: Filename + title: Type display type: string - is_downloadable: + uploaded_at: + description: The date this package was uploaded. + format: date-time readOnly: true - title: Is downloadable - type: boolean - is_primary: + title: Uploaded at + type: string + uploader: + minLength: 1 readOnly: true - title: Is primary - type: boolean - is_synchronised: + title: Uploader + type: string + uploader_url: + format: uri readOnly: true - title: Is synchronised - type: boolean - signature_url: + title: Uploader url + type: string + version: + description: The raw version for this package. nullable: true readOnly: true - title: Signature url + title: Version type: string - size: - description: The calculated size of the file. + 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 + PackageGroup: + example: + backend_kind: 0 + size: 5 + count: 6 + name: name + last_push: 2000-01-23T04:56:07.000+00:00 + num_downloads: 1 + properties: + backend_kind: + title: Backend kind + type: integer + count: + nullable: true + title: Count + type: integer + last_push: + format: date-time + nullable: true + title: Last push + type: string + name: + minLength: 1 + title: Name + type: string + num_downloads: + nullable: true + title: Num downloads + type: integer + size: + nullable: true title: Size type: integer - slug_perm: - format: slug + required: + - count + - last_push + - num_downloads + - size + type: object + AlpinePackageUploadRequest: + example: + republish: true + distribution: distribution + package_file: package_file + tags: tags + properties: + distribution: + description: The distribution to store the package for. minLength: 1 - pattern: "^[-a-zA-Z0-9_]+$" - readOnly: true - title: Slug perm + title: Distribution type: string - tag: - description: Freeform descriptor that describes what the file is. + 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 - readOnly: true - title: Tag + title: Tags type: string + required: + - distribution + - package_file type: object - 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 - Package: + AlpinePackageUpload: example: architectures: - name: name @@ -18582,7 +19892,7 @@ components: security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 release: release - package_type: 7 + package_type: 5 repository: repository origin_repository: origin_repository identifier_perm: identifier_perm @@ -18590,7 +19900,7 @@ components: tags_immutable: "{}" is_quarantined: true slug: slug - freeable_storage: 5 + 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 @@ -18603,11 +19913,10 @@ components: display_name: display_name slug_perm: slug_perm version: version - tags: "{}" is_resyncable: true license: license filename: filename - size: 9 + size: 2 cdn_url: cdn_url uploaded_at: 2000-01-23T04:56:07.000+00:00 is_cancellable: true @@ -18643,8 +19952,8 @@ components: is_downloadable: true signature_url: signature_url tag: tag - num_files: 2 - status: 2 + num_files: 5 + status: 9 checksum_sha512: checksum_sha512 distro: name: name @@ -18668,6 +19977,7 @@ components: subtype: subtype uploader: uploader signature_url: signature_url + tags_automatic: "{}" repository_url: https://openapi-generator.tech is_moveable: true status_reason: status_reason @@ -18678,7 +19988,7 @@ components: identifiers: key: identifiers checksum_md5: checksum_md5 - sync_progress: 4 + sync_progress: 3 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -18689,7 +19999,7 @@ components: security_scan_completed_at: 2000-01-23T04:56:07.000+00:00 is_sync_in_progress: true stage_str: stage_str - stage: 3 + stage: 7 format_url: https://openapi-generator.tech dependencies_url: https://openapi-generator.tech namespace: namespace @@ -19062,7 +20372,7 @@ components: readOnly: true title: Sync progress type: integer - tags: + 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." @@ -19108,57 +20418,12 @@ components: title: Vulnerability scan results url type: string type: object - PackageGroup: - example: - backend_kind: 0 - size: 5 - count: 6 - name: name - last_push: 2000-01-23T04:56:07.000+00:00 - num_downloads: 1 - properties: - backend_kind: - title: Backend kind - type: integer - count: - nullable: true - title: Count - type: integer - last_push: - format: date-time - nullable: true - title: Last push - type: string - name: - minLength: 1 - title: Name - type: string - num_downloads: - nullable: true - title: Num downloads - type: integer - size: - nullable: true - title: Size - type: integer - required: - - count - - last_push - - num_downloads - - size - type: object - AlpinePackageUploadRequest: + CargoPackageUploadRequest: example: republish: true - distribution: distribution package_file: package_file tags: tags properties: - 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 @@ -19178,10 +20443,9 @@ components: title: Tags type: string required: - - distribution - package_file type: object - AlpinePackageUpload: + CargoPackageUpload: example: architectures: - name: name @@ -19276,6 +20540,7 @@ components: subtype: subtype uploader: uploader signature_url: signature_url + tags_automatic: "{}" repository_url: https://openapi-generator.tech is_moveable: true status_reason: status_reason @@ -19670,6 +20935,11 @@ components: 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\ @@ -19711,7 +20981,7 @@ components: title: Vulnerability scan results url type: string type: object - CargoPackageUploadRequest: + CocoapodsPackageUploadRequest: example: republish: true package_file: package_file @@ -19738,7 +21008,7 @@ components: required: - package_file type: object - CargoPackageUpload: + CocoapodsPackageUpload: example: architectures: - name: name @@ -19833,6 +21103,7 @@ components: subtype: subtype uploader: uploader signature_url: signature_url + tags_automatic: "{}" repository_url: https://openapi-generator.tech is_moveable: true status_reason: status_reason @@ -20227,6 +21498,11 @@ components: 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\ @@ -20268,10 +21544,11 @@ components: title: Vulnerability scan results url type: string type: object - CocoapodsPackageUploadRequest: + ComposerPackageUploadRequest: example: republish: true package_file: package_file + version: version tags: tags properties: package_file: @@ -20292,10 +21569,16 @@ components: nullable: true title: Tags type: string + version: + description: The raw version for this package. + maxLength: 255 + nullable: true + title: Version + type: string required: - package_file type: object - CocoapodsPackageUpload: + ComposerPackageUpload: example: architectures: - name: name @@ -20390,6 +21673,7 @@ components: subtype: subtype uploader: uploader signature_url: signature_url + tags_automatic: "{}" repository_url: https://openapi-generator.tech is_moveable: true status_reason: status_reason @@ -20784,6 +22068,11 @@ components: 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\ @@ -20811,8 +22100,8 @@ components: type: string version: description: The raw version for this package. + maxLength: 255 nullable: true - readOnly: true title: Version type: string version_orig: @@ -20825,13 +22114,54 @@ components: title: Vulnerability scan results url type: string type: object - ComposerPackageUploadRequest: + 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 @@ -20857,9 +22187,12 @@ components: title: Version type: string required: + - info_file + - manifest_file + - metadata_file - package_file type: object - ComposerPackageUpload: + ConanPackageUpload: example: architectures: - name: name @@ -20929,7 +22262,9 @@ 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: @@ -20954,6 +22289,7 @@ components: subtype: subtype uploader: uploader signature_url: signature_url + tags_automatic: "{}" repository_url: https://openapi-generator.tech is_moveable: true status_reason: status_reason @@ -21007,6 +22343,20 @@ 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 @@ -21159,8 +22509,8 @@ components: type: string name: description: The name of this package. + maxLength: 200 nullable: true - readOnly: true title: Name type: string namespace: @@ -21348,6 +22698,11 @@ components: 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\ @@ -21389,54 +22744,12 @@ components: title: Vulnerability scan results url type: string type: object - ConanPackageUploadRequest: + 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 @@ -21455,19 +22768,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 @@ -21537,9 +22841,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: @@ -21564,6 +22866,7 @@ components: subtype: subtype uploader: uploader signature_url: signature_url + tags_automatic: "{}" repository_url: https://openapi-generator.tech is_moveable: true status_reason: status_reason @@ -21617,20 +22920,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 @@ -21783,8 +23072,8 @@ components: type: string name: description: The name of this package. - maxLength: 200 nullable: true + readOnly: true title: Name type: string namespace: @@ -21972,6 +23261,11 @@ components: 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\ @@ -21999,8 +23293,8 @@ components: type: string version: description: The raw version for this package. - maxLength: 255 nullable: true + readOnly: true title: Version type: string version_orig: @@ -22013,17 +23307,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\ @@ -22040,7 +23350,7 @@ components: required: - package_file type: object - CondaPackageUpload: + CranPackageUpload: example: architectures: - name: name @@ -22135,6 +23445,7 @@ components: subtype: subtype uploader: uploader signature_url: signature_url + tags_automatic: "{}" repository_url: https://openapi-generator.tech is_moveable: true status_reason: status_reason @@ -22158,6 +23469,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 @@ -22378,6 +23690,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 release: description: The release of the package version (if any). nullable: true @@ -22529,6 +23849,11 @@ components: 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\ @@ -22570,33 +23895,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\ @@ -22613,7 +23922,7 @@ components: required: - package_file type: object - CranPackageUpload: + DartPackageUpload: example: architectures: - name: name @@ -22708,6 +24017,7 @@ components: subtype: subtype uploader: uploader signature_url: signature_url + tags_automatic: "{}" repository_url: https://openapi-generator.tech is_moveable: true status_reason: status_reason @@ -22731,7 +24041,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 @@ -22952,14 +24261,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 release: description: The release of the package version (if any). nullable: true @@ -23111,6 +24412,11 @@ components: 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\ @@ -23152,12 +24458,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 @@ -23169,6 +24500,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 @@ -23177,9 +24514,10 @@ components: title: Tags type: string required: + - distribution - package_file type: object - DartPackageUpload: + DebPackageUpload: example: architectures: - name: name @@ -23274,6 +24612,7 @@ components: subtype: subtype uploader: uploader signature_url: signature_url + tags_automatic: "{}" repository_url: https://openapi-generator.tech is_moveable: true status_reason: status_reason @@ -23668,6 +25007,11 @@ components: 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\ @@ -23709,37 +25053,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 @@ -23751,12 +25070,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 @@ -23765,10 +25078,9 @@ components: title: Tags type: string required: - - distribution - package_file type: object - DebPackageUpload: + DockerPackageUpload: example: architectures: - name: name @@ -23863,6 +25175,7 @@ components: subtype: subtype uploader: uploader signature_url: signature_url + tags_automatic: "{}" repository_url: https://openapi-generator.tech is_moveable: true status_reason: status_reason @@ -24257,6 +25570,11 @@ components: 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\ @@ -24298,7 +25616,7 @@ components: title: Vulnerability scan results url type: string type: object - DockerPackageUploadRequest: + GoPackageUploadRequest: example: republish: true package_file: package_file @@ -24325,7 +25643,7 @@ components: required: - package_file type: object - DockerPackageUpload: + GoPackageUpload: example: architectures: - name: name @@ -24420,6 +25738,7 @@ components: subtype: subtype uploader: uploader signature_url: signature_url + tags_automatic: "{}" repository_url: https://openapi-generator.tech is_moveable: true status_reason: status_reason @@ -24814,6 +26133,11 @@ components: 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\ @@ -24855,8 +26179,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 @@ -24866,6 +26191,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\ @@ -24882,7 +26214,7 @@ components: required: - package_file type: object - GoPackageUpload: + HelmPackageUpload: example: architectures: - name: name @@ -24977,6 +26309,7 @@ components: subtype: subtype uploader: uploader signature_url: signature_url + tags_automatic: "{}" repository_url: https://openapi-generator.tech is_moveable: true status_reason: status_reason @@ -25371,6 +26704,11 @@ components: 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\ @@ -25412,9 +26750,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 @@ -25424,13 +26761,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\ @@ -25447,7 +26777,7 @@ components: required: - package_file type: object - HelmPackageUpload: + HexPackageUpload: example: architectures: - name: name @@ -25542,6 +26872,7 @@ components: subtype: subtype uploader: uploader signature_url: signature_url + tags_automatic: "{}" repository_url: https://openapi-generator.tech is_moveable: true status_reason: status_reason @@ -25936,6 +27267,11 @@ components: 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\ @@ -25977,7 +27313,7 @@ components: title: Vulnerability scan results url type: string type: object - HexPackageUploadRequest: + HuggingfacePackageUploadRequest: example: republish: true package_file: package_file @@ -26004,7 +27340,7 @@ components: required: - package_file type: object - HexPackageUpload: + HuggingfacePackageUpload: example: architectures: - name: name @@ -26099,6 +27435,7 @@ components: subtype: subtype uploader: uploader signature_url: signature_url + tags_automatic: "{}" repository_url: https://openapi-generator.tech is_moveable: true status_reason: status_reason @@ -26493,6 +27830,11 @@ components: 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\ @@ -26656,6 +27998,7 @@ components: subtype: subtype uploader: uploader signature_url: signature_url + tags_automatic: "{}" repository_url: https://openapi-generator.tech is_moveable: true status_reason: status_reason @@ -27050,6 +28393,11 @@ components: 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\ @@ -27301,6 +28649,7 @@ components: subtype: subtype uploader: uploader signature_url: signature_url + tags_automatic: "{}" repository_url: https://openapi-generator.tech is_moveable: true status_reason: status_reason @@ -27727,6 +29076,11 @@ components: 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\ @@ -27899,6 +29253,7 @@ components: subtype: subtype uploader: uploader signature_url: signature_url + tags_automatic: "{}" repository_url: https://openapi-generator.tech is_moveable: true status_reason: status_reason @@ -28293,6 +29648,11 @@ components: 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\ @@ -28463,6 +29823,7 @@ components: subtype: subtype uploader: uploader signature_url: signature_url + tags_automatic: "{}" repository_url: https://openapi-generator.tech is_moveable: true status_reason: status_reason @@ -28857,6 +30218,11 @@ components: 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\ @@ -29020,6 +30386,7 @@ components: subtype: subtype uploader: uploader signature_url: signature_url + tags_automatic: "{}" repository_url: https://openapi-generator.tech is_moveable: true status_reason: status_reason @@ -29414,6 +30781,11 @@ components: 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\ @@ -29577,6 +30949,7 @@ components: subtype: subtype uploader: uploader signature_url: signature_url + tags_automatic: "{}" repository_url: https://openapi-generator.tech is_moveable: true status_reason: status_reason @@ -29971,6 +31344,11 @@ components: 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\ @@ -30172,6 +31550,7 @@ components: subtype: subtype uploader: uploader signature_url: signature_url + tags_automatic: "{}" repository_url: https://openapi-generator.tech is_moveable: true status_reason: status_reason @@ -30566,6 +31945,11 @@ components: 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\ @@ -30736,6 +32120,7 @@ components: subtype: subtype uploader: uploader signature_url: signature_url + tags_automatic: "{}" repository_url: https://openapi-generator.tech is_moveable: true status_reason: status_reason @@ -31130,6 +32515,11 @@ components: 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\ @@ -31293,6 +32683,7 @@ components: subtype: subtype uploader: uploader signature_url: signature_url + tags_automatic: "{}" repository_url: https://openapi-generator.tech is_moveable: true status_reason: status_reason @@ -31687,6 +33078,11 @@ components: 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\ @@ -31911,6 +33307,7 @@ components: uploader: uploader scope: scope signature_url: signature_url + tags_automatic: "{}" repository_url: https://openapi-generator.tech is_moveable: true status_reason: status_reason @@ -32336,6 +33733,11 @@ components: 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\ @@ -32502,6 +33904,7 @@ components: subtype: subtype uploader: uploader signature_url: signature_url + tags_automatic: "{}" repository_url: https://openapi-generator.tech is_moveable: true status_reason: status_reason @@ -32896,6 +34299,11 @@ components: 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\ @@ -33081,6 +34489,7 @@ components: subtype: subtype uploader: uploader signature_url: signature_url + tags_automatic: "{}" repository_url: https://openapi-generator.tech is_moveable: true status_reason: status_reason @@ -33479,6 +34888,11 @@ components: 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\ @@ -33636,6 +35050,7 @@ components: subtype: subtype uploader: uploader signature_url: signature_url + tags_automatic: "{}" repository_url: https://openapi-generator.tech is_moveable: true status_reason: status_reason @@ -34036,6 +35451,11 @@ components: \ immutable tags, but doesn't distinguish them from mutable. To see which\ \ tags are immutable specifically, see the tags_immutable field." type: object + 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\ @@ -34274,6 +35694,7 @@ components: subtype: subtype uploader: uploader signature_url: signature_url + tags_automatic: "{}" repository_url: https://openapi-generator.tech is_moveable: true status_reason: status_reason @@ -34674,6 +36095,11 @@ components: \ immutable tags, but doesn't distinguish them from mutable. To see which\ \ tags are immutable specifically, see the tags_immutable field." type: object + 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\ @@ -34825,6 +36251,7 @@ components: subtype: subtype uploader: uploader signature_url: signature_url + tags_automatic: "{}" repository_url: https://openapi-generator.tech is_moveable: true status_reason: status_reason @@ -35218,6 +36645,11 @@ components: \ immutable tags, but doesn't distinguish them from mutable. To see which\ \ tags are immutable specifically, see the tags_immutable field." type: object + 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\ @@ -35355,6 +36787,7 @@ components: subtype: subtype uploader: uploader signature_url: signature_url + tags_automatic: "{}" repository_url: https://openapi-generator.tech is_moveable: true status_reason: status_reason @@ -35754,6 +37187,11 @@ components: \ immutable tags, but doesn't distinguish them from mutable. To see which\ \ tags are immutable specifically, see the tags_immutable field." type: object + 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\ @@ -36341,6 +37779,11 @@ components: 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\ @@ -36382,6 +37825,77 @@ components: title: Vulnerability scan results url type: string type: object + PackageLicenseRequestPatch: + example: + license_notes: license_notes + action: Update + license_override: None + spdx_license: spdx_license + license_url: https://openapi-generator.tech + properties: + action: + default: Update + enum: + - Update + nullable: true + title: Action + type: string + license_notes: + maxLength: 1000 + nullable: true + title: License notes + type: string + license_override: + default: None + enum: + - None + - Ignored + - Purchased + nullable: true + title: License override + type: string + license_url: + format: uri + maxLength: 255 + nullable: true + title: License url + type: string + spdx_license: + maxLength: 255 + minLength: 1 + title: Spdx license + type: string + type: object + PackageLicense: + properties: + license_notes: + maxLength: 1000 + nullable: true + title: License notes + type: string + license_override: + default: None + enum: + - None + - Ignored + - Purchased + nullable: true + title: License override + type: string + license_url: + format: uri + maxLength: 255 + nullable: true + title: License url + type: string + spdx_license: + maxLength: 255 + minLength: 1 + title: Spdx license + type: string + required: + - spdx_license + type: object Usage: example: percentage: percentage @@ -39824,7 +41338,387 @@ components: title: Verify SSL Certificates type: boolean type: object - ComposerUpstream: + ComposerUpstream: + example: + is_active: true + disable_reason: N/A + upstream_url: https://openapi-generator.tech + auth_secret: auth_secret + created_at: 2000-01-23T04:56:07.000+00:00 + auth_mode: None + extra_value_1: extra_value_1 + priority: 2624 + slug_perm: slug_perm + extra_value_2: extra_value_2 + extra_header_2: extra_header_2 + extra_header_1: extra_header_1 + mode: Proxy Only + updated_at: 2000-01-23T04:56:07.000+00:00 + verify_ssl: true + auth_username: auth_username + name: name + pending_validation: true + properties: + auth_mode: + default: None + description: 'The authentication mode to use when accessing this upstream. ' + enum: + - None + - Username and Password + title: Auth mode + type: string + auth_secret: + description: Secret to provide with requests to upstream. + maxLength: 4096 + nullable: true + title: Secret + type: string + auth_username: + description: Username to provide with requests to upstream. + maxLength: 64 + nullable: true + title: Username + type: string + created_at: + description: The datetime the upstream source was created. + format: date-time + readOnly: true + title: Created at + type: string + disable_reason: + default: N/A + enum: + - N/A + - Upstream points to its own repository + - Missing upstream source + - Upstream was disabled by request of user + readOnly: true + title: Disable reason + type: string + extra_header_1: + description: "The key for extra header #1 to send to upstream." + maxLength: 64 + nullable: true + pattern: "^[-\\w]+$" + title: "Header #1" + type: string + extra_header_2: + description: "The key for extra header #2 to send to upstream." + maxLength: 64 + nullable: true + pattern: "^[-\\w]+$" + title: "Header #2" + type: string + extra_value_1: + description: "The value for extra header #1 to send to upstream. This is\ + \ stored as plaintext, and is NOT encrypted." + maxLength: 128 + nullable: true + pattern: "^[^\\n\\r]+$" + title: "Value #1" + type: string + extra_value_2: + description: "The value for extra header #2 to send to upstream. This is\ + \ stored as plaintext, and is NOT encrypted." + maxLength: 128 + nullable: true + pattern: "^[^\\n\\r]+$" + title: "Value #2" + type: string + is_active: + description: Whether or not this upstream is active and ready for requests. + title: Is active + type: boolean + mode: + default: Proxy Only + description: "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." + enum: + - Proxy Only + - Cache and Proxy + title: Mode + type: string + name: + description: A descriptive name for this upstream source. A shortened version + of this name will be used for tagging cached packages retrieved from this + upstream. + maxLength: 64 + minLength: 1 + pattern: "^\\w[\\w \\-'\\.\\/()]+$" + title: Name + type: string + pending_validation: + description: "When true, this upstream source is pending validation." + readOnly: true + title: Pending validation + type: boolean + priority: + description: "Upstream sources are selected for resolving requests by sequential\ + \ order (1..n), followed by creation date." + maximum: 32767 + minimum: 1 + title: Priority + type: integer + slug_perm: + format: slug + minLength: 1 + pattern: "^[-a-zA-Z0-9_]+$" + readOnly: true + title: Slug perm + type: string + updated_at: + format: date-time + readOnly: true + title: Updated at + type: string + 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. ' + format: uri + maxLength: 200 + minLength: 1 + title: Upstream URL + type: string + verify_ssl: + description: "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." + title: Verify SSL Certificates + type: boolean + required: + - name + - upstream_url + type: object + ComposerUpstreamRequest: + example: + is_active: true + upstream_url: https://openapi-generator.tech + auth_secret: auth_secret + auth_mode: None + extra_value_1: extra_value_1 + priority: 2624 + extra_value_2: extra_value_2 + extra_header_2: extra_header_2 + extra_header_1: extra_header_1 + mode: Proxy Only + verify_ssl: true + auth_username: auth_username + name: name + properties: + auth_mode: + default: None + description: 'The authentication mode to use when accessing this upstream. ' + enum: + - None + - Username and Password + title: Auth mode + type: string + auth_secret: + description: Secret to provide with requests to upstream. + maxLength: 4096 + nullable: true + title: Secret + type: string + auth_username: + description: Username to provide with requests to upstream. + maxLength: 64 + nullable: true + title: Username + type: string + extra_header_1: + description: "The key for extra header #1 to send to upstream." + maxLength: 64 + nullable: true + pattern: "^[-\\w]+$" + title: "Header #1" + type: string + extra_header_2: + description: "The key for extra header #2 to send to upstream." + maxLength: 64 + nullable: true + pattern: "^[-\\w]+$" + title: "Header #2" + type: string + extra_value_1: + description: "The value for extra header #1 to send to upstream. This is\ + \ stored as plaintext, and is NOT encrypted." + maxLength: 128 + nullable: true + pattern: "^[^\\n\\r]+$" + title: "Value #1" + type: string + extra_value_2: + description: "The value for extra header #2 to send to upstream. This is\ + \ stored as plaintext, and is NOT encrypted." + maxLength: 128 + nullable: true + pattern: "^[^\\n\\r]+$" + title: "Value #2" + type: string + is_active: + description: Whether or not this upstream is active and ready for requests. + title: Is active + type: boolean + mode: + default: Proxy Only + description: "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." + enum: + - Proxy Only + - Cache and Proxy + title: Mode + type: string + name: + description: A descriptive name for this upstream source. A shortened version + of this name will be used for tagging cached packages retrieved from this + upstream. + maxLength: 64 + minLength: 1 + pattern: "^\\w[\\w \\-'\\.\\/()]+$" + title: Name + type: string + priority: + description: "Upstream sources are selected for resolving requests by sequential\ + \ order (1..n), followed by creation date." + maximum: 32767 + minimum: 1 + title: Priority + type: integer + 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. ' + format: uri + maxLength: 200 + minLength: 1 + title: Upstream URL + type: string + verify_ssl: + description: "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." + title: Verify SSL Certificates + type: boolean + required: + - name + - upstream_url + type: object + ComposerUpstreamRequestPatch: + example: + is_active: true + upstream_url: https://openapi-generator.tech + auth_secret: auth_secret + auth_mode: None + extra_value_1: extra_value_1 + priority: 2624 + extra_value_2: extra_value_2 + extra_header_2: extra_header_2 + extra_header_1: extra_header_1 + mode: Proxy Only + verify_ssl: true + auth_username: auth_username + name: name + properties: + auth_mode: + default: None + description: 'The authentication mode to use when accessing this upstream. ' + enum: + - None + - Username and Password + title: Auth mode + type: string + auth_secret: + description: Secret to provide with requests to upstream. + maxLength: 4096 + nullable: true + title: Secret + type: string + auth_username: + description: Username to provide with requests to upstream. + maxLength: 64 + nullable: true + title: Username + type: string + extra_header_1: + description: "The key for extra header #1 to send to upstream." + maxLength: 64 + nullable: true + pattern: "^[-\\w]+$" + title: "Header #1" + type: string + extra_header_2: + description: "The key for extra header #2 to send to upstream." + maxLength: 64 + nullable: true + pattern: "^[-\\w]+$" + title: "Header #2" + type: string + extra_value_1: + description: "The value for extra header #1 to send to upstream. This is\ + \ stored as plaintext, and is NOT encrypted." + maxLength: 128 + nullable: true + pattern: "^[^\\n\\r]+$" + title: "Value #1" + type: string + extra_value_2: + description: "The value for extra header #2 to send to upstream. This is\ + \ stored as plaintext, and is NOT encrypted." + maxLength: 128 + nullable: true + pattern: "^[^\\n\\r]+$" + title: "Value #2" + type: string + is_active: + description: Whether or not this upstream is active and ready for requests. + title: Is active + type: boolean + mode: + default: Proxy Only + description: "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." + enum: + - Proxy Only + - Cache and Proxy + title: Mode + type: string + name: + description: A descriptive name for this upstream source. A shortened version + of this name will be used for tagging cached packages retrieved from this + upstream. + maxLength: 64 + minLength: 1 + pattern: "^\\w[\\w \\-'\\.\\/()]+$" + title: Name + type: string + priority: + description: "Upstream sources are selected for resolving requests by sequential\ + \ order (1..n), followed by creation date." + maximum: 32767 + minimum: 1 + title: Priority + type: integer + 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. ' + format: uri + maxLength: 200 + minLength: 1 + title: Upstream URL + type: string + verify_ssl: + description: "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." + title: Verify SSL Certificates + type: boolean + type: object + CondaUpstream: example: is_active: true disable_reason: N/A @@ -39977,7 +41871,7 @@ components: - name - upstream_url type: object - ComposerUpstreamRequest: + CondaUpstreamRequest: example: is_active: true upstream_url: https://openapi-generator.tech @@ -40092,7 +41986,7 @@ components: - name - upstream_url type: object - ComposerUpstreamRequestPatch: + CondaUpstreamRequestPatch: example: is_active: true upstream_url: https://openapi-generator.tech @@ -40737,21 +42631,485 @@ components: - name - upstream_url type: object - DartUpstreamRequest: + DartUpstreamRequest: + example: + is_active: true + upstream_url: https://openapi-generator.tech + auth_secret: auth_secret + auth_mode: None + extra_value_1: extra_value_1 + priority: 2624 + extra_value_2: extra_value_2 + extra_header_2: extra_header_2 + extra_header_1: extra_header_1 + mode: Proxy Only + verify_ssl: true + auth_username: auth_username + name: name + properties: + auth_mode: + default: None + description: 'The authentication mode to use when accessing this upstream. ' + enum: + - None + - Username and Password + title: Auth mode + type: string + auth_secret: + description: Secret to provide with requests to upstream. + maxLength: 4096 + nullable: true + title: Secret + type: string + auth_username: + description: Username to provide with requests to upstream. + maxLength: 64 + nullable: true + title: Username + type: string + extra_header_1: + description: "The key for extra header #1 to send to upstream." + maxLength: 64 + nullable: true + pattern: "^[-\\w]+$" + title: "Header #1" + type: string + extra_header_2: + description: "The key for extra header #2 to send to upstream." + maxLength: 64 + nullable: true + pattern: "^[-\\w]+$" + title: "Header #2" + type: string + extra_value_1: + description: "The value for extra header #1 to send to upstream. This is\ + \ stored as plaintext, and is NOT encrypted." + maxLength: 128 + nullable: true + pattern: "^[^\\n\\r]+$" + title: "Value #1" + type: string + extra_value_2: + description: "The value for extra header #2 to send to upstream. This is\ + \ stored as plaintext, and is NOT encrypted." + maxLength: 128 + nullable: true + pattern: "^[^\\n\\r]+$" + title: "Value #2" + type: string + is_active: + description: Whether or not this upstream is active and ready for requests. + title: Is active + type: boolean + mode: + default: Proxy Only + description: "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." + enum: + - Proxy Only + - Cache and Proxy + title: Mode + type: string + name: + description: A descriptive name for this upstream source. A shortened version + of this name will be used for tagging cached packages retrieved from this + upstream. + maxLength: 64 + minLength: 1 + pattern: "^\\w[\\w \\-'\\.\\/()]+$" + title: Name + type: string + priority: + description: "Upstream sources are selected for resolving requests by sequential\ + \ order (1..n), followed by creation date." + maximum: 32767 + minimum: 1 + title: Priority + type: integer + 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. ' + format: uri + maxLength: 200 + minLength: 1 + title: Upstream URL + type: string + verify_ssl: + description: "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." + title: Verify SSL Certificates + type: boolean + required: + - name + - upstream_url + type: object + DartUpstreamRequestPatch: + example: + is_active: true + upstream_url: https://openapi-generator.tech + auth_secret: auth_secret + auth_mode: None + extra_value_1: extra_value_1 + priority: 2624 + extra_value_2: extra_value_2 + extra_header_2: extra_header_2 + extra_header_1: extra_header_1 + mode: Proxy Only + verify_ssl: true + auth_username: auth_username + name: name + properties: + auth_mode: + default: None + description: 'The authentication mode to use when accessing this upstream. ' + enum: + - None + - Username and Password + title: Auth mode + type: string + auth_secret: + description: Secret to provide with requests to upstream. + maxLength: 4096 + nullable: true + title: Secret + type: string + auth_username: + description: Username to provide with requests to upstream. + maxLength: 64 + nullable: true + title: Username + type: string + extra_header_1: + description: "The key for extra header #1 to send to upstream." + maxLength: 64 + nullable: true + pattern: "^[-\\w]+$" + title: "Header #1" + type: string + extra_header_2: + description: "The key for extra header #2 to send to upstream." + maxLength: 64 + nullable: true + pattern: "^[-\\w]+$" + title: "Header #2" + type: string + extra_value_1: + description: "The value for extra header #1 to send to upstream. This is\ + \ stored as plaintext, and is NOT encrypted." + maxLength: 128 + nullable: true + pattern: "^[^\\n\\r]+$" + title: "Value #1" + type: string + extra_value_2: + description: "The value for extra header #2 to send to upstream. This is\ + \ stored as plaintext, and is NOT encrypted." + maxLength: 128 + nullable: true + pattern: "^[^\\n\\r]+$" + title: "Value #2" + type: string + is_active: + description: Whether or not this upstream is active and ready for requests. + title: Is active + type: boolean + mode: + default: Proxy Only + description: "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." + enum: + - Proxy Only + - Cache and Proxy + title: Mode + type: string + name: + description: A descriptive name for this upstream source. A shortened version + of this name will be used for tagging cached packages retrieved from this + upstream. + maxLength: 64 + minLength: 1 + pattern: "^\\w[\\w \\-'\\.\\/()]+$" + title: Name + type: string + priority: + description: "Upstream sources are selected for resolving requests by sequential\ + \ order (1..n), followed by creation date." + maximum: 32767 + minimum: 1 + title: Priority + type: integer + 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. ' + format: uri + maxLength: 200 + minLength: 1 + title: Upstream URL + type: string + verify_ssl: + description: "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." + title: Verify SSL Certificates + type: boolean + type: object + DebUpstream: + example: + gpg_key_url: https://openapi-generator.tech + upstream_url: https://openapi-generator.tech + auth_secret: auth_secret + created_at: 2000-01-23T04:56:07.000+00:00 + auth_mode: None + include_sources: true + gpg_verification: Allow All + verification_status: Unknown + extra_header_2: extra_header_2 + extra_header_1: extra_header_1 + mode: Proxy Only + updated_at: 2000-01-23T04:56:07.000+00:00 + auth_username: auth_username + gpg_key_inline: gpg_key_inline + pending_validation: true + is_active: true + disable_reason: N/A + extra_value_1: extra_value_1 + priority: 2624 + slug_perm: slug_perm + extra_value_2: extra_value_2 + upstream_distribution: upstream_distribution + component: component + verify_ssl: true + name: name + distro_versions: + - distro_versions + - distro_versions + properties: + auth_mode: + default: None + description: 'The authentication mode to use when accessing this upstream. ' + enum: + - None + - Username and Password + title: Auth mode + type: string + auth_secret: + description: Secret to provide with requests to upstream. + maxLength: 4096 + nullable: true + title: Secret + type: string + auth_username: + description: Username to provide with requests to upstream. + maxLength: 64 + nullable: true + title: Username + type: string + component: + description: The component to fetch from the upstream + maxLength: 64 + minLength: 1 + title: Component + type: string + created_at: + description: The datetime the upstream source was created. + format: date-time + readOnly: true + title: Created at + type: string + disable_reason: + default: N/A + enum: + - N/A + - Upstream points to its own repository + - Missing upstream source + - Upstream was disabled by request of user + readOnly: true + title: Disable reason + type: string + distro_versions: + description: The distribution version that packages found on this upstream + could be associated with. + items: + description: The distribution version that packages found on this upstream + could be associated with. + type: string + type: array + uniqueItems: true + extra_header_1: + description: "The key for extra header #1 to send to upstream." + maxLength: 64 + nullable: true + pattern: "^[-\\w]+$" + title: "Header #1" + type: string + extra_header_2: + description: "The key for extra header #2 to send to upstream." + maxLength: 64 + nullable: true + pattern: "^[-\\w]+$" + title: "Header #2" + type: string + extra_value_1: + description: "The value for extra header #1 to send to upstream. This is\ + \ stored as plaintext, and is NOT encrypted." + maxLength: 128 + nullable: true + pattern: "^[^\\n\\r]+$" + title: "Value #1" + type: string + extra_value_2: + description: "The value for extra header #2 to send to upstream. This is\ + \ stored as plaintext, and is NOT encrypted." + maxLength: 128 + nullable: true + pattern: "^[^\\n\\r]+$" + title: "Value #2" + type: string + gpg_key_inline: + description: "A public GPG key to associate with packages found on this\ + \ upstream. When using the Cloudsmith setup script, this GPG key will\ + \ be automatically imported on your deployment machines to allow upstream\ + \ packages to validate and install." + nullable: true + title: GPG Key + type: string + gpg_key_url: + description: "When provided, Cloudsmith will fetch, validate, and associate\ + \ a public GPG key found at the provided URL. When using the Cloudsmith\ + \ setup script, this GPG key will be automatically imported on your deployment\ + \ machines to allow upstream packages to validate and install." + format: uri + maxLength: 254 + nullable: true + title: GPG Key URL + type: string + gpg_verification: + default: Allow All + description: The GPG signature verification mode for this upstream. + enum: + - Allow All + - Warn on Invalid + - Reject Invalid + title: Gpg verification + type: string + include_sources: + description: "When true, source packages will be available from this upstream." + title: Source Packages + type: boolean + is_active: + description: Whether or not this upstream is active and ready for requests. + title: Is active + type: boolean + mode: + default: Proxy Only + description: "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." + enum: + - Proxy Only + - Cache and Proxy + title: Mode + type: string + name: + description: A descriptive name for this upstream source. A shortened version + of this name will be used for tagging cached packages retrieved from this + upstream. + maxLength: 64 + minLength: 1 + pattern: "^\\w[\\w \\-'\\.\\/()]+$" + title: Name + type: string + pending_validation: + description: "When true, this upstream source is pending validation." + readOnly: true + title: Pending validation + type: boolean + priority: + description: "Upstream sources are selected for resolving requests by sequential\ + \ order (1..n), followed by creation date." + maximum: 32767 + minimum: 1 + title: Priority + type: integer + slug_perm: + format: slug + minLength: 1 + pattern: "^[-a-zA-Z0-9_]+$" + readOnly: true + title: Slug perm + type: string + updated_at: + format: date-time + readOnly: true + title: Updated at + type: string + upstream_distribution: + description: The distribution to fetch from the upstream + maxLength: 64 + minLength: 1 + nullable: true + title: Upstream distribution + 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. ' + format: uri + maxLength: 200 + minLength: 1 + title: Upstream URL + type: string + verification_status: + default: Unknown + description: The signature verification status for this upstream. + enum: + - Unknown + - Invalid + - Valid + - Invalid (No Key) + readOnly: true + title: Verification status + type: string + verify_ssl: + description: "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." + title: Verify SSL Certificates + type: boolean + required: + - distro_versions + - name + - upstream_url + type: object + DebUpstreamRequest: example: is_active: true + gpg_key_url: https://openapi-generator.tech upstream_url: https://openapi-generator.tech auth_secret: auth_secret auth_mode: None + include_sources: true extra_value_1: extra_value_1 + gpg_verification: Allow All priority: 2624 extra_value_2: extra_value_2 + upstream_distribution: upstream_distribution extra_header_2: extra_header_2 extra_header_1: extra_header_1 mode: Proxy Only + component: component verify_ssl: true auth_username: auth_username name: name + distro_versions: + - distro_versions + - distro_versions + gpg_key_inline: gpg_key_inline properties: auth_mode: default: None @@ -40773,6 +43131,21 @@ components: nullable: true title: Username type: string + component: + description: The component to fetch from the upstream + maxLength: 64 + minLength: 1 + title: Component + type: string + distro_versions: + description: The distribution version that packages found on this upstream + could be associated with. + items: + description: The distribution version that packages found on this upstream + could be associated with. + type: string + type: array + uniqueItems: true extra_header_1: description: "The key for extra header #1 to send to upstream." maxLength: 64 @@ -40803,6 +43176,37 @@ components: pattern: "^[^\\n\\r]+$" title: "Value #2" type: string + gpg_key_inline: + description: "A public GPG key to associate with packages found on this\ + \ upstream. When using the Cloudsmith setup script, this GPG key will\ + \ be automatically imported on your deployment machines to allow upstream\ + \ packages to validate and install." + nullable: true + title: GPG Key + type: string + gpg_key_url: + description: "When provided, Cloudsmith will fetch, validate, and associate\ + \ a public GPG key found at the provided URL. When using the Cloudsmith\ + \ setup script, this GPG key will be automatically imported on your deployment\ + \ machines to allow upstream packages to validate and install." + format: uri + maxLength: 254 + nullable: true + title: GPG Key URL + type: string + gpg_verification: + default: Allow All + description: The GPG signature verification mode for this upstream. + enum: + - Allow All + - Warn on Invalid + - Reject Invalid + title: Gpg verification + type: string + include_sources: + description: "When true, source packages will be available from this upstream." + title: Source Packages + type: boolean is_active: description: Whether or not this upstream is active and ready for requests. title: Is active @@ -40833,6 +43237,13 @@ components: minimum: 1 title: Priority type: integer + upstream_distribution: + description: The distribution to fetch from the upstream + maxLength: 64 + minLength: 1 + nullable: true + title: Upstream distribution + 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. ' @@ -40849,24 +43260,34 @@ components: title: Verify SSL Certificates type: boolean required: + - distro_versions - name - upstream_url type: object - DartUpstreamRequestPatch: + DebUpstreamRequestPatch: example: is_active: true + gpg_key_url: https://openapi-generator.tech upstream_url: https://openapi-generator.tech auth_secret: auth_secret auth_mode: None + include_sources: true extra_value_1: extra_value_1 + gpg_verification: Allow All priority: 2624 extra_value_2: extra_value_2 + upstream_distribution: upstream_distribution extra_header_2: extra_header_2 extra_header_1: extra_header_1 mode: Proxy Only + component: component verify_ssl: true auth_username: auth_username name: name + distro_versions: + - distro_versions + - distro_versions + gpg_key_inline: gpg_key_inline properties: auth_mode: default: None @@ -40888,6 +43309,21 @@ components: nullable: true title: Username type: string + component: + description: The component to fetch from the upstream + maxLength: 64 + minLength: 1 + title: Component + type: string + distro_versions: + description: The distribution version that packages found on this upstream + could be associated with. + items: + description: The distribution version that packages found on this upstream + could be associated with. + type: string + type: array + uniqueItems: true extra_header_1: description: "The key for extra header #1 to send to upstream." maxLength: 64 @@ -40918,6 +43354,37 @@ components: pattern: "^[^\\n\\r]+$" title: "Value #2" type: string + gpg_key_inline: + description: "A public GPG key to associate with packages found on this\ + \ upstream. When using the Cloudsmith setup script, this GPG key will\ + \ be automatically imported on your deployment machines to allow upstream\ + \ packages to validate and install." + nullable: true + title: GPG Key + type: string + gpg_key_url: + description: "When provided, Cloudsmith will fetch, validate, and associate\ + \ a public GPG key found at the provided URL. When using the Cloudsmith\ + \ setup script, this GPG key will be automatically imported on your deployment\ + \ machines to allow upstream packages to validate and install." + format: uri + maxLength: 254 + nullable: true + title: GPG Key URL + type: string + gpg_verification: + default: Allow All + description: The GPG signature verification mode for this upstream. + enum: + - Allow All + - Warn on Invalid + - Reject Invalid + title: Gpg verification + type: string + include_sources: + description: "When true, source packages will be available from this upstream." + title: Source Packages + type: boolean is_active: description: Whether or not this upstream is active and ready for requests. title: Is active @@ -40948,6 +43415,13 @@ components: minimum: 1 title: Priority type: integer + upstream_distribution: + description: The distribution to fetch from the upstream + maxLength: 64 + minLength: 1 + nullable: true + title: Upstream distribution + 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. ' @@ -40964,36 +43438,26 @@ components: title: Verify SSL Certificates type: boolean type: object - DebUpstream: + DockerUpstream: example: - gpg_key_url: https://openapi-generator.tech + is_active: true + disable_reason: N/A upstream_url: https://openapi-generator.tech auth_secret: auth_secret created_at: 2000-01-23T04:56:07.000+00:00 auth_mode: None - include_sources: true - gpg_verification: Allow All - verification_status: Unknown - extra_header_2: extra_header_2 - extra_header_1: extra_header_1 - mode: Proxy Only - updated_at: 2000-01-23T04:56:07.000+00:00 - auth_username: auth_username - gpg_key_inline: gpg_key_inline - pending_validation: true - is_active: true - disable_reason: N/A extra_value_1: extra_value_1 priority: 2624 slug_perm: slug_perm extra_value_2: extra_value_2 - upstream_distribution: upstream_distribution - component: component + extra_header_2: extra_header_2 + extra_header_1: extra_header_1 + mode: Proxy Only + updated_at: 2000-01-23T04:56:07.000+00:00 verify_ssl: true + auth_username: auth_username name: name - distro_versions: - - distro_versions - - distro_versions + pending_validation: true properties: auth_mode: default: None @@ -41001,6 +43465,7 @@ components: enum: - None - Username and Password + - Certificate and Key title: Auth mode type: string auth_secret: @@ -41015,12 +43480,6 @@ components: nullable: true title: Username type: string - component: - description: The component to fetch from the upstream - maxLength: 64 - minLength: 1 - title: Component - type: string created_at: description: The datetime the upstream source was created. format: date-time @@ -41037,15 +43496,6 @@ components: readOnly: true title: Disable reason type: string - distro_versions: - description: The distribution version that packages found on this upstream - could be associated with. - items: - description: The distribution version that packages found on this upstream - could be associated with. - type: string - type: array - uniqueItems: true extra_header_1: description: "The key for extra header #1 to send to upstream." maxLength: 64 @@ -41076,37 +43526,6 @@ components: pattern: "^[^\\n\\r]+$" title: "Value #2" type: string - gpg_key_inline: - description: "A public GPG key to associate with packages found on this\ - \ upstream. When using the Cloudsmith setup script, this GPG key will\ - \ be automatically imported on your deployment machines to allow upstream\ - \ packages to validate and install." - nullable: true - title: GPG Key - type: string - gpg_key_url: - description: "When provided, Cloudsmith will fetch, validate, and associate\ - \ a public GPG key found at the provided URL. When using the Cloudsmith\ - \ setup script, this GPG key will be automatically imported on your deployment\ - \ machines to allow upstream packages to validate and install." - format: uri - maxLength: 254 - nullable: true - title: GPG Key URL - type: string - gpg_verification: - default: Allow All - description: The GPG signature verification mode for this upstream. - enum: - - Allow All - - Warn on Invalid - - Reject Invalid - title: Gpg verification - type: string - include_sources: - description: "When true, source packages will be available from this upstream." - title: Source Packages - type: boolean is_active: description: Whether or not this upstream is active and ready for requests. title: Is active @@ -41154,13 +43573,6 @@ components: readOnly: true title: Updated at type: string - upstream_distribution: - description: The distribution to fetch from the upstream - maxLength: 64 - minLength: 1 - nullable: true - title: Upstream distribution - 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. ' @@ -41169,17 +43581,6 @@ components: minLength: 1 title: Upstream URL type: string - verification_status: - default: Unknown - description: The signature verification status for this upstream. - enum: - - Unknown - - Invalid - - Valid - - Invalid (No Key) - readOnly: true - title: Verification status - type: string verify_ssl: description: "If enabled, SSL certificates are verified when requests are\ \ made to this upstream. It's recommended to leave this enabled for all\ @@ -41188,41 +43589,46 @@ components: title: Verify SSL Certificates type: boolean required: - - distro_versions - name - upstream_url type: object - DebUpstreamRequest: + DockerUpstreamRequest: example: + auth_certificate_key: auth_certificate_key is_active: true - gpg_key_url: https://openapi-generator.tech upstream_url: https://openapi-generator.tech auth_secret: auth_secret auth_mode: None - include_sources: true extra_value_1: extra_value_1 - gpg_verification: Allow All priority: 2624 extra_value_2: extra_value_2 - upstream_distribution: upstream_distribution extra_header_2: extra_header_2 extra_header_1: extra_header_1 mode: Proxy Only - component: component + auth_certificate: auth_certificate verify_ssl: true auth_username: auth_username name: name - distro_versions: - - distro_versions - - distro_versions - gpg_key_inline: gpg_key_inline properties: + auth_certificate: + description: X.509 Certificate to use for mTLS authentication against the + upstream + minLength: 1 + title: Auth certificate + type: string + auth_certificate_key: + description: Certificate key to use for mTLS authentication against the + upstream + minLength: 1 + title: Auth certificate key + type: string auth_mode: default: None description: 'The authentication mode to use when accessing this upstream. ' enum: - None - Username and Password + - Certificate and Key title: Auth mode type: string auth_secret: @@ -41237,21 +43643,6 @@ components: nullable: true title: Username type: string - component: - description: The component to fetch from the upstream - maxLength: 64 - minLength: 1 - title: Component - type: string - distro_versions: - description: The distribution version that packages found on this upstream - could be associated with. - items: - description: The distribution version that packages found on this upstream - could be associated with. - type: string - type: array - uniqueItems: true extra_header_1: description: "The key for extra header #1 to send to upstream." maxLength: 64 @@ -41282,37 +43673,6 @@ components: pattern: "^[^\\n\\r]+$" title: "Value #2" type: string - gpg_key_inline: - description: "A public GPG key to associate with packages found on this\ - \ upstream. When using the Cloudsmith setup script, this GPG key will\ - \ be automatically imported on your deployment machines to allow upstream\ - \ packages to validate and install." - nullable: true - title: GPG Key - type: string - gpg_key_url: - description: "When provided, Cloudsmith will fetch, validate, and associate\ - \ a public GPG key found at the provided URL. When using the Cloudsmith\ - \ setup script, this GPG key will be automatically imported on your deployment\ - \ machines to allow upstream packages to validate and install." - format: uri - maxLength: 254 - nullable: true - title: GPG Key URL - type: string - gpg_verification: - default: Allow All - description: The GPG signature verification mode for this upstream. - enum: - - Allow All - - Warn on Invalid - - Reject Invalid - title: Gpg verification - type: string - include_sources: - description: "When true, source packages will be available from this upstream." - title: Source Packages - type: boolean is_active: description: Whether or not this upstream is active and ready for requests. title: Is active @@ -41343,13 +43703,6 @@ components: minimum: 1 title: Priority type: integer - upstream_distribution: - description: The distribution to fetch from the upstream - maxLength: 64 - minLength: 1 - nullable: true - title: Upstream distribution - 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. ' @@ -41366,41 +43719,46 @@ components: title: Verify SSL Certificates type: boolean required: - - distro_versions - name - upstream_url type: object - DebUpstreamRequestPatch: + DockerUpstreamRequestPatch: example: + auth_certificate_key: auth_certificate_key is_active: true - gpg_key_url: https://openapi-generator.tech upstream_url: https://openapi-generator.tech auth_secret: auth_secret auth_mode: None - include_sources: true extra_value_1: extra_value_1 - gpg_verification: Allow All priority: 2624 extra_value_2: extra_value_2 - upstream_distribution: upstream_distribution extra_header_2: extra_header_2 extra_header_1: extra_header_1 mode: Proxy Only - component: component + auth_certificate: auth_certificate verify_ssl: true auth_username: auth_username name: name - distro_versions: - - distro_versions - - distro_versions - gpg_key_inline: gpg_key_inline properties: + auth_certificate: + description: X.509 Certificate to use for mTLS authentication against the + upstream + minLength: 1 + title: Auth certificate + type: string + auth_certificate_key: + description: Certificate key to use for mTLS authentication against the + upstream + minLength: 1 + title: Auth certificate key + type: string auth_mode: default: None description: 'The authentication mode to use when accessing this upstream. ' enum: - None - Username and Password + - Certificate and Key title: Auth mode type: string auth_secret: @@ -41415,21 +43773,6 @@ components: nullable: true title: Username type: string - component: - description: The component to fetch from the upstream - maxLength: 64 - minLength: 1 - title: Component - type: string - distro_versions: - description: The distribution version that packages found on this upstream - could be associated with. - items: - description: The distribution version that packages found on this upstream - could be associated with. - type: string - type: array - uniqueItems: true extra_header_1: description: "The key for extra header #1 to send to upstream." maxLength: 64 @@ -41460,37 +43803,6 @@ components: pattern: "^[^\\n\\r]+$" title: "Value #2" type: string - gpg_key_inline: - description: "A public GPG key to associate with packages found on this\ - \ upstream. When using the Cloudsmith setup script, this GPG key will\ - \ be automatically imported on your deployment machines to allow upstream\ - \ packages to validate and install." - nullable: true - title: GPG Key - type: string - gpg_key_url: - description: "When provided, Cloudsmith will fetch, validate, and associate\ - \ a public GPG key found at the provided URL. When using the Cloudsmith\ - \ setup script, this GPG key will be automatically imported on your deployment\ - \ machines to allow upstream packages to validate and install." - format: uri - maxLength: 254 - nullable: true - title: GPG Key URL - type: string - gpg_verification: - default: Allow All - description: The GPG signature verification mode for this upstream. - enum: - - Allow All - - Warn on Invalid - - Reject Invalid - title: Gpg verification - type: string - include_sources: - description: "When true, source packages will be available from this upstream." - title: Source Packages - type: boolean is_active: description: Whether or not this upstream is active and ready for requests. title: Is active @@ -41521,13 +43833,6 @@ components: minimum: 1 title: Priority type: integer - upstream_distribution: - description: The distribution to fetch from the upstream - maxLength: 64 - minLength: 1 - nullable: true - title: Upstream distribution - 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. ' @@ -41544,7 +43849,7 @@ components: title: Verify SSL Certificates type: boolean type: object - DockerUpstream: + GoUpstream: example: is_active: true disable_reason: N/A @@ -41571,7 +43876,6 @@ components: enum: - None - Username and Password - - Certificate and Key title: Auth mode type: string auth_secret: @@ -41698,9 +44002,8 @@ components: - name - upstream_url type: object - DockerUpstreamRequest: + GoUpstreamRequest: example: - auth_certificate_key: auth_certificate_key is_active: true upstream_url: https://openapi-generator.tech auth_secret: auth_secret @@ -41711,30 +44014,16 @@ components: extra_header_2: extra_header_2 extra_header_1: extra_header_1 mode: Proxy Only - auth_certificate: auth_certificate verify_ssl: true auth_username: auth_username name: name properties: - auth_certificate: - description: X.509 Certificate to use for mTLS authentication against the - upstream - minLength: 1 - title: Auth certificate - type: string - auth_certificate_key: - description: Certificate key to use for mTLS authentication against the - upstream - minLength: 1 - title: Auth certificate key - type: string auth_mode: default: None description: 'The authentication mode to use when accessing this upstream. ' enum: - None - Username and Password - - Certificate and Key title: Auth mode type: string auth_secret: @@ -41828,9 +44117,8 @@ components: - name - upstream_url type: object - DockerUpstreamRequestPatch: + GoUpstreamRequestPatch: example: - auth_certificate_key: auth_certificate_key is_active: true upstream_url: https://openapi-generator.tech auth_secret: auth_secret @@ -41841,30 +44129,16 @@ components: extra_header_2: extra_header_2 extra_header_1: extra_header_1 mode: Proxy Only - auth_certificate: auth_certificate verify_ssl: true auth_username: auth_username name: name properties: - auth_certificate: - description: X.509 Certificate to use for mTLS authentication against the - upstream - minLength: 1 - title: Auth certificate - type: string - auth_certificate_key: - description: Certificate key to use for mTLS authentication against the - upstream - minLength: 1 - title: Auth certificate key - type: string auth_mode: default: None description: 'The authentication mode to use when accessing this upstream. ' enum: - None - Username and Password - - Certificate and Key title: Auth mode type: string auth_secret: @@ -41955,7 +44229,7 @@ components: title: Verify SSL Certificates type: boolean type: object - GoUpstream: + HelmUpstream: example: is_active: true disable_reason: N/A @@ -42065,138 +44339,11 @@ components: pattern: "^\\w[\\w \\-'\\.\\/()]+$" title: Name type: string - pending_validation: - description: "When true, this upstream source is pending validation." - readOnly: true - title: Pending validation - type: boolean - priority: - description: "Upstream sources are selected for resolving requests by sequential\ - \ order (1..n), followed by creation date." - maximum: 32767 - minimum: 1 - title: Priority - type: integer - slug_perm: - format: slug - minLength: 1 - pattern: "^[-a-zA-Z0-9_]+$" - readOnly: true - title: Slug perm - type: string - updated_at: - format: date-time - readOnly: true - title: Updated at - type: string - 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. ' - format: uri - maxLength: 200 - minLength: 1 - title: Upstream URL - type: string - verify_ssl: - description: "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." - title: Verify SSL Certificates - type: boolean - required: - - name - - upstream_url - type: object - GoUpstreamRequest: - example: - is_active: true - upstream_url: https://openapi-generator.tech - auth_secret: auth_secret - auth_mode: None - extra_value_1: extra_value_1 - priority: 2624 - extra_value_2: extra_value_2 - extra_header_2: extra_header_2 - extra_header_1: extra_header_1 - mode: Proxy Only - verify_ssl: true - auth_username: auth_username - name: name - properties: - auth_mode: - default: None - description: 'The authentication mode to use when accessing this upstream. ' - enum: - - None - - Username and Password - title: Auth mode - type: string - auth_secret: - description: Secret to provide with requests to upstream. - maxLength: 4096 - nullable: true - title: Secret - type: string - auth_username: - description: Username to provide with requests to upstream. - maxLength: 64 - nullable: true - title: Username - type: string - extra_header_1: - description: "The key for extra header #1 to send to upstream." - maxLength: 64 - nullable: true - pattern: "^[-\\w]+$" - title: "Header #1" - type: string - extra_header_2: - description: "The key for extra header #2 to send to upstream." - maxLength: 64 - nullable: true - pattern: "^[-\\w]+$" - title: "Header #2" - type: string - extra_value_1: - description: "The value for extra header #1 to send to upstream. This is\ - \ stored as plaintext, and is NOT encrypted." - maxLength: 128 - nullable: true - pattern: "^[^\\n\\r]+$" - title: "Value #1" - type: string - extra_value_2: - description: "The value for extra header #2 to send to upstream. This is\ - \ stored as plaintext, and is NOT encrypted." - maxLength: 128 - nullable: true - pattern: "^[^\\n\\r]+$" - title: "Value #2" - type: string - is_active: - description: Whether or not this upstream is active and ready for requests. - title: Is active - type: boolean - mode: - default: Proxy Only - description: "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." - enum: - - Proxy Only - - Cache and Proxy - title: Mode - type: string - name: - description: A descriptive name for this upstream source. A shortened version - of this name will be used for tagging cached packages retrieved from this - upstream. - maxLength: 64 - minLength: 1 - pattern: "^\\w[\\w \\-'\\.\\/()]+$" - title: Name - type: string + pending_validation: + description: "When true, this upstream source is pending validation." + readOnly: true + title: Pending validation + type: boolean priority: description: "Upstream sources are selected for resolving requests by sequential\ \ order (1..n), followed by creation date." @@ -42204,121 +44351,18 @@ components: minimum: 1 title: Priority type: integer - 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. ' - format: uri - maxLength: 200 + slug_perm: + format: slug minLength: 1 - title: Upstream URL - type: string - verify_ssl: - description: "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." - title: Verify SSL Certificates - type: boolean - required: - - name - - upstream_url - type: object - GoUpstreamRequestPatch: - example: - is_active: true - upstream_url: https://openapi-generator.tech - auth_secret: auth_secret - auth_mode: None - extra_value_1: extra_value_1 - priority: 2624 - extra_value_2: extra_value_2 - extra_header_2: extra_header_2 - extra_header_1: extra_header_1 - mode: Proxy Only - verify_ssl: true - auth_username: auth_username - name: name - properties: - auth_mode: - default: None - description: 'The authentication mode to use when accessing this upstream. ' - enum: - - None - - Username and Password - title: Auth mode - type: string - auth_secret: - description: Secret to provide with requests to upstream. - maxLength: 4096 - nullable: true - title: Secret - type: string - auth_username: - description: Username to provide with requests to upstream. - maxLength: 64 - nullable: true - title: Username - type: string - extra_header_1: - description: "The key for extra header #1 to send to upstream." - maxLength: 64 - nullable: true - pattern: "^[-\\w]+$" - title: "Header #1" - type: string - extra_header_2: - description: "The key for extra header #2 to send to upstream." - maxLength: 64 - nullable: true - pattern: "^[-\\w]+$" - title: "Header #2" - type: string - extra_value_1: - description: "The value for extra header #1 to send to upstream. This is\ - \ stored as plaintext, and is NOT encrypted." - maxLength: 128 - nullable: true - pattern: "^[^\\n\\r]+$" - title: "Value #1" - type: string - extra_value_2: - description: "The value for extra header #2 to send to upstream. This is\ - \ stored as plaintext, and is NOT encrypted." - maxLength: 128 - nullable: true - pattern: "^[^\\n\\r]+$" - title: "Value #2" - type: string - is_active: - description: Whether or not this upstream is active and ready for requests. - title: Is active - type: boolean - mode: - default: Proxy Only - description: "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." - enum: - - Proxy Only - - Cache and Proxy - title: Mode + pattern: "^[-a-zA-Z0-9_]+$" + readOnly: true + title: Slug perm type: string - name: - description: A descriptive name for this upstream source. A shortened version - of this name will be used for tagging cached packages retrieved from this - upstream. - maxLength: 64 - minLength: 1 - pattern: "^\\w[\\w \\-'\\.\\/()]+$" - title: Name + updated_at: + format: date-time + readOnly: true + title: Updated at type: string - priority: - description: "Upstream sources are selected for resolving requests by sequential\ - \ order (1..n), followed by creation date." - maximum: 32767 - minimum: 1 - title: Priority - type: integer 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. ' @@ -42334,27 +44378,25 @@ components: \ note this only applies to HTTPS upstreams." title: Verify SSL Certificates type: boolean + required: + - name + - upstream_url type: object - HelmUpstream: + HelmUpstreamRequest: example: is_active: true - disable_reason: N/A upstream_url: https://openapi-generator.tech auth_secret: auth_secret - created_at: 2000-01-23T04:56:07.000+00:00 auth_mode: None extra_value_1: extra_value_1 priority: 2624 - slug_perm: slug_perm extra_value_2: extra_value_2 extra_header_2: extra_header_2 extra_header_1: extra_header_1 mode: Proxy Only - updated_at: 2000-01-23T04:56:07.000+00:00 verify_ssl: true auth_username: auth_username name: name - pending_validation: true properties: auth_mode: default: None @@ -42376,22 +44418,6 @@ components: nullable: true title: Username type: string - created_at: - description: The datetime the upstream source was created. - format: date-time - readOnly: true - title: Created at - type: string - disable_reason: - default: N/A - enum: - - N/A - - Upstream points to its own repository - - Missing upstream source - - Upstream was disabled by request of user - readOnly: true - title: Disable reason - type: string extra_header_1: description: "The key for extra header #1 to send to upstream." maxLength: 64 @@ -42445,11 +44471,6 @@ components: pattern: "^\\w[\\w \\-'\\.\\/()]+$" title: Name type: string - pending_validation: - description: "When true, this upstream source is pending validation." - readOnly: true - title: Pending validation - type: boolean priority: description: "Upstream sources are selected for resolving requests by sequential\ \ order (1..n), followed by creation date." @@ -42457,18 +44478,6 @@ components: minimum: 1 title: Priority type: integer - slug_perm: - format: slug - minLength: 1 - pattern: "^[-a-zA-Z0-9_]+$" - readOnly: true - title: Slug perm - type: string - updated_at: - format: date-time - readOnly: true - title: Updated at - type: string 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. ' @@ -42488,7 +44497,7 @@ components: - name - upstream_url type: object - HelmUpstreamRequest: + HelmUpstreamRequestPatch: example: is_active: true upstream_url: https://openapi-generator.tech @@ -42599,25 +44608,27 @@ components: \ note this only applies to HTTPS upstreams." title: Verify SSL Certificates type: boolean - required: - - name - - upstream_url type: object - HelmUpstreamRequestPatch: + HexUpstream: example: is_active: true + disable_reason: N/A upstream_url: https://openapi-generator.tech auth_secret: auth_secret + created_at: 2000-01-23T04:56:07.000+00:00 auth_mode: None extra_value_1: extra_value_1 priority: 2624 + slug_perm: slug_perm extra_value_2: extra_value_2 extra_header_2: extra_header_2 extra_header_1: extra_header_1 mode: Proxy Only + updated_at: 2000-01-23T04:56:07.000+00:00 verify_ssl: true auth_username: auth_username name: name + pending_validation: true properties: auth_mode: default: None @@ -42639,6 +44650,22 @@ components: nullable: true title: Username type: string + created_at: + description: The datetime the upstream source was created. + format: date-time + readOnly: true + title: Created at + type: string + disable_reason: + default: N/A + enum: + - N/A + - Upstream points to its own repository + - Missing upstream source + - Upstream was disabled by request of user + readOnly: true + title: Disable reason + type: string extra_header_1: description: "The key for extra header #1 to send to upstream." maxLength: 64 @@ -42692,6 +44719,11 @@ components: pattern: "^\\w[\\w \\-'\\.\\/()]+$" title: Name type: string + pending_validation: + description: "When true, this upstream source is pending validation." + readOnly: true + title: Pending validation + type: boolean priority: description: "Upstream sources are selected for resolving requests by sequential\ \ order (1..n), followed by creation date." @@ -42699,6 +44731,18 @@ components: minimum: 1 title: Priority type: integer + slug_perm: + format: slug + minLength: 1 + pattern: "^[-a-zA-Z0-9_]+$" + readOnly: true + title: Slug perm + type: string + updated_at: + format: date-time + readOnly: true + title: Updated at + type: string 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. ' @@ -42714,27 +44758,25 @@ components: \ note this only applies to HTTPS upstreams." title: Verify SSL Certificates type: boolean + required: + - name + - upstream_url type: object - HexUpstream: + HexUpstreamRequest: example: is_active: true - disable_reason: N/A upstream_url: https://openapi-generator.tech auth_secret: auth_secret - created_at: 2000-01-23T04:56:07.000+00:00 auth_mode: None extra_value_1: extra_value_1 priority: 2624 - slug_perm: slug_perm extra_value_2: extra_value_2 extra_header_2: extra_header_2 extra_header_1: extra_header_1 mode: Proxy Only - updated_at: 2000-01-23T04:56:07.000+00:00 verify_ssl: true auth_username: auth_username name: name - pending_validation: true properties: auth_mode: default: None @@ -42756,22 +44798,6 @@ components: nullable: true title: Username type: string - created_at: - description: The datetime the upstream source was created. - format: date-time - readOnly: true - title: Created at - type: string - disable_reason: - default: N/A - enum: - - N/A - - Upstream points to its own repository - - Missing upstream source - - Upstream was disabled by request of user - readOnly: true - title: Disable reason - type: string extra_header_1: description: "The key for extra header #1 to send to upstream." maxLength: 64 @@ -42825,11 +44851,6 @@ components: pattern: "^\\w[\\w \\-'\\.\\/()]+$" title: Name type: string - pending_validation: - description: "When true, this upstream source is pending validation." - readOnly: true - title: Pending validation - type: boolean priority: description: "Upstream sources are selected for resolving requests by sequential\ \ order (1..n), followed by creation date." @@ -42837,18 +44858,6 @@ components: minimum: 1 title: Priority type: integer - slug_perm: - format: slug - minLength: 1 - pattern: "^[-a-zA-Z0-9_]+$" - readOnly: true - title: Slug perm - type: string - updated_at: - format: date-time - readOnly: true - title: Updated at - type: string 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. ' @@ -42868,7 +44877,7 @@ components: - name - upstream_url type: object - HexUpstreamRequest: + HexUpstreamRequestPatch: example: is_active: true upstream_url: https://openapi-generator.tech @@ -42979,11 +44988,161 @@ components: \ note this only applies to HTTPS upstreams." title: Verify SSL Certificates type: boolean + type: object + HuggingfaceUpstream: + example: + is_active: true + disable_reason: N/A + upstream_url: https://openapi-generator.tech + auth_secret: auth_secret + created_at: 2000-01-23T04:56:07.000+00:00 + auth_mode: None + extra_value_1: extra_value_1 + priority: 2624 + slug_perm: slug_perm + extra_value_2: extra_value_2 + extra_header_2: extra_header_2 + extra_header_1: extra_header_1 + mode: Proxy Only + updated_at: 2000-01-23T04:56:07.000+00:00 + verify_ssl: true + auth_username: auth_username + name: name + pending_validation: true + properties: + auth_mode: + default: None + description: 'The authentication mode to use when accessing this upstream. ' + enum: + - None + - Token + title: Auth mode + type: string + auth_secret: + description: Secret to provide with requests to upstream. + maxLength: 4096 + nullable: true + title: Secret + type: string + auth_username: + description: Username to provide with requests to upstream. + maxLength: 64 + nullable: true + title: Username + type: string + created_at: + description: The datetime the upstream source was created. + format: date-time + readOnly: true + title: Created at + type: string + disable_reason: + default: N/A + enum: + - N/A + - Upstream points to its own repository + - Missing upstream source + - Upstream was disabled by request of user + readOnly: true + title: Disable reason + type: string + extra_header_1: + description: "The key for extra header #1 to send to upstream." + maxLength: 64 + nullable: true + pattern: "^[-\\w]+$" + title: "Header #1" + type: string + extra_header_2: + description: "The key for extra header #2 to send to upstream." + maxLength: 64 + nullable: true + pattern: "^[-\\w]+$" + title: "Header #2" + type: string + extra_value_1: + description: "The value for extra header #1 to send to upstream. This is\ + \ stored as plaintext, and is NOT encrypted." + maxLength: 128 + nullable: true + pattern: "^[^\\n\\r]+$" + title: "Value #1" + type: string + extra_value_2: + description: "The value for extra header #2 to send to upstream. This is\ + \ stored as plaintext, and is NOT encrypted." + maxLength: 128 + nullable: true + pattern: "^[^\\n\\r]+$" + title: "Value #2" + type: string + is_active: + description: Whether or not this upstream is active and ready for requests. + title: Is active + type: boolean + mode: + default: Proxy Only + description: "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." + enum: + - Proxy Only + - Cache and Proxy + title: Mode + type: string + name: + description: A descriptive name for this upstream source. A shortened version + of this name will be used for tagging cached packages retrieved from this + upstream. + maxLength: 64 + minLength: 1 + pattern: "^\\w[\\w \\-'\\.\\/()]+$" + title: Name + type: string + pending_validation: + description: "When true, this upstream source is pending validation." + readOnly: true + title: Pending validation + type: boolean + priority: + description: "Upstream sources are selected for resolving requests by sequential\ + \ order (1..n), followed by creation date." + maximum: 32767 + minimum: 1 + title: Priority + type: integer + slug_perm: + format: slug + minLength: 1 + pattern: "^[-a-zA-Z0-9_]+$" + readOnly: true + title: Slug perm + type: string + updated_at: + format: date-time + readOnly: true + title: Updated at + type: string + 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. ' + format: uri + maxLength: 200 + minLength: 1 + title: Upstream URL + type: string + verify_ssl: + description: "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." + title: Verify SSL Certificates + type: boolean required: - name - upstream_url type: object - HexUpstreamRequestPatch: + HuggingfaceUpstreamRequest: example: is_active: true upstream_url: https://openapi-generator.tech @@ -43004,7 +45163,122 @@ components: description: 'The authentication mode to use when accessing this upstream. ' enum: - None - - Username and Password + - Token + title: Auth mode + type: string + auth_secret: + description: Secret to provide with requests to upstream. + maxLength: 4096 + nullable: true + title: Secret + type: string + auth_username: + description: Username to provide with requests to upstream. + maxLength: 64 + nullable: true + title: Username + type: string + extra_header_1: + description: "The key for extra header #1 to send to upstream." + maxLength: 64 + nullable: true + pattern: "^[-\\w]+$" + title: "Header #1" + type: string + extra_header_2: + description: "The key for extra header #2 to send to upstream." + maxLength: 64 + nullable: true + pattern: "^[-\\w]+$" + title: "Header #2" + type: string + extra_value_1: + description: "The value for extra header #1 to send to upstream. This is\ + \ stored as plaintext, and is NOT encrypted." + maxLength: 128 + nullable: true + pattern: "^[^\\n\\r]+$" + title: "Value #1" + type: string + extra_value_2: + description: "The value for extra header #2 to send to upstream. This is\ + \ stored as plaintext, and is NOT encrypted." + maxLength: 128 + nullable: true + pattern: "^[^\\n\\r]+$" + title: "Value #2" + type: string + is_active: + description: Whether or not this upstream is active and ready for requests. + title: Is active + type: boolean + mode: + default: Proxy Only + description: "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." + enum: + - Proxy Only + - Cache and Proxy + title: Mode + type: string + name: + description: A descriptive name for this upstream source. A shortened version + of this name will be used for tagging cached packages retrieved from this + upstream. + maxLength: 64 + minLength: 1 + pattern: "^\\w[\\w \\-'\\.\\/()]+$" + title: Name + type: string + priority: + description: "Upstream sources are selected for resolving requests by sequential\ + \ order (1..n), followed by creation date." + maximum: 32767 + minimum: 1 + title: Priority + type: integer + 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. ' + format: uri + maxLength: 200 + minLength: 1 + title: Upstream URL + type: string + verify_ssl: + description: "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." + title: Verify SSL Certificates + type: boolean + required: + - name + - upstream_url + type: object + HuggingfaceUpstreamRequestPatch: + example: + is_active: true + upstream_url: https://openapi-generator.tech + auth_secret: auth_secret + auth_mode: None + extra_value_1: extra_value_1 + priority: 2624 + extra_value_2: extra_value_2 + extra_header_2: extra_header_2 + extra_header_1: extra_header_1 + mode: Proxy Only + verify_ssl: true + auth_username: auth_username + name: name + properties: + auth_mode: + default: None + description: 'The authentication mode to use when accessing this upstream. ' + enum: + - None + - Token title: Auth mode type: string auth_secret: @@ -46296,7 +48570,7 @@ components: StatusBasic: example: detail: Cloudsmith API is operational. - version: 1.768.2 + version: "1.0" properties: detail: default: Cloudsmith API is operational. @@ -46306,7 +48580,7 @@ components: title: Detail type: string version: - default: 1.768.2 + default: "1.0" description: The current version for the Cloudsmith service. minLength: 1 readOnly: true @@ -46638,12 +48912,25 @@ components: - references vulnerability_id: vulnerability_id package_name: package_name + cvss_scores: + key: + key: "{}" description: description severity_source: severity_source title: title properties: affected_version: $ref: '#/components/schemas/VulnerabilityScanVersion' + cvss_scores: + additionalProperties: + additionalProperties: + properties: {} + type: object + type: object + description: CVSS Scores (when available from the raw scan results) + readOnly: true + title: Cvss scores + type: object description: maxLength: 1028 minLength: 1 @@ -46721,6 +49008,9 @@ components: - references vulnerability_id: vulnerability_id package_name: package_name + cvss_scores: + key: + key: "{}" description: description severity_source: severity_source title: title @@ -46744,6 +49034,9 @@ components: - references vulnerability_id: vulnerability_id package_name: package_name + cvss_scores: + key: + key: "{}" description: description severity_source: severity_source title: title @@ -46798,6 +49091,9 @@ components: - references vulnerability_id: vulnerability_id package_name: package_name + cvss_scores: + key: + key: "{}" description: description severity_source: severity_source title: title @@ -46821,6 +49117,9 @@ components: - references vulnerability_id: vulnerability_id package_name: package_name + cvss_scores: + key: + key: "{}" description: description severity_source: severity_source title: title @@ -46847,6 +49146,9 @@ components: - references vulnerability_id: vulnerability_id package_name: package_name + cvss_scores: + key: + key: "{}" description: description severity_source: severity_source title: title @@ -46870,6 +49172,9 @@ components: - references vulnerability_id: vulnerability_id package_name: package_name + cvss_scores: + key: + key: "{}" description: description severity_source: severity_source title: title @@ -47113,7 +49418,7 @@ components: target_url: description: The destination URL that webhook payloads will be POST'ed to. format: uri - maxLength: 255 + maxLength: 2000 minLength: 1 title: Payload URL type: string @@ -47250,7 +49555,7 @@ components: target_url: description: The destination URL that webhook payloads will be POST'ed to. format: uri - maxLength: 255 + maxLength: 2000 minLength: 1 title: Payload URL type: string @@ -47372,7 +49677,7 @@ components: target_url: description: The destination URL that webhook payloads will be POST'ed to. format: uri - maxLength: 255 + maxLength: 2000 minLength: 1 title: Payload URL type: string diff --git a/api_audit_log.go b/api_audit_log.go index 19717d38..399ebb92 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/api_badges.go b/api_badges.go index 23e29e87..d51eb459 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/api_distros.go b/api_distros.go index 07c00408..302a32f2 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/api_entitlements.go b/api_entitlements.go index 25b4557e..4eda97f7 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/api_files.go b/api_files.go index cc36c27e..d9646053 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/api_formats.go b/api_formats.go index 67332837..78b28448 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/api_metrics.go b/api_metrics.go index 3ffa5238..96ed10c1 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/api_namespaces.go b/api_namespaces.go index 4ba94baf..a15412e9 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/api_orgs.go b/api_orgs.go index 04c846dc..609e2fea 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ @@ -8994,6 +8994,13 @@ type ApiOrgsTeamsMembersListRequest struct { ApiService *OrgsApiService org string team string + userKind *string +} + +// Filter accounts by type. Possible values are 'user' and 'service'. If not provided, only users are returned. +func (r ApiOrgsTeamsMembersListRequest) UserKind(userKind string) ApiOrgsTeamsMembersListRequest { + r.userKind = &userKind + return r } func (r ApiOrgsTeamsMembersListRequest) Execute() (*OrganizationTeamMembers, *http.Response, error) { @@ -9042,6 +9049,9 @@ func (a *OrgsApiService) OrgsTeamsMembersListExecute(r ApiOrgsTeamsMembersListRe localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.userKind != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_kind", r.userKind, "", "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_packages.go b/api_packages.go index 3b713244..48d271fe 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ @@ -459,15 +459,16 @@ func (a *PackagesApiService) PackagesDependenciesExecute(r ApiPackagesDependenci } type ApiPackagesGroupsListRequest struct { - ctx context.Context - ApiService *PackagesApiService - owner string - repo string - page *int64 - pageSize *int64 - groupBy *string - query *string - sort *string + ctx context.Context + ApiService *PackagesApiService + owner string + repo string + page *int64 + pageSize *int64 + groupBy *string + hideSubcomponents *bool + query *string + sort *string } // A page number within the paginated result set. @@ -488,6 +489,12 @@ func (r ApiPackagesGroupsListRequest) GroupBy(groupBy string) ApiPackagesGroupsL return r } +// Whether to hide packages which are subcomponents of another package in the results +func (r ApiPackagesGroupsListRequest) HideSubcomponents(hideSubcomponents bool) ApiPackagesGroupsListRequest { + r.hideSubcomponents = &hideSubcomponents + return r +} + // A search term for querying names, filenames, versions, distributions, architectures, formats, or statuses of packages. func (r ApiPackagesGroupsListRequest) Query(query string) ApiPackagesGroupsListRequest { r.query = &query @@ -558,6 +565,12 @@ func (a *PackagesApiService) PackagesGroupsListExecute(r ApiPackagesGroupsListRe var defaultValue string = "name" r.groupBy = &defaultValue } + if r.hideSubcomponents != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "hide_subcomponents", r.hideSubcomponents, "", "") + } else { + var defaultValue bool = false + r.hideSubcomponents = &defaultValue + } if r.query != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "query", r.query, "", "") } @@ -1898,6 +1911,160 @@ func (a *PackagesApiService) PackagesTagExecute(r ApiPackagesTagRequest) (*Packa return localVarReturnValue, localVarHTTPResponse, nil } +type ApiPackagesUpdateLicenseRequest struct { + ctx context.Context + ApiService *PackagesApiService + owner string + repo string + identifier string + data *PackageLicenseRequestPatch +} + +func (r ApiPackagesUpdateLicenseRequest) Data(data PackageLicenseRequestPatch) ApiPackagesUpdateLicenseRequest { + r.data = &data + return r +} + +func (r ApiPackagesUpdateLicenseRequest) Execute() (*Package, *http.Response, error) { + return r.ApiService.PackagesUpdateLicenseExecute(r) +} + +/* +PackagesUpdateLicense Update the license for a package. + +Update the license for a package. + + @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 ApiPackagesUpdateLicenseRequest +*/ +func (a *PackagesApiService) PackagesUpdateLicense(ctx context.Context, owner string, repo string, identifier string) ApiPackagesUpdateLicenseRequest { + return ApiPackagesUpdateLicenseRequest{ + ApiService: a, + ctx: ctx, + owner: owner, + repo: repo, + identifier: identifier, + } +} + +// Execute executes the request +// @return Package +func (a *PackagesApiService) PackagesUpdateLicenseExecute(r ApiPackagesUpdateLicenseRequest) (*Package, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Package + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PackagesApiService.PackagesUpdateLicense") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/packages/{owner}/{repo}/{identifier}/update-license/" + 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 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 ApiPackagesUploadAlpineRequest struct { ctx context.Context ApiService *PackagesApiService @@ -3991,6 +4158,167 @@ func (a *PackagesApiService) PackagesUploadHexExecute(r ApiPackagesUploadHexRequ return localVarReturnValue, localVarHTTPResponse, nil } +type ApiPackagesUploadHuggingfaceRequest struct { + ctx context.Context + ApiService *PackagesApiService + owner string + repo string + data *HuggingfacePackageUploadRequest +} + +func (r ApiPackagesUploadHuggingfaceRequest) Data(data HuggingfacePackageUploadRequest) ApiPackagesUploadHuggingfaceRequest { + r.data = &data + return r +} + +func (r ApiPackagesUploadHuggingfaceRequest) Execute() (*HuggingfacePackageUpload, *http.Response, error) { + return r.ApiService.PackagesUploadHuggingfaceExecute(r) +} + +/* +PackagesUploadHuggingface Create a new HuggingFace package + +Create a new HuggingFace package + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param owner + @param repo + @return ApiPackagesUploadHuggingfaceRequest +*/ +func (a *PackagesApiService) PackagesUploadHuggingface(ctx context.Context, owner string, repo string) ApiPackagesUploadHuggingfaceRequest { + return ApiPackagesUploadHuggingfaceRequest{ + ApiService: a, + ctx: ctx, + owner: owner, + repo: repo, + } +} + +// Execute executes the request +// @return HuggingfacePackageUpload +func (a *PackagesApiService) PackagesUploadHuggingfaceExecute(r ApiPackagesUploadHuggingfaceRequest) (*HuggingfacePackageUpload, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HuggingfacePackageUpload + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PackagesApiService.PackagesUploadHuggingface") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/packages/{owner}/{repo}/upload/huggingface/" + 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 ApiPackagesUploadLuarocksRequest struct { ctx context.Context ApiService *PackagesApiService @@ -7873,6 +8201,156 @@ func (a *PackagesApiService) PackagesValidateUploadHexExecute(r ApiPackagesValid return localVarHTTPResponse, nil } +type ApiPackagesValidateUploadHuggingfaceRequest struct { + ctx context.Context + ApiService *PackagesApiService + owner string + repo string + data *HuggingfacePackageUploadRequest +} + +func (r ApiPackagesValidateUploadHuggingfaceRequest) Data(data HuggingfacePackageUploadRequest) ApiPackagesValidateUploadHuggingfaceRequest { + r.data = &data + return r +} + +func (r ApiPackagesValidateUploadHuggingfaceRequest) Execute() (*http.Response, error) { + return r.ApiService.PackagesValidateUploadHuggingfaceExecute(r) +} + +/* +PackagesValidateUploadHuggingface Validate parameters for create HuggingFace package + +Validate parameters for create HuggingFace package + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param owner + @param repo + @return ApiPackagesValidateUploadHuggingfaceRequest +*/ +func (a *PackagesApiService) PackagesValidateUploadHuggingface(ctx context.Context, owner string, repo string) ApiPackagesValidateUploadHuggingfaceRequest { + return ApiPackagesValidateUploadHuggingfaceRequest{ + ApiService: a, + ctx: ctx, + owner: owner, + repo: repo, + } +} + +// Execute executes the request +func (a *PackagesApiService) PackagesValidateUploadHuggingfaceExecute(r ApiPackagesValidateUploadHuggingfaceRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PackagesApiService.PackagesValidateUploadHuggingface") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/packages/{owner}/{repo}/validate-upload/huggingface/" + 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 ApiPackagesValidateUploadLuarocksRequest struct { ctx context.Context ApiService *PackagesApiService diff --git a/api_quota.go b/api_quota.go index d3d36a66..f6584cbc 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/api_rates.go b/api_rates.go index 202bd6a7..448ab810 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/api_repos.go b/api_repos.go index 51b94a92..7559ca38 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ @@ -6089,35 +6089,35 @@ func (a *ReposApiService) ReposUpstreamComposerUpdateExecute(r ApiReposUpstreamC return localVarReturnValue, localVarHTTPResponse, nil } -type ApiReposUpstreamCranCreateRequest struct { +type ApiReposUpstreamCondaCreateRequest struct { ctx context.Context ApiService *ReposApiService owner string identifier string - data *CranUpstreamRequest + data *CondaUpstreamRequest } -func (r ApiReposUpstreamCranCreateRequest) Data(data CranUpstreamRequest) ApiReposUpstreamCranCreateRequest { +func (r ApiReposUpstreamCondaCreateRequest) Data(data CondaUpstreamRequest) ApiReposUpstreamCondaCreateRequest { r.data = &data return r } -func (r ApiReposUpstreamCranCreateRequest) Execute() (*CranUpstream, *http.Response, error) { - return r.ApiService.ReposUpstreamCranCreateExecute(r) +func (r ApiReposUpstreamCondaCreateRequest) Execute() (*CondaUpstream, *http.Response, error) { + return r.ApiService.ReposUpstreamCondaCreateExecute(r) } /* -ReposUpstreamCranCreate Create a CRAN upstream config for this repository. +ReposUpstreamCondaCreate Create a Conda upstream config for this repository. -Create a CRAN upstream config for this repository. +Create a Conda upstream config for this repository. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param owner @param identifier - @return ApiReposUpstreamCranCreateRequest + @return ApiReposUpstreamCondaCreateRequest */ -func (a *ReposApiService) ReposUpstreamCranCreate(ctx context.Context, owner string, identifier string) ApiReposUpstreamCranCreateRequest { - return ApiReposUpstreamCranCreateRequest{ +func (a *ReposApiService) ReposUpstreamCondaCreate(ctx context.Context, owner string, identifier string) ApiReposUpstreamCondaCreateRequest { + return ApiReposUpstreamCondaCreateRequest{ ApiService: a, ctx: ctx, owner: owner, @@ -6126,21 +6126,21 @@ func (a *ReposApiService) ReposUpstreamCranCreate(ctx context.Context, owner str } // Execute executes the request -// @return CranUpstream -func (a *ReposApiService) ReposUpstreamCranCreateExecute(r ApiReposUpstreamCranCreateRequest) (*CranUpstream, *http.Response, error) { +// @return CondaUpstream +func (a *ReposApiService) ReposUpstreamCondaCreateExecute(r ApiReposUpstreamCondaCreateRequest) (*CondaUpstream, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *CranUpstream + localVarReturnValue *CondaUpstream ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamCranCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamCondaCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/cran/" + localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/conda/" localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", url.PathEscape(parameterValueToString(r.owner, "owner")), -1) localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", url.PathEscape(parameterValueToString(r.identifier, "identifier")), -1) @@ -6239,7 +6239,7 @@ func (a *ReposApiService) ReposUpstreamCranCreateExecute(r ApiReposUpstreamCranC return localVarReturnValue, localVarHTTPResponse, nil } -type ApiReposUpstreamCranDeleteRequest struct { +type ApiReposUpstreamCondaDeleteRequest struct { ctx context.Context ApiService *ReposApiService owner string @@ -6247,23 +6247,23 @@ type ApiReposUpstreamCranDeleteRequest struct { slugPerm string } -func (r ApiReposUpstreamCranDeleteRequest) Execute() (*http.Response, error) { - return r.ApiService.ReposUpstreamCranDeleteExecute(r) +func (r ApiReposUpstreamCondaDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.ReposUpstreamCondaDeleteExecute(r) } /* -ReposUpstreamCranDelete Delete a CRAN upstream config for this repository. +ReposUpstreamCondaDelete Delete a Conda upstream config for this repository. -Delete a CRAN upstream config for this repository. +Delete a Conda upstream config for this repository. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param owner @param identifier @param slugPerm - @return ApiReposUpstreamCranDeleteRequest + @return ApiReposUpstreamCondaDeleteRequest */ -func (a *ReposApiService) ReposUpstreamCranDelete(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamCranDeleteRequest { - return ApiReposUpstreamCranDeleteRequest{ +func (a *ReposApiService) ReposUpstreamCondaDelete(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamCondaDeleteRequest { + return ApiReposUpstreamCondaDeleteRequest{ ApiService: a, ctx: ctx, owner: owner, @@ -6273,19 +6273,19 @@ func (a *ReposApiService) ReposUpstreamCranDelete(ctx context.Context, owner str } // Execute executes the request -func (a *ReposApiService) ReposUpstreamCranDeleteExecute(r ApiReposUpstreamCranDeleteRequest) (*http.Response, error) { +func (a *ReposApiService) ReposUpstreamCondaDeleteExecute(r ApiReposUpstreamCondaDeleteRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamCranDelete") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamCondaDelete") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/cran/{slug_perm}/" + localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/conda/{slug_perm}/" localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", url.PathEscape(parameterValueToString(r.owner, "owner")), -1) localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", url.PathEscape(parameterValueToString(r.identifier, "identifier")), -1) localVarPath = strings.Replace(localVarPath, "{"+"slug_perm"+"}", url.PathEscape(parameterValueToString(r.slugPerm, "slugPerm")), -1) @@ -6374,7 +6374,7 @@ func (a *ReposApiService) ReposUpstreamCranDeleteExecute(r ApiReposUpstreamCranD return localVarHTTPResponse, nil } -type ApiReposUpstreamCranListRequest struct { +type ApiReposUpstreamCondaListRequest struct { ctx context.Context ApiService *ReposApiService owner string @@ -6384,33 +6384,33 @@ type ApiReposUpstreamCranListRequest struct { } // A page number within the paginated result set. -func (r ApiReposUpstreamCranListRequest) Page(page int64) ApiReposUpstreamCranListRequest { +func (r ApiReposUpstreamCondaListRequest) Page(page int64) ApiReposUpstreamCondaListRequest { r.page = &page return r } // Number of results to return per page. -func (r ApiReposUpstreamCranListRequest) PageSize(pageSize int64) ApiReposUpstreamCranListRequest { +func (r ApiReposUpstreamCondaListRequest) PageSize(pageSize int64) ApiReposUpstreamCondaListRequest { r.pageSize = &pageSize return r } -func (r ApiReposUpstreamCranListRequest) Execute() ([]CranUpstream, *http.Response, error) { - return r.ApiService.ReposUpstreamCranListExecute(r) +func (r ApiReposUpstreamCondaListRequest) Execute() ([]CondaUpstream, *http.Response, error) { + return r.ApiService.ReposUpstreamCondaListExecute(r) } /* -ReposUpstreamCranList List CRAN upstream configs for this repository. +ReposUpstreamCondaList List Conda upstream configs for this repository. -List CRAN upstream configs for this repository. +List Conda upstream configs for this repository. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param owner @param identifier - @return ApiReposUpstreamCranListRequest + @return ApiReposUpstreamCondaListRequest */ -func (a *ReposApiService) ReposUpstreamCranList(ctx context.Context, owner string, identifier string) ApiReposUpstreamCranListRequest { - return ApiReposUpstreamCranListRequest{ +func (a *ReposApiService) ReposUpstreamCondaList(ctx context.Context, owner string, identifier string) ApiReposUpstreamCondaListRequest { + return ApiReposUpstreamCondaListRequest{ ApiService: a, ctx: ctx, owner: owner, @@ -6419,21 +6419,21 @@ func (a *ReposApiService) ReposUpstreamCranList(ctx context.Context, owner strin } // Execute executes the request -// @return []CranUpstream -func (a *ReposApiService) ReposUpstreamCranListExecute(r ApiReposUpstreamCranListRequest) ([]CranUpstream, *http.Response, error) { +// @return []CondaUpstream +func (a *ReposApiService) ReposUpstreamCondaListExecute(r ApiReposUpstreamCondaListRequest) ([]CondaUpstream, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue []CranUpstream + localVarReturnValue []CondaUpstream ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamCranList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamCondaList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/cran/" + localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/conda/" localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", url.PathEscape(parameterValueToString(r.owner, "owner")), -1) localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", url.PathEscape(parameterValueToString(r.identifier, "identifier")), -1) @@ -6536,37 +6536,37 @@ func (a *ReposApiService) ReposUpstreamCranListExecute(r ApiReposUpstreamCranLis return localVarReturnValue, localVarHTTPResponse, nil } -type ApiReposUpstreamCranPartialUpdateRequest struct { +type ApiReposUpstreamCondaPartialUpdateRequest struct { ctx context.Context ApiService *ReposApiService owner string identifier string slugPerm string - data *CranUpstreamRequestPatch + data *CondaUpstreamRequestPatch } -func (r ApiReposUpstreamCranPartialUpdateRequest) Data(data CranUpstreamRequestPatch) ApiReposUpstreamCranPartialUpdateRequest { +func (r ApiReposUpstreamCondaPartialUpdateRequest) Data(data CondaUpstreamRequestPatch) ApiReposUpstreamCondaPartialUpdateRequest { r.data = &data return r } -func (r ApiReposUpstreamCranPartialUpdateRequest) Execute() (*CranUpstream, *http.Response, error) { - return r.ApiService.ReposUpstreamCranPartialUpdateExecute(r) +func (r ApiReposUpstreamCondaPartialUpdateRequest) Execute() (*CondaUpstream, *http.Response, error) { + return r.ApiService.ReposUpstreamCondaPartialUpdateExecute(r) } /* -ReposUpstreamCranPartialUpdate Partially update a CRAN upstream config for this repository. +ReposUpstreamCondaPartialUpdate Partially update a Conda upstream config for this repository. -Partially update a CRAN upstream config for this repository. +Partially update a Conda upstream config for this repository. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param owner @param identifier @param slugPerm - @return ApiReposUpstreamCranPartialUpdateRequest + @return ApiReposUpstreamCondaPartialUpdateRequest */ -func (a *ReposApiService) ReposUpstreamCranPartialUpdate(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamCranPartialUpdateRequest { - return ApiReposUpstreamCranPartialUpdateRequest{ +func (a *ReposApiService) ReposUpstreamCondaPartialUpdate(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamCondaPartialUpdateRequest { + return ApiReposUpstreamCondaPartialUpdateRequest{ ApiService: a, ctx: ctx, owner: owner, @@ -6576,21 +6576,21 @@ func (a *ReposApiService) ReposUpstreamCranPartialUpdate(ctx context.Context, ow } // Execute executes the request -// @return CranUpstream -func (a *ReposApiService) ReposUpstreamCranPartialUpdateExecute(r ApiReposUpstreamCranPartialUpdateRequest) (*CranUpstream, *http.Response, error) { +// @return CondaUpstream +func (a *ReposApiService) ReposUpstreamCondaPartialUpdateExecute(r ApiReposUpstreamCondaPartialUpdateRequest) (*CondaUpstream, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue *CranUpstream + localVarReturnValue *CondaUpstream ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamCranPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamCondaPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/cran/{slug_perm}/" + localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/conda/{slug_perm}/" localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", url.PathEscape(parameterValueToString(r.owner, "owner")), -1) localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", url.PathEscape(parameterValueToString(r.identifier, "identifier")), -1) localVarPath = strings.Replace(localVarPath, "{"+"slug_perm"+"}", url.PathEscape(parameterValueToString(r.slugPerm, "slugPerm")), -1) @@ -6690,7 +6690,7 @@ func (a *ReposApiService) ReposUpstreamCranPartialUpdateExecute(r ApiReposUpstre return localVarReturnValue, localVarHTTPResponse, nil } -type ApiReposUpstreamCranReadRequest struct { +type ApiReposUpstreamCondaReadRequest struct { ctx context.Context ApiService *ReposApiService owner string @@ -6698,23 +6698,23 @@ type ApiReposUpstreamCranReadRequest struct { slugPerm string } -func (r ApiReposUpstreamCranReadRequest) Execute() (*CranUpstream, *http.Response, error) { - return r.ApiService.ReposUpstreamCranReadExecute(r) +func (r ApiReposUpstreamCondaReadRequest) Execute() (*CondaUpstream, *http.Response, error) { + return r.ApiService.ReposUpstreamCondaReadExecute(r) } /* -ReposUpstreamCranRead Retrieve a CRAN upstream config for this repository. +ReposUpstreamCondaRead Retrieve a Conda upstream config for this repository. -Retrieve a CRAN upstream config for this repository. +Retrieve a Conda upstream config for this repository. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param owner @param identifier @param slugPerm - @return ApiReposUpstreamCranReadRequest + @return ApiReposUpstreamCondaReadRequest */ -func (a *ReposApiService) ReposUpstreamCranRead(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamCranReadRequest { - return ApiReposUpstreamCranReadRequest{ +func (a *ReposApiService) ReposUpstreamCondaRead(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamCondaReadRequest { + return ApiReposUpstreamCondaReadRequest{ ApiService: a, ctx: ctx, owner: owner, @@ -6724,21 +6724,21 @@ func (a *ReposApiService) ReposUpstreamCranRead(ctx context.Context, owner strin } // Execute executes the request -// @return CranUpstream -func (a *ReposApiService) ReposUpstreamCranReadExecute(r ApiReposUpstreamCranReadRequest) (*CranUpstream, *http.Response, error) { +// @return CondaUpstream +func (a *ReposApiService) ReposUpstreamCondaReadExecute(r ApiReposUpstreamCondaReadRequest) (*CondaUpstream, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *CranUpstream + localVarReturnValue *CondaUpstream ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamCranRead") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamCondaRead") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/cran/{slug_perm}/" + localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/conda/{slug_perm}/" localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", url.PathEscape(parameterValueToString(r.owner, "owner")), -1) localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", url.PathEscape(parameterValueToString(r.identifier, "identifier")), -1) localVarPath = strings.Replace(localVarPath, "{"+"slug_perm"+"}", url.PathEscape(parameterValueToString(r.slugPerm, "slugPerm")), -1) @@ -6836,37 +6836,37 @@ func (a *ReposApiService) ReposUpstreamCranReadExecute(r ApiReposUpstreamCranRea return localVarReturnValue, localVarHTTPResponse, nil } -type ApiReposUpstreamCranUpdateRequest struct { +type ApiReposUpstreamCondaUpdateRequest struct { ctx context.Context ApiService *ReposApiService owner string identifier string slugPerm string - data *CranUpstreamRequest + data *CondaUpstreamRequest } -func (r ApiReposUpstreamCranUpdateRequest) Data(data CranUpstreamRequest) ApiReposUpstreamCranUpdateRequest { +func (r ApiReposUpstreamCondaUpdateRequest) Data(data CondaUpstreamRequest) ApiReposUpstreamCondaUpdateRequest { r.data = &data return r } -func (r ApiReposUpstreamCranUpdateRequest) Execute() (*CranUpstream, *http.Response, error) { - return r.ApiService.ReposUpstreamCranUpdateExecute(r) +func (r ApiReposUpstreamCondaUpdateRequest) Execute() (*CondaUpstream, *http.Response, error) { + return r.ApiService.ReposUpstreamCondaUpdateExecute(r) } /* -ReposUpstreamCranUpdate Update a CRAN upstream config for this repository. +ReposUpstreamCondaUpdate Update a Conda upstream config for this repository. -Update a CRAN upstream config for this repository. +Update a Conda upstream config for this repository. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param owner @param identifier @param slugPerm - @return ApiReposUpstreamCranUpdateRequest + @return ApiReposUpstreamCondaUpdateRequest */ -func (a *ReposApiService) ReposUpstreamCranUpdate(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamCranUpdateRequest { - return ApiReposUpstreamCranUpdateRequest{ +func (a *ReposApiService) ReposUpstreamCondaUpdate(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamCondaUpdateRequest { + return ApiReposUpstreamCondaUpdateRequest{ ApiService: a, ctx: ctx, owner: owner, @@ -6876,21 +6876,21 @@ func (a *ReposApiService) ReposUpstreamCranUpdate(ctx context.Context, owner str } // Execute executes the request -// @return CranUpstream -func (a *ReposApiService) ReposUpstreamCranUpdateExecute(r ApiReposUpstreamCranUpdateRequest) (*CranUpstream, *http.Response, error) { +// @return CondaUpstream +func (a *ReposApiService) ReposUpstreamCondaUpdateExecute(r ApiReposUpstreamCondaUpdateRequest) (*CondaUpstream, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue *CranUpstream + localVarReturnValue *CondaUpstream ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamCranUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamCondaUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/cran/{slug_perm}/" + localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/conda/{slug_perm}/" localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", url.PathEscape(parameterValueToString(r.owner, "owner")), -1) localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", url.PathEscape(parameterValueToString(r.identifier, "identifier")), -1) localVarPath = strings.Replace(localVarPath, "{"+"slug_perm"+"}", url.PathEscape(parameterValueToString(r.slugPerm, "slugPerm")), -1) @@ -6990,35 +6990,35 @@ func (a *ReposApiService) ReposUpstreamCranUpdateExecute(r ApiReposUpstreamCranU return localVarReturnValue, localVarHTTPResponse, nil } -type ApiReposUpstreamDartCreateRequest struct { +type ApiReposUpstreamCranCreateRequest struct { ctx context.Context ApiService *ReposApiService owner string identifier string - data *DartUpstreamRequest + data *CranUpstreamRequest } -func (r ApiReposUpstreamDartCreateRequest) Data(data DartUpstreamRequest) ApiReposUpstreamDartCreateRequest { +func (r ApiReposUpstreamCranCreateRequest) Data(data CranUpstreamRequest) ApiReposUpstreamCranCreateRequest { r.data = &data return r } -func (r ApiReposUpstreamDartCreateRequest) Execute() (*DartUpstream, *http.Response, error) { - return r.ApiService.ReposUpstreamDartCreateExecute(r) +func (r ApiReposUpstreamCranCreateRequest) Execute() (*CranUpstream, *http.Response, error) { + return r.ApiService.ReposUpstreamCranCreateExecute(r) } /* -ReposUpstreamDartCreate Create a Dart upstream config for this repository. +ReposUpstreamCranCreate Create a CRAN upstream config for this repository. -Create a Dart upstream config for this repository. +Create a CRAN upstream config for this repository. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param owner @param identifier - @return ApiReposUpstreamDartCreateRequest + @return ApiReposUpstreamCranCreateRequest */ -func (a *ReposApiService) ReposUpstreamDartCreate(ctx context.Context, owner string, identifier string) ApiReposUpstreamDartCreateRequest { - return ApiReposUpstreamDartCreateRequest{ +func (a *ReposApiService) ReposUpstreamCranCreate(ctx context.Context, owner string, identifier string) ApiReposUpstreamCranCreateRequest { + return ApiReposUpstreamCranCreateRequest{ ApiService: a, ctx: ctx, owner: owner, @@ -7027,21 +7027,21 @@ func (a *ReposApiService) ReposUpstreamDartCreate(ctx context.Context, owner str } // Execute executes the request -// @return DartUpstream -func (a *ReposApiService) ReposUpstreamDartCreateExecute(r ApiReposUpstreamDartCreateRequest) (*DartUpstream, *http.Response, error) { +// @return CranUpstream +func (a *ReposApiService) ReposUpstreamCranCreateExecute(r ApiReposUpstreamCranCreateRequest) (*CranUpstream, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *DartUpstream + localVarReturnValue *CranUpstream ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamDartCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamCranCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/dart/" + localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/cran/" localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", url.PathEscape(parameterValueToString(r.owner, "owner")), -1) localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", url.PathEscape(parameterValueToString(r.identifier, "identifier")), -1) @@ -7140,7 +7140,7 @@ func (a *ReposApiService) ReposUpstreamDartCreateExecute(r ApiReposUpstreamDartC return localVarReturnValue, localVarHTTPResponse, nil } -type ApiReposUpstreamDartDeleteRequest struct { +type ApiReposUpstreamCranDeleteRequest struct { ctx context.Context ApiService *ReposApiService owner string @@ -7148,23 +7148,23 @@ type ApiReposUpstreamDartDeleteRequest struct { slugPerm string } -func (r ApiReposUpstreamDartDeleteRequest) Execute() (*http.Response, error) { - return r.ApiService.ReposUpstreamDartDeleteExecute(r) +func (r ApiReposUpstreamCranDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.ReposUpstreamCranDeleteExecute(r) } /* -ReposUpstreamDartDelete Delete a Dart upstream config for this repository. +ReposUpstreamCranDelete Delete a CRAN upstream config for this repository. -Delete a Dart upstream config for this repository. +Delete a CRAN upstream config for this repository. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param owner @param identifier @param slugPerm - @return ApiReposUpstreamDartDeleteRequest + @return ApiReposUpstreamCranDeleteRequest */ -func (a *ReposApiService) ReposUpstreamDartDelete(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamDartDeleteRequest { - return ApiReposUpstreamDartDeleteRequest{ +func (a *ReposApiService) ReposUpstreamCranDelete(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamCranDeleteRequest { + return ApiReposUpstreamCranDeleteRequest{ ApiService: a, ctx: ctx, owner: owner, @@ -7174,19 +7174,19 @@ func (a *ReposApiService) ReposUpstreamDartDelete(ctx context.Context, owner str } // Execute executes the request -func (a *ReposApiService) ReposUpstreamDartDeleteExecute(r ApiReposUpstreamDartDeleteRequest) (*http.Response, error) { +func (a *ReposApiService) ReposUpstreamCranDeleteExecute(r ApiReposUpstreamCranDeleteRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamDartDelete") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamCranDelete") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/dart/{slug_perm}/" + localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/cran/{slug_perm}/" localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", url.PathEscape(parameterValueToString(r.owner, "owner")), -1) localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", url.PathEscape(parameterValueToString(r.identifier, "identifier")), -1) localVarPath = strings.Replace(localVarPath, "{"+"slug_perm"+"}", url.PathEscape(parameterValueToString(r.slugPerm, "slugPerm")), -1) @@ -7275,7 +7275,7 @@ func (a *ReposApiService) ReposUpstreamDartDeleteExecute(r ApiReposUpstreamDartD return localVarHTTPResponse, nil } -type ApiReposUpstreamDartListRequest struct { +type ApiReposUpstreamCranListRequest struct { ctx context.Context ApiService *ReposApiService owner string @@ -7285,33 +7285,33 @@ type ApiReposUpstreamDartListRequest struct { } // A page number within the paginated result set. -func (r ApiReposUpstreamDartListRequest) Page(page int64) ApiReposUpstreamDartListRequest { +func (r ApiReposUpstreamCranListRequest) Page(page int64) ApiReposUpstreamCranListRequest { r.page = &page return r } // Number of results to return per page. -func (r ApiReposUpstreamDartListRequest) PageSize(pageSize int64) ApiReposUpstreamDartListRequest { +func (r ApiReposUpstreamCranListRequest) PageSize(pageSize int64) ApiReposUpstreamCranListRequest { r.pageSize = &pageSize return r } -func (r ApiReposUpstreamDartListRequest) Execute() ([]DartUpstream, *http.Response, error) { - return r.ApiService.ReposUpstreamDartListExecute(r) +func (r ApiReposUpstreamCranListRequest) Execute() ([]CranUpstream, *http.Response, error) { + return r.ApiService.ReposUpstreamCranListExecute(r) } /* -ReposUpstreamDartList List Dart upstream configs for this repository. +ReposUpstreamCranList List CRAN upstream configs for this repository. -List Dart upstream configs for this repository. +List CRAN upstream configs for this repository. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param owner @param identifier - @return ApiReposUpstreamDartListRequest + @return ApiReposUpstreamCranListRequest */ -func (a *ReposApiService) ReposUpstreamDartList(ctx context.Context, owner string, identifier string) ApiReposUpstreamDartListRequest { - return ApiReposUpstreamDartListRequest{ +func (a *ReposApiService) ReposUpstreamCranList(ctx context.Context, owner string, identifier string) ApiReposUpstreamCranListRequest { + return ApiReposUpstreamCranListRequest{ ApiService: a, ctx: ctx, owner: owner, @@ -7320,21 +7320,21 @@ func (a *ReposApiService) ReposUpstreamDartList(ctx context.Context, owner strin } // Execute executes the request -// @return []DartUpstream -func (a *ReposApiService) ReposUpstreamDartListExecute(r ApiReposUpstreamDartListRequest) ([]DartUpstream, *http.Response, error) { +// @return []CranUpstream +func (a *ReposApiService) ReposUpstreamCranListExecute(r ApiReposUpstreamCranListRequest) ([]CranUpstream, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue []DartUpstream + localVarReturnValue []CranUpstream ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamDartList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamCranList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/dart/" + localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/cran/" localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", url.PathEscape(parameterValueToString(r.owner, "owner")), -1) localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", url.PathEscape(parameterValueToString(r.identifier, "identifier")), -1) @@ -7437,37 +7437,37 @@ func (a *ReposApiService) ReposUpstreamDartListExecute(r ApiReposUpstreamDartLis return localVarReturnValue, localVarHTTPResponse, nil } -type ApiReposUpstreamDartPartialUpdateRequest struct { +type ApiReposUpstreamCranPartialUpdateRequest struct { ctx context.Context ApiService *ReposApiService owner string identifier string slugPerm string - data *DartUpstreamRequestPatch + data *CranUpstreamRequestPatch } -func (r ApiReposUpstreamDartPartialUpdateRequest) Data(data DartUpstreamRequestPatch) ApiReposUpstreamDartPartialUpdateRequest { +func (r ApiReposUpstreamCranPartialUpdateRequest) Data(data CranUpstreamRequestPatch) ApiReposUpstreamCranPartialUpdateRequest { r.data = &data return r } -func (r ApiReposUpstreamDartPartialUpdateRequest) Execute() (*DartUpstream, *http.Response, error) { - return r.ApiService.ReposUpstreamDartPartialUpdateExecute(r) +func (r ApiReposUpstreamCranPartialUpdateRequest) Execute() (*CranUpstream, *http.Response, error) { + return r.ApiService.ReposUpstreamCranPartialUpdateExecute(r) } /* -ReposUpstreamDartPartialUpdate Partially update a Dart upstream config for this repository. +ReposUpstreamCranPartialUpdate Partially update a CRAN upstream config for this repository. -Partially update a Dart upstream config for this repository. +Partially update a CRAN upstream config for this repository. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param owner @param identifier @param slugPerm - @return ApiReposUpstreamDartPartialUpdateRequest + @return ApiReposUpstreamCranPartialUpdateRequest */ -func (a *ReposApiService) ReposUpstreamDartPartialUpdate(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamDartPartialUpdateRequest { - return ApiReposUpstreamDartPartialUpdateRequest{ +func (a *ReposApiService) ReposUpstreamCranPartialUpdate(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamCranPartialUpdateRequest { + return ApiReposUpstreamCranPartialUpdateRequest{ ApiService: a, ctx: ctx, owner: owner, @@ -7477,21 +7477,21 @@ func (a *ReposApiService) ReposUpstreamDartPartialUpdate(ctx context.Context, ow } // Execute executes the request -// @return DartUpstream -func (a *ReposApiService) ReposUpstreamDartPartialUpdateExecute(r ApiReposUpstreamDartPartialUpdateRequest) (*DartUpstream, *http.Response, error) { +// @return CranUpstream +func (a *ReposApiService) ReposUpstreamCranPartialUpdateExecute(r ApiReposUpstreamCranPartialUpdateRequest) (*CranUpstream, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue *DartUpstream + localVarReturnValue *CranUpstream ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamDartPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamCranPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/dart/{slug_perm}/" + localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/cran/{slug_perm}/" localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", url.PathEscape(parameterValueToString(r.owner, "owner")), -1) localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", url.PathEscape(parameterValueToString(r.identifier, "identifier")), -1) localVarPath = strings.Replace(localVarPath, "{"+"slug_perm"+"}", url.PathEscape(parameterValueToString(r.slugPerm, "slugPerm")), -1) @@ -7591,7 +7591,7 @@ func (a *ReposApiService) ReposUpstreamDartPartialUpdateExecute(r ApiReposUpstre return localVarReturnValue, localVarHTTPResponse, nil } -type ApiReposUpstreamDartReadRequest struct { +type ApiReposUpstreamCranReadRequest struct { ctx context.Context ApiService *ReposApiService owner string @@ -7599,23 +7599,23 @@ type ApiReposUpstreamDartReadRequest struct { slugPerm string } -func (r ApiReposUpstreamDartReadRequest) Execute() (*DartUpstream, *http.Response, error) { - return r.ApiService.ReposUpstreamDartReadExecute(r) +func (r ApiReposUpstreamCranReadRequest) Execute() (*CranUpstream, *http.Response, error) { + return r.ApiService.ReposUpstreamCranReadExecute(r) } /* -ReposUpstreamDartRead Retrieve a Dart upstream config for this repository. +ReposUpstreamCranRead Retrieve a CRAN upstream config for this repository. -Retrieve a Dart upstream config for this repository. +Retrieve a CRAN upstream config for this repository. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param owner @param identifier @param slugPerm - @return ApiReposUpstreamDartReadRequest + @return ApiReposUpstreamCranReadRequest */ -func (a *ReposApiService) ReposUpstreamDartRead(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamDartReadRequest { - return ApiReposUpstreamDartReadRequest{ +func (a *ReposApiService) ReposUpstreamCranRead(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamCranReadRequest { + return ApiReposUpstreamCranReadRequest{ ApiService: a, ctx: ctx, owner: owner, @@ -7625,21 +7625,21 @@ func (a *ReposApiService) ReposUpstreamDartRead(ctx context.Context, owner strin } // Execute executes the request -// @return DartUpstream -func (a *ReposApiService) ReposUpstreamDartReadExecute(r ApiReposUpstreamDartReadRequest) (*DartUpstream, *http.Response, error) { +// @return CranUpstream +func (a *ReposApiService) ReposUpstreamCranReadExecute(r ApiReposUpstreamCranReadRequest) (*CranUpstream, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *DartUpstream + localVarReturnValue *CranUpstream ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamDartRead") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamCranRead") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/dart/{slug_perm}/" + localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/cran/{slug_perm}/" localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", url.PathEscape(parameterValueToString(r.owner, "owner")), -1) localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", url.PathEscape(parameterValueToString(r.identifier, "identifier")), -1) localVarPath = strings.Replace(localVarPath, "{"+"slug_perm"+"}", url.PathEscape(parameterValueToString(r.slugPerm, "slugPerm")), -1) @@ -7737,37 +7737,37 @@ func (a *ReposApiService) ReposUpstreamDartReadExecute(r ApiReposUpstreamDartRea return localVarReturnValue, localVarHTTPResponse, nil } -type ApiReposUpstreamDartUpdateRequest struct { +type ApiReposUpstreamCranUpdateRequest struct { ctx context.Context ApiService *ReposApiService owner string identifier string slugPerm string - data *DartUpstreamRequest + data *CranUpstreamRequest } -func (r ApiReposUpstreamDartUpdateRequest) Data(data DartUpstreamRequest) ApiReposUpstreamDartUpdateRequest { +func (r ApiReposUpstreamCranUpdateRequest) Data(data CranUpstreamRequest) ApiReposUpstreamCranUpdateRequest { r.data = &data return r } -func (r ApiReposUpstreamDartUpdateRequest) Execute() (*DartUpstream, *http.Response, error) { - return r.ApiService.ReposUpstreamDartUpdateExecute(r) +func (r ApiReposUpstreamCranUpdateRequest) Execute() (*CranUpstream, *http.Response, error) { + return r.ApiService.ReposUpstreamCranUpdateExecute(r) } /* -ReposUpstreamDartUpdate Update a Dart upstream config for this repository. +ReposUpstreamCranUpdate Update a CRAN upstream config for this repository. -Update a Dart upstream config for this repository. +Update a CRAN upstream config for this repository. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param owner @param identifier @param slugPerm - @return ApiReposUpstreamDartUpdateRequest + @return ApiReposUpstreamCranUpdateRequest */ -func (a *ReposApiService) ReposUpstreamDartUpdate(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamDartUpdateRequest { - return ApiReposUpstreamDartUpdateRequest{ +func (a *ReposApiService) ReposUpstreamCranUpdate(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamCranUpdateRequest { + return ApiReposUpstreamCranUpdateRequest{ ApiService: a, ctx: ctx, owner: owner, @@ -7777,21 +7777,21 @@ func (a *ReposApiService) ReposUpstreamDartUpdate(ctx context.Context, owner str } // Execute executes the request -// @return DartUpstream -func (a *ReposApiService) ReposUpstreamDartUpdateExecute(r ApiReposUpstreamDartUpdateRequest) (*DartUpstream, *http.Response, error) { +// @return CranUpstream +func (a *ReposApiService) ReposUpstreamCranUpdateExecute(r ApiReposUpstreamCranUpdateRequest) (*CranUpstream, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue *DartUpstream + localVarReturnValue *CranUpstream ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamDartUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamCranUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/dart/{slug_perm}/" + localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/cran/{slug_perm}/" localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", url.PathEscape(parameterValueToString(r.owner, "owner")), -1) localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", url.PathEscape(parameterValueToString(r.identifier, "identifier")), -1) localVarPath = strings.Replace(localVarPath, "{"+"slug_perm"+"}", url.PathEscape(parameterValueToString(r.slugPerm, "slugPerm")), -1) @@ -7891,12 +7891,913 @@ func (a *ReposApiService) ReposUpstreamDartUpdateExecute(r ApiReposUpstreamDartU return localVarReturnValue, localVarHTTPResponse, nil } -type ApiReposUpstreamDebCreateRequest struct { +type ApiReposUpstreamDartCreateRequest struct { ctx context.Context ApiService *ReposApiService owner string identifier string - data *DebUpstreamRequest + data *DartUpstreamRequest +} + +func (r ApiReposUpstreamDartCreateRequest) Data(data DartUpstreamRequest) ApiReposUpstreamDartCreateRequest { + r.data = &data + return r +} + +func (r ApiReposUpstreamDartCreateRequest) Execute() (*DartUpstream, *http.Response, error) { + return r.ApiService.ReposUpstreamDartCreateExecute(r) +} + +/* +ReposUpstreamDartCreate Create a Dart upstream config for this repository. + +Create a Dart upstream config for this repository. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param owner + @param identifier + @return ApiReposUpstreamDartCreateRequest +*/ +func (a *ReposApiService) ReposUpstreamDartCreate(ctx context.Context, owner string, identifier string) ApiReposUpstreamDartCreateRequest { + return ApiReposUpstreamDartCreateRequest{ + ApiService: a, + ctx: ctx, + owner: owner, + identifier: identifier, + } +} + +// Execute executes the request +// @return DartUpstream +func (a *ReposApiService) ReposUpstreamDartCreateExecute(r ApiReposUpstreamDartCreateRequest) (*DartUpstream, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DartUpstream + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamDartCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/dart/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", url.PathEscape(parameterValueToString(r.owner, "owner")), -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 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 ApiReposUpstreamDartDeleteRequest struct { + ctx context.Context + ApiService *ReposApiService + owner string + identifier string + slugPerm string +} + +func (r ApiReposUpstreamDartDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.ReposUpstreamDartDeleteExecute(r) +} + +/* +ReposUpstreamDartDelete Delete a Dart upstream config for this repository. + +Delete a Dart upstream config for this repository. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param owner + @param identifier + @param slugPerm + @return ApiReposUpstreamDartDeleteRequest +*/ +func (a *ReposApiService) ReposUpstreamDartDelete(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamDartDeleteRequest { + return ApiReposUpstreamDartDeleteRequest{ + ApiService: a, + ctx: ctx, + owner: owner, + identifier: identifier, + slugPerm: slugPerm, + } +} + +// Execute executes the request +func (a *ReposApiService) ReposUpstreamDartDeleteExecute(r ApiReposUpstreamDartDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamDartDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/dart/{slug_perm}/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", url.PathEscape(parameterValueToString(r.owner, "owner")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", url.PathEscape(parameterValueToString(r.identifier, "identifier")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"slug_perm"+"}", url.PathEscape(parameterValueToString(r.slugPerm, "slugPerm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["apikey"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-Api-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorDetail + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 422 { + var v ErrorDetail + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiReposUpstreamDartListRequest struct { + ctx context.Context + ApiService *ReposApiService + owner string + identifier string + page *int64 + pageSize *int64 +} + +// A page number within the paginated result set. +func (r ApiReposUpstreamDartListRequest) Page(page int64) ApiReposUpstreamDartListRequest { + r.page = &page + return r +} + +// Number of results to return per page. +func (r ApiReposUpstreamDartListRequest) PageSize(pageSize int64) ApiReposUpstreamDartListRequest { + r.pageSize = &pageSize + return r +} + +func (r ApiReposUpstreamDartListRequest) Execute() ([]DartUpstream, *http.Response, error) { + return r.ApiService.ReposUpstreamDartListExecute(r) +} + +/* +ReposUpstreamDartList List Dart upstream configs for this repository. + +List Dart upstream configs for this repository. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param owner + @param identifier + @return ApiReposUpstreamDartListRequest +*/ +func (a *ReposApiService) ReposUpstreamDartList(ctx context.Context, owner string, identifier string) ApiReposUpstreamDartListRequest { + return ApiReposUpstreamDartListRequest{ + ApiService: a, + ctx: ctx, + owner: owner, + identifier: identifier, + } +} + +// Execute executes the request +// @return []DartUpstream +func (a *ReposApiService) ReposUpstreamDartListExecute(r ApiReposUpstreamDartListRequest) ([]DartUpstream, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []DartUpstream + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamDartList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/dart/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", url.PathEscape(parameterValueToString(r.owner, "owner")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", url.PathEscape(parameterValueToString(r.identifier, "identifier")), -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, "", "") + } + // 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 ApiReposUpstreamDartPartialUpdateRequest struct { + ctx context.Context + ApiService *ReposApiService + owner string + identifier string + slugPerm string + data *DartUpstreamRequestPatch +} + +func (r ApiReposUpstreamDartPartialUpdateRequest) Data(data DartUpstreamRequestPatch) ApiReposUpstreamDartPartialUpdateRequest { + r.data = &data + return r +} + +func (r ApiReposUpstreamDartPartialUpdateRequest) Execute() (*DartUpstream, *http.Response, error) { + return r.ApiService.ReposUpstreamDartPartialUpdateExecute(r) +} + +/* +ReposUpstreamDartPartialUpdate Partially update a Dart upstream config for this repository. + +Partially update a Dart upstream config for this repository. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param owner + @param identifier + @param slugPerm + @return ApiReposUpstreamDartPartialUpdateRequest +*/ +func (a *ReposApiService) ReposUpstreamDartPartialUpdate(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamDartPartialUpdateRequest { + return ApiReposUpstreamDartPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + owner: owner, + identifier: identifier, + slugPerm: slugPerm, + } +} + +// Execute executes the request +// @return DartUpstream +func (a *ReposApiService) ReposUpstreamDartPartialUpdateExecute(r ApiReposUpstreamDartPartialUpdateRequest) (*DartUpstream, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DartUpstream + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamDartPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/dart/{slug_perm}/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", url.PathEscape(parameterValueToString(r.owner, "owner")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", url.PathEscape(parameterValueToString(r.identifier, "identifier")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"slug_perm"+"}", url.PathEscape(parameterValueToString(r.slugPerm, "slugPerm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.data + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["apikey"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-Api-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorDetail + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 422 { + var v ErrorDetail + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReposUpstreamDartReadRequest struct { + ctx context.Context + ApiService *ReposApiService + owner string + identifier string + slugPerm string +} + +func (r ApiReposUpstreamDartReadRequest) Execute() (*DartUpstream, *http.Response, error) { + return r.ApiService.ReposUpstreamDartReadExecute(r) +} + +/* +ReposUpstreamDartRead Retrieve a Dart upstream config for this repository. + +Retrieve a Dart upstream config for this repository. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param owner + @param identifier + @param slugPerm + @return ApiReposUpstreamDartReadRequest +*/ +func (a *ReposApiService) ReposUpstreamDartRead(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamDartReadRequest { + return ApiReposUpstreamDartReadRequest{ + ApiService: a, + ctx: ctx, + owner: owner, + identifier: identifier, + slugPerm: slugPerm, + } +} + +// Execute executes the request +// @return DartUpstream +func (a *ReposApiService) ReposUpstreamDartReadExecute(r ApiReposUpstreamDartReadRequest) (*DartUpstream, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DartUpstream + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamDartRead") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/dart/{slug_perm}/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", url.PathEscape(parameterValueToString(r.owner, "owner")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", url.PathEscape(parameterValueToString(r.identifier, "identifier")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"slug_perm"+"}", url.PathEscape(parameterValueToString(r.slugPerm, "slugPerm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["apikey"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-Api-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorDetail + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 422 { + var v ErrorDetail + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReposUpstreamDartUpdateRequest struct { + ctx context.Context + ApiService *ReposApiService + owner string + identifier string + slugPerm string + data *DartUpstreamRequest +} + +func (r ApiReposUpstreamDartUpdateRequest) Data(data DartUpstreamRequest) ApiReposUpstreamDartUpdateRequest { + r.data = &data + return r +} + +func (r ApiReposUpstreamDartUpdateRequest) Execute() (*DartUpstream, *http.Response, error) { + return r.ApiService.ReposUpstreamDartUpdateExecute(r) +} + +/* +ReposUpstreamDartUpdate Update a Dart upstream config for this repository. + +Update a Dart upstream config for this repository. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param owner + @param identifier + @param slugPerm + @return ApiReposUpstreamDartUpdateRequest +*/ +func (a *ReposApiService) ReposUpstreamDartUpdate(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamDartUpdateRequest { + return ApiReposUpstreamDartUpdateRequest{ + ApiService: a, + ctx: ctx, + owner: owner, + identifier: identifier, + slugPerm: slugPerm, + } +} + +// Execute executes the request +// @return DartUpstream +func (a *ReposApiService) ReposUpstreamDartUpdateExecute(r ApiReposUpstreamDartUpdateRequest) (*DartUpstream, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DartUpstream + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamDartUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/dart/{slug_perm}/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", url.PathEscape(parameterValueToString(r.owner, "owner")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", url.PathEscape(parameterValueToString(r.identifier, "identifier")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"slug_perm"+"}", url.PathEscape(parameterValueToString(r.slugPerm, "slugPerm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.data + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["apikey"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-Api-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorDetail + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 422 { + var v ErrorDetail + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReposUpstreamDebCreateRequest struct { + ctx context.Context + ApiService *ReposApiService + owner string + identifier string + data *DebUpstreamRequest } func (r ApiReposUpstreamDebCreateRequest) Data(data DebUpstreamRequest) ApiReposUpstreamDebCreateRequest { @@ -7904,22 +8805,923 @@ func (r ApiReposUpstreamDebCreateRequest) Data(data DebUpstreamRequest) ApiRepos return r } -func (r ApiReposUpstreamDebCreateRequest) Execute() (*DebUpstream, *http.Response, error) { - return r.ApiService.ReposUpstreamDebCreateExecute(r) +func (r ApiReposUpstreamDebCreateRequest) Execute() (*DebUpstream, *http.Response, error) { + return r.ApiService.ReposUpstreamDebCreateExecute(r) +} + +/* +ReposUpstreamDebCreate Create a Debian upstream config for this repository. + +Create a Debian upstream config for this repository. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param owner + @param identifier + @return ApiReposUpstreamDebCreateRequest +*/ +func (a *ReposApiService) ReposUpstreamDebCreate(ctx context.Context, owner string, identifier string) ApiReposUpstreamDebCreateRequest { + return ApiReposUpstreamDebCreateRequest{ + ApiService: a, + ctx: ctx, + owner: owner, + identifier: identifier, + } +} + +// Execute executes the request +// @return DebUpstream +func (a *ReposApiService) ReposUpstreamDebCreateExecute(r ApiReposUpstreamDebCreateRequest) (*DebUpstream, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DebUpstream + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamDebCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/deb/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", url.PathEscape(parameterValueToString(r.owner, "owner")), -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 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 ApiReposUpstreamDebDeleteRequest struct { + ctx context.Context + ApiService *ReposApiService + owner string + identifier string + slugPerm string +} + +func (r ApiReposUpstreamDebDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.ReposUpstreamDebDeleteExecute(r) +} + +/* +ReposUpstreamDebDelete Delete a Debian upstream config for this repository. + +Delete a Debian upstream config for this repository. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param owner + @param identifier + @param slugPerm + @return ApiReposUpstreamDebDeleteRequest +*/ +func (a *ReposApiService) ReposUpstreamDebDelete(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamDebDeleteRequest { + return ApiReposUpstreamDebDeleteRequest{ + ApiService: a, + ctx: ctx, + owner: owner, + identifier: identifier, + slugPerm: slugPerm, + } +} + +// Execute executes the request +func (a *ReposApiService) ReposUpstreamDebDeleteExecute(r ApiReposUpstreamDebDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamDebDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/deb/{slug_perm}/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", url.PathEscape(parameterValueToString(r.owner, "owner")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", url.PathEscape(parameterValueToString(r.identifier, "identifier")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"slug_perm"+"}", url.PathEscape(parameterValueToString(r.slugPerm, "slugPerm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["apikey"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-Api-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorDetail + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 422 { + var v ErrorDetail + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiReposUpstreamDebListRequest struct { + ctx context.Context + ApiService *ReposApiService + owner string + identifier string + page *int64 + pageSize *int64 +} + +// A page number within the paginated result set. +func (r ApiReposUpstreamDebListRequest) Page(page int64) ApiReposUpstreamDebListRequest { + r.page = &page + return r +} + +// Number of results to return per page. +func (r ApiReposUpstreamDebListRequest) PageSize(pageSize int64) ApiReposUpstreamDebListRequest { + r.pageSize = &pageSize + return r +} + +func (r ApiReposUpstreamDebListRequest) Execute() ([]DebUpstream, *http.Response, error) { + return r.ApiService.ReposUpstreamDebListExecute(r) +} + +/* +ReposUpstreamDebList List Debian upstream configs for this repository. + +List Debian upstream configs for this repository. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param owner + @param identifier + @return ApiReposUpstreamDebListRequest +*/ +func (a *ReposApiService) ReposUpstreamDebList(ctx context.Context, owner string, identifier string) ApiReposUpstreamDebListRequest { + return ApiReposUpstreamDebListRequest{ + ApiService: a, + ctx: ctx, + owner: owner, + identifier: identifier, + } +} + +// Execute executes the request +// @return []DebUpstream +func (a *ReposApiService) ReposUpstreamDebListExecute(r ApiReposUpstreamDebListRequest) ([]DebUpstream, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []DebUpstream + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamDebList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/deb/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", url.PathEscape(parameterValueToString(r.owner, "owner")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", url.PathEscape(parameterValueToString(r.identifier, "identifier")), -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, "", "") + } + // 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 ApiReposUpstreamDebPartialUpdateRequest struct { + ctx context.Context + ApiService *ReposApiService + owner string + identifier string + slugPerm string + data *DebUpstreamRequestPatch +} + +func (r ApiReposUpstreamDebPartialUpdateRequest) Data(data DebUpstreamRequestPatch) ApiReposUpstreamDebPartialUpdateRequest { + r.data = &data + return r +} + +func (r ApiReposUpstreamDebPartialUpdateRequest) Execute() (*DebUpstream, *http.Response, error) { + return r.ApiService.ReposUpstreamDebPartialUpdateExecute(r) +} + +/* +ReposUpstreamDebPartialUpdate Partially update a Debian upstream config for this repository. + +Partially update a Debian upstream config for this repository. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param owner + @param identifier + @param slugPerm + @return ApiReposUpstreamDebPartialUpdateRequest +*/ +func (a *ReposApiService) ReposUpstreamDebPartialUpdate(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamDebPartialUpdateRequest { + return ApiReposUpstreamDebPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + owner: owner, + identifier: identifier, + slugPerm: slugPerm, + } +} + +// Execute executes the request +// @return DebUpstream +func (a *ReposApiService) ReposUpstreamDebPartialUpdateExecute(r ApiReposUpstreamDebPartialUpdateRequest) (*DebUpstream, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DebUpstream + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamDebPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/deb/{slug_perm}/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", url.PathEscape(parameterValueToString(r.owner, "owner")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", url.PathEscape(parameterValueToString(r.identifier, "identifier")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"slug_perm"+"}", url.PathEscape(parameterValueToString(r.slugPerm, "slugPerm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.data + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["apikey"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-Api-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorDetail + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 422 { + var v ErrorDetail + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReposUpstreamDebReadRequest struct { + ctx context.Context + ApiService *ReposApiService + owner string + identifier string + slugPerm string +} + +func (r ApiReposUpstreamDebReadRequest) Execute() (*DebUpstream, *http.Response, error) { + return r.ApiService.ReposUpstreamDebReadExecute(r) +} + +/* +ReposUpstreamDebRead Retrieve a Debian upstream config for this repository. + +Retrieve a Debian upstream config for this repository. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param owner + @param identifier + @param slugPerm + @return ApiReposUpstreamDebReadRequest +*/ +func (a *ReposApiService) ReposUpstreamDebRead(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamDebReadRequest { + return ApiReposUpstreamDebReadRequest{ + ApiService: a, + ctx: ctx, + owner: owner, + identifier: identifier, + slugPerm: slugPerm, + } +} + +// Execute executes the request +// @return DebUpstream +func (a *ReposApiService) ReposUpstreamDebReadExecute(r ApiReposUpstreamDebReadRequest) (*DebUpstream, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DebUpstream + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamDebRead") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/deb/{slug_perm}/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", url.PathEscape(parameterValueToString(r.owner, "owner")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", url.PathEscape(parameterValueToString(r.identifier, "identifier")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"slug_perm"+"}", url.PathEscape(parameterValueToString(r.slugPerm, "slugPerm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["apikey"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-Api-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorDetail + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 422 { + var v ErrorDetail + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReposUpstreamDebUpdateRequest struct { + ctx context.Context + ApiService *ReposApiService + owner string + identifier string + slugPerm string + data *DebUpstreamRequest +} + +func (r ApiReposUpstreamDebUpdateRequest) Data(data DebUpstreamRequest) ApiReposUpstreamDebUpdateRequest { + r.data = &data + return r +} + +func (r ApiReposUpstreamDebUpdateRequest) Execute() (*DebUpstream, *http.Response, error) { + return r.ApiService.ReposUpstreamDebUpdateExecute(r) +} + +/* +ReposUpstreamDebUpdate Update a Debian upstream config for this repository. + +Update a Debian upstream config for this repository. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param owner + @param identifier + @param slugPerm + @return ApiReposUpstreamDebUpdateRequest +*/ +func (a *ReposApiService) ReposUpstreamDebUpdate(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamDebUpdateRequest { + return ApiReposUpstreamDebUpdateRequest{ + ApiService: a, + ctx: ctx, + owner: owner, + identifier: identifier, + slugPerm: slugPerm, + } +} + +// Execute executes the request +// @return DebUpstream +func (a *ReposApiService) ReposUpstreamDebUpdateExecute(r ApiReposUpstreamDebUpdateRequest) (*DebUpstream, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DebUpstream + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamDebUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/deb/{slug_perm}/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", url.PathEscape(parameterValueToString(r.owner, "owner")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", url.PathEscape(parameterValueToString(r.identifier, "identifier")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"slug_perm"+"}", url.PathEscape(parameterValueToString(r.slugPerm, "slugPerm")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.data + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["apikey"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-Api-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorDetail + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 422 { + var v ErrorDetail + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReposUpstreamDockerCreateRequest struct { + ctx context.Context + ApiService *ReposApiService + owner string + identifier string + data *DockerUpstreamRequest +} + +func (r ApiReposUpstreamDockerCreateRequest) Data(data DockerUpstreamRequest) ApiReposUpstreamDockerCreateRequest { + r.data = &data + return r +} + +func (r ApiReposUpstreamDockerCreateRequest) Execute() (*DockerUpstream, *http.Response, error) { + return r.ApiService.ReposUpstreamDockerCreateExecute(r) } /* -ReposUpstreamDebCreate Create a Debian upstream config for this repository. +ReposUpstreamDockerCreate Create a Docker upstream config for this repository. -Create a Debian upstream config for this repository. +Create a Docker upstream config for this repository. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param owner @param identifier - @return ApiReposUpstreamDebCreateRequest + @return ApiReposUpstreamDockerCreateRequest */ -func (a *ReposApiService) ReposUpstreamDebCreate(ctx context.Context, owner string, identifier string) ApiReposUpstreamDebCreateRequest { - return ApiReposUpstreamDebCreateRequest{ +func (a *ReposApiService) ReposUpstreamDockerCreate(ctx context.Context, owner string, identifier string) ApiReposUpstreamDockerCreateRequest { + return ApiReposUpstreamDockerCreateRequest{ ApiService: a, ctx: ctx, owner: owner, @@ -7928,21 +9730,21 @@ func (a *ReposApiService) ReposUpstreamDebCreate(ctx context.Context, owner stri } // Execute executes the request -// @return DebUpstream -func (a *ReposApiService) ReposUpstreamDebCreateExecute(r ApiReposUpstreamDebCreateRequest) (*DebUpstream, *http.Response, error) { +// @return DockerUpstream +func (a *ReposApiService) ReposUpstreamDockerCreateExecute(r ApiReposUpstreamDockerCreateRequest) (*DockerUpstream, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *DebUpstream + localVarReturnValue *DockerUpstream ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamDebCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamDockerCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/deb/" + localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/docker/" localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", url.PathEscape(parameterValueToString(r.owner, "owner")), -1) localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", url.PathEscape(parameterValueToString(r.identifier, "identifier")), -1) @@ -8041,7 +9843,7 @@ func (a *ReposApiService) ReposUpstreamDebCreateExecute(r ApiReposUpstreamDebCre return localVarReturnValue, localVarHTTPResponse, nil } -type ApiReposUpstreamDebDeleteRequest struct { +type ApiReposUpstreamDockerDeleteRequest struct { ctx context.Context ApiService *ReposApiService owner string @@ -8049,23 +9851,23 @@ type ApiReposUpstreamDebDeleteRequest struct { slugPerm string } -func (r ApiReposUpstreamDebDeleteRequest) Execute() (*http.Response, error) { - return r.ApiService.ReposUpstreamDebDeleteExecute(r) +func (r ApiReposUpstreamDockerDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.ReposUpstreamDockerDeleteExecute(r) } /* -ReposUpstreamDebDelete Delete a Debian upstream config for this repository. +ReposUpstreamDockerDelete Delete a Docker upstream config for this repository. -Delete a Debian upstream config for this repository. +Delete a Docker upstream config for this repository. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param owner @param identifier @param slugPerm - @return ApiReposUpstreamDebDeleteRequest + @return ApiReposUpstreamDockerDeleteRequest */ -func (a *ReposApiService) ReposUpstreamDebDelete(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamDebDeleteRequest { - return ApiReposUpstreamDebDeleteRequest{ +func (a *ReposApiService) ReposUpstreamDockerDelete(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamDockerDeleteRequest { + return ApiReposUpstreamDockerDeleteRequest{ ApiService: a, ctx: ctx, owner: owner, @@ -8075,19 +9877,19 @@ func (a *ReposApiService) ReposUpstreamDebDelete(ctx context.Context, owner stri } // Execute executes the request -func (a *ReposApiService) ReposUpstreamDebDeleteExecute(r ApiReposUpstreamDebDeleteRequest) (*http.Response, error) { +func (a *ReposApiService) ReposUpstreamDockerDeleteExecute(r ApiReposUpstreamDockerDeleteRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamDebDelete") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamDockerDelete") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/deb/{slug_perm}/" + localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/docker/{slug_perm}/" localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", url.PathEscape(parameterValueToString(r.owner, "owner")), -1) localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", url.PathEscape(parameterValueToString(r.identifier, "identifier")), -1) localVarPath = strings.Replace(localVarPath, "{"+"slug_perm"+"}", url.PathEscape(parameterValueToString(r.slugPerm, "slugPerm")), -1) @@ -8176,7 +9978,7 @@ func (a *ReposApiService) ReposUpstreamDebDeleteExecute(r ApiReposUpstreamDebDel return localVarHTTPResponse, nil } -type ApiReposUpstreamDebListRequest struct { +type ApiReposUpstreamDockerListRequest struct { ctx context.Context ApiService *ReposApiService owner string @@ -8186,33 +9988,33 @@ type ApiReposUpstreamDebListRequest struct { } // A page number within the paginated result set. -func (r ApiReposUpstreamDebListRequest) Page(page int64) ApiReposUpstreamDebListRequest { +func (r ApiReposUpstreamDockerListRequest) Page(page int64) ApiReposUpstreamDockerListRequest { r.page = &page return r } // Number of results to return per page. -func (r ApiReposUpstreamDebListRequest) PageSize(pageSize int64) ApiReposUpstreamDebListRequest { +func (r ApiReposUpstreamDockerListRequest) PageSize(pageSize int64) ApiReposUpstreamDockerListRequest { r.pageSize = &pageSize return r } -func (r ApiReposUpstreamDebListRequest) Execute() ([]DebUpstream, *http.Response, error) { - return r.ApiService.ReposUpstreamDebListExecute(r) +func (r ApiReposUpstreamDockerListRequest) Execute() ([]DockerUpstream, *http.Response, error) { + return r.ApiService.ReposUpstreamDockerListExecute(r) } /* -ReposUpstreamDebList List Debian upstream configs for this repository. +ReposUpstreamDockerList List Docker upstream configs for this repository. -List Debian upstream configs for this repository. +List Docker upstream configs for this repository. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param owner @param identifier - @return ApiReposUpstreamDebListRequest + @return ApiReposUpstreamDockerListRequest */ -func (a *ReposApiService) ReposUpstreamDebList(ctx context.Context, owner string, identifier string) ApiReposUpstreamDebListRequest { - return ApiReposUpstreamDebListRequest{ +func (a *ReposApiService) ReposUpstreamDockerList(ctx context.Context, owner string, identifier string) ApiReposUpstreamDockerListRequest { + return ApiReposUpstreamDockerListRequest{ ApiService: a, ctx: ctx, owner: owner, @@ -8221,21 +10023,21 @@ func (a *ReposApiService) ReposUpstreamDebList(ctx context.Context, owner string } // Execute executes the request -// @return []DebUpstream -func (a *ReposApiService) ReposUpstreamDebListExecute(r ApiReposUpstreamDebListRequest) ([]DebUpstream, *http.Response, error) { +// @return []DockerUpstream +func (a *ReposApiService) ReposUpstreamDockerListExecute(r ApiReposUpstreamDockerListRequest) ([]DockerUpstream, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue []DebUpstream + localVarReturnValue []DockerUpstream ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamDebList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamDockerList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/deb/" + localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/docker/" localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", url.PathEscape(parameterValueToString(r.owner, "owner")), -1) localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", url.PathEscape(parameterValueToString(r.identifier, "identifier")), -1) @@ -8338,37 +10140,37 @@ func (a *ReposApiService) ReposUpstreamDebListExecute(r ApiReposUpstreamDebListR return localVarReturnValue, localVarHTTPResponse, nil } -type ApiReposUpstreamDebPartialUpdateRequest struct { +type ApiReposUpstreamDockerPartialUpdateRequest struct { ctx context.Context ApiService *ReposApiService owner string identifier string slugPerm string - data *DebUpstreamRequestPatch + data *DockerUpstreamRequestPatch } -func (r ApiReposUpstreamDebPartialUpdateRequest) Data(data DebUpstreamRequestPatch) ApiReposUpstreamDebPartialUpdateRequest { +func (r ApiReposUpstreamDockerPartialUpdateRequest) Data(data DockerUpstreamRequestPatch) ApiReposUpstreamDockerPartialUpdateRequest { r.data = &data return r } -func (r ApiReposUpstreamDebPartialUpdateRequest) Execute() (*DebUpstream, *http.Response, error) { - return r.ApiService.ReposUpstreamDebPartialUpdateExecute(r) +func (r ApiReposUpstreamDockerPartialUpdateRequest) Execute() (*DockerUpstream, *http.Response, error) { + return r.ApiService.ReposUpstreamDockerPartialUpdateExecute(r) } /* -ReposUpstreamDebPartialUpdate Partially update a Debian upstream config for this repository. +ReposUpstreamDockerPartialUpdate Partially update a Docker upstream config for this repository. -Partially update a Debian upstream config for this repository. +Partially update a Docker upstream config for this repository. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param owner @param identifier @param slugPerm - @return ApiReposUpstreamDebPartialUpdateRequest + @return ApiReposUpstreamDockerPartialUpdateRequest */ -func (a *ReposApiService) ReposUpstreamDebPartialUpdate(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamDebPartialUpdateRequest { - return ApiReposUpstreamDebPartialUpdateRequest{ +func (a *ReposApiService) ReposUpstreamDockerPartialUpdate(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamDockerPartialUpdateRequest { + return ApiReposUpstreamDockerPartialUpdateRequest{ ApiService: a, ctx: ctx, owner: owner, @@ -8378,21 +10180,21 @@ func (a *ReposApiService) ReposUpstreamDebPartialUpdate(ctx context.Context, own } // Execute executes the request -// @return DebUpstream -func (a *ReposApiService) ReposUpstreamDebPartialUpdateExecute(r ApiReposUpstreamDebPartialUpdateRequest) (*DebUpstream, *http.Response, error) { +// @return DockerUpstream +func (a *ReposApiService) ReposUpstreamDockerPartialUpdateExecute(r ApiReposUpstreamDockerPartialUpdateRequest) (*DockerUpstream, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue *DebUpstream + localVarReturnValue *DockerUpstream ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamDebPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamDockerPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/deb/{slug_perm}/" + localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/docker/{slug_perm}/" localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", url.PathEscape(parameterValueToString(r.owner, "owner")), -1) localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", url.PathEscape(parameterValueToString(r.identifier, "identifier")), -1) localVarPath = strings.Replace(localVarPath, "{"+"slug_perm"+"}", url.PathEscape(parameterValueToString(r.slugPerm, "slugPerm")), -1) @@ -8492,7 +10294,7 @@ func (a *ReposApiService) ReposUpstreamDebPartialUpdateExecute(r ApiReposUpstrea return localVarReturnValue, localVarHTTPResponse, nil } -type ApiReposUpstreamDebReadRequest struct { +type ApiReposUpstreamDockerReadRequest struct { ctx context.Context ApiService *ReposApiService owner string @@ -8500,23 +10302,23 @@ type ApiReposUpstreamDebReadRequest struct { slugPerm string } -func (r ApiReposUpstreamDebReadRequest) Execute() (*DebUpstream, *http.Response, error) { - return r.ApiService.ReposUpstreamDebReadExecute(r) +func (r ApiReposUpstreamDockerReadRequest) Execute() (*DockerUpstream, *http.Response, error) { + return r.ApiService.ReposUpstreamDockerReadExecute(r) } /* -ReposUpstreamDebRead Retrieve a Debian upstream config for this repository. +ReposUpstreamDockerRead Retrieve a Docker upstream config for this repository. -Retrieve a Debian upstream config for this repository. +Retrieve a Docker upstream config for this repository. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param owner @param identifier @param slugPerm - @return ApiReposUpstreamDebReadRequest + @return ApiReposUpstreamDockerReadRequest */ -func (a *ReposApiService) ReposUpstreamDebRead(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamDebReadRequest { - return ApiReposUpstreamDebReadRequest{ +func (a *ReposApiService) ReposUpstreamDockerRead(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamDockerReadRequest { + return ApiReposUpstreamDockerReadRequest{ ApiService: a, ctx: ctx, owner: owner, @@ -8526,21 +10328,21 @@ func (a *ReposApiService) ReposUpstreamDebRead(ctx context.Context, owner string } // Execute executes the request -// @return DebUpstream -func (a *ReposApiService) ReposUpstreamDebReadExecute(r ApiReposUpstreamDebReadRequest) (*DebUpstream, *http.Response, error) { +// @return DockerUpstream +func (a *ReposApiService) ReposUpstreamDockerReadExecute(r ApiReposUpstreamDockerReadRequest) (*DockerUpstream, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *DebUpstream + localVarReturnValue *DockerUpstream ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamDebRead") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamDockerRead") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/deb/{slug_perm}/" + localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/docker/{slug_perm}/" localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", url.PathEscape(parameterValueToString(r.owner, "owner")), -1) localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", url.PathEscape(parameterValueToString(r.identifier, "identifier")), -1) localVarPath = strings.Replace(localVarPath, "{"+"slug_perm"+"}", url.PathEscape(parameterValueToString(r.slugPerm, "slugPerm")), -1) @@ -8638,37 +10440,37 @@ func (a *ReposApiService) ReposUpstreamDebReadExecute(r ApiReposUpstreamDebReadR return localVarReturnValue, localVarHTTPResponse, nil } -type ApiReposUpstreamDebUpdateRequest struct { +type ApiReposUpstreamDockerUpdateRequest struct { ctx context.Context ApiService *ReposApiService owner string identifier string slugPerm string - data *DebUpstreamRequest + data *DockerUpstreamRequest } -func (r ApiReposUpstreamDebUpdateRequest) Data(data DebUpstreamRequest) ApiReposUpstreamDebUpdateRequest { +func (r ApiReposUpstreamDockerUpdateRequest) Data(data DockerUpstreamRequest) ApiReposUpstreamDockerUpdateRequest { r.data = &data return r } -func (r ApiReposUpstreamDebUpdateRequest) Execute() (*DebUpstream, *http.Response, error) { - return r.ApiService.ReposUpstreamDebUpdateExecute(r) +func (r ApiReposUpstreamDockerUpdateRequest) Execute() (*DockerUpstream, *http.Response, error) { + return r.ApiService.ReposUpstreamDockerUpdateExecute(r) } /* -ReposUpstreamDebUpdate Update a Debian upstream config for this repository. +ReposUpstreamDockerUpdate Update a Docker upstream config for this repository. -Update a Debian upstream config for this repository. +Update a Docker upstream config for this repository. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param owner @param identifier @param slugPerm - @return ApiReposUpstreamDebUpdateRequest + @return ApiReposUpstreamDockerUpdateRequest */ -func (a *ReposApiService) ReposUpstreamDebUpdate(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamDebUpdateRequest { - return ApiReposUpstreamDebUpdateRequest{ +func (a *ReposApiService) ReposUpstreamDockerUpdate(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamDockerUpdateRequest { + return ApiReposUpstreamDockerUpdateRequest{ ApiService: a, ctx: ctx, owner: owner, @@ -8678,21 +10480,21 @@ func (a *ReposApiService) ReposUpstreamDebUpdate(ctx context.Context, owner stri } // Execute executes the request -// @return DebUpstream -func (a *ReposApiService) ReposUpstreamDebUpdateExecute(r ApiReposUpstreamDebUpdateRequest) (*DebUpstream, *http.Response, error) { +// @return DockerUpstream +func (a *ReposApiService) ReposUpstreamDockerUpdateExecute(r ApiReposUpstreamDockerUpdateRequest) (*DockerUpstream, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue *DebUpstream + localVarReturnValue *DockerUpstream ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamDebUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamDockerUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/deb/{slug_perm}/" + localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/docker/{slug_perm}/" localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", url.PathEscape(parameterValueToString(r.owner, "owner")), -1) localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", url.PathEscape(parameterValueToString(r.identifier, "identifier")), -1) localVarPath = strings.Replace(localVarPath, "{"+"slug_perm"+"}", url.PathEscape(parameterValueToString(r.slugPerm, "slugPerm")), -1) @@ -8792,35 +10594,35 @@ func (a *ReposApiService) ReposUpstreamDebUpdateExecute(r ApiReposUpstreamDebUpd return localVarReturnValue, localVarHTTPResponse, nil } -type ApiReposUpstreamDockerCreateRequest struct { +type ApiReposUpstreamGoCreateRequest struct { ctx context.Context ApiService *ReposApiService owner string identifier string - data *DockerUpstreamRequest + data *GoUpstreamRequest } -func (r ApiReposUpstreamDockerCreateRequest) Data(data DockerUpstreamRequest) ApiReposUpstreamDockerCreateRequest { +func (r ApiReposUpstreamGoCreateRequest) Data(data GoUpstreamRequest) ApiReposUpstreamGoCreateRequest { r.data = &data return r } -func (r ApiReposUpstreamDockerCreateRequest) Execute() (*DockerUpstream, *http.Response, error) { - return r.ApiService.ReposUpstreamDockerCreateExecute(r) +func (r ApiReposUpstreamGoCreateRequest) Execute() (*GoUpstream, *http.Response, error) { + return r.ApiService.ReposUpstreamGoCreateExecute(r) } /* -ReposUpstreamDockerCreate Create a Docker upstream config for this repository. +ReposUpstreamGoCreate Create a Go upstream config for this repository. -Create a Docker upstream config for this repository. +Create a Go upstream config for this repository. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param owner @param identifier - @return ApiReposUpstreamDockerCreateRequest + @return ApiReposUpstreamGoCreateRequest */ -func (a *ReposApiService) ReposUpstreamDockerCreate(ctx context.Context, owner string, identifier string) ApiReposUpstreamDockerCreateRequest { - return ApiReposUpstreamDockerCreateRequest{ +func (a *ReposApiService) ReposUpstreamGoCreate(ctx context.Context, owner string, identifier string) ApiReposUpstreamGoCreateRequest { + return ApiReposUpstreamGoCreateRequest{ ApiService: a, ctx: ctx, owner: owner, @@ -8829,21 +10631,21 @@ func (a *ReposApiService) ReposUpstreamDockerCreate(ctx context.Context, owner s } // Execute executes the request -// @return DockerUpstream -func (a *ReposApiService) ReposUpstreamDockerCreateExecute(r ApiReposUpstreamDockerCreateRequest) (*DockerUpstream, *http.Response, error) { +// @return GoUpstream +func (a *ReposApiService) ReposUpstreamGoCreateExecute(r ApiReposUpstreamGoCreateRequest) (*GoUpstream, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *DockerUpstream + localVarReturnValue *GoUpstream ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamDockerCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamGoCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/docker/" + localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/go/" localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", url.PathEscape(parameterValueToString(r.owner, "owner")), -1) localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", url.PathEscape(parameterValueToString(r.identifier, "identifier")), -1) @@ -8942,7 +10744,7 @@ func (a *ReposApiService) ReposUpstreamDockerCreateExecute(r ApiReposUpstreamDoc return localVarReturnValue, localVarHTTPResponse, nil } -type ApiReposUpstreamDockerDeleteRequest struct { +type ApiReposUpstreamGoDeleteRequest struct { ctx context.Context ApiService *ReposApiService owner string @@ -8950,23 +10752,23 @@ type ApiReposUpstreamDockerDeleteRequest struct { slugPerm string } -func (r ApiReposUpstreamDockerDeleteRequest) Execute() (*http.Response, error) { - return r.ApiService.ReposUpstreamDockerDeleteExecute(r) +func (r ApiReposUpstreamGoDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.ReposUpstreamGoDeleteExecute(r) } /* -ReposUpstreamDockerDelete Delete a Docker upstream config for this repository. +ReposUpstreamGoDelete Delete a Go upstream config for this repository. -Delete a Docker upstream config for this repository. +Delete a Go upstream config for this repository. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param owner @param identifier @param slugPerm - @return ApiReposUpstreamDockerDeleteRequest + @return ApiReposUpstreamGoDeleteRequest */ -func (a *ReposApiService) ReposUpstreamDockerDelete(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamDockerDeleteRequest { - return ApiReposUpstreamDockerDeleteRequest{ +func (a *ReposApiService) ReposUpstreamGoDelete(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamGoDeleteRequest { + return ApiReposUpstreamGoDeleteRequest{ ApiService: a, ctx: ctx, owner: owner, @@ -8976,19 +10778,19 @@ func (a *ReposApiService) ReposUpstreamDockerDelete(ctx context.Context, owner s } // Execute executes the request -func (a *ReposApiService) ReposUpstreamDockerDeleteExecute(r ApiReposUpstreamDockerDeleteRequest) (*http.Response, error) { +func (a *ReposApiService) ReposUpstreamGoDeleteExecute(r ApiReposUpstreamGoDeleteRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamDockerDelete") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamGoDelete") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/docker/{slug_perm}/" + localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/go/{slug_perm}/" localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", url.PathEscape(parameterValueToString(r.owner, "owner")), -1) localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", url.PathEscape(parameterValueToString(r.identifier, "identifier")), -1) localVarPath = strings.Replace(localVarPath, "{"+"slug_perm"+"}", url.PathEscape(parameterValueToString(r.slugPerm, "slugPerm")), -1) @@ -9077,7 +10879,7 @@ func (a *ReposApiService) ReposUpstreamDockerDeleteExecute(r ApiReposUpstreamDoc return localVarHTTPResponse, nil } -type ApiReposUpstreamDockerListRequest struct { +type ApiReposUpstreamGoListRequest struct { ctx context.Context ApiService *ReposApiService owner string @@ -9087,33 +10889,33 @@ type ApiReposUpstreamDockerListRequest struct { } // A page number within the paginated result set. -func (r ApiReposUpstreamDockerListRequest) Page(page int64) ApiReposUpstreamDockerListRequest { +func (r ApiReposUpstreamGoListRequest) Page(page int64) ApiReposUpstreamGoListRequest { r.page = &page return r } // Number of results to return per page. -func (r ApiReposUpstreamDockerListRequest) PageSize(pageSize int64) ApiReposUpstreamDockerListRequest { +func (r ApiReposUpstreamGoListRequest) PageSize(pageSize int64) ApiReposUpstreamGoListRequest { r.pageSize = &pageSize return r } -func (r ApiReposUpstreamDockerListRequest) Execute() ([]DockerUpstream, *http.Response, error) { - return r.ApiService.ReposUpstreamDockerListExecute(r) +func (r ApiReposUpstreamGoListRequest) Execute() ([]GoUpstream, *http.Response, error) { + return r.ApiService.ReposUpstreamGoListExecute(r) } /* -ReposUpstreamDockerList List Docker upstream configs for this repository. +ReposUpstreamGoList List Go upstream configs for this repository. -List Docker upstream configs for this repository. +List Go upstream configs for this repository. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param owner @param identifier - @return ApiReposUpstreamDockerListRequest + @return ApiReposUpstreamGoListRequest */ -func (a *ReposApiService) ReposUpstreamDockerList(ctx context.Context, owner string, identifier string) ApiReposUpstreamDockerListRequest { - return ApiReposUpstreamDockerListRequest{ +func (a *ReposApiService) ReposUpstreamGoList(ctx context.Context, owner string, identifier string) ApiReposUpstreamGoListRequest { + return ApiReposUpstreamGoListRequest{ ApiService: a, ctx: ctx, owner: owner, @@ -9122,21 +10924,21 @@ func (a *ReposApiService) ReposUpstreamDockerList(ctx context.Context, owner str } // Execute executes the request -// @return []DockerUpstream -func (a *ReposApiService) ReposUpstreamDockerListExecute(r ApiReposUpstreamDockerListRequest) ([]DockerUpstream, *http.Response, error) { +// @return []GoUpstream +func (a *ReposApiService) ReposUpstreamGoListExecute(r ApiReposUpstreamGoListRequest) ([]GoUpstream, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue []DockerUpstream + localVarReturnValue []GoUpstream ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamDockerList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamGoList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/docker/" + localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/go/" localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", url.PathEscape(parameterValueToString(r.owner, "owner")), -1) localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", url.PathEscape(parameterValueToString(r.identifier, "identifier")), -1) @@ -9239,37 +11041,37 @@ func (a *ReposApiService) ReposUpstreamDockerListExecute(r ApiReposUpstreamDocke return localVarReturnValue, localVarHTTPResponse, nil } -type ApiReposUpstreamDockerPartialUpdateRequest struct { +type ApiReposUpstreamGoPartialUpdateRequest struct { ctx context.Context ApiService *ReposApiService owner string identifier string slugPerm string - data *DockerUpstreamRequestPatch + data *GoUpstreamRequestPatch } -func (r ApiReposUpstreamDockerPartialUpdateRequest) Data(data DockerUpstreamRequestPatch) ApiReposUpstreamDockerPartialUpdateRequest { +func (r ApiReposUpstreamGoPartialUpdateRequest) Data(data GoUpstreamRequestPatch) ApiReposUpstreamGoPartialUpdateRequest { r.data = &data return r } -func (r ApiReposUpstreamDockerPartialUpdateRequest) Execute() (*DockerUpstream, *http.Response, error) { - return r.ApiService.ReposUpstreamDockerPartialUpdateExecute(r) +func (r ApiReposUpstreamGoPartialUpdateRequest) Execute() (*GoUpstream, *http.Response, error) { + return r.ApiService.ReposUpstreamGoPartialUpdateExecute(r) } /* -ReposUpstreamDockerPartialUpdate Partially update a Docker upstream config for this repository. +ReposUpstreamGoPartialUpdate Partially update a Go upstream config for this repository. -Partially update a Docker upstream config for this repository. +Partially update a Go upstream config for this repository. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param owner @param identifier @param slugPerm - @return ApiReposUpstreamDockerPartialUpdateRequest + @return ApiReposUpstreamGoPartialUpdateRequest */ -func (a *ReposApiService) ReposUpstreamDockerPartialUpdate(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamDockerPartialUpdateRequest { - return ApiReposUpstreamDockerPartialUpdateRequest{ +func (a *ReposApiService) ReposUpstreamGoPartialUpdate(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamGoPartialUpdateRequest { + return ApiReposUpstreamGoPartialUpdateRequest{ ApiService: a, ctx: ctx, owner: owner, @@ -9279,21 +11081,21 @@ func (a *ReposApiService) ReposUpstreamDockerPartialUpdate(ctx context.Context, } // Execute executes the request -// @return DockerUpstream -func (a *ReposApiService) ReposUpstreamDockerPartialUpdateExecute(r ApiReposUpstreamDockerPartialUpdateRequest) (*DockerUpstream, *http.Response, error) { +// @return GoUpstream +func (a *ReposApiService) ReposUpstreamGoPartialUpdateExecute(r ApiReposUpstreamGoPartialUpdateRequest) (*GoUpstream, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue *DockerUpstream + localVarReturnValue *GoUpstream ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamDockerPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamGoPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/docker/{slug_perm}/" + localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/go/{slug_perm}/" localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", url.PathEscape(parameterValueToString(r.owner, "owner")), -1) localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", url.PathEscape(parameterValueToString(r.identifier, "identifier")), -1) localVarPath = strings.Replace(localVarPath, "{"+"slug_perm"+"}", url.PathEscape(parameterValueToString(r.slugPerm, "slugPerm")), -1) @@ -9393,7 +11195,7 @@ func (a *ReposApiService) ReposUpstreamDockerPartialUpdateExecute(r ApiReposUpst return localVarReturnValue, localVarHTTPResponse, nil } -type ApiReposUpstreamDockerReadRequest struct { +type ApiReposUpstreamGoReadRequest struct { ctx context.Context ApiService *ReposApiService owner string @@ -9401,23 +11203,23 @@ type ApiReposUpstreamDockerReadRequest struct { slugPerm string } -func (r ApiReposUpstreamDockerReadRequest) Execute() (*DockerUpstream, *http.Response, error) { - return r.ApiService.ReposUpstreamDockerReadExecute(r) +func (r ApiReposUpstreamGoReadRequest) Execute() (*GoUpstream, *http.Response, error) { + return r.ApiService.ReposUpstreamGoReadExecute(r) } /* -ReposUpstreamDockerRead Retrieve a Docker upstream config for this repository. +ReposUpstreamGoRead Retrieve a Go upstream config for this repository. -Retrieve a Docker upstream config for this repository. +Retrieve a Go upstream config for this repository. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param owner @param identifier @param slugPerm - @return ApiReposUpstreamDockerReadRequest + @return ApiReposUpstreamGoReadRequest */ -func (a *ReposApiService) ReposUpstreamDockerRead(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamDockerReadRequest { - return ApiReposUpstreamDockerReadRequest{ +func (a *ReposApiService) ReposUpstreamGoRead(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamGoReadRequest { + return ApiReposUpstreamGoReadRequest{ ApiService: a, ctx: ctx, owner: owner, @@ -9427,21 +11229,21 @@ func (a *ReposApiService) ReposUpstreamDockerRead(ctx context.Context, owner str } // Execute executes the request -// @return DockerUpstream -func (a *ReposApiService) ReposUpstreamDockerReadExecute(r ApiReposUpstreamDockerReadRequest) (*DockerUpstream, *http.Response, error) { +// @return GoUpstream +func (a *ReposApiService) ReposUpstreamGoReadExecute(r ApiReposUpstreamGoReadRequest) (*GoUpstream, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *DockerUpstream + localVarReturnValue *GoUpstream ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamDockerRead") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamGoRead") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/docker/{slug_perm}/" + localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/go/{slug_perm}/" localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", url.PathEscape(parameterValueToString(r.owner, "owner")), -1) localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", url.PathEscape(parameterValueToString(r.identifier, "identifier")), -1) localVarPath = strings.Replace(localVarPath, "{"+"slug_perm"+"}", url.PathEscape(parameterValueToString(r.slugPerm, "slugPerm")), -1) @@ -9539,37 +11341,37 @@ func (a *ReposApiService) ReposUpstreamDockerReadExecute(r ApiReposUpstreamDocke return localVarReturnValue, localVarHTTPResponse, nil } -type ApiReposUpstreamDockerUpdateRequest struct { +type ApiReposUpstreamGoUpdateRequest struct { ctx context.Context ApiService *ReposApiService owner string identifier string slugPerm string - data *DockerUpstreamRequest + data *GoUpstreamRequest } -func (r ApiReposUpstreamDockerUpdateRequest) Data(data DockerUpstreamRequest) ApiReposUpstreamDockerUpdateRequest { +func (r ApiReposUpstreamGoUpdateRequest) Data(data GoUpstreamRequest) ApiReposUpstreamGoUpdateRequest { r.data = &data return r } -func (r ApiReposUpstreamDockerUpdateRequest) Execute() (*DockerUpstream, *http.Response, error) { - return r.ApiService.ReposUpstreamDockerUpdateExecute(r) +func (r ApiReposUpstreamGoUpdateRequest) Execute() (*GoUpstream, *http.Response, error) { + return r.ApiService.ReposUpstreamGoUpdateExecute(r) } /* -ReposUpstreamDockerUpdate Update a Docker upstream config for this repository. +ReposUpstreamGoUpdate Update a Go upstream config for this repository. -Update a Docker upstream config for this repository. +Update a Go upstream config for this repository. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param owner @param identifier @param slugPerm - @return ApiReposUpstreamDockerUpdateRequest + @return ApiReposUpstreamGoUpdateRequest */ -func (a *ReposApiService) ReposUpstreamDockerUpdate(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamDockerUpdateRequest { - return ApiReposUpstreamDockerUpdateRequest{ +func (a *ReposApiService) ReposUpstreamGoUpdate(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamGoUpdateRequest { + return ApiReposUpstreamGoUpdateRequest{ ApiService: a, ctx: ctx, owner: owner, @@ -9579,21 +11381,21 @@ func (a *ReposApiService) ReposUpstreamDockerUpdate(ctx context.Context, owner s } // Execute executes the request -// @return DockerUpstream -func (a *ReposApiService) ReposUpstreamDockerUpdateExecute(r ApiReposUpstreamDockerUpdateRequest) (*DockerUpstream, *http.Response, error) { +// @return GoUpstream +func (a *ReposApiService) ReposUpstreamGoUpdateExecute(r ApiReposUpstreamGoUpdateRequest) (*GoUpstream, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue *DockerUpstream + localVarReturnValue *GoUpstream ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamDockerUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamGoUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/docker/{slug_perm}/" + localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/go/{slug_perm}/" localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", url.PathEscape(parameterValueToString(r.owner, "owner")), -1) localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", url.PathEscape(parameterValueToString(r.identifier, "identifier")), -1) localVarPath = strings.Replace(localVarPath, "{"+"slug_perm"+"}", url.PathEscape(parameterValueToString(r.slugPerm, "slugPerm")), -1) @@ -9693,35 +11495,35 @@ func (a *ReposApiService) ReposUpstreamDockerUpdateExecute(r ApiReposUpstreamDoc return localVarReturnValue, localVarHTTPResponse, nil } -type ApiReposUpstreamGoCreateRequest struct { +type ApiReposUpstreamHelmCreateRequest struct { ctx context.Context ApiService *ReposApiService owner string identifier string - data *GoUpstreamRequest + data *HelmUpstreamRequest } -func (r ApiReposUpstreamGoCreateRequest) Data(data GoUpstreamRequest) ApiReposUpstreamGoCreateRequest { +func (r ApiReposUpstreamHelmCreateRequest) Data(data HelmUpstreamRequest) ApiReposUpstreamHelmCreateRequest { r.data = &data return r } -func (r ApiReposUpstreamGoCreateRequest) Execute() (*GoUpstream, *http.Response, error) { - return r.ApiService.ReposUpstreamGoCreateExecute(r) +func (r ApiReposUpstreamHelmCreateRequest) Execute() (*HelmUpstream, *http.Response, error) { + return r.ApiService.ReposUpstreamHelmCreateExecute(r) } /* -ReposUpstreamGoCreate Create a Go upstream config for this repository. +ReposUpstreamHelmCreate Create a Helm upstream config for this repository. -Create a Go upstream config for this repository. +Create a Helm upstream config for this repository. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param owner @param identifier - @return ApiReposUpstreamGoCreateRequest + @return ApiReposUpstreamHelmCreateRequest */ -func (a *ReposApiService) ReposUpstreamGoCreate(ctx context.Context, owner string, identifier string) ApiReposUpstreamGoCreateRequest { - return ApiReposUpstreamGoCreateRequest{ +func (a *ReposApiService) ReposUpstreamHelmCreate(ctx context.Context, owner string, identifier string) ApiReposUpstreamHelmCreateRequest { + return ApiReposUpstreamHelmCreateRequest{ ApiService: a, ctx: ctx, owner: owner, @@ -9730,21 +11532,21 @@ func (a *ReposApiService) ReposUpstreamGoCreate(ctx context.Context, owner strin } // Execute executes the request -// @return GoUpstream -func (a *ReposApiService) ReposUpstreamGoCreateExecute(r ApiReposUpstreamGoCreateRequest) (*GoUpstream, *http.Response, error) { +// @return HelmUpstream +func (a *ReposApiService) ReposUpstreamHelmCreateExecute(r ApiReposUpstreamHelmCreateRequest) (*HelmUpstream, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *GoUpstream + localVarReturnValue *HelmUpstream ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamGoCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamHelmCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/go/" + localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/helm/" localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", url.PathEscape(parameterValueToString(r.owner, "owner")), -1) localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", url.PathEscape(parameterValueToString(r.identifier, "identifier")), -1) @@ -9843,7 +11645,7 @@ func (a *ReposApiService) ReposUpstreamGoCreateExecute(r ApiReposUpstreamGoCreat return localVarReturnValue, localVarHTTPResponse, nil } -type ApiReposUpstreamGoDeleteRequest struct { +type ApiReposUpstreamHelmDeleteRequest struct { ctx context.Context ApiService *ReposApiService owner string @@ -9851,23 +11653,23 @@ type ApiReposUpstreamGoDeleteRequest struct { slugPerm string } -func (r ApiReposUpstreamGoDeleteRequest) Execute() (*http.Response, error) { - return r.ApiService.ReposUpstreamGoDeleteExecute(r) +func (r ApiReposUpstreamHelmDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.ReposUpstreamHelmDeleteExecute(r) } /* -ReposUpstreamGoDelete Delete a Go upstream config for this repository. +ReposUpstreamHelmDelete Delete a Helm upstream config for this repository. -Delete a Go upstream config for this repository. +Delete a Helm upstream config for this repository. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param owner @param identifier @param slugPerm - @return ApiReposUpstreamGoDeleteRequest + @return ApiReposUpstreamHelmDeleteRequest */ -func (a *ReposApiService) ReposUpstreamGoDelete(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamGoDeleteRequest { - return ApiReposUpstreamGoDeleteRequest{ +func (a *ReposApiService) ReposUpstreamHelmDelete(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamHelmDeleteRequest { + return ApiReposUpstreamHelmDeleteRequest{ ApiService: a, ctx: ctx, owner: owner, @@ -9877,19 +11679,19 @@ func (a *ReposApiService) ReposUpstreamGoDelete(ctx context.Context, owner strin } // Execute executes the request -func (a *ReposApiService) ReposUpstreamGoDeleteExecute(r ApiReposUpstreamGoDeleteRequest) (*http.Response, error) { +func (a *ReposApiService) ReposUpstreamHelmDeleteExecute(r ApiReposUpstreamHelmDeleteRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamGoDelete") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamHelmDelete") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/go/{slug_perm}/" + localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/helm/{slug_perm}/" localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", url.PathEscape(parameterValueToString(r.owner, "owner")), -1) localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", url.PathEscape(parameterValueToString(r.identifier, "identifier")), -1) localVarPath = strings.Replace(localVarPath, "{"+"slug_perm"+"}", url.PathEscape(parameterValueToString(r.slugPerm, "slugPerm")), -1) @@ -9978,7 +11780,7 @@ func (a *ReposApiService) ReposUpstreamGoDeleteExecute(r ApiReposUpstreamGoDelet return localVarHTTPResponse, nil } -type ApiReposUpstreamGoListRequest struct { +type ApiReposUpstreamHelmListRequest struct { ctx context.Context ApiService *ReposApiService owner string @@ -9988,33 +11790,33 @@ type ApiReposUpstreamGoListRequest struct { } // A page number within the paginated result set. -func (r ApiReposUpstreamGoListRequest) Page(page int64) ApiReposUpstreamGoListRequest { +func (r ApiReposUpstreamHelmListRequest) Page(page int64) ApiReposUpstreamHelmListRequest { r.page = &page return r } // Number of results to return per page. -func (r ApiReposUpstreamGoListRequest) PageSize(pageSize int64) ApiReposUpstreamGoListRequest { +func (r ApiReposUpstreamHelmListRequest) PageSize(pageSize int64) ApiReposUpstreamHelmListRequest { r.pageSize = &pageSize return r } -func (r ApiReposUpstreamGoListRequest) Execute() ([]GoUpstream, *http.Response, error) { - return r.ApiService.ReposUpstreamGoListExecute(r) +func (r ApiReposUpstreamHelmListRequest) Execute() ([]HelmUpstream, *http.Response, error) { + return r.ApiService.ReposUpstreamHelmListExecute(r) } /* -ReposUpstreamGoList List Go upstream configs for this repository. +ReposUpstreamHelmList List Helm upstream configs for this repository. -List Go upstream configs for this repository. +List Helm upstream configs for this repository. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param owner @param identifier - @return ApiReposUpstreamGoListRequest + @return ApiReposUpstreamHelmListRequest */ -func (a *ReposApiService) ReposUpstreamGoList(ctx context.Context, owner string, identifier string) ApiReposUpstreamGoListRequest { - return ApiReposUpstreamGoListRequest{ +func (a *ReposApiService) ReposUpstreamHelmList(ctx context.Context, owner string, identifier string) ApiReposUpstreamHelmListRequest { + return ApiReposUpstreamHelmListRequest{ ApiService: a, ctx: ctx, owner: owner, @@ -10023,21 +11825,21 @@ func (a *ReposApiService) ReposUpstreamGoList(ctx context.Context, owner string, } // Execute executes the request -// @return []GoUpstream -func (a *ReposApiService) ReposUpstreamGoListExecute(r ApiReposUpstreamGoListRequest) ([]GoUpstream, *http.Response, error) { +// @return []HelmUpstream +func (a *ReposApiService) ReposUpstreamHelmListExecute(r ApiReposUpstreamHelmListRequest) ([]HelmUpstream, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue []GoUpstream + localVarReturnValue []HelmUpstream ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamGoList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamHelmList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/go/" + localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/helm/" localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", url.PathEscape(parameterValueToString(r.owner, "owner")), -1) localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", url.PathEscape(parameterValueToString(r.identifier, "identifier")), -1) @@ -10140,37 +11942,37 @@ func (a *ReposApiService) ReposUpstreamGoListExecute(r ApiReposUpstreamGoListReq return localVarReturnValue, localVarHTTPResponse, nil } -type ApiReposUpstreamGoPartialUpdateRequest struct { +type ApiReposUpstreamHelmPartialUpdateRequest struct { ctx context.Context ApiService *ReposApiService owner string identifier string slugPerm string - data *GoUpstreamRequestPatch + data *HelmUpstreamRequestPatch } -func (r ApiReposUpstreamGoPartialUpdateRequest) Data(data GoUpstreamRequestPatch) ApiReposUpstreamGoPartialUpdateRequest { +func (r ApiReposUpstreamHelmPartialUpdateRequest) Data(data HelmUpstreamRequestPatch) ApiReposUpstreamHelmPartialUpdateRequest { r.data = &data return r } -func (r ApiReposUpstreamGoPartialUpdateRequest) Execute() (*GoUpstream, *http.Response, error) { - return r.ApiService.ReposUpstreamGoPartialUpdateExecute(r) +func (r ApiReposUpstreamHelmPartialUpdateRequest) Execute() (*HelmUpstream, *http.Response, error) { + return r.ApiService.ReposUpstreamHelmPartialUpdateExecute(r) } /* -ReposUpstreamGoPartialUpdate Partially update a Go upstream config for this repository. +ReposUpstreamHelmPartialUpdate Partially update a Helm upstream config for this repository. -Partially update a Go upstream config for this repository. +Partially update a Helm upstream config for this repository. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param owner @param identifier @param slugPerm - @return ApiReposUpstreamGoPartialUpdateRequest + @return ApiReposUpstreamHelmPartialUpdateRequest */ -func (a *ReposApiService) ReposUpstreamGoPartialUpdate(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamGoPartialUpdateRequest { - return ApiReposUpstreamGoPartialUpdateRequest{ +func (a *ReposApiService) ReposUpstreamHelmPartialUpdate(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamHelmPartialUpdateRequest { + return ApiReposUpstreamHelmPartialUpdateRequest{ ApiService: a, ctx: ctx, owner: owner, @@ -10180,21 +11982,21 @@ func (a *ReposApiService) ReposUpstreamGoPartialUpdate(ctx context.Context, owne } // Execute executes the request -// @return GoUpstream -func (a *ReposApiService) ReposUpstreamGoPartialUpdateExecute(r ApiReposUpstreamGoPartialUpdateRequest) (*GoUpstream, *http.Response, error) { +// @return HelmUpstream +func (a *ReposApiService) ReposUpstreamHelmPartialUpdateExecute(r ApiReposUpstreamHelmPartialUpdateRequest) (*HelmUpstream, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue *GoUpstream + localVarReturnValue *HelmUpstream ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamGoPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamHelmPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/go/{slug_perm}/" + localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/helm/{slug_perm}/" localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", url.PathEscape(parameterValueToString(r.owner, "owner")), -1) localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", url.PathEscape(parameterValueToString(r.identifier, "identifier")), -1) localVarPath = strings.Replace(localVarPath, "{"+"slug_perm"+"}", url.PathEscape(parameterValueToString(r.slugPerm, "slugPerm")), -1) @@ -10294,7 +12096,7 @@ func (a *ReposApiService) ReposUpstreamGoPartialUpdateExecute(r ApiReposUpstream return localVarReturnValue, localVarHTTPResponse, nil } -type ApiReposUpstreamGoReadRequest struct { +type ApiReposUpstreamHelmReadRequest struct { ctx context.Context ApiService *ReposApiService owner string @@ -10302,23 +12104,23 @@ type ApiReposUpstreamGoReadRequest struct { slugPerm string } -func (r ApiReposUpstreamGoReadRequest) Execute() (*GoUpstream, *http.Response, error) { - return r.ApiService.ReposUpstreamGoReadExecute(r) +func (r ApiReposUpstreamHelmReadRequest) Execute() (*HelmUpstream, *http.Response, error) { + return r.ApiService.ReposUpstreamHelmReadExecute(r) } /* -ReposUpstreamGoRead Retrieve a Go upstream config for this repository. +ReposUpstreamHelmRead Retrieve a Helm upstream config for this repository. -Retrieve a Go upstream config for this repository. +Retrieve a Helm upstream config for this repository. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param owner @param identifier @param slugPerm - @return ApiReposUpstreamGoReadRequest + @return ApiReposUpstreamHelmReadRequest */ -func (a *ReposApiService) ReposUpstreamGoRead(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamGoReadRequest { - return ApiReposUpstreamGoReadRequest{ +func (a *ReposApiService) ReposUpstreamHelmRead(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamHelmReadRequest { + return ApiReposUpstreamHelmReadRequest{ ApiService: a, ctx: ctx, owner: owner, @@ -10328,21 +12130,21 @@ func (a *ReposApiService) ReposUpstreamGoRead(ctx context.Context, owner string, } // Execute executes the request -// @return GoUpstream -func (a *ReposApiService) ReposUpstreamGoReadExecute(r ApiReposUpstreamGoReadRequest) (*GoUpstream, *http.Response, error) { +// @return HelmUpstream +func (a *ReposApiService) ReposUpstreamHelmReadExecute(r ApiReposUpstreamHelmReadRequest) (*HelmUpstream, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *GoUpstream + localVarReturnValue *HelmUpstream ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamGoRead") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamHelmRead") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/go/{slug_perm}/" + localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/helm/{slug_perm}/" localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", url.PathEscape(parameterValueToString(r.owner, "owner")), -1) localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", url.PathEscape(parameterValueToString(r.identifier, "identifier")), -1) localVarPath = strings.Replace(localVarPath, "{"+"slug_perm"+"}", url.PathEscape(parameterValueToString(r.slugPerm, "slugPerm")), -1) @@ -10440,37 +12242,37 @@ func (a *ReposApiService) ReposUpstreamGoReadExecute(r ApiReposUpstreamGoReadReq return localVarReturnValue, localVarHTTPResponse, nil } -type ApiReposUpstreamGoUpdateRequest struct { +type ApiReposUpstreamHelmUpdateRequest struct { ctx context.Context ApiService *ReposApiService owner string identifier string slugPerm string - data *GoUpstreamRequest + data *HelmUpstreamRequest } -func (r ApiReposUpstreamGoUpdateRequest) Data(data GoUpstreamRequest) ApiReposUpstreamGoUpdateRequest { +func (r ApiReposUpstreamHelmUpdateRequest) Data(data HelmUpstreamRequest) ApiReposUpstreamHelmUpdateRequest { r.data = &data return r } -func (r ApiReposUpstreamGoUpdateRequest) Execute() (*GoUpstream, *http.Response, error) { - return r.ApiService.ReposUpstreamGoUpdateExecute(r) +func (r ApiReposUpstreamHelmUpdateRequest) Execute() (*HelmUpstream, *http.Response, error) { + return r.ApiService.ReposUpstreamHelmUpdateExecute(r) } /* -ReposUpstreamGoUpdate Update a Go upstream config for this repository. +ReposUpstreamHelmUpdate Update a Helm upstream config for this repository. -Update a Go upstream config for this repository. +Update a Helm upstream config for this repository. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param owner @param identifier @param slugPerm - @return ApiReposUpstreamGoUpdateRequest + @return ApiReposUpstreamHelmUpdateRequest */ -func (a *ReposApiService) ReposUpstreamGoUpdate(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamGoUpdateRequest { - return ApiReposUpstreamGoUpdateRequest{ +func (a *ReposApiService) ReposUpstreamHelmUpdate(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamHelmUpdateRequest { + return ApiReposUpstreamHelmUpdateRequest{ ApiService: a, ctx: ctx, owner: owner, @@ -10480,21 +12282,21 @@ func (a *ReposApiService) ReposUpstreamGoUpdate(ctx context.Context, owner strin } // Execute executes the request -// @return GoUpstream -func (a *ReposApiService) ReposUpstreamGoUpdateExecute(r ApiReposUpstreamGoUpdateRequest) (*GoUpstream, *http.Response, error) { +// @return HelmUpstream +func (a *ReposApiService) ReposUpstreamHelmUpdateExecute(r ApiReposUpstreamHelmUpdateRequest) (*HelmUpstream, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue *GoUpstream + localVarReturnValue *HelmUpstream ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamGoUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamHelmUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/go/{slug_perm}/" + localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/helm/{slug_perm}/" localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", url.PathEscape(parameterValueToString(r.owner, "owner")), -1) localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", url.PathEscape(parameterValueToString(r.identifier, "identifier")), -1) localVarPath = strings.Replace(localVarPath, "{"+"slug_perm"+"}", url.PathEscape(parameterValueToString(r.slugPerm, "slugPerm")), -1) @@ -10594,35 +12396,35 @@ func (a *ReposApiService) ReposUpstreamGoUpdateExecute(r ApiReposUpstreamGoUpdat return localVarReturnValue, localVarHTTPResponse, nil } -type ApiReposUpstreamHelmCreateRequest struct { +type ApiReposUpstreamHexCreateRequest struct { ctx context.Context ApiService *ReposApiService owner string identifier string - data *HelmUpstreamRequest + data *HexUpstreamRequest } -func (r ApiReposUpstreamHelmCreateRequest) Data(data HelmUpstreamRequest) ApiReposUpstreamHelmCreateRequest { +func (r ApiReposUpstreamHexCreateRequest) Data(data HexUpstreamRequest) ApiReposUpstreamHexCreateRequest { r.data = &data return r } -func (r ApiReposUpstreamHelmCreateRequest) Execute() (*HelmUpstream, *http.Response, error) { - return r.ApiService.ReposUpstreamHelmCreateExecute(r) +func (r ApiReposUpstreamHexCreateRequest) Execute() (*HexUpstream, *http.Response, error) { + return r.ApiService.ReposUpstreamHexCreateExecute(r) } /* -ReposUpstreamHelmCreate Create a Helm upstream config for this repository. +ReposUpstreamHexCreate Create a Hex upstream config for this repository. -Create a Helm upstream config for this repository. +Create a Hex upstream config for this repository. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param owner @param identifier - @return ApiReposUpstreamHelmCreateRequest + @return ApiReposUpstreamHexCreateRequest */ -func (a *ReposApiService) ReposUpstreamHelmCreate(ctx context.Context, owner string, identifier string) ApiReposUpstreamHelmCreateRequest { - return ApiReposUpstreamHelmCreateRequest{ +func (a *ReposApiService) ReposUpstreamHexCreate(ctx context.Context, owner string, identifier string) ApiReposUpstreamHexCreateRequest { + return ApiReposUpstreamHexCreateRequest{ ApiService: a, ctx: ctx, owner: owner, @@ -10631,21 +12433,21 @@ func (a *ReposApiService) ReposUpstreamHelmCreate(ctx context.Context, owner str } // Execute executes the request -// @return HelmUpstream -func (a *ReposApiService) ReposUpstreamHelmCreateExecute(r ApiReposUpstreamHelmCreateRequest) (*HelmUpstream, *http.Response, error) { +// @return HexUpstream +func (a *ReposApiService) ReposUpstreamHexCreateExecute(r ApiReposUpstreamHexCreateRequest) (*HexUpstream, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *HelmUpstream + localVarReturnValue *HexUpstream ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamHelmCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamHexCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/helm/" + localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/hex/" localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", url.PathEscape(parameterValueToString(r.owner, "owner")), -1) localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", url.PathEscape(parameterValueToString(r.identifier, "identifier")), -1) @@ -10744,7 +12546,7 @@ func (a *ReposApiService) ReposUpstreamHelmCreateExecute(r ApiReposUpstreamHelmC return localVarReturnValue, localVarHTTPResponse, nil } -type ApiReposUpstreamHelmDeleteRequest struct { +type ApiReposUpstreamHexDeleteRequest struct { ctx context.Context ApiService *ReposApiService owner string @@ -10752,23 +12554,23 @@ type ApiReposUpstreamHelmDeleteRequest struct { slugPerm string } -func (r ApiReposUpstreamHelmDeleteRequest) Execute() (*http.Response, error) { - return r.ApiService.ReposUpstreamHelmDeleteExecute(r) +func (r ApiReposUpstreamHexDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.ReposUpstreamHexDeleteExecute(r) } /* -ReposUpstreamHelmDelete Delete a Helm upstream config for this repository. +ReposUpstreamHexDelete Delete a Hex upstream config for this repository. -Delete a Helm upstream config for this repository. +Delete a Hex upstream config for this repository. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param owner @param identifier @param slugPerm - @return ApiReposUpstreamHelmDeleteRequest + @return ApiReposUpstreamHexDeleteRequest */ -func (a *ReposApiService) ReposUpstreamHelmDelete(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamHelmDeleteRequest { - return ApiReposUpstreamHelmDeleteRequest{ +func (a *ReposApiService) ReposUpstreamHexDelete(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamHexDeleteRequest { + return ApiReposUpstreamHexDeleteRequest{ ApiService: a, ctx: ctx, owner: owner, @@ -10778,19 +12580,19 @@ func (a *ReposApiService) ReposUpstreamHelmDelete(ctx context.Context, owner str } // Execute executes the request -func (a *ReposApiService) ReposUpstreamHelmDeleteExecute(r ApiReposUpstreamHelmDeleteRequest) (*http.Response, error) { +func (a *ReposApiService) ReposUpstreamHexDeleteExecute(r ApiReposUpstreamHexDeleteRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamHelmDelete") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamHexDelete") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/helm/{slug_perm}/" + localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/hex/{slug_perm}/" localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", url.PathEscape(parameterValueToString(r.owner, "owner")), -1) localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", url.PathEscape(parameterValueToString(r.identifier, "identifier")), -1) localVarPath = strings.Replace(localVarPath, "{"+"slug_perm"+"}", url.PathEscape(parameterValueToString(r.slugPerm, "slugPerm")), -1) @@ -10879,7 +12681,7 @@ func (a *ReposApiService) ReposUpstreamHelmDeleteExecute(r ApiReposUpstreamHelmD return localVarHTTPResponse, nil } -type ApiReposUpstreamHelmListRequest struct { +type ApiReposUpstreamHexListRequest struct { ctx context.Context ApiService *ReposApiService owner string @@ -10889,33 +12691,33 @@ type ApiReposUpstreamHelmListRequest struct { } // A page number within the paginated result set. -func (r ApiReposUpstreamHelmListRequest) Page(page int64) ApiReposUpstreamHelmListRequest { +func (r ApiReposUpstreamHexListRequest) Page(page int64) ApiReposUpstreamHexListRequest { r.page = &page return r } // Number of results to return per page. -func (r ApiReposUpstreamHelmListRequest) PageSize(pageSize int64) ApiReposUpstreamHelmListRequest { +func (r ApiReposUpstreamHexListRequest) PageSize(pageSize int64) ApiReposUpstreamHexListRequest { r.pageSize = &pageSize return r } -func (r ApiReposUpstreamHelmListRequest) Execute() ([]HelmUpstream, *http.Response, error) { - return r.ApiService.ReposUpstreamHelmListExecute(r) +func (r ApiReposUpstreamHexListRequest) Execute() ([]HexUpstream, *http.Response, error) { + return r.ApiService.ReposUpstreamHexListExecute(r) } /* -ReposUpstreamHelmList List Helm upstream configs for this repository. +ReposUpstreamHexList List Hex upstream configs for this repository. -List Helm upstream configs for this repository. +List Hex upstream configs for this repository. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param owner @param identifier - @return ApiReposUpstreamHelmListRequest + @return ApiReposUpstreamHexListRequest */ -func (a *ReposApiService) ReposUpstreamHelmList(ctx context.Context, owner string, identifier string) ApiReposUpstreamHelmListRequest { - return ApiReposUpstreamHelmListRequest{ +func (a *ReposApiService) ReposUpstreamHexList(ctx context.Context, owner string, identifier string) ApiReposUpstreamHexListRequest { + return ApiReposUpstreamHexListRequest{ ApiService: a, ctx: ctx, owner: owner, @@ -10924,21 +12726,21 @@ func (a *ReposApiService) ReposUpstreamHelmList(ctx context.Context, owner strin } // Execute executes the request -// @return []HelmUpstream -func (a *ReposApiService) ReposUpstreamHelmListExecute(r ApiReposUpstreamHelmListRequest) ([]HelmUpstream, *http.Response, error) { +// @return []HexUpstream +func (a *ReposApiService) ReposUpstreamHexListExecute(r ApiReposUpstreamHexListRequest) ([]HexUpstream, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue []HelmUpstream + localVarReturnValue []HexUpstream ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamHelmList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamHexList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/helm/" + localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/hex/" localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", url.PathEscape(parameterValueToString(r.owner, "owner")), -1) localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", url.PathEscape(parameterValueToString(r.identifier, "identifier")), -1) @@ -11041,37 +12843,37 @@ func (a *ReposApiService) ReposUpstreamHelmListExecute(r ApiReposUpstreamHelmLis return localVarReturnValue, localVarHTTPResponse, nil } -type ApiReposUpstreamHelmPartialUpdateRequest struct { +type ApiReposUpstreamHexPartialUpdateRequest struct { ctx context.Context ApiService *ReposApiService owner string identifier string slugPerm string - data *HelmUpstreamRequestPatch + data *HexUpstreamRequestPatch } -func (r ApiReposUpstreamHelmPartialUpdateRequest) Data(data HelmUpstreamRequestPatch) ApiReposUpstreamHelmPartialUpdateRequest { +func (r ApiReposUpstreamHexPartialUpdateRequest) Data(data HexUpstreamRequestPatch) ApiReposUpstreamHexPartialUpdateRequest { r.data = &data return r } -func (r ApiReposUpstreamHelmPartialUpdateRequest) Execute() (*HelmUpstream, *http.Response, error) { - return r.ApiService.ReposUpstreamHelmPartialUpdateExecute(r) +func (r ApiReposUpstreamHexPartialUpdateRequest) Execute() (*HexUpstream, *http.Response, error) { + return r.ApiService.ReposUpstreamHexPartialUpdateExecute(r) } /* -ReposUpstreamHelmPartialUpdate Partially update a Helm upstream config for this repository. +ReposUpstreamHexPartialUpdate Partially update a Hex upstream config for this repository. -Partially update a Helm upstream config for this repository. +Partially update a Hex upstream config for this repository. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param owner @param identifier @param slugPerm - @return ApiReposUpstreamHelmPartialUpdateRequest + @return ApiReposUpstreamHexPartialUpdateRequest */ -func (a *ReposApiService) ReposUpstreamHelmPartialUpdate(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamHelmPartialUpdateRequest { - return ApiReposUpstreamHelmPartialUpdateRequest{ +func (a *ReposApiService) ReposUpstreamHexPartialUpdate(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamHexPartialUpdateRequest { + return ApiReposUpstreamHexPartialUpdateRequest{ ApiService: a, ctx: ctx, owner: owner, @@ -11081,21 +12883,21 @@ func (a *ReposApiService) ReposUpstreamHelmPartialUpdate(ctx context.Context, ow } // Execute executes the request -// @return HelmUpstream -func (a *ReposApiService) ReposUpstreamHelmPartialUpdateExecute(r ApiReposUpstreamHelmPartialUpdateRequest) (*HelmUpstream, *http.Response, error) { +// @return HexUpstream +func (a *ReposApiService) ReposUpstreamHexPartialUpdateExecute(r ApiReposUpstreamHexPartialUpdateRequest) (*HexUpstream, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue *HelmUpstream + localVarReturnValue *HexUpstream ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamHelmPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamHexPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/helm/{slug_perm}/" + localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/hex/{slug_perm}/" localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", url.PathEscape(parameterValueToString(r.owner, "owner")), -1) localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", url.PathEscape(parameterValueToString(r.identifier, "identifier")), -1) localVarPath = strings.Replace(localVarPath, "{"+"slug_perm"+"}", url.PathEscape(parameterValueToString(r.slugPerm, "slugPerm")), -1) @@ -11195,7 +12997,7 @@ func (a *ReposApiService) ReposUpstreamHelmPartialUpdateExecute(r ApiReposUpstre return localVarReturnValue, localVarHTTPResponse, nil } -type ApiReposUpstreamHelmReadRequest struct { +type ApiReposUpstreamHexReadRequest struct { ctx context.Context ApiService *ReposApiService owner string @@ -11203,23 +13005,23 @@ type ApiReposUpstreamHelmReadRequest struct { slugPerm string } -func (r ApiReposUpstreamHelmReadRequest) Execute() (*HelmUpstream, *http.Response, error) { - return r.ApiService.ReposUpstreamHelmReadExecute(r) +func (r ApiReposUpstreamHexReadRequest) Execute() (*HexUpstream, *http.Response, error) { + return r.ApiService.ReposUpstreamHexReadExecute(r) } /* -ReposUpstreamHelmRead Retrieve a Helm upstream config for this repository. +ReposUpstreamHexRead Retrieve a Hex upstream config for this repository. -Retrieve a Helm upstream config for this repository. +Retrieve a Hex upstream config for this repository. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param owner @param identifier @param slugPerm - @return ApiReposUpstreamHelmReadRequest + @return ApiReposUpstreamHexReadRequest */ -func (a *ReposApiService) ReposUpstreamHelmRead(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamHelmReadRequest { - return ApiReposUpstreamHelmReadRequest{ +func (a *ReposApiService) ReposUpstreamHexRead(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamHexReadRequest { + return ApiReposUpstreamHexReadRequest{ ApiService: a, ctx: ctx, owner: owner, @@ -11229,21 +13031,21 @@ func (a *ReposApiService) ReposUpstreamHelmRead(ctx context.Context, owner strin } // Execute executes the request -// @return HelmUpstream -func (a *ReposApiService) ReposUpstreamHelmReadExecute(r ApiReposUpstreamHelmReadRequest) (*HelmUpstream, *http.Response, error) { +// @return HexUpstream +func (a *ReposApiService) ReposUpstreamHexReadExecute(r ApiReposUpstreamHexReadRequest) (*HexUpstream, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *HelmUpstream + localVarReturnValue *HexUpstream ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamHelmRead") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamHexRead") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/helm/{slug_perm}/" + localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/hex/{slug_perm}/" localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", url.PathEscape(parameterValueToString(r.owner, "owner")), -1) localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", url.PathEscape(parameterValueToString(r.identifier, "identifier")), -1) localVarPath = strings.Replace(localVarPath, "{"+"slug_perm"+"}", url.PathEscape(parameterValueToString(r.slugPerm, "slugPerm")), -1) @@ -11341,37 +13143,37 @@ func (a *ReposApiService) ReposUpstreamHelmReadExecute(r ApiReposUpstreamHelmRea return localVarReturnValue, localVarHTTPResponse, nil } -type ApiReposUpstreamHelmUpdateRequest struct { +type ApiReposUpstreamHexUpdateRequest struct { ctx context.Context ApiService *ReposApiService owner string identifier string slugPerm string - data *HelmUpstreamRequest + data *HexUpstreamRequest } -func (r ApiReposUpstreamHelmUpdateRequest) Data(data HelmUpstreamRequest) ApiReposUpstreamHelmUpdateRequest { +func (r ApiReposUpstreamHexUpdateRequest) Data(data HexUpstreamRequest) ApiReposUpstreamHexUpdateRequest { r.data = &data return r } -func (r ApiReposUpstreamHelmUpdateRequest) Execute() (*HelmUpstream, *http.Response, error) { - return r.ApiService.ReposUpstreamHelmUpdateExecute(r) +func (r ApiReposUpstreamHexUpdateRequest) Execute() (*HexUpstream, *http.Response, error) { + return r.ApiService.ReposUpstreamHexUpdateExecute(r) } /* -ReposUpstreamHelmUpdate Update a Helm upstream config for this repository. +ReposUpstreamHexUpdate Update a Hex upstream config for this repository. -Update a Helm upstream config for this repository. +Update a Hex upstream config for this repository. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param owner @param identifier @param slugPerm - @return ApiReposUpstreamHelmUpdateRequest + @return ApiReposUpstreamHexUpdateRequest */ -func (a *ReposApiService) ReposUpstreamHelmUpdate(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamHelmUpdateRequest { - return ApiReposUpstreamHelmUpdateRequest{ +func (a *ReposApiService) ReposUpstreamHexUpdate(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamHexUpdateRequest { + return ApiReposUpstreamHexUpdateRequest{ ApiService: a, ctx: ctx, owner: owner, @@ -11381,21 +13183,21 @@ func (a *ReposApiService) ReposUpstreamHelmUpdate(ctx context.Context, owner str } // Execute executes the request -// @return HelmUpstream -func (a *ReposApiService) ReposUpstreamHelmUpdateExecute(r ApiReposUpstreamHelmUpdateRequest) (*HelmUpstream, *http.Response, error) { +// @return HexUpstream +func (a *ReposApiService) ReposUpstreamHexUpdateExecute(r ApiReposUpstreamHexUpdateRequest) (*HexUpstream, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue *HelmUpstream + localVarReturnValue *HexUpstream ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamHelmUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamHexUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/helm/{slug_perm}/" + localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/hex/{slug_perm}/" localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", url.PathEscape(parameterValueToString(r.owner, "owner")), -1) localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", url.PathEscape(parameterValueToString(r.identifier, "identifier")), -1) localVarPath = strings.Replace(localVarPath, "{"+"slug_perm"+"}", url.PathEscape(parameterValueToString(r.slugPerm, "slugPerm")), -1) @@ -11495,35 +13297,35 @@ func (a *ReposApiService) ReposUpstreamHelmUpdateExecute(r ApiReposUpstreamHelmU return localVarReturnValue, localVarHTTPResponse, nil } -type ApiReposUpstreamHexCreateRequest struct { +type ApiReposUpstreamHuggingfaceCreateRequest struct { ctx context.Context ApiService *ReposApiService owner string identifier string - data *HexUpstreamRequest + data *HuggingfaceUpstreamRequest } -func (r ApiReposUpstreamHexCreateRequest) Data(data HexUpstreamRequest) ApiReposUpstreamHexCreateRequest { +func (r ApiReposUpstreamHuggingfaceCreateRequest) Data(data HuggingfaceUpstreamRequest) ApiReposUpstreamHuggingfaceCreateRequest { r.data = &data return r } -func (r ApiReposUpstreamHexCreateRequest) Execute() (*HexUpstream, *http.Response, error) { - return r.ApiService.ReposUpstreamHexCreateExecute(r) +func (r ApiReposUpstreamHuggingfaceCreateRequest) Execute() (*HuggingfaceUpstream, *http.Response, error) { + return r.ApiService.ReposUpstreamHuggingfaceCreateExecute(r) } /* -ReposUpstreamHexCreate Create a Hex upstream config for this repository. +ReposUpstreamHuggingfaceCreate Create a HuggingFace upstream config for this repository. -Create a Hex upstream config for this repository. +Create a HuggingFace upstream config for this repository. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param owner @param identifier - @return ApiReposUpstreamHexCreateRequest + @return ApiReposUpstreamHuggingfaceCreateRequest */ -func (a *ReposApiService) ReposUpstreamHexCreate(ctx context.Context, owner string, identifier string) ApiReposUpstreamHexCreateRequest { - return ApiReposUpstreamHexCreateRequest{ +func (a *ReposApiService) ReposUpstreamHuggingfaceCreate(ctx context.Context, owner string, identifier string) ApiReposUpstreamHuggingfaceCreateRequest { + return ApiReposUpstreamHuggingfaceCreateRequest{ ApiService: a, ctx: ctx, owner: owner, @@ -11532,21 +13334,21 @@ func (a *ReposApiService) ReposUpstreamHexCreate(ctx context.Context, owner stri } // Execute executes the request -// @return HexUpstream -func (a *ReposApiService) ReposUpstreamHexCreateExecute(r ApiReposUpstreamHexCreateRequest) (*HexUpstream, *http.Response, error) { +// @return HuggingfaceUpstream +func (a *ReposApiService) ReposUpstreamHuggingfaceCreateExecute(r ApiReposUpstreamHuggingfaceCreateRequest) (*HuggingfaceUpstream, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *HexUpstream + localVarReturnValue *HuggingfaceUpstream ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamHexCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamHuggingfaceCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/hex/" + localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/huggingface/" localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", url.PathEscape(parameterValueToString(r.owner, "owner")), -1) localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", url.PathEscape(parameterValueToString(r.identifier, "identifier")), -1) @@ -11645,7 +13447,7 @@ func (a *ReposApiService) ReposUpstreamHexCreateExecute(r ApiReposUpstreamHexCre return localVarReturnValue, localVarHTTPResponse, nil } -type ApiReposUpstreamHexDeleteRequest struct { +type ApiReposUpstreamHuggingfaceDeleteRequest struct { ctx context.Context ApiService *ReposApiService owner string @@ -11653,23 +13455,23 @@ type ApiReposUpstreamHexDeleteRequest struct { slugPerm string } -func (r ApiReposUpstreamHexDeleteRequest) Execute() (*http.Response, error) { - return r.ApiService.ReposUpstreamHexDeleteExecute(r) +func (r ApiReposUpstreamHuggingfaceDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.ReposUpstreamHuggingfaceDeleteExecute(r) } /* -ReposUpstreamHexDelete Delete a Hex upstream config for this repository. +ReposUpstreamHuggingfaceDelete Delete a HuggingFace upstream config for this repository. -Delete a Hex upstream config for this repository. +Delete a HuggingFace upstream config for this repository. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param owner @param identifier @param slugPerm - @return ApiReposUpstreamHexDeleteRequest + @return ApiReposUpstreamHuggingfaceDeleteRequest */ -func (a *ReposApiService) ReposUpstreamHexDelete(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamHexDeleteRequest { - return ApiReposUpstreamHexDeleteRequest{ +func (a *ReposApiService) ReposUpstreamHuggingfaceDelete(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamHuggingfaceDeleteRequest { + return ApiReposUpstreamHuggingfaceDeleteRequest{ ApiService: a, ctx: ctx, owner: owner, @@ -11679,19 +13481,19 @@ func (a *ReposApiService) ReposUpstreamHexDelete(ctx context.Context, owner stri } // Execute executes the request -func (a *ReposApiService) ReposUpstreamHexDeleteExecute(r ApiReposUpstreamHexDeleteRequest) (*http.Response, error) { +func (a *ReposApiService) ReposUpstreamHuggingfaceDeleteExecute(r ApiReposUpstreamHuggingfaceDeleteRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamHexDelete") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamHuggingfaceDelete") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/hex/{slug_perm}/" + localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/huggingface/{slug_perm}/" localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", url.PathEscape(parameterValueToString(r.owner, "owner")), -1) localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", url.PathEscape(parameterValueToString(r.identifier, "identifier")), -1) localVarPath = strings.Replace(localVarPath, "{"+"slug_perm"+"}", url.PathEscape(parameterValueToString(r.slugPerm, "slugPerm")), -1) @@ -11780,7 +13582,7 @@ func (a *ReposApiService) ReposUpstreamHexDeleteExecute(r ApiReposUpstreamHexDel return localVarHTTPResponse, nil } -type ApiReposUpstreamHexListRequest struct { +type ApiReposUpstreamHuggingfaceListRequest struct { ctx context.Context ApiService *ReposApiService owner string @@ -11790,33 +13592,33 @@ type ApiReposUpstreamHexListRequest struct { } // A page number within the paginated result set. -func (r ApiReposUpstreamHexListRequest) Page(page int64) ApiReposUpstreamHexListRequest { +func (r ApiReposUpstreamHuggingfaceListRequest) Page(page int64) ApiReposUpstreamHuggingfaceListRequest { r.page = &page return r } // Number of results to return per page. -func (r ApiReposUpstreamHexListRequest) PageSize(pageSize int64) ApiReposUpstreamHexListRequest { +func (r ApiReposUpstreamHuggingfaceListRequest) PageSize(pageSize int64) ApiReposUpstreamHuggingfaceListRequest { r.pageSize = &pageSize return r } -func (r ApiReposUpstreamHexListRequest) Execute() ([]HexUpstream, *http.Response, error) { - return r.ApiService.ReposUpstreamHexListExecute(r) +func (r ApiReposUpstreamHuggingfaceListRequest) Execute() ([]HuggingfaceUpstream, *http.Response, error) { + return r.ApiService.ReposUpstreamHuggingfaceListExecute(r) } /* -ReposUpstreamHexList List Hex upstream configs for this repository. +ReposUpstreamHuggingfaceList List HuggingFace upstream configs for this repository. -List Hex upstream configs for this repository. +List HuggingFace upstream configs for this repository. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param owner @param identifier - @return ApiReposUpstreamHexListRequest + @return ApiReposUpstreamHuggingfaceListRequest */ -func (a *ReposApiService) ReposUpstreamHexList(ctx context.Context, owner string, identifier string) ApiReposUpstreamHexListRequest { - return ApiReposUpstreamHexListRequest{ +func (a *ReposApiService) ReposUpstreamHuggingfaceList(ctx context.Context, owner string, identifier string) ApiReposUpstreamHuggingfaceListRequest { + return ApiReposUpstreamHuggingfaceListRequest{ ApiService: a, ctx: ctx, owner: owner, @@ -11825,21 +13627,21 @@ func (a *ReposApiService) ReposUpstreamHexList(ctx context.Context, owner string } // Execute executes the request -// @return []HexUpstream -func (a *ReposApiService) ReposUpstreamHexListExecute(r ApiReposUpstreamHexListRequest) ([]HexUpstream, *http.Response, error) { +// @return []HuggingfaceUpstream +func (a *ReposApiService) ReposUpstreamHuggingfaceListExecute(r ApiReposUpstreamHuggingfaceListRequest) ([]HuggingfaceUpstream, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue []HexUpstream + localVarReturnValue []HuggingfaceUpstream ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamHexList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamHuggingfaceList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/hex/" + localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/huggingface/" localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", url.PathEscape(parameterValueToString(r.owner, "owner")), -1) localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", url.PathEscape(parameterValueToString(r.identifier, "identifier")), -1) @@ -11942,37 +13744,37 @@ func (a *ReposApiService) ReposUpstreamHexListExecute(r ApiReposUpstreamHexListR return localVarReturnValue, localVarHTTPResponse, nil } -type ApiReposUpstreamHexPartialUpdateRequest struct { +type ApiReposUpstreamHuggingfacePartialUpdateRequest struct { ctx context.Context ApiService *ReposApiService owner string identifier string slugPerm string - data *HexUpstreamRequestPatch + data *HuggingfaceUpstreamRequestPatch } -func (r ApiReposUpstreamHexPartialUpdateRequest) Data(data HexUpstreamRequestPatch) ApiReposUpstreamHexPartialUpdateRequest { +func (r ApiReposUpstreamHuggingfacePartialUpdateRequest) Data(data HuggingfaceUpstreamRequestPatch) ApiReposUpstreamHuggingfacePartialUpdateRequest { r.data = &data return r } -func (r ApiReposUpstreamHexPartialUpdateRequest) Execute() (*HexUpstream, *http.Response, error) { - return r.ApiService.ReposUpstreamHexPartialUpdateExecute(r) +func (r ApiReposUpstreamHuggingfacePartialUpdateRequest) Execute() (*HuggingfaceUpstream, *http.Response, error) { + return r.ApiService.ReposUpstreamHuggingfacePartialUpdateExecute(r) } /* -ReposUpstreamHexPartialUpdate Partially update a Hex upstream config for this repository. +ReposUpstreamHuggingfacePartialUpdate Partially update a HuggingFace upstream config for this repository. -Partially update a Hex upstream config for this repository. +Partially update a HuggingFace upstream config for this repository. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param owner @param identifier @param slugPerm - @return ApiReposUpstreamHexPartialUpdateRequest + @return ApiReposUpstreamHuggingfacePartialUpdateRequest */ -func (a *ReposApiService) ReposUpstreamHexPartialUpdate(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamHexPartialUpdateRequest { - return ApiReposUpstreamHexPartialUpdateRequest{ +func (a *ReposApiService) ReposUpstreamHuggingfacePartialUpdate(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamHuggingfacePartialUpdateRequest { + return ApiReposUpstreamHuggingfacePartialUpdateRequest{ ApiService: a, ctx: ctx, owner: owner, @@ -11982,21 +13784,21 @@ func (a *ReposApiService) ReposUpstreamHexPartialUpdate(ctx context.Context, own } // Execute executes the request -// @return HexUpstream -func (a *ReposApiService) ReposUpstreamHexPartialUpdateExecute(r ApiReposUpstreamHexPartialUpdateRequest) (*HexUpstream, *http.Response, error) { +// @return HuggingfaceUpstream +func (a *ReposApiService) ReposUpstreamHuggingfacePartialUpdateExecute(r ApiReposUpstreamHuggingfacePartialUpdateRequest) (*HuggingfaceUpstream, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue *HexUpstream + localVarReturnValue *HuggingfaceUpstream ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamHexPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamHuggingfacePartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/hex/{slug_perm}/" + localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/huggingface/{slug_perm}/" localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", url.PathEscape(parameterValueToString(r.owner, "owner")), -1) localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", url.PathEscape(parameterValueToString(r.identifier, "identifier")), -1) localVarPath = strings.Replace(localVarPath, "{"+"slug_perm"+"}", url.PathEscape(parameterValueToString(r.slugPerm, "slugPerm")), -1) @@ -12096,7 +13898,7 @@ func (a *ReposApiService) ReposUpstreamHexPartialUpdateExecute(r ApiReposUpstrea return localVarReturnValue, localVarHTTPResponse, nil } -type ApiReposUpstreamHexReadRequest struct { +type ApiReposUpstreamHuggingfaceReadRequest struct { ctx context.Context ApiService *ReposApiService owner string @@ -12104,23 +13906,23 @@ type ApiReposUpstreamHexReadRequest struct { slugPerm string } -func (r ApiReposUpstreamHexReadRequest) Execute() (*HexUpstream, *http.Response, error) { - return r.ApiService.ReposUpstreamHexReadExecute(r) +func (r ApiReposUpstreamHuggingfaceReadRequest) Execute() (*HuggingfaceUpstream, *http.Response, error) { + return r.ApiService.ReposUpstreamHuggingfaceReadExecute(r) } /* -ReposUpstreamHexRead Retrieve a Hex upstream config for this repository. +ReposUpstreamHuggingfaceRead Retrieve a HuggingFace upstream config for this repository. -Retrieve a Hex upstream config for this repository. +Retrieve a HuggingFace upstream config for this repository. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param owner @param identifier @param slugPerm - @return ApiReposUpstreamHexReadRequest + @return ApiReposUpstreamHuggingfaceReadRequest */ -func (a *ReposApiService) ReposUpstreamHexRead(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamHexReadRequest { - return ApiReposUpstreamHexReadRequest{ +func (a *ReposApiService) ReposUpstreamHuggingfaceRead(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamHuggingfaceReadRequest { + return ApiReposUpstreamHuggingfaceReadRequest{ ApiService: a, ctx: ctx, owner: owner, @@ -12130,21 +13932,21 @@ func (a *ReposApiService) ReposUpstreamHexRead(ctx context.Context, owner string } // Execute executes the request -// @return HexUpstream -func (a *ReposApiService) ReposUpstreamHexReadExecute(r ApiReposUpstreamHexReadRequest) (*HexUpstream, *http.Response, error) { +// @return HuggingfaceUpstream +func (a *ReposApiService) ReposUpstreamHuggingfaceReadExecute(r ApiReposUpstreamHuggingfaceReadRequest) (*HuggingfaceUpstream, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *HexUpstream + localVarReturnValue *HuggingfaceUpstream ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamHexRead") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamHuggingfaceRead") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/hex/{slug_perm}/" + localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/huggingface/{slug_perm}/" localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", url.PathEscape(parameterValueToString(r.owner, "owner")), -1) localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", url.PathEscape(parameterValueToString(r.identifier, "identifier")), -1) localVarPath = strings.Replace(localVarPath, "{"+"slug_perm"+"}", url.PathEscape(parameterValueToString(r.slugPerm, "slugPerm")), -1) @@ -12242,37 +14044,37 @@ func (a *ReposApiService) ReposUpstreamHexReadExecute(r ApiReposUpstreamHexReadR return localVarReturnValue, localVarHTTPResponse, nil } -type ApiReposUpstreamHexUpdateRequest struct { +type ApiReposUpstreamHuggingfaceUpdateRequest struct { ctx context.Context ApiService *ReposApiService owner string identifier string slugPerm string - data *HexUpstreamRequest + data *HuggingfaceUpstreamRequest } -func (r ApiReposUpstreamHexUpdateRequest) Data(data HexUpstreamRequest) ApiReposUpstreamHexUpdateRequest { +func (r ApiReposUpstreamHuggingfaceUpdateRequest) Data(data HuggingfaceUpstreamRequest) ApiReposUpstreamHuggingfaceUpdateRequest { r.data = &data return r } -func (r ApiReposUpstreamHexUpdateRequest) Execute() (*HexUpstream, *http.Response, error) { - return r.ApiService.ReposUpstreamHexUpdateExecute(r) +func (r ApiReposUpstreamHuggingfaceUpdateRequest) Execute() (*HuggingfaceUpstream, *http.Response, error) { + return r.ApiService.ReposUpstreamHuggingfaceUpdateExecute(r) } /* -ReposUpstreamHexUpdate Update a Hex upstream config for this repository. +ReposUpstreamHuggingfaceUpdate Update a HuggingFace upstream config for this repository. -Update a Hex upstream config for this repository. +Update a HuggingFace upstream config for this repository. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param owner @param identifier @param slugPerm - @return ApiReposUpstreamHexUpdateRequest + @return ApiReposUpstreamHuggingfaceUpdateRequest */ -func (a *ReposApiService) ReposUpstreamHexUpdate(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamHexUpdateRequest { - return ApiReposUpstreamHexUpdateRequest{ +func (a *ReposApiService) ReposUpstreamHuggingfaceUpdate(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamHuggingfaceUpdateRequest { + return ApiReposUpstreamHuggingfaceUpdateRequest{ ApiService: a, ctx: ctx, owner: owner, @@ -12282,21 +14084,21 @@ func (a *ReposApiService) ReposUpstreamHexUpdate(ctx context.Context, owner stri } // Execute executes the request -// @return HexUpstream -func (a *ReposApiService) ReposUpstreamHexUpdateExecute(r ApiReposUpstreamHexUpdateRequest) (*HexUpstream, *http.Response, error) { +// @return HuggingfaceUpstream +func (a *ReposApiService) ReposUpstreamHuggingfaceUpdateExecute(r ApiReposUpstreamHuggingfaceUpdateRequest) (*HuggingfaceUpstream, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue *HexUpstream + localVarReturnValue *HuggingfaceUpstream ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamHexUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamHuggingfaceUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/hex/{slug_perm}/" + localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/huggingface/{slug_perm}/" localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", url.PathEscape(parameterValueToString(r.owner, "owner")), -1) localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", url.PathEscape(parameterValueToString(r.identifier, "identifier")), -1) localVarPath = strings.Replace(localVarPath, "{"+"slug_perm"+"}", url.PathEscape(parameterValueToString(r.slugPerm, "slugPerm")), -1) diff --git a/api_status.go b/api_status.go index 40bf42f5..f87fc2fa 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/api_storage_regions.go b/api_storage_regions.go index 6e569ae9..ffa07c64 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/api_user.go b/api_user.go index af1592aa..9d2b7ac1 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/api_users.go b/api_users.go index 731a53af..761c2717 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/api_vulnerabilities.go b/api_vulnerabilities.go index 9fc7b9c8..6f86d788 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/api_webhooks.go b/api_webhooks.go index 61c76f4d..ffebe116 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/bin/generate b/bin/generate index 375a8f78..0b0c0458 100755 --- a/bin/generate +++ b/bin/generate @@ -2,7 +2,7 @@ set -eou pipefail -PKG_VERSION=${1:-"0.0.49"} +PKG_VERSION=${1:-"0.0.50"} API_HOST=${2:-"https://api.cloudsmith.io"} diff --git a/client.go b/client.go index c6d2c39a..a27158e2 100644 --- a/client.go +++ b/client.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ @@ -41,7 +41,7 @@ var ( queryDescape = strings.NewReplacer("%5B", "[", "%5D", "]") ) -// APIClient manages communication with the Cloudsmith API (v1) API v1.768.2 +// APIClient manages communication with the Cloudsmith API (v1) API v1.830.6 // In most cases there should be only one, shared, APIClient. type APIClient struct { cfg *Configuration diff --git a/configuration.go b/configuration.go index 46ff4f1e..5fe0c334 100644 --- a/configuration.go +++ b/configuration.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.768.2 +API version: 1.830.6 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.49/go", + UserAgent: "OpenAPI-Generator/0.0.50/go", Debug: false, Servers: ServerConfigurations{ { diff --git a/docs/AlpinePackageUpload.md b/docs/AlpinePackageUpload.md index a0694fc8..e24801df 100644 --- a/docs/AlpinePackageUpload.md +++ b/docs/AlpinePackageUpload.md @@ -76,6 +76,7 @@ Name | Type | Description | Notes **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] @@ -2074,6 +2075,31 @@ SetSyncProgress sets SyncProgress field to given value. HasSyncProgress returns a boolean if a field has been set. +### GetTagsAutomatic + +`func (o *AlpinePackageUpload) GetTagsAutomatic() map[string]interface{}` + +GetTagsAutomatic returns the TagsAutomatic field if non-nil, zero value otherwise. + +### GetTagsAutomaticOk + +`func (o *AlpinePackageUpload) 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 *AlpinePackageUpload) SetTagsAutomatic(v map[string]interface{})` + +SetTagsAutomatic sets TagsAutomatic field to given value. + +### HasTagsAutomatic + +`func (o *AlpinePackageUpload) HasTagsAutomatic() bool` + +HasTagsAutomatic returns a boolean if a field has been set. + ### GetTagsImmutable `func (o *AlpinePackageUpload) GetTagsImmutable() map[string]interface{}` diff --git a/docs/CargoPackageUpload.md b/docs/CargoPackageUpload.md index 95a2eda3..d1b05149 100644 --- a/docs/CargoPackageUpload.md +++ b/docs/CargoPackageUpload.md @@ -76,6 +76,7 @@ Name | Type | Description | Notes **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] @@ -2074,6 +2075,31 @@ SetSyncProgress sets SyncProgress field to given value. HasSyncProgress returns a boolean if a field has been set. +### GetTagsAutomatic + +`func (o *CargoPackageUpload) GetTagsAutomatic() map[string]interface{}` + +GetTagsAutomatic returns the TagsAutomatic field if non-nil, zero value otherwise. + +### GetTagsAutomaticOk + +`func (o *CargoPackageUpload) 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 *CargoPackageUpload) SetTagsAutomatic(v map[string]interface{})` + +SetTagsAutomatic sets TagsAutomatic field to given value. + +### HasTagsAutomatic + +`func (o *CargoPackageUpload) HasTagsAutomatic() bool` + +HasTagsAutomatic returns a boolean if a field has been set. + ### GetTagsImmutable `func (o *CargoPackageUpload) GetTagsImmutable() map[string]interface{}` diff --git a/docs/CocoapodsPackageUpload.md b/docs/CocoapodsPackageUpload.md index 53cfdc65..77c0a29b 100644 --- a/docs/CocoapodsPackageUpload.md +++ b/docs/CocoapodsPackageUpload.md @@ -76,6 +76,7 @@ Name | Type | Description | Notes **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] @@ -2074,6 +2075,31 @@ SetSyncProgress sets SyncProgress field to given value. HasSyncProgress returns a boolean if a field has been set. +### GetTagsAutomatic + +`func (o *CocoapodsPackageUpload) GetTagsAutomatic() map[string]interface{}` + +GetTagsAutomatic returns the TagsAutomatic field if non-nil, zero value otherwise. + +### GetTagsAutomaticOk + +`func (o *CocoapodsPackageUpload) 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 *CocoapodsPackageUpload) SetTagsAutomatic(v map[string]interface{})` + +SetTagsAutomatic sets TagsAutomatic field to given value. + +### HasTagsAutomatic + +`func (o *CocoapodsPackageUpload) HasTagsAutomatic() bool` + +HasTagsAutomatic returns a boolean if a field has been set. + ### GetTagsImmutable `func (o *CocoapodsPackageUpload) GetTagsImmutable() map[string]interface{}` diff --git a/docs/ComposerPackageUpload.md b/docs/ComposerPackageUpload.md index 98789ba0..c3ae3fd4 100644 --- a/docs/ComposerPackageUpload.md +++ b/docs/ComposerPackageUpload.md @@ -76,6 +76,7 @@ Name | Type | Description | Notes **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] @@ -2074,6 +2075,31 @@ SetSyncProgress sets SyncProgress field to given value. HasSyncProgress returns a boolean if a field has been set. +### GetTagsAutomatic + +`func (o *ComposerPackageUpload) GetTagsAutomatic() map[string]interface{}` + +GetTagsAutomatic returns the TagsAutomatic field if non-nil, zero value otherwise. + +### GetTagsAutomaticOk + +`func (o *ComposerPackageUpload) 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 *ComposerPackageUpload) SetTagsAutomatic(v map[string]interface{})` + +SetTagsAutomatic sets TagsAutomatic field to given value. + +### HasTagsAutomatic + +`func (o *ComposerPackageUpload) HasTagsAutomatic() bool` + +HasTagsAutomatic returns a boolean if a field has been set. + ### GetTagsImmutable `func (o *ComposerPackageUpload) GetTagsImmutable() map[string]interface{}` diff --git a/docs/ConanPackageUpload.md b/docs/ConanPackageUpload.md index 68af94fc..7c2abf3e 100644 --- a/docs/ConanPackageUpload.md +++ b/docs/ConanPackageUpload.md @@ -78,6 +78,7 @@ Name | Type | Description | Notes **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] @@ -2146,6 +2147,31 @@ SetSyncProgress sets SyncProgress field to given value. HasSyncProgress returns a boolean if a field has been set. +### GetTagsAutomatic + +`func (o *ConanPackageUpload) GetTagsAutomatic() map[string]interface{}` + +GetTagsAutomatic returns the TagsAutomatic field if non-nil, zero value otherwise. + +### GetTagsAutomaticOk + +`func (o *ConanPackageUpload) 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 *ConanPackageUpload) SetTagsAutomatic(v map[string]interface{})` + +SetTagsAutomatic sets TagsAutomatic field to given value. + +### HasTagsAutomatic + +`func (o *ConanPackageUpload) HasTagsAutomatic() bool` + +HasTagsAutomatic returns a boolean if a field has been set. + ### GetTagsImmutable `func (o *ConanPackageUpload) GetTagsImmutable() map[string]interface{}` diff --git a/docs/CondaPackageUpload.md b/docs/CondaPackageUpload.md index 10145c95..780747b6 100644 --- a/docs/CondaPackageUpload.md +++ b/docs/CondaPackageUpload.md @@ -76,6 +76,7 @@ Name | Type | Description | Notes **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] @@ -2074,6 +2075,31 @@ SetSyncProgress sets SyncProgress field to given value. HasSyncProgress returns a boolean if a field has been set. +### GetTagsAutomatic + +`func (o *CondaPackageUpload) GetTagsAutomatic() map[string]interface{}` + +GetTagsAutomatic returns the TagsAutomatic field if non-nil, zero value otherwise. + +### GetTagsAutomaticOk + +`func (o *CondaPackageUpload) 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 *CondaPackageUpload) SetTagsAutomatic(v map[string]interface{})` + +SetTagsAutomatic sets TagsAutomatic field to given value. + +### HasTagsAutomatic + +`func (o *CondaPackageUpload) HasTagsAutomatic() bool` + +HasTagsAutomatic returns a boolean if a field has been set. + ### GetTagsImmutable `func (o *CondaPackageUpload) GetTagsImmutable() map[string]interface{}` diff --git a/docs/CondaUpstream.md b/docs/CondaUpstream.md new file mode 100644 index 00000000..9ebf40f0 --- /dev/null +++ b/docs/CondaUpstream.md @@ -0,0 +1,548 @@ +# CondaUpstream + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AuthMode** | Pointer to **string** | The authentication mode to use when accessing this upstream. | [optional] [default to "None"] +**AuthSecret** | Pointer to **NullableString** | Secret to provide with requests to upstream. | [optional] +**AuthUsername** | Pointer to **NullableString** | Username to provide with requests to upstream. | [optional] +**CreatedAt** | Pointer to **time.Time** | The datetime the upstream source was created. | [optional] [readonly] +**DisableReason** | Pointer to **string** | | [optional] [readonly] [default to "N/A"] +**ExtraHeader1** | Pointer to **NullableString** | The key for extra header #1 to send to upstream. | [optional] +**ExtraHeader2** | Pointer to **NullableString** | The key for extra header #2 to send to upstream. | [optional] +**ExtraValue1** | Pointer to **NullableString** | The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] +**ExtraValue2** | Pointer to **NullableString** | The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] +**IsActive** | Pointer to **bool** | Whether or not this upstream is active and ready for requests. | [optional] +**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] +**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. | +**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] + +## Methods + +### NewCondaUpstream + +`func NewCondaUpstream(name string, upstreamUrl string, ) *CondaUpstream` + +NewCondaUpstream instantiates a new CondaUpstream 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 + +### NewCondaUpstreamWithDefaults + +`func NewCondaUpstreamWithDefaults() *CondaUpstream` + +NewCondaUpstreamWithDefaults instantiates a new CondaUpstream 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 + +### GetAuthMode + +`func (o *CondaUpstream) GetAuthMode() string` + +GetAuthMode returns the AuthMode field if non-nil, zero value otherwise. + +### GetAuthModeOk + +`func (o *CondaUpstream) GetAuthModeOk() (*string, bool)` + +GetAuthModeOk returns a tuple with the AuthMode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthMode + +`func (o *CondaUpstream) SetAuthMode(v string)` + +SetAuthMode sets AuthMode field to given value. + +### HasAuthMode + +`func (o *CondaUpstream) HasAuthMode() bool` + +HasAuthMode returns a boolean if a field has been set. + +### GetAuthSecret + +`func (o *CondaUpstream) GetAuthSecret() string` + +GetAuthSecret returns the AuthSecret field if non-nil, zero value otherwise. + +### GetAuthSecretOk + +`func (o *CondaUpstream) GetAuthSecretOk() (*string, bool)` + +GetAuthSecretOk returns a tuple with the AuthSecret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthSecret + +`func (o *CondaUpstream) SetAuthSecret(v string)` + +SetAuthSecret sets AuthSecret field to given value. + +### HasAuthSecret + +`func (o *CondaUpstream) HasAuthSecret() bool` + +HasAuthSecret returns a boolean if a field has been set. + +### SetAuthSecretNil + +`func (o *CondaUpstream) SetAuthSecretNil(b bool)` + + SetAuthSecretNil sets the value for AuthSecret to be an explicit nil + +### UnsetAuthSecret +`func (o *CondaUpstream) UnsetAuthSecret()` + +UnsetAuthSecret ensures that no value is present for AuthSecret, not even an explicit nil +### GetAuthUsername + +`func (o *CondaUpstream) GetAuthUsername() string` + +GetAuthUsername returns the AuthUsername field if non-nil, zero value otherwise. + +### GetAuthUsernameOk + +`func (o *CondaUpstream) GetAuthUsernameOk() (*string, bool)` + +GetAuthUsernameOk returns a tuple with the AuthUsername field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthUsername + +`func (o *CondaUpstream) SetAuthUsername(v string)` + +SetAuthUsername sets AuthUsername field to given value. + +### HasAuthUsername + +`func (o *CondaUpstream) HasAuthUsername() bool` + +HasAuthUsername returns a boolean if a field has been set. + +### SetAuthUsernameNil + +`func (o *CondaUpstream) SetAuthUsernameNil(b bool)` + + SetAuthUsernameNil sets the value for AuthUsername to be an explicit nil + +### UnsetAuthUsername +`func (o *CondaUpstream) UnsetAuthUsername()` + +UnsetAuthUsername ensures that no value is present for AuthUsername, not even an explicit nil +### GetCreatedAt + +`func (o *CondaUpstream) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *CondaUpstream) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *CondaUpstream) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *CondaUpstream) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetDisableReason + +`func (o *CondaUpstream) GetDisableReason() string` + +GetDisableReason returns the DisableReason field if non-nil, zero value otherwise. + +### GetDisableReasonOk + +`func (o *CondaUpstream) GetDisableReasonOk() (*string, bool)` + +GetDisableReasonOk returns a tuple with the DisableReason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisableReason + +`func (o *CondaUpstream) SetDisableReason(v string)` + +SetDisableReason sets DisableReason field to given value. + +### HasDisableReason + +`func (o *CondaUpstream) HasDisableReason() bool` + +HasDisableReason returns a boolean if a field has been set. + +### GetExtraHeader1 + +`func (o *CondaUpstream) GetExtraHeader1() string` + +GetExtraHeader1 returns the ExtraHeader1 field if non-nil, zero value otherwise. + +### GetExtraHeader1Ok + +`func (o *CondaUpstream) GetExtraHeader1Ok() (*string, bool)` + +GetExtraHeader1Ok returns a tuple with the ExtraHeader1 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExtraHeader1 + +`func (o *CondaUpstream) SetExtraHeader1(v string)` + +SetExtraHeader1 sets ExtraHeader1 field to given value. + +### HasExtraHeader1 + +`func (o *CondaUpstream) HasExtraHeader1() bool` + +HasExtraHeader1 returns a boolean if a field has been set. + +### SetExtraHeader1Nil + +`func (o *CondaUpstream) SetExtraHeader1Nil(b bool)` + + SetExtraHeader1Nil sets the value for ExtraHeader1 to be an explicit nil + +### UnsetExtraHeader1 +`func (o *CondaUpstream) UnsetExtraHeader1()` + +UnsetExtraHeader1 ensures that no value is present for ExtraHeader1, not even an explicit nil +### GetExtraHeader2 + +`func (o *CondaUpstream) GetExtraHeader2() string` + +GetExtraHeader2 returns the ExtraHeader2 field if non-nil, zero value otherwise. + +### GetExtraHeader2Ok + +`func (o *CondaUpstream) GetExtraHeader2Ok() (*string, bool)` + +GetExtraHeader2Ok returns a tuple with the ExtraHeader2 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExtraHeader2 + +`func (o *CondaUpstream) SetExtraHeader2(v string)` + +SetExtraHeader2 sets ExtraHeader2 field to given value. + +### HasExtraHeader2 + +`func (o *CondaUpstream) HasExtraHeader2() bool` + +HasExtraHeader2 returns a boolean if a field has been set. + +### SetExtraHeader2Nil + +`func (o *CondaUpstream) SetExtraHeader2Nil(b bool)` + + SetExtraHeader2Nil sets the value for ExtraHeader2 to be an explicit nil + +### UnsetExtraHeader2 +`func (o *CondaUpstream) UnsetExtraHeader2()` + +UnsetExtraHeader2 ensures that no value is present for ExtraHeader2, not even an explicit nil +### GetExtraValue1 + +`func (o *CondaUpstream) GetExtraValue1() string` + +GetExtraValue1 returns the ExtraValue1 field if non-nil, zero value otherwise. + +### GetExtraValue1Ok + +`func (o *CondaUpstream) GetExtraValue1Ok() (*string, bool)` + +GetExtraValue1Ok returns a tuple with the ExtraValue1 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExtraValue1 + +`func (o *CondaUpstream) SetExtraValue1(v string)` + +SetExtraValue1 sets ExtraValue1 field to given value. + +### HasExtraValue1 + +`func (o *CondaUpstream) HasExtraValue1() bool` + +HasExtraValue1 returns a boolean if a field has been set. + +### SetExtraValue1Nil + +`func (o *CondaUpstream) SetExtraValue1Nil(b bool)` + + SetExtraValue1Nil sets the value for ExtraValue1 to be an explicit nil + +### UnsetExtraValue1 +`func (o *CondaUpstream) UnsetExtraValue1()` + +UnsetExtraValue1 ensures that no value is present for ExtraValue1, not even an explicit nil +### GetExtraValue2 + +`func (o *CondaUpstream) GetExtraValue2() string` + +GetExtraValue2 returns the ExtraValue2 field if non-nil, zero value otherwise. + +### GetExtraValue2Ok + +`func (o *CondaUpstream) GetExtraValue2Ok() (*string, bool)` + +GetExtraValue2Ok returns a tuple with the ExtraValue2 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExtraValue2 + +`func (o *CondaUpstream) SetExtraValue2(v string)` + +SetExtraValue2 sets ExtraValue2 field to given value. + +### HasExtraValue2 + +`func (o *CondaUpstream) HasExtraValue2() bool` + +HasExtraValue2 returns a boolean if a field has been set. + +### SetExtraValue2Nil + +`func (o *CondaUpstream) SetExtraValue2Nil(b bool)` + + SetExtraValue2Nil sets the value for ExtraValue2 to be an explicit nil + +### UnsetExtraValue2 +`func (o *CondaUpstream) UnsetExtraValue2()` + +UnsetExtraValue2 ensures that no value is present for ExtraValue2, not even an explicit nil +### GetIsActive + +`func (o *CondaUpstream) GetIsActive() bool` + +GetIsActive returns the IsActive field if non-nil, zero value otherwise. + +### GetIsActiveOk + +`func (o *CondaUpstream) GetIsActiveOk() (*bool, bool)` + +GetIsActiveOk returns a tuple with the IsActive field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsActive + +`func (o *CondaUpstream) SetIsActive(v bool)` + +SetIsActive sets IsActive field to given value. + +### HasIsActive + +`func (o *CondaUpstream) HasIsActive() bool` + +HasIsActive returns a boolean if a field has been set. + +### GetMode + +`func (o *CondaUpstream) GetMode() string` + +GetMode returns the Mode field if non-nil, zero value otherwise. + +### GetModeOk + +`func (o *CondaUpstream) GetModeOk() (*string, bool)` + +GetModeOk returns a tuple with the Mode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMode + +`func (o *CondaUpstream) SetMode(v string)` + +SetMode sets Mode field to given value. + +### HasMode + +`func (o *CondaUpstream) HasMode() bool` + +HasMode returns a boolean if a field has been set. + +### GetName + +`func (o *CondaUpstream) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CondaUpstream) 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 *CondaUpstream) SetName(v string)` + +SetName sets Name field to given value. + + +### GetPendingValidation + +`func (o *CondaUpstream) GetPendingValidation() bool` + +GetPendingValidation returns the PendingValidation field if non-nil, zero value otherwise. + +### GetPendingValidationOk + +`func (o *CondaUpstream) GetPendingValidationOk() (*bool, bool)` + +GetPendingValidationOk returns a tuple with the PendingValidation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPendingValidation + +`func (o *CondaUpstream) SetPendingValidation(v bool)` + +SetPendingValidation sets PendingValidation field to given value. + +### HasPendingValidation + +`func (o *CondaUpstream) HasPendingValidation() bool` + +HasPendingValidation returns a boolean if a field has been set. + +### GetPriority + +`func (o *CondaUpstream) GetPriority() int64` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *CondaUpstream) GetPriorityOk() (*int64, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *CondaUpstream) SetPriority(v int64)` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *CondaUpstream) HasPriority() bool` + +HasPriority returns a boolean if a field has been set. + +### GetSlugPerm + +`func (o *CondaUpstream) GetSlugPerm() string` + +GetSlugPerm returns the SlugPerm field if non-nil, zero value otherwise. + +### GetSlugPermOk + +`func (o *CondaUpstream) 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 *CondaUpstream) SetSlugPerm(v string)` + +SetSlugPerm sets SlugPerm field to given value. + +### HasSlugPerm + +`func (o *CondaUpstream) HasSlugPerm() bool` + +HasSlugPerm returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *CondaUpstream) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *CondaUpstream) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *CondaUpstream) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *CondaUpstream) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + +### GetUpstreamUrl + +`func (o *CondaUpstream) GetUpstreamUrl() string` + +GetUpstreamUrl returns the UpstreamUrl field if non-nil, zero value otherwise. + +### GetUpstreamUrlOk + +`func (o *CondaUpstream) GetUpstreamUrlOk() (*string, bool)` + +GetUpstreamUrlOk returns a tuple with the UpstreamUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpstreamUrl + +`func (o *CondaUpstream) SetUpstreamUrl(v string)` + +SetUpstreamUrl sets UpstreamUrl field to given value. + + +### GetVerifySsl + +`func (o *CondaUpstream) GetVerifySsl() bool` + +GetVerifySsl returns the VerifySsl field if non-nil, zero value otherwise. + +### GetVerifySslOk + +`func (o *CondaUpstream) GetVerifySslOk() (*bool, bool)` + +GetVerifySslOk returns a tuple with the VerifySsl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVerifySsl + +`func (o *CondaUpstream) SetVerifySsl(v bool)` + +SetVerifySsl sets VerifySsl field to given value. + +### HasVerifySsl + +`func (o *CondaUpstream) HasVerifySsl() bool` + +HasVerifySsl 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/CondaUpstreamRequest.md b/docs/CondaUpstreamRequest.md new file mode 100644 index 00000000..e44419d7 --- /dev/null +++ b/docs/CondaUpstreamRequest.md @@ -0,0 +1,418 @@ +# CondaUpstreamRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AuthMode** | Pointer to **string** | The authentication mode to use when accessing this upstream. | [optional] [default to "None"] +**AuthSecret** | Pointer to **NullableString** | Secret to provide with requests to upstream. | [optional] +**AuthUsername** | Pointer to **NullableString** | Username to provide with requests to upstream. | [optional] +**ExtraHeader1** | Pointer to **NullableString** | The key for extra header #1 to send to upstream. | [optional] +**ExtraHeader2** | Pointer to **NullableString** | The key for extra header #2 to send to upstream. | [optional] +**ExtraValue1** | Pointer to **NullableString** | The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] +**ExtraValue2** | Pointer to **NullableString** | The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] +**IsActive** | Pointer to **bool** | Whether or not this upstream is active and ready for requests. | [optional] +**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] +**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] + +## Methods + +### NewCondaUpstreamRequest + +`func NewCondaUpstreamRequest(name string, upstreamUrl string, ) *CondaUpstreamRequest` + +NewCondaUpstreamRequest instantiates a new CondaUpstreamRequest 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 + +### NewCondaUpstreamRequestWithDefaults + +`func NewCondaUpstreamRequestWithDefaults() *CondaUpstreamRequest` + +NewCondaUpstreamRequestWithDefaults instantiates a new CondaUpstreamRequest 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 + +### GetAuthMode + +`func (o *CondaUpstreamRequest) GetAuthMode() string` + +GetAuthMode returns the AuthMode field if non-nil, zero value otherwise. + +### GetAuthModeOk + +`func (o *CondaUpstreamRequest) GetAuthModeOk() (*string, bool)` + +GetAuthModeOk returns a tuple with the AuthMode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthMode + +`func (o *CondaUpstreamRequest) SetAuthMode(v string)` + +SetAuthMode sets AuthMode field to given value. + +### HasAuthMode + +`func (o *CondaUpstreamRequest) HasAuthMode() bool` + +HasAuthMode returns a boolean if a field has been set. + +### GetAuthSecret + +`func (o *CondaUpstreamRequest) GetAuthSecret() string` + +GetAuthSecret returns the AuthSecret field if non-nil, zero value otherwise. + +### GetAuthSecretOk + +`func (o *CondaUpstreamRequest) GetAuthSecretOk() (*string, bool)` + +GetAuthSecretOk returns a tuple with the AuthSecret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthSecret + +`func (o *CondaUpstreamRequest) SetAuthSecret(v string)` + +SetAuthSecret sets AuthSecret field to given value. + +### HasAuthSecret + +`func (o *CondaUpstreamRequest) HasAuthSecret() bool` + +HasAuthSecret returns a boolean if a field has been set. + +### SetAuthSecretNil + +`func (o *CondaUpstreamRequest) SetAuthSecretNil(b bool)` + + SetAuthSecretNil sets the value for AuthSecret to be an explicit nil + +### UnsetAuthSecret +`func (o *CondaUpstreamRequest) UnsetAuthSecret()` + +UnsetAuthSecret ensures that no value is present for AuthSecret, not even an explicit nil +### GetAuthUsername + +`func (o *CondaUpstreamRequest) GetAuthUsername() string` + +GetAuthUsername returns the AuthUsername field if non-nil, zero value otherwise. + +### GetAuthUsernameOk + +`func (o *CondaUpstreamRequest) GetAuthUsernameOk() (*string, bool)` + +GetAuthUsernameOk returns a tuple with the AuthUsername field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthUsername + +`func (o *CondaUpstreamRequest) SetAuthUsername(v string)` + +SetAuthUsername sets AuthUsername field to given value. + +### HasAuthUsername + +`func (o *CondaUpstreamRequest) HasAuthUsername() bool` + +HasAuthUsername returns a boolean if a field has been set. + +### SetAuthUsernameNil + +`func (o *CondaUpstreamRequest) SetAuthUsernameNil(b bool)` + + SetAuthUsernameNil sets the value for AuthUsername to be an explicit nil + +### UnsetAuthUsername +`func (o *CondaUpstreamRequest) UnsetAuthUsername()` + +UnsetAuthUsername ensures that no value is present for AuthUsername, not even an explicit nil +### GetExtraHeader1 + +`func (o *CondaUpstreamRequest) GetExtraHeader1() string` + +GetExtraHeader1 returns the ExtraHeader1 field if non-nil, zero value otherwise. + +### GetExtraHeader1Ok + +`func (o *CondaUpstreamRequest) GetExtraHeader1Ok() (*string, bool)` + +GetExtraHeader1Ok returns a tuple with the ExtraHeader1 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExtraHeader1 + +`func (o *CondaUpstreamRequest) SetExtraHeader1(v string)` + +SetExtraHeader1 sets ExtraHeader1 field to given value. + +### HasExtraHeader1 + +`func (o *CondaUpstreamRequest) HasExtraHeader1() bool` + +HasExtraHeader1 returns a boolean if a field has been set. + +### SetExtraHeader1Nil + +`func (o *CondaUpstreamRequest) SetExtraHeader1Nil(b bool)` + + SetExtraHeader1Nil sets the value for ExtraHeader1 to be an explicit nil + +### UnsetExtraHeader1 +`func (o *CondaUpstreamRequest) UnsetExtraHeader1()` + +UnsetExtraHeader1 ensures that no value is present for ExtraHeader1, not even an explicit nil +### GetExtraHeader2 + +`func (o *CondaUpstreamRequest) GetExtraHeader2() string` + +GetExtraHeader2 returns the ExtraHeader2 field if non-nil, zero value otherwise. + +### GetExtraHeader2Ok + +`func (o *CondaUpstreamRequest) GetExtraHeader2Ok() (*string, bool)` + +GetExtraHeader2Ok returns a tuple with the ExtraHeader2 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExtraHeader2 + +`func (o *CondaUpstreamRequest) SetExtraHeader2(v string)` + +SetExtraHeader2 sets ExtraHeader2 field to given value. + +### HasExtraHeader2 + +`func (o *CondaUpstreamRequest) HasExtraHeader2() bool` + +HasExtraHeader2 returns a boolean if a field has been set. + +### SetExtraHeader2Nil + +`func (o *CondaUpstreamRequest) SetExtraHeader2Nil(b bool)` + + SetExtraHeader2Nil sets the value for ExtraHeader2 to be an explicit nil + +### UnsetExtraHeader2 +`func (o *CondaUpstreamRequest) UnsetExtraHeader2()` + +UnsetExtraHeader2 ensures that no value is present for ExtraHeader2, not even an explicit nil +### GetExtraValue1 + +`func (o *CondaUpstreamRequest) GetExtraValue1() string` + +GetExtraValue1 returns the ExtraValue1 field if non-nil, zero value otherwise. + +### GetExtraValue1Ok + +`func (o *CondaUpstreamRequest) GetExtraValue1Ok() (*string, bool)` + +GetExtraValue1Ok returns a tuple with the ExtraValue1 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExtraValue1 + +`func (o *CondaUpstreamRequest) SetExtraValue1(v string)` + +SetExtraValue1 sets ExtraValue1 field to given value. + +### HasExtraValue1 + +`func (o *CondaUpstreamRequest) HasExtraValue1() bool` + +HasExtraValue1 returns a boolean if a field has been set. + +### SetExtraValue1Nil + +`func (o *CondaUpstreamRequest) SetExtraValue1Nil(b bool)` + + SetExtraValue1Nil sets the value for ExtraValue1 to be an explicit nil + +### UnsetExtraValue1 +`func (o *CondaUpstreamRequest) UnsetExtraValue1()` + +UnsetExtraValue1 ensures that no value is present for ExtraValue1, not even an explicit nil +### GetExtraValue2 + +`func (o *CondaUpstreamRequest) GetExtraValue2() string` + +GetExtraValue2 returns the ExtraValue2 field if non-nil, zero value otherwise. + +### GetExtraValue2Ok + +`func (o *CondaUpstreamRequest) GetExtraValue2Ok() (*string, bool)` + +GetExtraValue2Ok returns a tuple with the ExtraValue2 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExtraValue2 + +`func (o *CondaUpstreamRequest) SetExtraValue2(v string)` + +SetExtraValue2 sets ExtraValue2 field to given value. + +### HasExtraValue2 + +`func (o *CondaUpstreamRequest) HasExtraValue2() bool` + +HasExtraValue2 returns a boolean if a field has been set. + +### SetExtraValue2Nil + +`func (o *CondaUpstreamRequest) SetExtraValue2Nil(b bool)` + + SetExtraValue2Nil sets the value for ExtraValue2 to be an explicit nil + +### UnsetExtraValue2 +`func (o *CondaUpstreamRequest) UnsetExtraValue2()` + +UnsetExtraValue2 ensures that no value is present for ExtraValue2, not even an explicit nil +### GetIsActive + +`func (o *CondaUpstreamRequest) GetIsActive() bool` + +GetIsActive returns the IsActive field if non-nil, zero value otherwise. + +### GetIsActiveOk + +`func (o *CondaUpstreamRequest) GetIsActiveOk() (*bool, bool)` + +GetIsActiveOk returns a tuple with the IsActive field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsActive + +`func (o *CondaUpstreamRequest) SetIsActive(v bool)` + +SetIsActive sets IsActive field to given value. + +### HasIsActive + +`func (o *CondaUpstreamRequest) HasIsActive() bool` + +HasIsActive returns a boolean if a field has been set. + +### GetMode + +`func (o *CondaUpstreamRequest) GetMode() string` + +GetMode returns the Mode field if non-nil, zero value otherwise. + +### GetModeOk + +`func (o *CondaUpstreamRequest) GetModeOk() (*string, bool)` + +GetModeOk returns a tuple with the Mode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMode + +`func (o *CondaUpstreamRequest) SetMode(v string)` + +SetMode sets Mode field to given value. + +### HasMode + +`func (o *CondaUpstreamRequest) HasMode() bool` + +HasMode returns a boolean if a field has been set. + +### GetName + +`func (o *CondaUpstreamRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CondaUpstreamRequest) 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 *CondaUpstreamRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetPriority + +`func (o *CondaUpstreamRequest) GetPriority() int64` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *CondaUpstreamRequest) GetPriorityOk() (*int64, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *CondaUpstreamRequest) SetPriority(v int64)` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *CondaUpstreamRequest) HasPriority() bool` + +HasPriority returns a boolean if a field has been set. + +### GetUpstreamUrl + +`func (o *CondaUpstreamRequest) GetUpstreamUrl() string` + +GetUpstreamUrl returns the UpstreamUrl field if non-nil, zero value otherwise. + +### GetUpstreamUrlOk + +`func (o *CondaUpstreamRequest) GetUpstreamUrlOk() (*string, bool)` + +GetUpstreamUrlOk returns a tuple with the UpstreamUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpstreamUrl + +`func (o *CondaUpstreamRequest) SetUpstreamUrl(v string)` + +SetUpstreamUrl sets UpstreamUrl field to given value. + + +### GetVerifySsl + +`func (o *CondaUpstreamRequest) GetVerifySsl() bool` + +GetVerifySsl returns the VerifySsl field if non-nil, zero value otherwise. + +### GetVerifySslOk + +`func (o *CondaUpstreamRequest) GetVerifySslOk() (*bool, bool)` + +GetVerifySslOk returns a tuple with the VerifySsl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVerifySsl + +`func (o *CondaUpstreamRequest) SetVerifySsl(v bool)` + +SetVerifySsl sets VerifySsl field to given value. + +### HasVerifySsl + +`func (o *CondaUpstreamRequest) HasVerifySsl() bool` + +HasVerifySsl 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/CondaUpstreamRequestPatch.md b/docs/CondaUpstreamRequestPatch.md new file mode 100644 index 00000000..94230f39 --- /dev/null +++ b/docs/CondaUpstreamRequestPatch.md @@ -0,0 +1,428 @@ +# CondaUpstreamRequestPatch + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AuthMode** | Pointer to **string** | The authentication mode to use when accessing this upstream. | [optional] [default to "None"] +**AuthSecret** | Pointer to **NullableString** | Secret to provide with requests to upstream. | [optional] +**AuthUsername** | Pointer to **NullableString** | Username to provide with requests to upstream. | [optional] +**ExtraHeader1** | Pointer to **NullableString** | The key for extra header #1 to send to upstream. | [optional] +**ExtraHeader2** | Pointer to **NullableString** | The key for extra header #2 to send to upstream. | [optional] +**ExtraValue1** | Pointer to **NullableString** | The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] +**ExtraValue2** | Pointer to **NullableString** | The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] +**IsActive** | Pointer to **bool** | Whether or not this upstream is active and ready for requests. | [optional] +**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] +**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] + +## Methods + +### NewCondaUpstreamRequestPatch + +`func NewCondaUpstreamRequestPatch() *CondaUpstreamRequestPatch` + +NewCondaUpstreamRequestPatch instantiates a new CondaUpstreamRequestPatch 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 + +### NewCondaUpstreamRequestPatchWithDefaults + +`func NewCondaUpstreamRequestPatchWithDefaults() *CondaUpstreamRequestPatch` + +NewCondaUpstreamRequestPatchWithDefaults instantiates a new CondaUpstreamRequestPatch 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 + +### GetAuthMode + +`func (o *CondaUpstreamRequestPatch) GetAuthMode() string` + +GetAuthMode returns the AuthMode field if non-nil, zero value otherwise. + +### GetAuthModeOk + +`func (o *CondaUpstreamRequestPatch) GetAuthModeOk() (*string, bool)` + +GetAuthModeOk returns a tuple with the AuthMode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthMode + +`func (o *CondaUpstreamRequestPatch) SetAuthMode(v string)` + +SetAuthMode sets AuthMode field to given value. + +### HasAuthMode + +`func (o *CondaUpstreamRequestPatch) HasAuthMode() bool` + +HasAuthMode returns a boolean if a field has been set. + +### GetAuthSecret + +`func (o *CondaUpstreamRequestPatch) GetAuthSecret() string` + +GetAuthSecret returns the AuthSecret field if non-nil, zero value otherwise. + +### GetAuthSecretOk + +`func (o *CondaUpstreamRequestPatch) GetAuthSecretOk() (*string, bool)` + +GetAuthSecretOk returns a tuple with the AuthSecret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthSecret + +`func (o *CondaUpstreamRequestPatch) SetAuthSecret(v string)` + +SetAuthSecret sets AuthSecret field to given value. + +### HasAuthSecret + +`func (o *CondaUpstreamRequestPatch) HasAuthSecret() bool` + +HasAuthSecret returns a boolean if a field has been set. + +### SetAuthSecretNil + +`func (o *CondaUpstreamRequestPatch) SetAuthSecretNil(b bool)` + + SetAuthSecretNil sets the value for AuthSecret to be an explicit nil + +### UnsetAuthSecret +`func (o *CondaUpstreamRequestPatch) UnsetAuthSecret()` + +UnsetAuthSecret ensures that no value is present for AuthSecret, not even an explicit nil +### GetAuthUsername + +`func (o *CondaUpstreamRequestPatch) GetAuthUsername() string` + +GetAuthUsername returns the AuthUsername field if non-nil, zero value otherwise. + +### GetAuthUsernameOk + +`func (o *CondaUpstreamRequestPatch) GetAuthUsernameOk() (*string, bool)` + +GetAuthUsernameOk returns a tuple with the AuthUsername field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthUsername + +`func (o *CondaUpstreamRequestPatch) SetAuthUsername(v string)` + +SetAuthUsername sets AuthUsername field to given value. + +### HasAuthUsername + +`func (o *CondaUpstreamRequestPatch) HasAuthUsername() bool` + +HasAuthUsername returns a boolean if a field has been set. + +### SetAuthUsernameNil + +`func (o *CondaUpstreamRequestPatch) SetAuthUsernameNil(b bool)` + + SetAuthUsernameNil sets the value for AuthUsername to be an explicit nil + +### UnsetAuthUsername +`func (o *CondaUpstreamRequestPatch) UnsetAuthUsername()` + +UnsetAuthUsername ensures that no value is present for AuthUsername, not even an explicit nil +### GetExtraHeader1 + +`func (o *CondaUpstreamRequestPatch) GetExtraHeader1() string` + +GetExtraHeader1 returns the ExtraHeader1 field if non-nil, zero value otherwise. + +### GetExtraHeader1Ok + +`func (o *CondaUpstreamRequestPatch) GetExtraHeader1Ok() (*string, bool)` + +GetExtraHeader1Ok returns a tuple with the ExtraHeader1 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExtraHeader1 + +`func (o *CondaUpstreamRequestPatch) SetExtraHeader1(v string)` + +SetExtraHeader1 sets ExtraHeader1 field to given value. + +### HasExtraHeader1 + +`func (o *CondaUpstreamRequestPatch) HasExtraHeader1() bool` + +HasExtraHeader1 returns a boolean if a field has been set. + +### SetExtraHeader1Nil + +`func (o *CondaUpstreamRequestPatch) SetExtraHeader1Nil(b bool)` + + SetExtraHeader1Nil sets the value for ExtraHeader1 to be an explicit nil + +### UnsetExtraHeader1 +`func (o *CondaUpstreamRequestPatch) UnsetExtraHeader1()` + +UnsetExtraHeader1 ensures that no value is present for ExtraHeader1, not even an explicit nil +### GetExtraHeader2 + +`func (o *CondaUpstreamRequestPatch) GetExtraHeader2() string` + +GetExtraHeader2 returns the ExtraHeader2 field if non-nil, zero value otherwise. + +### GetExtraHeader2Ok + +`func (o *CondaUpstreamRequestPatch) GetExtraHeader2Ok() (*string, bool)` + +GetExtraHeader2Ok returns a tuple with the ExtraHeader2 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExtraHeader2 + +`func (o *CondaUpstreamRequestPatch) SetExtraHeader2(v string)` + +SetExtraHeader2 sets ExtraHeader2 field to given value. + +### HasExtraHeader2 + +`func (o *CondaUpstreamRequestPatch) HasExtraHeader2() bool` + +HasExtraHeader2 returns a boolean if a field has been set. + +### SetExtraHeader2Nil + +`func (o *CondaUpstreamRequestPatch) SetExtraHeader2Nil(b bool)` + + SetExtraHeader2Nil sets the value for ExtraHeader2 to be an explicit nil + +### UnsetExtraHeader2 +`func (o *CondaUpstreamRequestPatch) UnsetExtraHeader2()` + +UnsetExtraHeader2 ensures that no value is present for ExtraHeader2, not even an explicit nil +### GetExtraValue1 + +`func (o *CondaUpstreamRequestPatch) GetExtraValue1() string` + +GetExtraValue1 returns the ExtraValue1 field if non-nil, zero value otherwise. + +### GetExtraValue1Ok + +`func (o *CondaUpstreamRequestPatch) GetExtraValue1Ok() (*string, bool)` + +GetExtraValue1Ok returns a tuple with the ExtraValue1 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExtraValue1 + +`func (o *CondaUpstreamRequestPatch) SetExtraValue1(v string)` + +SetExtraValue1 sets ExtraValue1 field to given value. + +### HasExtraValue1 + +`func (o *CondaUpstreamRequestPatch) HasExtraValue1() bool` + +HasExtraValue1 returns a boolean if a field has been set. + +### SetExtraValue1Nil + +`func (o *CondaUpstreamRequestPatch) SetExtraValue1Nil(b bool)` + + SetExtraValue1Nil sets the value for ExtraValue1 to be an explicit nil + +### UnsetExtraValue1 +`func (o *CondaUpstreamRequestPatch) UnsetExtraValue1()` + +UnsetExtraValue1 ensures that no value is present for ExtraValue1, not even an explicit nil +### GetExtraValue2 + +`func (o *CondaUpstreamRequestPatch) GetExtraValue2() string` + +GetExtraValue2 returns the ExtraValue2 field if non-nil, zero value otherwise. + +### GetExtraValue2Ok + +`func (o *CondaUpstreamRequestPatch) GetExtraValue2Ok() (*string, bool)` + +GetExtraValue2Ok returns a tuple with the ExtraValue2 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExtraValue2 + +`func (o *CondaUpstreamRequestPatch) SetExtraValue2(v string)` + +SetExtraValue2 sets ExtraValue2 field to given value. + +### HasExtraValue2 + +`func (o *CondaUpstreamRequestPatch) HasExtraValue2() bool` + +HasExtraValue2 returns a boolean if a field has been set. + +### SetExtraValue2Nil + +`func (o *CondaUpstreamRequestPatch) SetExtraValue2Nil(b bool)` + + SetExtraValue2Nil sets the value for ExtraValue2 to be an explicit nil + +### UnsetExtraValue2 +`func (o *CondaUpstreamRequestPatch) UnsetExtraValue2()` + +UnsetExtraValue2 ensures that no value is present for ExtraValue2, not even an explicit nil +### GetIsActive + +`func (o *CondaUpstreamRequestPatch) GetIsActive() bool` + +GetIsActive returns the IsActive field if non-nil, zero value otherwise. + +### GetIsActiveOk + +`func (o *CondaUpstreamRequestPatch) GetIsActiveOk() (*bool, bool)` + +GetIsActiveOk returns a tuple with the IsActive field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsActive + +`func (o *CondaUpstreamRequestPatch) SetIsActive(v bool)` + +SetIsActive sets IsActive field to given value. + +### HasIsActive + +`func (o *CondaUpstreamRequestPatch) HasIsActive() bool` + +HasIsActive returns a boolean if a field has been set. + +### GetMode + +`func (o *CondaUpstreamRequestPatch) GetMode() string` + +GetMode returns the Mode field if non-nil, zero value otherwise. + +### GetModeOk + +`func (o *CondaUpstreamRequestPatch) GetModeOk() (*string, bool)` + +GetModeOk returns a tuple with the Mode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMode + +`func (o *CondaUpstreamRequestPatch) SetMode(v string)` + +SetMode sets Mode field to given value. + +### HasMode + +`func (o *CondaUpstreamRequestPatch) HasMode() bool` + +HasMode returns a boolean if a field has been set. + +### GetName + +`func (o *CondaUpstreamRequestPatch) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CondaUpstreamRequestPatch) 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 *CondaUpstreamRequestPatch) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *CondaUpstreamRequestPatch) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetPriority + +`func (o *CondaUpstreamRequestPatch) GetPriority() int64` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *CondaUpstreamRequestPatch) GetPriorityOk() (*int64, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *CondaUpstreamRequestPatch) SetPriority(v int64)` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *CondaUpstreamRequestPatch) HasPriority() bool` + +HasPriority returns a boolean if a field has been set. + +### GetUpstreamUrl + +`func (o *CondaUpstreamRequestPatch) GetUpstreamUrl() string` + +GetUpstreamUrl returns the UpstreamUrl field if non-nil, zero value otherwise. + +### GetUpstreamUrlOk + +`func (o *CondaUpstreamRequestPatch) GetUpstreamUrlOk() (*string, bool)` + +GetUpstreamUrlOk returns a tuple with the UpstreamUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpstreamUrl + +`func (o *CondaUpstreamRequestPatch) SetUpstreamUrl(v string)` + +SetUpstreamUrl sets UpstreamUrl field to given value. + +### HasUpstreamUrl + +`func (o *CondaUpstreamRequestPatch) HasUpstreamUrl() bool` + +HasUpstreamUrl returns a boolean if a field has been set. + +### GetVerifySsl + +`func (o *CondaUpstreamRequestPatch) GetVerifySsl() bool` + +GetVerifySsl returns the VerifySsl field if non-nil, zero value otherwise. + +### GetVerifySslOk + +`func (o *CondaUpstreamRequestPatch) GetVerifySslOk() (*bool, bool)` + +GetVerifySslOk returns a tuple with the VerifySsl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVerifySsl + +`func (o *CondaUpstreamRequestPatch) SetVerifySsl(v bool)` + +SetVerifySsl sets VerifySsl field to given value. + +### HasVerifySsl + +`func (o *CondaUpstreamRequestPatch) HasVerifySsl() bool` + +HasVerifySsl 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/CranPackageUpload.md b/docs/CranPackageUpload.md index 1e3aec31..0126d954 100644 --- a/docs/CranPackageUpload.md +++ b/docs/CranPackageUpload.md @@ -77,6 +77,7 @@ Name | Type | Description | Notes **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] @@ -2110,6 +2111,31 @@ SetSyncProgress sets SyncProgress field to given value. HasSyncProgress returns a boolean if a field has been set. +### GetTagsAutomatic + +`func (o *CranPackageUpload) GetTagsAutomatic() map[string]interface{}` + +GetTagsAutomatic returns the TagsAutomatic field if non-nil, zero value otherwise. + +### GetTagsAutomaticOk + +`func (o *CranPackageUpload) 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 *CranPackageUpload) SetTagsAutomatic(v map[string]interface{})` + +SetTagsAutomatic sets TagsAutomatic field to given value. + +### HasTagsAutomatic + +`func (o *CranPackageUpload) HasTagsAutomatic() bool` + +HasTagsAutomatic returns a boolean if a field has been set. + ### GetTagsImmutable `func (o *CranPackageUpload) GetTagsImmutable() map[string]interface{}` diff --git a/docs/DartPackageUpload.md b/docs/DartPackageUpload.md index bb1911e9..cef6b6e1 100644 --- a/docs/DartPackageUpload.md +++ b/docs/DartPackageUpload.md @@ -76,6 +76,7 @@ Name | Type | Description | Notes **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] @@ -2074,6 +2075,31 @@ SetSyncProgress sets SyncProgress field to given value. HasSyncProgress returns a boolean if a field has been set. +### GetTagsAutomatic + +`func (o *DartPackageUpload) GetTagsAutomatic() map[string]interface{}` + +GetTagsAutomatic returns the TagsAutomatic field if non-nil, zero value otherwise. + +### GetTagsAutomaticOk + +`func (o *DartPackageUpload) 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 *DartPackageUpload) SetTagsAutomatic(v map[string]interface{})` + +SetTagsAutomatic sets TagsAutomatic field to given value. + +### HasTagsAutomatic + +`func (o *DartPackageUpload) HasTagsAutomatic() bool` + +HasTagsAutomatic returns a boolean if a field has been set. + ### GetTagsImmutable `func (o *DartPackageUpload) GetTagsImmutable() map[string]interface{}` diff --git a/docs/DebPackageUpload.md b/docs/DebPackageUpload.md index ad1cae47..eab75dbd 100644 --- a/docs/DebPackageUpload.md +++ b/docs/DebPackageUpload.md @@ -76,6 +76,7 @@ Name | Type | Description | Notes **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] @@ -2074,6 +2075,31 @@ SetSyncProgress sets SyncProgress field to given value. HasSyncProgress returns a boolean if a field has been set. +### GetTagsAutomatic + +`func (o *DebPackageUpload) GetTagsAutomatic() map[string]interface{}` + +GetTagsAutomatic returns the TagsAutomatic field if non-nil, zero value otherwise. + +### GetTagsAutomaticOk + +`func (o *DebPackageUpload) 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 *DebPackageUpload) SetTagsAutomatic(v map[string]interface{})` + +SetTagsAutomatic sets TagsAutomatic field to given value. + +### HasTagsAutomatic + +`func (o *DebPackageUpload) HasTagsAutomatic() bool` + +HasTagsAutomatic returns a boolean if a field has been set. + ### GetTagsImmutable `func (o *DebPackageUpload) GetTagsImmutable() map[string]interface{}` diff --git a/docs/DockerPackageUpload.md b/docs/DockerPackageUpload.md index 7d04d098..a4897c4d 100644 --- a/docs/DockerPackageUpload.md +++ b/docs/DockerPackageUpload.md @@ -76,6 +76,7 @@ Name | Type | Description | Notes **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] @@ -2074,6 +2075,31 @@ SetSyncProgress sets SyncProgress field to given value. HasSyncProgress returns a boolean if a field has been set. +### GetTagsAutomatic + +`func (o *DockerPackageUpload) GetTagsAutomatic() map[string]interface{}` + +GetTagsAutomatic returns the TagsAutomatic field if non-nil, zero value otherwise. + +### GetTagsAutomaticOk + +`func (o *DockerPackageUpload) 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 *DockerPackageUpload) SetTagsAutomatic(v map[string]interface{})` + +SetTagsAutomatic sets TagsAutomatic field to given value. + +### HasTagsAutomatic + +`func (o *DockerPackageUpload) HasTagsAutomatic() bool` + +HasTagsAutomatic returns a boolean if a field has been set. + ### GetTagsImmutable `func (o *DockerPackageUpload) GetTagsImmutable() map[string]interface{}` diff --git a/docs/GoPackageUpload.md b/docs/GoPackageUpload.md index ec6a3f50..833fd774 100644 --- a/docs/GoPackageUpload.md +++ b/docs/GoPackageUpload.md @@ -76,6 +76,7 @@ Name | Type | Description | Notes **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] @@ -2074,6 +2075,31 @@ SetSyncProgress sets SyncProgress field to given value. HasSyncProgress returns a boolean if a field has been set. +### GetTagsAutomatic + +`func (o *GoPackageUpload) GetTagsAutomatic() map[string]interface{}` + +GetTagsAutomatic returns the TagsAutomatic field if non-nil, zero value otherwise. + +### GetTagsAutomaticOk + +`func (o *GoPackageUpload) 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 *GoPackageUpload) SetTagsAutomatic(v map[string]interface{})` + +SetTagsAutomatic sets TagsAutomatic field to given value. + +### HasTagsAutomatic + +`func (o *GoPackageUpload) HasTagsAutomatic() bool` + +HasTagsAutomatic returns a boolean if a field has been set. + ### GetTagsImmutable `func (o *GoPackageUpload) GetTagsImmutable() map[string]interface{}` diff --git a/docs/HelmPackageUpload.md b/docs/HelmPackageUpload.md index 535ccd6e..371dfcc5 100644 --- a/docs/HelmPackageUpload.md +++ b/docs/HelmPackageUpload.md @@ -76,6 +76,7 @@ Name | Type | Description | Notes **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] @@ -2074,6 +2075,31 @@ SetSyncProgress sets SyncProgress field to given value. HasSyncProgress returns a boolean if a field has been set. +### GetTagsAutomatic + +`func (o *HelmPackageUpload) GetTagsAutomatic() map[string]interface{}` + +GetTagsAutomatic returns the TagsAutomatic field if non-nil, zero value otherwise. + +### GetTagsAutomaticOk + +`func (o *HelmPackageUpload) 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 *HelmPackageUpload) SetTagsAutomatic(v map[string]interface{})` + +SetTagsAutomatic sets TagsAutomatic field to given value. + +### HasTagsAutomatic + +`func (o *HelmPackageUpload) HasTagsAutomatic() bool` + +HasTagsAutomatic returns a boolean if a field has been set. + ### GetTagsImmutable `func (o *HelmPackageUpload) GetTagsImmutable() map[string]interface{}` diff --git a/docs/HexPackageUpload.md b/docs/HexPackageUpload.md index f08b8196..6f68f6fb 100644 --- a/docs/HexPackageUpload.md +++ b/docs/HexPackageUpload.md @@ -76,6 +76,7 @@ Name | Type | Description | Notes **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] @@ -2074,6 +2075,31 @@ SetSyncProgress sets SyncProgress field to given value. HasSyncProgress returns a boolean if a field has been set. +### GetTagsAutomatic + +`func (o *HexPackageUpload) GetTagsAutomatic() map[string]interface{}` + +GetTagsAutomatic returns the TagsAutomatic field if non-nil, zero value otherwise. + +### GetTagsAutomaticOk + +`func (o *HexPackageUpload) 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 *HexPackageUpload) SetTagsAutomatic(v map[string]interface{})` + +SetTagsAutomatic sets TagsAutomatic field to given value. + +### HasTagsAutomatic + +`func (o *HexPackageUpload) HasTagsAutomatic() bool` + +HasTagsAutomatic returns a boolean if a field has been set. + ### GetTagsImmutable `func (o *HexPackageUpload) GetTagsImmutable() map[string]interface{}` diff --git a/docs/HuggingfacePackageUpload.md b/docs/HuggingfacePackageUpload.md new file mode 100644 index 00000000..82cba3ce --- /dev/null +++ b/docs/HuggingfacePackageUpload.md @@ -0,0 +1,2316 @@ +# HuggingfacePackageUpload + +## 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] +**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] +**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] +**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] [readonly] +**VersionOrig** | Pointer to **string** | | [optional] [readonly] +**VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] + +## Methods + +### NewHuggingfacePackageUpload + +`func NewHuggingfacePackageUpload() *HuggingfacePackageUpload` + +NewHuggingfacePackageUpload instantiates a new HuggingfacePackageUpload 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 + +### NewHuggingfacePackageUploadWithDefaults + +`func NewHuggingfacePackageUploadWithDefaults() *HuggingfacePackageUpload` + +NewHuggingfacePackageUploadWithDefaults instantiates a new HuggingfacePackageUpload 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 *HuggingfacePackageUpload) GetArchitectures() []Architecture` + +GetArchitectures returns the Architectures field if non-nil, zero value otherwise. + +### GetArchitecturesOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetArchitectures(v []Architecture)` + +SetArchitectures sets Architectures field to given value. + +### HasArchitectures + +`func (o *HuggingfacePackageUpload) HasArchitectures() bool` + +HasArchitectures returns a boolean if a field has been set. + +### GetCdnUrl + +`func (o *HuggingfacePackageUpload) GetCdnUrl() string` + +GetCdnUrl returns the CdnUrl field if non-nil, zero value otherwise. + +### GetCdnUrlOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetCdnUrl(v string)` + +SetCdnUrl sets CdnUrl field to given value. + +### HasCdnUrl + +`func (o *HuggingfacePackageUpload) HasCdnUrl() bool` + +HasCdnUrl returns a boolean if a field has been set. + +### SetCdnUrlNil + +`func (o *HuggingfacePackageUpload) SetCdnUrlNil(b bool)` + + SetCdnUrlNil sets the value for CdnUrl to be an explicit nil + +### UnsetCdnUrl +`func (o *HuggingfacePackageUpload) UnsetCdnUrl()` + +UnsetCdnUrl ensures that no value is present for CdnUrl, not even an explicit nil +### GetChecksumMd5 + +`func (o *HuggingfacePackageUpload) GetChecksumMd5() string` + +GetChecksumMd5 returns the ChecksumMd5 field if non-nil, zero value otherwise. + +### GetChecksumMd5Ok + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetChecksumMd5(v string)` + +SetChecksumMd5 sets ChecksumMd5 field to given value. + +### HasChecksumMd5 + +`func (o *HuggingfacePackageUpload) HasChecksumMd5() bool` + +HasChecksumMd5 returns a boolean if a field has been set. + +### GetChecksumSha1 + +`func (o *HuggingfacePackageUpload) GetChecksumSha1() string` + +GetChecksumSha1 returns the ChecksumSha1 field if non-nil, zero value otherwise. + +### GetChecksumSha1Ok + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetChecksumSha1(v string)` + +SetChecksumSha1 sets ChecksumSha1 field to given value. + +### HasChecksumSha1 + +`func (o *HuggingfacePackageUpload) HasChecksumSha1() bool` + +HasChecksumSha1 returns a boolean if a field has been set. + +### GetChecksumSha256 + +`func (o *HuggingfacePackageUpload) GetChecksumSha256() string` + +GetChecksumSha256 returns the ChecksumSha256 field if non-nil, zero value otherwise. + +### GetChecksumSha256Ok + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetChecksumSha256(v string)` + +SetChecksumSha256 sets ChecksumSha256 field to given value. + +### HasChecksumSha256 + +`func (o *HuggingfacePackageUpload) HasChecksumSha256() bool` + +HasChecksumSha256 returns a boolean if a field has been set. + +### GetChecksumSha512 + +`func (o *HuggingfacePackageUpload) GetChecksumSha512() string` + +GetChecksumSha512 returns the ChecksumSha512 field if non-nil, zero value otherwise. + +### GetChecksumSha512Ok + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetChecksumSha512(v string)` + +SetChecksumSha512 sets ChecksumSha512 field to given value. + +### HasChecksumSha512 + +`func (o *HuggingfacePackageUpload) HasChecksumSha512() bool` + +HasChecksumSha512 returns a boolean if a field has been set. + +### GetDependenciesChecksumMd5 + +`func (o *HuggingfacePackageUpload) GetDependenciesChecksumMd5() string` + +GetDependenciesChecksumMd5 returns the DependenciesChecksumMd5 field if non-nil, zero value otherwise. + +### GetDependenciesChecksumMd5Ok + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetDependenciesChecksumMd5(v string)` + +SetDependenciesChecksumMd5 sets DependenciesChecksumMd5 field to given value. + +### HasDependenciesChecksumMd5 + +`func (o *HuggingfacePackageUpload) HasDependenciesChecksumMd5() bool` + +HasDependenciesChecksumMd5 returns a boolean if a field has been set. + +### SetDependenciesChecksumMd5Nil + +`func (o *HuggingfacePackageUpload) SetDependenciesChecksumMd5Nil(b bool)` + + SetDependenciesChecksumMd5Nil sets the value for DependenciesChecksumMd5 to be an explicit nil + +### UnsetDependenciesChecksumMd5 +`func (o *HuggingfacePackageUpload) UnsetDependenciesChecksumMd5()` + +UnsetDependenciesChecksumMd5 ensures that no value is present for DependenciesChecksumMd5, not even an explicit nil +### GetDependenciesUrl + +`func (o *HuggingfacePackageUpload) GetDependenciesUrl() string` + +GetDependenciesUrl returns the DependenciesUrl field if non-nil, zero value otherwise. + +### GetDependenciesUrlOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetDependenciesUrl(v string)` + +SetDependenciesUrl sets DependenciesUrl field to given value. + +### HasDependenciesUrl + +`func (o *HuggingfacePackageUpload) HasDependenciesUrl() bool` + +HasDependenciesUrl returns a boolean if a field has been set. + +### GetDescription + +`func (o *HuggingfacePackageUpload) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *HuggingfacePackageUpload) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### SetDescriptionNil + +`func (o *HuggingfacePackageUpload) SetDescriptionNil(b bool)` + + SetDescriptionNil sets the value for Description to be an explicit nil + +### UnsetDescription +`func (o *HuggingfacePackageUpload) UnsetDescription()` + +UnsetDescription ensures that no value is present for Description, not even an explicit nil +### GetDisplayName + +`func (o *HuggingfacePackageUpload) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *HuggingfacePackageUpload) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetDistro + +`func (o *HuggingfacePackageUpload) GetDistro() Distribution` + +GetDistro returns the Distro field if non-nil, zero value otherwise. + +### GetDistroOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetDistro(v Distribution)` + +SetDistro sets Distro field to given value. + +### HasDistro + +`func (o *HuggingfacePackageUpload) HasDistro() bool` + +HasDistro returns a boolean if a field has been set. + +### SetDistroNil + +`func (o *HuggingfacePackageUpload) SetDistroNil(b bool)` + + SetDistroNil sets the value for Distro to be an explicit nil + +### UnsetDistro +`func (o *HuggingfacePackageUpload) UnsetDistro()` + +UnsetDistro ensures that no value is present for Distro, not even an explicit nil +### GetDistroVersion + +`func (o *HuggingfacePackageUpload) GetDistroVersion() DistributionVersion` + +GetDistroVersion returns the DistroVersion field if non-nil, zero value otherwise. + +### GetDistroVersionOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetDistroVersion(v DistributionVersion)` + +SetDistroVersion sets DistroVersion field to given value. + +### HasDistroVersion + +`func (o *HuggingfacePackageUpload) HasDistroVersion() bool` + +HasDistroVersion returns a boolean if a field has been set. + +### GetDownloads + +`func (o *HuggingfacePackageUpload) GetDownloads() int64` + +GetDownloads returns the Downloads field if non-nil, zero value otherwise. + +### GetDownloadsOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetDownloads(v int64)` + +SetDownloads sets Downloads field to given value. + +### HasDownloads + +`func (o *HuggingfacePackageUpload) HasDownloads() bool` + +HasDownloads returns a boolean if a field has been set. + +### GetEpoch + +`func (o *HuggingfacePackageUpload) GetEpoch() int64` + +GetEpoch returns the Epoch field if non-nil, zero value otherwise. + +### GetEpochOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetEpoch(v int64)` + +SetEpoch sets Epoch field to given value. + +### HasEpoch + +`func (o *HuggingfacePackageUpload) HasEpoch() bool` + +HasEpoch returns a boolean if a field has been set. + +### SetEpochNil + +`func (o *HuggingfacePackageUpload) SetEpochNil(b bool)` + + SetEpochNil sets the value for Epoch to be an explicit nil + +### UnsetEpoch +`func (o *HuggingfacePackageUpload) UnsetEpoch()` + +UnsetEpoch ensures that no value is present for Epoch, not even an explicit nil +### GetExtension + +`func (o *HuggingfacePackageUpload) GetExtension() string` + +GetExtension returns the Extension field if non-nil, zero value otherwise. + +### GetExtensionOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetExtension(v string)` + +SetExtension sets Extension field to given value. + +### HasExtension + +`func (o *HuggingfacePackageUpload) HasExtension() bool` + +HasExtension returns a boolean if a field has been set. + +### GetFilename + +`func (o *HuggingfacePackageUpload) GetFilename() string` + +GetFilename returns the Filename field if non-nil, zero value otherwise. + +### GetFilenameOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetFilename(v string)` + +SetFilename sets Filename field to given value. + +### HasFilename + +`func (o *HuggingfacePackageUpload) HasFilename() bool` + +HasFilename returns a boolean if a field has been set. + +### GetFiles + +`func (o *HuggingfacePackageUpload) GetFiles() []PackageFile` + +GetFiles returns the Files field if non-nil, zero value otherwise. + +### GetFilesOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetFiles(v []PackageFile)` + +SetFiles sets Files field to given value. + +### HasFiles + +`func (o *HuggingfacePackageUpload) HasFiles() bool` + +HasFiles returns a boolean if a field has been set. + +### GetFormat + +`func (o *HuggingfacePackageUpload) GetFormat() string` + +GetFormat returns the Format field if non-nil, zero value otherwise. + +### GetFormatOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetFormat(v string)` + +SetFormat sets Format field to given value. + +### HasFormat + +`func (o *HuggingfacePackageUpload) HasFormat() bool` + +HasFormat returns a boolean if a field has been set. + +### GetFormatUrl + +`func (o *HuggingfacePackageUpload) GetFormatUrl() string` + +GetFormatUrl returns the FormatUrl field if non-nil, zero value otherwise. + +### GetFormatUrlOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetFormatUrl(v string)` + +SetFormatUrl sets FormatUrl field to given value. + +### HasFormatUrl + +`func (o *HuggingfacePackageUpload) HasFormatUrl() bool` + +HasFormatUrl returns a boolean if a field has been set. + +### GetFreeableStorage + +`func (o *HuggingfacePackageUpload) GetFreeableStorage() int64` + +GetFreeableStorage returns the FreeableStorage field if non-nil, zero value otherwise. + +### GetFreeableStorageOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetFreeableStorage(v int64)` + +SetFreeableStorage sets FreeableStorage field to given value. + +### HasFreeableStorage + +`func (o *HuggingfacePackageUpload) HasFreeableStorage() bool` + +HasFreeableStorage returns a boolean if a field has been set. + +### GetFullyQualifiedName + +`func (o *HuggingfacePackageUpload) GetFullyQualifiedName() string` + +GetFullyQualifiedName returns the FullyQualifiedName field if non-nil, zero value otherwise. + +### GetFullyQualifiedNameOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetFullyQualifiedName(v string)` + +SetFullyQualifiedName sets FullyQualifiedName field to given value. + +### HasFullyQualifiedName + +`func (o *HuggingfacePackageUpload) HasFullyQualifiedName() bool` + +HasFullyQualifiedName returns a boolean if a field has been set. + +### SetFullyQualifiedNameNil + +`func (o *HuggingfacePackageUpload) SetFullyQualifiedNameNil(b bool)` + + SetFullyQualifiedNameNil sets the value for FullyQualifiedName to be an explicit nil + +### UnsetFullyQualifiedName +`func (o *HuggingfacePackageUpload) UnsetFullyQualifiedName()` + +UnsetFullyQualifiedName ensures that no value is present for FullyQualifiedName, not even an explicit nil +### GetIdentifierPerm + +`func (o *HuggingfacePackageUpload) GetIdentifierPerm() string` + +GetIdentifierPerm returns the IdentifierPerm field if non-nil, zero value otherwise. + +### GetIdentifierPermOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetIdentifierPerm(v string)` + +SetIdentifierPerm sets IdentifierPerm field to given value. + +### HasIdentifierPerm + +`func (o *HuggingfacePackageUpload) HasIdentifierPerm() bool` + +HasIdentifierPerm returns a boolean if a field has been set. + +### GetIdentifiers + +`func (o *HuggingfacePackageUpload) GetIdentifiers() map[string]string` + +GetIdentifiers returns the Identifiers field if non-nil, zero value otherwise. + +### GetIdentifiersOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetIdentifiers(v map[string]string)` + +SetIdentifiers sets Identifiers field to given value. + +### HasIdentifiers + +`func (o *HuggingfacePackageUpload) HasIdentifiers() bool` + +HasIdentifiers returns a boolean if a field has been set. + +### GetIndexed + +`func (o *HuggingfacePackageUpload) GetIndexed() bool` + +GetIndexed returns the Indexed field if non-nil, zero value otherwise. + +### GetIndexedOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetIndexed(v bool)` + +SetIndexed sets Indexed field to given value. + +### HasIndexed + +`func (o *HuggingfacePackageUpload) HasIndexed() bool` + +HasIndexed returns a boolean if a field has been set. + +### GetIsCancellable + +`func (o *HuggingfacePackageUpload) GetIsCancellable() bool` + +GetIsCancellable returns the IsCancellable field if non-nil, zero value otherwise. + +### GetIsCancellableOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetIsCancellable(v bool)` + +SetIsCancellable sets IsCancellable field to given value. + +### HasIsCancellable + +`func (o *HuggingfacePackageUpload) HasIsCancellable() bool` + +HasIsCancellable returns a boolean if a field has been set. + +### GetIsCopyable + +`func (o *HuggingfacePackageUpload) GetIsCopyable() bool` + +GetIsCopyable returns the IsCopyable field if non-nil, zero value otherwise. + +### GetIsCopyableOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetIsCopyable(v bool)` + +SetIsCopyable sets IsCopyable field to given value. + +### HasIsCopyable + +`func (o *HuggingfacePackageUpload) HasIsCopyable() bool` + +HasIsCopyable returns a boolean if a field has been set. + +### GetIsDeleteable + +`func (o *HuggingfacePackageUpload) GetIsDeleteable() bool` + +GetIsDeleteable returns the IsDeleteable field if non-nil, zero value otherwise. + +### GetIsDeleteableOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetIsDeleteable(v bool)` + +SetIsDeleteable sets IsDeleteable field to given value. + +### HasIsDeleteable + +`func (o *HuggingfacePackageUpload) HasIsDeleteable() bool` + +HasIsDeleteable returns a boolean if a field has been set. + +### GetIsDownloadable + +`func (o *HuggingfacePackageUpload) GetIsDownloadable() bool` + +GetIsDownloadable returns the IsDownloadable field if non-nil, zero value otherwise. + +### GetIsDownloadableOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetIsDownloadable(v bool)` + +SetIsDownloadable sets IsDownloadable field to given value. + +### HasIsDownloadable + +`func (o *HuggingfacePackageUpload) HasIsDownloadable() bool` + +HasIsDownloadable returns a boolean if a field has been set. + +### GetIsMoveable + +`func (o *HuggingfacePackageUpload) GetIsMoveable() bool` + +GetIsMoveable returns the IsMoveable field if non-nil, zero value otherwise. + +### GetIsMoveableOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetIsMoveable(v bool)` + +SetIsMoveable sets IsMoveable field to given value. + +### HasIsMoveable + +`func (o *HuggingfacePackageUpload) HasIsMoveable() bool` + +HasIsMoveable returns a boolean if a field has been set. + +### GetIsQuarantinable + +`func (o *HuggingfacePackageUpload) GetIsQuarantinable() bool` + +GetIsQuarantinable returns the IsQuarantinable field if non-nil, zero value otherwise. + +### GetIsQuarantinableOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetIsQuarantinable(v bool)` + +SetIsQuarantinable sets IsQuarantinable field to given value. + +### HasIsQuarantinable + +`func (o *HuggingfacePackageUpload) HasIsQuarantinable() bool` + +HasIsQuarantinable returns a boolean if a field has been set. + +### GetIsQuarantined + +`func (o *HuggingfacePackageUpload) GetIsQuarantined() bool` + +GetIsQuarantined returns the IsQuarantined field if non-nil, zero value otherwise. + +### GetIsQuarantinedOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetIsQuarantined(v bool)` + +SetIsQuarantined sets IsQuarantined field to given value. + +### HasIsQuarantined + +`func (o *HuggingfacePackageUpload) HasIsQuarantined() bool` + +HasIsQuarantined returns a boolean if a field has been set. + +### GetIsResyncable + +`func (o *HuggingfacePackageUpload) GetIsResyncable() bool` + +GetIsResyncable returns the IsResyncable field if non-nil, zero value otherwise. + +### GetIsResyncableOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetIsResyncable(v bool)` + +SetIsResyncable sets IsResyncable field to given value. + +### HasIsResyncable + +`func (o *HuggingfacePackageUpload) HasIsResyncable() bool` + +HasIsResyncable returns a boolean if a field has been set. + +### GetIsSecurityScannable + +`func (o *HuggingfacePackageUpload) GetIsSecurityScannable() bool` + +GetIsSecurityScannable returns the IsSecurityScannable field if non-nil, zero value otherwise. + +### GetIsSecurityScannableOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetIsSecurityScannable(v bool)` + +SetIsSecurityScannable sets IsSecurityScannable field to given value. + +### HasIsSecurityScannable + +`func (o *HuggingfacePackageUpload) HasIsSecurityScannable() bool` + +HasIsSecurityScannable returns a boolean if a field has been set. + +### GetIsSyncAwaiting + +`func (o *HuggingfacePackageUpload) GetIsSyncAwaiting() bool` + +GetIsSyncAwaiting returns the IsSyncAwaiting field if non-nil, zero value otherwise. + +### GetIsSyncAwaitingOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetIsSyncAwaiting(v bool)` + +SetIsSyncAwaiting sets IsSyncAwaiting field to given value. + +### HasIsSyncAwaiting + +`func (o *HuggingfacePackageUpload) HasIsSyncAwaiting() bool` + +HasIsSyncAwaiting returns a boolean if a field has been set. + +### GetIsSyncCompleted + +`func (o *HuggingfacePackageUpload) GetIsSyncCompleted() bool` + +GetIsSyncCompleted returns the IsSyncCompleted field if non-nil, zero value otherwise. + +### GetIsSyncCompletedOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetIsSyncCompleted(v bool)` + +SetIsSyncCompleted sets IsSyncCompleted field to given value. + +### HasIsSyncCompleted + +`func (o *HuggingfacePackageUpload) HasIsSyncCompleted() bool` + +HasIsSyncCompleted returns a boolean if a field has been set. + +### GetIsSyncFailed + +`func (o *HuggingfacePackageUpload) GetIsSyncFailed() bool` + +GetIsSyncFailed returns the IsSyncFailed field if non-nil, zero value otherwise. + +### GetIsSyncFailedOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetIsSyncFailed(v bool)` + +SetIsSyncFailed sets IsSyncFailed field to given value. + +### HasIsSyncFailed + +`func (o *HuggingfacePackageUpload) HasIsSyncFailed() bool` + +HasIsSyncFailed returns a boolean if a field has been set. + +### GetIsSyncInFlight + +`func (o *HuggingfacePackageUpload) GetIsSyncInFlight() bool` + +GetIsSyncInFlight returns the IsSyncInFlight field if non-nil, zero value otherwise. + +### GetIsSyncInFlightOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetIsSyncInFlight(v bool)` + +SetIsSyncInFlight sets IsSyncInFlight field to given value. + +### HasIsSyncInFlight + +`func (o *HuggingfacePackageUpload) HasIsSyncInFlight() bool` + +HasIsSyncInFlight returns a boolean if a field has been set. + +### GetIsSyncInProgress + +`func (o *HuggingfacePackageUpload) GetIsSyncInProgress() bool` + +GetIsSyncInProgress returns the IsSyncInProgress field if non-nil, zero value otherwise. + +### GetIsSyncInProgressOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetIsSyncInProgress(v bool)` + +SetIsSyncInProgress sets IsSyncInProgress field to given value. + +### HasIsSyncInProgress + +`func (o *HuggingfacePackageUpload) HasIsSyncInProgress() bool` + +HasIsSyncInProgress returns a boolean if a field has been set. + +### GetLicense + +`func (o *HuggingfacePackageUpload) GetLicense() string` + +GetLicense returns the License field if non-nil, zero value otherwise. + +### GetLicenseOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetLicense(v string)` + +SetLicense sets License field to given value. + +### HasLicense + +`func (o *HuggingfacePackageUpload) HasLicense() bool` + +HasLicense returns a boolean if a field has been set. + +### SetLicenseNil + +`func (o *HuggingfacePackageUpload) SetLicenseNil(b bool)` + + SetLicenseNil sets the value for License to be an explicit nil + +### UnsetLicense +`func (o *HuggingfacePackageUpload) UnsetLicense()` + +UnsetLicense ensures that no value is present for License, not even an explicit nil +### GetName + +`func (o *HuggingfacePackageUpload) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *HuggingfacePackageUpload) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *HuggingfacePackageUpload) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *HuggingfacePackageUpload) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetNamespace + +`func (o *HuggingfacePackageUpload) GetNamespace() string` + +GetNamespace returns the Namespace field if non-nil, zero value otherwise. + +### GetNamespaceOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetNamespace(v string)` + +SetNamespace sets Namespace field to given value. + +### HasNamespace + +`func (o *HuggingfacePackageUpload) HasNamespace() bool` + +HasNamespace returns a boolean if a field has been set. + +### GetNamespaceUrl + +`func (o *HuggingfacePackageUpload) GetNamespaceUrl() string` + +GetNamespaceUrl returns the NamespaceUrl field if non-nil, zero value otherwise. + +### GetNamespaceUrlOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetNamespaceUrl(v string)` + +SetNamespaceUrl sets NamespaceUrl field to given value. + +### HasNamespaceUrl + +`func (o *HuggingfacePackageUpload) HasNamespaceUrl() bool` + +HasNamespaceUrl returns a boolean if a field has been set. + +### GetNumFiles + +`func (o *HuggingfacePackageUpload) GetNumFiles() int64` + +GetNumFiles returns the NumFiles field if non-nil, zero value otherwise. + +### GetNumFilesOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetNumFiles(v int64)` + +SetNumFiles sets NumFiles field to given value. + +### HasNumFiles + +`func (o *HuggingfacePackageUpload) HasNumFiles() bool` + +HasNumFiles returns a boolean if a field has been set. + +### GetOriginRepository + +`func (o *HuggingfacePackageUpload) GetOriginRepository() string` + +GetOriginRepository returns the OriginRepository field if non-nil, zero value otherwise. + +### GetOriginRepositoryOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetOriginRepository(v string)` + +SetOriginRepository sets OriginRepository field to given value. + +### HasOriginRepository + +`func (o *HuggingfacePackageUpload) HasOriginRepository() bool` + +HasOriginRepository returns a boolean if a field has been set. + +### GetOriginRepositoryUrl + +`func (o *HuggingfacePackageUpload) GetOriginRepositoryUrl() string` + +GetOriginRepositoryUrl returns the OriginRepositoryUrl field if non-nil, zero value otherwise. + +### GetOriginRepositoryUrlOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetOriginRepositoryUrl(v string)` + +SetOriginRepositoryUrl sets OriginRepositoryUrl field to given value. + +### HasOriginRepositoryUrl + +`func (o *HuggingfacePackageUpload) HasOriginRepositoryUrl() bool` + +HasOriginRepositoryUrl returns a boolean if a field has been set. + +### GetPackageType + +`func (o *HuggingfacePackageUpload) GetPackageType() int64` + +GetPackageType returns the PackageType field if non-nil, zero value otherwise. + +### GetPackageTypeOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetPackageType(v int64)` + +SetPackageType sets PackageType field to given value. + +### HasPackageType + +`func (o *HuggingfacePackageUpload) HasPackageType() bool` + +HasPackageType returns a boolean if a field has been set. + +### GetPolicyViolated + +`func (o *HuggingfacePackageUpload) GetPolicyViolated() bool` + +GetPolicyViolated returns the PolicyViolated field if non-nil, zero value otherwise. + +### GetPolicyViolatedOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetPolicyViolated(v bool)` + +SetPolicyViolated sets PolicyViolated field to given value. + +### HasPolicyViolated + +`func (o *HuggingfacePackageUpload) HasPolicyViolated() bool` + +HasPolicyViolated returns a boolean if a field has been set. + +### GetRelease + +`func (o *HuggingfacePackageUpload) GetRelease() string` + +GetRelease returns the Release field if non-nil, zero value otherwise. + +### GetReleaseOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetRelease(v string)` + +SetRelease sets Release field to given value. + +### HasRelease + +`func (o *HuggingfacePackageUpload) HasRelease() bool` + +HasRelease returns a boolean if a field has been set. + +### SetReleaseNil + +`func (o *HuggingfacePackageUpload) SetReleaseNil(b bool)` + + SetReleaseNil sets the value for Release to be an explicit nil + +### UnsetRelease +`func (o *HuggingfacePackageUpload) UnsetRelease()` + +UnsetRelease ensures that no value is present for Release, not even an explicit nil +### GetRepository + +`func (o *HuggingfacePackageUpload) GetRepository() string` + +GetRepository returns the Repository field if non-nil, zero value otherwise. + +### GetRepositoryOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetRepository(v string)` + +SetRepository sets Repository field to given value. + +### HasRepository + +`func (o *HuggingfacePackageUpload) HasRepository() bool` + +HasRepository returns a boolean if a field has been set. + +### GetRepositoryUrl + +`func (o *HuggingfacePackageUpload) GetRepositoryUrl() string` + +GetRepositoryUrl returns the RepositoryUrl field if non-nil, zero value otherwise. + +### GetRepositoryUrlOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetRepositoryUrl(v string)` + +SetRepositoryUrl sets RepositoryUrl field to given value. + +### HasRepositoryUrl + +`func (o *HuggingfacePackageUpload) HasRepositoryUrl() bool` + +HasRepositoryUrl returns a boolean if a field has been set. + +### GetSecurityScanCompletedAt + +`func (o *HuggingfacePackageUpload) GetSecurityScanCompletedAt() time.Time` + +GetSecurityScanCompletedAt returns the SecurityScanCompletedAt field if non-nil, zero value otherwise. + +### GetSecurityScanCompletedAtOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetSecurityScanCompletedAt(v time.Time)` + +SetSecurityScanCompletedAt sets SecurityScanCompletedAt field to given value. + +### HasSecurityScanCompletedAt + +`func (o *HuggingfacePackageUpload) HasSecurityScanCompletedAt() bool` + +HasSecurityScanCompletedAt returns a boolean if a field has been set. + +### SetSecurityScanCompletedAtNil + +`func (o *HuggingfacePackageUpload) SetSecurityScanCompletedAtNil(b bool)` + + SetSecurityScanCompletedAtNil sets the value for SecurityScanCompletedAt to be an explicit nil + +### UnsetSecurityScanCompletedAt +`func (o *HuggingfacePackageUpload) UnsetSecurityScanCompletedAt()` + +UnsetSecurityScanCompletedAt ensures that no value is present for SecurityScanCompletedAt, not even an explicit nil +### GetSecurityScanStartedAt + +`func (o *HuggingfacePackageUpload) GetSecurityScanStartedAt() time.Time` + +GetSecurityScanStartedAt returns the SecurityScanStartedAt field if non-nil, zero value otherwise. + +### GetSecurityScanStartedAtOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetSecurityScanStartedAt(v time.Time)` + +SetSecurityScanStartedAt sets SecurityScanStartedAt field to given value. + +### HasSecurityScanStartedAt + +`func (o *HuggingfacePackageUpload) HasSecurityScanStartedAt() bool` + +HasSecurityScanStartedAt returns a boolean if a field has been set. + +### SetSecurityScanStartedAtNil + +`func (o *HuggingfacePackageUpload) SetSecurityScanStartedAtNil(b bool)` + + SetSecurityScanStartedAtNil sets the value for SecurityScanStartedAt to be an explicit nil + +### UnsetSecurityScanStartedAt +`func (o *HuggingfacePackageUpload) UnsetSecurityScanStartedAt()` + +UnsetSecurityScanStartedAt ensures that no value is present for SecurityScanStartedAt, not even an explicit nil +### GetSecurityScanStatus + +`func (o *HuggingfacePackageUpload) GetSecurityScanStatus() string` + +GetSecurityScanStatus returns the SecurityScanStatus field if non-nil, zero value otherwise. + +### GetSecurityScanStatusOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetSecurityScanStatus(v string)` + +SetSecurityScanStatus sets SecurityScanStatus field to given value. + +### HasSecurityScanStatus + +`func (o *HuggingfacePackageUpload) HasSecurityScanStatus() bool` + +HasSecurityScanStatus returns a boolean if a field has been set. + +### SetSecurityScanStatusNil + +`func (o *HuggingfacePackageUpload) SetSecurityScanStatusNil(b bool)` + + SetSecurityScanStatusNil sets the value for SecurityScanStatus to be an explicit nil + +### UnsetSecurityScanStatus +`func (o *HuggingfacePackageUpload) UnsetSecurityScanStatus()` + +UnsetSecurityScanStatus ensures that no value is present for SecurityScanStatus, not even an explicit nil +### GetSecurityScanStatusUpdatedAt + +`func (o *HuggingfacePackageUpload) GetSecurityScanStatusUpdatedAt() time.Time` + +GetSecurityScanStatusUpdatedAt returns the SecurityScanStatusUpdatedAt field if non-nil, zero value otherwise. + +### GetSecurityScanStatusUpdatedAtOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetSecurityScanStatusUpdatedAt(v time.Time)` + +SetSecurityScanStatusUpdatedAt sets SecurityScanStatusUpdatedAt field to given value. + +### HasSecurityScanStatusUpdatedAt + +`func (o *HuggingfacePackageUpload) HasSecurityScanStatusUpdatedAt() bool` + +HasSecurityScanStatusUpdatedAt returns a boolean if a field has been set. + +### SetSecurityScanStatusUpdatedAtNil + +`func (o *HuggingfacePackageUpload) SetSecurityScanStatusUpdatedAtNil(b bool)` + + SetSecurityScanStatusUpdatedAtNil sets the value for SecurityScanStatusUpdatedAt to be an explicit nil + +### UnsetSecurityScanStatusUpdatedAt +`func (o *HuggingfacePackageUpload) UnsetSecurityScanStatusUpdatedAt()` + +UnsetSecurityScanStatusUpdatedAt ensures that no value is present for SecurityScanStatusUpdatedAt, not even an explicit nil +### GetSelfHtmlUrl + +`func (o *HuggingfacePackageUpload) GetSelfHtmlUrl() string` + +GetSelfHtmlUrl returns the SelfHtmlUrl field if non-nil, zero value otherwise. + +### GetSelfHtmlUrlOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetSelfHtmlUrl(v string)` + +SetSelfHtmlUrl sets SelfHtmlUrl field to given value. + +### HasSelfHtmlUrl + +`func (o *HuggingfacePackageUpload) HasSelfHtmlUrl() bool` + +HasSelfHtmlUrl returns a boolean if a field has been set. + +### GetSelfUrl + +`func (o *HuggingfacePackageUpload) GetSelfUrl() string` + +GetSelfUrl returns the SelfUrl field if non-nil, zero value otherwise. + +### GetSelfUrlOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetSelfUrl(v string)` + +SetSelfUrl sets SelfUrl field to given value. + +### HasSelfUrl + +`func (o *HuggingfacePackageUpload) HasSelfUrl() bool` + +HasSelfUrl returns a boolean if a field has been set. + +### GetSignatureUrl + +`func (o *HuggingfacePackageUpload) GetSignatureUrl() string` + +GetSignatureUrl returns the SignatureUrl field if non-nil, zero value otherwise. + +### GetSignatureUrlOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetSignatureUrl(v string)` + +SetSignatureUrl sets SignatureUrl field to given value. + +### HasSignatureUrl + +`func (o *HuggingfacePackageUpload) HasSignatureUrl() bool` + +HasSignatureUrl returns a boolean if a field has been set. + +### SetSignatureUrlNil + +`func (o *HuggingfacePackageUpload) SetSignatureUrlNil(b bool)` + + SetSignatureUrlNil sets the value for SignatureUrl to be an explicit nil + +### UnsetSignatureUrl +`func (o *HuggingfacePackageUpload) UnsetSignatureUrl()` + +UnsetSignatureUrl ensures that no value is present for SignatureUrl, not even an explicit nil +### GetSize + +`func (o *HuggingfacePackageUpload) GetSize() int64` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetSize(v int64)` + +SetSize sets Size field to given value. + +### HasSize + +`func (o *HuggingfacePackageUpload) HasSize() bool` + +HasSize returns a boolean if a field has been set. + +### GetSlug + +`func (o *HuggingfacePackageUpload) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetSlug(v string)` + +SetSlug sets Slug field to given value. + +### HasSlug + +`func (o *HuggingfacePackageUpload) HasSlug() bool` + +HasSlug returns a boolean if a field has been set. + +### GetSlugPerm + +`func (o *HuggingfacePackageUpload) GetSlugPerm() string` + +GetSlugPerm returns the SlugPerm field if non-nil, zero value otherwise. + +### GetSlugPermOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetSlugPerm(v string)` + +SetSlugPerm sets SlugPerm field to given value. + +### HasSlugPerm + +`func (o *HuggingfacePackageUpload) HasSlugPerm() bool` + +HasSlugPerm returns a boolean if a field has been set. + +### GetStage + +`func (o *HuggingfacePackageUpload) GetStage() int64` + +GetStage returns the Stage field if non-nil, zero value otherwise. + +### GetStageOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetStage(v int64)` + +SetStage sets Stage field to given value. + +### HasStage + +`func (o *HuggingfacePackageUpload) HasStage() bool` + +HasStage returns a boolean if a field has been set. + +### GetStageStr + +`func (o *HuggingfacePackageUpload) GetStageStr() string` + +GetStageStr returns the StageStr field if non-nil, zero value otherwise. + +### GetStageStrOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetStageStr(v string)` + +SetStageStr sets StageStr field to given value. + +### HasStageStr + +`func (o *HuggingfacePackageUpload) HasStageStr() bool` + +HasStageStr returns a boolean if a field has been set. + +### GetStageUpdatedAt + +`func (o *HuggingfacePackageUpload) GetStageUpdatedAt() time.Time` + +GetStageUpdatedAt returns the StageUpdatedAt field if non-nil, zero value otherwise. + +### GetStageUpdatedAtOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetStageUpdatedAt(v time.Time)` + +SetStageUpdatedAt sets StageUpdatedAt field to given value. + +### HasStageUpdatedAt + +`func (o *HuggingfacePackageUpload) HasStageUpdatedAt() bool` + +HasStageUpdatedAt returns a boolean if a field has been set. + +### GetStatus + +`func (o *HuggingfacePackageUpload) GetStatus() int64` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetStatus(v int64)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *HuggingfacePackageUpload) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetStatusReason + +`func (o *HuggingfacePackageUpload) GetStatusReason() string` + +GetStatusReason returns the StatusReason field if non-nil, zero value otherwise. + +### GetStatusReasonOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetStatusReason(v string)` + +SetStatusReason sets StatusReason field to given value. + +### HasStatusReason + +`func (o *HuggingfacePackageUpload) HasStatusReason() bool` + +HasStatusReason returns a boolean if a field has been set. + +### SetStatusReasonNil + +`func (o *HuggingfacePackageUpload) SetStatusReasonNil(b bool)` + + SetStatusReasonNil sets the value for StatusReason to be an explicit nil + +### UnsetStatusReason +`func (o *HuggingfacePackageUpload) UnsetStatusReason()` + +UnsetStatusReason ensures that no value is present for StatusReason, not even an explicit nil +### GetStatusStr + +`func (o *HuggingfacePackageUpload) GetStatusStr() string` + +GetStatusStr returns the StatusStr field if non-nil, zero value otherwise. + +### GetStatusStrOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetStatusStr(v string)` + +SetStatusStr sets StatusStr field to given value. + +### HasStatusStr + +`func (o *HuggingfacePackageUpload) HasStatusStr() bool` + +HasStatusStr returns a boolean if a field has been set. + +### GetStatusUpdatedAt + +`func (o *HuggingfacePackageUpload) GetStatusUpdatedAt() time.Time` + +GetStatusUpdatedAt returns the StatusUpdatedAt field if non-nil, zero value otherwise. + +### GetStatusUpdatedAtOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetStatusUpdatedAt(v time.Time)` + +SetStatusUpdatedAt sets StatusUpdatedAt field to given value. + +### HasStatusUpdatedAt + +`func (o *HuggingfacePackageUpload) HasStatusUpdatedAt() bool` + +HasStatusUpdatedAt returns a boolean if a field has been set. + +### GetStatusUrl + +`func (o *HuggingfacePackageUpload) GetStatusUrl() string` + +GetStatusUrl returns the StatusUrl field if non-nil, zero value otherwise. + +### GetStatusUrlOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetStatusUrl(v string)` + +SetStatusUrl sets StatusUrl field to given value. + +### HasStatusUrl + +`func (o *HuggingfacePackageUpload) HasStatusUrl() bool` + +HasStatusUrl returns a boolean if a field has been set. + +### GetSubtype + +`func (o *HuggingfacePackageUpload) GetSubtype() string` + +GetSubtype returns the Subtype field if non-nil, zero value otherwise. + +### GetSubtypeOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetSubtype(v string)` + +SetSubtype sets Subtype field to given value. + +### HasSubtype + +`func (o *HuggingfacePackageUpload) HasSubtype() bool` + +HasSubtype returns a boolean if a field has been set. + +### GetSummary + +`func (o *HuggingfacePackageUpload) GetSummary() string` + +GetSummary returns the Summary field if non-nil, zero value otherwise. + +### GetSummaryOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetSummary(v string)` + +SetSummary sets Summary field to given value. + +### HasSummary + +`func (o *HuggingfacePackageUpload) HasSummary() bool` + +HasSummary returns a boolean if a field has been set. + +### SetSummaryNil + +`func (o *HuggingfacePackageUpload) SetSummaryNil(b bool)` + + SetSummaryNil sets the value for Summary to be an explicit nil + +### UnsetSummary +`func (o *HuggingfacePackageUpload) UnsetSummary()` + +UnsetSummary ensures that no value is present for Summary, not even an explicit nil +### GetSyncFinishedAt + +`func (o *HuggingfacePackageUpload) GetSyncFinishedAt() time.Time` + +GetSyncFinishedAt returns the SyncFinishedAt field if non-nil, zero value otherwise. + +### GetSyncFinishedAtOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetSyncFinishedAt(v time.Time)` + +SetSyncFinishedAt sets SyncFinishedAt field to given value. + +### HasSyncFinishedAt + +`func (o *HuggingfacePackageUpload) HasSyncFinishedAt() bool` + +HasSyncFinishedAt returns a boolean if a field has been set. + +### SetSyncFinishedAtNil + +`func (o *HuggingfacePackageUpload) SetSyncFinishedAtNil(b bool)` + + SetSyncFinishedAtNil sets the value for SyncFinishedAt to be an explicit nil + +### UnsetSyncFinishedAt +`func (o *HuggingfacePackageUpload) UnsetSyncFinishedAt()` + +UnsetSyncFinishedAt ensures that no value is present for SyncFinishedAt, not even an explicit nil +### GetSyncProgress + +`func (o *HuggingfacePackageUpload) GetSyncProgress() int64` + +GetSyncProgress returns the SyncProgress field if non-nil, zero value otherwise. + +### GetSyncProgressOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetSyncProgress(v int64)` + +SetSyncProgress sets SyncProgress field to given value. + +### HasSyncProgress + +`func (o *HuggingfacePackageUpload) HasSyncProgress() bool` + +HasSyncProgress returns a boolean if a field has been set. + +### GetTagsAutomatic + +`func (o *HuggingfacePackageUpload) GetTagsAutomatic() map[string]interface{}` + +GetTagsAutomatic returns the TagsAutomatic field if non-nil, zero value otherwise. + +### GetTagsAutomaticOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetTagsAutomatic(v map[string]interface{})` + +SetTagsAutomatic sets TagsAutomatic field to given value. + +### HasTagsAutomatic + +`func (o *HuggingfacePackageUpload) HasTagsAutomatic() bool` + +HasTagsAutomatic returns a boolean if a field has been set. + +### GetTagsImmutable + +`func (o *HuggingfacePackageUpload) GetTagsImmutable() map[string]interface{}` + +GetTagsImmutable returns the TagsImmutable field if non-nil, zero value otherwise. + +### GetTagsImmutableOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetTagsImmutable(v map[string]interface{})` + +SetTagsImmutable sets TagsImmutable field to given value. + +### HasTagsImmutable + +`func (o *HuggingfacePackageUpload) HasTagsImmutable() bool` + +HasTagsImmutable returns a boolean if a field has been set. + +### GetTypeDisplay + +`func (o *HuggingfacePackageUpload) GetTypeDisplay() string` + +GetTypeDisplay returns the TypeDisplay field if non-nil, zero value otherwise. + +### GetTypeDisplayOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetTypeDisplay(v string)` + +SetTypeDisplay sets TypeDisplay field to given value. + +### HasTypeDisplay + +`func (o *HuggingfacePackageUpload) HasTypeDisplay() bool` + +HasTypeDisplay returns a boolean if a field has been set. + +### GetUploadedAt + +`func (o *HuggingfacePackageUpload) GetUploadedAt() time.Time` + +GetUploadedAt returns the UploadedAt field if non-nil, zero value otherwise. + +### GetUploadedAtOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetUploadedAt(v time.Time)` + +SetUploadedAt sets UploadedAt field to given value. + +### HasUploadedAt + +`func (o *HuggingfacePackageUpload) HasUploadedAt() bool` + +HasUploadedAt returns a boolean if a field has been set. + +### GetUploader + +`func (o *HuggingfacePackageUpload) GetUploader() string` + +GetUploader returns the Uploader field if non-nil, zero value otherwise. + +### GetUploaderOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetUploader(v string)` + +SetUploader sets Uploader field to given value. + +### HasUploader + +`func (o *HuggingfacePackageUpload) HasUploader() bool` + +HasUploader returns a boolean if a field has been set. + +### GetUploaderUrl + +`func (o *HuggingfacePackageUpload) GetUploaderUrl() string` + +GetUploaderUrl returns the UploaderUrl field if non-nil, zero value otherwise. + +### GetUploaderUrlOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetUploaderUrl(v string)` + +SetUploaderUrl sets UploaderUrl field to given value. + +### HasUploaderUrl + +`func (o *HuggingfacePackageUpload) HasUploaderUrl() bool` + +HasUploaderUrl returns a boolean if a field has been set. + +### GetVersion + +`func (o *HuggingfacePackageUpload) GetVersion() string` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetVersion(v string)` + +SetVersion sets Version field to given value. + +### HasVersion + +`func (o *HuggingfacePackageUpload) HasVersion() bool` + +HasVersion returns a boolean if a field has been set. + +### SetVersionNil + +`func (o *HuggingfacePackageUpload) SetVersionNil(b bool)` + + SetVersionNil sets the value for Version to be an explicit nil + +### UnsetVersion +`func (o *HuggingfacePackageUpload) UnsetVersion()` + +UnsetVersion ensures that no value is present for Version, not even an explicit nil +### GetVersionOrig + +`func (o *HuggingfacePackageUpload) GetVersionOrig() string` + +GetVersionOrig returns the VersionOrig field if non-nil, zero value otherwise. + +### GetVersionOrigOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetVersionOrig(v string)` + +SetVersionOrig sets VersionOrig field to given value. + +### HasVersionOrig + +`func (o *HuggingfacePackageUpload) HasVersionOrig() bool` + +HasVersionOrig returns a boolean if a field has been set. + +### GetVulnerabilityScanResultsUrl + +`func (o *HuggingfacePackageUpload) GetVulnerabilityScanResultsUrl() string` + +GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field if non-nil, zero value otherwise. + +### GetVulnerabilityScanResultsUrlOk + +`func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetVulnerabilityScanResultsUrl(v string)` + +SetVulnerabilityScanResultsUrl sets VulnerabilityScanResultsUrl field to given value. + +### HasVulnerabilityScanResultsUrl + +`func (o *HuggingfacePackageUpload) 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/HuggingfacePackageUploadRequest.md b/docs/HuggingfacePackageUploadRequest.md new file mode 100644 index 00000000..81bef714 --- /dev/null +++ b/docs/HuggingfacePackageUploadRequest.md @@ -0,0 +1,113 @@ +# HuggingfacePackageUploadRequest + +## 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] + +## Methods + +### NewHuggingfacePackageUploadRequest + +`func NewHuggingfacePackageUploadRequest(packageFile string, ) *HuggingfacePackageUploadRequest` + +NewHuggingfacePackageUploadRequest instantiates a new HuggingfacePackageUploadRequest 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 + +### NewHuggingfacePackageUploadRequestWithDefaults + +`func NewHuggingfacePackageUploadRequestWithDefaults() *HuggingfacePackageUploadRequest` + +NewHuggingfacePackageUploadRequestWithDefaults instantiates a new HuggingfacePackageUploadRequest 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 *HuggingfacePackageUploadRequest) GetPackageFile() string` + +GetPackageFile returns the PackageFile field if non-nil, zero value otherwise. + +### GetPackageFileOk + +`func (o *HuggingfacePackageUploadRequest) 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 *HuggingfacePackageUploadRequest) SetPackageFile(v string)` + +SetPackageFile sets PackageFile field to given value. + + +### GetRepublish + +`func (o *HuggingfacePackageUploadRequest) GetRepublish() bool` + +GetRepublish returns the Republish field if non-nil, zero value otherwise. + +### GetRepublishOk + +`func (o *HuggingfacePackageUploadRequest) 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 *HuggingfacePackageUploadRequest) SetRepublish(v bool)` + +SetRepublish sets Republish field to given value. + +### HasRepublish + +`func (o *HuggingfacePackageUploadRequest) HasRepublish() bool` + +HasRepublish returns a boolean if a field has been set. + +### GetTags + +`func (o *HuggingfacePackageUploadRequest) GetTags() string` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *HuggingfacePackageUploadRequest) 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 *HuggingfacePackageUploadRequest) SetTags(v string)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *HuggingfacePackageUploadRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### SetTagsNil + +`func (o *HuggingfacePackageUploadRequest) SetTagsNil(b bool)` + + SetTagsNil sets the value for Tags to be an explicit nil + +### UnsetTags +`func (o *HuggingfacePackageUploadRequest) UnsetTags()` + +UnsetTags ensures that no value is present for Tags, 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/HuggingfaceUpstream.md b/docs/HuggingfaceUpstream.md new file mode 100644 index 00000000..dabd6e56 --- /dev/null +++ b/docs/HuggingfaceUpstream.md @@ -0,0 +1,548 @@ +# HuggingfaceUpstream + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AuthMode** | Pointer to **string** | The authentication mode to use when accessing this upstream. | [optional] [default to "None"] +**AuthSecret** | Pointer to **NullableString** | Secret to provide with requests to upstream. | [optional] +**AuthUsername** | Pointer to **NullableString** | Username to provide with requests to upstream. | [optional] +**CreatedAt** | Pointer to **time.Time** | The datetime the upstream source was created. | [optional] [readonly] +**DisableReason** | Pointer to **string** | | [optional] [readonly] [default to "N/A"] +**ExtraHeader1** | Pointer to **NullableString** | The key for extra header #1 to send to upstream. | [optional] +**ExtraHeader2** | Pointer to **NullableString** | The key for extra header #2 to send to upstream. | [optional] +**ExtraValue1** | Pointer to **NullableString** | The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] +**ExtraValue2** | Pointer to **NullableString** | The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] +**IsActive** | Pointer to **bool** | Whether or not this upstream is active and ready for requests. | [optional] +**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] +**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. | +**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] + +## Methods + +### NewHuggingfaceUpstream + +`func NewHuggingfaceUpstream(name string, upstreamUrl string, ) *HuggingfaceUpstream` + +NewHuggingfaceUpstream instantiates a new HuggingfaceUpstream 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 + +### NewHuggingfaceUpstreamWithDefaults + +`func NewHuggingfaceUpstreamWithDefaults() *HuggingfaceUpstream` + +NewHuggingfaceUpstreamWithDefaults instantiates a new HuggingfaceUpstream 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 + +### GetAuthMode + +`func (o *HuggingfaceUpstream) GetAuthMode() string` + +GetAuthMode returns the AuthMode field if non-nil, zero value otherwise. + +### GetAuthModeOk + +`func (o *HuggingfaceUpstream) GetAuthModeOk() (*string, bool)` + +GetAuthModeOk returns a tuple with the AuthMode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthMode + +`func (o *HuggingfaceUpstream) SetAuthMode(v string)` + +SetAuthMode sets AuthMode field to given value. + +### HasAuthMode + +`func (o *HuggingfaceUpstream) HasAuthMode() bool` + +HasAuthMode returns a boolean if a field has been set. + +### GetAuthSecret + +`func (o *HuggingfaceUpstream) GetAuthSecret() string` + +GetAuthSecret returns the AuthSecret field if non-nil, zero value otherwise. + +### GetAuthSecretOk + +`func (o *HuggingfaceUpstream) GetAuthSecretOk() (*string, bool)` + +GetAuthSecretOk returns a tuple with the AuthSecret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthSecret + +`func (o *HuggingfaceUpstream) SetAuthSecret(v string)` + +SetAuthSecret sets AuthSecret field to given value. + +### HasAuthSecret + +`func (o *HuggingfaceUpstream) HasAuthSecret() bool` + +HasAuthSecret returns a boolean if a field has been set. + +### SetAuthSecretNil + +`func (o *HuggingfaceUpstream) SetAuthSecretNil(b bool)` + + SetAuthSecretNil sets the value for AuthSecret to be an explicit nil + +### UnsetAuthSecret +`func (o *HuggingfaceUpstream) UnsetAuthSecret()` + +UnsetAuthSecret ensures that no value is present for AuthSecret, not even an explicit nil +### GetAuthUsername + +`func (o *HuggingfaceUpstream) GetAuthUsername() string` + +GetAuthUsername returns the AuthUsername field if non-nil, zero value otherwise. + +### GetAuthUsernameOk + +`func (o *HuggingfaceUpstream) GetAuthUsernameOk() (*string, bool)` + +GetAuthUsernameOk returns a tuple with the AuthUsername field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthUsername + +`func (o *HuggingfaceUpstream) SetAuthUsername(v string)` + +SetAuthUsername sets AuthUsername field to given value. + +### HasAuthUsername + +`func (o *HuggingfaceUpstream) HasAuthUsername() bool` + +HasAuthUsername returns a boolean if a field has been set. + +### SetAuthUsernameNil + +`func (o *HuggingfaceUpstream) SetAuthUsernameNil(b bool)` + + SetAuthUsernameNil sets the value for AuthUsername to be an explicit nil + +### UnsetAuthUsername +`func (o *HuggingfaceUpstream) UnsetAuthUsername()` + +UnsetAuthUsername ensures that no value is present for AuthUsername, not even an explicit nil +### GetCreatedAt + +`func (o *HuggingfaceUpstream) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *HuggingfaceUpstream) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *HuggingfaceUpstream) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *HuggingfaceUpstream) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetDisableReason + +`func (o *HuggingfaceUpstream) GetDisableReason() string` + +GetDisableReason returns the DisableReason field if non-nil, zero value otherwise. + +### GetDisableReasonOk + +`func (o *HuggingfaceUpstream) GetDisableReasonOk() (*string, bool)` + +GetDisableReasonOk returns a tuple with the DisableReason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisableReason + +`func (o *HuggingfaceUpstream) SetDisableReason(v string)` + +SetDisableReason sets DisableReason field to given value. + +### HasDisableReason + +`func (o *HuggingfaceUpstream) HasDisableReason() bool` + +HasDisableReason returns a boolean if a field has been set. + +### GetExtraHeader1 + +`func (o *HuggingfaceUpstream) GetExtraHeader1() string` + +GetExtraHeader1 returns the ExtraHeader1 field if non-nil, zero value otherwise. + +### GetExtraHeader1Ok + +`func (o *HuggingfaceUpstream) GetExtraHeader1Ok() (*string, bool)` + +GetExtraHeader1Ok returns a tuple with the ExtraHeader1 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExtraHeader1 + +`func (o *HuggingfaceUpstream) SetExtraHeader1(v string)` + +SetExtraHeader1 sets ExtraHeader1 field to given value. + +### HasExtraHeader1 + +`func (o *HuggingfaceUpstream) HasExtraHeader1() bool` + +HasExtraHeader1 returns a boolean if a field has been set. + +### SetExtraHeader1Nil + +`func (o *HuggingfaceUpstream) SetExtraHeader1Nil(b bool)` + + SetExtraHeader1Nil sets the value for ExtraHeader1 to be an explicit nil + +### UnsetExtraHeader1 +`func (o *HuggingfaceUpstream) UnsetExtraHeader1()` + +UnsetExtraHeader1 ensures that no value is present for ExtraHeader1, not even an explicit nil +### GetExtraHeader2 + +`func (o *HuggingfaceUpstream) GetExtraHeader2() string` + +GetExtraHeader2 returns the ExtraHeader2 field if non-nil, zero value otherwise. + +### GetExtraHeader2Ok + +`func (o *HuggingfaceUpstream) GetExtraHeader2Ok() (*string, bool)` + +GetExtraHeader2Ok returns a tuple with the ExtraHeader2 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExtraHeader2 + +`func (o *HuggingfaceUpstream) SetExtraHeader2(v string)` + +SetExtraHeader2 sets ExtraHeader2 field to given value. + +### HasExtraHeader2 + +`func (o *HuggingfaceUpstream) HasExtraHeader2() bool` + +HasExtraHeader2 returns a boolean if a field has been set. + +### SetExtraHeader2Nil + +`func (o *HuggingfaceUpstream) SetExtraHeader2Nil(b bool)` + + SetExtraHeader2Nil sets the value for ExtraHeader2 to be an explicit nil + +### UnsetExtraHeader2 +`func (o *HuggingfaceUpstream) UnsetExtraHeader2()` + +UnsetExtraHeader2 ensures that no value is present for ExtraHeader2, not even an explicit nil +### GetExtraValue1 + +`func (o *HuggingfaceUpstream) GetExtraValue1() string` + +GetExtraValue1 returns the ExtraValue1 field if non-nil, zero value otherwise. + +### GetExtraValue1Ok + +`func (o *HuggingfaceUpstream) GetExtraValue1Ok() (*string, bool)` + +GetExtraValue1Ok returns a tuple with the ExtraValue1 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExtraValue1 + +`func (o *HuggingfaceUpstream) SetExtraValue1(v string)` + +SetExtraValue1 sets ExtraValue1 field to given value. + +### HasExtraValue1 + +`func (o *HuggingfaceUpstream) HasExtraValue1() bool` + +HasExtraValue1 returns a boolean if a field has been set. + +### SetExtraValue1Nil + +`func (o *HuggingfaceUpstream) SetExtraValue1Nil(b bool)` + + SetExtraValue1Nil sets the value for ExtraValue1 to be an explicit nil + +### UnsetExtraValue1 +`func (o *HuggingfaceUpstream) UnsetExtraValue1()` + +UnsetExtraValue1 ensures that no value is present for ExtraValue1, not even an explicit nil +### GetExtraValue2 + +`func (o *HuggingfaceUpstream) GetExtraValue2() string` + +GetExtraValue2 returns the ExtraValue2 field if non-nil, zero value otherwise. + +### GetExtraValue2Ok + +`func (o *HuggingfaceUpstream) GetExtraValue2Ok() (*string, bool)` + +GetExtraValue2Ok returns a tuple with the ExtraValue2 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExtraValue2 + +`func (o *HuggingfaceUpstream) SetExtraValue2(v string)` + +SetExtraValue2 sets ExtraValue2 field to given value. + +### HasExtraValue2 + +`func (o *HuggingfaceUpstream) HasExtraValue2() bool` + +HasExtraValue2 returns a boolean if a field has been set. + +### SetExtraValue2Nil + +`func (o *HuggingfaceUpstream) SetExtraValue2Nil(b bool)` + + SetExtraValue2Nil sets the value for ExtraValue2 to be an explicit nil + +### UnsetExtraValue2 +`func (o *HuggingfaceUpstream) UnsetExtraValue2()` + +UnsetExtraValue2 ensures that no value is present for ExtraValue2, not even an explicit nil +### GetIsActive + +`func (o *HuggingfaceUpstream) GetIsActive() bool` + +GetIsActive returns the IsActive field if non-nil, zero value otherwise. + +### GetIsActiveOk + +`func (o *HuggingfaceUpstream) GetIsActiveOk() (*bool, bool)` + +GetIsActiveOk returns a tuple with the IsActive field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsActive + +`func (o *HuggingfaceUpstream) SetIsActive(v bool)` + +SetIsActive sets IsActive field to given value. + +### HasIsActive + +`func (o *HuggingfaceUpstream) HasIsActive() bool` + +HasIsActive returns a boolean if a field has been set. + +### GetMode + +`func (o *HuggingfaceUpstream) GetMode() string` + +GetMode returns the Mode field if non-nil, zero value otherwise. + +### GetModeOk + +`func (o *HuggingfaceUpstream) GetModeOk() (*string, bool)` + +GetModeOk returns a tuple with the Mode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMode + +`func (o *HuggingfaceUpstream) SetMode(v string)` + +SetMode sets Mode field to given value. + +### HasMode + +`func (o *HuggingfaceUpstream) HasMode() bool` + +HasMode returns a boolean if a field has been set. + +### GetName + +`func (o *HuggingfaceUpstream) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *HuggingfaceUpstream) 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 *HuggingfaceUpstream) SetName(v string)` + +SetName sets Name field to given value. + + +### GetPendingValidation + +`func (o *HuggingfaceUpstream) GetPendingValidation() bool` + +GetPendingValidation returns the PendingValidation field if non-nil, zero value otherwise. + +### GetPendingValidationOk + +`func (o *HuggingfaceUpstream) GetPendingValidationOk() (*bool, bool)` + +GetPendingValidationOk returns a tuple with the PendingValidation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPendingValidation + +`func (o *HuggingfaceUpstream) SetPendingValidation(v bool)` + +SetPendingValidation sets PendingValidation field to given value. + +### HasPendingValidation + +`func (o *HuggingfaceUpstream) HasPendingValidation() bool` + +HasPendingValidation returns a boolean if a field has been set. + +### GetPriority + +`func (o *HuggingfaceUpstream) GetPriority() int64` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *HuggingfaceUpstream) GetPriorityOk() (*int64, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *HuggingfaceUpstream) SetPriority(v int64)` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *HuggingfaceUpstream) HasPriority() bool` + +HasPriority returns a boolean if a field has been set. + +### GetSlugPerm + +`func (o *HuggingfaceUpstream) GetSlugPerm() string` + +GetSlugPerm returns the SlugPerm field if non-nil, zero value otherwise. + +### GetSlugPermOk + +`func (o *HuggingfaceUpstream) 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 *HuggingfaceUpstream) SetSlugPerm(v string)` + +SetSlugPerm sets SlugPerm field to given value. + +### HasSlugPerm + +`func (o *HuggingfaceUpstream) HasSlugPerm() bool` + +HasSlugPerm returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *HuggingfaceUpstream) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *HuggingfaceUpstream) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *HuggingfaceUpstream) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *HuggingfaceUpstream) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + +### GetUpstreamUrl + +`func (o *HuggingfaceUpstream) GetUpstreamUrl() string` + +GetUpstreamUrl returns the UpstreamUrl field if non-nil, zero value otherwise. + +### GetUpstreamUrlOk + +`func (o *HuggingfaceUpstream) GetUpstreamUrlOk() (*string, bool)` + +GetUpstreamUrlOk returns a tuple with the UpstreamUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpstreamUrl + +`func (o *HuggingfaceUpstream) SetUpstreamUrl(v string)` + +SetUpstreamUrl sets UpstreamUrl field to given value. + + +### GetVerifySsl + +`func (o *HuggingfaceUpstream) GetVerifySsl() bool` + +GetVerifySsl returns the VerifySsl field if non-nil, zero value otherwise. + +### GetVerifySslOk + +`func (o *HuggingfaceUpstream) GetVerifySslOk() (*bool, bool)` + +GetVerifySslOk returns a tuple with the VerifySsl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVerifySsl + +`func (o *HuggingfaceUpstream) SetVerifySsl(v bool)` + +SetVerifySsl sets VerifySsl field to given value. + +### HasVerifySsl + +`func (o *HuggingfaceUpstream) HasVerifySsl() bool` + +HasVerifySsl 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/HuggingfaceUpstreamRequest.md b/docs/HuggingfaceUpstreamRequest.md new file mode 100644 index 00000000..b3198014 --- /dev/null +++ b/docs/HuggingfaceUpstreamRequest.md @@ -0,0 +1,418 @@ +# HuggingfaceUpstreamRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AuthMode** | Pointer to **string** | The authentication mode to use when accessing this upstream. | [optional] [default to "None"] +**AuthSecret** | Pointer to **NullableString** | Secret to provide with requests to upstream. | [optional] +**AuthUsername** | Pointer to **NullableString** | Username to provide with requests to upstream. | [optional] +**ExtraHeader1** | Pointer to **NullableString** | The key for extra header #1 to send to upstream. | [optional] +**ExtraHeader2** | Pointer to **NullableString** | The key for extra header #2 to send to upstream. | [optional] +**ExtraValue1** | Pointer to **NullableString** | The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] +**ExtraValue2** | Pointer to **NullableString** | The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] +**IsActive** | Pointer to **bool** | Whether or not this upstream is active and ready for requests. | [optional] +**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] +**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] + +## Methods + +### NewHuggingfaceUpstreamRequest + +`func NewHuggingfaceUpstreamRequest(name string, upstreamUrl string, ) *HuggingfaceUpstreamRequest` + +NewHuggingfaceUpstreamRequest instantiates a new HuggingfaceUpstreamRequest 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 + +### NewHuggingfaceUpstreamRequestWithDefaults + +`func NewHuggingfaceUpstreamRequestWithDefaults() *HuggingfaceUpstreamRequest` + +NewHuggingfaceUpstreamRequestWithDefaults instantiates a new HuggingfaceUpstreamRequest 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 + +### GetAuthMode + +`func (o *HuggingfaceUpstreamRequest) GetAuthMode() string` + +GetAuthMode returns the AuthMode field if non-nil, zero value otherwise. + +### GetAuthModeOk + +`func (o *HuggingfaceUpstreamRequest) GetAuthModeOk() (*string, bool)` + +GetAuthModeOk returns a tuple with the AuthMode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthMode + +`func (o *HuggingfaceUpstreamRequest) SetAuthMode(v string)` + +SetAuthMode sets AuthMode field to given value. + +### HasAuthMode + +`func (o *HuggingfaceUpstreamRequest) HasAuthMode() bool` + +HasAuthMode returns a boolean if a field has been set. + +### GetAuthSecret + +`func (o *HuggingfaceUpstreamRequest) GetAuthSecret() string` + +GetAuthSecret returns the AuthSecret field if non-nil, zero value otherwise. + +### GetAuthSecretOk + +`func (o *HuggingfaceUpstreamRequest) GetAuthSecretOk() (*string, bool)` + +GetAuthSecretOk returns a tuple with the AuthSecret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthSecret + +`func (o *HuggingfaceUpstreamRequest) SetAuthSecret(v string)` + +SetAuthSecret sets AuthSecret field to given value. + +### HasAuthSecret + +`func (o *HuggingfaceUpstreamRequest) HasAuthSecret() bool` + +HasAuthSecret returns a boolean if a field has been set. + +### SetAuthSecretNil + +`func (o *HuggingfaceUpstreamRequest) SetAuthSecretNil(b bool)` + + SetAuthSecretNil sets the value for AuthSecret to be an explicit nil + +### UnsetAuthSecret +`func (o *HuggingfaceUpstreamRequest) UnsetAuthSecret()` + +UnsetAuthSecret ensures that no value is present for AuthSecret, not even an explicit nil +### GetAuthUsername + +`func (o *HuggingfaceUpstreamRequest) GetAuthUsername() string` + +GetAuthUsername returns the AuthUsername field if non-nil, zero value otherwise. + +### GetAuthUsernameOk + +`func (o *HuggingfaceUpstreamRequest) GetAuthUsernameOk() (*string, bool)` + +GetAuthUsernameOk returns a tuple with the AuthUsername field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthUsername + +`func (o *HuggingfaceUpstreamRequest) SetAuthUsername(v string)` + +SetAuthUsername sets AuthUsername field to given value. + +### HasAuthUsername + +`func (o *HuggingfaceUpstreamRequest) HasAuthUsername() bool` + +HasAuthUsername returns a boolean if a field has been set. + +### SetAuthUsernameNil + +`func (o *HuggingfaceUpstreamRequest) SetAuthUsernameNil(b bool)` + + SetAuthUsernameNil sets the value for AuthUsername to be an explicit nil + +### UnsetAuthUsername +`func (o *HuggingfaceUpstreamRequest) UnsetAuthUsername()` + +UnsetAuthUsername ensures that no value is present for AuthUsername, not even an explicit nil +### GetExtraHeader1 + +`func (o *HuggingfaceUpstreamRequest) GetExtraHeader1() string` + +GetExtraHeader1 returns the ExtraHeader1 field if non-nil, zero value otherwise. + +### GetExtraHeader1Ok + +`func (o *HuggingfaceUpstreamRequest) GetExtraHeader1Ok() (*string, bool)` + +GetExtraHeader1Ok returns a tuple with the ExtraHeader1 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExtraHeader1 + +`func (o *HuggingfaceUpstreamRequest) SetExtraHeader1(v string)` + +SetExtraHeader1 sets ExtraHeader1 field to given value. + +### HasExtraHeader1 + +`func (o *HuggingfaceUpstreamRequest) HasExtraHeader1() bool` + +HasExtraHeader1 returns a boolean if a field has been set. + +### SetExtraHeader1Nil + +`func (o *HuggingfaceUpstreamRequest) SetExtraHeader1Nil(b bool)` + + SetExtraHeader1Nil sets the value for ExtraHeader1 to be an explicit nil + +### UnsetExtraHeader1 +`func (o *HuggingfaceUpstreamRequest) UnsetExtraHeader1()` + +UnsetExtraHeader1 ensures that no value is present for ExtraHeader1, not even an explicit nil +### GetExtraHeader2 + +`func (o *HuggingfaceUpstreamRequest) GetExtraHeader2() string` + +GetExtraHeader2 returns the ExtraHeader2 field if non-nil, zero value otherwise. + +### GetExtraHeader2Ok + +`func (o *HuggingfaceUpstreamRequest) GetExtraHeader2Ok() (*string, bool)` + +GetExtraHeader2Ok returns a tuple with the ExtraHeader2 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExtraHeader2 + +`func (o *HuggingfaceUpstreamRequest) SetExtraHeader2(v string)` + +SetExtraHeader2 sets ExtraHeader2 field to given value. + +### HasExtraHeader2 + +`func (o *HuggingfaceUpstreamRequest) HasExtraHeader2() bool` + +HasExtraHeader2 returns a boolean if a field has been set. + +### SetExtraHeader2Nil + +`func (o *HuggingfaceUpstreamRequest) SetExtraHeader2Nil(b bool)` + + SetExtraHeader2Nil sets the value for ExtraHeader2 to be an explicit nil + +### UnsetExtraHeader2 +`func (o *HuggingfaceUpstreamRequest) UnsetExtraHeader2()` + +UnsetExtraHeader2 ensures that no value is present for ExtraHeader2, not even an explicit nil +### GetExtraValue1 + +`func (o *HuggingfaceUpstreamRequest) GetExtraValue1() string` + +GetExtraValue1 returns the ExtraValue1 field if non-nil, zero value otherwise. + +### GetExtraValue1Ok + +`func (o *HuggingfaceUpstreamRequest) GetExtraValue1Ok() (*string, bool)` + +GetExtraValue1Ok returns a tuple with the ExtraValue1 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExtraValue1 + +`func (o *HuggingfaceUpstreamRequest) SetExtraValue1(v string)` + +SetExtraValue1 sets ExtraValue1 field to given value. + +### HasExtraValue1 + +`func (o *HuggingfaceUpstreamRequest) HasExtraValue1() bool` + +HasExtraValue1 returns a boolean if a field has been set. + +### SetExtraValue1Nil + +`func (o *HuggingfaceUpstreamRequest) SetExtraValue1Nil(b bool)` + + SetExtraValue1Nil sets the value for ExtraValue1 to be an explicit nil + +### UnsetExtraValue1 +`func (o *HuggingfaceUpstreamRequest) UnsetExtraValue1()` + +UnsetExtraValue1 ensures that no value is present for ExtraValue1, not even an explicit nil +### GetExtraValue2 + +`func (o *HuggingfaceUpstreamRequest) GetExtraValue2() string` + +GetExtraValue2 returns the ExtraValue2 field if non-nil, zero value otherwise. + +### GetExtraValue2Ok + +`func (o *HuggingfaceUpstreamRequest) GetExtraValue2Ok() (*string, bool)` + +GetExtraValue2Ok returns a tuple with the ExtraValue2 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExtraValue2 + +`func (o *HuggingfaceUpstreamRequest) SetExtraValue2(v string)` + +SetExtraValue2 sets ExtraValue2 field to given value. + +### HasExtraValue2 + +`func (o *HuggingfaceUpstreamRequest) HasExtraValue2() bool` + +HasExtraValue2 returns a boolean if a field has been set. + +### SetExtraValue2Nil + +`func (o *HuggingfaceUpstreamRequest) SetExtraValue2Nil(b bool)` + + SetExtraValue2Nil sets the value for ExtraValue2 to be an explicit nil + +### UnsetExtraValue2 +`func (o *HuggingfaceUpstreamRequest) UnsetExtraValue2()` + +UnsetExtraValue2 ensures that no value is present for ExtraValue2, not even an explicit nil +### GetIsActive + +`func (o *HuggingfaceUpstreamRequest) GetIsActive() bool` + +GetIsActive returns the IsActive field if non-nil, zero value otherwise. + +### GetIsActiveOk + +`func (o *HuggingfaceUpstreamRequest) GetIsActiveOk() (*bool, bool)` + +GetIsActiveOk returns a tuple with the IsActive field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsActive + +`func (o *HuggingfaceUpstreamRequest) SetIsActive(v bool)` + +SetIsActive sets IsActive field to given value. + +### HasIsActive + +`func (o *HuggingfaceUpstreamRequest) HasIsActive() bool` + +HasIsActive returns a boolean if a field has been set. + +### GetMode + +`func (o *HuggingfaceUpstreamRequest) GetMode() string` + +GetMode returns the Mode field if non-nil, zero value otherwise. + +### GetModeOk + +`func (o *HuggingfaceUpstreamRequest) GetModeOk() (*string, bool)` + +GetModeOk returns a tuple with the Mode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMode + +`func (o *HuggingfaceUpstreamRequest) SetMode(v string)` + +SetMode sets Mode field to given value. + +### HasMode + +`func (o *HuggingfaceUpstreamRequest) HasMode() bool` + +HasMode returns a boolean if a field has been set. + +### GetName + +`func (o *HuggingfaceUpstreamRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *HuggingfaceUpstreamRequest) 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 *HuggingfaceUpstreamRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetPriority + +`func (o *HuggingfaceUpstreamRequest) GetPriority() int64` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *HuggingfaceUpstreamRequest) GetPriorityOk() (*int64, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *HuggingfaceUpstreamRequest) SetPriority(v int64)` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *HuggingfaceUpstreamRequest) HasPriority() bool` + +HasPriority returns a boolean if a field has been set. + +### GetUpstreamUrl + +`func (o *HuggingfaceUpstreamRequest) GetUpstreamUrl() string` + +GetUpstreamUrl returns the UpstreamUrl field if non-nil, zero value otherwise. + +### GetUpstreamUrlOk + +`func (o *HuggingfaceUpstreamRequest) GetUpstreamUrlOk() (*string, bool)` + +GetUpstreamUrlOk returns a tuple with the UpstreamUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpstreamUrl + +`func (o *HuggingfaceUpstreamRequest) SetUpstreamUrl(v string)` + +SetUpstreamUrl sets UpstreamUrl field to given value. + + +### GetVerifySsl + +`func (o *HuggingfaceUpstreamRequest) GetVerifySsl() bool` + +GetVerifySsl returns the VerifySsl field if non-nil, zero value otherwise. + +### GetVerifySslOk + +`func (o *HuggingfaceUpstreamRequest) GetVerifySslOk() (*bool, bool)` + +GetVerifySslOk returns a tuple with the VerifySsl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVerifySsl + +`func (o *HuggingfaceUpstreamRequest) SetVerifySsl(v bool)` + +SetVerifySsl sets VerifySsl field to given value. + +### HasVerifySsl + +`func (o *HuggingfaceUpstreamRequest) HasVerifySsl() bool` + +HasVerifySsl 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/HuggingfaceUpstreamRequestPatch.md b/docs/HuggingfaceUpstreamRequestPatch.md new file mode 100644 index 00000000..851e740c --- /dev/null +++ b/docs/HuggingfaceUpstreamRequestPatch.md @@ -0,0 +1,428 @@ +# HuggingfaceUpstreamRequestPatch + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AuthMode** | Pointer to **string** | The authentication mode to use when accessing this upstream. | [optional] [default to "None"] +**AuthSecret** | Pointer to **NullableString** | Secret to provide with requests to upstream. | [optional] +**AuthUsername** | Pointer to **NullableString** | Username to provide with requests to upstream. | [optional] +**ExtraHeader1** | Pointer to **NullableString** | The key for extra header #1 to send to upstream. | [optional] +**ExtraHeader2** | Pointer to **NullableString** | The key for extra header #2 to send to upstream. | [optional] +**ExtraValue1** | Pointer to **NullableString** | The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] +**ExtraValue2** | Pointer to **NullableString** | The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] +**IsActive** | Pointer to **bool** | Whether or not this upstream is active and ready for requests. | [optional] +**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] +**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] + +## Methods + +### NewHuggingfaceUpstreamRequestPatch + +`func NewHuggingfaceUpstreamRequestPatch() *HuggingfaceUpstreamRequestPatch` + +NewHuggingfaceUpstreamRequestPatch instantiates a new HuggingfaceUpstreamRequestPatch 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 + +### NewHuggingfaceUpstreamRequestPatchWithDefaults + +`func NewHuggingfaceUpstreamRequestPatchWithDefaults() *HuggingfaceUpstreamRequestPatch` + +NewHuggingfaceUpstreamRequestPatchWithDefaults instantiates a new HuggingfaceUpstreamRequestPatch 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 + +### GetAuthMode + +`func (o *HuggingfaceUpstreamRequestPatch) GetAuthMode() string` + +GetAuthMode returns the AuthMode field if non-nil, zero value otherwise. + +### GetAuthModeOk + +`func (o *HuggingfaceUpstreamRequestPatch) GetAuthModeOk() (*string, bool)` + +GetAuthModeOk returns a tuple with the AuthMode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthMode + +`func (o *HuggingfaceUpstreamRequestPatch) SetAuthMode(v string)` + +SetAuthMode sets AuthMode field to given value. + +### HasAuthMode + +`func (o *HuggingfaceUpstreamRequestPatch) HasAuthMode() bool` + +HasAuthMode returns a boolean if a field has been set. + +### GetAuthSecret + +`func (o *HuggingfaceUpstreamRequestPatch) GetAuthSecret() string` + +GetAuthSecret returns the AuthSecret field if non-nil, zero value otherwise. + +### GetAuthSecretOk + +`func (o *HuggingfaceUpstreamRequestPatch) GetAuthSecretOk() (*string, bool)` + +GetAuthSecretOk returns a tuple with the AuthSecret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthSecret + +`func (o *HuggingfaceUpstreamRequestPatch) SetAuthSecret(v string)` + +SetAuthSecret sets AuthSecret field to given value. + +### HasAuthSecret + +`func (o *HuggingfaceUpstreamRequestPatch) HasAuthSecret() bool` + +HasAuthSecret returns a boolean if a field has been set. + +### SetAuthSecretNil + +`func (o *HuggingfaceUpstreamRequestPatch) SetAuthSecretNil(b bool)` + + SetAuthSecretNil sets the value for AuthSecret to be an explicit nil + +### UnsetAuthSecret +`func (o *HuggingfaceUpstreamRequestPatch) UnsetAuthSecret()` + +UnsetAuthSecret ensures that no value is present for AuthSecret, not even an explicit nil +### GetAuthUsername + +`func (o *HuggingfaceUpstreamRequestPatch) GetAuthUsername() string` + +GetAuthUsername returns the AuthUsername field if non-nil, zero value otherwise. + +### GetAuthUsernameOk + +`func (o *HuggingfaceUpstreamRequestPatch) GetAuthUsernameOk() (*string, bool)` + +GetAuthUsernameOk returns a tuple with the AuthUsername field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthUsername + +`func (o *HuggingfaceUpstreamRequestPatch) SetAuthUsername(v string)` + +SetAuthUsername sets AuthUsername field to given value. + +### HasAuthUsername + +`func (o *HuggingfaceUpstreamRequestPatch) HasAuthUsername() bool` + +HasAuthUsername returns a boolean if a field has been set. + +### SetAuthUsernameNil + +`func (o *HuggingfaceUpstreamRequestPatch) SetAuthUsernameNil(b bool)` + + SetAuthUsernameNil sets the value for AuthUsername to be an explicit nil + +### UnsetAuthUsername +`func (o *HuggingfaceUpstreamRequestPatch) UnsetAuthUsername()` + +UnsetAuthUsername ensures that no value is present for AuthUsername, not even an explicit nil +### GetExtraHeader1 + +`func (o *HuggingfaceUpstreamRequestPatch) GetExtraHeader1() string` + +GetExtraHeader1 returns the ExtraHeader1 field if non-nil, zero value otherwise. + +### GetExtraHeader1Ok + +`func (o *HuggingfaceUpstreamRequestPatch) GetExtraHeader1Ok() (*string, bool)` + +GetExtraHeader1Ok returns a tuple with the ExtraHeader1 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExtraHeader1 + +`func (o *HuggingfaceUpstreamRequestPatch) SetExtraHeader1(v string)` + +SetExtraHeader1 sets ExtraHeader1 field to given value. + +### HasExtraHeader1 + +`func (o *HuggingfaceUpstreamRequestPatch) HasExtraHeader1() bool` + +HasExtraHeader1 returns a boolean if a field has been set. + +### SetExtraHeader1Nil + +`func (o *HuggingfaceUpstreamRequestPatch) SetExtraHeader1Nil(b bool)` + + SetExtraHeader1Nil sets the value for ExtraHeader1 to be an explicit nil + +### UnsetExtraHeader1 +`func (o *HuggingfaceUpstreamRequestPatch) UnsetExtraHeader1()` + +UnsetExtraHeader1 ensures that no value is present for ExtraHeader1, not even an explicit nil +### GetExtraHeader2 + +`func (o *HuggingfaceUpstreamRequestPatch) GetExtraHeader2() string` + +GetExtraHeader2 returns the ExtraHeader2 field if non-nil, zero value otherwise. + +### GetExtraHeader2Ok + +`func (o *HuggingfaceUpstreamRequestPatch) GetExtraHeader2Ok() (*string, bool)` + +GetExtraHeader2Ok returns a tuple with the ExtraHeader2 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExtraHeader2 + +`func (o *HuggingfaceUpstreamRequestPatch) SetExtraHeader2(v string)` + +SetExtraHeader2 sets ExtraHeader2 field to given value. + +### HasExtraHeader2 + +`func (o *HuggingfaceUpstreamRequestPatch) HasExtraHeader2() bool` + +HasExtraHeader2 returns a boolean if a field has been set. + +### SetExtraHeader2Nil + +`func (o *HuggingfaceUpstreamRequestPatch) SetExtraHeader2Nil(b bool)` + + SetExtraHeader2Nil sets the value for ExtraHeader2 to be an explicit nil + +### UnsetExtraHeader2 +`func (o *HuggingfaceUpstreamRequestPatch) UnsetExtraHeader2()` + +UnsetExtraHeader2 ensures that no value is present for ExtraHeader2, not even an explicit nil +### GetExtraValue1 + +`func (o *HuggingfaceUpstreamRequestPatch) GetExtraValue1() string` + +GetExtraValue1 returns the ExtraValue1 field if non-nil, zero value otherwise. + +### GetExtraValue1Ok + +`func (o *HuggingfaceUpstreamRequestPatch) GetExtraValue1Ok() (*string, bool)` + +GetExtraValue1Ok returns a tuple with the ExtraValue1 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExtraValue1 + +`func (o *HuggingfaceUpstreamRequestPatch) SetExtraValue1(v string)` + +SetExtraValue1 sets ExtraValue1 field to given value. + +### HasExtraValue1 + +`func (o *HuggingfaceUpstreamRequestPatch) HasExtraValue1() bool` + +HasExtraValue1 returns a boolean if a field has been set. + +### SetExtraValue1Nil + +`func (o *HuggingfaceUpstreamRequestPatch) SetExtraValue1Nil(b bool)` + + SetExtraValue1Nil sets the value for ExtraValue1 to be an explicit nil + +### UnsetExtraValue1 +`func (o *HuggingfaceUpstreamRequestPatch) UnsetExtraValue1()` + +UnsetExtraValue1 ensures that no value is present for ExtraValue1, not even an explicit nil +### GetExtraValue2 + +`func (o *HuggingfaceUpstreamRequestPatch) GetExtraValue2() string` + +GetExtraValue2 returns the ExtraValue2 field if non-nil, zero value otherwise. + +### GetExtraValue2Ok + +`func (o *HuggingfaceUpstreamRequestPatch) GetExtraValue2Ok() (*string, bool)` + +GetExtraValue2Ok returns a tuple with the ExtraValue2 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExtraValue2 + +`func (o *HuggingfaceUpstreamRequestPatch) SetExtraValue2(v string)` + +SetExtraValue2 sets ExtraValue2 field to given value. + +### HasExtraValue2 + +`func (o *HuggingfaceUpstreamRequestPatch) HasExtraValue2() bool` + +HasExtraValue2 returns a boolean if a field has been set. + +### SetExtraValue2Nil + +`func (o *HuggingfaceUpstreamRequestPatch) SetExtraValue2Nil(b bool)` + + SetExtraValue2Nil sets the value for ExtraValue2 to be an explicit nil + +### UnsetExtraValue2 +`func (o *HuggingfaceUpstreamRequestPatch) UnsetExtraValue2()` + +UnsetExtraValue2 ensures that no value is present for ExtraValue2, not even an explicit nil +### GetIsActive + +`func (o *HuggingfaceUpstreamRequestPatch) GetIsActive() bool` + +GetIsActive returns the IsActive field if non-nil, zero value otherwise. + +### GetIsActiveOk + +`func (o *HuggingfaceUpstreamRequestPatch) GetIsActiveOk() (*bool, bool)` + +GetIsActiveOk returns a tuple with the IsActive field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsActive + +`func (o *HuggingfaceUpstreamRequestPatch) SetIsActive(v bool)` + +SetIsActive sets IsActive field to given value. + +### HasIsActive + +`func (o *HuggingfaceUpstreamRequestPatch) HasIsActive() bool` + +HasIsActive returns a boolean if a field has been set. + +### GetMode + +`func (o *HuggingfaceUpstreamRequestPatch) GetMode() string` + +GetMode returns the Mode field if non-nil, zero value otherwise. + +### GetModeOk + +`func (o *HuggingfaceUpstreamRequestPatch) GetModeOk() (*string, bool)` + +GetModeOk returns a tuple with the Mode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMode + +`func (o *HuggingfaceUpstreamRequestPatch) SetMode(v string)` + +SetMode sets Mode field to given value. + +### HasMode + +`func (o *HuggingfaceUpstreamRequestPatch) HasMode() bool` + +HasMode returns a boolean if a field has been set. + +### GetName + +`func (o *HuggingfaceUpstreamRequestPatch) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *HuggingfaceUpstreamRequestPatch) 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 *HuggingfaceUpstreamRequestPatch) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *HuggingfaceUpstreamRequestPatch) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetPriority + +`func (o *HuggingfaceUpstreamRequestPatch) GetPriority() int64` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *HuggingfaceUpstreamRequestPatch) GetPriorityOk() (*int64, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *HuggingfaceUpstreamRequestPatch) SetPriority(v int64)` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *HuggingfaceUpstreamRequestPatch) HasPriority() bool` + +HasPriority returns a boolean if a field has been set. + +### GetUpstreamUrl + +`func (o *HuggingfaceUpstreamRequestPatch) GetUpstreamUrl() string` + +GetUpstreamUrl returns the UpstreamUrl field if non-nil, zero value otherwise. + +### GetUpstreamUrlOk + +`func (o *HuggingfaceUpstreamRequestPatch) GetUpstreamUrlOk() (*string, bool)` + +GetUpstreamUrlOk returns a tuple with the UpstreamUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpstreamUrl + +`func (o *HuggingfaceUpstreamRequestPatch) SetUpstreamUrl(v string)` + +SetUpstreamUrl sets UpstreamUrl field to given value. + +### HasUpstreamUrl + +`func (o *HuggingfaceUpstreamRequestPatch) HasUpstreamUrl() bool` + +HasUpstreamUrl returns a boolean if a field has been set. + +### GetVerifySsl + +`func (o *HuggingfaceUpstreamRequestPatch) GetVerifySsl() bool` + +GetVerifySsl returns the VerifySsl field if non-nil, zero value otherwise. + +### GetVerifySslOk + +`func (o *HuggingfaceUpstreamRequestPatch) GetVerifySslOk() (*bool, bool)` + +GetVerifySslOk returns a tuple with the VerifySsl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVerifySsl + +`func (o *HuggingfaceUpstreamRequestPatch) SetVerifySsl(v bool)` + +SetVerifySsl sets VerifySsl field to given value. + +### HasVerifySsl + +`func (o *HuggingfaceUpstreamRequestPatch) HasVerifySsl() bool` + +HasVerifySsl 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/LuarocksPackageUpload.md b/docs/LuarocksPackageUpload.md index 4e76dc85..30c05741 100644 --- a/docs/LuarocksPackageUpload.md +++ b/docs/LuarocksPackageUpload.md @@ -76,6 +76,7 @@ Name | Type | Description | Notes **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] @@ -2074,6 +2075,31 @@ SetSyncProgress sets SyncProgress field to given value. HasSyncProgress returns a boolean if a field has been set. +### GetTagsAutomatic + +`func (o *LuarocksPackageUpload) GetTagsAutomatic() map[string]interface{}` + +GetTagsAutomatic returns the TagsAutomatic field if non-nil, zero value otherwise. + +### GetTagsAutomaticOk + +`func (o *LuarocksPackageUpload) 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 *LuarocksPackageUpload) SetTagsAutomatic(v map[string]interface{})` + +SetTagsAutomatic sets TagsAutomatic field to given value. + +### HasTagsAutomatic + +`func (o *LuarocksPackageUpload) HasTagsAutomatic() bool` + +HasTagsAutomatic returns a boolean if a field has been set. + ### GetTagsImmutable `func (o *LuarocksPackageUpload) GetTagsImmutable() map[string]interface{}` diff --git a/docs/MavenPackageUpload.md b/docs/MavenPackageUpload.md index a253a1af..9bb5dd85 100644 --- a/docs/MavenPackageUpload.md +++ b/docs/MavenPackageUpload.md @@ -81,6 +81,7 @@ Name | Type | Description | Notes **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] @@ -2254,6 +2255,31 @@ SetSyncProgress sets SyncProgress field to given value. HasSyncProgress returns a boolean if a field has been set. +### GetTagsAutomatic + +`func (o *MavenPackageUpload) GetTagsAutomatic() map[string]interface{}` + +GetTagsAutomatic returns the TagsAutomatic field if non-nil, zero value otherwise. + +### GetTagsAutomaticOk + +`func (o *MavenPackageUpload) 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 *MavenPackageUpload) SetTagsAutomatic(v map[string]interface{})` + +SetTagsAutomatic sets TagsAutomatic field to given value. + +### HasTagsAutomatic + +`func (o *MavenPackageUpload) HasTagsAutomatic() bool` + +HasTagsAutomatic returns a boolean if a field has been set. + ### GetTagsImmutable `func (o *MavenPackageUpload) GetTagsImmutable() map[string]interface{}` diff --git a/docs/NpmPackageUpload.md b/docs/NpmPackageUpload.md index 92e3a66c..5247e873 100644 --- a/docs/NpmPackageUpload.md +++ b/docs/NpmPackageUpload.md @@ -76,6 +76,7 @@ Name | Type | Description | Notes **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] @@ -2074,6 +2075,31 @@ SetSyncProgress sets SyncProgress field to given value. HasSyncProgress returns a boolean if a field has been set. +### GetTagsAutomatic + +`func (o *NpmPackageUpload) GetTagsAutomatic() map[string]interface{}` + +GetTagsAutomatic returns the TagsAutomatic field if non-nil, zero value otherwise. + +### GetTagsAutomaticOk + +`func (o *NpmPackageUpload) 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 *NpmPackageUpload) SetTagsAutomatic(v map[string]interface{})` + +SetTagsAutomatic sets TagsAutomatic field to given value. + +### HasTagsAutomatic + +`func (o *NpmPackageUpload) HasTagsAutomatic() bool` + +HasTagsAutomatic returns a boolean if a field has been set. + ### GetTagsImmutable `func (o *NpmPackageUpload) GetTagsImmutable() map[string]interface{}` diff --git a/docs/NugetPackageUpload.md b/docs/NugetPackageUpload.md index 98bd528d..61c477dc 100644 --- a/docs/NugetPackageUpload.md +++ b/docs/NugetPackageUpload.md @@ -76,6 +76,7 @@ Name | Type | Description | Notes **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] @@ -2074,6 +2075,31 @@ SetSyncProgress sets SyncProgress field to given value. HasSyncProgress returns a boolean if a field has been set. +### GetTagsAutomatic + +`func (o *NugetPackageUpload) GetTagsAutomatic() map[string]interface{}` + +GetTagsAutomatic returns the TagsAutomatic field if non-nil, zero value otherwise. + +### GetTagsAutomaticOk + +`func (o *NugetPackageUpload) 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 *NugetPackageUpload) SetTagsAutomatic(v map[string]interface{})` + +SetTagsAutomatic sets TagsAutomatic field to given value. + +### HasTagsAutomatic + +`func (o *NugetPackageUpload) HasTagsAutomatic() bool` + +HasTagsAutomatic returns a boolean if a field has been set. + ### GetTagsImmutable `func (o *NugetPackageUpload) GetTagsImmutable() map[string]interface{}` diff --git a/docs/OrgsApi.md b/docs/OrgsApi.md index d4e92dcc..962d6e72 100644 --- a/docs/OrgsApi.md +++ b/docs/OrgsApi.md @@ -4401,7 +4401,7 @@ Name | Type | Description | Notes ## OrgsTeamsMembersList -> OrganizationTeamMembers OrgsTeamsMembersList(ctx, org, team).Execute() +> OrganizationTeamMembers OrgsTeamsMembersList(ctx, org, team).UserKind(userKind).Execute() List all members for the team. @@ -4422,10 +4422,11 @@ import ( func main() { org := "org_example" // string | team := "team_example" // string | + userKind := "userKind_example" // string | Filter accounts by type. Possible values are 'user' and 'service'. If not provided, only users are returned. (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.OrgsApi.OrgsTeamsMembersList(context.Background(), org, team).Execute() + resp, r, err := apiClient.OrgsApi.OrgsTeamsMembersList(context.Background(), org, team).UserKind(userKind).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `OrgsApi.OrgsTeamsMembersList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -4453,6 +4454,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **userKind** | **string** | Filter accounts by type. Possible values are 'user' and 'service'. If not provided, only users are returned. | ### Return type diff --git a/docs/P2PackageUpload.md b/docs/P2PackageUpload.md index 53475ca9..650b8dc4 100644 --- a/docs/P2PackageUpload.md +++ b/docs/P2PackageUpload.md @@ -76,6 +76,7 @@ Name | Type | Description | Notes **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] @@ -2074,6 +2075,31 @@ SetSyncProgress sets SyncProgress field to given value. HasSyncProgress returns a boolean if a field has been set. +### GetTagsAutomatic + +`func (o *P2PackageUpload) GetTagsAutomatic() map[string]interface{}` + +GetTagsAutomatic returns the TagsAutomatic field if non-nil, zero value otherwise. + +### GetTagsAutomaticOk + +`func (o *P2PackageUpload) 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 *P2PackageUpload) SetTagsAutomatic(v map[string]interface{})` + +SetTagsAutomatic sets TagsAutomatic field to given value. + +### HasTagsAutomatic + +`func (o *P2PackageUpload) HasTagsAutomatic() bool` + +HasTagsAutomatic returns a boolean if a field has been set. + ### GetTagsImmutable `func (o *P2PackageUpload) GetTagsImmutable() map[string]interface{}` diff --git a/docs/Package.md b/docs/Package.md index 50b85d47..5bbaf434 100644 --- a/docs/Package.md +++ b/docs/Package.md @@ -77,6 +77,7 @@ Name | Type | Description | Notes **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] **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] +**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] @@ -2100,6 +2101,31 @@ SetTags sets Tags field to given value. HasTags returns a boolean if a field has been set. +### GetTagsAutomatic + +`func (o *Package) GetTagsAutomatic() map[string]interface{}` + +GetTagsAutomatic returns the TagsAutomatic field if non-nil, zero value otherwise. + +### GetTagsAutomaticOk + +`func (o *Package) 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 *Package) SetTagsAutomatic(v map[string]interface{})` + +SetTagsAutomatic sets TagsAutomatic field to given value. + +### HasTagsAutomatic + +`func (o *Package) HasTagsAutomatic() bool` + +HasTagsAutomatic returns a boolean if a field has been set. + ### GetTagsImmutable `func (o *Package) GetTagsImmutable() map[string]interface{}` diff --git a/docs/PackageCopy.md b/docs/PackageCopy.md index df831dca..cbfede2a 100644 --- a/docs/PackageCopy.md +++ b/docs/PackageCopy.md @@ -77,6 +77,7 @@ Name | Type | Description | Notes **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] **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] +**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] @@ -2100,6 +2101,31 @@ SetTags sets Tags field to given value. HasTags returns a boolean if a field has been set. +### GetTagsAutomatic + +`func (o *PackageCopy) GetTagsAutomatic() map[string]interface{}` + +GetTagsAutomatic returns the TagsAutomatic field if non-nil, zero value otherwise. + +### GetTagsAutomaticOk + +`func (o *PackageCopy) 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 *PackageCopy) SetTagsAutomatic(v map[string]interface{})` + +SetTagsAutomatic sets TagsAutomatic field to given value. + +### HasTagsAutomatic + +`func (o *PackageCopy) HasTagsAutomatic() bool` + +HasTagsAutomatic returns a boolean if a field has been set. + ### GetTagsImmutable `func (o *PackageCopy) GetTagsImmutable() map[string]interface{}` diff --git a/docs/PackageLicense.md b/docs/PackageLicense.md new file mode 100644 index 00000000..38e6733f --- /dev/null +++ b/docs/PackageLicense.md @@ -0,0 +1,159 @@ +# PackageLicense + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LicenseNotes** | Pointer to **NullableString** | | [optional] +**LicenseOverride** | Pointer to **NullableString** | | [optional] [default to "None"] +**LicenseUrl** | Pointer to **NullableString** | | [optional] +**SpdxLicense** | **string** | | + +## Methods + +### NewPackageLicense + +`func NewPackageLicense(spdxLicense string, ) *PackageLicense` + +NewPackageLicense instantiates a new PackageLicense 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 + +### NewPackageLicenseWithDefaults + +`func NewPackageLicenseWithDefaults() *PackageLicense` + +NewPackageLicenseWithDefaults instantiates a new PackageLicense object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLicenseNotes + +`func (o *PackageLicense) GetLicenseNotes() string` + +GetLicenseNotes returns the LicenseNotes field if non-nil, zero value otherwise. + +### GetLicenseNotesOk + +`func (o *PackageLicense) GetLicenseNotesOk() (*string, bool)` + +GetLicenseNotesOk returns a tuple with the LicenseNotes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLicenseNotes + +`func (o *PackageLicense) SetLicenseNotes(v string)` + +SetLicenseNotes sets LicenseNotes field to given value. + +### HasLicenseNotes + +`func (o *PackageLicense) HasLicenseNotes() bool` + +HasLicenseNotes returns a boolean if a field has been set. + +### SetLicenseNotesNil + +`func (o *PackageLicense) SetLicenseNotesNil(b bool)` + + SetLicenseNotesNil sets the value for LicenseNotes to be an explicit nil + +### UnsetLicenseNotes +`func (o *PackageLicense) UnsetLicenseNotes()` + +UnsetLicenseNotes ensures that no value is present for LicenseNotes, not even an explicit nil +### GetLicenseOverride + +`func (o *PackageLicense) GetLicenseOverride() string` + +GetLicenseOverride returns the LicenseOverride field if non-nil, zero value otherwise. + +### GetLicenseOverrideOk + +`func (o *PackageLicense) GetLicenseOverrideOk() (*string, bool)` + +GetLicenseOverrideOk returns a tuple with the LicenseOverride field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLicenseOverride + +`func (o *PackageLicense) SetLicenseOverride(v string)` + +SetLicenseOverride sets LicenseOverride field to given value. + +### HasLicenseOverride + +`func (o *PackageLicense) HasLicenseOverride() bool` + +HasLicenseOverride returns a boolean if a field has been set. + +### SetLicenseOverrideNil + +`func (o *PackageLicense) SetLicenseOverrideNil(b bool)` + + SetLicenseOverrideNil sets the value for LicenseOverride to be an explicit nil + +### UnsetLicenseOverride +`func (o *PackageLicense) UnsetLicenseOverride()` + +UnsetLicenseOverride ensures that no value is present for LicenseOverride, not even an explicit nil +### GetLicenseUrl + +`func (o *PackageLicense) GetLicenseUrl() string` + +GetLicenseUrl returns the LicenseUrl field if non-nil, zero value otherwise. + +### GetLicenseUrlOk + +`func (o *PackageLicense) GetLicenseUrlOk() (*string, bool)` + +GetLicenseUrlOk returns a tuple with the LicenseUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLicenseUrl + +`func (o *PackageLicense) SetLicenseUrl(v string)` + +SetLicenseUrl sets LicenseUrl field to given value. + +### HasLicenseUrl + +`func (o *PackageLicense) HasLicenseUrl() bool` + +HasLicenseUrl returns a boolean if a field has been set. + +### SetLicenseUrlNil + +`func (o *PackageLicense) SetLicenseUrlNil(b bool)` + + SetLicenseUrlNil sets the value for LicenseUrl to be an explicit nil + +### UnsetLicenseUrl +`func (o *PackageLicense) UnsetLicenseUrl()` + +UnsetLicenseUrl ensures that no value is present for LicenseUrl, not even an explicit nil +### GetSpdxLicense + +`func (o *PackageLicense) GetSpdxLicense() string` + +GetSpdxLicense returns the SpdxLicense field if non-nil, zero value otherwise. + +### GetSpdxLicenseOk + +`func (o *PackageLicense) 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 *PackageLicense) SetSpdxLicense(v string)` + +SetSpdxLicense sets SpdxLicense 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/PackageLicenseRequestPatch.md b/docs/PackageLicenseRequestPatch.md new file mode 100644 index 00000000..3d12b624 --- /dev/null +++ b/docs/PackageLicenseRequestPatch.md @@ -0,0 +1,200 @@ +# PackageLicenseRequestPatch + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Action** | Pointer to **NullableString** | | [optional] [default to "Update"] +**LicenseNotes** | Pointer to **NullableString** | | [optional] +**LicenseOverride** | Pointer to **NullableString** | | [optional] [default to "None"] +**LicenseUrl** | Pointer to **NullableString** | | [optional] +**SpdxLicense** | Pointer to **string** | | [optional] + +## Methods + +### NewPackageLicenseRequestPatch + +`func NewPackageLicenseRequestPatch() *PackageLicenseRequestPatch` + +NewPackageLicenseRequestPatch instantiates a new PackageLicenseRequestPatch 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 + +### NewPackageLicenseRequestPatchWithDefaults + +`func NewPackageLicenseRequestPatchWithDefaults() *PackageLicenseRequestPatch` + +NewPackageLicenseRequestPatchWithDefaults instantiates a new PackageLicenseRequestPatch 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 *PackageLicenseRequestPatch) GetAction() string` + +GetAction returns the Action field if non-nil, zero value otherwise. + +### GetActionOk + +`func (o *PackageLicenseRequestPatch) 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 *PackageLicenseRequestPatch) SetAction(v string)` + +SetAction sets Action field to given value. + +### HasAction + +`func (o *PackageLicenseRequestPatch) HasAction() bool` + +HasAction returns a boolean if a field has been set. + +### SetActionNil + +`func (o *PackageLicenseRequestPatch) SetActionNil(b bool)` + + SetActionNil sets the value for Action to be an explicit nil + +### UnsetAction +`func (o *PackageLicenseRequestPatch) UnsetAction()` + +UnsetAction ensures that no value is present for Action, not even an explicit nil +### GetLicenseNotes + +`func (o *PackageLicenseRequestPatch) GetLicenseNotes() string` + +GetLicenseNotes returns the LicenseNotes field if non-nil, zero value otherwise. + +### GetLicenseNotesOk + +`func (o *PackageLicenseRequestPatch) GetLicenseNotesOk() (*string, bool)` + +GetLicenseNotesOk returns a tuple with the LicenseNotes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLicenseNotes + +`func (o *PackageLicenseRequestPatch) SetLicenseNotes(v string)` + +SetLicenseNotes sets LicenseNotes field to given value. + +### HasLicenseNotes + +`func (o *PackageLicenseRequestPatch) HasLicenseNotes() bool` + +HasLicenseNotes returns a boolean if a field has been set. + +### SetLicenseNotesNil + +`func (o *PackageLicenseRequestPatch) SetLicenseNotesNil(b bool)` + + SetLicenseNotesNil sets the value for LicenseNotes to be an explicit nil + +### UnsetLicenseNotes +`func (o *PackageLicenseRequestPatch) UnsetLicenseNotes()` + +UnsetLicenseNotes ensures that no value is present for LicenseNotes, not even an explicit nil +### GetLicenseOverride + +`func (o *PackageLicenseRequestPatch) GetLicenseOverride() string` + +GetLicenseOverride returns the LicenseOverride field if non-nil, zero value otherwise. + +### GetLicenseOverrideOk + +`func (o *PackageLicenseRequestPatch) GetLicenseOverrideOk() (*string, bool)` + +GetLicenseOverrideOk returns a tuple with the LicenseOverride field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLicenseOverride + +`func (o *PackageLicenseRequestPatch) SetLicenseOverride(v string)` + +SetLicenseOverride sets LicenseOverride field to given value. + +### HasLicenseOverride + +`func (o *PackageLicenseRequestPatch) HasLicenseOverride() bool` + +HasLicenseOverride returns a boolean if a field has been set. + +### SetLicenseOverrideNil + +`func (o *PackageLicenseRequestPatch) SetLicenseOverrideNil(b bool)` + + SetLicenseOverrideNil sets the value for LicenseOverride to be an explicit nil + +### UnsetLicenseOverride +`func (o *PackageLicenseRequestPatch) UnsetLicenseOverride()` + +UnsetLicenseOverride ensures that no value is present for LicenseOverride, not even an explicit nil +### GetLicenseUrl + +`func (o *PackageLicenseRequestPatch) GetLicenseUrl() string` + +GetLicenseUrl returns the LicenseUrl field if non-nil, zero value otherwise. + +### GetLicenseUrlOk + +`func (o *PackageLicenseRequestPatch) GetLicenseUrlOk() (*string, bool)` + +GetLicenseUrlOk returns a tuple with the LicenseUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLicenseUrl + +`func (o *PackageLicenseRequestPatch) SetLicenseUrl(v string)` + +SetLicenseUrl sets LicenseUrl field to given value. + +### HasLicenseUrl + +`func (o *PackageLicenseRequestPatch) HasLicenseUrl() bool` + +HasLicenseUrl returns a boolean if a field has been set. + +### SetLicenseUrlNil + +`func (o *PackageLicenseRequestPatch) SetLicenseUrlNil(b bool)` + + SetLicenseUrlNil sets the value for LicenseUrl to be an explicit nil + +### UnsetLicenseUrl +`func (o *PackageLicenseRequestPatch) UnsetLicenseUrl()` + +UnsetLicenseUrl ensures that no value is present for LicenseUrl, not even an explicit nil +### GetSpdxLicense + +`func (o *PackageLicenseRequestPatch) GetSpdxLicense() string` + +GetSpdxLicense returns the SpdxLicense field if non-nil, zero value otherwise. + +### GetSpdxLicenseOk + +`func (o *PackageLicenseRequestPatch) 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 *PackageLicenseRequestPatch) SetSpdxLicense(v string)` + +SetSpdxLicense sets SpdxLicense field to given value. + +### HasSpdxLicense + +`func (o *PackageLicenseRequestPatch) HasSpdxLicense() bool` + +HasSpdxLicense 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/PackageMove.md b/docs/PackageMove.md index eab5b1f3..4dfda1b4 100644 --- a/docs/PackageMove.md +++ b/docs/PackageMove.md @@ -77,6 +77,7 @@ Name | Type | Description | Notes **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] **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] +**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] @@ -2100,6 +2101,31 @@ SetTags sets Tags field to given value. HasTags returns a boolean if a field has been set. +### GetTagsAutomatic + +`func (o *PackageMove) GetTagsAutomatic() map[string]interface{}` + +GetTagsAutomatic returns the TagsAutomatic field if non-nil, zero value otherwise. + +### GetTagsAutomaticOk + +`func (o *PackageMove) 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 *PackageMove) SetTagsAutomatic(v map[string]interface{})` + +SetTagsAutomatic sets TagsAutomatic field to given value. + +### HasTagsAutomatic + +`func (o *PackageMove) HasTagsAutomatic() bool` + +HasTagsAutomatic returns a boolean if a field has been set. + ### GetTagsImmutable `func (o *PackageMove) GetTagsImmutable() map[string]interface{}` diff --git a/docs/PackageQuarantine.md b/docs/PackageQuarantine.md index f79c7400..cb887bc1 100644 --- a/docs/PackageQuarantine.md +++ b/docs/PackageQuarantine.md @@ -76,6 +76,7 @@ Name | Type | Description | Notes **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] **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] +**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] @@ -2064,6 +2065,31 @@ SetTags sets Tags field to given value. HasTags returns a boolean if a field has been set. +### GetTagsAutomatic + +`func (o *PackageQuarantine) GetTagsAutomatic() map[string]interface{}` + +GetTagsAutomatic returns the TagsAutomatic field if non-nil, zero value otherwise. + +### GetTagsAutomaticOk + +`func (o *PackageQuarantine) 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 *PackageQuarantine) SetTagsAutomatic(v map[string]interface{})` + +SetTagsAutomatic sets TagsAutomatic field to given value. + +### HasTagsAutomatic + +`func (o *PackageQuarantine) HasTagsAutomatic() bool` + +HasTagsAutomatic returns a boolean if a field has been set. + ### GetTagsImmutable `func (o *PackageQuarantine) GetTagsImmutable() map[string]interface{}` diff --git a/docs/PackageResync.md b/docs/PackageResync.md index 3982b7dc..00553c8f 100644 --- a/docs/PackageResync.md +++ b/docs/PackageResync.md @@ -77,6 +77,7 @@ Name | Type | Description | Notes **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] **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] +**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] @@ -2100,6 +2101,31 @@ SetTags sets Tags field to given value. HasTags returns a boolean if a field has been set. +### GetTagsAutomatic + +`func (o *PackageResync) GetTagsAutomatic() map[string]interface{}` + +GetTagsAutomatic returns the TagsAutomatic field if non-nil, zero value otherwise. + +### GetTagsAutomaticOk + +`func (o *PackageResync) 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 *PackageResync) SetTagsAutomatic(v map[string]interface{})` + +SetTagsAutomatic sets TagsAutomatic field to given value. + +### HasTagsAutomatic + +`func (o *PackageResync) HasTagsAutomatic() bool` + +HasTagsAutomatic returns a boolean if a field has been set. + ### GetTagsImmutable `func (o *PackageResync) GetTagsImmutable() map[string]interface{}` diff --git a/docs/PackageTag.md b/docs/PackageTag.md index 88070def..d89c3297 100644 --- a/docs/PackageTag.md +++ b/docs/PackageTag.md @@ -77,6 +77,7 @@ Name | Type | Description | Notes **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] @@ -2100,6 +2101,31 @@ SetSyncProgress sets SyncProgress field to given value. HasSyncProgress returns a boolean if a field has been set. +### GetTagsAutomatic + +`func (o *PackageTag) GetTagsAutomatic() map[string]interface{}` + +GetTagsAutomatic returns the TagsAutomatic field if non-nil, zero value otherwise. + +### GetTagsAutomaticOk + +`func (o *PackageTag) 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 *PackageTag) SetTagsAutomatic(v map[string]interface{})` + +SetTagsAutomatic sets TagsAutomatic field to given value. + +### HasTagsAutomatic + +`func (o *PackageTag) HasTagsAutomatic() bool` + +HasTagsAutomatic returns a boolean if a field has been set. + ### GetTagsImmutable `func (o *PackageTag) GetTagsImmutable() map[string]interface{}` diff --git a/docs/PackagesApi.md b/docs/PackagesApi.md index 96300d7a..22ce84fa 100644 --- a/docs/PackagesApi.md +++ b/docs/PackagesApi.md @@ -16,6 +16,7 @@ Method | HTTP request | Description [**PackagesScan**](PackagesApi.md#PackagesScan) | **Post** /packages/{owner}/{repo}/{identifier}/scan/ | Schedule a package for scanning. [**PackagesStatus**](PackagesApi.md#PackagesStatus) | **Get** /packages/{owner}/{repo}/{identifier}/status/ | Get the synchronization status for a package. [**PackagesTag**](PackagesApi.md#PackagesTag) | **Post** /packages/{owner}/{repo}/{identifier}/tag/ | Add/Replace/Remove tags for a package. +[**PackagesUpdateLicense**](PackagesApi.md#PackagesUpdateLicense) | **Patch** /packages/{owner}/{repo}/{identifier}/update-license/ | Update the license for a package. [**PackagesUploadAlpine**](PackagesApi.md#PackagesUploadAlpine) | **Post** /packages/{owner}/{repo}/upload/alpine/ | Create a new Alpine package [**PackagesUploadCargo**](PackagesApi.md#PackagesUploadCargo) | **Post** /packages/{owner}/{repo}/upload/cargo/ | Create a new Cargo package [**PackagesUploadCocoapods**](PackagesApi.md#PackagesUploadCocoapods) | **Post** /packages/{owner}/{repo}/upload/cocoapods/ | Create a new CocoaPods package @@ -29,6 +30,7 @@ Method | HTTP request | Description [**PackagesUploadGo**](PackagesApi.md#PackagesUploadGo) | **Post** /packages/{owner}/{repo}/upload/go/ | Create a new Go package [**PackagesUploadHelm**](PackagesApi.md#PackagesUploadHelm) | **Post** /packages/{owner}/{repo}/upload/helm/ | Create a new Helm package [**PackagesUploadHex**](PackagesApi.md#PackagesUploadHex) | **Post** /packages/{owner}/{repo}/upload/hex/ | Create a new Hex package +[**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 [**PackagesUploadNpm**](PackagesApi.md#PackagesUploadNpm) | **Post** /packages/{owner}/{repo}/upload/npm/ | Create a new npm package @@ -54,6 +56,7 @@ Method | HTTP request | Description [**PackagesValidateUploadGo**](PackagesApi.md#PackagesValidateUploadGo) | **Post** /packages/{owner}/{repo}/validate-upload/go/ | Validate parameters for create Go package [**PackagesValidateUploadHelm**](PackagesApi.md#PackagesValidateUploadHelm) | **Post** /packages/{owner}/{repo}/validate-upload/helm/ | Validate parameters for create Helm package [**PackagesValidateUploadHex**](PackagesApi.md#PackagesValidateUploadHex) | **Post** /packages/{owner}/{repo}/validate-upload/hex/ | Validate parameters for create Hex package +[**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 [**PackagesValidateUploadNpm**](PackagesApi.md#PackagesValidateUploadNpm) | **Post** /packages/{owner}/{repo}/validate-upload/npm/ | Validate parameters for create npm package @@ -299,7 +302,7 @@ Name | Type | Description | Notes ## PackagesGroupsList -> PackagesGroupsList200Response PackagesGroupsList(ctx, owner, repo).Page(page).PageSize(pageSize).GroupBy(groupBy).Query(query).Sort(sort).Execute() +> PackagesGroupsList200Response PackagesGroupsList(ctx, owner, repo).Page(page).PageSize(pageSize).GroupBy(groupBy).HideSubcomponents(hideSubcomponents).Query(query).Sort(sort).Execute() Return a list of Package Groups in a repository. @@ -323,12 +326,13 @@ func main() { page := int64(56) // int64 | A page number within the paginated result set. (optional) pageSize := int64(56) // int64 | Number of results to return per page. (optional) groupBy := "groupBy_example" // string | A field to group packages by. Available options: name, backend_kind. (optional) (default to "name") + hideSubcomponents := true // bool | Whether to hide packages which are subcomponents of another package in the results (optional) (default to false) query := "query_example" // string | A search term for querying names, filenames, versions, distributions, architectures, formats, or statuses of packages. (optional) sort := "sort_example" // string | A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name, count, num_downloads, size, last_push, backend_kind. (optional) (default to "name") configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.PackagesApi.PackagesGroupsList(context.Background(), owner, repo).Page(page).PageSize(pageSize).GroupBy(groupBy).Query(query).Sort(sort).Execute() + resp, r, err := apiClient.PackagesApi.PackagesGroupsList(context.Background(), owner, repo).Page(page).PageSize(pageSize).GroupBy(groupBy).HideSubcomponents(hideSubcomponents).Query(query).Sort(sort).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `PackagesApi.PackagesGroupsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -359,6 +363,7 @@ Name | Type | Description | Notes **page** | **int64** | A page number within the paginated result set. | **pageSize** | **int64** | Number of results to return per page. | **groupBy** | **string** | A field to group packages by. Available options: name, backend_kind. | [default to "name"] + **hideSubcomponents** | **bool** | Whether to hide packages which are subcomponents of another package in the results | [default to false] **query** | **string** | A search term for querying names, filenames, versions, distributions, architectures, formats, or statuses of packages. | **sort** | **string** | A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name, count, num_downloads, size, last_push, backend_kind. | [default to "name"] @@ -999,6 +1004,84 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## PackagesUpdateLicense + +> Package PackagesUpdateLicense(ctx, owner, repo, identifier).Data(data).Execute() + +Update the license for a 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 | + identifier := "identifier_example" // string | + data := *openapiclient.NewPackageLicenseRequestPatch() // PackageLicenseRequestPatch | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PackagesApi.PackagesUpdateLicense(context.Background(), owner, repo, identifier).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PackagesApi.PackagesUpdateLicense``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PackagesUpdateLicense`: Package + fmt.Fprintf(os.Stdout, "Response from `PackagesApi.PackagesUpdateLicense`: %v\n", resp) +} +``` + +### 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 apiPackagesUpdateLicenseRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **data** | [**PackageLicenseRequestPatch**](PackageLicenseRequestPatch.md) | | + +### Return type + +[**Package**](Package.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) + + ## PackagesUploadAlpine > AlpinePackageUpload PackagesUploadAlpine(ctx, owner, repo).Data(data).Execute() @@ -1974,6 +2057,81 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## PackagesUploadHuggingface + +> HuggingfacePackageUpload PackagesUploadHuggingface(ctx, owner, repo).Data(data).Execute() + +Create a new HuggingFace 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.NewHuggingfacePackageUploadRequest("PackageFile_example") // HuggingfacePackageUploadRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PackagesApi.PackagesUploadHuggingface(context.Background(), owner, repo).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PackagesApi.PackagesUploadHuggingface``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PackagesUploadHuggingface`: HuggingfacePackageUpload + fmt.Fprintf(os.Stdout, "Response from `PackagesApi.PackagesUploadHuggingface`: %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 apiPackagesUploadHuggingfaceRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **data** | [**HuggingfacePackageUploadRequest**](HuggingfacePackageUploadRequest.md) | | + +### Return type + +[**HuggingfacePackageUpload**](HuggingfacePackageUpload.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) + + ## PackagesUploadLuarocks > LuarocksPackageUpload PackagesUploadLuarocks(ctx, owner, repo).Data(data).Execute() @@ -3823,6 +3981,79 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## PackagesValidateUploadHuggingface + +> PackagesValidateUploadHuggingface(ctx, owner, repo).Data(data).Execute() + +Validate parameters for create HuggingFace 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.NewHuggingfacePackageUploadRequest("PackageFile_example") // HuggingfacePackageUploadRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.PackagesApi.PackagesValidateUploadHuggingface(context.Background(), owner, repo).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PackagesApi.PackagesValidateUploadHuggingface``: %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 apiPackagesValidateUploadHuggingfaceRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **data** | [**HuggingfacePackageUploadRequest**](HuggingfacePackageUploadRequest.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) + + ## PackagesValidateUploadLuarocks > PackagesValidateUploadLuarocks(ctx, owner, repo).Data(data).Execute() diff --git a/docs/PythonPackageUpload.md b/docs/PythonPackageUpload.md index 0d2063e7..169d5112 100644 --- a/docs/PythonPackageUpload.md +++ b/docs/PythonPackageUpload.md @@ -76,6 +76,7 @@ Name | Type | Description | Notes **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] @@ -2074,6 +2075,31 @@ SetSyncProgress sets SyncProgress field to given value. HasSyncProgress returns a boolean if a field has been set. +### GetTagsAutomatic + +`func (o *PythonPackageUpload) GetTagsAutomatic() map[string]interface{}` + +GetTagsAutomatic returns the TagsAutomatic field if non-nil, zero value otherwise. + +### GetTagsAutomaticOk + +`func (o *PythonPackageUpload) 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 *PythonPackageUpload) SetTagsAutomatic(v map[string]interface{})` + +SetTagsAutomatic sets TagsAutomatic field to given value. + +### HasTagsAutomatic + +`func (o *PythonPackageUpload) HasTagsAutomatic() bool` + +HasTagsAutomatic returns a boolean if a field has been set. + ### GetTagsImmutable `func (o *PythonPackageUpload) GetTagsImmutable() map[string]interface{}` diff --git a/docs/RawPackageUpload.md b/docs/RawPackageUpload.md index 3a358537..1857472c 100644 --- a/docs/RawPackageUpload.md +++ b/docs/RawPackageUpload.md @@ -76,6 +76,7 @@ Name | Type | Description | Notes **Summary** | Pointer to **NullableString** | A one-liner synopsis of this package. | [optional] **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] @@ -2074,6 +2075,31 @@ SetSyncProgress sets SyncProgress field to given value. HasSyncProgress returns a boolean if a field has been set. +### GetTagsAutomatic + +`func (o *RawPackageUpload) GetTagsAutomatic() map[string]interface{}` + +GetTagsAutomatic returns the TagsAutomatic field if non-nil, zero value otherwise. + +### GetTagsAutomaticOk + +`func (o *RawPackageUpload) 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 *RawPackageUpload) SetTagsAutomatic(v map[string]interface{})` + +SetTagsAutomatic sets TagsAutomatic field to given value. + +### HasTagsAutomatic + +`func (o *RawPackageUpload) HasTagsAutomatic() bool` + +HasTagsAutomatic returns a boolean if a field has been set. + ### GetTagsImmutable `func (o *RawPackageUpload) GetTagsImmutable() map[string]interface{}` diff --git a/docs/ReposApi.md b/docs/ReposApi.md index bcee2967..e9fe9aa1 100644 --- a/docs/ReposApi.md +++ b/docs/ReposApi.md @@ -43,6 +43,12 @@ Method | HTTP request | Description [**ReposUpstreamComposerPartialUpdate**](ReposApi.md#ReposUpstreamComposerPartialUpdate) | **Patch** /repos/{owner}/{identifier}/upstream/composer/{slug_perm}/ | Partially update a Composer upstream config for this repository. [**ReposUpstreamComposerRead**](ReposApi.md#ReposUpstreamComposerRead) | **Get** /repos/{owner}/{identifier}/upstream/composer/{slug_perm}/ | Retrieve a Composer upstream config for this repository. [**ReposUpstreamComposerUpdate**](ReposApi.md#ReposUpstreamComposerUpdate) | **Put** /repos/{owner}/{identifier}/upstream/composer/{slug_perm}/ | Update a Composer upstream config for this repository. +[**ReposUpstreamCondaCreate**](ReposApi.md#ReposUpstreamCondaCreate) | **Post** /repos/{owner}/{identifier}/upstream/conda/ | Create a Conda upstream config for this repository. +[**ReposUpstreamCondaDelete**](ReposApi.md#ReposUpstreamCondaDelete) | **Delete** /repos/{owner}/{identifier}/upstream/conda/{slug_perm}/ | Delete a Conda upstream config for this repository. +[**ReposUpstreamCondaList**](ReposApi.md#ReposUpstreamCondaList) | **Get** /repos/{owner}/{identifier}/upstream/conda/ | List Conda upstream configs for this repository. +[**ReposUpstreamCondaPartialUpdate**](ReposApi.md#ReposUpstreamCondaPartialUpdate) | **Patch** /repos/{owner}/{identifier}/upstream/conda/{slug_perm}/ | Partially update a Conda upstream config for this repository. +[**ReposUpstreamCondaRead**](ReposApi.md#ReposUpstreamCondaRead) | **Get** /repos/{owner}/{identifier}/upstream/conda/{slug_perm}/ | Retrieve a Conda upstream config for this repository. +[**ReposUpstreamCondaUpdate**](ReposApi.md#ReposUpstreamCondaUpdate) | **Put** /repos/{owner}/{identifier}/upstream/conda/{slug_perm}/ | Update a Conda upstream config for this repository. [**ReposUpstreamCranCreate**](ReposApi.md#ReposUpstreamCranCreate) | **Post** /repos/{owner}/{identifier}/upstream/cran/ | Create a CRAN upstream config for this repository. [**ReposUpstreamCranDelete**](ReposApi.md#ReposUpstreamCranDelete) | **Delete** /repos/{owner}/{identifier}/upstream/cran/{slug_perm}/ | Delete a CRAN upstream config for this repository. [**ReposUpstreamCranList**](ReposApi.md#ReposUpstreamCranList) | **Get** /repos/{owner}/{identifier}/upstream/cran/ | List CRAN upstream configs for this repository. @@ -85,6 +91,12 @@ Method | HTTP request | Description [**ReposUpstreamHexPartialUpdate**](ReposApi.md#ReposUpstreamHexPartialUpdate) | **Patch** /repos/{owner}/{identifier}/upstream/hex/{slug_perm}/ | Partially update a Hex upstream config for this repository. [**ReposUpstreamHexRead**](ReposApi.md#ReposUpstreamHexRead) | **Get** /repos/{owner}/{identifier}/upstream/hex/{slug_perm}/ | Retrieve a Hex upstream config for this repository. [**ReposUpstreamHexUpdate**](ReposApi.md#ReposUpstreamHexUpdate) | **Put** /repos/{owner}/{identifier}/upstream/hex/{slug_perm}/ | Update a Hex upstream config for this repository. +[**ReposUpstreamHuggingfaceCreate**](ReposApi.md#ReposUpstreamHuggingfaceCreate) | **Post** /repos/{owner}/{identifier}/upstream/huggingface/ | Create a HuggingFace upstream config for this repository. +[**ReposUpstreamHuggingfaceDelete**](ReposApi.md#ReposUpstreamHuggingfaceDelete) | **Delete** /repos/{owner}/{identifier}/upstream/huggingface/{slug_perm}/ | Delete a HuggingFace upstream config for this repository. +[**ReposUpstreamHuggingfaceList**](ReposApi.md#ReposUpstreamHuggingfaceList) | **Get** /repos/{owner}/{identifier}/upstream/huggingface/ | List HuggingFace upstream configs for this repository. +[**ReposUpstreamHuggingfacePartialUpdate**](ReposApi.md#ReposUpstreamHuggingfacePartialUpdate) | **Patch** /repos/{owner}/{identifier}/upstream/huggingface/{slug_perm}/ | Partially update a HuggingFace upstream config for this repository. +[**ReposUpstreamHuggingfaceRead**](ReposApi.md#ReposUpstreamHuggingfaceRead) | **Get** /repos/{owner}/{identifier}/upstream/huggingface/{slug_perm}/ | Retrieve a HuggingFace upstream config for this repository. +[**ReposUpstreamHuggingfaceUpdate**](ReposApi.md#ReposUpstreamHuggingfaceUpdate) | **Put** /repos/{owner}/{identifier}/upstream/huggingface/{slug_perm}/ | Update a HuggingFace upstream config for this repository. [**ReposUpstreamMavenCreate**](ReposApi.md#ReposUpstreamMavenCreate) | **Post** /repos/{owner}/{identifier}/upstream/maven/ | Create a Maven upstream config for this repository. [**ReposUpstreamMavenDelete**](ReposApi.md#ReposUpstreamMavenDelete) | **Delete** /repos/{owner}/{identifier}/upstream/maven/{slug_perm}/ | Delete a Maven upstream config for this repository. [**ReposUpstreamMavenList**](ReposApi.md#ReposUpstreamMavenList) | **Get** /repos/{owner}/{identifier}/upstream/maven/ | List Maven upstream configs for this repository. @@ -3038,11 +3050,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ReposUpstreamCranCreate +## ReposUpstreamCondaCreate -> CranUpstream ReposUpstreamCranCreate(ctx, owner, identifier).Data(data).Execute() +> CondaUpstream ReposUpstreamCondaCreate(ctx, owner, identifier).Data(data).Execute() -Create a CRAN upstream config for this repository. +Create a Conda upstream config for this repository. @@ -3061,17 +3073,17 @@ import ( func main() { owner := "owner_example" // string | identifier := "identifier_example" // string | - data := *openapiclient.NewCranUpstreamRequest("Name_example", "UpstreamUrl_example") // CranUpstreamRequest | (optional) + data := *openapiclient.NewCondaUpstreamRequest("Name_example", "UpstreamUrl_example") // CondaUpstreamRequest | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ReposApi.ReposUpstreamCranCreate(context.Background(), owner, identifier).Data(data).Execute() + resp, r, err := apiClient.ReposApi.ReposUpstreamCondaCreate(context.Background(), owner, identifier).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamCranCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamCondaCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ReposUpstreamCranCreate`: CranUpstream - fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamCranCreate`: %v\n", resp) + // response from `ReposUpstreamCondaCreate`: CondaUpstream + fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamCondaCreate`: %v\n", resp) } ``` @@ -3086,18 +3098,18 @@ Name | Type | Description | Notes ### Other Parameters -Other parameters are passed through a pointer to a apiReposUpstreamCranCreateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiReposUpstreamCondaCreateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **data** | [**CranUpstreamRequest**](CranUpstreamRequest.md) | | + **data** | [**CondaUpstreamRequest**](CondaUpstreamRequest.md) | | ### Return type -[**CranUpstream**](CranUpstream.md) +[**CondaUpstream**](CondaUpstream.md) ### Authorization @@ -3113,11 +3125,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ReposUpstreamCranDelete +## ReposUpstreamCondaDelete -> ReposUpstreamCranDelete(ctx, owner, identifier, slugPerm).Execute() +> ReposUpstreamCondaDelete(ctx, owner, identifier, slugPerm).Execute() -Delete a CRAN upstream config for this repository. +Delete a Conda upstream config for this repository. @@ -3140,9 +3152,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.ReposApi.ReposUpstreamCranDelete(context.Background(), owner, identifier, slugPerm).Execute() + r, err := apiClient.ReposApi.ReposUpstreamCondaDelete(context.Background(), owner, identifier, slugPerm).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamCranDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamCondaDelete``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -3160,7 +3172,7 @@ Name | Type | Description | Notes ### Other Parameters -Other parameters are passed through a pointer to a apiReposUpstreamCranDeleteRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiReposUpstreamCondaDeleteRequest struct via the builder pattern Name | Type | Description | Notes @@ -3187,11 +3199,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ReposUpstreamCranList +## ReposUpstreamCondaList -> []CranUpstream ReposUpstreamCranList(ctx, owner, identifier).Page(page).PageSize(pageSize).Execute() +> []CondaUpstream ReposUpstreamCondaList(ctx, owner, identifier).Page(page).PageSize(pageSize).Execute() -List CRAN upstream configs for this repository. +List Conda upstream configs for this repository. @@ -3215,13 +3227,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ReposApi.ReposUpstreamCranList(context.Background(), owner, identifier).Page(page).PageSize(pageSize).Execute() + resp, r, err := apiClient.ReposApi.ReposUpstreamCondaList(context.Background(), owner, identifier).Page(page).PageSize(pageSize).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamCranList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamCondaList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ReposUpstreamCranList`: []CranUpstream - fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamCranList`: %v\n", resp) + // response from `ReposUpstreamCondaList`: []CondaUpstream + fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamCondaList`: %v\n", resp) } ``` @@ -3236,7 +3248,7 @@ Name | Type | Description | Notes ### Other Parameters -Other parameters are passed through a pointer to a apiReposUpstreamCranListRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiReposUpstreamCondaListRequest struct via the builder pattern Name | Type | Description | Notes @@ -3248,7 +3260,7 @@ Name | Type | Description | Notes ### Return type -[**[]CranUpstream**](CranUpstream.md) +[**[]CondaUpstream**](CondaUpstream.md) ### Authorization @@ -3264,11 +3276,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ReposUpstreamCranPartialUpdate +## ReposUpstreamCondaPartialUpdate -> CranUpstream ReposUpstreamCranPartialUpdate(ctx, owner, identifier, slugPerm).Data(data).Execute() +> CondaUpstream ReposUpstreamCondaPartialUpdate(ctx, owner, identifier, slugPerm).Data(data).Execute() -Partially update a CRAN upstream config for this repository. +Partially update a Conda upstream config for this repository. @@ -3288,17 +3300,17 @@ func main() { owner := "owner_example" // string | identifier := "identifier_example" // string | slugPerm := "slugPerm_example" // string | - data := *openapiclient.NewCranUpstreamRequestPatch() // CranUpstreamRequestPatch | (optional) + data := *openapiclient.NewCondaUpstreamRequestPatch() // CondaUpstreamRequestPatch | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ReposApi.ReposUpstreamCranPartialUpdate(context.Background(), owner, identifier, slugPerm).Data(data).Execute() + resp, r, err := apiClient.ReposApi.ReposUpstreamCondaPartialUpdate(context.Background(), owner, identifier, slugPerm).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamCranPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamCondaPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ReposUpstreamCranPartialUpdate`: CranUpstream - fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamCranPartialUpdate`: %v\n", resp) + // response from `ReposUpstreamCondaPartialUpdate`: CondaUpstream + fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamCondaPartialUpdate`: %v\n", resp) } ``` @@ -3314,7 +3326,7 @@ Name | Type | Description | Notes ### Other Parameters -Other parameters are passed through a pointer to a apiReposUpstreamCranPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiReposUpstreamCondaPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes @@ -3322,11 +3334,11 @@ Name | Type | Description | Notes - **data** | [**CranUpstreamRequestPatch**](CranUpstreamRequestPatch.md) | | + **data** | [**CondaUpstreamRequestPatch**](CondaUpstreamRequestPatch.md) | | ### Return type -[**CranUpstream**](CranUpstream.md) +[**CondaUpstream**](CondaUpstream.md) ### Authorization @@ -3342,11 +3354,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ReposUpstreamCranRead +## ReposUpstreamCondaRead -> CranUpstream ReposUpstreamCranRead(ctx, owner, identifier, slugPerm).Execute() +> CondaUpstream ReposUpstreamCondaRead(ctx, owner, identifier, slugPerm).Execute() -Retrieve a CRAN upstream config for this repository. +Retrieve a Conda upstream config for this repository. @@ -3369,13 +3381,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ReposApi.ReposUpstreamCranRead(context.Background(), owner, identifier, slugPerm).Execute() + resp, r, err := apiClient.ReposApi.ReposUpstreamCondaRead(context.Background(), owner, identifier, slugPerm).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamCranRead``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamCondaRead``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ReposUpstreamCranRead`: CranUpstream - fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamCranRead`: %v\n", resp) + // response from `ReposUpstreamCondaRead`: CondaUpstream + fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamCondaRead`: %v\n", resp) } ``` @@ -3391,7 +3403,7 @@ Name | Type | Description | Notes ### Other Parameters -Other parameters are passed through a pointer to a apiReposUpstreamCranReadRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiReposUpstreamCondaReadRequest struct via the builder pattern Name | Type | Description | Notes @@ -3402,7 +3414,7 @@ Name | Type | Description | Notes ### Return type -[**CranUpstream**](CranUpstream.md) +[**CondaUpstream**](CondaUpstream.md) ### Authorization @@ -3418,11 +3430,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ReposUpstreamCranUpdate +## ReposUpstreamCondaUpdate -> CranUpstream ReposUpstreamCranUpdate(ctx, owner, identifier, slugPerm).Data(data).Execute() +> CondaUpstream ReposUpstreamCondaUpdate(ctx, owner, identifier, slugPerm).Data(data).Execute() -Update a CRAN upstream config for this repository. +Update a Conda upstream config for this repository. @@ -3442,17 +3454,17 @@ func main() { owner := "owner_example" // string | identifier := "identifier_example" // string | slugPerm := "slugPerm_example" // string | - data := *openapiclient.NewCranUpstreamRequest("Name_example", "UpstreamUrl_example") // CranUpstreamRequest | (optional) + data := *openapiclient.NewCondaUpstreamRequest("Name_example", "UpstreamUrl_example") // CondaUpstreamRequest | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ReposApi.ReposUpstreamCranUpdate(context.Background(), owner, identifier, slugPerm).Data(data).Execute() + resp, r, err := apiClient.ReposApi.ReposUpstreamCondaUpdate(context.Background(), owner, identifier, slugPerm).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamCranUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamCondaUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ReposUpstreamCranUpdate`: CranUpstream - fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamCranUpdate`: %v\n", resp) + // response from `ReposUpstreamCondaUpdate`: CondaUpstream + fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamCondaUpdate`: %v\n", resp) } ``` @@ -3468,7 +3480,7 @@ Name | Type | Description | Notes ### Other Parameters -Other parameters are passed through a pointer to a apiReposUpstreamCranUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiReposUpstreamCondaUpdateRequest struct via the builder pattern Name | Type | Description | Notes @@ -3476,11 +3488,11 @@ Name | Type | Description | Notes - **data** | [**CranUpstreamRequest**](CranUpstreamRequest.md) | | + **data** | [**CondaUpstreamRequest**](CondaUpstreamRequest.md) | | ### Return type -[**CranUpstream**](CranUpstream.md) +[**CondaUpstream**](CondaUpstream.md) ### Authorization @@ -3496,11 +3508,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ReposUpstreamDartCreate +## ReposUpstreamCranCreate -> DartUpstream ReposUpstreamDartCreate(ctx, owner, identifier).Data(data).Execute() +> CranUpstream ReposUpstreamCranCreate(ctx, owner, identifier).Data(data).Execute() -Create a Dart upstream config for this repository. +Create a CRAN upstream config for this repository. @@ -3519,17 +3531,17 @@ import ( func main() { owner := "owner_example" // string | identifier := "identifier_example" // string | - data := *openapiclient.NewDartUpstreamRequest("Name_example", "UpstreamUrl_example") // DartUpstreamRequest | (optional) + data := *openapiclient.NewCranUpstreamRequest("Name_example", "UpstreamUrl_example") // CranUpstreamRequest | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ReposApi.ReposUpstreamDartCreate(context.Background(), owner, identifier).Data(data).Execute() + resp, r, err := apiClient.ReposApi.ReposUpstreamCranCreate(context.Background(), owner, identifier).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamDartCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamCranCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ReposUpstreamDartCreate`: DartUpstream - fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamDartCreate`: %v\n", resp) + // response from `ReposUpstreamCranCreate`: CranUpstream + fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamCranCreate`: %v\n", resp) } ``` @@ -3544,18 +3556,18 @@ Name | Type | Description | Notes ### Other Parameters -Other parameters are passed through a pointer to a apiReposUpstreamDartCreateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiReposUpstreamCranCreateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **data** | [**DartUpstreamRequest**](DartUpstreamRequest.md) | | + **data** | [**CranUpstreamRequest**](CranUpstreamRequest.md) | | ### Return type -[**DartUpstream**](DartUpstream.md) +[**CranUpstream**](CranUpstream.md) ### Authorization @@ -3571,11 +3583,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ReposUpstreamDartDelete +## ReposUpstreamCranDelete -> ReposUpstreamDartDelete(ctx, owner, identifier, slugPerm).Execute() +> ReposUpstreamCranDelete(ctx, owner, identifier, slugPerm).Execute() -Delete a Dart upstream config for this repository. +Delete a CRAN upstream config for this repository. @@ -3598,9 +3610,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.ReposApi.ReposUpstreamDartDelete(context.Background(), owner, identifier, slugPerm).Execute() + r, err := apiClient.ReposApi.ReposUpstreamCranDelete(context.Background(), owner, identifier, slugPerm).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamDartDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamCranDelete``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -3618,7 +3630,7 @@ Name | Type | Description | Notes ### Other Parameters -Other parameters are passed through a pointer to a apiReposUpstreamDartDeleteRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiReposUpstreamCranDeleteRequest struct via the builder pattern Name | Type | Description | Notes @@ -3645,11 +3657,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ReposUpstreamDartList +## ReposUpstreamCranList -> []DartUpstream ReposUpstreamDartList(ctx, owner, identifier).Page(page).PageSize(pageSize).Execute() +> []CranUpstream ReposUpstreamCranList(ctx, owner, identifier).Page(page).PageSize(pageSize).Execute() -List Dart upstream configs for this repository. +List CRAN upstream configs for this repository. @@ -3673,13 +3685,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ReposApi.ReposUpstreamDartList(context.Background(), owner, identifier).Page(page).PageSize(pageSize).Execute() + resp, r, err := apiClient.ReposApi.ReposUpstreamCranList(context.Background(), owner, identifier).Page(page).PageSize(pageSize).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamDartList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamCranList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ReposUpstreamDartList`: []DartUpstream - fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamDartList`: %v\n", resp) + // response from `ReposUpstreamCranList`: []CranUpstream + fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamCranList`: %v\n", resp) } ``` @@ -3694,7 +3706,7 @@ Name | Type | Description | Notes ### Other Parameters -Other parameters are passed through a pointer to a apiReposUpstreamDartListRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiReposUpstreamCranListRequest struct via the builder pattern Name | Type | Description | Notes @@ -3706,7 +3718,7 @@ Name | Type | Description | Notes ### Return type -[**[]DartUpstream**](DartUpstream.md) +[**[]CranUpstream**](CranUpstream.md) ### Authorization @@ -3722,11 +3734,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ReposUpstreamDartPartialUpdate +## ReposUpstreamCranPartialUpdate -> DartUpstream ReposUpstreamDartPartialUpdate(ctx, owner, identifier, slugPerm).Data(data).Execute() +> CranUpstream ReposUpstreamCranPartialUpdate(ctx, owner, identifier, slugPerm).Data(data).Execute() -Partially update a Dart upstream config for this repository. +Partially update a CRAN upstream config for this repository. @@ -3746,17 +3758,17 @@ func main() { owner := "owner_example" // string | identifier := "identifier_example" // string | slugPerm := "slugPerm_example" // string | - data := *openapiclient.NewDartUpstreamRequestPatch() // DartUpstreamRequestPatch | (optional) + data := *openapiclient.NewCranUpstreamRequestPatch() // CranUpstreamRequestPatch | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ReposApi.ReposUpstreamDartPartialUpdate(context.Background(), owner, identifier, slugPerm).Data(data).Execute() + resp, r, err := apiClient.ReposApi.ReposUpstreamCranPartialUpdate(context.Background(), owner, identifier, slugPerm).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamDartPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamCranPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ReposUpstreamDartPartialUpdate`: DartUpstream - fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamDartPartialUpdate`: %v\n", resp) + // response from `ReposUpstreamCranPartialUpdate`: CranUpstream + fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamCranPartialUpdate`: %v\n", resp) } ``` @@ -3772,7 +3784,7 @@ Name | Type | Description | Notes ### Other Parameters -Other parameters are passed through a pointer to a apiReposUpstreamDartPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiReposUpstreamCranPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes @@ -3780,11 +3792,11 @@ Name | Type | Description | Notes - **data** | [**DartUpstreamRequestPatch**](DartUpstreamRequestPatch.md) | | + **data** | [**CranUpstreamRequestPatch**](CranUpstreamRequestPatch.md) | | ### Return type -[**DartUpstream**](DartUpstream.md) +[**CranUpstream**](CranUpstream.md) ### Authorization @@ -3800,11 +3812,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ReposUpstreamDartRead +## ReposUpstreamCranRead -> DartUpstream ReposUpstreamDartRead(ctx, owner, identifier, slugPerm).Execute() +> CranUpstream ReposUpstreamCranRead(ctx, owner, identifier, slugPerm).Execute() -Retrieve a Dart upstream config for this repository. +Retrieve a CRAN upstream config for this repository. @@ -3827,13 +3839,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ReposApi.ReposUpstreamDartRead(context.Background(), owner, identifier, slugPerm).Execute() + resp, r, err := apiClient.ReposApi.ReposUpstreamCranRead(context.Background(), owner, identifier, slugPerm).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamDartRead``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamCranRead``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ReposUpstreamDartRead`: DartUpstream - fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamDartRead`: %v\n", resp) + // response from `ReposUpstreamCranRead`: CranUpstream + fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamCranRead`: %v\n", resp) } ``` @@ -3849,7 +3861,7 @@ Name | Type | Description | Notes ### Other Parameters -Other parameters are passed through a pointer to a apiReposUpstreamDartReadRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiReposUpstreamCranReadRequest struct via the builder pattern Name | Type | Description | Notes @@ -3860,7 +3872,7 @@ Name | Type | Description | Notes ### Return type -[**DartUpstream**](DartUpstream.md) +[**CranUpstream**](CranUpstream.md) ### Authorization @@ -3876,11 +3888,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ReposUpstreamDartUpdate +## ReposUpstreamCranUpdate -> DartUpstream ReposUpstreamDartUpdate(ctx, owner, identifier, slugPerm).Data(data).Execute() +> CranUpstream ReposUpstreamCranUpdate(ctx, owner, identifier, slugPerm).Data(data).Execute() -Update a Dart upstream config for this repository. +Update a CRAN upstream config for this repository. @@ -3900,17 +3912,17 @@ func main() { owner := "owner_example" // string | identifier := "identifier_example" // string | slugPerm := "slugPerm_example" // string | - data := *openapiclient.NewDartUpstreamRequest("Name_example", "UpstreamUrl_example") // DartUpstreamRequest | (optional) + data := *openapiclient.NewCranUpstreamRequest("Name_example", "UpstreamUrl_example") // CranUpstreamRequest | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ReposApi.ReposUpstreamDartUpdate(context.Background(), owner, identifier, slugPerm).Data(data).Execute() + resp, r, err := apiClient.ReposApi.ReposUpstreamCranUpdate(context.Background(), owner, identifier, slugPerm).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamDartUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamCranUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ReposUpstreamDartUpdate`: DartUpstream - fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamDartUpdate`: %v\n", resp) + // response from `ReposUpstreamCranUpdate`: CranUpstream + fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamCranUpdate`: %v\n", resp) } ``` @@ -3926,7 +3938,7 @@ Name | Type | Description | Notes ### Other Parameters -Other parameters are passed through a pointer to a apiReposUpstreamDartUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiReposUpstreamCranUpdateRequest struct via the builder pattern Name | Type | Description | Notes @@ -3934,11 +3946,11 @@ Name | Type | Description | Notes - **data** | [**DartUpstreamRequest**](DartUpstreamRequest.md) | | + **data** | [**CranUpstreamRequest**](CranUpstreamRequest.md) | | ### Return type -[**DartUpstream**](DartUpstream.md) +[**CranUpstream**](CranUpstream.md) ### Authorization @@ -3954,11 +3966,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ReposUpstreamDebCreate +## ReposUpstreamDartCreate -> DebUpstream ReposUpstreamDebCreate(ctx, owner, identifier).Data(data).Execute() +> DartUpstream ReposUpstreamDartCreate(ctx, owner, identifier).Data(data).Execute() -Create a Debian upstream config for this repository. +Create a Dart upstream config for this repository. @@ -3977,17 +3989,17 @@ import ( func main() { owner := "owner_example" // string | identifier := "identifier_example" // string | - data := *openapiclient.NewDebUpstreamRequest([]string{"DistroVersions_example"}, "Name_example", "UpstreamUrl_example") // DebUpstreamRequest | (optional) + data := *openapiclient.NewDartUpstreamRequest("Name_example", "UpstreamUrl_example") // DartUpstreamRequest | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ReposApi.ReposUpstreamDebCreate(context.Background(), owner, identifier).Data(data).Execute() + resp, r, err := apiClient.ReposApi.ReposUpstreamDartCreate(context.Background(), owner, identifier).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamDebCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamDartCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ReposUpstreamDebCreate`: DebUpstream - fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamDebCreate`: %v\n", resp) + // response from `ReposUpstreamDartCreate`: DartUpstream + fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamDartCreate`: %v\n", resp) } ``` @@ -4002,18 +4014,18 @@ Name | Type | Description | Notes ### Other Parameters -Other parameters are passed through a pointer to a apiReposUpstreamDebCreateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiReposUpstreamDartCreateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **data** | [**DebUpstreamRequest**](DebUpstreamRequest.md) | | + **data** | [**DartUpstreamRequest**](DartUpstreamRequest.md) | | ### Return type -[**DebUpstream**](DebUpstream.md) +[**DartUpstream**](DartUpstream.md) ### Authorization @@ -4029,11 +4041,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ReposUpstreamDebDelete +## ReposUpstreamDartDelete -> ReposUpstreamDebDelete(ctx, owner, identifier, slugPerm).Execute() +> ReposUpstreamDartDelete(ctx, owner, identifier, slugPerm).Execute() -Delete a Debian upstream config for this repository. +Delete a Dart upstream config for this repository. @@ -4056,9 +4068,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.ReposApi.ReposUpstreamDebDelete(context.Background(), owner, identifier, slugPerm).Execute() + r, err := apiClient.ReposApi.ReposUpstreamDartDelete(context.Background(), owner, identifier, slugPerm).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamDebDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamDartDelete``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -4076,7 +4088,7 @@ Name | Type | Description | Notes ### Other Parameters -Other parameters are passed through a pointer to a apiReposUpstreamDebDeleteRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiReposUpstreamDartDeleteRequest struct via the builder pattern Name | Type | Description | Notes @@ -4103,11 +4115,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ReposUpstreamDebList +## ReposUpstreamDartList -> []DebUpstream ReposUpstreamDebList(ctx, owner, identifier).Page(page).PageSize(pageSize).Execute() +> []DartUpstream ReposUpstreamDartList(ctx, owner, identifier).Page(page).PageSize(pageSize).Execute() -List Debian upstream configs for this repository. +List Dart upstream configs for this repository. @@ -4131,13 +4143,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ReposApi.ReposUpstreamDebList(context.Background(), owner, identifier).Page(page).PageSize(pageSize).Execute() + resp, r, err := apiClient.ReposApi.ReposUpstreamDartList(context.Background(), owner, identifier).Page(page).PageSize(pageSize).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamDebList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamDartList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ReposUpstreamDebList`: []DebUpstream - fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamDebList`: %v\n", resp) + // response from `ReposUpstreamDartList`: []DartUpstream + fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamDartList`: %v\n", resp) } ``` @@ -4152,7 +4164,7 @@ Name | Type | Description | Notes ### Other Parameters -Other parameters are passed through a pointer to a apiReposUpstreamDebListRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiReposUpstreamDartListRequest struct via the builder pattern Name | Type | Description | Notes @@ -4164,7 +4176,7 @@ Name | Type | Description | Notes ### Return type -[**[]DebUpstream**](DebUpstream.md) +[**[]DartUpstream**](DartUpstream.md) ### Authorization @@ -4180,11 +4192,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ReposUpstreamDebPartialUpdate +## ReposUpstreamDartPartialUpdate -> DebUpstream ReposUpstreamDebPartialUpdate(ctx, owner, identifier, slugPerm).Data(data).Execute() +> DartUpstream ReposUpstreamDartPartialUpdate(ctx, owner, identifier, slugPerm).Data(data).Execute() -Partially update a Debian upstream config for this repository. +Partially update a Dart upstream config for this repository. @@ -4204,17 +4216,17 @@ func main() { owner := "owner_example" // string | identifier := "identifier_example" // string | slugPerm := "slugPerm_example" // string | - data := *openapiclient.NewDebUpstreamRequestPatch() // DebUpstreamRequestPatch | (optional) + data := *openapiclient.NewDartUpstreamRequestPatch() // DartUpstreamRequestPatch | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ReposApi.ReposUpstreamDebPartialUpdate(context.Background(), owner, identifier, slugPerm).Data(data).Execute() + resp, r, err := apiClient.ReposApi.ReposUpstreamDartPartialUpdate(context.Background(), owner, identifier, slugPerm).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamDebPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamDartPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ReposUpstreamDebPartialUpdate`: DebUpstream - fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamDebPartialUpdate`: %v\n", resp) + // response from `ReposUpstreamDartPartialUpdate`: DartUpstream + fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamDartPartialUpdate`: %v\n", resp) } ``` @@ -4230,7 +4242,7 @@ Name | Type | Description | Notes ### Other Parameters -Other parameters are passed through a pointer to a apiReposUpstreamDebPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiReposUpstreamDartPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes @@ -4238,11 +4250,11 @@ Name | Type | Description | Notes - **data** | [**DebUpstreamRequestPatch**](DebUpstreamRequestPatch.md) | | + **data** | [**DartUpstreamRequestPatch**](DartUpstreamRequestPatch.md) | | ### Return type -[**DebUpstream**](DebUpstream.md) +[**DartUpstream**](DartUpstream.md) ### Authorization @@ -4258,11 +4270,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ReposUpstreamDebRead +## ReposUpstreamDartRead -> DebUpstream ReposUpstreamDebRead(ctx, owner, identifier, slugPerm).Execute() +> DartUpstream ReposUpstreamDartRead(ctx, owner, identifier, slugPerm).Execute() -Retrieve a Debian upstream config for this repository. +Retrieve a Dart upstream config for this repository. @@ -4285,12 +4297,470 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ReposApi.ReposUpstreamDebRead(context.Background(), owner, identifier, slugPerm).Execute() + resp, r, err := apiClient.ReposApi.ReposUpstreamDartRead(context.Background(), owner, identifier, slugPerm).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamDebRead``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamDartRead``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ReposUpstreamDebRead`: DebUpstream + // response from `ReposUpstreamDartRead`: DartUpstream + fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamDartRead`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**owner** | **string** | | +**identifier** | **string** | | +**slugPerm** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReposUpstreamDartReadRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + +[**DartUpstream**](DartUpstream.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) + + +## ReposUpstreamDartUpdate + +> DartUpstream ReposUpstreamDartUpdate(ctx, owner, identifier, slugPerm).Data(data).Execute() + +Update a Dart upstream config for this repository. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/cloudsmith-io/cloudsmith-api-go" +) + +func main() { + owner := "owner_example" // string | + identifier := "identifier_example" // string | + slugPerm := "slugPerm_example" // string | + data := *openapiclient.NewDartUpstreamRequest("Name_example", "UpstreamUrl_example") // DartUpstreamRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ReposApi.ReposUpstreamDartUpdate(context.Background(), owner, identifier, slugPerm).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamDartUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReposUpstreamDartUpdate`: DartUpstream + fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamDartUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**owner** | **string** | | +**identifier** | **string** | | +**slugPerm** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReposUpstreamDartUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **data** | [**DartUpstreamRequest**](DartUpstreamRequest.md) | | + +### Return type + +[**DartUpstream**](DartUpstream.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) + + +## ReposUpstreamDebCreate + +> DebUpstream ReposUpstreamDebCreate(ctx, owner, identifier).Data(data).Execute() + +Create a Debian upstream config for this repository. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/cloudsmith-io/cloudsmith-api-go" +) + +func main() { + owner := "owner_example" // string | + identifier := "identifier_example" // string | + data := *openapiclient.NewDebUpstreamRequest([]string{"DistroVersions_example"}, "Name_example", "UpstreamUrl_example") // DebUpstreamRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ReposApi.ReposUpstreamDebCreate(context.Background(), owner, identifier).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamDebCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReposUpstreamDebCreate`: DebUpstream + fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamDebCreate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**owner** | **string** | | +**identifier** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReposUpstreamDebCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **data** | [**DebUpstreamRequest**](DebUpstreamRequest.md) | | + +### Return type + +[**DebUpstream**](DebUpstream.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) + + +## ReposUpstreamDebDelete + +> ReposUpstreamDebDelete(ctx, owner, identifier, slugPerm).Execute() + +Delete a Debian upstream config for this repository. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/cloudsmith-io/cloudsmith-api-go" +) + +func main() { + owner := "owner_example" // string | + identifier := "identifier_example" // string | + slugPerm := "slugPerm_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ReposApi.ReposUpstreamDebDelete(context.Background(), owner, identifier, slugPerm).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamDebDelete``: %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** | | +**identifier** | **string** | | +**slugPerm** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReposUpstreamDebDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + + (empty response body) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReposUpstreamDebList + +> []DebUpstream ReposUpstreamDebList(ctx, owner, identifier).Page(page).PageSize(pageSize).Execute() + +List Debian upstream configs for this repository. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/cloudsmith-io/cloudsmith-api-go" +) + +func main() { + owner := "owner_example" // string | + identifier := "identifier_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) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ReposApi.ReposUpstreamDebList(context.Background(), owner, identifier).Page(page).PageSize(pageSize).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamDebList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReposUpstreamDebList`: []DebUpstream + fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamDebList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**owner** | **string** | | +**identifier** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReposUpstreamDebListRequest 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. | + +### Return type + +[**[]DebUpstream**](DebUpstream.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) + + +## ReposUpstreamDebPartialUpdate + +> DebUpstream ReposUpstreamDebPartialUpdate(ctx, owner, identifier, slugPerm).Data(data).Execute() + +Partially update a Debian upstream config for this repository. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/cloudsmith-io/cloudsmith-api-go" +) + +func main() { + owner := "owner_example" // string | + identifier := "identifier_example" // string | + slugPerm := "slugPerm_example" // string | + data := *openapiclient.NewDebUpstreamRequestPatch() // DebUpstreamRequestPatch | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ReposApi.ReposUpstreamDebPartialUpdate(context.Background(), owner, identifier, slugPerm).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamDebPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReposUpstreamDebPartialUpdate`: DebUpstream + fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamDebPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**owner** | **string** | | +**identifier** | **string** | | +**slugPerm** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReposUpstreamDebPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **data** | [**DebUpstreamRequestPatch**](DebUpstreamRequestPatch.md) | | + +### Return type + +[**DebUpstream**](DebUpstream.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) + + +## ReposUpstreamDebRead + +> DebUpstream ReposUpstreamDebRead(ctx, owner, identifier, slugPerm).Execute() + +Retrieve a Debian upstream config for this repository. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/cloudsmith-io/cloudsmith-api-go" +) + +func main() { + owner := "owner_example" // string | + identifier := "identifier_example" // string | + slugPerm := "slugPerm_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ReposApi.ReposUpstreamDebRead(context.Background(), owner, identifier, slugPerm).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamDebRead``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReposUpstreamDebRead`: DebUpstream fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamDebRead`: %v\n", resp) } ``` @@ -4307,7 +4777,388 @@ Name | Type | Description | Notes ### Other Parameters -Other parameters are passed through a pointer to a apiReposUpstreamDebReadRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiReposUpstreamDebReadRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + +[**DebUpstream**](DebUpstream.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) + + +## ReposUpstreamDebUpdate + +> DebUpstream ReposUpstreamDebUpdate(ctx, owner, identifier, slugPerm).Data(data).Execute() + +Update a Debian upstream config for this repository. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/cloudsmith-io/cloudsmith-api-go" +) + +func main() { + owner := "owner_example" // string | + identifier := "identifier_example" // string | + slugPerm := "slugPerm_example" // string | + data := *openapiclient.NewDebUpstreamRequest([]string{"DistroVersions_example"}, "Name_example", "UpstreamUrl_example") // DebUpstreamRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ReposApi.ReposUpstreamDebUpdate(context.Background(), owner, identifier, slugPerm).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamDebUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReposUpstreamDebUpdate`: DebUpstream + fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamDebUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**owner** | **string** | | +**identifier** | **string** | | +**slugPerm** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReposUpstreamDebUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **data** | [**DebUpstreamRequest**](DebUpstreamRequest.md) | | + +### Return type + +[**DebUpstream**](DebUpstream.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) + + +## ReposUpstreamDockerCreate + +> DockerUpstream ReposUpstreamDockerCreate(ctx, owner, identifier).Data(data).Execute() + +Create a Docker upstream config for this repository. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/cloudsmith-io/cloudsmith-api-go" +) + +func main() { + owner := "owner_example" // string | + identifier := "identifier_example" // string | + data := *openapiclient.NewDockerUpstreamRequest("Name_example", "UpstreamUrl_example") // DockerUpstreamRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ReposApi.ReposUpstreamDockerCreate(context.Background(), owner, identifier).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamDockerCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReposUpstreamDockerCreate`: DockerUpstream + fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamDockerCreate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**owner** | **string** | | +**identifier** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReposUpstreamDockerCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **data** | [**DockerUpstreamRequest**](DockerUpstreamRequest.md) | | + +### Return type + +[**DockerUpstream**](DockerUpstream.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) + + +## ReposUpstreamDockerDelete + +> ReposUpstreamDockerDelete(ctx, owner, identifier, slugPerm).Execute() + +Delete a Docker upstream config for this repository. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/cloudsmith-io/cloudsmith-api-go" +) + +func main() { + owner := "owner_example" // string | + identifier := "identifier_example" // string | + slugPerm := "slugPerm_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ReposApi.ReposUpstreamDockerDelete(context.Background(), owner, identifier, slugPerm).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamDockerDelete``: %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** | | +**identifier** | **string** | | +**slugPerm** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReposUpstreamDockerDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + + (empty response body) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReposUpstreamDockerList + +> []DockerUpstream ReposUpstreamDockerList(ctx, owner, identifier).Page(page).PageSize(pageSize).Execute() + +List Docker upstream configs for this repository. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/cloudsmith-io/cloudsmith-api-go" +) + +func main() { + owner := "owner_example" // string | + identifier := "identifier_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) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ReposApi.ReposUpstreamDockerList(context.Background(), owner, identifier).Page(page).PageSize(pageSize).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamDockerList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReposUpstreamDockerList`: []DockerUpstream + fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamDockerList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**owner** | **string** | | +**identifier** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReposUpstreamDockerListRequest 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. | + +### Return type + +[**[]DockerUpstream**](DockerUpstream.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) + + +## ReposUpstreamDockerPartialUpdate + +> DockerUpstream ReposUpstreamDockerPartialUpdate(ctx, owner, identifier, slugPerm).Data(data).Execute() + +Partially update a Docker upstream config for this repository. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/cloudsmith-io/cloudsmith-api-go" +) + +func main() { + owner := "owner_example" // string | + identifier := "identifier_example" // string | + slugPerm := "slugPerm_example" // string | + data := *openapiclient.NewDockerUpstreamRequestPatch() // DockerUpstreamRequestPatch | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ReposApi.ReposUpstreamDockerPartialUpdate(context.Background(), owner, identifier, slugPerm).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamDockerPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReposUpstreamDockerPartialUpdate`: DockerUpstream + fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamDockerPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**owner** | **string** | | +**identifier** | **string** | | +**slugPerm** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReposUpstreamDockerPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes @@ -4315,10 +5166,11 @@ Name | Type | Description | Notes + **data** | [**DockerUpstreamRequestPatch**](DockerUpstreamRequestPatch.md) | | ### Return type -[**DebUpstream**](DebUpstream.md) +[**DockerUpstream**](DockerUpstream.md) ### Authorization @@ -4326,7 +5178,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -4334,11 +5186,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ReposUpstreamDebUpdate +## ReposUpstreamDockerRead -> DebUpstream ReposUpstreamDebUpdate(ctx, owner, identifier, slugPerm).Data(data).Execute() +> DockerUpstream ReposUpstreamDockerRead(ctx, owner, identifier, slugPerm).Execute() -Update a Debian upstream config for this repository. +Retrieve a Docker upstream config for this repository. @@ -4358,17 +5210,16 @@ func main() { owner := "owner_example" // string | identifier := "identifier_example" // string | slugPerm := "slugPerm_example" // string | - data := *openapiclient.NewDebUpstreamRequest([]string{"DistroVersions_example"}, "Name_example", "UpstreamUrl_example") // DebUpstreamRequest | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ReposApi.ReposUpstreamDebUpdate(context.Background(), owner, identifier, slugPerm).Data(data).Execute() + resp, r, err := apiClient.ReposApi.ReposUpstreamDockerRead(context.Background(), owner, identifier, slugPerm).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamDebUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamDockerRead``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ReposUpstreamDebUpdate`: DebUpstream - fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamDebUpdate`: %v\n", resp) + // response from `ReposUpstreamDockerRead`: DockerUpstream + fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamDockerRead`: %v\n", resp) } ``` @@ -4384,7 +5235,7 @@ Name | Type | Description | Notes ### Other Parameters -Other parameters are passed through a pointer to a apiReposUpstreamDebUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiReposUpstreamDockerReadRequest struct via the builder pattern Name | Type | Description | Notes @@ -4392,11 +5243,10 @@ Name | Type | Description | Notes - **data** | [**DebUpstreamRequest**](DebUpstreamRequest.md) | | ### Return type -[**DebUpstream**](DebUpstream.md) +[**DockerUpstream**](DockerUpstream.md) ### Authorization @@ -4404,7 +5254,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: application/json +- **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -4412,11 +5262,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ReposUpstreamDockerCreate +## ReposUpstreamDockerUpdate -> DockerUpstream ReposUpstreamDockerCreate(ctx, owner, identifier).Data(data).Execute() +> DockerUpstream ReposUpstreamDockerUpdate(ctx, owner, identifier, slugPerm).Data(data).Execute() -Create a Docker upstream config for this repository. +Update a Docker upstream config for this repository. @@ -4435,17 +5285,18 @@ import ( func main() { owner := "owner_example" // string | identifier := "identifier_example" // string | + slugPerm := "slugPerm_example" // string | data := *openapiclient.NewDockerUpstreamRequest("Name_example", "UpstreamUrl_example") // DockerUpstreamRequest | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ReposApi.ReposUpstreamDockerCreate(context.Background(), owner, identifier).Data(data).Execute() + resp, r, err := apiClient.ReposApi.ReposUpstreamDockerUpdate(context.Background(), owner, identifier, slugPerm).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamDockerCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamDockerUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ReposUpstreamDockerCreate`: DockerUpstream - fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamDockerCreate`: %v\n", resp) + // response from `ReposUpstreamDockerUpdate`: DockerUpstream + fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamDockerUpdate`: %v\n", resp) } ``` @@ -4457,16 +5308,18 @@ Name | Type | Description | Notes **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **owner** | **string** | | **identifier** | **string** | | +**slugPerm** | **string** | | ### Other Parameters -Other parameters are passed through a pointer to a apiReposUpstreamDockerCreateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiReposUpstreamDockerUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **data** | [**DockerUpstreamRequest**](DockerUpstreamRequest.md) | | ### Return type @@ -4487,11 +5340,86 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ReposUpstreamDockerDelete +## ReposUpstreamGoCreate -> ReposUpstreamDockerDelete(ctx, owner, identifier, slugPerm).Execute() +> GoUpstream ReposUpstreamGoCreate(ctx, owner, identifier).Data(data).Execute() -Delete a Docker upstream config for this repository. +Create a Go upstream config for this repository. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/cloudsmith-io/cloudsmith-api-go" +) + +func main() { + owner := "owner_example" // string | + identifier := "identifier_example" // string | + data := *openapiclient.NewGoUpstreamRequest("Name_example", "UpstreamUrl_example") // GoUpstreamRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ReposApi.ReposUpstreamGoCreate(context.Background(), owner, identifier).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamGoCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReposUpstreamGoCreate`: GoUpstream + fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamGoCreate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**owner** | **string** | | +**identifier** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReposUpstreamGoCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **data** | [**GoUpstreamRequest**](GoUpstreamRequest.md) | | + +### Return type + +[**GoUpstream**](GoUpstream.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) + + +## ReposUpstreamGoDelete + +> ReposUpstreamGoDelete(ctx, owner, identifier, slugPerm).Execute() + +Delete a Go upstream config for this repository. @@ -4514,9 +5442,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.ReposApi.ReposUpstreamDockerDelete(context.Background(), owner, identifier, slugPerm).Execute() + r, err := apiClient.ReposApi.ReposUpstreamGoDelete(context.Background(), owner, identifier, slugPerm).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamDockerDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamGoDelete``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -4534,7 +5462,7 @@ Name | Type | Description | Notes ### Other Parameters -Other parameters are passed through a pointer to a apiReposUpstreamDockerDeleteRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiReposUpstreamGoDeleteRequest struct via the builder pattern Name | Type | Description | Notes @@ -4561,11 +5489,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ReposUpstreamDockerList +## ReposUpstreamGoList -> []DockerUpstream ReposUpstreamDockerList(ctx, owner, identifier).Page(page).PageSize(pageSize).Execute() +> []GoUpstream ReposUpstreamGoList(ctx, owner, identifier).Page(page).PageSize(pageSize).Execute() -List Docker upstream configs for this repository. +List Go upstream configs for this repository. @@ -4589,13 +5517,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ReposApi.ReposUpstreamDockerList(context.Background(), owner, identifier).Page(page).PageSize(pageSize).Execute() + resp, r, err := apiClient.ReposApi.ReposUpstreamGoList(context.Background(), owner, identifier).Page(page).PageSize(pageSize).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamDockerList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamGoList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ReposUpstreamDockerList`: []DockerUpstream - fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamDockerList`: %v\n", resp) + // response from `ReposUpstreamGoList`: []GoUpstream + fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamGoList`: %v\n", resp) } ``` @@ -4610,7 +5538,7 @@ Name | Type | Description | Notes ### Other Parameters -Other parameters are passed through a pointer to a apiReposUpstreamDockerListRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiReposUpstreamGoListRequest struct via the builder pattern Name | Type | Description | Notes @@ -4622,7 +5550,7 @@ Name | Type | Description | Notes ### Return type -[**[]DockerUpstream**](DockerUpstream.md) +[**[]GoUpstream**](GoUpstream.md) ### Authorization @@ -4638,11 +5566,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ReposUpstreamDockerPartialUpdate +## ReposUpstreamGoPartialUpdate -> DockerUpstream ReposUpstreamDockerPartialUpdate(ctx, owner, identifier, slugPerm).Data(data).Execute() +> GoUpstream ReposUpstreamGoPartialUpdate(ctx, owner, identifier, slugPerm).Data(data).Execute() -Partially update a Docker upstream config for this repository. +Partially update a Go upstream config for this repository. @@ -4662,17 +5590,17 @@ func main() { owner := "owner_example" // string | identifier := "identifier_example" // string | slugPerm := "slugPerm_example" // string | - data := *openapiclient.NewDockerUpstreamRequestPatch() // DockerUpstreamRequestPatch | (optional) + data := *openapiclient.NewGoUpstreamRequestPatch() // GoUpstreamRequestPatch | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ReposApi.ReposUpstreamDockerPartialUpdate(context.Background(), owner, identifier, slugPerm).Data(data).Execute() + resp, r, err := apiClient.ReposApi.ReposUpstreamGoPartialUpdate(context.Background(), owner, identifier, slugPerm).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamDockerPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamGoPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ReposUpstreamDockerPartialUpdate`: DockerUpstream - fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamDockerPartialUpdate`: %v\n", resp) + // response from `ReposUpstreamGoPartialUpdate`: GoUpstream + fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamGoPartialUpdate`: %v\n", resp) } ``` @@ -4688,7 +5616,7 @@ Name | Type | Description | Notes ### Other Parameters -Other parameters are passed through a pointer to a apiReposUpstreamDockerPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiReposUpstreamGoPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes @@ -4696,11 +5624,11 @@ Name | Type | Description | Notes - **data** | [**DockerUpstreamRequestPatch**](DockerUpstreamRequestPatch.md) | | + **data** | [**GoUpstreamRequestPatch**](GoUpstreamRequestPatch.md) | | ### Return type -[**DockerUpstream**](DockerUpstream.md) +[**GoUpstream**](GoUpstream.md) ### Authorization @@ -4716,11 +5644,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ReposUpstreamDockerRead +## ReposUpstreamGoRead -> DockerUpstream ReposUpstreamDockerRead(ctx, owner, identifier, slugPerm).Execute() +> GoUpstream ReposUpstreamGoRead(ctx, owner, identifier, slugPerm).Execute() -Retrieve a Docker upstream config for this repository. +Retrieve a Go upstream config for this repository. @@ -4743,13 +5671,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ReposApi.ReposUpstreamDockerRead(context.Background(), owner, identifier, slugPerm).Execute() + resp, r, err := apiClient.ReposApi.ReposUpstreamGoRead(context.Background(), owner, identifier, slugPerm).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamDockerRead``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamGoRead``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ReposUpstreamDockerRead`: DockerUpstream - fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamDockerRead`: %v\n", resp) + // response from `ReposUpstreamGoRead`: GoUpstream + fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamGoRead`: %v\n", resp) } ``` @@ -4765,7 +5693,7 @@ Name | Type | Description | Notes ### Other Parameters -Other parameters are passed through a pointer to a apiReposUpstreamDockerReadRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiReposUpstreamGoReadRequest struct via the builder pattern Name | Type | Description | Notes @@ -4776,7 +5704,7 @@ Name | Type | Description | Notes ### Return type -[**DockerUpstream**](DockerUpstream.md) +[**GoUpstream**](GoUpstream.md) ### Authorization @@ -4792,11 +5720,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ReposUpstreamDockerUpdate +## ReposUpstreamGoUpdate -> DockerUpstream ReposUpstreamDockerUpdate(ctx, owner, identifier, slugPerm).Data(data).Execute() +> GoUpstream ReposUpstreamGoUpdate(ctx, owner, identifier, slugPerm).Data(data).Execute() -Update a Docker upstream config for this repository. +Update a Go upstream config for this repository. @@ -4816,17 +5744,17 @@ func main() { owner := "owner_example" // string | identifier := "identifier_example" // string | slugPerm := "slugPerm_example" // string | - data := *openapiclient.NewDockerUpstreamRequest("Name_example", "UpstreamUrl_example") // DockerUpstreamRequest | (optional) + data := *openapiclient.NewGoUpstreamRequest("Name_example", "UpstreamUrl_example") // GoUpstreamRequest | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ReposApi.ReposUpstreamDockerUpdate(context.Background(), owner, identifier, slugPerm).Data(data).Execute() + resp, r, err := apiClient.ReposApi.ReposUpstreamGoUpdate(context.Background(), owner, identifier, slugPerm).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamDockerUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamGoUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ReposUpstreamDockerUpdate`: DockerUpstream - fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamDockerUpdate`: %v\n", resp) + // response from `ReposUpstreamGoUpdate`: GoUpstream + fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamGoUpdate`: %v\n", resp) } ``` @@ -4842,7 +5770,7 @@ Name | Type | Description | Notes ### Other Parameters -Other parameters are passed through a pointer to a apiReposUpstreamDockerUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiReposUpstreamGoUpdateRequest struct via the builder pattern Name | Type | Description | Notes @@ -4850,11 +5778,11 @@ Name | Type | Description | Notes - **data** | [**DockerUpstreamRequest**](DockerUpstreamRequest.md) | | + **data** | [**GoUpstreamRequest**](GoUpstreamRequest.md) | | ### Return type -[**DockerUpstream**](DockerUpstream.md) +[**GoUpstream**](GoUpstream.md) ### Authorization @@ -4870,11 +5798,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ReposUpstreamGoCreate +## ReposUpstreamHelmCreate -> GoUpstream ReposUpstreamGoCreate(ctx, owner, identifier).Data(data).Execute() +> HelmUpstream ReposUpstreamHelmCreate(ctx, owner, identifier).Data(data).Execute() -Create a Go upstream config for this repository. +Create a Helm upstream config for this repository. @@ -4893,17 +5821,17 @@ import ( func main() { owner := "owner_example" // string | identifier := "identifier_example" // string | - data := *openapiclient.NewGoUpstreamRequest("Name_example", "UpstreamUrl_example") // GoUpstreamRequest | (optional) + data := *openapiclient.NewHelmUpstreamRequest("Name_example", "UpstreamUrl_example") // HelmUpstreamRequest | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ReposApi.ReposUpstreamGoCreate(context.Background(), owner, identifier).Data(data).Execute() + resp, r, err := apiClient.ReposApi.ReposUpstreamHelmCreate(context.Background(), owner, identifier).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamGoCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamHelmCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ReposUpstreamGoCreate`: GoUpstream - fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamGoCreate`: %v\n", resp) + // response from `ReposUpstreamHelmCreate`: HelmUpstream + fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamHelmCreate`: %v\n", resp) } ``` @@ -4918,18 +5846,18 @@ Name | Type | Description | Notes ### Other Parameters -Other parameters are passed through a pointer to a apiReposUpstreamGoCreateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiReposUpstreamHelmCreateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **data** | [**GoUpstreamRequest**](GoUpstreamRequest.md) | | + **data** | [**HelmUpstreamRequest**](HelmUpstreamRequest.md) | | ### Return type -[**GoUpstream**](GoUpstream.md) +[**HelmUpstream**](HelmUpstream.md) ### Authorization @@ -4945,11 +5873,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ReposUpstreamGoDelete +## ReposUpstreamHelmDelete -> ReposUpstreamGoDelete(ctx, owner, identifier, slugPerm).Execute() +> ReposUpstreamHelmDelete(ctx, owner, identifier, slugPerm).Execute() -Delete a Go upstream config for this repository. +Delete a Helm upstream config for this repository. @@ -4972,9 +5900,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.ReposApi.ReposUpstreamGoDelete(context.Background(), owner, identifier, slugPerm).Execute() + r, err := apiClient.ReposApi.ReposUpstreamHelmDelete(context.Background(), owner, identifier, slugPerm).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamGoDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamHelmDelete``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -4992,7 +5920,7 @@ Name | Type | Description | Notes ### Other Parameters -Other parameters are passed through a pointer to a apiReposUpstreamGoDeleteRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiReposUpstreamHelmDeleteRequest struct via the builder pattern Name | Type | Description | Notes @@ -5019,11 +5947,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ReposUpstreamGoList +## ReposUpstreamHelmList -> []GoUpstream ReposUpstreamGoList(ctx, owner, identifier).Page(page).PageSize(pageSize).Execute() +> []HelmUpstream ReposUpstreamHelmList(ctx, owner, identifier).Page(page).PageSize(pageSize).Execute() -List Go upstream configs for this repository. +List Helm upstream configs for this repository. @@ -5047,13 +5975,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ReposApi.ReposUpstreamGoList(context.Background(), owner, identifier).Page(page).PageSize(pageSize).Execute() + resp, r, err := apiClient.ReposApi.ReposUpstreamHelmList(context.Background(), owner, identifier).Page(page).PageSize(pageSize).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamGoList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamHelmList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ReposUpstreamGoList`: []GoUpstream - fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamGoList`: %v\n", resp) + // response from `ReposUpstreamHelmList`: []HelmUpstream + fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamHelmList`: %v\n", resp) } ``` @@ -5068,7 +5996,7 @@ Name | Type | Description | Notes ### Other Parameters -Other parameters are passed through a pointer to a apiReposUpstreamGoListRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiReposUpstreamHelmListRequest struct via the builder pattern Name | Type | Description | Notes @@ -5080,7 +6008,7 @@ Name | Type | Description | Notes ### Return type -[**[]GoUpstream**](GoUpstream.md) +[**[]HelmUpstream**](HelmUpstream.md) ### Authorization @@ -5096,11 +6024,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ReposUpstreamGoPartialUpdate +## ReposUpstreamHelmPartialUpdate -> GoUpstream ReposUpstreamGoPartialUpdate(ctx, owner, identifier, slugPerm).Data(data).Execute() +> HelmUpstream ReposUpstreamHelmPartialUpdate(ctx, owner, identifier, slugPerm).Data(data).Execute() -Partially update a Go upstream config for this repository. +Partially update a Helm upstream config for this repository. @@ -5120,17 +6048,17 @@ func main() { owner := "owner_example" // string | identifier := "identifier_example" // string | slugPerm := "slugPerm_example" // string | - data := *openapiclient.NewGoUpstreamRequestPatch() // GoUpstreamRequestPatch | (optional) + data := *openapiclient.NewHelmUpstreamRequestPatch() // HelmUpstreamRequestPatch | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ReposApi.ReposUpstreamGoPartialUpdate(context.Background(), owner, identifier, slugPerm).Data(data).Execute() + resp, r, err := apiClient.ReposApi.ReposUpstreamHelmPartialUpdate(context.Background(), owner, identifier, slugPerm).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamGoPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamHelmPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ReposUpstreamGoPartialUpdate`: GoUpstream - fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamGoPartialUpdate`: %v\n", resp) + // response from `ReposUpstreamHelmPartialUpdate`: HelmUpstream + fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamHelmPartialUpdate`: %v\n", resp) } ``` @@ -5146,7 +6074,7 @@ Name | Type | Description | Notes ### Other Parameters -Other parameters are passed through a pointer to a apiReposUpstreamGoPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiReposUpstreamHelmPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes @@ -5154,11 +6082,11 @@ Name | Type | Description | Notes - **data** | [**GoUpstreamRequestPatch**](GoUpstreamRequestPatch.md) | | + **data** | [**HelmUpstreamRequestPatch**](HelmUpstreamRequestPatch.md) | | ### Return type -[**GoUpstream**](GoUpstream.md) +[**HelmUpstream**](HelmUpstream.md) ### Authorization @@ -5174,11 +6102,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ReposUpstreamGoRead +## ReposUpstreamHelmRead -> GoUpstream ReposUpstreamGoRead(ctx, owner, identifier, slugPerm).Execute() +> HelmUpstream ReposUpstreamHelmRead(ctx, owner, identifier, slugPerm).Execute() -Retrieve a Go upstream config for this repository. +Retrieve a Helm upstream config for this repository. @@ -5201,13 +6129,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ReposApi.ReposUpstreamGoRead(context.Background(), owner, identifier, slugPerm).Execute() + resp, r, err := apiClient.ReposApi.ReposUpstreamHelmRead(context.Background(), owner, identifier, slugPerm).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamGoRead``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamHelmRead``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ReposUpstreamGoRead`: GoUpstream - fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamGoRead`: %v\n", resp) + // response from `ReposUpstreamHelmRead`: HelmUpstream + fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamHelmRead`: %v\n", resp) } ``` @@ -5223,7 +6151,7 @@ Name | Type | Description | Notes ### Other Parameters -Other parameters are passed through a pointer to a apiReposUpstreamGoReadRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiReposUpstreamHelmReadRequest struct via the builder pattern Name | Type | Description | Notes @@ -5234,7 +6162,7 @@ Name | Type | Description | Notes ### Return type -[**GoUpstream**](GoUpstream.md) +[**HelmUpstream**](HelmUpstream.md) ### Authorization @@ -5250,11 +6178,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ReposUpstreamGoUpdate +## ReposUpstreamHelmUpdate -> GoUpstream ReposUpstreamGoUpdate(ctx, owner, identifier, slugPerm).Data(data).Execute() +> HelmUpstream ReposUpstreamHelmUpdate(ctx, owner, identifier, slugPerm).Data(data).Execute() -Update a Go upstream config for this repository. +Update a Helm upstream config for this repository. @@ -5274,17 +6202,17 @@ func main() { owner := "owner_example" // string | identifier := "identifier_example" // string | slugPerm := "slugPerm_example" // string | - data := *openapiclient.NewGoUpstreamRequest("Name_example", "UpstreamUrl_example") // GoUpstreamRequest | (optional) + data := *openapiclient.NewHelmUpstreamRequest("Name_example", "UpstreamUrl_example") // HelmUpstreamRequest | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ReposApi.ReposUpstreamGoUpdate(context.Background(), owner, identifier, slugPerm).Data(data).Execute() + resp, r, err := apiClient.ReposApi.ReposUpstreamHelmUpdate(context.Background(), owner, identifier, slugPerm).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamGoUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamHelmUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ReposUpstreamGoUpdate`: GoUpstream - fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamGoUpdate`: %v\n", resp) + // response from `ReposUpstreamHelmUpdate`: HelmUpstream + fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamHelmUpdate`: %v\n", resp) } ``` @@ -5300,7 +6228,7 @@ Name | Type | Description | Notes ### Other Parameters -Other parameters are passed through a pointer to a apiReposUpstreamGoUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiReposUpstreamHelmUpdateRequest struct via the builder pattern Name | Type | Description | Notes @@ -5308,11 +6236,11 @@ Name | Type | Description | Notes - **data** | [**GoUpstreamRequest**](GoUpstreamRequest.md) | | + **data** | [**HelmUpstreamRequest**](HelmUpstreamRequest.md) | | ### Return type -[**GoUpstream**](GoUpstream.md) +[**HelmUpstream**](HelmUpstream.md) ### Authorization @@ -5328,11 +6256,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ReposUpstreamHelmCreate +## ReposUpstreamHexCreate -> HelmUpstream ReposUpstreamHelmCreate(ctx, owner, identifier).Data(data).Execute() +> HexUpstream ReposUpstreamHexCreate(ctx, owner, identifier).Data(data).Execute() -Create a Helm upstream config for this repository. +Create a Hex upstream config for this repository. @@ -5351,17 +6279,17 @@ import ( func main() { owner := "owner_example" // string | identifier := "identifier_example" // string | - data := *openapiclient.NewHelmUpstreamRequest("Name_example", "UpstreamUrl_example") // HelmUpstreamRequest | (optional) + data := *openapiclient.NewHexUpstreamRequest("Name_example", "UpstreamUrl_example") // HexUpstreamRequest | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ReposApi.ReposUpstreamHelmCreate(context.Background(), owner, identifier).Data(data).Execute() + resp, r, err := apiClient.ReposApi.ReposUpstreamHexCreate(context.Background(), owner, identifier).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamHelmCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamHexCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ReposUpstreamHelmCreate`: HelmUpstream - fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamHelmCreate`: %v\n", resp) + // response from `ReposUpstreamHexCreate`: HexUpstream + fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamHexCreate`: %v\n", resp) } ``` @@ -5376,18 +6304,18 @@ Name | Type | Description | Notes ### Other Parameters -Other parameters are passed through a pointer to a apiReposUpstreamHelmCreateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiReposUpstreamHexCreateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **data** | [**HelmUpstreamRequest**](HelmUpstreamRequest.md) | | + **data** | [**HexUpstreamRequest**](HexUpstreamRequest.md) | | ### Return type -[**HelmUpstream**](HelmUpstream.md) +[**HexUpstream**](HexUpstream.md) ### Authorization @@ -5403,11 +6331,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ReposUpstreamHelmDelete +## ReposUpstreamHexDelete -> ReposUpstreamHelmDelete(ctx, owner, identifier, slugPerm).Execute() +> ReposUpstreamHexDelete(ctx, owner, identifier, slugPerm).Execute() -Delete a Helm upstream config for this repository. +Delete a Hex upstream config for this repository. @@ -5430,9 +6358,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.ReposApi.ReposUpstreamHelmDelete(context.Background(), owner, identifier, slugPerm).Execute() + r, err := apiClient.ReposApi.ReposUpstreamHexDelete(context.Background(), owner, identifier, slugPerm).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamHelmDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamHexDelete``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -5450,7 +6378,7 @@ Name | Type | Description | Notes ### Other Parameters -Other parameters are passed through a pointer to a apiReposUpstreamHelmDeleteRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiReposUpstreamHexDeleteRequest struct via the builder pattern Name | Type | Description | Notes @@ -5477,11 +6405,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ReposUpstreamHelmList +## ReposUpstreamHexList -> []HelmUpstream ReposUpstreamHelmList(ctx, owner, identifier).Page(page).PageSize(pageSize).Execute() +> []HexUpstream ReposUpstreamHexList(ctx, owner, identifier).Page(page).PageSize(pageSize).Execute() -List Helm upstream configs for this repository. +List Hex upstream configs for this repository. @@ -5505,13 +6433,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ReposApi.ReposUpstreamHelmList(context.Background(), owner, identifier).Page(page).PageSize(pageSize).Execute() + resp, r, err := apiClient.ReposApi.ReposUpstreamHexList(context.Background(), owner, identifier).Page(page).PageSize(pageSize).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamHelmList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamHexList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ReposUpstreamHelmList`: []HelmUpstream - fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamHelmList`: %v\n", resp) + // response from `ReposUpstreamHexList`: []HexUpstream + fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamHexList`: %v\n", resp) } ``` @@ -5526,7 +6454,7 @@ Name | Type | Description | Notes ### Other Parameters -Other parameters are passed through a pointer to a apiReposUpstreamHelmListRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiReposUpstreamHexListRequest struct via the builder pattern Name | Type | Description | Notes @@ -5538,7 +6466,7 @@ Name | Type | Description | Notes ### Return type -[**[]HelmUpstream**](HelmUpstream.md) +[**[]HexUpstream**](HexUpstream.md) ### Authorization @@ -5554,11 +6482,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ReposUpstreamHelmPartialUpdate +## ReposUpstreamHexPartialUpdate -> HelmUpstream ReposUpstreamHelmPartialUpdate(ctx, owner, identifier, slugPerm).Data(data).Execute() +> HexUpstream ReposUpstreamHexPartialUpdate(ctx, owner, identifier, slugPerm).Data(data).Execute() -Partially update a Helm upstream config for this repository. +Partially update a Hex upstream config for this repository. @@ -5578,17 +6506,17 @@ func main() { owner := "owner_example" // string | identifier := "identifier_example" // string | slugPerm := "slugPerm_example" // string | - data := *openapiclient.NewHelmUpstreamRequestPatch() // HelmUpstreamRequestPatch | (optional) + data := *openapiclient.NewHexUpstreamRequestPatch() // HexUpstreamRequestPatch | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ReposApi.ReposUpstreamHelmPartialUpdate(context.Background(), owner, identifier, slugPerm).Data(data).Execute() + resp, r, err := apiClient.ReposApi.ReposUpstreamHexPartialUpdate(context.Background(), owner, identifier, slugPerm).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamHelmPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamHexPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ReposUpstreamHelmPartialUpdate`: HelmUpstream - fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamHelmPartialUpdate`: %v\n", resp) + // response from `ReposUpstreamHexPartialUpdate`: HexUpstream + fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamHexPartialUpdate`: %v\n", resp) } ``` @@ -5604,7 +6532,7 @@ Name | Type | Description | Notes ### Other Parameters -Other parameters are passed through a pointer to a apiReposUpstreamHelmPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiReposUpstreamHexPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes @@ -5612,11 +6540,11 @@ Name | Type | Description | Notes - **data** | [**HelmUpstreamRequestPatch**](HelmUpstreamRequestPatch.md) | | + **data** | [**HexUpstreamRequestPatch**](HexUpstreamRequestPatch.md) | | ### Return type -[**HelmUpstream**](HelmUpstream.md) +[**HexUpstream**](HexUpstream.md) ### Authorization @@ -5632,11 +6560,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ReposUpstreamHelmRead +## ReposUpstreamHexRead -> HelmUpstream ReposUpstreamHelmRead(ctx, owner, identifier, slugPerm).Execute() +> HexUpstream ReposUpstreamHexRead(ctx, owner, identifier, slugPerm).Execute() -Retrieve a Helm upstream config for this repository. +Retrieve a Hex upstream config for this repository. @@ -5659,13 +6587,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ReposApi.ReposUpstreamHelmRead(context.Background(), owner, identifier, slugPerm).Execute() + resp, r, err := apiClient.ReposApi.ReposUpstreamHexRead(context.Background(), owner, identifier, slugPerm).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamHelmRead``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamHexRead``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ReposUpstreamHelmRead`: HelmUpstream - fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamHelmRead`: %v\n", resp) + // response from `ReposUpstreamHexRead`: HexUpstream + fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamHexRead`: %v\n", resp) } ``` @@ -5681,7 +6609,7 @@ Name | Type | Description | Notes ### Other Parameters -Other parameters are passed through a pointer to a apiReposUpstreamHelmReadRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiReposUpstreamHexReadRequest struct via the builder pattern Name | Type | Description | Notes @@ -5692,7 +6620,7 @@ Name | Type | Description | Notes ### Return type -[**HelmUpstream**](HelmUpstream.md) +[**HexUpstream**](HexUpstream.md) ### Authorization @@ -5708,11 +6636,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ReposUpstreamHelmUpdate +## ReposUpstreamHexUpdate -> HelmUpstream ReposUpstreamHelmUpdate(ctx, owner, identifier, slugPerm).Data(data).Execute() +> HexUpstream ReposUpstreamHexUpdate(ctx, owner, identifier, slugPerm).Data(data).Execute() -Update a Helm upstream config for this repository. +Update a Hex upstream config for this repository. @@ -5732,17 +6660,17 @@ func main() { owner := "owner_example" // string | identifier := "identifier_example" // string | slugPerm := "slugPerm_example" // string | - data := *openapiclient.NewHelmUpstreamRequest("Name_example", "UpstreamUrl_example") // HelmUpstreamRequest | (optional) + data := *openapiclient.NewHexUpstreamRequest("Name_example", "UpstreamUrl_example") // HexUpstreamRequest | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ReposApi.ReposUpstreamHelmUpdate(context.Background(), owner, identifier, slugPerm).Data(data).Execute() + resp, r, err := apiClient.ReposApi.ReposUpstreamHexUpdate(context.Background(), owner, identifier, slugPerm).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamHelmUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamHexUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ReposUpstreamHelmUpdate`: HelmUpstream - fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamHelmUpdate`: %v\n", resp) + // response from `ReposUpstreamHexUpdate`: HexUpstream + fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamHexUpdate`: %v\n", resp) } ``` @@ -5758,7 +6686,7 @@ Name | Type | Description | Notes ### Other Parameters -Other parameters are passed through a pointer to a apiReposUpstreamHelmUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiReposUpstreamHexUpdateRequest struct via the builder pattern Name | Type | Description | Notes @@ -5766,11 +6694,11 @@ Name | Type | Description | Notes - **data** | [**HelmUpstreamRequest**](HelmUpstreamRequest.md) | | + **data** | [**HexUpstreamRequest**](HexUpstreamRequest.md) | | ### Return type -[**HelmUpstream**](HelmUpstream.md) +[**HexUpstream**](HexUpstream.md) ### Authorization @@ -5786,11 +6714,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ReposUpstreamHexCreate +## ReposUpstreamHuggingfaceCreate -> HexUpstream ReposUpstreamHexCreate(ctx, owner, identifier).Data(data).Execute() +> HuggingfaceUpstream ReposUpstreamHuggingfaceCreate(ctx, owner, identifier).Data(data).Execute() -Create a Hex upstream config for this repository. +Create a HuggingFace upstream config for this repository. @@ -5809,17 +6737,17 @@ import ( func main() { owner := "owner_example" // string | identifier := "identifier_example" // string | - data := *openapiclient.NewHexUpstreamRequest("Name_example", "UpstreamUrl_example") // HexUpstreamRequest | (optional) + data := *openapiclient.NewHuggingfaceUpstreamRequest("Name_example", "UpstreamUrl_example") // HuggingfaceUpstreamRequest | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ReposApi.ReposUpstreamHexCreate(context.Background(), owner, identifier).Data(data).Execute() + resp, r, err := apiClient.ReposApi.ReposUpstreamHuggingfaceCreate(context.Background(), owner, identifier).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamHexCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamHuggingfaceCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ReposUpstreamHexCreate`: HexUpstream - fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamHexCreate`: %v\n", resp) + // response from `ReposUpstreamHuggingfaceCreate`: HuggingfaceUpstream + fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamHuggingfaceCreate`: %v\n", resp) } ``` @@ -5834,18 +6762,18 @@ Name | Type | Description | Notes ### Other Parameters -Other parameters are passed through a pointer to a apiReposUpstreamHexCreateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiReposUpstreamHuggingfaceCreateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **data** | [**HexUpstreamRequest**](HexUpstreamRequest.md) | | + **data** | [**HuggingfaceUpstreamRequest**](HuggingfaceUpstreamRequest.md) | | ### Return type -[**HexUpstream**](HexUpstream.md) +[**HuggingfaceUpstream**](HuggingfaceUpstream.md) ### Authorization @@ -5861,11 +6789,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ReposUpstreamHexDelete +## ReposUpstreamHuggingfaceDelete -> ReposUpstreamHexDelete(ctx, owner, identifier, slugPerm).Execute() +> ReposUpstreamHuggingfaceDelete(ctx, owner, identifier, slugPerm).Execute() -Delete a Hex upstream config for this repository. +Delete a HuggingFace upstream config for this repository. @@ -5888,9 +6816,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.ReposApi.ReposUpstreamHexDelete(context.Background(), owner, identifier, slugPerm).Execute() + r, err := apiClient.ReposApi.ReposUpstreamHuggingfaceDelete(context.Background(), owner, identifier, slugPerm).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamHexDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamHuggingfaceDelete``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -5908,7 +6836,7 @@ Name | Type | Description | Notes ### Other Parameters -Other parameters are passed through a pointer to a apiReposUpstreamHexDeleteRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiReposUpstreamHuggingfaceDeleteRequest struct via the builder pattern Name | Type | Description | Notes @@ -5935,11 +6863,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ReposUpstreamHexList +## ReposUpstreamHuggingfaceList -> []HexUpstream ReposUpstreamHexList(ctx, owner, identifier).Page(page).PageSize(pageSize).Execute() +> []HuggingfaceUpstream ReposUpstreamHuggingfaceList(ctx, owner, identifier).Page(page).PageSize(pageSize).Execute() -List Hex upstream configs for this repository. +List HuggingFace upstream configs for this repository. @@ -5963,13 +6891,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ReposApi.ReposUpstreamHexList(context.Background(), owner, identifier).Page(page).PageSize(pageSize).Execute() + resp, r, err := apiClient.ReposApi.ReposUpstreamHuggingfaceList(context.Background(), owner, identifier).Page(page).PageSize(pageSize).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamHexList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamHuggingfaceList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ReposUpstreamHexList`: []HexUpstream - fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamHexList`: %v\n", resp) + // response from `ReposUpstreamHuggingfaceList`: []HuggingfaceUpstream + fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamHuggingfaceList`: %v\n", resp) } ``` @@ -5984,7 +6912,7 @@ Name | Type | Description | Notes ### Other Parameters -Other parameters are passed through a pointer to a apiReposUpstreamHexListRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiReposUpstreamHuggingfaceListRequest struct via the builder pattern Name | Type | Description | Notes @@ -5996,7 +6924,7 @@ Name | Type | Description | Notes ### Return type -[**[]HexUpstream**](HexUpstream.md) +[**[]HuggingfaceUpstream**](HuggingfaceUpstream.md) ### Authorization @@ -6012,11 +6940,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ReposUpstreamHexPartialUpdate +## ReposUpstreamHuggingfacePartialUpdate -> HexUpstream ReposUpstreamHexPartialUpdate(ctx, owner, identifier, slugPerm).Data(data).Execute() +> HuggingfaceUpstream ReposUpstreamHuggingfacePartialUpdate(ctx, owner, identifier, slugPerm).Data(data).Execute() -Partially update a Hex upstream config for this repository. +Partially update a HuggingFace upstream config for this repository. @@ -6036,17 +6964,17 @@ func main() { owner := "owner_example" // string | identifier := "identifier_example" // string | slugPerm := "slugPerm_example" // string | - data := *openapiclient.NewHexUpstreamRequestPatch() // HexUpstreamRequestPatch | (optional) + data := *openapiclient.NewHuggingfaceUpstreamRequestPatch() // HuggingfaceUpstreamRequestPatch | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ReposApi.ReposUpstreamHexPartialUpdate(context.Background(), owner, identifier, slugPerm).Data(data).Execute() + resp, r, err := apiClient.ReposApi.ReposUpstreamHuggingfacePartialUpdate(context.Background(), owner, identifier, slugPerm).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamHexPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamHuggingfacePartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ReposUpstreamHexPartialUpdate`: HexUpstream - fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamHexPartialUpdate`: %v\n", resp) + // response from `ReposUpstreamHuggingfacePartialUpdate`: HuggingfaceUpstream + fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamHuggingfacePartialUpdate`: %v\n", resp) } ``` @@ -6062,7 +6990,7 @@ Name | Type | Description | Notes ### Other Parameters -Other parameters are passed through a pointer to a apiReposUpstreamHexPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiReposUpstreamHuggingfacePartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes @@ -6070,11 +6998,11 @@ Name | Type | Description | Notes - **data** | [**HexUpstreamRequestPatch**](HexUpstreamRequestPatch.md) | | + **data** | [**HuggingfaceUpstreamRequestPatch**](HuggingfaceUpstreamRequestPatch.md) | | ### Return type -[**HexUpstream**](HexUpstream.md) +[**HuggingfaceUpstream**](HuggingfaceUpstream.md) ### Authorization @@ -6090,11 +7018,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ReposUpstreamHexRead +## ReposUpstreamHuggingfaceRead -> HexUpstream ReposUpstreamHexRead(ctx, owner, identifier, slugPerm).Execute() +> HuggingfaceUpstream ReposUpstreamHuggingfaceRead(ctx, owner, identifier, slugPerm).Execute() -Retrieve a Hex upstream config for this repository. +Retrieve a HuggingFace upstream config for this repository. @@ -6117,13 +7045,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ReposApi.ReposUpstreamHexRead(context.Background(), owner, identifier, slugPerm).Execute() + resp, r, err := apiClient.ReposApi.ReposUpstreamHuggingfaceRead(context.Background(), owner, identifier, slugPerm).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamHexRead``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamHuggingfaceRead``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ReposUpstreamHexRead`: HexUpstream - fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamHexRead`: %v\n", resp) + // response from `ReposUpstreamHuggingfaceRead`: HuggingfaceUpstream + fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamHuggingfaceRead`: %v\n", resp) } ``` @@ -6139,7 +7067,7 @@ Name | Type | Description | Notes ### Other Parameters -Other parameters are passed through a pointer to a apiReposUpstreamHexReadRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiReposUpstreamHuggingfaceReadRequest struct via the builder pattern Name | Type | Description | Notes @@ -6150,7 +7078,7 @@ Name | Type | Description | Notes ### Return type -[**HexUpstream**](HexUpstream.md) +[**HuggingfaceUpstream**](HuggingfaceUpstream.md) ### Authorization @@ -6166,11 +7094,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ReposUpstreamHexUpdate +## ReposUpstreamHuggingfaceUpdate -> HexUpstream ReposUpstreamHexUpdate(ctx, owner, identifier, slugPerm).Data(data).Execute() +> HuggingfaceUpstream ReposUpstreamHuggingfaceUpdate(ctx, owner, identifier, slugPerm).Data(data).Execute() -Update a Hex upstream config for this repository. +Update a HuggingFace upstream config for this repository. @@ -6190,17 +7118,17 @@ func main() { owner := "owner_example" // string | identifier := "identifier_example" // string | slugPerm := "slugPerm_example" // string | - data := *openapiclient.NewHexUpstreamRequest("Name_example", "UpstreamUrl_example") // HexUpstreamRequest | (optional) + data := *openapiclient.NewHuggingfaceUpstreamRequest("Name_example", "UpstreamUrl_example") // HuggingfaceUpstreamRequest | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ReposApi.ReposUpstreamHexUpdate(context.Background(), owner, identifier, slugPerm).Data(data).Execute() + resp, r, err := apiClient.ReposApi.ReposUpstreamHuggingfaceUpdate(context.Background(), owner, identifier, slugPerm).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamHexUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamHuggingfaceUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ReposUpstreamHexUpdate`: HexUpstream - fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamHexUpdate`: %v\n", resp) + // response from `ReposUpstreamHuggingfaceUpdate`: HuggingfaceUpstream + fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamHuggingfaceUpdate`: %v\n", resp) } ``` @@ -6216,7 +7144,7 @@ Name | Type | Description | Notes ### Other Parameters -Other parameters are passed through a pointer to a apiReposUpstreamHexUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiReposUpstreamHuggingfaceUpdateRequest struct via the builder pattern Name | Type | Description | Notes @@ -6224,11 +7152,11 @@ Name | Type | Description | Notes - **data** | [**HexUpstreamRequest**](HexUpstreamRequest.md) | | + **data** | [**HuggingfaceUpstreamRequest**](HuggingfaceUpstreamRequest.md) | | ### Return type -[**HexUpstream**](HexUpstream.md) +[**HuggingfaceUpstream**](HuggingfaceUpstream.md) ### Authorization diff --git a/docs/RpmPackageUpload.md b/docs/RpmPackageUpload.md index 5b76d560..925d2737 100644 --- a/docs/RpmPackageUpload.md +++ b/docs/RpmPackageUpload.md @@ -76,6 +76,7 @@ Name | Type | Description | Notes **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] @@ -2074,6 +2075,31 @@ SetSyncProgress sets SyncProgress field to given value. HasSyncProgress returns a boolean if a field has been set. +### GetTagsAutomatic + +`func (o *RpmPackageUpload) GetTagsAutomatic() map[string]interface{}` + +GetTagsAutomatic returns the TagsAutomatic field if non-nil, zero value otherwise. + +### GetTagsAutomaticOk + +`func (o *RpmPackageUpload) 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 *RpmPackageUpload) SetTagsAutomatic(v map[string]interface{})` + +SetTagsAutomatic sets TagsAutomatic field to given value. + +### HasTagsAutomatic + +`func (o *RpmPackageUpload) HasTagsAutomatic() bool` + +HasTagsAutomatic returns a boolean if a field has been set. + ### GetTagsImmutable `func (o *RpmPackageUpload) GetTagsImmutable() map[string]interface{}` diff --git a/docs/RubyPackageUpload.md b/docs/RubyPackageUpload.md index 1dc8dd09..0b3bf7c4 100644 --- a/docs/RubyPackageUpload.md +++ b/docs/RubyPackageUpload.md @@ -76,6 +76,7 @@ Name | Type | Description | Notes **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] @@ -2074,6 +2075,31 @@ SetSyncProgress sets SyncProgress field to given value. HasSyncProgress returns a boolean if a field has been set. +### GetTagsAutomatic + +`func (o *RubyPackageUpload) GetTagsAutomatic() map[string]interface{}` + +GetTagsAutomatic returns the TagsAutomatic field if non-nil, zero value otherwise. + +### GetTagsAutomaticOk + +`func (o *RubyPackageUpload) 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 *RubyPackageUpload) SetTagsAutomatic(v map[string]interface{})` + +SetTagsAutomatic sets TagsAutomatic field to given value. + +### HasTagsAutomatic + +`func (o *RubyPackageUpload) HasTagsAutomatic() bool` + +HasTagsAutomatic returns a boolean if a field has been set. + ### GetTagsImmutable `func (o *RubyPackageUpload) GetTagsImmutable() map[string]interface{}` diff --git a/docs/StatusBasic.md b/docs/StatusBasic.md index f313dc02..f928a8d8 100644 --- a/docs/StatusBasic.md +++ b/docs/StatusBasic.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Detail** | Pointer to **string** | The message describing the state of the API. | [optional] [readonly] [default to "Cloudsmith API is operational."] -**Version** | Pointer to **string** | The current version for the Cloudsmith service. | [optional] [readonly] [default to "1.768.2"] +**Version** | Pointer to **string** | The current version for the Cloudsmith service. | [optional] [readonly] [default to "1.0"] ## Methods diff --git a/docs/SwiftPackageUpload.md b/docs/SwiftPackageUpload.md index c5894548..414254e9 100644 --- a/docs/SwiftPackageUpload.md +++ b/docs/SwiftPackageUpload.md @@ -81,6 +81,7 @@ Name | Type | Description | Notes **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] @@ -2194,6 +2195,31 @@ SetSyncProgress sets SyncProgress field to given value. HasSyncProgress returns a boolean if a field has been set. +### GetTagsAutomatic + +`func (o *SwiftPackageUpload) GetTagsAutomatic() map[string]interface{}` + +GetTagsAutomatic returns the TagsAutomatic field if non-nil, zero value otherwise. + +### GetTagsAutomaticOk + +`func (o *SwiftPackageUpload) 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 *SwiftPackageUpload) SetTagsAutomatic(v map[string]interface{})` + +SetTagsAutomatic sets TagsAutomatic field to given value. + +### HasTagsAutomatic + +`func (o *SwiftPackageUpload) HasTagsAutomatic() bool` + +HasTagsAutomatic returns a boolean if a field has been set. + ### GetTagsImmutable `func (o *SwiftPackageUpload) GetTagsImmutable() map[string]interface{}` diff --git a/docs/TerraformPackageUpload.md b/docs/TerraformPackageUpload.md index 8892c5a9..02b6b2f3 100644 --- a/docs/TerraformPackageUpload.md +++ b/docs/TerraformPackageUpload.md @@ -76,6 +76,7 @@ Name | Type | Description | Notes **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] @@ -2074,6 +2075,31 @@ SetSyncProgress sets SyncProgress field to given value. HasSyncProgress returns a boolean if a field has been set. +### GetTagsAutomatic + +`func (o *TerraformPackageUpload) GetTagsAutomatic() map[string]interface{}` + +GetTagsAutomatic returns the TagsAutomatic field if non-nil, zero value otherwise. + +### GetTagsAutomaticOk + +`func (o *TerraformPackageUpload) 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 *TerraformPackageUpload) SetTagsAutomatic(v map[string]interface{})` + +SetTagsAutomatic sets TagsAutomatic field to given value. + +### HasTagsAutomatic + +`func (o *TerraformPackageUpload) HasTagsAutomatic() bool` + +HasTagsAutomatic returns a boolean if a field has been set. + ### GetTagsImmutable `func (o *TerraformPackageUpload) GetTagsImmutable() map[string]interface{}` diff --git a/docs/VagrantPackageUpload.md b/docs/VagrantPackageUpload.md index d0d13895..4d225b46 100644 --- a/docs/VagrantPackageUpload.md +++ b/docs/VagrantPackageUpload.md @@ -77,6 +77,7 @@ Name | Type | Description | Notes **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] @@ -2080,6 +2081,31 @@ SetSyncProgress sets SyncProgress field to given value. HasSyncProgress returns a boolean if a field has been set. +### GetTagsAutomatic + +`func (o *VagrantPackageUpload) GetTagsAutomatic() map[string]interface{}` + +GetTagsAutomatic returns the TagsAutomatic field if non-nil, zero value otherwise. + +### GetTagsAutomaticOk + +`func (o *VagrantPackageUpload) 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 *VagrantPackageUpload) SetTagsAutomatic(v map[string]interface{})` + +SetTagsAutomatic sets TagsAutomatic field to given value. + +### HasTagsAutomatic + +`func (o *VagrantPackageUpload) HasTagsAutomatic() bool` + +HasTagsAutomatic returns a boolean if a field has been set. + ### GetTagsImmutable `func (o *VagrantPackageUpload) GetTagsImmutable() map[string]interface{}` diff --git a/docs/Vulnerability.md b/docs/Vulnerability.md index 55bf8556..07e62a0f 100644 --- a/docs/Vulnerability.md +++ b/docs/Vulnerability.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **AffectedVersion** | [**VulnerabilityScanVersion**](VulnerabilityScanVersion.md) | | +**CvssScores** | Pointer to **map[string]map[string]map[string]interface{}** | CVSS Scores (when available from the raw scan results) | [optional] [readonly] **Description** | **string** | | **FixedVersion** | [**VulnerabilityScanVersion**](VulnerabilityScanVersion.md) | | **PackageName** | **string** | | @@ -53,6 +54,31 @@ and a boolean to check if the value has been set. SetAffectedVersion sets AffectedVersion field to given value. +### GetCvssScores + +`func (o *Vulnerability) GetCvssScores() map[string]map[string]map[string]interface{}` + +GetCvssScores returns the CvssScores field if non-nil, zero value otherwise. + +### GetCvssScoresOk + +`func (o *Vulnerability) GetCvssScoresOk() (*map[string]map[string]map[string]interface{}, bool)` + +GetCvssScoresOk returns a tuple with the CvssScores field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCvssScores + +`func (o *Vulnerability) SetCvssScores(v map[string]map[string]map[string]interface{})` + +SetCvssScores sets CvssScores field to given value. + +### HasCvssScores + +`func (o *Vulnerability) HasCvssScores() bool` + +HasCvssScores returns a boolean if a field has been set. + ### GetDescription `func (o *Vulnerability) GetDescription() string` diff --git a/model_allocated_limit.go b/model_allocated_limit.go index 84cc6dd5..fc28819b 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_allocated_limit_raw.go b/model_allocated_limit_raw.go index e0c7d68f..10284a28 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_alpine_package_upload.go b/model_alpine_package_upload.go index bb3ef43f..e9ff1b22 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ @@ -118,6 +118,8 @@ type AlpinePackageUpload struct { // 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. @@ -2641,6 +2643,38 @@ func (o *AlpinePackageUpload) SetSyncProgress(v int64) { o.SyncProgress = &v } +// GetTagsAutomatic returns the TagsAutomatic field value if set, zero value otherwise. +func (o *AlpinePackageUpload) 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 *AlpinePackageUpload) 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 *AlpinePackageUpload) 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 *AlpinePackageUpload) SetTagsAutomatic(v map[string]interface{}) { + o.TagsAutomatic = v +} + // GetTagsImmutable returns the TagsImmutable field value if set, zero value otherwise. func (o *AlpinePackageUpload) GetTagsImmutable() map[string]interface{} { if o == nil || IsNil(o.TagsImmutable) { @@ -3134,6 +3168,9 @@ func (o AlpinePackageUpload) ToMap() (map[string]interface{}, error) { 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 } @@ -3252,6 +3289,7 @@ func (o *AlpinePackageUpload) UnmarshalJSON(data []byte) (err error) { 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") diff --git a/model_alpine_package_upload_request.go b/model_alpine_package_upload_request.go index 57a6c576..5c2212ad 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_architecture.go b/model_architecture.go index d82fa1a4..732aa8e2 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_cargo_package_upload.go b/model_cargo_package_upload.go index b002d625..630f01b1 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ @@ -118,6 +118,8 @@ type CargoPackageUpload struct { // 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. @@ -2641,6 +2643,38 @@ func (o *CargoPackageUpload) SetSyncProgress(v int64) { o.SyncProgress = &v } +// GetTagsAutomatic returns the TagsAutomatic field value if set, zero value otherwise. +func (o *CargoPackageUpload) 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 *CargoPackageUpload) 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 *CargoPackageUpload) 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 *CargoPackageUpload) SetTagsAutomatic(v map[string]interface{}) { + o.TagsAutomatic = v +} + // GetTagsImmutable returns the TagsImmutable field value if set, zero value otherwise. func (o *CargoPackageUpload) GetTagsImmutable() map[string]interface{} { if o == nil || IsNil(o.TagsImmutable) { @@ -3134,6 +3168,9 @@ func (o CargoPackageUpload) ToMap() (map[string]interface{}, error) { 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 } @@ -3252,6 +3289,7 @@ func (o *CargoPackageUpload) UnmarshalJSON(data []byte) (err error) { 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") diff --git a/model_cargo_package_upload_request.go b/model_cargo_package_upload_request.go index c19a3501..2dbe0969 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_cargo_upstream.go b/model_cargo_upstream.go index b8a83ed0..514a55c2 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_cargo_upstream_request.go b/model_cargo_upstream_request.go index 21dffe05..d99da55e 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_cargo_upstream_request_patch.go b/model_cargo_upstream_request_patch.go index db03dfa7..896167f8 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_cocoapods_package_upload.go b/model_cocoapods_package_upload.go index 84e014b2..bab7b731 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ @@ -118,6 +118,8 @@ type CocoapodsPackageUpload struct { // 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. @@ -2641,6 +2643,38 @@ func (o *CocoapodsPackageUpload) SetSyncProgress(v int64) { o.SyncProgress = &v } +// GetTagsAutomatic returns the TagsAutomatic field value if set, zero value otherwise. +func (o *CocoapodsPackageUpload) 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 *CocoapodsPackageUpload) 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 *CocoapodsPackageUpload) 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 *CocoapodsPackageUpload) SetTagsAutomatic(v map[string]interface{}) { + o.TagsAutomatic = v +} + // GetTagsImmutable returns the TagsImmutable field value if set, zero value otherwise. func (o *CocoapodsPackageUpload) GetTagsImmutable() map[string]interface{} { if o == nil || IsNil(o.TagsImmutable) { @@ -3134,6 +3168,9 @@ func (o CocoapodsPackageUpload) ToMap() (map[string]interface{}, error) { 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 } @@ -3252,6 +3289,7 @@ func (o *CocoapodsPackageUpload) UnmarshalJSON(data []byte) (err error) { 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") diff --git a/model_cocoapods_package_upload_request.go b/model_cocoapods_package_upload_request.go index c4908da3..03b6f3c6 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_common_bandwidth_metrics.go b/model_common_bandwidth_metrics.go index 2fbfa5b3..a0bb302b 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_common_bandwidth_metrics_value.go b/model_common_bandwidth_metrics_value.go index 367e7834..2df38d7e 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_common_downloads_metrics.go b/model_common_downloads_metrics.go index 73390b16..1d378551 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_common_downloads_metrics_value.go b/model_common_downloads_metrics_value.go index e571aa71..0f1d3d27 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_common_metrics.go b/model_common_metrics.go index 4df0f02e..0d7be29c 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_composer_package_upload.go b/model_composer_package_upload.go index 95fd2f00..5846f452 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ @@ -118,6 +118,8 @@ type ComposerPackageUpload struct { // 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. @@ -2641,6 +2643,38 @@ func (o *ComposerPackageUpload) SetSyncProgress(v int64) { o.SyncProgress = &v } +// GetTagsAutomatic returns the TagsAutomatic field value if set, zero value otherwise. +func (o *ComposerPackageUpload) 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 *ComposerPackageUpload) 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 *ComposerPackageUpload) 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 *ComposerPackageUpload) SetTagsAutomatic(v map[string]interface{}) { + o.TagsAutomatic = v +} + // GetTagsImmutable returns the TagsImmutable field value if set, zero value otherwise. func (o *ComposerPackageUpload) GetTagsImmutable() map[string]interface{} { if o == nil || IsNil(o.TagsImmutable) { @@ -3134,6 +3168,9 @@ func (o ComposerPackageUpload) ToMap() (map[string]interface{}, error) { 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 } @@ -3252,6 +3289,7 @@ func (o *ComposerPackageUpload) UnmarshalJSON(data []byte) (err error) { 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") diff --git a/model_composer_package_upload_request.go b/model_composer_package_upload_request.go index 96097692..173911ab 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_composer_upstream.go b/model_composer_upstream.go index 5d4c6c77..0eff8972 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_composer_upstream_request.go b/model_composer_upstream_request.go index d7218213..9cbb2e85 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_composer_upstream_request_patch.go b/model_composer_upstream_request_patch.go index eaf57140..03985a88 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_conan_package_upload.go b/model_conan_package_upload.go index ebf445ba..f0bc9518 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ @@ -122,6 +122,8 @@ type ConanPackageUpload struct { // 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. @@ -2731,6 +2733,38 @@ func (o *ConanPackageUpload) SetSyncProgress(v int64) { o.SyncProgress = &v } +// GetTagsAutomatic returns the TagsAutomatic field value if set, zero value otherwise. +func (o *ConanPackageUpload) 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 *ConanPackageUpload) 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 *ConanPackageUpload) 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 *ConanPackageUpload) SetTagsAutomatic(v map[string]interface{}) { + o.TagsAutomatic = v +} + // GetTagsImmutable returns the TagsImmutable field value if set, zero value otherwise. func (o *ConanPackageUpload) GetTagsImmutable() map[string]interface{} { if o == nil || IsNil(o.TagsImmutable) { @@ -3230,6 +3264,9 @@ func (o ConanPackageUpload) ToMap() (map[string]interface{}, error) { 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 } @@ -3350,6 +3387,7 @@ func (o *ConanPackageUpload) UnmarshalJSON(data []byte) (err error) { 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") diff --git a/model_conan_package_upload_request.go b/model_conan_package_upload_request.go index 41cef88d..f9c57212 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_conda_package_upload.go b/model_conda_package_upload.go index d44d6489..6d7bd9a9 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ @@ -118,6 +118,8 @@ type CondaPackageUpload struct { // 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. @@ -2641,6 +2643,38 @@ func (o *CondaPackageUpload) SetSyncProgress(v int64) { o.SyncProgress = &v } +// GetTagsAutomatic returns the TagsAutomatic field value if set, zero value otherwise. +func (o *CondaPackageUpload) 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 *CondaPackageUpload) 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 *CondaPackageUpload) 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 *CondaPackageUpload) SetTagsAutomatic(v map[string]interface{}) { + o.TagsAutomatic = v +} + // GetTagsImmutable returns the TagsImmutable field value if set, zero value otherwise. func (o *CondaPackageUpload) GetTagsImmutable() map[string]interface{} { if o == nil || IsNil(o.TagsImmutable) { @@ -3134,6 +3168,9 @@ func (o CondaPackageUpload) ToMap() (map[string]interface{}, error) { 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 } @@ -3252,6 +3289,7 @@ func (o *CondaPackageUpload) UnmarshalJSON(data []byte) (err error) { 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") diff --git a/model_conda_package_upload_request.go b/model_conda_package_upload_request.go index 72ab575b..6e94b798 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_conda_upstream.go b/model_conda_upstream.go new file mode 100644 index 00000000..eb500f05 --- /dev/null +++ b/model_conda_upstream.go @@ -0,0 +1,878 @@ +/* +Cloudsmith API (v1) + +The API to the Cloudsmith Service + +API version: 1.830.6 +Contact: support@cloudsmith.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cloudsmith + +import ( + "encoding/json" + "fmt" + "time" +) + +// checks if the CondaUpstream type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CondaUpstream{} + +// CondaUpstream struct for CondaUpstream +type CondaUpstream struct { + // The authentication mode to use when accessing this upstream. + AuthMode *string `json:"auth_mode,omitempty"` + // Secret to provide with requests to upstream. + AuthSecret NullableString `json:"auth_secret,omitempty"` + // Username to provide with requests to upstream. + AuthUsername NullableString `json:"auth_username,omitempty"` + // The datetime the upstream source was created. + CreatedAt *time.Time `json:"created_at,omitempty"` + DisableReason *string `json:"disable_reason,omitempty"` + // The key for extra header #1 to send to upstream. + ExtraHeader1 NullableString `json:"extra_header_1,omitempty" validate:"regexp=^[-\\\\w]+$"` + // The key for extra header #2 to send to upstream. + ExtraHeader2 NullableString `json:"extra_header_2,omitempty" validate:"regexp=^[-\\\\w]+$"` + // The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. + ExtraValue1 NullableString `json:"extra_value_1,omitempty" validate:"regexp=^[^\\\\n\\\\r]+$"` + // The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. + ExtraValue2 NullableString `json:"extra_value_2,omitempty" validate:"regexp=^[^\\\\n\\\\r]+$"` + // Whether or not this upstream is active and ready for requests. + IsActive *bool `json:"is_active,omitempty"` + // 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. + Mode *string `json:"mode,omitempty"` + // A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. + Name string `json:"name" validate:"regexp=^\\\\w[\\\\w \\\\-'\\\\.\\/()]+$"` + // 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"` + // 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. + VerifySsl *bool `json:"verify_ssl,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CondaUpstream CondaUpstream + +// NewCondaUpstream instantiates a new CondaUpstream 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 NewCondaUpstream(name string, upstreamUrl string) *CondaUpstream { + this := CondaUpstream{} + var authMode string = "None" + this.AuthMode = &authMode + var mode string = "Proxy Only" + this.Mode = &mode + this.Name = name + this.UpstreamUrl = upstreamUrl + return &this +} + +// NewCondaUpstreamWithDefaults instantiates a new CondaUpstream 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 NewCondaUpstreamWithDefaults() *CondaUpstream { + this := CondaUpstream{} + var authMode string = "None" + this.AuthMode = &authMode + var mode string = "Proxy Only" + this.Mode = &mode + return &this +} + +// GetAuthMode returns the AuthMode field value if set, zero value otherwise. +func (o *CondaUpstream) GetAuthMode() string { + if o == nil || IsNil(o.AuthMode) { + var ret string + return ret + } + return *o.AuthMode +} + +// GetAuthModeOk returns a tuple with the AuthMode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CondaUpstream) GetAuthModeOk() (*string, bool) { + if o == nil || IsNil(o.AuthMode) { + return nil, false + } + return o.AuthMode, true +} + +// HasAuthMode returns a boolean if a field has been set. +func (o *CondaUpstream) HasAuthMode() bool { + if o != nil && !IsNil(o.AuthMode) { + return true + } + + return false +} + +// SetAuthMode gets a reference to the given string and assigns it to the AuthMode field. +func (o *CondaUpstream) SetAuthMode(v string) { + o.AuthMode = &v +} + +// GetAuthSecret returns the AuthSecret field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CondaUpstream) GetAuthSecret() string { + if o == nil || IsNil(o.AuthSecret.Get()) { + var ret string + return ret + } + return *o.AuthSecret.Get() +} + +// GetAuthSecretOk returns a tuple with the AuthSecret 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) GetAuthSecretOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AuthSecret.Get(), o.AuthSecret.IsSet() +} + +// HasAuthSecret returns a boolean if a field has been set. +func (o *CondaUpstream) HasAuthSecret() bool { + if o != nil && o.AuthSecret.IsSet() { + return true + } + + return false +} + +// SetAuthSecret gets a reference to the given NullableString and assigns it to the AuthSecret field. +func (o *CondaUpstream) SetAuthSecret(v string) { + o.AuthSecret.Set(&v) +} + +// SetAuthSecretNil sets the value for AuthSecret to be an explicit nil +func (o *CondaUpstream) SetAuthSecretNil() { + o.AuthSecret.Set(nil) +} + +// UnsetAuthSecret ensures that no value is present for AuthSecret, not even an explicit nil +func (o *CondaUpstream) UnsetAuthSecret() { + o.AuthSecret.Unset() +} + +// GetAuthUsername returns the AuthUsername field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CondaUpstream) GetAuthUsername() string { + if o == nil || IsNil(o.AuthUsername.Get()) { + var ret string + return ret + } + return *o.AuthUsername.Get() +} + +// GetAuthUsernameOk returns a tuple with the AuthUsername 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) GetAuthUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AuthUsername.Get(), o.AuthUsername.IsSet() +} + +// HasAuthUsername returns a boolean if a field has been set. +func (o *CondaUpstream) HasAuthUsername() bool { + if o != nil && o.AuthUsername.IsSet() { + return true + } + + return false +} + +// SetAuthUsername gets a reference to the given NullableString and assigns it to the AuthUsername field. +func (o *CondaUpstream) SetAuthUsername(v string) { + o.AuthUsername.Set(&v) +} + +// SetAuthUsernameNil sets the value for AuthUsername to be an explicit nil +func (o *CondaUpstream) SetAuthUsernameNil() { + o.AuthUsername.Set(nil) +} + +// UnsetAuthUsername ensures that no value is present for AuthUsername, not even an explicit nil +func (o *CondaUpstream) UnsetAuthUsername() { + o.AuthUsername.Unset() +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *CondaUpstream) GetCreatedAt() time.Time { + if o == nil || IsNil(o.CreatedAt) { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CondaUpstream) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.CreatedAt) { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *CondaUpstream) HasCreatedAt() bool { + if o != nil && !IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *CondaUpstream) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetDisableReason returns the DisableReason field value if set, zero value otherwise. +func (o *CondaUpstream) GetDisableReason() string { + if o == nil || IsNil(o.DisableReason) { + var ret string + return ret + } + return *o.DisableReason +} + +// GetDisableReasonOk returns a tuple with the DisableReason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CondaUpstream) GetDisableReasonOk() (*string, bool) { + if o == nil || IsNil(o.DisableReason) { + return nil, false + } + return o.DisableReason, true +} + +// HasDisableReason returns a boolean if a field has been set. +func (o *CondaUpstream) HasDisableReason() bool { + if o != nil && !IsNil(o.DisableReason) { + return true + } + + return false +} + +// SetDisableReason gets a reference to the given string and assigns it to the DisableReason field. +func (o *CondaUpstream) SetDisableReason(v string) { + o.DisableReason = &v +} + +// GetExtraHeader1 returns the ExtraHeader1 field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CondaUpstream) GetExtraHeader1() string { + if o == nil || IsNil(o.ExtraHeader1.Get()) { + var ret string + return ret + } + return *o.ExtraHeader1.Get() +} + +// GetExtraHeader1Ok returns a tuple with the ExtraHeader1 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) GetExtraHeader1Ok() (*string, bool) { + if o == nil { + return nil, false + } + return o.ExtraHeader1.Get(), o.ExtraHeader1.IsSet() +} + +// HasExtraHeader1 returns a boolean if a field has been set. +func (o *CondaUpstream) HasExtraHeader1() bool { + if o != nil && o.ExtraHeader1.IsSet() { + return true + } + + return false +} + +// SetExtraHeader1 gets a reference to the given NullableString and assigns it to the ExtraHeader1 field. +func (o *CondaUpstream) SetExtraHeader1(v string) { + o.ExtraHeader1.Set(&v) +} + +// SetExtraHeader1Nil sets the value for ExtraHeader1 to be an explicit nil +func (o *CondaUpstream) SetExtraHeader1Nil() { + o.ExtraHeader1.Set(nil) +} + +// UnsetExtraHeader1 ensures that no value is present for ExtraHeader1, not even an explicit nil +func (o *CondaUpstream) UnsetExtraHeader1() { + o.ExtraHeader1.Unset() +} + +// GetExtraHeader2 returns the ExtraHeader2 field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CondaUpstream) GetExtraHeader2() string { + if o == nil || IsNil(o.ExtraHeader2.Get()) { + var ret string + return ret + } + return *o.ExtraHeader2.Get() +} + +// GetExtraHeader2Ok returns a tuple with the ExtraHeader2 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) GetExtraHeader2Ok() (*string, bool) { + if o == nil { + return nil, false + } + return o.ExtraHeader2.Get(), o.ExtraHeader2.IsSet() +} + +// HasExtraHeader2 returns a boolean if a field has been set. +func (o *CondaUpstream) HasExtraHeader2() bool { + if o != nil && o.ExtraHeader2.IsSet() { + return true + } + + return false +} + +// SetExtraHeader2 gets a reference to the given NullableString and assigns it to the ExtraHeader2 field. +func (o *CondaUpstream) SetExtraHeader2(v string) { + o.ExtraHeader2.Set(&v) +} + +// SetExtraHeader2Nil sets the value for ExtraHeader2 to be an explicit nil +func (o *CondaUpstream) SetExtraHeader2Nil() { + o.ExtraHeader2.Set(nil) +} + +// UnsetExtraHeader2 ensures that no value is present for ExtraHeader2, not even an explicit nil +func (o *CondaUpstream) UnsetExtraHeader2() { + o.ExtraHeader2.Unset() +} + +// GetExtraValue1 returns the ExtraValue1 field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CondaUpstream) GetExtraValue1() string { + if o == nil || IsNil(o.ExtraValue1.Get()) { + var ret string + return ret + } + return *o.ExtraValue1.Get() +} + +// GetExtraValue1Ok returns a tuple with the ExtraValue1 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) GetExtraValue1Ok() (*string, bool) { + if o == nil { + return nil, false + } + return o.ExtraValue1.Get(), o.ExtraValue1.IsSet() +} + +// HasExtraValue1 returns a boolean if a field has been set. +func (o *CondaUpstream) HasExtraValue1() bool { + if o != nil && o.ExtraValue1.IsSet() { + return true + } + + return false +} + +// SetExtraValue1 gets a reference to the given NullableString and assigns it to the ExtraValue1 field. +func (o *CondaUpstream) SetExtraValue1(v string) { + o.ExtraValue1.Set(&v) +} + +// SetExtraValue1Nil sets the value for ExtraValue1 to be an explicit nil +func (o *CondaUpstream) SetExtraValue1Nil() { + o.ExtraValue1.Set(nil) +} + +// UnsetExtraValue1 ensures that no value is present for ExtraValue1, not even an explicit nil +func (o *CondaUpstream) UnsetExtraValue1() { + o.ExtraValue1.Unset() +} + +// GetExtraValue2 returns the ExtraValue2 field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CondaUpstream) GetExtraValue2() string { + if o == nil || IsNil(o.ExtraValue2.Get()) { + var ret string + return ret + } + return *o.ExtraValue2.Get() +} + +// GetExtraValue2Ok returns a tuple with the ExtraValue2 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) GetExtraValue2Ok() (*string, bool) { + if o == nil { + return nil, false + } + return o.ExtraValue2.Get(), o.ExtraValue2.IsSet() +} + +// HasExtraValue2 returns a boolean if a field has been set. +func (o *CondaUpstream) HasExtraValue2() bool { + if o != nil && o.ExtraValue2.IsSet() { + return true + } + + return false +} + +// SetExtraValue2 gets a reference to the given NullableString and assigns it to the ExtraValue2 field. +func (o *CondaUpstream) SetExtraValue2(v string) { + o.ExtraValue2.Set(&v) +} + +// SetExtraValue2Nil sets the value for ExtraValue2 to be an explicit nil +func (o *CondaUpstream) SetExtraValue2Nil() { + o.ExtraValue2.Set(nil) +} + +// UnsetExtraValue2 ensures that no value is present for ExtraValue2, not even an explicit nil +func (o *CondaUpstream) UnsetExtraValue2() { + o.ExtraValue2.Unset() +} + +// GetIsActive returns the IsActive field value if set, zero value otherwise. +func (o *CondaUpstream) GetIsActive() bool { + if o == nil || IsNil(o.IsActive) { + var ret bool + return ret + } + return *o.IsActive +} + +// GetIsActiveOk returns a tuple with the IsActive field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CondaUpstream) GetIsActiveOk() (*bool, bool) { + if o == nil || IsNil(o.IsActive) { + return nil, false + } + return o.IsActive, true +} + +// HasIsActive returns a boolean if a field has been set. +func (o *CondaUpstream) HasIsActive() bool { + if o != nil && !IsNil(o.IsActive) { + return true + } + + return false +} + +// SetIsActive gets a reference to the given bool and assigns it to the IsActive field. +func (o *CondaUpstream) SetIsActive(v bool) { + o.IsActive = &v +} + +// GetMode returns the Mode field value if set, zero value otherwise. +func (o *CondaUpstream) GetMode() string { + if o == nil || IsNil(o.Mode) { + var ret string + return ret + } + return *o.Mode +} + +// GetModeOk returns a tuple with the Mode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CondaUpstream) GetModeOk() (*string, bool) { + if o == nil || IsNil(o.Mode) { + return nil, false + } + return o.Mode, true +} + +// HasMode returns a boolean if a field has been set. +func (o *CondaUpstream) HasMode() bool { + if o != nil && !IsNil(o.Mode) { + return true + } + + return false +} + +// SetMode gets a reference to the given string and assigns it to the Mode field. +func (o *CondaUpstream) SetMode(v string) { + o.Mode = &v +} + +// GetName returns the Name field value +func (o *CondaUpstream) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *CondaUpstream) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *CondaUpstream) SetName(v string) { + o.Name = v +} + +// GetPendingValidation returns the PendingValidation field value if set, zero value otherwise. +func (o *CondaUpstream) GetPendingValidation() bool { + if o == nil || IsNil(o.PendingValidation) { + var ret bool + return ret + } + return *o.PendingValidation +} + +// GetPendingValidationOk returns a tuple with the PendingValidation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CondaUpstream) GetPendingValidationOk() (*bool, bool) { + if o == nil || IsNil(o.PendingValidation) { + return nil, false + } + return o.PendingValidation, true +} + +// HasPendingValidation returns a boolean if a field has been set. +func (o *CondaUpstream) HasPendingValidation() bool { + if o != nil && !IsNil(o.PendingValidation) { + return true + } + + return false +} + +// SetPendingValidation gets a reference to the given bool and assigns it to the PendingValidation field. +func (o *CondaUpstream) SetPendingValidation(v bool) { + o.PendingValidation = &v +} + +// GetPriority returns the Priority field value if set, zero value otherwise. +func (o *CondaUpstream) GetPriority() int64 { + if o == nil || IsNil(o.Priority) { + var ret int64 + return ret + } + return *o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CondaUpstream) GetPriorityOk() (*int64, bool) { + if o == nil || IsNil(o.Priority) { + return nil, false + } + return o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *CondaUpstream) HasPriority() bool { + if o != nil && !IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given int64 and assigns it to the Priority field. +func (o *CondaUpstream) SetPriority(v int64) { + o.Priority = &v +} + +// GetSlugPerm returns the SlugPerm field value if set, zero value otherwise. +func (o *CondaUpstream) 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 *CondaUpstream) 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 *CondaUpstream) 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 *CondaUpstream) SetSlugPerm(v string) { + o.SlugPerm = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *CondaUpstream) GetUpdatedAt() time.Time { + if o == nil || IsNil(o.UpdatedAt) { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CondaUpstream) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.UpdatedAt) { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *CondaUpstream) HasUpdatedAt() bool { + if o != nil && !IsNil(o.UpdatedAt) { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *CondaUpstream) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +// GetUpstreamUrl returns the UpstreamUrl field value +func (o *CondaUpstream) GetUpstreamUrl() string { + if o == nil { + var ret string + return ret + } + + return o.UpstreamUrl +} + +// GetUpstreamUrlOk returns a tuple with the UpstreamUrl field value +// and a boolean to check if the value has been set. +func (o *CondaUpstream) GetUpstreamUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.UpstreamUrl, true +} + +// SetUpstreamUrl sets field value +func (o *CondaUpstream) SetUpstreamUrl(v string) { + o.UpstreamUrl = v +} + +// GetVerifySsl returns the VerifySsl field value if set, zero value otherwise. +func (o *CondaUpstream) GetVerifySsl() bool { + if o == nil || IsNil(o.VerifySsl) { + var ret bool + return ret + } + return *o.VerifySsl +} + +// GetVerifySslOk returns a tuple with the VerifySsl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CondaUpstream) GetVerifySslOk() (*bool, bool) { + if o == nil || IsNil(o.VerifySsl) { + return nil, false + } + return o.VerifySsl, true +} + +// HasVerifySsl returns a boolean if a field has been set. +func (o *CondaUpstream) HasVerifySsl() bool { + if o != nil && !IsNil(o.VerifySsl) { + return true + } + + return false +} + +// SetVerifySsl gets a reference to the given bool and assigns it to the VerifySsl field. +func (o *CondaUpstream) SetVerifySsl(v bool) { + o.VerifySsl = &v +} + +func (o CondaUpstream) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CondaUpstream) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AuthMode) { + toSerialize["auth_mode"] = o.AuthMode + } + if o.AuthSecret.IsSet() { + toSerialize["auth_secret"] = o.AuthSecret.Get() + } + if o.AuthUsername.IsSet() { + toSerialize["auth_username"] = o.AuthUsername.Get() + } + if !IsNil(o.CreatedAt) { + toSerialize["created_at"] = o.CreatedAt + } + if !IsNil(o.DisableReason) { + toSerialize["disable_reason"] = o.DisableReason + } + if o.ExtraHeader1.IsSet() { + toSerialize["extra_header_1"] = o.ExtraHeader1.Get() + } + if o.ExtraHeader2.IsSet() { + toSerialize["extra_header_2"] = o.ExtraHeader2.Get() + } + if o.ExtraValue1.IsSet() { + toSerialize["extra_value_1"] = o.ExtraValue1.Get() + } + if o.ExtraValue2.IsSet() { + toSerialize["extra_value_2"] = o.ExtraValue2.Get() + } + if !IsNil(o.IsActive) { + toSerialize["is_active"] = o.IsActive + } + if !IsNil(o.Mode) { + toSerialize["mode"] = o.Mode + } + toSerialize["name"] = o.Name + if !IsNil(o.PendingValidation) { + toSerialize["pending_validation"] = o.PendingValidation + } + if !IsNil(o.Priority) { + toSerialize["priority"] = o.Priority + } + if !IsNil(o.SlugPerm) { + toSerialize["slug_perm"] = o.SlugPerm + } + if !IsNil(o.UpdatedAt) { + toSerialize["updated_at"] = o.UpdatedAt + } + toSerialize["upstream_url"] = o.UpstreamUrl + if !IsNil(o.VerifySsl) { + toSerialize["verify_ssl"] = o.VerifySsl + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CondaUpstream) 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{ + "name", + "upstream_url", + } + + 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) + } + } + + varCondaUpstream := _CondaUpstream{} + + err = json.Unmarshal(data, &varCondaUpstream) + + if err != nil { + return err + } + + *o = CondaUpstream(varCondaUpstream) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "auth_mode") + delete(additionalProperties, "auth_secret") + delete(additionalProperties, "auth_username") + delete(additionalProperties, "created_at") + delete(additionalProperties, "disable_reason") + delete(additionalProperties, "extra_header_1") + delete(additionalProperties, "extra_header_2") + delete(additionalProperties, "extra_value_1") + delete(additionalProperties, "extra_value_2") + delete(additionalProperties, "is_active") + delete(additionalProperties, "mode") + delete(additionalProperties, "name") + delete(additionalProperties, "pending_validation") + delete(additionalProperties, "priority") + delete(additionalProperties, "slug_perm") + delete(additionalProperties, "updated_at") + delete(additionalProperties, "upstream_url") + delete(additionalProperties, "verify_ssl") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCondaUpstream struct { + value *CondaUpstream + isSet bool +} + +func (v NullableCondaUpstream) Get() *CondaUpstream { + return v.value +} + +func (v *NullableCondaUpstream) Set(val *CondaUpstream) { + v.value = val + v.isSet = true +} + +func (v NullableCondaUpstream) IsSet() bool { + return v.isSet +} + +func (v *NullableCondaUpstream) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCondaUpstream(val *CondaUpstream) *NullableCondaUpstream { + return &NullableCondaUpstream{value: val, isSet: true} +} + +func (v NullableCondaUpstream) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCondaUpstream) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_conda_upstream_request.go b/model_conda_upstream_request.go new file mode 100644 index 00000000..b3b24951 --- /dev/null +++ b/model_conda_upstream_request.go @@ -0,0 +1,690 @@ +/* +Cloudsmith API (v1) + +The API to the Cloudsmith Service + +API version: 1.830.6 +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 CondaUpstreamRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CondaUpstreamRequest{} + +// CondaUpstreamRequest struct for CondaUpstreamRequest +type CondaUpstreamRequest struct { + // The authentication mode to use when accessing this upstream. + AuthMode *string `json:"auth_mode,omitempty"` + // Secret to provide with requests to upstream. + AuthSecret NullableString `json:"auth_secret,omitempty"` + // Username to provide with requests to upstream. + AuthUsername NullableString `json:"auth_username,omitempty"` + // The key for extra header #1 to send to upstream. + ExtraHeader1 NullableString `json:"extra_header_1,omitempty" validate:"regexp=^[-\\\\w]+$"` + // The key for extra header #2 to send to upstream. + ExtraHeader2 NullableString `json:"extra_header_2,omitempty" validate:"regexp=^[-\\\\w]+$"` + // The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. + ExtraValue1 NullableString `json:"extra_value_1,omitempty" validate:"regexp=^[^\\\\n\\\\r]+$"` + // The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. + ExtraValue2 NullableString `json:"extra_value_2,omitempty" validate:"regexp=^[^\\\\n\\\\r]+$"` + // Whether or not this upstream is active and ready for requests. + IsActive *bool `json:"is_active,omitempty"` + // 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. + Mode *string `json:"mode,omitempty"` + // A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. + 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"` + // 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. + VerifySsl *bool `json:"verify_ssl,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CondaUpstreamRequest CondaUpstreamRequest + +// NewCondaUpstreamRequest instantiates a new CondaUpstreamRequest 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 NewCondaUpstreamRequest(name string, upstreamUrl string) *CondaUpstreamRequest { + this := CondaUpstreamRequest{} + var authMode string = "None" + this.AuthMode = &authMode + var mode string = "Proxy Only" + this.Mode = &mode + this.Name = name + this.UpstreamUrl = upstreamUrl + return &this +} + +// NewCondaUpstreamRequestWithDefaults instantiates a new CondaUpstreamRequest 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 NewCondaUpstreamRequestWithDefaults() *CondaUpstreamRequest { + this := CondaUpstreamRequest{} + var authMode string = "None" + this.AuthMode = &authMode + var mode string = "Proxy Only" + this.Mode = &mode + return &this +} + +// GetAuthMode returns the AuthMode field value if set, zero value otherwise. +func (o *CondaUpstreamRequest) GetAuthMode() string { + if o == nil || IsNil(o.AuthMode) { + var ret string + return ret + } + return *o.AuthMode +} + +// GetAuthModeOk returns a tuple with the AuthMode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CondaUpstreamRequest) GetAuthModeOk() (*string, bool) { + if o == nil || IsNil(o.AuthMode) { + return nil, false + } + return o.AuthMode, true +} + +// HasAuthMode returns a boolean if a field has been set. +func (o *CondaUpstreamRequest) HasAuthMode() bool { + if o != nil && !IsNil(o.AuthMode) { + return true + } + + return false +} + +// SetAuthMode gets a reference to the given string and assigns it to the AuthMode field. +func (o *CondaUpstreamRequest) SetAuthMode(v string) { + o.AuthMode = &v +} + +// GetAuthSecret returns the AuthSecret field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CondaUpstreamRequest) GetAuthSecret() string { + if o == nil || IsNil(o.AuthSecret.Get()) { + var ret string + return ret + } + return *o.AuthSecret.Get() +} + +// GetAuthSecretOk returns a tuple with the AuthSecret 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 *CondaUpstreamRequest) GetAuthSecretOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AuthSecret.Get(), o.AuthSecret.IsSet() +} + +// HasAuthSecret returns a boolean if a field has been set. +func (o *CondaUpstreamRequest) HasAuthSecret() bool { + if o != nil && o.AuthSecret.IsSet() { + return true + } + + return false +} + +// SetAuthSecret gets a reference to the given NullableString and assigns it to the AuthSecret field. +func (o *CondaUpstreamRequest) SetAuthSecret(v string) { + o.AuthSecret.Set(&v) +} + +// SetAuthSecretNil sets the value for AuthSecret to be an explicit nil +func (o *CondaUpstreamRequest) SetAuthSecretNil() { + o.AuthSecret.Set(nil) +} + +// UnsetAuthSecret ensures that no value is present for AuthSecret, not even an explicit nil +func (o *CondaUpstreamRequest) UnsetAuthSecret() { + o.AuthSecret.Unset() +} + +// GetAuthUsername returns the AuthUsername field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CondaUpstreamRequest) GetAuthUsername() string { + if o == nil || IsNil(o.AuthUsername.Get()) { + var ret string + return ret + } + return *o.AuthUsername.Get() +} + +// GetAuthUsernameOk returns a tuple with the AuthUsername 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 *CondaUpstreamRequest) GetAuthUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AuthUsername.Get(), o.AuthUsername.IsSet() +} + +// HasAuthUsername returns a boolean if a field has been set. +func (o *CondaUpstreamRequest) HasAuthUsername() bool { + if o != nil && o.AuthUsername.IsSet() { + return true + } + + return false +} + +// SetAuthUsername gets a reference to the given NullableString and assigns it to the AuthUsername field. +func (o *CondaUpstreamRequest) SetAuthUsername(v string) { + o.AuthUsername.Set(&v) +} + +// SetAuthUsernameNil sets the value for AuthUsername to be an explicit nil +func (o *CondaUpstreamRequest) SetAuthUsernameNil() { + o.AuthUsername.Set(nil) +} + +// UnsetAuthUsername ensures that no value is present for AuthUsername, not even an explicit nil +func (o *CondaUpstreamRequest) UnsetAuthUsername() { + o.AuthUsername.Unset() +} + +// GetExtraHeader1 returns the ExtraHeader1 field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CondaUpstreamRequest) GetExtraHeader1() string { + if o == nil || IsNil(o.ExtraHeader1.Get()) { + var ret string + return ret + } + return *o.ExtraHeader1.Get() +} + +// GetExtraHeader1Ok returns a tuple with the ExtraHeader1 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 *CondaUpstreamRequest) GetExtraHeader1Ok() (*string, bool) { + if o == nil { + return nil, false + } + return o.ExtraHeader1.Get(), o.ExtraHeader1.IsSet() +} + +// HasExtraHeader1 returns a boolean if a field has been set. +func (o *CondaUpstreamRequest) HasExtraHeader1() bool { + if o != nil && o.ExtraHeader1.IsSet() { + return true + } + + return false +} + +// SetExtraHeader1 gets a reference to the given NullableString and assigns it to the ExtraHeader1 field. +func (o *CondaUpstreamRequest) SetExtraHeader1(v string) { + o.ExtraHeader1.Set(&v) +} + +// SetExtraHeader1Nil sets the value for ExtraHeader1 to be an explicit nil +func (o *CondaUpstreamRequest) SetExtraHeader1Nil() { + o.ExtraHeader1.Set(nil) +} + +// UnsetExtraHeader1 ensures that no value is present for ExtraHeader1, not even an explicit nil +func (o *CondaUpstreamRequest) UnsetExtraHeader1() { + o.ExtraHeader1.Unset() +} + +// GetExtraHeader2 returns the ExtraHeader2 field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CondaUpstreamRequest) GetExtraHeader2() string { + if o == nil || IsNil(o.ExtraHeader2.Get()) { + var ret string + return ret + } + return *o.ExtraHeader2.Get() +} + +// GetExtraHeader2Ok returns a tuple with the ExtraHeader2 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 *CondaUpstreamRequest) GetExtraHeader2Ok() (*string, bool) { + if o == nil { + return nil, false + } + return o.ExtraHeader2.Get(), o.ExtraHeader2.IsSet() +} + +// HasExtraHeader2 returns a boolean if a field has been set. +func (o *CondaUpstreamRequest) HasExtraHeader2() bool { + if o != nil && o.ExtraHeader2.IsSet() { + return true + } + + return false +} + +// SetExtraHeader2 gets a reference to the given NullableString and assigns it to the ExtraHeader2 field. +func (o *CondaUpstreamRequest) SetExtraHeader2(v string) { + o.ExtraHeader2.Set(&v) +} + +// SetExtraHeader2Nil sets the value for ExtraHeader2 to be an explicit nil +func (o *CondaUpstreamRequest) SetExtraHeader2Nil() { + o.ExtraHeader2.Set(nil) +} + +// UnsetExtraHeader2 ensures that no value is present for ExtraHeader2, not even an explicit nil +func (o *CondaUpstreamRequest) UnsetExtraHeader2() { + o.ExtraHeader2.Unset() +} + +// GetExtraValue1 returns the ExtraValue1 field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CondaUpstreamRequest) GetExtraValue1() string { + if o == nil || IsNil(o.ExtraValue1.Get()) { + var ret string + return ret + } + return *o.ExtraValue1.Get() +} + +// GetExtraValue1Ok returns a tuple with the ExtraValue1 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 *CondaUpstreamRequest) GetExtraValue1Ok() (*string, bool) { + if o == nil { + return nil, false + } + return o.ExtraValue1.Get(), o.ExtraValue1.IsSet() +} + +// HasExtraValue1 returns a boolean if a field has been set. +func (o *CondaUpstreamRequest) HasExtraValue1() bool { + if o != nil && o.ExtraValue1.IsSet() { + return true + } + + return false +} + +// SetExtraValue1 gets a reference to the given NullableString and assigns it to the ExtraValue1 field. +func (o *CondaUpstreamRequest) SetExtraValue1(v string) { + o.ExtraValue1.Set(&v) +} + +// SetExtraValue1Nil sets the value for ExtraValue1 to be an explicit nil +func (o *CondaUpstreamRequest) SetExtraValue1Nil() { + o.ExtraValue1.Set(nil) +} + +// UnsetExtraValue1 ensures that no value is present for ExtraValue1, not even an explicit nil +func (o *CondaUpstreamRequest) UnsetExtraValue1() { + o.ExtraValue1.Unset() +} + +// GetExtraValue2 returns the ExtraValue2 field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CondaUpstreamRequest) GetExtraValue2() string { + if o == nil || IsNil(o.ExtraValue2.Get()) { + var ret string + return ret + } + return *o.ExtraValue2.Get() +} + +// GetExtraValue2Ok returns a tuple with the ExtraValue2 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 *CondaUpstreamRequest) GetExtraValue2Ok() (*string, bool) { + if o == nil { + return nil, false + } + return o.ExtraValue2.Get(), o.ExtraValue2.IsSet() +} + +// HasExtraValue2 returns a boolean if a field has been set. +func (o *CondaUpstreamRequest) HasExtraValue2() bool { + if o != nil && o.ExtraValue2.IsSet() { + return true + } + + return false +} + +// SetExtraValue2 gets a reference to the given NullableString and assigns it to the ExtraValue2 field. +func (o *CondaUpstreamRequest) SetExtraValue2(v string) { + o.ExtraValue2.Set(&v) +} + +// SetExtraValue2Nil sets the value for ExtraValue2 to be an explicit nil +func (o *CondaUpstreamRequest) SetExtraValue2Nil() { + o.ExtraValue2.Set(nil) +} + +// UnsetExtraValue2 ensures that no value is present for ExtraValue2, not even an explicit nil +func (o *CondaUpstreamRequest) UnsetExtraValue2() { + o.ExtraValue2.Unset() +} + +// GetIsActive returns the IsActive field value if set, zero value otherwise. +func (o *CondaUpstreamRequest) GetIsActive() bool { + if o == nil || IsNil(o.IsActive) { + var ret bool + return ret + } + return *o.IsActive +} + +// GetIsActiveOk returns a tuple with the IsActive field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CondaUpstreamRequest) GetIsActiveOk() (*bool, bool) { + if o == nil || IsNil(o.IsActive) { + return nil, false + } + return o.IsActive, true +} + +// HasIsActive returns a boolean if a field has been set. +func (o *CondaUpstreamRequest) HasIsActive() bool { + if o != nil && !IsNil(o.IsActive) { + return true + } + + return false +} + +// SetIsActive gets a reference to the given bool and assigns it to the IsActive field. +func (o *CondaUpstreamRequest) SetIsActive(v bool) { + o.IsActive = &v +} + +// GetMode returns the Mode field value if set, zero value otherwise. +func (o *CondaUpstreamRequest) GetMode() string { + if o == nil || IsNil(o.Mode) { + var ret string + return ret + } + return *o.Mode +} + +// GetModeOk returns a tuple with the Mode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CondaUpstreamRequest) GetModeOk() (*string, bool) { + if o == nil || IsNil(o.Mode) { + return nil, false + } + return o.Mode, true +} + +// HasMode returns a boolean if a field has been set. +func (o *CondaUpstreamRequest) HasMode() bool { + if o != nil && !IsNil(o.Mode) { + return true + } + + return false +} + +// SetMode gets a reference to the given string and assigns it to the Mode field. +func (o *CondaUpstreamRequest) SetMode(v string) { + o.Mode = &v +} + +// GetName returns the Name field value +func (o *CondaUpstreamRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *CondaUpstreamRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *CondaUpstreamRequest) SetName(v string) { + o.Name = v +} + +// GetPriority returns the Priority field value if set, zero value otherwise. +func (o *CondaUpstreamRequest) GetPriority() int64 { + if o == nil || IsNil(o.Priority) { + var ret int64 + return ret + } + return *o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CondaUpstreamRequest) GetPriorityOk() (*int64, bool) { + if o == nil || IsNil(o.Priority) { + return nil, false + } + return o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *CondaUpstreamRequest) HasPriority() bool { + if o != nil && !IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given int64 and assigns it to the Priority field. +func (o *CondaUpstreamRequest) SetPriority(v int64) { + o.Priority = &v +} + +// GetUpstreamUrl returns the UpstreamUrl field value +func (o *CondaUpstreamRequest) GetUpstreamUrl() string { + if o == nil { + var ret string + return ret + } + + return o.UpstreamUrl +} + +// GetUpstreamUrlOk returns a tuple with the UpstreamUrl field value +// and a boolean to check if the value has been set. +func (o *CondaUpstreamRequest) GetUpstreamUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.UpstreamUrl, true +} + +// SetUpstreamUrl sets field value +func (o *CondaUpstreamRequest) SetUpstreamUrl(v string) { + o.UpstreamUrl = v +} + +// GetVerifySsl returns the VerifySsl field value if set, zero value otherwise. +func (o *CondaUpstreamRequest) GetVerifySsl() bool { + if o == nil || IsNil(o.VerifySsl) { + var ret bool + return ret + } + return *o.VerifySsl +} + +// GetVerifySslOk returns a tuple with the VerifySsl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CondaUpstreamRequest) GetVerifySslOk() (*bool, bool) { + if o == nil || IsNil(o.VerifySsl) { + return nil, false + } + return o.VerifySsl, true +} + +// HasVerifySsl returns a boolean if a field has been set. +func (o *CondaUpstreamRequest) HasVerifySsl() bool { + if o != nil && !IsNil(o.VerifySsl) { + return true + } + + return false +} + +// SetVerifySsl gets a reference to the given bool and assigns it to the VerifySsl field. +func (o *CondaUpstreamRequest) SetVerifySsl(v bool) { + o.VerifySsl = &v +} + +func (o CondaUpstreamRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CondaUpstreamRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AuthMode) { + toSerialize["auth_mode"] = o.AuthMode + } + if o.AuthSecret.IsSet() { + toSerialize["auth_secret"] = o.AuthSecret.Get() + } + if o.AuthUsername.IsSet() { + toSerialize["auth_username"] = o.AuthUsername.Get() + } + if o.ExtraHeader1.IsSet() { + toSerialize["extra_header_1"] = o.ExtraHeader1.Get() + } + if o.ExtraHeader2.IsSet() { + toSerialize["extra_header_2"] = o.ExtraHeader2.Get() + } + if o.ExtraValue1.IsSet() { + toSerialize["extra_value_1"] = o.ExtraValue1.Get() + } + if o.ExtraValue2.IsSet() { + toSerialize["extra_value_2"] = o.ExtraValue2.Get() + } + if !IsNil(o.IsActive) { + toSerialize["is_active"] = o.IsActive + } + if !IsNil(o.Mode) { + toSerialize["mode"] = o.Mode + } + toSerialize["name"] = o.Name + if !IsNil(o.Priority) { + toSerialize["priority"] = o.Priority + } + toSerialize["upstream_url"] = o.UpstreamUrl + if !IsNil(o.VerifySsl) { + toSerialize["verify_ssl"] = o.VerifySsl + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CondaUpstreamRequest) 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{ + "name", + "upstream_url", + } + + 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) + } + } + + varCondaUpstreamRequest := _CondaUpstreamRequest{} + + err = json.Unmarshal(data, &varCondaUpstreamRequest) + + if err != nil { + return err + } + + *o = CondaUpstreamRequest(varCondaUpstreamRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "auth_mode") + delete(additionalProperties, "auth_secret") + delete(additionalProperties, "auth_username") + delete(additionalProperties, "extra_header_1") + delete(additionalProperties, "extra_header_2") + delete(additionalProperties, "extra_value_1") + delete(additionalProperties, "extra_value_2") + delete(additionalProperties, "is_active") + delete(additionalProperties, "mode") + delete(additionalProperties, "name") + delete(additionalProperties, "priority") + delete(additionalProperties, "upstream_url") + delete(additionalProperties, "verify_ssl") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCondaUpstreamRequest struct { + value *CondaUpstreamRequest + isSet bool +} + +func (v NullableCondaUpstreamRequest) Get() *CondaUpstreamRequest { + return v.value +} + +func (v *NullableCondaUpstreamRequest) Set(val *CondaUpstreamRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCondaUpstreamRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCondaUpstreamRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCondaUpstreamRequest(val *CondaUpstreamRequest) *NullableCondaUpstreamRequest { + return &NullableCondaUpstreamRequest{value: val, isSet: true} +} + +func (v NullableCondaUpstreamRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCondaUpstreamRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_conda_upstream_request_patch.go b/model_conda_upstream_request_patch.go new file mode 100644 index 00000000..7f0bf594 --- /dev/null +++ b/model_conda_upstream_request_patch.go @@ -0,0 +1,685 @@ +/* +Cloudsmith API (v1) + +The API to the Cloudsmith Service + +API version: 1.830.6 +Contact: support@cloudsmith.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cloudsmith + +import ( + "encoding/json" +) + +// checks if the CondaUpstreamRequestPatch type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CondaUpstreamRequestPatch{} + +// CondaUpstreamRequestPatch struct for CondaUpstreamRequestPatch +type CondaUpstreamRequestPatch struct { + // The authentication mode to use when accessing this upstream. + AuthMode *string `json:"auth_mode,omitempty"` + // Secret to provide with requests to upstream. + AuthSecret NullableString `json:"auth_secret,omitempty"` + // Username to provide with requests to upstream. + AuthUsername NullableString `json:"auth_username,omitempty"` + // The key for extra header #1 to send to upstream. + ExtraHeader1 NullableString `json:"extra_header_1,omitempty" validate:"regexp=^[-\\\\w]+$"` + // The key for extra header #2 to send to upstream. + ExtraHeader2 NullableString `json:"extra_header_2,omitempty" validate:"regexp=^[-\\\\w]+$"` + // The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. + ExtraValue1 NullableString `json:"extra_value_1,omitempty" validate:"regexp=^[^\\\\n\\\\r]+$"` + // The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. + ExtraValue2 NullableString `json:"extra_value_2,omitempty" validate:"regexp=^[^\\\\n\\\\r]+$"` + // Whether or not this upstream is active and ready for requests. + IsActive *bool `json:"is_active,omitempty"` + // 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. + Mode *string `json:"mode,omitempty"` + // A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. + 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"` + // 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. + VerifySsl *bool `json:"verify_ssl,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CondaUpstreamRequestPatch CondaUpstreamRequestPatch + +// NewCondaUpstreamRequestPatch instantiates a new CondaUpstreamRequestPatch 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 NewCondaUpstreamRequestPatch() *CondaUpstreamRequestPatch { + this := CondaUpstreamRequestPatch{} + var authMode string = "None" + this.AuthMode = &authMode + var mode string = "Proxy Only" + this.Mode = &mode + return &this +} + +// NewCondaUpstreamRequestPatchWithDefaults instantiates a new CondaUpstreamRequestPatch 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 NewCondaUpstreamRequestPatchWithDefaults() *CondaUpstreamRequestPatch { + this := CondaUpstreamRequestPatch{} + var authMode string = "None" + this.AuthMode = &authMode + var mode string = "Proxy Only" + this.Mode = &mode + return &this +} + +// GetAuthMode returns the AuthMode field value if set, zero value otherwise. +func (o *CondaUpstreamRequestPatch) GetAuthMode() string { + if o == nil || IsNil(o.AuthMode) { + var ret string + return ret + } + return *o.AuthMode +} + +// GetAuthModeOk returns a tuple with the AuthMode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CondaUpstreamRequestPatch) GetAuthModeOk() (*string, bool) { + if o == nil || IsNil(o.AuthMode) { + return nil, false + } + return o.AuthMode, true +} + +// HasAuthMode returns a boolean if a field has been set. +func (o *CondaUpstreamRequestPatch) HasAuthMode() bool { + if o != nil && !IsNil(o.AuthMode) { + return true + } + + return false +} + +// SetAuthMode gets a reference to the given string and assigns it to the AuthMode field. +func (o *CondaUpstreamRequestPatch) SetAuthMode(v string) { + o.AuthMode = &v +} + +// GetAuthSecret returns the AuthSecret field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CondaUpstreamRequestPatch) GetAuthSecret() string { + if o == nil || IsNil(o.AuthSecret.Get()) { + var ret string + return ret + } + return *o.AuthSecret.Get() +} + +// GetAuthSecretOk returns a tuple with the AuthSecret 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 *CondaUpstreamRequestPatch) GetAuthSecretOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AuthSecret.Get(), o.AuthSecret.IsSet() +} + +// HasAuthSecret returns a boolean if a field has been set. +func (o *CondaUpstreamRequestPatch) HasAuthSecret() bool { + if o != nil && o.AuthSecret.IsSet() { + return true + } + + return false +} + +// SetAuthSecret gets a reference to the given NullableString and assigns it to the AuthSecret field. +func (o *CondaUpstreamRequestPatch) SetAuthSecret(v string) { + o.AuthSecret.Set(&v) +} + +// SetAuthSecretNil sets the value for AuthSecret to be an explicit nil +func (o *CondaUpstreamRequestPatch) SetAuthSecretNil() { + o.AuthSecret.Set(nil) +} + +// UnsetAuthSecret ensures that no value is present for AuthSecret, not even an explicit nil +func (o *CondaUpstreamRequestPatch) UnsetAuthSecret() { + o.AuthSecret.Unset() +} + +// GetAuthUsername returns the AuthUsername field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CondaUpstreamRequestPatch) GetAuthUsername() string { + if o == nil || IsNil(o.AuthUsername.Get()) { + var ret string + return ret + } + return *o.AuthUsername.Get() +} + +// GetAuthUsernameOk returns a tuple with the AuthUsername 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 *CondaUpstreamRequestPatch) GetAuthUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AuthUsername.Get(), o.AuthUsername.IsSet() +} + +// HasAuthUsername returns a boolean if a field has been set. +func (o *CondaUpstreamRequestPatch) HasAuthUsername() bool { + if o != nil && o.AuthUsername.IsSet() { + return true + } + + return false +} + +// SetAuthUsername gets a reference to the given NullableString and assigns it to the AuthUsername field. +func (o *CondaUpstreamRequestPatch) SetAuthUsername(v string) { + o.AuthUsername.Set(&v) +} + +// SetAuthUsernameNil sets the value for AuthUsername to be an explicit nil +func (o *CondaUpstreamRequestPatch) SetAuthUsernameNil() { + o.AuthUsername.Set(nil) +} + +// UnsetAuthUsername ensures that no value is present for AuthUsername, not even an explicit nil +func (o *CondaUpstreamRequestPatch) UnsetAuthUsername() { + o.AuthUsername.Unset() +} + +// GetExtraHeader1 returns the ExtraHeader1 field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CondaUpstreamRequestPatch) GetExtraHeader1() string { + if o == nil || IsNil(o.ExtraHeader1.Get()) { + var ret string + return ret + } + return *o.ExtraHeader1.Get() +} + +// GetExtraHeader1Ok returns a tuple with the ExtraHeader1 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 *CondaUpstreamRequestPatch) GetExtraHeader1Ok() (*string, bool) { + if o == nil { + return nil, false + } + return o.ExtraHeader1.Get(), o.ExtraHeader1.IsSet() +} + +// HasExtraHeader1 returns a boolean if a field has been set. +func (o *CondaUpstreamRequestPatch) HasExtraHeader1() bool { + if o != nil && o.ExtraHeader1.IsSet() { + return true + } + + return false +} + +// SetExtraHeader1 gets a reference to the given NullableString and assigns it to the ExtraHeader1 field. +func (o *CondaUpstreamRequestPatch) SetExtraHeader1(v string) { + o.ExtraHeader1.Set(&v) +} + +// SetExtraHeader1Nil sets the value for ExtraHeader1 to be an explicit nil +func (o *CondaUpstreamRequestPatch) SetExtraHeader1Nil() { + o.ExtraHeader1.Set(nil) +} + +// UnsetExtraHeader1 ensures that no value is present for ExtraHeader1, not even an explicit nil +func (o *CondaUpstreamRequestPatch) UnsetExtraHeader1() { + o.ExtraHeader1.Unset() +} + +// GetExtraHeader2 returns the ExtraHeader2 field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CondaUpstreamRequestPatch) GetExtraHeader2() string { + if o == nil || IsNil(o.ExtraHeader2.Get()) { + var ret string + return ret + } + return *o.ExtraHeader2.Get() +} + +// GetExtraHeader2Ok returns a tuple with the ExtraHeader2 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 *CondaUpstreamRequestPatch) GetExtraHeader2Ok() (*string, bool) { + if o == nil { + return nil, false + } + return o.ExtraHeader2.Get(), o.ExtraHeader2.IsSet() +} + +// HasExtraHeader2 returns a boolean if a field has been set. +func (o *CondaUpstreamRequestPatch) HasExtraHeader2() bool { + if o != nil && o.ExtraHeader2.IsSet() { + return true + } + + return false +} + +// SetExtraHeader2 gets a reference to the given NullableString and assigns it to the ExtraHeader2 field. +func (o *CondaUpstreamRequestPatch) SetExtraHeader2(v string) { + o.ExtraHeader2.Set(&v) +} + +// SetExtraHeader2Nil sets the value for ExtraHeader2 to be an explicit nil +func (o *CondaUpstreamRequestPatch) SetExtraHeader2Nil() { + o.ExtraHeader2.Set(nil) +} + +// UnsetExtraHeader2 ensures that no value is present for ExtraHeader2, not even an explicit nil +func (o *CondaUpstreamRequestPatch) UnsetExtraHeader2() { + o.ExtraHeader2.Unset() +} + +// GetExtraValue1 returns the ExtraValue1 field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CondaUpstreamRequestPatch) GetExtraValue1() string { + if o == nil || IsNil(o.ExtraValue1.Get()) { + var ret string + return ret + } + return *o.ExtraValue1.Get() +} + +// GetExtraValue1Ok returns a tuple with the ExtraValue1 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 *CondaUpstreamRequestPatch) GetExtraValue1Ok() (*string, bool) { + if o == nil { + return nil, false + } + return o.ExtraValue1.Get(), o.ExtraValue1.IsSet() +} + +// HasExtraValue1 returns a boolean if a field has been set. +func (o *CondaUpstreamRequestPatch) HasExtraValue1() bool { + if o != nil && o.ExtraValue1.IsSet() { + return true + } + + return false +} + +// SetExtraValue1 gets a reference to the given NullableString and assigns it to the ExtraValue1 field. +func (o *CondaUpstreamRequestPatch) SetExtraValue1(v string) { + o.ExtraValue1.Set(&v) +} + +// SetExtraValue1Nil sets the value for ExtraValue1 to be an explicit nil +func (o *CondaUpstreamRequestPatch) SetExtraValue1Nil() { + o.ExtraValue1.Set(nil) +} + +// UnsetExtraValue1 ensures that no value is present for ExtraValue1, not even an explicit nil +func (o *CondaUpstreamRequestPatch) UnsetExtraValue1() { + o.ExtraValue1.Unset() +} + +// GetExtraValue2 returns the ExtraValue2 field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CondaUpstreamRequestPatch) GetExtraValue2() string { + if o == nil || IsNil(o.ExtraValue2.Get()) { + var ret string + return ret + } + return *o.ExtraValue2.Get() +} + +// GetExtraValue2Ok returns a tuple with the ExtraValue2 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 *CondaUpstreamRequestPatch) GetExtraValue2Ok() (*string, bool) { + if o == nil { + return nil, false + } + return o.ExtraValue2.Get(), o.ExtraValue2.IsSet() +} + +// HasExtraValue2 returns a boolean if a field has been set. +func (o *CondaUpstreamRequestPatch) HasExtraValue2() bool { + if o != nil && o.ExtraValue2.IsSet() { + return true + } + + return false +} + +// SetExtraValue2 gets a reference to the given NullableString and assigns it to the ExtraValue2 field. +func (o *CondaUpstreamRequestPatch) SetExtraValue2(v string) { + o.ExtraValue2.Set(&v) +} + +// SetExtraValue2Nil sets the value for ExtraValue2 to be an explicit nil +func (o *CondaUpstreamRequestPatch) SetExtraValue2Nil() { + o.ExtraValue2.Set(nil) +} + +// UnsetExtraValue2 ensures that no value is present for ExtraValue2, not even an explicit nil +func (o *CondaUpstreamRequestPatch) UnsetExtraValue2() { + o.ExtraValue2.Unset() +} + +// GetIsActive returns the IsActive field value if set, zero value otherwise. +func (o *CondaUpstreamRequestPatch) GetIsActive() bool { + if o == nil || IsNil(o.IsActive) { + var ret bool + return ret + } + return *o.IsActive +} + +// GetIsActiveOk returns a tuple with the IsActive field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CondaUpstreamRequestPatch) GetIsActiveOk() (*bool, bool) { + if o == nil || IsNil(o.IsActive) { + return nil, false + } + return o.IsActive, true +} + +// HasIsActive returns a boolean if a field has been set. +func (o *CondaUpstreamRequestPatch) HasIsActive() bool { + if o != nil && !IsNil(o.IsActive) { + return true + } + + return false +} + +// SetIsActive gets a reference to the given bool and assigns it to the IsActive field. +func (o *CondaUpstreamRequestPatch) SetIsActive(v bool) { + o.IsActive = &v +} + +// GetMode returns the Mode field value if set, zero value otherwise. +func (o *CondaUpstreamRequestPatch) GetMode() string { + if o == nil || IsNil(o.Mode) { + var ret string + return ret + } + return *o.Mode +} + +// GetModeOk returns a tuple with the Mode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CondaUpstreamRequestPatch) GetModeOk() (*string, bool) { + if o == nil || IsNil(o.Mode) { + return nil, false + } + return o.Mode, true +} + +// HasMode returns a boolean if a field has been set. +func (o *CondaUpstreamRequestPatch) HasMode() bool { + if o != nil && !IsNil(o.Mode) { + return true + } + + return false +} + +// SetMode gets a reference to the given string and assigns it to the Mode field. +func (o *CondaUpstreamRequestPatch) SetMode(v string) { + o.Mode = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *CondaUpstreamRequestPatch) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CondaUpstreamRequestPatch) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *CondaUpstreamRequestPatch) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *CondaUpstreamRequestPatch) SetName(v string) { + o.Name = &v +} + +// GetPriority returns the Priority field value if set, zero value otherwise. +func (o *CondaUpstreamRequestPatch) GetPriority() int64 { + if o == nil || IsNil(o.Priority) { + var ret int64 + return ret + } + return *o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CondaUpstreamRequestPatch) GetPriorityOk() (*int64, bool) { + if o == nil || IsNil(o.Priority) { + return nil, false + } + return o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *CondaUpstreamRequestPatch) HasPriority() bool { + if o != nil && !IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given int64 and assigns it to the Priority field. +func (o *CondaUpstreamRequestPatch) SetPriority(v int64) { + o.Priority = &v +} + +// GetUpstreamUrl returns the UpstreamUrl field value if set, zero value otherwise. +func (o *CondaUpstreamRequestPatch) GetUpstreamUrl() string { + if o == nil || IsNil(o.UpstreamUrl) { + var ret string + return ret + } + return *o.UpstreamUrl +} + +// GetUpstreamUrlOk returns a tuple with the UpstreamUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CondaUpstreamRequestPatch) GetUpstreamUrlOk() (*string, bool) { + if o == nil || IsNil(o.UpstreamUrl) { + return nil, false + } + return o.UpstreamUrl, true +} + +// HasUpstreamUrl returns a boolean if a field has been set. +func (o *CondaUpstreamRequestPatch) HasUpstreamUrl() bool { + if o != nil && !IsNil(o.UpstreamUrl) { + return true + } + + return false +} + +// SetUpstreamUrl gets a reference to the given string and assigns it to the UpstreamUrl field. +func (o *CondaUpstreamRequestPatch) SetUpstreamUrl(v string) { + o.UpstreamUrl = &v +} + +// GetVerifySsl returns the VerifySsl field value if set, zero value otherwise. +func (o *CondaUpstreamRequestPatch) GetVerifySsl() bool { + if o == nil || IsNil(o.VerifySsl) { + var ret bool + return ret + } + return *o.VerifySsl +} + +// GetVerifySslOk returns a tuple with the VerifySsl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CondaUpstreamRequestPatch) GetVerifySslOk() (*bool, bool) { + if o == nil || IsNil(o.VerifySsl) { + return nil, false + } + return o.VerifySsl, true +} + +// HasVerifySsl returns a boolean if a field has been set. +func (o *CondaUpstreamRequestPatch) HasVerifySsl() bool { + if o != nil && !IsNil(o.VerifySsl) { + return true + } + + return false +} + +// SetVerifySsl gets a reference to the given bool and assigns it to the VerifySsl field. +func (o *CondaUpstreamRequestPatch) SetVerifySsl(v bool) { + o.VerifySsl = &v +} + +func (o CondaUpstreamRequestPatch) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CondaUpstreamRequestPatch) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AuthMode) { + toSerialize["auth_mode"] = o.AuthMode + } + if o.AuthSecret.IsSet() { + toSerialize["auth_secret"] = o.AuthSecret.Get() + } + if o.AuthUsername.IsSet() { + toSerialize["auth_username"] = o.AuthUsername.Get() + } + if o.ExtraHeader1.IsSet() { + toSerialize["extra_header_1"] = o.ExtraHeader1.Get() + } + if o.ExtraHeader2.IsSet() { + toSerialize["extra_header_2"] = o.ExtraHeader2.Get() + } + if o.ExtraValue1.IsSet() { + toSerialize["extra_value_1"] = o.ExtraValue1.Get() + } + if o.ExtraValue2.IsSet() { + toSerialize["extra_value_2"] = o.ExtraValue2.Get() + } + if !IsNil(o.IsActive) { + toSerialize["is_active"] = o.IsActive + } + if !IsNil(o.Mode) { + toSerialize["mode"] = o.Mode + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Priority) { + toSerialize["priority"] = o.Priority + } + if !IsNil(o.UpstreamUrl) { + toSerialize["upstream_url"] = o.UpstreamUrl + } + if !IsNil(o.VerifySsl) { + toSerialize["verify_ssl"] = o.VerifySsl + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CondaUpstreamRequestPatch) UnmarshalJSON(data []byte) (err error) { + varCondaUpstreamRequestPatch := _CondaUpstreamRequestPatch{} + + err = json.Unmarshal(data, &varCondaUpstreamRequestPatch) + + if err != nil { + return err + } + + *o = CondaUpstreamRequestPatch(varCondaUpstreamRequestPatch) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "auth_mode") + delete(additionalProperties, "auth_secret") + delete(additionalProperties, "auth_username") + delete(additionalProperties, "extra_header_1") + delete(additionalProperties, "extra_header_2") + delete(additionalProperties, "extra_value_1") + delete(additionalProperties, "extra_value_2") + delete(additionalProperties, "is_active") + delete(additionalProperties, "mode") + delete(additionalProperties, "name") + delete(additionalProperties, "priority") + delete(additionalProperties, "upstream_url") + delete(additionalProperties, "verify_ssl") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCondaUpstreamRequestPatch struct { + value *CondaUpstreamRequestPatch + isSet bool +} + +func (v NullableCondaUpstreamRequestPatch) Get() *CondaUpstreamRequestPatch { + return v.value +} + +func (v *NullableCondaUpstreamRequestPatch) Set(val *CondaUpstreamRequestPatch) { + v.value = val + v.isSet = true +} + +func (v NullableCondaUpstreamRequestPatch) IsSet() bool { + return v.isSet +} + +func (v *NullableCondaUpstreamRequestPatch) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCondaUpstreamRequestPatch(val *CondaUpstreamRequestPatch) *NullableCondaUpstreamRequestPatch { + return &NullableCondaUpstreamRequestPatch{value: val, isSet: true} +} + +func (v NullableCondaUpstreamRequestPatch) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCondaUpstreamRequestPatch) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_cran_package_upload.go b/model_cran_package_upload.go index e5257292..ca2f9144 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ @@ -120,6 +120,8 @@ type CranPackageUpload struct { // 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. @@ -2686,6 +2688,38 @@ func (o *CranPackageUpload) SetSyncProgress(v int64) { o.SyncProgress = &v } +// GetTagsAutomatic returns the TagsAutomatic field value if set, zero value otherwise. +func (o *CranPackageUpload) 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 *CranPackageUpload) 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 *CranPackageUpload) 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 *CranPackageUpload) SetTagsAutomatic(v map[string]interface{}) { + o.TagsAutomatic = v +} + // GetTagsImmutable returns the TagsImmutable field value if set, zero value otherwise. func (o *CranPackageUpload) GetTagsImmutable() map[string]interface{} { if o == nil || IsNil(o.TagsImmutable) { @@ -3182,6 +3216,9 @@ func (o CranPackageUpload) ToMap() (map[string]interface{}, error) { 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 } @@ -3301,6 +3338,7 @@ func (o *CranPackageUpload) UnmarshalJSON(data []byte) (err error) { 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") diff --git a/model_cran_package_upload_request.go b/model_cran_package_upload_request.go index f5133f7c..94735dc2 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_cran_upstream.go b/model_cran_upstream.go index 9417ef4e..e429fda3 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_cran_upstream_request.go b/model_cran_upstream_request.go index 48191dd3..4bf67dff 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_cran_upstream_request_patch.go b/model_cran_upstream_request_patch.go index 28e8c2c8..7c617aa9 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_dart_package_upload.go b/model_dart_package_upload.go index adb6d1a2..28bdc5e4 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ @@ -118,6 +118,8 @@ type DartPackageUpload struct { // 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. @@ -2641,6 +2643,38 @@ func (o *DartPackageUpload) SetSyncProgress(v int64) { o.SyncProgress = &v } +// GetTagsAutomatic returns the TagsAutomatic field value if set, zero value otherwise. +func (o *DartPackageUpload) 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 *DartPackageUpload) 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 *DartPackageUpload) 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 *DartPackageUpload) SetTagsAutomatic(v map[string]interface{}) { + o.TagsAutomatic = v +} + // GetTagsImmutable returns the TagsImmutable field value if set, zero value otherwise. func (o *DartPackageUpload) GetTagsImmutable() map[string]interface{} { if o == nil || IsNil(o.TagsImmutable) { @@ -3134,6 +3168,9 @@ func (o DartPackageUpload) ToMap() (map[string]interface{}, error) { 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 } @@ -3252,6 +3289,7 @@ func (o *DartPackageUpload) UnmarshalJSON(data []byte) (err error) { 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") diff --git a/model_dart_package_upload_request.go b/model_dart_package_upload_request.go index 28df2338..85aeeceb 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_dart_upstream.go b/model_dart_upstream.go index 2e09907a..9ef425aa 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_dart_upstream_request.go b/model_dart_upstream_request.go index abc834bc..0633f7db 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_dart_upstream_request_patch.go b/model_dart_upstream_request_patch.go index 7d982366..8dc4fcfa 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_deb_package_upload.go b/model_deb_package_upload.go index 4d35013f..48dfd9fd 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ @@ -118,6 +118,8 @@ type DebPackageUpload struct { // 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. @@ -2641,6 +2643,38 @@ func (o *DebPackageUpload) SetSyncProgress(v int64) { o.SyncProgress = &v } +// GetTagsAutomatic returns the TagsAutomatic field value if set, zero value otherwise. +func (o *DebPackageUpload) 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 *DebPackageUpload) 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 *DebPackageUpload) 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 *DebPackageUpload) SetTagsAutomatic(v map[string]interface{}) { + o.TagsAutomatic = v +} + // GetTagsImmutable returns the TagsImmutable field value if set, zero value otherwise. func (o *DebPackageUpload) GetTagsImmutable() map[string]interface{} { if o == nil || IsNil(o.TagsImmutable) { @@ -3134,6 +3168,9 @@ func (o DebPackageUpload) ToMap() (map[string]interface{}, error) { 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 } @@ -3252,6 +3289,7 @@ func (o *DebPackageUpload) UnmarshalJSON(data []byte) (err error) { 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") diff --git a/model_deb_package_upload_request.go b/model_deb_package_upload_request.go index 00fa08db..6b0c0619 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_deb_upstream.go b/model_deb_upstream.go index 49e1401e..ae7a86af 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_deb_upstream_request.go b/model_deb_upstream_request.go index a7186fb4..99d3d2aa 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_deb_upstream_request_patch.go b/model_deb_upstream_request_patch.go index 1fb32a6a..9a30754e 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_distribution.go b/model_distribution.go index 10076127..cb2f9239 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_distribution_full.go b/model_distribution_full.go index 4a250564..39ac6ab1 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_distribution_version.go b/model_distribution_version.go index bab4e1e5..406517f3 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_docker_package_upload.go b/model_docker_package_upload.go index 624d3663..c54be566 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ @@ -118,6 +118,8 @@ type DockerPackageUpload struct { // 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. @@ -2641,6 +2643,38 @@ func (o *DockerPackageUpload) SetSyncProgress(v int64) { o.SyncProgress = &v } +// GetTagsAutomatic returns the TagsAutomatic field value if set, zero value otherwise. +func (o *DockerPackageUpload) 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 *DockerPackageUpload) 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 *DockerPackageUpload) 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 *DockerPackageUpload) SetTagsAutomatic(v map[string]interface{}) { + o.TagsAutomatic = v +} + // GetTagsImmutable returns the TagsImmutable field value if set, zero value otherwise. func (o *DockerPackageUpload) GetTagsImmutable() map[string]interface{} { if o == nil || IsNil(o.TagsImmutable) { @@ -3134,6 +3168,9 @@ func (o DockerPackageUpload) ToMap() (map[string]interface{}, error) { 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 } @@ -3252,6 +3289,7 @@ func (o *DockerPackageUpload) UnmarshalJSON(data []byte) (err error) { 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") diff --git a/model_docker_package_upload_request.go b/model_docker_package_upload_request.go index 7df760fb..851b746d 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_docker_upstream.go b/model_docker_upstream.go index 44377b47..984eb6c3 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_docker_upstream_request.go b/model_docker_upstream_request.go index 714ac872..6eacb1aa 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_docker_upstream_request_patch.go b/model_docker_upstream_request_patch.go index 5bf3b8a9..6d3ab163 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_dynamic_mapping.go b/model_dynamic_mapping.go index 4bc65d1d..143bb555 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_entitlement_usage_metrics.go b/model_entitlement_usage_metrics.go index 61900b25..7d436ebd 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_error_detail.go b/model_error_detail.go index c32bf6a2..37fd63e4 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_eula.go b/model_eula.go index 40cde9a7..3afb372f 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_format.go b/model_format.go index b2dd422f..9640a691 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_format_support.go b/model_format_support.go index a2997d41..b2a6abec 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_format_support_upstream.go b/model_format_support_upstream.go index 5a82d18b..eacb3ca2 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_geo_ip_location.go b/model_geo_ip_location.go index 97970c93..f60937b3 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_go_package_upload.go b/model_go_package_upload.go index cb684f08..924bee4d 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ @@ -118,6 +118,8 @@ type GoPackageUpload struct { // 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. @@ -2641,6 +2643,38 @@ func (o *GoPackageUpload) SetSyncProgress(v int64) { o.SyncProgress = &v } +// GetTagsAutomatic returns the TagsAutomatic field value if set, zero value otherwise. +func (o *GoPackageUpload) 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 *GoPackageUpload) 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 *GoPackageUpload) 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 *GoPackageUpload) SetTagsAutomatic(v map[string]interface{}) { + o.TagsAutomatic = v +} + // GetTagsImmutable returns the TagsImmutable field value if set, zero value otherwise. func (o *GoPackageUpload) GetTagsImmutable() map[string]interface{} { if o == nil || IsNil(o.TagsImmutable) { @@ -3134,6 +3168,9 @@ func (o GoPackageUpload) ToMap() (map[string]interface{}, error) { 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 } @@ -3252,6 +3289,7 @@ func (o *GoPackageUpload) UnmarshalJSON(data []byte) (err error) { 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") diff --git a/model_go_package_upload_request.go b/model_go_package_upload_request.go index 8b0257b2..75a68a6c 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_go_upstream.go b/model_go_upstream.go index 4c75490a..ec8824ad 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_go_upstream_request.go b/model_go_upstream_request.go index 6dc3d053..5e954154 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_go_upstream_request_patch.go b/model_go_upstream_request_patch.go index e5ca4cf7..da03ae2f 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_helm_package_upload.go b/model_helm_package_upload.go index dc5bf698..59595dec 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ @@ -118,6 +118,8 @@ type HelmPackageUpload struct { // 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. @@ -2641,6 +2643,38 @@ func (o *HelmPackageUpload) SetSyncProgress(v int64) { o.SyncProgress = &v } +// GetTagsAutomatic returns the TagsAutomatic field value if set, zero value otherwise. +func (o *HelmPackageUpload) 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 *HelmPackageUpload) 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 *HelmPackageUpload) 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 *HelmPackageUpload) SetTagsAutomatic(v map[string]interface{}) { + o.TagsAutomatic = v +} + // GetTagsImmutable returns the TagsImmutable field value if set, zero value otherwise. func (o *HelmPackageUpload) GetTagsImmutable() map[string]interface{} { if o == nil || IsNil(o.TagsImmutable) { @@ -3134,6 +3168,9 @@ func (o HelmPackageUpload) ToMap() (map[string]interface{}, error) { 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 } @@ -3252,6 +3289,7 @@ func (o *HelmPackageUpload) UnmarshalJSON(data []byte) (err error) { 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") diff --git a/model_helm_package_upload_request.go b/model_helm_package_upload_request.go index d644b53f..01f3e1d2 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_helm_upstream.go b/model_helm_upstream.go index b96aa35a..056116b8 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_helm_upstream_request.go b/model_helm_upstream_request.go index 8ad63869..dbb54822 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_helm_upstream_request_patch.go b/model_helm_upstream_request_patch.go index 622d1307..fe02764b 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_hex_package_upload.go b/model_hex_package_upload.go index 3ef62002..078bfd18 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ @@ -118,6 +118,8 @@ type HexPackageUpload struct { // 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. @@ -2641,6 +2643,38 @@ func (o *HexPackageUpload) SetSyncProgress(v int64) { o.SyncProgress = &v } +// GetTagsAutomatic returns the TagsAutomatic field value if set, zero value otherwise. +func (o *HexPackageUpload) 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 *HexPackageUpload) 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 *HexPackageUpload) 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 *HexPackageUpload) SetTagsAutomatic(v map[string]interface{}) { + o.TagsAutomatic = v +} + // GetTagsImmutable returns the TagsImmutable field value if set, zero value otherwise. func (o *HexPackageUpload) GetTagsImmutable() map[string]interface{} { if o == nil || IsNil(o.TagsImmutable) { @@ -3134,6 +3168,9 @@ func (o HexPackageUpload) ToMap() (map[string]interface{}, error) { 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 } @@ -3252,6 +3289,7 @@ func (o *HexPackageUpload) UnmarshalJSON(data []byte) (err error) { 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") diff --git a/model_hex_package_upload_request.go b/model_hex_package_upload_request.go index 686f3f24..6ddeb57e 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_hex_upstream.go b/model_hex_upstream.go index 2d194f33..7bc9a9f5 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_hex_upstream_request.go b/model_hex_upstream_request.go index 3012e59c..9e6fde60 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_hex_upstream_request_patch.go b/model_hex_upstream_request_patch.go index d2acf7ef..c0067295 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_history.go b/model_history.go index a0f754b7..013af3b0 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_history_fieldset.go b/model_history_fieldset.go index f469caf5..36ece595 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_history_fieldset_raw.go b/model_history_fieldset_raw.go index e4920a81..803d010f 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_huggingface_package_upload.go b/model_huggingface_package_upload.go new file mode 100644 index 00000000..1d3a262b --- /dev/null +++ b/model_huggingface_package_upload.go @@ -0,0 +1,3341 @@ +/* +Cloudsmith API (v1) + +The API to the Cloudsmith Service + +API version: 1.830.6 +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 HuggingfacePackageUpload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &HuggingfacePackageUpload{} + +// HuggingfacePackageUpload struct for HuggingfacePackageUpload +type HuggingfacePackageUpload 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 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"` + 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 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 _HuggingfacePackageUpload HuggingfacePackageUpload + +// NewHuggingfacePackageUpload instantiates a new HuggingfacePackageUpload 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 NewHuggingfacePackageUpload() *HuggingfacePackageUpload { + this := HuggingfacePackageUpload{} + return &this +} + +// NewHuggingfacePackageUploadWithDefaults instantiates a new HuggingfacePackageUpload 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 NewHuggingfacePackageUploadWithDefaults() *HuggingfacePackageUpload { + this := HuggingfacePackageUpload{} + return &this +} + +// GetArchitectures returns the Architectures field value if set, zero value otherwise. +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetCdnUrl(v string) { + o.CdnUrl.Set(&v) +} + +// SetCdnUrlNil sets the value for CdnUrl to be an explicit nil +func (o *HuggingfacePackageUpload) SetCdnUrlNil() { + o.CdnUrl.Set(nil) +} + +// UnsetCdnUrl ensures that no value is present for CdnUrl, not even an explicit nil +func (o *HuggingfacePackageUpload) UnsetCdnUrl() { + o.CdnUrl.Unset() +} + +// GetChecksumMd5 returns the ChecksumMd5 field value if set, zero value otherwise. +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetChecksumMd5(v string) { + o.ChecksumMd5 = &v +} + +// GetChecksumSha1 returns the ChecksumSha1 field value if set, zero value otherwise. +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetChecksumSha1(v string) { + o.ChecksumSha1 = &v +} + +// GetChecksumSha256 returns the ChecksumSha256 field value if set, zero value otherwise. +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetChecksumSha256(v string) { + o.ChecksumSha256 = &v +} + +// GetChecksumSha512 returns the ChecksumSha512 field value if set, zero value otherwise. +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetDependenciesChecksumMd5(v string) { + o.DependenciesChecksumMd5.Set(&v) +} + +// SetDependenciesChecksumMd5Nil sets the value for DependenciesChecksumMd5 to be an explicit nil +func (o *HuggingfacePackageUpload) SetDependenciesChecksumMd5Nil() { + o.DependenciesChecksumMd5.Set(nil) +} + +// UnsetDependenciesChecksumMd5 ensures that no value is present for DependenciesChecksumMd5, not even an explicit nil +func (o *HuggingfacePackageUpload) UnsetDependenciesChecksumMd5() { + o.DependenciesChecksumMd5.Unset() +} + +// GetDependenciesUrl returns the DependenciesUrl field value if set, zero value otherwise. +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetDescription(v string) { + o.Description.Set(&v) +} + +// SetDescriptionNil sets the value for Description to be an explicit nil +func (o *HuggingfacePackageUpload) SetDescriptionNil() { + o.Description.Set(nil) +} + +// UnsetDescription ensures that no value is present for Description, not even an explicit nil +func (o *HuggingfacePackageUpload) UnsetDescription() { + o.Description.Unset() +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetDistro(v Distribution) { + o.Distro.Set(&v) +} + +// SetDistroNil sets the value for Distro to be an explicit nil +func (o *HuggingfacePackageUpload) SetDistroNil() { + o.Distro.Set(nil) +} + +// UnsetDistro ensures that no value is present for Distro, not even an explicit nil +func (o *HuggingfacePackageUpload) UnsetDistro() { + o.Distro.Unset() +} + +// GetDistroVersion returns the DistroVersion field value if set, zero value otherwise. +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetDistroVersion(v DistributionVersion) { + o.DistroVersion = &v +} + +// GetDownloads returns the Downloads field value if set, zero value otherwise. +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetEpoch(v int64) { + o.Epoch.Set(&v) +} + +// SetEpochNil sets the value for Epoch to be an explicit nil +func (o *HuggingfacePackageUpload) SetEpochNil() { + o.Epoch.Set(nil) +} + +// UnsetEpoch ensures that no value is present for Epoch, not even an explicit nil +func (o *HuggingfacePackageUpload) UnsetEpoch() { + o.Epoch.Unset() +} + +// GetExtension returns the Extension field value if set, zero value otherwise. +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetExtension(v string) { + o.Extension = &v +} + +// GetFilename returns the Filename field value if set, zero value otherwise. +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetFilename(v string) { + o.Filename = &v +} + +// GetFiles returns the Files field value if set, zero value otherwise. +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetFiles(v []PackageFile) { + o.Files = v +} + +// GetFormat returns the Format field value if set, zero value otherwise. +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetFormat(v string) { + o.Format = &v +} + +// GetFormatUrl returns the FormatUrl field value if set, zero value otherwise. +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetFormatUrl(v string) { + o.FormatUrl = &v +} + +// GetFreeableStorage returns the FreeableStorage field value if set, zero value otherwise. +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetFullyQualifiedName(v string) { + o.FullyQualifiedName.Set(&v) +} + +// SetFullyQualifiedNameNil sets the value for FullyQualifiedName to be an explicit nil +func (o *HuggingfacePackageUpload) SetFullyQualifiedNameNil() { + o.FullyQualifiedName.Set(nil) +} + +// UnsetFullyQualifiedName ensures that no value is present for FullyQualifiedName, not even an explicit nil +func (o *HuggingfacePackageUpload) UnsetFullyQualifiedName() { + o.FullyQualifiedName.Unset() +} + +// GetIdentifierPerm returns the IdentifierPerm field value if set, zero value otherwise. +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetIdentifierPerm(v string) { + o.IdentifierPerm = &v +} + +// GetIdentifiers returns the Identifiers field value if set, zero value otherwise. +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetIdentifiers(v map[string]string) { + o.Identifiers = &v +} + +// GetIndexed returns the Indexed field value if set, zero value otherwise. +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetIndexed(v bool) { + o.Indexed = &v +} + +// GetIsCancellable returns the IsCancellable field value if set, zero value otherwise. +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetIsCancellable(v bool) { + o.IsCancellable = &v +} + +// GetIsCopyable returns the IsCopyable field value if set, zero value otherwise. +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetIsCopyable(v bool) { + o.IsCopyable = &v +} + +// GetIsDeleteable returns the IsDeleteable field value if set, zero value otherwise. +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetIsDeleteable(v bool) { + o.IsDeleteable = &v +} + +// GetIsDownloadable returns the IsDownloadable field value if set, zero value otherwise. +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetIsDownloadable(v bool) { + o.IsDownloadable = &v +} + +// GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetIsMoveable(v bool) { + o.IsMoveable = &v +} + +// GetIsQuarantinable returns the IsQuarantinable field value if set, zero value otherwise. +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetIsQuarantinable(v bool) { + o.IsQuarantinable = &v +} + +// GetIsQuarantined returns the IsQuarantined field value if set, zero value otherwise. +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetIsQuarantined(v bool) { + o.IsQuarantined = &v +} + +// GetIsResyncable returns the IsResyncable field value if set, zero value otherwise. +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetIsResyncable(v bool) { + o.IsResyncable = &v +} + +// GetIsSecurityScannable returns the IsSecurityScannable field value if set, zero value otherwise. +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetIsSecurityScannable(v bool) { + o.IsSecurityScannable = &v +} + +// GetIsSyncAwaiting returns the IsSyncAwaiting field value if set, zero value otherwise. +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetIsSyncAwaiting(v bool) { + o.IsSyncAwaiting = &v +} + +// GetIsSyncCompleted returns the IsSyncCompleted field value if set, zero value otherwise. +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetIsSyncCompleted(v bool) { + o.IsSyncCompleted = &v +} + +// GetIsSyncFailed returns the IsSyncFailed field value if set, zero value otherwise. +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetIsSyncFailed(v bool) { + o.IsSyncFailed = &v +} + +// GetIsSyncInFlight returns the IsSyncInFlight field value if set, zero value otherwise. +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetIsSyncInFlight(v bool) { + o.IsSyncInFlight = &v +} + +// GetIsSyncInProgress returns the IsSyncInProgress field value if set, zero value otherwise. +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetLicense(v string) { + o.License.Set(&v) +} + +// SetLicenseNil sets the value for License to be an explicit nil +func (o *HuggingfacePackageUpload) SetLicenseNil() { + o.License.Set(nil) +} + +// UnsetLicense ensures that no value is present for License, not even an explicit nil +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *HuggingfacePackageUpload) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *HuggingfacePackageUpload) UnsetName() { + o.Name.Unset() +} + +// GetNamespace returns the Namespace field value if set, zero value otherwise. +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetNamespace(v string) { + o.Namespace = &v +} + +// GetNamespaceUrl returns the NamespaceUrl field value if set, zero value otherwise. +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetNamespaceUrl(v string) { + o.NamespaceUrl = &v +} + +// GetNumFiles returns the NumFiles field value if set, zero value otherwise. +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetNumFiles(v int64) { + o.NumFiles = &v +} + +// GetOriginRepository returns the OriginRepository field value if set, zero value otherwise. +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetOriginRepository(v string) { + o.OriginRepository = &v +} + +// GetOriginRepositoryUrl returns the OriginRepositoryUrl field value if set, zero value otherwise. +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetOriginRepositoryUrl(v string) { + o.OriginRepositoryUrl = &v +} + +// GetPackageType returns the PackageType field value if set, zero value otherwise. +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetPackageType(v int64) { + o.PackageType = &v +} + +// GetPolicyViolated returns the PolicyViolated field value if set, zero value otherwise. +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetPolicyViolated(v bool) { + o.PolicyViolated = &v +} + +// GetRelease returns the Release field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetRelease(v string) { + o.Release.Set(&v) +} + +// SetReleaseNil sets the value for Release to be an explicit nil +func (o *HuggingfacePackageUpload) SetReleaseNil() { + o.Release.Set(nil) +} + +// UnsetRelease ensures that no value is present for Release, not even an explicit nil +func (o *HuggingfacePackageUpload) UnsetRelease() { + o.Release.Unset() +} + +// GetRepository returns the Repository field value if set, zero value otherwise. +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetRepository(v string) { + o.Repository = &v +} + +// GetRepositoryUrl returns the RepositoryUrl field value if set, zero value otherwise. +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetSecurityScanCompletedAt(v time.Time) { + o.SecurityScanCompletedAt.Set(&v) +} + +// SetSecurityScanCompletedAtNil sets the value for SecurityScanCompletedAt to be an explicit nil +func (o *HuggingfacePackageUpload) SetSecurityScanCompletedAtNil() { + o.SecurityScanCompletedAt.Set(nil) +} + +// UnsetSecurityScanCompletedAt ensures that no value is present for SecurityScanCompletedAt, not even an explicit nil +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetSecurityScanStartedAt(v time.Time) { + o.SecurityScanStartedAt.Set(&v) +} + +// SetSecurityScanStartedAtNil sets the value for SecurityScanStartedAt to be an explicit nil +func (o *HuggingfacePackageUpload) SetSecurityScanStartedAtNil() { + o.SecurityScanStartedAt.Set(nil) +} + +// UnsetSecurityScanStartedAt ensures that no value is present for SecurityScanStartedAt, not even an explicit nil +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetSecurityScanStatus(v string) { + o.SecurityScanStatus.Set(&v) +} + +// SetSecurityScanStatusNil sets the value for SecurityScanStatus to be an explicit nil +func (o *HuggingfacePackageUpload) SetSecurityScanStatusNil() { + o.SecurityScanStatus.Set(nil) +} + +// UnsetSecurityScanStatus ensures that no value is present for SecurityScanStatus, not even an explicit nil +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetSecurityScanStatusUpdatedAt(v time.Time) { + o.SecurityScanStatusUpdatedAt.Set(&v) +} + +// SetSecurityScanStatusUpdatedAtNil sets the value for SecurityScanStatusUpdatedAt to be an explicit nil +func (o *HuggingfacePackageUpload) SetSecurityScanStatusUpdatedAtNil() { + o.SecurityScanStatusUpdatedAt.Set(nil) +} + +// UnsetSecurityScanStatusUpdatedAt ensures that no value is present for SecurityScanStatusUpdatedAt, not even an explicit nil +func (o *HuggingfacePackageUpload) UnsetSecurityScanStatusUpdatedAt() { + o.SecurityScanStatusUpdatedAt.Unset() +} + +// GetSelfHtmlUrl returns the SelfHtmlUrl field value if set, zero value otherwise. +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetSelfHtmlUrl(v string) { + o.SelfHtmlUrl = &v +} + +// GetSelfUrl returns the SelfUrl field value if set, zero value otherwise. +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetSelfUrl(v string) { + o.SelfUrl = &v +} + +// GetSignatureUrl returns the SignatureUrl field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetSignatureUrl(v string) { + o.SignatureUrl.Set(&v) +} + +// SetSignatureUrlNil sets the value for SignatureUrl to be an explicit nil +func (o *HuggingfacePackageUpload) SetSignatureUrlNil() { + o.SignatureUrl.Set(nil) +} + +// UnsetSignatureUrl ensures that no value is present for SignatureUrl, not even an explicit nil +func (o *HuggingfacePackageUpload) UnsetSignatureUrl() { + o.SignatureUrl.Unset() +} + +// GetSize returns the Size field value if set, zero value otherwise. +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetSize(v int64) { + o.Size = &v +} + +// GetSlug returns the Slug field value if set, zero value otherwise. +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetSlug(v string) { + o.Slug = &v +} + +// GetSlugPerm returns the SlugPerm field value if set, zero value otherwise. +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetSlugPerm(v string) { + o.SlugPerm = &v +} + +// GetStage returns the Stage field value if set, zero value otherwise. +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetStage(v int64) { + o.Stage = &v +} + +// GetStageStr returns the StageStr field value if set, zero value otherwise. +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetStageStr(v string) { + o.StageStr = &v +} + +// GetStageUpdatedAt returns the StageUpdatedAt field value if set, zero value otherwise. +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetStageUpdatedAt(v time.Time) { + o.StageUpdatedAt = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetStatusReason(v string) { + o.StatusReason.Set(&v) +} + +// SetStatusReasonNil sets the value for StatusReason to be an explicit nil +func (o *HuggingfacePackageUpload) SetStatusReasonNil() { + o.StatusReason.Set(nil) +} + +// UnsetStatusReason ensures that no value is present for StatusReason, not even an explicit nil +func (o *HuggingfacePackageUpload) UnsetStatusReason() { + o.StatusReason.Unset() +} + +// GetStatusStr returns the StatusStr field value if set, zero value otherwise. +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetStatusStr(v string) { + o.StatusStr = &v +} + +// GetStatusUpdatedAt returns the StatusUpdatedAt field value if set, zero value otherwise. +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetStatusUpdatedAt(v time.Time) { + o.StatusUpdatedAt = &v +} + +// GetStatusUrl returns the StatusUrl field value if set, zero value otherwise. +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetStatusUrl(v string) { + o.StatusUrl = &v +} + +// GetSubtype returns the Subtype field value if set, zero value otherwise. +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetSummary(v string) { + o.Summary.Set(&v) +} + +// SetSummaryNil sets the value for Summary to be an explicit nil +func (o *HuggingfacePackageUpload) SetSummaryNil() { + o.Summary.Set(nil) +} + +// UnsetSummary ensures that no value is present for Summary, not even an explicit nil +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetSyncFinishedAt(v time.Time) { + o.SyncFinishedAt.Set(&v) +} + +// SetSyncFinishedAtNil sets the value for SyncFinishedAt to be an explicit nil +func (o *HuggingfacePackageUpload) SetSyncFinishedAtNil() { + o.SyncFinishedAt.Set(nil) +} + +// UnsetSyncFinishedAt ensures that no value is present for SyncFinishedAt, not even an explicit nil +func (o *HuggingfacePackageUpload) UnsetSyncFinishedAt() { + o.SyncFinishedAt.Unset() +} + +// GetSyncProgress returns the SyncProgress field value if set, zero value otherwise. +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetSyncProgress(v int64) { + o.SyncProgress = &v +} + +// GetTagsAutomatic returns the TagsAutomatic field value if set, zero value otherwise. +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetTagsAutomatic(v map[string]interface{}) { + o.TagsAutomatic = v +} + +// GetTagsImmutable returns the TagsImmutable field value if set, zero value otherwise. +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetTagsImmutable(v map[string]interface{}) { + o.TagsImmutable = v +} + +// GetTypeDisplay returns the TypeDisplay field value if set, zero value otherwise. +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetTypeDisplay(v string) { + o.TypeDisplay = &v +} + +// GetUploadedAt returns the UploadedAt field value if set, zero value otherwise. +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetUploadedAt(v time.Time) { + o.UploadedAt = &v +} + +// GetUploader returns the Uploader field value if set, zero value otherwise. +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetUploader(v string) { + o.Uploader = &v +} + +// GetUploaderUrl returns the UploaderUrl field value if set, zero value otherwise. +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetVersion(v string) { + o.Version.Set(&v) +} + +// SetVersionNil sets the value for Version to be an explicit nil +func (o *HuggingfacePackageUpload) SetVersionNil() { + o.Version.Set(nil) +} + +// UnsetVersion ensures that no value is present for Version, not even an explicit nil +func (o *HuggingfacePackageUpload) UnsetVersion() { + o.Version.Unset() +} + +// GetVersionOrig returns the VersionOrig field value if set, zero value otherwise. +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetVersionOrig(v string) { + o.VersionOrig = &v +} + +// GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. +func (o *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) 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 *HuggingfacePackageUpload) SetVulnerabilityScanResultsUrl(v string) { + o.VulnerabilityScanResultsUrl = &v +} + +func (o HuggingfacePackageUpload) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o HuggingfacePackageUpload) 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.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 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 !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 *HuggingfacePackageUpload) UnmarshalJSON(data []byte) (err error) { + varHuggingfacePackageUpload := _HuggingfacePackageUpload{} + + err = json.Unmarshal(data, &varHuggingfacePackageUpload) + + if err != nil { + return err + } + + *o = HuggingfacePackageUpload(varHuggingfacePackageUpload) + + 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, "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, "signature_url") + delete(additionalProperties, "size") + delete(additionalProperties, "slug") + delete(additionalProperties, "slug_perm") + 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 NullableHuggingfacePackageUpload struct { + value *HuggingfacePackageUpload + isSet bool +} + +func (v NullableHuggingfacePackageUpload) Get() *HuggingfacePackageUpload { + return v.value +} + +func (v *NullableHuggingfacePackageUpload) Set(val *HuggingfacePackageUpload) { + v.value = val + v.isSet = true +} + +func (v NullableHuggingfacePackageUpload) IsSet() bool { + return v.isSet +} + +func (v *NullableHuggingfacePackageUpload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableHuggingfacePackageUpload(val *HuggingfacePackageUpload) *NullableHuggingfacePackageUpload { + return &NullableHuggingfacePackageUpload{value: val, isSet: true} +} + +func (v NullableHuggingfacePackageUpload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableHuggingfacePackageUpload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_huggingface_package_upload_request.go b/model_huggingface_package_upload_request.go new file mode 100644 index 00000000..6b894021 --- /dev/null +++ b/model_huggingface_package_upload_request.go @@ -0,0 +1,255 @@ +/* +Cloudsmith API (v1) + +The API to the Cloudsmith Service + +API version: 1.830.6 +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 HuggingfacePackageUploadRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &HuggingfacePackageUploadRequest{} + +// HuggingfacePackageUploadRequest struct for HuggingfacePackageUploadRequest +type HuggingfacePackageUploadRequest 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"` + AdditionalProperties map[string]interface{} +} + +type _HuggingfacePackageUploadRequest HuggingfacePackageUploadRequest + +// NewHuggingfacePackageUploadRequest instantiates a new HuggingfacePackageUploadRequest 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 NewHuggingfacePackageUploadRequest(packageFile string) *HuggingfacePackageUploadRequest { + this := HuggingfacePackageUploadRequest{} + this.PackageFile = packageFile + return &this +} + +// NewHuggingfacePackageUploadRequestWithDefaults instantiates a new HuggingfacePackageUploadRequest 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 NewHuggingfacePackageUploadRequestWithDefaults() *HuggingfacePackageUploadRequest { + this := HuggingfacePackageUploadRequest{} + return &this +} + +// GetPackageFile returns the PackageFile field value +func (o *HuggingfacePackageUploadRequest) 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 *HuggingfacePackageUploadRequest) GetPackageFileOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.PackageFile, true +} + +// SetPackageFile sets field value +func (o *HuggingfacePackageUploadRequest) SetPackageFile(v string) { + o.PackageFile = v +} + +// GetRepublish returns the Republish field value if set, zero value otherwise. +func (o *HuggingfacePackageUploadRequest) 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 *HuggingfacePackageUploadRequest) 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 *HuggingfacePackageUploadRequest) 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 *HuggingfacePackageUploadRequest) 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 *HuggingfacePackageUploadRequest) 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 *HuggingfacePackageUploadRequest) 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 *HuggingfacePackageUploadRequest) 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 *HuggingfacePackageUploadRequest) SetTags(v string) { + o.Tags.Set(&v) +} + +// SetTagsNil sets the value for Tags to be an explicit nil +func (o *HuggingfacePackageUploadRequest) SetTagsNil() { + o.Tags.Set(nil) +} + +// UnsetTags ensures that no value is present for Tags, not even an explicit nil +func (o *HuggingfacePackageUploadRequest) UnsetTags() { + o.Tags.Unset() +} + +func (o HuggingfacePackageUploadRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o HuggingfacePackageUploadRequest) 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() + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *HuggingfacePackageUploadRequest) 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) + } + } + + varHuggingfacePackageUploadRequest := _HuggingfacePackageUploadRequest{} + + err = json.Unmarshal(data, &varHuggingfacePackageUploadRequest) + + if err != nil { + return err + } + + *o = HuggingfacePackageUploadRequest(varHuggingfacePackageUploadRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "package_file") + delete(additionalProperties, "republish") + delete(additionalProperties, "tags") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableHuggingfacePackageUploadRequest struct { + value *HuggingfacePackageUploadRequest + isSet bool +} + +func (v NullableHuggingfacePackageUploadRequest) Get() *HuggingfacePackageUploadRequest { + return v.value +} + +func (v *NullableHuggingfacePackageUploadRequest) Set(val *HuggingfacePackageUploadRequest) { + v.value = val + v.isSet = true +} + +func (v NullableHuggingfacePackageUploadRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableHuggingfacePackageUploadRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableHuggingfacePackageUploadRequest(val *HuggingfacePackageUploadRequest) *NullableHuggingfacePackageUploadRequest { + return &NullableHuggingfacePackageUploadRequest{value: val, isSet: true} +} + +func (v NullableHuggingfacePackageUploadRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableHuggingfacePackageUploadRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_huggingface_upstream.go b/model_huggingface_upstream.go new file mode 100644 index 00000000..3418e915 --- /dev/null +++ b/model_huggingface_upstream.go @@ -0,0 +1,878 @@ +/* +Cloudsmith API (v1) + +The API to the Cloudsmith Service + +API version: 1.830.6 +Contact: support@cloudsmith.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cloudsmith + +import ( + "encoding/json" + "fmt" + "time" +) + +// checks if the HuggingfaceUpstream type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &HuggingfaceUpstream{} + +// HuggingfaceUpstream struct for HuggingfaceUpstream +type HuggingfaceUpstream struct { + // The authentication mode to use when accessing this upstream. + AuthMode *string `json:"auth_mode,omitempty"` + // Secret to provide with requests to upstream. + AuthSecret NullableString `json:"auth_secret,omitempty"` + // Username to provide with requests to upstream. + AuthUsername NullableString `json:"auth_username,omitempty"` + // The datetime the upstream source was created. + CreatedAt *time.Time `json:"created_at,omitempty"` + DisableReason *string `json:"disable_reason,omitempty"` + // The key for extra header #1 to send to upstream. + ExtraHeader1 NullableString `json:"extra_header_1,omitempty" validate:"regexp=^[-\\\\w]+$"` + // The key for extra header #2 to send to upstream. + ExtraHeader2 NullableString `json:"extra_header_2,omitempty" validate:"regexp=^[-\\\\w]+$"` + // The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. + ExtraValue1 NullableString `json:"extra_value_1,omitempty" validate:"regexp=^[^\\\\n\\\\r]+$"` + // The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. + ExtraValue2 NullableString `json:"extra_value_2,omitempty" validate:"regexp=^[^\\\\n\\\\r]+$"` + // Whether or not this upstream is active and ready for requests. + IsActive *bool `json:"is_active,omitempty"` + // 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. + Mode *string `json:"mode,omitempty"` + // A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. + Name string `json:"name" validate:"regexp=^\\\\w[\\\\w \\\\-'\\\\.\\/()]+$"` + // 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"` + // 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. + VerifySsl *bool `json:"verify_ssl,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _HuggingfaceUpstream HuggingfaceUpstream + +// NewHuggingfaceUpstream instantiates a new HuggingfaceUpstream 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 NewHuggingfaceUpstream(name string, upstreamUrl string) *HuggingfaceUpstream { + this := HuggingfaceUpstream{} + var authMode string = "None" + this.AuthMode = &authMode + var mode string = "Proxy Only" + this.Mode = &mode + this.Name = name + this.UpstreamUrl = upstreamUrl + return &this +} + +// NewHuggingfaceUpstreamWithDefaults instantiates a new HuggingfaceUpstream 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 NewHuggingfaceUpstreamWithDefaults() *HuggingfaceUpstream { + this := HuggingfaceUpstream{} + var authMode string = "None" + this.AuthMode = &authMode + var mode string = "Proxy Only" + this.Mode = &mode + return &this +} + +// GetAuthMode returns the AuthMode field value if set, zero value otherwise. +func (o *HuggingfaceUpstream) GetAuthMode() string { + if o == nil || IsNil(o.AuthMode) { + var ret string + return ret + } + return *o.AuthMode +} + +// GetAuthModeOk returns a tuple with the AuthMode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HuggingfaceUpstream) GetAuthModeOk() (*string, bool) { + if o == nil || IsNil(o.AuthMode) { + return nil, false + } + return o.AuthMode, true +} + +// HasAuthMode returns a boolean if a field has been set. +func (o *HuggingfaceUpstream) HasAuthMode() bool { + if o != nil && !IsNil(o.AuthMode) { + return true + } + + return false +} + +// SetAuthMode gets a reference to the given string and assigns it to the AuthMode field. +func (o *HuggingfaceUpstream) SetAuthMode(v string) { + o.AuthMode = &v +} + +// GetAuthSecret returns the AuthSecret field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *HuggingfaceUpstream) GetAuthSecret() string { + if o == nil || IsNil(o.AuthSecret.Get()) { + var ret string + return ret + } + return *o.AuthSecret.Get() +} + +// GetAuthSecretOk returns a tuple with the AuthSecret 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) GetAuthSecretOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AuthSecret.Get(), o.AuthSecret.IsSet() +} + +// HasAuthSecret returns a boolean if a field has been set. +func (o *HuggingfaceUpstream) HasAuthSecret() bool { + if o != nil && o.AuthSecret.IsSet() { + return true + } + + return false +} + +// SetAuthSecret gets a reference to the given NullableString and assigns it to the AuthSecret field. +func (o *HuggingfaceUpstream) SetAuthSecret(v string) { + o.AuthSecret.Set(&v) +} + +// SetAuthSecretNil sets the value for AuthSecret to be an explicit nil +func (o *HuggingfaceUpstream) SetAuthSecretNil() { + o.AuthSecret.Set(nil) +} + +// UnsetAuthSecret ensures that no value is present for AuthSecret, not even an explicit nil +func (o *HuggingfaceUpstream) UnsetAuthSecret() { + o.AuthSecret.Unset() +} + +// GetAuthUsername returns the AuthUsername field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *HuggingfaceUpstream) GetAuthUsername() string { + if o == nil || IsNil(o.AuthUsername.Get()) { + var ret string + return ret + } + return *o.AuthUsername.Get() +} + +// GetAuthUsernameOk returns a tuple with the AuthUsername 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) GetAuthUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AuthUsername.Get(), o.AuthUsername.IsSet() +} + +// HasAuthUsername returns a boolean if a field has been set. +func (o *HuggingfaceUpstream) HasAuthUsername() bool { + if o != nil && o.AuthUsername.IsSet() { + return true + } + + return false +} + +// SetAuthUsername gets a reference to the given NullableString and assigns it to the AuthUsername field. +func (o *HuggingfaceUpstream) SetAuthUsername(v string) { + o.AuthUsername.Set(&v) +} + +// SetAuthUsernameNil sets the value for AuthUsername to be an explicit nil +func (o *HuggingfaceUpstream) SetAuthUsernameNil() { + o.AuthUsername.Set(nil) +} + +// UnsetAuthUsername ensures that no value is present for AuthUsername, not even an explicit nil +func (o *HuggingfaceUpstream) UnsetAuthUsername() { + o.AuthUsername.Unset() +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *HuggingfaceUpstream) GetCreatedAt() time.Time { + if o == nil || IsNil(o.CreatedAt) { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HuggingfaceUpstream) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.CreatedAt) { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *HuggingfaceUpstream) HasCreatedAt() bool { + if o != nil && !IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *HuggingfaceUpstream) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetDisableReason returns the DisableReason field value if set, zero value otherwise. +func (o *HuggingfaceUpstream) GetDisableReason() string { + if o == nil || IsNil(o.DisableReason) { + var ret string + return ret + } + return *o.DisableReason +} + +// GetDisableReasonOk returns a tuple with the DisableReason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HuggingfaceUpstream) GetDisableReasonOk() (*string, bool) { + if o == nil || IsNil(o.DisableReason) { + return nil, false + } + return o.DisableReason, true +} + +// HasDisableReason returns a boolean if a field has been set. +func (o *HuggingfaceUpstream) HasDisableReason() bool { + if o != nil && !IsNil(o.DisableReason) { + return true + } + + return false +} + +// SetDisableReason gets a reference to the given string and assigns it to the DisableReason field. +func (o *HuggingfaceUpstream) SetDisableReason(v string) { + o.DisableReason = &v +} + +// GetExtraHeader1 returns the ExtraHeader1 field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *HuggingfaceUpstream) GetExtraHeader1() string { + if o == nil || IsNil(o.ExtraHeader1.Get()) { + var ret string + return ret + } + return *o.ExtraHeader1.Get() +} + +// GetExtraHeader1Ok returns a tuple with the ExtraHeader1 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) GetExtraHeader1Ok() (*string, bool) { + if o == nil { + return nil, false + } + return o.ExtraHeader1.Get(), o.ExtraHeader1.IsSet() +} + +// HasExtraHeader1 returns a boolean if a field has been set. +func (o *HuggingfaceUpstream) HasExtraHeader1() bool { + if o != nil && o.ExtraHeader1.IsSet() { + return true + } + + return false +} + +// SetExtraHeader1 gets a reference to the given NullableString and assigns it to the ExtraHeader1 field. +func (o *HuggingfaceUpstream) SetExtraHeader1(v string) { + o.ExtraHeader1.Set(&v) +} + +// SetExtraHeader1Nil sets the value for ExtraHeader1 to be an explicit nil +func (o *HuggingfaceUpstream) SetExtraHeader1Nil() { + o.ExtraHeader1.Set(nil) +} + +// UnsetExtraHeader1 ensures that no value is present for ExtraHeader1, not even an explicit nil +func (o *HuggingfaceUpstream) UnsetExtraHeader1() { + o.ExtraHeader1.Unset() +} + +// GetExtraHeader2 returns the ExtraHeader2 field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *HuggingfaceUpstream) GetExtraHeader2() string { + if o == nil || IsNil(o.ExtraHeader2.Get()) { + var ret string + return ret + } + return *o.ExtraHeader2.Get() +} + +// GetExtraHeader2Ok returns a tuple with the ExtraHeader2 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) GetExtraHeader2Ok() (*string, bool) { + if o == nil { + return nil, false + } + return o.ExtraHeader2.Get(), o.ExtraHeader2.IsSet() +} + +// HasExtraHeader2 returns a boolean if a field has been set. +func (o *HuggingfaceUpstream) HasExtraHeader2() bool { + if o != nil && o.ExtraHeader2.IsSet() { + return true + } + + return false +} + +// SetExtraHeader2 gets a reference to the given NullableString and assigns it to the ExtraHeader2 field. +func (o *HuggingfaceUpstream) SetExtraHeader2(v string) { + o.ExtraHeader2.Set(&v) +} + +// SetExtraHeader2Nil sets the value for ExtraHeader2 to be an explicit nil +func (o *HuggingfaceUpstream) SetExtraHeader2Nil() { + o.ExtraHeader2.Set(nil) +} + +// UnsetExtraHeader2 ensures that no value is present for ExtraHeader2, not even an explicit nil +func (o *HuggingfaceUpstream) UnsetExtraHeader2() { + o.ExtraHeader2.Unset() +} + +// GetExtraValue1 returns the ExtraValue1 field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *HuggingfaceUpstream) GetExtraValue1() string { + if o == nil || IsNil(o.ExtraValue1.Get()) { + var ret string + return ret + } + return *o.ExtraValue1.Get() +} + +// GetExtraValue1Ok returns a tuple with the ExtraValue1 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) GetExtraValue1Ok() (*string, bool) { + if o == nil { + return nil, false + } + return o.ExtraValue1.Get(), o.ExtraValue1.IsSet() +} + +// HasExtraValue1 returns a boolean if a field has been set. +func (o *HuggingfaceUpstream) HasExtraValue1() bool { + if o != nil && o.ExtraValue1.IsSet() { + return true + } + + return false +} + +// SetExtraValue1 gets a reference to the given NullableString and assigns it to the ExtraValue1 field. +func (o *HuggingfaceUpstream) SetExtraValue1(v string) { + o.ExtraValue1.Set(&v) +} + +// SetExtraValue1Nil sets the value for ExtraValue1 to be an explicit nil +func (o *HuggingfaceUpstream) SetExtraValue1Nil() { + o.ExtraValue1.Set(nil) +} + +// UnsetExtraValue1 ensures that no value is present for ExtraValue1, not even an explicit nil +func (o *HuggingfaceUpstream) UnsetExtraValue1() { + o.ExtraValue1.Unset() +} + +// GetExtraValue2 returns the ExtraValue2 field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *HuggingfaceUpstream) GetExtraValue2() string { + if o == nil || IsNil(o.ExtraValue2.Get()) { + var ret string + return ret + } + return *o.ExtraValue2.Get() +} + +// GetExtraValue2Ok returns a tuple with the ExtraValue2 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) GetExtraValue2Ok() (*string, bool) { + if o == nil { + return nil, false + } + return o.ExtraValue2.Get(), o.ExtraValue2.IsSet() +} + +// HasExtraValue2 returns a boolean if a field has been set. +func (o *HuggingfaceUpstream) HasExtraValue2() bool { + if o != nil && o.ExtraValue2.IsSet() { + return true + } + + return false +} + +// SetExtraValue2 gets a reference to the given NullableString and assigns it to the ExtraValue2 field. +func (o *HuggingfaceUpstream) SetExtraValue2(v string) { + o.ExtraValue2.Set(&v) +} + +// SetExtraValue2Nil sets the value for ExtraValue2 to be an explicit nil +func (o *HuggingfaceUpstream) SetExtraValue2Nil() { + o.ExtraValue2.Set(nil) +} + +// UnsetExtraValue2 ensures that no value is present for ExtraValue2, not even an explicit nil +func (o *HuggingfaceUpstream) UnsetExtraValue2() { + o.ExtraValue2.Unset() +} + +// GetIsActive returns the IsActive field value if set, zero value otherwise. +func (o *HuggingfaceUpstream) GetIsActive() bool { + if o == nil || IsNil(o.IsActive) { + var ret bool + return ret + } + return *o.IsActive +} + +// GetIsActiveOk returns a tuple with the IsActive field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HuggingfaceUpstream) GetIsActiveOk() (*bool, bool) { + if o == nil || IsNil(o.IsActive) { + return nil, false + } + return o.IsActive, true +} + +// HasIsActive returns a boolean if a field has been set. +func (o *HuggingfaceUpstream) HasIsActive() bool { + if o != nil && !IsNil(o.IsActive) { + return true + } + + return false +} + +// SetIsActive gets a reference to the given bool and assigns it to the IsActive field. +func (o *HuggingfaceUpstream) SetIsActive(v bool) { + o.IsActive = &v +} + +// GetMode returns the Mode field value if set, zero value otherwise. +func (o *HuggingfaceUpstream) GetMode() string { + if o == nil || IsNil(o.Mode) { + var ret string + return ret + } + return *o.Mode +} + +// GetModeOk returns a tuple with the Mode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HuggingfaceUpstream) GetModeOk() (*string, bool) { + if o == nil || IsNil(o.Mode) { + return nil, false + } + return o.Mode, true +} + +// HasMode returns a boolean if a field has been set. +func (o *HuggingfaceUpstream) HasMode() bool { + if o != nil && !IsNil(o.Mode) { + return true + } + + return false +} + +// SetMode gets a reference to the given string and assigns it to the Mode field. +func (o *HuggingfaceUpstream) SetMode(v string) { + o.Mode = &v +} + +// GetName returns the Name field value +func (o *HuggingfaceUpstream) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *HuggingfaceUpstream) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *HuggingfaceUpstream) SetName(v string) { + o.Name = v +} + +// GetPendingValidation returns the PendingValidation field value if set, zero value otherwise. +func (o *HuggingfaceUpstream) GetPendingValidation() bool { + if o == nil || IsNil(o.PendingValidation) { + var ret bool + return ret + } + return *o.PendingValidation +} + +// GetPendingValidationOk returns a tuple with the PendingValidation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HuggingfaceUpstream) GetPendingValidationOk() (*bool, bool) { + if o == nil || IsNil(o.PendingValidation) { + return nil, false + } + return o.PendingValidation, true +} + +// HasPendingValidation returns a boolean if a field has been set. +func (o *HuggingfaceUpstream) HasPendingValidation() bool { + if o != nil && !IsNil(o.PendingValidation) { + return true + } + + return false +} + +// SetPendingValidation gets a reference to the given bool and assigns it to the PendingValidation field. +func (o *HuggingfaceUpstream) SetPendingValidation(v bool) { + o.PendingValidation = &v +} + +// GetPriority returns the Priority field value if set, zero value otherwise. +func (o *HuggingfaceUpstream) GetPriority() int64 { + if o == nil || IsNil(o.Priority) { + var ret int64 + return ret + } + return *o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HuggingfaceUpstream) GetPriorityOk() (*int64, bool) { + if o == nil || IsNil(o.Priority) { + return nil, false + } + return o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *HuggingfaceUpstream) HasPriority() bool { + if o != nil && !IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given int64 and assigns it to the Priority field. +func (o *HuggingfaceUpstream) SetPriority(v int64) { + o.Priority = &v +} + +// GetSlugPerm returns the SlugPerm field value if set, zero value otherwise. +func (o *HuggingfaceUpstream) 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 *HuggingfaceUpstream) 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 *HuggingfaceUpstream) 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 *HuggingfaceUpstream) SetSlugPerm(v string) { + o.SlugPerm = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *HuggingfaceUpstream) GetUpdatedAt() time.Time { + if o == nil || IsNil(o.UpdatedAt) { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HuggingfaceUpstream) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.UpdatedAt) { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *HuggingfaceUpstream) HasUpdatedAt() bool { + if o != nil && !IsNil(o.UpdatedAt) { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *HuggingfaceUpstream) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +// GetUpstreamUrl returns the UpstreamUrl field value +func (o *HuggingfaceUpstream) GetUpstreamUrl() string { + if o == nil { + var ret string + return ret + } + + return o.UpstreamUrl +} + +// GetUpstreamUrlOk returns a tuple with the UpstreamUrl field value +// and a boolean to check if the value has been set. +func (o *HuggingfaceUpstream) GetUpstreamUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.UpstreamUrl, true +} + +// SetUpstreamUrl sets field value +func (o *HuggingfaceUpstream) SetUpstreamUrl(v string) { + o.UpstreamUrl = v +} + +// GetVerifySsl returns the VerifySsl field value if set, zero value otherwise. +func (o *HuggingfaceUpstream) GetVerifySsl() bool { + if o == nil || IsNil(o.VerifySsl) { + var ret bool + return ret + } + return *o.VerifySsl +} + +// GetVerifySslOk returns a tuple with the VerifySsl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HuggingfaceUpstream) GetVerifySslOk() (*bool, bool) { + if o == nil || IsNil(o.VerifySsl) { + return nil, false + } + return o.VerifySsl, true +} + +// HasVerifySsl returns a boolean if a field has been set. +func (o *HuggingfaceUpstream) HasVerifySsl() bool { + if o != nil && !IsNil(o.VerifySsl) { + return true + } + + return false +} + +// SetVerifySsl gets a reference to the given bool and assigns it to the VerifySsl field. +func (o *HuggingfaceUpstream) SetVerifySsl(v bool) { + o.VerifySsl = &v +} + +func (o HuggingfaceUpstream) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o HuggingfaceUpstream) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AuthMode) { + toSerialize["auth_mode"] = o.AuthMode + } + if o.AuthSecret.IsSet() { + toSerialize["auth_secret"] = o.AuthSecret.Get() + } + if o.AuthUsername.IsSet() { + toSerialize["auth_username"] = o.AuthUsername.Get() + } + if !IsNil(o.CreatedAt) { + toSerialize["created_at"] = o.CreatedAt + } + if !IsNil(o.DisableReason) { + toSerialize["disable_reason"] = o.DisableReason + } + if o.ExtraHeader1.IsSet() { + toSerialize["extra_header_1"] = o.ExtraHeader1.Get() + } + if o.ExtraHeader2.IsSet() { + toSerialize["extra_header_2"] = o.ExtraHeader2.Get() + } + if o.ExtraValue1.IsSet() { + toSerialize["extra_value_1"] = o.ExtraValue1.Get() + } + if o.ExtraValue2.IsSet() { + toSerialize["extra_value_2"] = o.ExtraValue2.Get() + } + if !IsNil(o.IsActive) { + toSerialize["is_active"] = o.IsActive + } + if !IsNil(o.Mode) { + toSerialize["mode"] = o.Mode + } + toSerialize["name"] = o.Name + if !IsNil(o.PendingValidation) { + toSerialize["pending_validation"] = o.PendingValidation + } + if !IsNil(o.Priority) { + toSerialize["priority"] = o.Priority + } + if !IsNil(o.SlugPerm) { + toSerialize["slug_perm"] = o.SlugPerm + } + if !IsNil(o.UpdatedAt) { + toSerialize["updated_at"] = o.UpdatedAt + } + toSerialize["upstream_url"] = o.UpstreamUrl + if !IsNil(o.VerifySsl) { + toSerialize["verify_ssl"] = o.VerifySsl + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *HuggingfaceUpstream) 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{ + "name", + "upstream_url", + } + + 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) + } + } + + varHuggingfaceUpstream := _HuggingfaceUpstream{} + + err = json.Unmarshal(data, &varHuggingfaceUpstream) + + if err != nil { + return err + } + + *o = HuggingfaceUpstream(varHuggingfaceUpstream) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "auth_mode") + delete(additionalProperties, "auth_secret") + delete(additionalProperties, "auth_username") + delete(additionalProperties, "created_at") + delete(additionalProperties, "disable_reason") + delete(additionalProperties, "extra_header_1") + delete(additionalProperties, "extra_header_2") + delete(additionalProperties, "extra_value_1") + delete(additionalProperties, "extra_value_2") + delete(additionalProperties, "is_active") + delete(additionalProperties, "mode") + delete(additionalProperties, "name") + delete(additionalProperties, "pending_validation") + delete(additionalProperties, "priority") + delete(additionalProperties, "slug_perm") + delete(additionalProperties, "updated_at") + delete(additionalProperties, "upstream_url") + delete(additionalProperties, "verify_ssl") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableHuggingfaceUpstream struct { + value *HuggingfaceUpstream + isSet bool +} + +func (v NullableHuggingfaceUpstream) Get() *HuggingfaceUpstream { + return v.value +} + +func (v *NullableHuggingfaceUpstream) Set(val *HuggingfaceUpstream) { + v.value = val + v.isSet = true +} + +func (v NullableHuggingfaceUpstream) IsSet() bool { + return v.isSet +} + +func (v *NullableHuggingfaceUpstream) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableHuggingfaceUpstream(val *HuggingfaceUpstream) *NullableHuggingfaceUpstream { + return &NullableHuggingfaceUpstream{value: val, isSet: true} +} + +func (v NullableHuggingfaceUpstream) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableHuggingfaceUpstream) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_huggingface_upstream_request.go b/model_huggingface_upstream_request.go new file mode 100644 index 00000000..e56025ce --- /dev/null +++ b/model_huggingface_upstream_request.go @@ -0,0 +1,690 @@ +/* +Cloudsmith API (v1) + +The API to the Cloudsmith Service + +API version: 1.830.6 +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 HuggingfaceUpstreamRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &HuggingfaceUpstreamRequest{} + +// HuggingfaceUpstreamRequest struct for HuggingfaceUpstreamRequest +type HuggingfaceUpstreamRequest struct { + // The authentication mode to use when accessing this upstream. + AuthMode *string `json:"auth_mode,omitempty"` + // Secret to provide with requests to upstream. + AuthSecret NullableString `json:"auth_secret,omitempty"` + // Username to provide with requests to upstream. + AuthUsername NullableString `json:"auth_username,omitempty"` + // The key for extra header #1 to send to upstream. + ExtraHeader1 NullableString `json:"extra_header_1,omitempty" validate:"regexp=^[-\\\\w]+$"` + // The key for extra header #2 to send to upstream. + ExtraHeader2 NullableString `json:"extra_header_2,omitempty" validate:"regexp=^[-\\\\w]+$"` + // The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. + ExtraValue1 NullableString `json:"extra_value_1,omitempty" validate:"regexp=^[^\\\\n\\\\r]+$"` + // The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. + ExtraValue2 NullableString `json:"extra_value_2,omitempty" validate:"regexp=^[^\\\\n\\\\r]+$"` + // Whether or not this upstream is active and ready for requests. + IsActive *bool `json:"is_active,omitempty"` + // 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. + Mode *string `json:"mode,omitempty"` + // A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. + 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"` + // 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. + VerifySsl *bool `json:"verify_ssl,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _HuggingfaceUpstreamRequest HuggingfaceUpstreamRequest + +// NewHuggingfaceUpstreamRequest instantiates a new HuggingfaceUpstreamRequest 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 NewHuggingfaceUpstreamRequest(name string, upstreamUrl string) *HuggingfaceUpstreamRequest { + this := HuggingfaceUpstreamRequest{} + var authMode string = "None" + this.AuthMode = &authMode + var mode string = "Proxy Only" + this.Mode = &mode + this.Name = name + this.UpstreamUrl = upstreamUrl + return &this +} + +// NewHuggingfaceUpstreamRequestWithDefaults instantiates a new HuggingfaceUpstreamRequest 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 NewHuggingfaceUpstreamRequestWithDefaults() *HuggingfaceUpstreamRequest { + this := HuggingfaceUpstreamRequest{} + var authMode string = "None" + this.AuthMode = &authMode + var mode string = "Proxy Only" + this.Mode = &mode + return &this +} + +// GetAuthMode returns the AuthMode field value if set, zero value otherwise. +func (o *HuggingfaceUpstreamRequest) GetAuthMode() string { + if o == nil || IsNil(o.AuthMode) { + var ret string + return ret + } + return *o.AuthMode +} + +// GetAuthModeOk returns a tuple with the AuthMode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HuggingfaceUpstreamRequest) GetAuthModeOk() (*string, bool) { + if o == nil || IsNil(o.AuthMode) { + return nil, false + } + return o.AuthMode, true +} + +// HasAuthMode returns a boolean if a field has been set. +func (o *HuggingfaceUpstreamRequest) HasAuthMode() bool { + if o != nil && !IsNil(o.AuthMode) { + return true + } + + return false +} + +// SetAuthMode gets a reference to the given string and assigns it to the AuthMode field. +func (o *HuggingfaceUpstreamRequest) SetAuthMode(v string) { + o.AuthMode = &v +} + +// GetAuthSecret returns the AuthSecret field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *HuggingfaceUpstreamRequest) GetAuthSecret() string { + if o == nil || IsNil(o.AuthSecret.Get()) { + var ret string + return ret + } + return *o.AuthSecret.Get() +} + +// GetAuthSecretOk returns a tuple with the AuthSecret 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 *HuggingfaceUpstreamRequest) GetAuthSecretOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AuthSecret.Get(), o.AuthSecret.IsSet() +} + +// HasAuthSecret returns a boolean if a field has been set. +func (o *HuggingfaceUpstreamRequest) HasAuthSecret() bool { + if o != nil && o.AuthSecret.IsSet() { + return true + } + + return false +} + +// SetAuthSecret gets a reference to the given NullableString and assigns it to the AuthSecret field. +func (o *HuggingfaceUpstreamRequest) SetAuthSecret(v string) { + o.AuthSecret.Set(&v) +} + +// SetAuthSecretNil sets the value for AuthSecret to be an explicit nil +func (o *HuggingfaceUpstreamRequest) SetAuthSecretNil() { + o.AuthSecret.Set(nil) +} + +// UnsetAuthSecret ensures that no value is present for AuthSecret, not even an explicit nil +func (o *HuggingfaceUpstreamRequest) UnsetAuthSecret() { + o.AuthSecret.Unset() +} + +// GetAuthUsername returns the AuthUsername field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *HuggingfaceUpstreamRequest) GetAuthUsername() string { + if o == nil || IsNil(o.AuthUsername.Get()) { + var ret string + return ret + } + return *o.AuthUsername.Get() +} + +// GetAuthUsernameOk returns a tuple with the AuthUsername 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 *HuggingfaceUpstreamRequest) GetAuthUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AuthUsername.Get(), o.AuthUsername.IsSet() +} + +// HasAuthUsername returns a boolean if a field has been set. +func (o *HuggingfaceUpstreamRequest) HasAuthUsername() bool { + if o != nil && o.AuthUsername.IsSet() { + return true + } + + return false +} + +// SetAuthUsername gets a reference to the given NullableString and assigns it to the AuthUsername field. +func (o *HuggingfaceUpstreamRequest) SetAuthUsername(v string) { + o.AuthUsername.Set(&v) +} + +// SetAuthUsernameNil sets the value for AuthUsername to be an explicit nil +func (o *HuggingfaceUpstreamRequest) SetAuthUsernameNil() { + o.AuthUsername.Set(nil) +} + +// UnsetAuthUsername ensures that no value is present for AuthUsername, not even an explicit nil +func (o *HuggingfaceUpstreamRequest) UnsetAuthUsername() { + o.AuthUsername.Unset() +} + +// GetExtraHeader1 returns the ExtraHeader1 field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *HuggingfaceUpstreamRequest) GetExtraHeader1() string { + if o == nil || IsNil(o.ExtraHeader1.Get()) { + var ret string + return ret + } + return *o.ExtraHeader1.Get() +} + +// GetExtraHeader1Ok returns a tuple with the ExtraHeader1 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 *HuggingfaceUpstreamRequest) GetExtraHeader1Ok() (*string, bool) { + if o == nil { + return nil, false + } + return o.ExtraHeader1.Get(), o.ExtraHeader1.IsSet() +} + +// HasExtraHeader1 returns a boolean if a field has been set. +func (o *HuggingfaceUpstreamRequest) HasExtraHeader1() bool { + if o != nil && o.ExtraHeader1.IsSet() { + return true + } + + return false +} + +// SetExtraHeader1 gets a reference to the given NullableString and assigns it to the ExtraHeader1 field. +func (o *HuggingfaceUpstreamRequest) SetExtraHeader1(v string) { + o.ExtraHeader1.Set(&v) +} + +// SetExtraHeader1Nil sets the value for ExtraHeader1 to be an explicit nil +func (o *HuggingfaceUpstreamRequest) SetExtraHeader1Nil() { + o.ExtraHeader1.Set(nil) +} + +// UnsetExtraHeader1 ensures that no value is present for ExtraHeader1, not even an explicit nil +func (o *HuggingfaceUpstreamRequest) UnsetExtraHeader1() { + o.ExtraHeader1.Unset() +} + +// GetExtraHeader2 returns the ExtraHeader2 field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *HuggingfaceUpstreamRequest) GetExtraHeader2() string { + if o == nil || IsNil(o.ExtraHeader2.Get()) { + var ret string + return ret + } + return *o.ExtraHeader2.Get() +} + +// GetExtraHeader2Ok returns a tuple with the ExtraHeader2 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 *HuggingfaceUpstreamRequest) GetExtraHeader2Ok() (*string, bool) { + if o == nil { + return nil, false + } + return o.ExtraHeader2.Get(), o.ExtraHeader2.IsSet() +} + +// HasExtraHeader2 returns a boolean if a field has been set. +func (o *HuggingfaceUpstreamRequest) HasExtraHeader2() bool { + if o != nil && o.ExtraHeader2.IsSet() { + return true + } + + return false +} + +// SetExtraHeader2 gets a reference to the given NullableString and assigns it to the ExtraHeader2 field. +func (o *HuggingfaceUpstreamRequest) SetExtraHeader2(v string) { + o.ExtraHeader2.Set(&v) +} + +// SetExtraHeader2Nil sets the value for ExtraHeader2 to be an explicit nil +func (o *HuggingfaceUpstreamRequest) SetExtraHeader2Nil() { + o.ExtraHeader2.Set(nil) +} + +// UnsetExtraHeader2 ensures that no value is present for ExtraHeader2, not even an explicit nil +func (o *HuggingfaceUpstreamRequest) UnsetExtraHeader2() { + o.ExtraHeader2.Unset() +} + +// GetExtraValue1 returns the ExtraValue1 field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *HuggingfaceUpstreamRequest) GetExtraValue1() string { + if o == nil || IsNil(o.ExtraValue1.Get()) { + var ret string + return ret + } + return *o.ExtraValue1.Get() +} + +// GetExtraValue1Ok returns a tuple with the ExtraValue1 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 *HuggingfaceUpstreamRequest) GetExtraValue1Ok() (*string, bool) { + if o == nil { + return nil, false + } + return o.ExtraValue1.Get(), o.ExtraValue1.IsSet() +} + +// HasExtraValue1 returns a boolean if a field has been set. +func (o *HuggingfaceUpstreamRequest) HasExtraValue1() bool { + if o != nil && o.ExtraValue1.IsSet() { + return true + } + + return false +} + +// SetExtraValue1 gets a reference to the given NullableString and assigns it to the ExtraValue1 field. +func (o *HuggingfaceUpstreamRequest) SetExtraValue1(v string) { + o.ExtraValue1.Set(&v) +} + +// SetExtraValue1Nil sets the value for ExtraValue1 to be an explicit nil +func (o *HuggingfaceUpstreamRequest) SetExtraValue1Nil() { + o.ExtraValue1.Set(nil) +} + +// UnsetExtraValue1 ensures that no value is present for ExtraValue1, not even an explicit nil +func (o *HuggingfaceUpstreamRequest) UnsetExtraValue1() { + o.ExtraValue1.Unset() +} + +// GetExtraValue2 returns the ExtraValue2 field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *HuggingfaceUpstreamRequest) GetExtraValue2() string { + if o == nil || IsNil(o.ExtraValue2.Get()) { + var ret string + return ret + } + return *o.ExtraValue2.Get() +} + +// GetExtraValue2Ok returns a tuple with the ExtraValue2 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 *HuggingfaceUpstreamRequest) GetExtraValue2Ok() (*string, bool) { + if o == nil { + return nil, false + } + return o.ExtraValue2.Get(), o.ExtraValue2.IsSet() +} + +// HasExtraValue2 returns a boolean if a field has been set. +func (o *HuggingfaceUpstreamRequest) HasExtraValue2() bool { + if o != nil && o.ExtraValue2.IsSet() { + return true + } + + return false +} + +// SetExtraValue2 gets a reference to the given NullableString and assigns it to the ExtraValue2 field. +func (o *HuggingfaceUpstreamRequest) SetExtraValue2(v string) { + o.ExtraValue2.Set(&v) +} + +// SetExtraValue2Nil sets the value for ExtraValue2 to be an explicit nil +func (o *HuggingfaceUpstreamRequest) SetExtraValue2Nil() { + o.ExtraValue2.Set(nil) +} + +// UnsetExtraValue2 ensures that no value is present for ExtraValue2, not even an explicit nil +func (o *HuggingfaceUpstreamRequest) UnsetExtraValue2() { + o.ExtraValue2.Unset() +} + +// GetIsActive returns the IsActive field value if set, zero value otherwise. +func (o *HuggingfaceUpstreamRequest) GetIsActive() bool { + if o == nil || IsNil(o.IsActive) { + var ret bool + return ret + } + return *o.IsActive +} + +// GetIsActiveOk returns a tuple with the IsActive field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HuggingfaceUpstreamRequest) GetIsActiveOk() (*bool, bool) { + if o == nil || IsNil(o.IsActive) { + return nil, false + } + return o.IsActive, true +} + +// HasIsActive returns a boolean if a field has been set. +func (o *HuggingfaceUpstreamRequest) HasIsActive() bool { + if o != nil && !IsNil(o.IsActive) { + return true + } + + return false +} + +// SetIsActive gets a reference to the given bool and assigns it to the IsActive field. +func (o *HuggingfaceUpstreamRequest) SetIsActive(v bool) { + o.IsActive = &v +} + +// GetMode returns the Mode field value if set, zero value otherwise. +func (o *HuggingfaceUpstreamRequest) GetMode() string { + if o == nil || IsNil(o.Mode) { + var ret string + return ret + } + return *o.Mode +} + +// GetModeOk returns a tuple with the Mode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HuggingfaceUpstreamRequest) GetModeOk() (*string, bool) { + if o == nil || IsNil(o.Mode) { + return nil, false + } + return o.Mode, true +} + +// HasMode returns a boolean if a field has been set. +func (o *HuggingfaceUpstreamRequest) HasMode() bool { + if o != nil && !IsNil(o.Mode) { + return true + } + + return false +} + +// SetMode gets a reference to the given string and assigns it to the Mode field. +func (o *HuggingfaceUpstreamRequest) SetMode(v string) { + o.Mode = &v +} + +// GetName returns the Name field value +func (o *HuggingfaceUpstreamRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *HuggingfaceUpstreamRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *HuggingfaceUpstreamRequest) SetName(v string) { + o.Name = v +} + +// GetPriority returns the Priority field value if set, zero value otherwise. +func (o *HuggingfaceUpstreamRequest) GetPriority() int64 { + if o == nil || IsNil(o.Priority) { + var ret int64 + return ret + } + return *o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HuggingfaceUpstreamRequest) GetPriorityOk() (*int64, bool) { + if o == nil || IsNil(o.Priority) { + return nil, false + } + return o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *HuggingfaceUpstreamRequest) HasPriority() bool { + if o != nil && !IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given int64 and assigns it to the Priority field. +func (o *HuggingfaceUpstreamRequest) SetPriority(v int64) { + o.Priority = &v +} + +// GetUpstreamUrl returns the UpstreamUrl field value +func (o *HuggingfaceUpstreamRequest) GetUpstreamUrl() string { + if o == nil { + var ret string + return ret + } + + return o.UpstreamUrl +} + +// GetUpstreamUrlOk returns a tuple with the UpstreamUrl field value +// and a boolean to check if the value has been set. +func (o *HuggingfaceUpstreamRequest) GetUpstreamUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.UpstreamUrl, true +} + +// SetUpstreamUrl sets field value +func (o *HuggingfaceUpstreamRequest) SetUpstreamUrl(v string) { + o.UpstreamUrl = v +} + +// GetVerifySsl returns the VerifySsl field value if set, zero value otherwise. +func (o *HuggingfaceUpstreamRequest) GetVerifySsl() bool { + if o == nil || IsNil(o.VerifySsl) { + var ret bool + return ret + } + return *o.VerifySsl +} + +// GetVerifySslOk returns a tuple with the VerifySsl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HuggingfaceUpstreamRequest) GetVerifySslOk() (*bool, bool) { + if o == nil || IsNil(o.VerifySsl) { + return nil, false + } + return o.VerifySsl, true +} + +// HasVerifySsl returns a boolean if a field has been set. +func (o *HuggingfaceUpstreamRequest) HasVerifySsl() bool { + if o != nil && !IsNil(o.VerifySsl) { + return true + } + + return false +} + +// SetVerifySsl gets a reference to the given bool and assigns it to the VerifySsl field. +func (o *HuggingfaceUpstreamRequest) SetVerifySsl(v bool) { + o.VerifySsl = &v +} + +func (o HuggingfaceUpstreamRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o HuggingfaceUpstreamRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AuthMode) { + toSerialize["auth_mode"] = o.AuthMode + } + if o.AuthSecret.IsSet() { + toSerialize["auth_secret"] = o.AuthSecret.Get() + } + if o.AuthUsername.IsSet() { + toSerialize["auth_username"] = o.AuthUsername.Get() + } + if o.ExtraHeader1.IsSet() { + toSerialize["extra_header_1"] = o.ExtraHeader1.Get() + } + if o.ExtraHeader2.IsSet() { + toSerialize["extra_header_2"] = o.ExtraHeader2.Get() + } + if o.ExtraValue1.IsSet() { + toSerialize["extra_value_1"] = o.ExtraValue1.Get() + } + if o.ExtraValue2.IsSet() { + toSerialize["extra_value_2"] = o.ExtraValue2.Get() + } + if !IsNil(o.IsActive) { + toSerialize["is_active"] = o.IsActive + } + if !IsNil(o.Mode) { + toSerialize["mode"] = o.Mode + } + toSerialize["name"] = o.Name + if !IsNil(o.Priority) { + toSerialize["priority"] = o.Priority + } + toSerialize["upstream_url"] = o.UpstreamUrl + if !IsNil(o.VerifySsl) { + toSerialize["verify_ssl"] = o.VerifySsl + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *HuggingfaceUpstreamRequest) 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{ + "name", + "upstream_url", + } + + 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) + } + } + + varHuggingfaceUpstreamRequest := _HuggingfaceUpstreamRequest{} + + err = json.Unmarshal(data, &varHuggingfaceUpstreamRequest) + + if err != nil { + return err + } + + *o = HuggingfaceUpstreamRequest(varHuggingfaceUpstreamRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "auth_mode") + delete(additionalProperties, "auth_secret") + delete(additionalProperties, "auth_username") + delete(additionalProperties, "extra_header_1") + delete(additionalProperties, "extra_header_2") + delete(additionalProperties, "extra_value_1") + delete(additionalProperties, "extra_value_2") + delete(additionalProperties, "is_active") + delete(additionalProperties, "mode") + delete(additionalProperties, "name") + delete(additionalProperties, "priority") + delete(additionalProperties, "upstream_url") + delete(additionalProperties, "verify_ssl") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableHuggingfaceUpstreamRequest struct { + value *HuggingfaceUpstreamRequest + isSet bool +} + +func (v NullableHuggingfaceUpstreamRequest) Get() *HuggingfaceUpstreamRequest { + return v.value +} + +func (v *NullableHuggingfaceUpstreamRequest) Set(val *HuggingfaceUpstreamRequest) { + v.value = val + v.isSet = true +} + +func (v NullableHuggingfaceUpstreamRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableHuggingfaceUpstreamRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableHuggingfaceUpstreamRequest(val *HuggingfaceUpstreamRequest) *NullableHuggingfaceUpstreamRequest { + return &NullableHuggingfaceUpstreamRequest{value: val, isSet: true} +} + +func (v NullableHuggingfaceUpstreamRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableHuggingfaceUpstreamRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_huggingface_upstream_request_patch.go b/model_huggingface_upstream_request_patch.go new file mode 100644 index 00000000..4b7bf118 --- /dev/null +++ b/model_huggingface_upstream_request_patch.go @@ -0,0 +1,685 @@ +/* +Cloudsmith API (v1) + +The API to the Cloudsmith Service + +API version: 1.830.6 +Contact: support@cloudsmith.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cloudsmith + +import ( + "encoding/json" +) + +// checks if the HuggingfaceUpstreamRequestPatch type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &HuggingfaceUpstreamRequestPatch{} + +// HuggingfaceUpstreamRequestPatch struct for HuggingfaceUpstreamRequestPatch +type HuggingfaceUpstreamRequestPatch struct { + // The authentication mode to use when accessing this upstream. + AuthMode *string `json:"auth_mode,omitempty"` + // Secret to provide with requests to upstream. + AuthSecret NullableString `json:"auth_secret,omitempty"` + // Username to provide with requests to upstream. + AuthUsername NullableString `json:"auth_username,omitempty"` + // The key for extra header #1 to send to upstream. + ExtraHeader1 NullableString `json:"extra_header_1,omitempty" validate:"regexp=^[-\\\\w]+$"` + // The key for extra header #2 to send to upstream. + ExtraHeader2 NullableString `json:"extra_header_2,omitempty" validate:"regexp=^[-\\\\w]+$"` + // The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. + ExtraValue1 NullableString `json:"extra_value_1,omitempty" validate:"regexp=^[^\\\\n\\\\r]+$"` + // The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. + ExtraValue2 NullableString `json:"extra_value_2,omitempty" validate:"regexp=^[^\\\\n\\\\r]+$"` + // Whether or not this upstream is active and ready for requests. + IsActive *bool `json:"is_active,omitempty"` + // 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. + Mode *string `json:"mode,omitempty"` + // A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. + 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"` + // 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. + VerifySsl *bool `json:"verify_ssl,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _HuggingfaceUpstreamRequestPatch HuggingfaceUpstreamRequestPatch + +// NewHuggingfaceUpstreamRequestPatch instantiates a new HuggingfaceUpstreamRequestPatch 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 NewHuggingfaceUpstreamRequestPatch() *HuggingfaceUpstreamRequestPatch { + this := HuggingfaceUpstreamRequestPatch{} + var authMode string = "None" + this.AuthMode = &authMode + var mode string = "Proxy Only" + this.Mode = &mode + return &this +} + +// NewHuggingfaceUpstreamRequestPatchWithDefaults instantiates a new HuggingfaceUpstreamRequestPatch 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 NewHuggingfaceUpstreamRequestPatchWithDefaults() *HuggingfaceUpstreamRequestPatch { + this := HuggingfaceUpstreamRequestPatch{} + var authMode string = "None" + this.AuthMode = &authMode + var mode string = "Proxy Only" + this.Mode = &mode + return &this +} + +// GetAuthMode returns the AuthMode field value if set, zero value otherwise. +func (o *HuggingfaceUpstreamRequestPatch) GetAuthMode() string { + if o == nil || IsNil(o.AuthMode) { + var ret string + return ret + } + return *o.AuthMode +} + +// GetAuthModeOk returns a tuple with the AuthMode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HuggingfaceUpstreamRequestPatch) GetAuthModeOk() (*string, bool) { + if o == nil || IsNil(o.AuthMode) { + return nil, false + } + return o.AuthMode, true +} + +// HasAuthMode returns a boolean if a field has been set. +func (o *HuggingfaceUpstreamRequestPatch) HasAuthMode() bool { + if o != nil && !IsNil(o.AuthMode) { + return true + } + + return false +} + +// SetAuthMode gets a reference to the given string and assigns it to the AuthMode field. +func (o *HuggingfaceUpstreamRequestPatch) SetAuthMode(v string) { + o.AuthMode = &v +} + +// GetAuthSecret returns the AuthSecret field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *HuggingfaceUpstreamRequestPatch) GetAuthSecret() string { + if o == nil || IsNil(o.AuthSecret.Get()) { + var ret string + return ret + } + return *o.AuthSecret.Get() +} + +// GetAuthSecretOk returns a tuple with the AuthSecret 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 *HuggingfaceUpstreamRequestPatch) GetAuthSecretOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AuthSecret.Get(), o.AuthSecret.IsSet() +} + +// HasAuthSecret returns a boolean if a field has been set. +func (o *HuggingfaceUpstreamRequestPatch) HasAuthSecret() bool { + if o != nil && o.AuthSecret.IsSet() { + return true + } + + return false +} + +// SetAuthSecret gets a reference to the given NullableString and assigns it to the AuthSecret field. +func (o *HuggingfaceUpstreamRequestPatch) SetAuthSecret(v string) { + o.AuthSecret.Set(&v) +} + +// SetAuthSecretNil sets the value for AuthSecret to be an explicit nil +func (o *HuggingfaceUpstreamRequestPatch) SetAuthSecretNil() { + o.AuthSecret.Set(nil) +} + +// UnsetAuthSecret ensures that no value is present for AuthSecret, not even an explicit nil +func (o *HuggingfaceUpstreamRequestPatch) UnsetAuthSecret() { + o.AuthSecret.Unset() +} + +// GetAuthUsername returns the AuthUsername field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *HuggingfaceUpstreamRequestPatch) GetAuthUsername() string { + if o == nil || IsNil(o.AuthUsername.Get()) { + var ret string + return ret + } + return *o.AuthUsername.Get() +} + +// GetAuthUsernameOk returns a tuple with the AuthUsername 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 *HuggingfaceUpstreamRequestPatch) GetAuthUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AuthUsername.Get(), o.AuthUsername.IsSet() +} + +// HasAuthUsername returns a boolean if a field has been set. +func (o *HuggingfaceUpstreamRequestPatch) HasAuthUsername() bool { + if o != nil && o.AuthUsername.IsSet() { + return true + } + + return false +} + +// SetAuthUsername gets a reference to the given NullableString and assigns it to the AuthUsername field. +func (o *HuggingfaceUpstreamRequestPatch) SetAuthUsername(v string) { + o.AuthUsername.Set(&v) +} + +// SetAuthUsernameNil sets the value for AuthUsername to be an explicit nil +func (o *HuggingfaceUpstreamRequestPatch) SetAuthUsernameNil() { + o.AuthUsername.Set(nil) +} + +// UnsetAuthUsername ensures that no value is present for AuthUsername, not even an explicit nil +func (o *HuggingfaceUpstreamRequestPatch) UnsetAuthUsername() { + o.AuthUsername.Unset() +} + +// GetExtraHeader1 returns the ExtraHeader1 field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *HuggingfaceUpstreamRequestPatch) GetExtraHeader1() string { + if o == nil || IsNil(o.ExtraHeader1.Get()) { + var ret string + return ret + } + return *o.ExtraHeader1.Get() +} + +// GetExtraHeader1Ok returns a tuple with the ExtraHeader1 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 *HuggingfaceUpstreamRequestPatch) GetExtraHeader1Ok() (*string, bool) { + if o == nil { + return nil, false + } + return o.ExtraHeader1.Get(), o.ExtraHeader1.IsSet() +} + +// HasExtraHeader1 returns a boolean if a field has been set. +func (o *HuggingfaceUpstreamRequestPatch) HasExtraHeader1() bool { + if o != nil && o.ExtraHeader1.IsSet() { + return true + } + + return false +} + +// SetExtraHeader1 gets a reference to the given NullableString and assigns it to the ExtraHeader1 field. +func (o *HuggingfaceUpstreamRequestPatch) SetExtraHeader1(v string) { + o.ExtraHeader1.Set(&v) +} + +// SetExtraHeader1Nil sets the value for ExtraHeader1 to be an explicit nil +func (o *HuggingfaceUpstreamRequestPatch) SetExtraHeader1Nil() { + o.ExtraHeader1.Set(nil) +} + +// UnsetExtraHeader1 ensures that no value is present for ExtraHeader1, not even an explicit nil +func (o *HuggingfaceUpstreamRequestPatch) UnsetExtraHeader1() { + o.ExtraHeader1.Unset() +} + +// GetExtraHeader2 returns the ExtraHeader2 field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *HuggingfaceUpstreamRequestPatch) GetExtraHeader2() string { + if o == nil || IsNil(o.ExtraHeader2.Get()) { + var ret string + return ret + } + return *o.ExtraHeader2.Get() +} + +// GetExtraHeader2Ok returns a tuple with the ExtraHeader2 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 *HuggingfaceUpstreamRequestPatch) GetExtraHeader2Ok() (*string, bool) { + if o == nil { + return nil, false + } + return o.ExtraHeader2.Get(), o.ExtraHeader2.IsSet() +} + +// HasExtraHeader2 returns a boolean if a field has been set. +func (o *HuggingfaceUpstreamRequestPatch) HasExtraHeader2() bool { + if o != nil && o.ExtraHeader2.IsSet() { + return true + } + + return false +} + +// SetExtraHeader2 gets a reference to the given NullableString and assigns it to the ExtraHeader2 field. +func (o *HuggingfaceUpstreamRequestPatch) SetExtraHeader2(v string) { + o.ExtraHeader2.Set(&v) +} + +// SetExtraHeader2Nil sets the value for ExtraHeader2 to be an explicit nil +func (o *HuggingfaceUpstreamRequestPatch) SetExtraHeader2Nil() { + o.ExtraHeader2.Set(nil) +} + +// UnsetExtraHeader2 ensures that no value is present for ExtraHeader2, not even an explicit nil +func (o *HuggingfaceUpstreamRequestPatch) UnsetExtraHeader2() { + o.ExtraHeader2.Unset() +} + +// GetExtraValue1 returns the ExtraValue1 field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *HuggingfaceUpstreamRequestPatch) GetExtraValue1() string { + if o == nil || IsNil(o.ExtraValue1.Get()) { + var ret string + return ret + } + return *o.ExtraValue1.Get() +} + +// GetExtraValue1Ok returns a tuple with the ExtraValue1 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 *HuggingfaceUpstreamRequestPatch) GetExtraValue1Ok() (*string, bool) { + if o == nil { + return nil, false + } + return o.ExtraValue1.Get(), o.ExtraValue1.IsSet() +} + +// HasExtraValue1 returns a boolean if a field has been set. +func (o *HuggingfaceUpstreamRequestPatch) HasExtraValue1() bool { + if o != nil && o.ExtraValue1.IsSet() { + return true + } + + return false +} + +// SetExtraValue1 gets a reference to the given NullableString and assigns it to the ExtraValue1 field. +func (o *HuggingfaceUpstreamRequestPatch) SetExtraValue1(v string) { + o.ExtraValue1.Set(&v) +} + +// SetExtraValue1Nil sets the value for ExtraValue1 to be an explicit nil +func (o *HuggingfaceUpstreamRequestPatch) SetExtraValue1Nil() { + o.ExtraValue1.Set(nil) +} + +// UnsetExtraValue1 ensures that no value is present for ExtraValue1, not even an explicit nil +func (o *HuggingfaceUpstreamRequestPatch) UnsetExtraValue1() { + o.ExtraValue1.Unset() +} + +// GetExtraValue2 returns the ExtraValue2 field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *HuggingfaceUpstreamRequestPatch) GetExtraValue2() string { + if o == nil || IsNil(o.ExtraValue2.Get()) { + var ret string + return ret + } + return *o.ExtraValue2.Get() +} + +// GetExtraValue2Ok returns a tuple with the ExtraValue2 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 *HuggingfaceUpstreamRequestPatch) GetExtraValue2Ok() (*string, bool) { + if o == nil { + return nil, false + } + return o.ExtraValue2.Get(), o.ExtraValue2.IsSet() +} + +// HasExtraValue2 returns a boolean if a field has been set. +func (o *HuggingfaceUpstreamRequestPatch) HasExtraValue2() bool { + if o != nil && o.ExtraValue2.IsSet() { + return true + } + + return false +} + +// SetExtraValue2 gets a reference to the given NullableString and assigns it to the ExtraValue2 field. +func (o *HuggingfaceUpstreamRequestPatch) SetExtraValue2(v string) { + o.ExtraValue2.Set(&v) +} + +// SetExtraValue2Nil sets the value for ExtraValue2 to be an explicit nil +func (o *HuggingfaceUpstreamRequestPatch) SetExtraValue2Nil() { + o.ExtraValue2.Set(nil) +} + +// UnsetExtraValue2 ensures that no value is present for ExtraValue2, not even an explicit nil +func (o *HuggingfaceUpstreamRequestPatch) UnsetExtraValue2() { + o.ExtraValue2.Unset() +} + +// GetIsActive returns the IsActive field value if set, zero value otherwise. +func (o *HuggingfaceUpstreamRequestPatch) GetIsActive() bool { + if o == nil || IsNil(o.IsActive) { + var ret bool + return ret + } + return *o.IsActive +} + +// GetIsActiveOk returns a tuple with the IsActive field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HuggingfaceUpstreamRequestPatch) GetIsActiveOk() (*bool, bool) { + if o == nil || IsNil(o.IsActive) { + return nil, false + } + return o.IsActive, true +} + +// HasIsActive returns a boolean if a field has been set. +func (o *HuggingfaceUpstreamRequestPatch) HasIsActive() bool { + if o != nil && !IsNil(o.IsActive) { + return true + } + + return false +} + +// SetIsActive gets a reference to the given bool and assigns it to the IsActive field. +func (o *HuggingfaceUpstreamRequestPatch) SetIsActive(v bool) { + o.IsActive = &v +} + +// GetMode returns the Mode field value if set, zero value otherwise. +func (o *HuggingfaceUpstreamRequestPatch) GetMode() string { + if o == nil || IsNil(o.Mode) { + var ret string + return ret + } + return *o.Mode +} + +// GetModeOk returns a tuple with the Mode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HuggingfaceUpstreamRequestPatch) GetModeOk() (*string, bool) { + if o == nil || IsNil(o.Mode) { + return nil, false + } + return o.Mode, true +} + +// HasMode returns a boolean if a field has been set. +func (o *HuggingfaceUpstreamRequestPatch) HasMode() bool { + if o != nil && !IsNil(o.Mode) { + return true + } + + return false +} + +// SetMode gets a reference to the given string and assigns it to the Mode field. +func (o *HuggingfaceUpstreamRequestPatch) SetMode(v string) { + o.Mode = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *HuggingfaceUpstreamRequestPatch) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HuggingfaceUpstreamRequestPatch) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *HuggingfaceUpstreamRequestPatch) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *HuggingfaceUpstreamRequestPatch) SetName(v string) { + o.Name = &v +} + +// GetPriority returns the Priority field value if set, zero value otherwise. +func (o *HuggingfaceUpstreamRequestPatch) GetPriority() int64 { + if o == nil || IsNil(o.Priority) { + var ret int64 + return ret + } + return *o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HuggingfaceUpstreamRequestPatch) GetPriorityOk() (*int64, bool) { + if o == nil || IsNil(o.Priority) { + return nil, false + } + return o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *HuggingfaceUpstreamRequestPatch) HasPriority() bool { + if o != nil && !IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given int64 and assigns it to the Priority field. +func (o *HuggingfaceUpstreamRequestPatch) SetPriority(v int64) { + o.Priority = &v +} + +// GetUpstreamUrl returns the UpstreamUrl field value if set, zero value otherwise. +func (o *HuggingfaceUpstreamRequestPatch) GetUpstreamUrl() string { + if o == nil || IsNil(o.UpstreamUrl) { + var ret string + return ret + } + return *o.UpstreamUrl +} + +// GetUpstreamUrlOk returns a tuple with the UpstreamUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HuggingfaceUpstreamRequestPatch) GetUpstreamUrlOk() (*string, bool) { + if o == nil || IsNil(o.UpstreamUrl) { + return nil, false + } + return o.UpstreamUrl, true +} + +// HasUpstreamUrl returns a boolean if a field has been set. +func (o *HuggingfaceUpstreamRequestPatch) HasUpstreamUrl() bool { + if o != nil && !IsNil(o.UpstreamUrl) { + return true + } + + return false +} + +// SetUpstreamUrl gets a reference to the given string and assigns it to the UpstreamUrl field. +func (o *HuggingfaceUpstreamRequestPatch) SetUpstreamUrl(v string) { + o.UpstreamUrl = &v +} + +// GetVerifySsl returns the VerifySsl field value if set, zero value otherwise. +func (o *HuggingfaceUpstreamRequestPatch) GetVerifySsl() bool { + if o == nil || IsNil(o.VerifySsl) { + var ret bool + return ret + } + return *o.VerifySsl +} + +// GetVerifySslOk returns a tuple with the VerifySsl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HuggingfaceUpstreamRequestPatch) GetVerifySslOk() (*bool, bool) { + if o == nil || IsNil(o.VerifySsl) { + return nil, false + } + return o.VerifySsl, true +} + +// HasVerifySsl returns a boolean if a field has been set. +func (o *HuggingfaceUpstreamRequestPatch) HasVerifySsl() bool { + if o != nil && !IsNil(o.VerifySsl) { + return true + } + + return false +} + +// SetVerifySsl gets a reference to the given bool and assigns it to the VerifySsl field. +func (o *HuggingfaceUpstreamRequestPatch) SetVerifySsl(v bool) { + o.VerifySsl = &v +} + +func (o HuggingfaceUpstreamRequestPatch) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o HuggingfaceUpstreamRequestPatch) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AuthMode) { + toSerialize["auth_mode"] = o.AuthMode + } + if o.AuthSecret.IsSet() { + toSerialize["auth_secret"] = o.AuthSecret.Get() + } + if o.AuthUsername.IsSet() { + toSerialize["auth_username"] = o.AuthUsername.Get() + } + if o.ExtraHeader1.IsSet() { + toSerialize["extra_header_1"] = o.ExtraHeader1.Get() + } + if o.ExtraHeader2.IsSet() { + toSerialize["extra_header_2"] = o.ExtraHeader2.Get() + } + if o.ExtraValue1.IsSet() { + toSerialize["extra_value_1"] = o.ExtraValue1.Get() + } + if o.ExtraValue2.IsSet() { + toSerialize["extra_value_2"] = o.ExtraValue2.Get() + } + if !IsNil(o.IsActive) { + toSerialize["is_active"] = o.IsActive + } + if !IsNil(o.Mode) { + toSerialize["mode"] = o.Mode + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Priority) { + toSerialize["priority"] = o.Priority + } + if !IsNil(o.UpstreamUrl) { + toSerialize["upstream_url"] = o.UpstreamUrl + } + if !IsNil(o.VerifySsl) { + toSerialize["verify_ssl"] = o.VerifySsl + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *HuggingfaceUpstreamRequestPatch) UnmarshalJSON(data []byte) (err error) { + varHuggingfaceUpstreamRequestPatch := _HuggingfaceUpstreamRequestPatch{} + + err = json.Unmarshal(data, &varHuggingfaceUpstreamRequestPatch) + + if err != nil { + return err + } + + *o = HuggingfaceUpstreamRequestPatch(varHuggingfaceUpstreamRequestPatch) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "auth_mode") + delete(additionalProperties, "auth_secret") + delete(additionalProperties, "auth_username") + delete(additionalProperties, "extra_header_1") + delete(additionalProperties, "extra_header_2") + delete(additionalProperties, "extra_value_1") + delete(additionalProperties, "extra_value_2") + delete(additionalProperties, "is_active") + delete(additionalProperties, "mode") + delete(additionalProperties, "name") + delete(additionalProperties, "priority") + delete(additionalProperties, "upstream_url") + delete(additionalProperties, "verify_ssl") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableHuggingfaceUpstreamRequestPatch struct { + value *HuggingfaceUpstreamRequestPatch + isSet bool +} + +func (v NullableHuggingfaceUpstreamRequestPatch) Get() *HuggingfaceUpstreamRequestPatch { + return v.value +} + +func (v *NullableHuggingfaceUpstreamRequestPatch) Set(val *HuggingfaceUpstreamRequestPatch) { + v.value = val + v.isSet = true +} + +func (v NullableHuggingfaceUpstreamRequestPatch) IsSet() bool { + return v.isSet +} + +func (v *NullableHuggingfaceUpstreamRequestPatch) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableHuggingfaceUpstreamRequestPatch(val *HuggingfaceUpstreamRequestPatch) *NullableHuggingfaceUpstreamRequestPatch { + return &NullableHuggingfaceUpstreamRequestPatch{value: val, isSet: true} +} + +func (v NullableHuggingfaceUpstreamRequestPatch) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableHuggingfaceUpstreamRequestPatch) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_luarocks_package_upload.go b/model_luarocks_package_upload.go index e8bb96d6..6c91e30d 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ @@ -118,6 +118,8 @@ type LuarocksPackageUpload struct { // 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. @@ -2641,6 +2643,38 @@ func (o *LuarocksPackageUpload) SetSyncProgress(v int64) { o.SyncProgress = &v } +// GetTagsAutomatic returns the TagsAutomatic field value if set, zero value otherwise. +func (o *LuarocksPackageUpload) 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 *LuarocksPackageUpload) 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 *LuarocksPackageUpload) 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 *LuarocksPackageUpload) SetTagsAutomatic(v map[string]interface{}) { + o.TagsAutomatic = v +} + // GetTagsImmutable returns the TagsImmutable field value if set, zero value otherwise. func (o *LuarocksPackageUpload) GetTagsImmutable() map[string]interface{} { if o == nil || IsNil(o.TagsImmutable) { @@ -3134,6 +3168,9 @@ func (o LuarocksPackageUpload) ToMap() (map[string]interface{}, error) { 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 } @@ -3252,6 +3289,7 @@ func (o *LuarocksPackageUpload) UnmarshalJSON(data []byte) (err error) { 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") diff --git a/model_luarocks_package_upload_request.go b/model_luarocks_package_upload_request.go index bd5a9aa0..e59097c9 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_maven_package_upload.go b/model_maven_package_upload.go index 91d7ce52..3b359bd8 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ @@ -126,6 +126,8 @@ type MavenPackageUpload struct { // 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. @@ -2864,6 +2866,38 @@ func (o *MavenPackageUpload) SetSyncProgress(v int64) { o.SyncProgress = &v } +// GetTagsAutomatic returns the TagsAutomatic field value if set, zero value otherwise. +func (o *MavenPackageUpload) 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 *MavenPackageUpload) 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 *MavenPackageUpload) 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 *MavenPackageUpload) SetTagsAutomatic(v map[string]interface{}) { + o.TagsAutomatic = v +} + // GetTagsImmutable returns the TagsImmutable field value if set, zero value otherwise. func (o *MavenPackageUpload) GetTagsImmutable() map[string]interface{} { if o == nil || IsNil(o.TagsImmutable) { @@ -3372,6 +3406,9 @@ func (o MavenPackageUpload) ToMap() (map[string]interface{}, error) { 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 } @@ -3495,6 +3532,7 @@ func (o *MavenPackageUpload) UnmarshalJSON(data []byte) (err error) { 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") diff --git a/model_maven_package_upload_request.go b/model_maven_package_upload_request.go index 3ddddd8e..c074f955 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_maven_upstream.go b/model_maven_upstream.go index 9f0cd098..ce2dae96 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_maven_upstream_request.go b/model_maven_upstream_request.go index e09c33f6..e82d18d1 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_maven_upstream_request_patch.go b/model_maven_upstream_request_patch.go index 0b9a53ae..2263dfd8 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_namespace.go b/model_namespace.go index 780d771b..c42670e1 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_namespace_audit_log.go b/model_namespace_audit_log.go index cba5e00c..82119e50 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_nested_license_policy.go b/model_nested_license_policy.go index 14429098..14b7a01a 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_nested_vulnerability_policy.go b/model_nested_vulnerability_policy.go index 40294c49..4603f625 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_nested_vulnerability_scan_results.go b/model_nested_vulnerability_scan_results.go index b4c9ec41..1477defa 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_npm_package_upload.go b/model_npm_package_upload.go index 59a37e24..1aaf13a3 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ @@ -118,6 +118,8 @@ type NpmPackageUpload struct { // 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. @@ -2641,6 +2643,38 @@ func (o *NpmPackageUpload) SetSyncProgress(v int64) { o.SyncProgress = &v } +// GetTagsAutomatic returns the TagsAutomatic field value if set, zero value otherwise. +func (o *NpmPackageUpload) 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 *NpmPackageUpload) 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 *NpmPackageUpload) 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 *NpmPackageUpload) SetTagsAutomatic(v map[string]interface{}) { + o.TagsAutomatic = v +} + // GetTagsImmutable returns the TagsImmutable field value if set, zero value otherwise. func (o *NpmPackageUpload) GetTagsImmutable() map[string]interface{} { if o == nil || IsNil(o.TagsImmutable) { @@ -3134,6 +3168,9 @@ func (o NpmPackageUpload) ToMap() (map[string]interface{}, error) { 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 } @@ -3252,6 +3289,7 @@ func (o *NpmPackageUpload) UnmarshalJSON(data []byte) (err error) { 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") diff --git a/model_npm_package_upload_request.go b/model_npm_package_upload_request.go index e54e7855..1721c4c4 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_npm_upstream.go b/model_npm_upstream.go index 05e80c83..b479973d 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_npm_upstream_request.go b/model_npm_upstream_request.go index 20411a36..42da6782 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_npm_upstream_request_patch.go b/model_npm_upstream_request_patch.go index 93e90d1a..6a4875b8 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_nuget_package_upload.go b/model_nuget_package_upload.go index 216a2a0d..34f772f4 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ @@ -118,6 +118,8 @@ type NugetPackageUpload struct { // 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. @@ -2641,6 +2643,38 @@ func (o *NugetPackageUpload) SetSyncProgress(v int64) { o.SyncProgress = &v } +// GetTagsAutomatic returns the TagsAutomatic field value if set, zero value otherwise. +func (o *NugetPackageUpload) 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 *NugetPackageUpload) 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 *NugetPackageUpload) 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 *NugetPackageUpload) SetTagsAutomatic(v map[string]interface{}) { + o.TagsAutomatic = v +} + // GetTagsImmutable returns the TagsImmutable field value if set, zero value otherwise. func (o *NugetPackageUpload) GetTagsImmutable() map[string]interface{} { if o == nil || IsNil(o.TagsImmutable) { @@ -3134,6 +3168,9 @@ func (o NugetPackageUpload) ToMap() (map[string]interface{}, error) { 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 } @@ -3252,6 +3289,7 @@ func (o *NugetPackageUpload) UnmarshalJSON(data []byte) (err error) { 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") diff --git a/model_nuget_package_upload_request.go b/model_nuget_package_upload_request.go index bf18e923..38e68c9c 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_nuget_upstream.go b/model_nuget_upstream.go index e8c8feb0..1d7bf94f 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_nuget_upstream_request.go b/model_nuget_upstream_request.go index feb8ee62..88335fa3 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_nuget_upstream_request_patch.go b/model_nuget_upstream_request_patch.go index 011841c4..9d369f32 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_organization.go b/model_organization.go index f1449b43..cf24f805 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_organization_group_sync.go b/model_organization_group_sync.go index 88b24280..2a093216 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_organization_group_sync_request.go b/model_organization_group_sync_request.go index 590a380d..4de252c0 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_organization_group_sync_status.go b/model_organization_group_sync_status.go index 41ab4353..847be890 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_organization_invite.go b/model_organization_invite.go index 9d45ae15..8ab66873 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_organization_invite_extend.go b/model_organization_invite_extend.go index f294a1f7..9a5097d2 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_organization_invite_request.go b/model_organization_invite_request.go index fefca700..7c4e72cd 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_organization_invite_update.go b/model_organization_invite_update.go index afc21220..6199caed 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_organization_invite_update_request_patch.go b/model_organization_invite_update_request_patch.go index c1db8f13..749acae4 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_organization_membership.go b/model_organization_membership.go index b675ec4b..a412f4a1 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_organization_membership_role_update.go b/model_organization_membership_role_update.go index 78ed64c5..2644bbca 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.768.2 +API version: 1.830.6 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 a0b58d11..4a685a0d 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_organization_membership_visibility_update.go b/model_organization_membership_visibility_update.go index 13f67d0c..0eda44ba 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.768.2 +API version: 1.830.6 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 346202d1..0b440baa 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_organization_package_license_policy.go b/model_organization_package_license_policy.go index e133a03a..106ee8c0 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_organization_package_license_policy_request.go b/model_organization_package_license_policy_request.go index 2df364ca..d2fa9caf 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.768.2 +API version: 1.830.6 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 4b56e99b..ce6cb833 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_organization_package_vulnerability_policy.go b/model_organization_package_vulnerability_policy.go index 659b0175..29517576 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_organization_package_vulnerability_policy_request.go b/model_organization_package_vulnerability_policy_request.go index 16ea3505..7486ec6c 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.768.2 +API version: 1.830.6 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 020d575d..7c4ed3ec 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_organization_saml_auth.go b/model_organization_saml_auth.go index e2cf79fb..20dc4883 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_organization_saml_auth_request_patch.go b/model_organization_saml_auth_request_patch.go index ce177d04..3e8bf610 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_organization_team.go b/model_organization_team.go index 72bd0caf..7f132b94 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_organization_team_invite.go b/model_organization_team_invite.go index 98bef59d..16f644b7 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_organization_team_members.go b/model_organization_team_members.go index 7f72e7bc..cf10ff10 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_organization_team_membership.go b/model_organization_team_membership.go index c91f381c..f63de727 100644 --- a/model_organization_team_membership.go +++ b/model_organization_team_membership.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_organization_team_request.go b/model_organization_team_request.go index 72ad7293..278ca145 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_organization_team_request_patch.go b/model_organization_team_request_patch.go index 0fef8121..f5f2ffb5 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_p2_package_upload.go b/model_p2_package_upload.go index 5ecc7f6f..9cf963b8 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ @@ -118,6 +118,8 @@ type P2PackageUpload struct { // 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. @@ -2641,6 +2643,38 @@ func (o *P2PackageUpload) SetSyncProgress(v int64) { o.SyncProgress = &v } +// GetTagsAutomatic returns the TagsAutomatic field value if set, zero value otherwise. +func (o *P2PackageUpload) 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 *P2PackageUpload) 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 *P2PackageUpload) 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 *P2PackageUpload) SetTagsAutomatic(v map[string]interface{}) { + o.TagsAutomatic = v +} + // GetTagsImmutable returns the TagsImmutable field value if set, zero value otherwise. func (o *P2PackageUpload) GetTagsImmutable() map[string]interface{} { if o == nil || IsNil(o.TagsImmutable) { @@ -3134,6 +3168,9 @@ func (o P2PackageUpload) ToMap() (map[string]interface{}, error) { 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 } @@ -3252,6 +3289,7 @@ func (o *P2PackageUpload) UnmarshalJSON(data []byte) (err error) { 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") diff --git a/model_p2_package_upload_request.go b/model_p2_package_upload_request.go index b30bde07..e7fa243c 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_package.go b/model_package.go index 7ea15895..f8ba3098 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ @@ -120,6 +120,8 @@ type Package struct { // 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"` // 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. @@ -2675,6 +2677,38 @@ func (o *Package) SetTags(v map[string]interface{}) { o.Tags = v } +// GetTagsAutomatic returns the TagsAutomatic field value if set, zero value otherwise. +func (o *Package) 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 *Package) 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 *Package) 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 *Package) SetTagsAutomatic(v map[string]interface{}) { + o.TagsAutomatic = v +} + // GetTagsImmutable returns the TagsImmutable field value if set, zero value otherwise. func (o *Package) GetTagsImmutable() map[string]interface{} { if o == nil || IsNil(o.TagsImmutable) { @@ -3171,6 +3205,9 @@ func (o Package) ToMap() (map[string]interface{}, error) { if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags } + if !IsNil(o.TagsAutomatic) { + toSerialize["tags_automatic"] = o.TagsAutomatic + } if !IsNil(o.TagsImmutable) { toSerialize["tags_immutable"] = o.TagsImmutable } @@ -3290,6 +3327,7 @@ func (o *Package) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "sync_finished_at") delete(additionalProperties, "sync_progress") delete(additionalProperties, "tags") + delete(additionalProperties, "tags_automatic") delete(additionalProperties, "tags_immutable") delete(additionalProperties, "type_display") delete(additionalProperties, "uploaded_at") diff --git a/model_package_copy.go b/model_package_copy.go index 083db21f..f92cc6f7 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ @@ -121,6 +121,8 @@ type PackageCopy struct { // 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"` // 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. @@ -2676,6 +2678,38 @@ func (o *PackageCopy) SetTags(v map[string]interface{}) { o.Tags = v } +// GetTagsAutomatic returns the TagsAutomatic field value if set, zero value otherwise. +func (o *PackageCopy) 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 *PackageCopy) 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 *PackageCopy) 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 *PackageCopy) SetTagsAutomatic(v map[string]interface{}) { + o.TagsAutomatic = v +} + // GetTagsImmutable returns the TagsImmutable field value if set, zero value otherwise. func (o *PackageCopy) GetTagsImmutable() map[string]interface{} { if o == nil || IsNil(o.TagsImmutable) { @@ -3172,6 +3206,9 @@ func (o PackageCopy) ToMap() (map[string]interface{}, error) { if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags } + if !IsNil(o.TagsAutomatic) { + toSerialize["tags_automatic"] = o.TagsAutomatic + } if !IsNil(o.TagsImmutable) { toSerialize["tags_immutable"] = o.TagsImmutable } @@ -3291,6 +3328,7 @@ func (o *PackageCopy) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "sync_finished_at") delete(additionalProperties, "sync_progress") delete(additionalProperties, "tags") + delete(additionalProperties, "tags_automatic") delete(additionalProperties, "tags_immutable") delete(additionalProperties, "type_display") delete(additionalProperties, "uploaded_at") diff --git a/model_package_copy_request.go b/model_package_copy_request.go index 750e2b45..300f826c 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_package_deny_policy.go b/model_package_deny_policy.go index 7cea9305..26fd75b6 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_package_deny_policy_request.go b/model_package_deny_policy_request.go index 11651946..7bce3587 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_package_deny_policy_request_patch.go b/model_package_deny_policy_request_patch.go index da301fe6..4b1ede27 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_package_dependencies.go b/model_package_dependencies.go index 455ca2cd..229c94be 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_package_dependency.go b/model_package_dependency.go index 6d20ac88..fd73758e 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_package_file.go b/model_package_file.go index 836dc13b..297c26d1 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_package_file_parts_upload.go b/model_package_file_parts_upload.go index c7f7e7e1..0759694f 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_package_file_upload.go b/model_package_file_upload.go index 52d2c4bb..8438664c 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_package_file_upload_request.go b/model_package_file_upload_request.go index 785bd762..0b09d919 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_package_group.go b/model_package_group.go index ee39dd11..26b6d409 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_package_license.go b/model_package_license.go new file mode 100644 index 00000000..5aafa193 --- /dev/null +++ b/model_package_license.go @@ -0,0 +1,315 @@ +/* +Cloudsmith API (v1) + +The API to the Cloudsmith Service + +API version: 1.830.6 +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 PackageLicense type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PackageLicense{} + +// PackageLicense struct for PackageLicense +type PackageLicense struct { + LicenseNotes NullableString `json:"license_notes,omitempty"` + LicenseOverride NullableString `json:"license_override,omitempty"` + LicenseUrl NullableString `json:"license_url,omitempty"` + SpdxLicense string `json:"spdx_license"` + AdditionalProperties map[string]interface{} +} + +type _PackageLicense PackageLicense + +// NewPackageLicense instantiates a new PackageLicense 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 NewPackageLicense(spdxLicense string) *PackageLicense { + this := PackageLicense{} + var licenseOverride LICENSE_OVERRIDE = "None" + this.LicenseOverride = *NewNullableString(&licenseOverride) + this.SpdxLicense = spdxLicense + return &this +} + +// NewPackageLicenseWithDefaults instantiates a new PackageLicense object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPackageLicenseWithDefaults() *PackageLicense { + this := PackageLicense{} + var licenseOverride LICENSE_OVERRIDE = "None" + this.LicenseOverride = *NewNullableString(&licenseOverride) + return &this +} + +// GetLicenseNotes returns the LicenseNotes field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PackageLicense) GetLicenseNotes() string { + if o == nil || IsNil(o.LicenseNotes.Get()) { + var ret string + return ret + } + return *o.LicenseNotes.Get() +} + +// GetLicenseNotesOk returns a tuple with the LicenseNotes field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PackageLicense) GetLicenseNotesOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.LicenseNotes.Get(), o.LicenseNotes.IsSet() +} + +// HasLicenseNotes returns a boolean if a field has been set. +func (o *PackageLicense) HasLicenseNotes() bool { + if o != nil && o.LicenseNotes.IsSet() { + return true + } + + return false +} + +// SetLicenseNotes gets a reference to the given NullableString and assigns it to the LicenseNotes field. +func (o *PackageLicense) SetLicenseNotes(v string) { + o.LicenseNotes.Set(&v) +} + +// SetLicenseNotesNil sets the value for LicenseNotes to be an explicit nil +func (o *PackageLicense) SetLicenseNotesNil() { + o.LicenseNotes.Set(nil) +} + +// UnsetLicenseNotes ensures that no value is present for LicenseNotes, not even an explicit nil +func (o *PackageLicense) UnsetLicenseNotes() { + o.LicenseNotes.Unset() +} + +// GetLicenseOverride returns the LicenseOverride field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PackageLicense) GetLicenseOverride() string { + if o == nil || IsNil(o.LicenseOverride.Get()) { + var ret string + return ret + } + return *o.LicenseOverride.Get() +} + +// GetLicenseOverrideOk returns a tuple with the LicenseOverride field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PackageLicense) GetLicenseOverrideOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.LicenseOverride.Get(), o.LicenseOverride.IsSet() +} + +// HasLicenseOverride returns a boolean if a field has been set. +func (o *PackageLicense) HasLicenseOverride() bool { + if o != nil && o.LicenseOverride.IsSet() { + return true + } + + return false +} + +// SetLicenseOverride gets a reference to the given NullableString and assigns it to the LicenseOverride field. +func (o *PackageLicense) SetLicenseOverride(v string) { + o.LicenseOverride.Set(&v) +} + +// SetLicenseOverrideNil sets the value for LicenseOverride to be an explicit nil +func (o *PackageLicense) SetLicenseOverrideNil() { + o.LicenseOverride.Set(nil) +} + +// UnsetLicenseOverride ensures that no value is present for LicenseOverride, not even an explicit nil +func (o *PackageLicense) UnsetLicenseOverride() { + o.LicenseOverride.Unset() +} + +// GetLicenseUrl returns the LicenseUrl field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PackageLicense) GetLicenseUrl() string { + if o == nil || IsNil(o.LicenseUrl.Get()) { + var ret string + return ret + } + return *o.LicenseUrl.Get() +} + +// GetLicenseUrlOk returns a tuple with the LicenseUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PackageLicense) GetLicenseUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.LicenseUrl.Get(), o.LicenseUrl.IsSet() +} + +// HasLicenseUrl returns a boolean if a field has been set. +func (o *PackageLicense) HasLicenseUrl() bool { + if o != nil && o.LicenseUrl.IsSet() { + return true + } + + return false +} + +// SetLicenseUrl gets a reference to the given NullableString and assigns it to the LicenseUrl field. +func (o *PackageLicense) SetLicenseUrl(v string) { + o.LicenseUrl.Set(&v) +} + +// SetLicenseUrlNil sets the value for LicenseUrl to be an explicit nil +func (o *PackageLicense) SetLicenseUrlNil() { + o.LicenseUrl.Set(nil) +} + +// UnsetLicenseUrl ensures that no value is present for LicenseUrl, not even an explicit nil +func (o *PackageLicense) UnsetLicenseUrl() { + o.LicenseUrl.Unset() +} + +// GetSpdxLicense returns the SpdxLicense field value +func (o *PackageLicense) GetSpdxLicense() string { + if o == nil { + var ret string + return ret + } + + return o.SpdxLicense +} + +// GetSpdxLicenseOk returns a tuple with the SpdxLicense field value +// and a boolean to check if the value has been set. +func (o *PackageLicense) GetSpdxLicenseOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SpdxLicense, true +} + +// SetSpdxLicense sets field value +func (o *PackageLicense) SetSpdxLicense(v string) { + o.SpdxLicense = v +} + +func (o PackageLicense) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PackageLicense) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.LicenseNotes.IsSet() { + toSerialize["license_notes"] = o.LicenseNotes.Get() + } + if o.LicenseOverride.IsSet() { + toSerialize["license_override"] = o.LicenseOverride.Get() + } + if o.LicenseUrl.IsSet() { + toSerialize["license_url"] = o.LicenseUrl.Get() + } + toSerialize["spdx_license"] = o.SpdxLicense + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PackageLicense) 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{ + "spdx_license", + } + + 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) + } + } + + varPackageLicense := _PackageLicense{} + + err = json.Unmarshal(data, &varPackageLicense) + + if err != nil { + return err + } + + *o = PackageLicense(varPackageLicense) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "license_notes") + delete(additionalProperties, "license_override") + delete(additionalProperties, "license_url") + delete(additionalProperties, "spdx_license") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePackageLicense struct { + value *PackageLicense + isSet bool +} + +func (v NullablePackageLicense) Get() *PackageLicense { + return v.value +} + +func (v *NullablePackageLicense) Set(val *PackageLicense) { + v.value = val + v.isSet = true +} + +func (v NullablePackageLicense) IsSet() bool { + return v.isSet +} + +func (v *NullablePackageLicense) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePackageLicense(val *PackageLicense) *NullablePackageLicense { + return &NullablePackageLicense{value: val, isSet: true} +} + +func (v NullablePackageLicense) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePackageLicense) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_package_license_policy_evaluation_request.go b/model_package_license_policy_evaluation_request.go index 7639053d..52ef9bf0 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_package_license_policy_violation_log.go b/model_package_license_policy_violation_log.go index 2184620f..0d9f9323 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.768.2 +API version: 1.830.6 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 694a17a1..9693cbc7 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_package_license_request_patch.go b/model_package_license_request_patch.go new file mode 100644 index 00000000..be7fac13 --- /dev/null +++ b/model_package_license_request_patch.go @@ -0,0 +1,354 @@ +/* +Cloudsmith API (v1) + +The API to the Cloudsmith Service + +API version: 1.830.6 +Contact: support@cloudsmith.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cloudsmith + +import ( + "encoding/json" +) + +// checks if the PackageLicenseRequestPatch type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PackageLicenseRequestPatch{} + +// PackageLicenseRequestPatch struct for PackageLicenseRequestPatch +type PackageLicenseRequestPatch struct { + Action NullableString `json:"action,omitempty"` + LicenseNotes NullableString `json:"license_notes,omitempty"` + LicenseOverride NullableString `json:"license_override,omitempty"` + LicenseUrl NullableString `json:"license_url,omitempty"` + SpdxLicense *string `json:"spdx_license,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PackageLicenseRequestPatch PackageLicenseRequestPatch + +// NewPackageLicenseRequestPatch instantiates a new PackageLicenseRequestPatch 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 NewPackageLicenseRequestPatch() *PackageLicenseRequestPatch { + this := PackageLicenseRequestPatch{} + var action ACTION = "Update" + this.Action = *NewNullableString(&action) + var licenseOverride LICENSE_OVERRIDE = "None" + this.LicenseOverride = *NewNullableString(&licenseOverride) + return &this +} + +// NewPackageLicenseRequestPatchWithDefaults instantiates a new PackageLicenseRequestPatch 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 NewPackageLicenseRequestPatchWithDefaults() *PackageLicenseRequestPatch { + this := PackageLicenseRequestPatch{} + var action ACTION = "Update" + this.Action = *NewNullableString(&action) + var licenseOverride LICENSE_OVERRIDE = "None" + this.LicenseOverride = *NewNullableString(&licenseOverride) + return &this +} + +// GetAction returns the Action field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PackageLicenseRequestPatch) GetAction() string { + if o == nil || IsNil(o.Action.Get()) { + var ret string + return ret + } + return *o.Action.Get() +} + +// GetActionOk returns a tuple with the Action field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PackageLicenseRequestPatch) GetActionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Action.Get(), o.Action.IsSet() +} + +// HasAction returns a boolean if a field has been set. +func (o *PackageLicenseRequestPatch) HasAction() bool { + if o != nil && o.Action.IsSet() { + return true + } + + return false +} + +// SetAction gets a reference to the given NullableString and assigns it to the Action field. +func (o *PackageLicenseRequestPatch) SetAction(v string) { + o.Action.Set(&v) +} + +// SetActionNil sets the value for Action to be an explicit nil +func (o *PackageLicenseRequestPatch) SetActionNil() { + o.Action.Set(nil) +} + +// UnsetAction ensures that no value is present for Action, not even an explicit nil +func (o *PackageLicenseRequestPatch) UnsetAction() { + o.Action.Unset() +} + +// GetLicenseNotes returns the LicenseNotes field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PackageLicenseRequestPatch) GetLicenseNotes() string { + if o == nil || IsNil(o.LicenseNotes.Get()) { + var ret string + return ret + } + return *o.LicenseNotes.Get() +} + +// GetLicenseNotesOk returns a tuple with the LicenseNotes field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PackageLicenseRequestPatch) GetLicenseNotesOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.LicenseNotes.Get(), o.LicenseNotes.IsSet() +} + +// HasLicenseNotes returns a boolean if a field has been set. +func (o *PackageLicenseRequestPatch) HasLicenseNotes() bool { + if o != nil && o.LicenseNotes.IsSet() { + return true + } + + return false +} + +// SetLicenseNotes gets a reference to the given NullableString and assigns it to the LicenseNotes field. +func (o *PackageLicenseRequestPatch) SetLicenseNotes(v string) { + o.LicenseNotes.Set(&v) +} + +// SetLicenseNotesNil sets the value for LicenseNotes to be an explicit nil +func (o *PackageLicenseRequestPatch) SetLicenseNotesNil() { + o.LicenseNotes.Set(nil) +} + +// UnsetLicenseNotes ensures that no value is present for LicenseNotes, not even an explicit nil +func (o *PackageLicenseRequestPatch) UnsetLicenseNotes() { + o.LicenseNotes.Unset() +} + +// GetLicenseOverride returns the LicenseOverride field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PackageLicenseRequestPatch) GetLicenseOverride() string { + if o == nil || IsNil(o.LicenseOverride.Get()) { + var ret string + return ret + } + return *o.LicenseOverride.Get() +} + +// GetLicenseOverrideOk returns a tuple with the LicenseOverride field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PackageLicenseRequestPatch) GetLicenseOverrideOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.LicenseOverride.Get(), o.LicenseOverride.IsSet() +} + +// HasLicenseOverride returns a boolean if a field has been set. +func (o *PackageLicenseRequestPatch) HasLicenseOverride() bool { + if o != nil && o.LicenseOverride.IsSet() { + return true + } + + return false +} + +// SetLicenseOverride gets a reference to the given NullableString and assigns it to the LicenseOverride field. +func (o *PackageLicenseRequestPatch) SetLicenseOverride(v string) { + o.LicenseOverride.Set(&v) +} + +// SetLicenseOverrideNil sets the value for LicenseOverride to be an explicit nil +func (o *PackageLicenseRequestPatch) SetLicenseOverrideNil() { + o.LicenseOverride.Set(nil) +} + +// UnsetLicenseOverride ensures that no value is present for LicenseOverride, not even an explicit nil +func (o *PackageLicenseRequestPatch) UnsetLicenseOverride() { + o.LicenseOverride.Unset() +} + +// GetLicenseUrl returns the LicenseUrl field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PackageLicenseRequestPatch) GetLicenseUrl() string { + if o == nil || IsNil(o.LicenseUrl.Get()) { + var ret string + return ret + } + return *o.LicenseUrl.Get() +} + +// GetLicenseUrlOk returns a tuple with the LicenseUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PackageLicenseRequestPatch) GetLicenseUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.LicenseUrl.Get(), o.LicenseUrl.IsSet() +} + +// HasLicenseUrl returns a boolean if a field has been set. +func (o *PackageLicenseRequestPatch) HasLicenseUrl() bool { + if o != nil && o.LicenseUrl.IsSet() { + return true + } + + return false +} + +// SetLicenseUrl gets a reference to the given NullableString and assigns it to the LicenseUrl field. +func (o *PackageLicenseRequestPatch) SetLicenseUrl(v string) { + o.LicenseUrl.Set(&v) +} + +// SetLicenseUrlNil sets the value for LicenseUrl to be an explicit nil +func (o *PackageLicenseRequestPatch) SetLicenseUrlNil() { + o.LicenseUrl.Set(nil) +} + +// UnsetLicenseUrl ensures that no value is present for LicenseUrl, not even an explicit nil +func (o *PackageLicenseRequestPatch) UnsetLicenseUrl() { + o.LicenseUrl.Unset() +} + +// GetSpdxLicense returns the SpdxLicense field value if set, zero value otherwise. +func (o *PackageLicenseRequestPatch) GetSpdxLicense() string { + if o == nil || IsNil(o.SpdxLicense) { + var ret string + return ret + } + return *o.SpdxLicense +} + +// GetSpdxLicenseOk returns a tuple with the SpdxLicense field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageLicenseRequestPatch) GetSpdxLicenseOk() (*string, bool) { + if o == nil || IsNil(o.SpdxLicense) { + return nil, false + } + return o.SpdxLicense, true +} + +// HasSpdxLicense returns a boolean if a field has been set. +func (o *PackageLicenseRequestPatch) HasSpdxLicense() bool { + if o != nil && !IsNil(o.SpdxLicense) { + return true + } + + return false +} + +// SetSpdxLicense gets a reference to the given string and assigns it to the SpdxLicense field. +func (o *PackageLicenseRequestPatch) SetSpdxLicense(v string) { + o.SpdxLicense = &v +} + +func (o PackageLicenseRequestPatch) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PackageLicenseRequestPatch) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Action.IsSet() { + toSerialize["action"] = o.Action.Get() + } + if o.LicenseNotes.IsSet() { + toSerialize["license_notes"] = o.LicenseNotes.Get() + } + if o.LicenseOverride.IsSet() { + toSerialize["license_override"] = o.LicenseOverride.Get() + } + if o.LicenseUrl.IsSet() { + toSerialize["license_url"] = o.LicenseUrl.Get() + } + if !IsNil(o.SpdxLicense) { + toSerialize["spdx_license"] = o.SpdxLicense + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PackageLicenseRequestPatch) UnmarshalJSON(data []byte) (err error) { + varPackageLicenseRequestPatch := _PackageLicenseRequestPatch{} + + err = json.Unmarshal(data, &varPackageLicenseRequestPatch) + + if err != nil { + return err + } + + *o = PackageLicenseRequestPatch(varPackageLicenseRequestPatch) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "action") + delete(additionalProperties, "license_notes") + delete(additionalProperties, "license_override") + delete(additionalProperties, "license_url") + delete(additionalProperties, "spdx_license") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePackageLicenseRequestPatch struct { + value *PackageLicenseRequestPatch + isSet bool +} + +func (v NullablePackageLicenseRequestPatch) Get() *PackageLicenseRequestPatch { + return v.value +} + +func (v *NullablePackageLicenseRequestPatch) Set(val *PackageLicenseRequestPatch) { + v.value = val + v.isSet = true +} + +func (v NullablePackageLicenseRequestPatch) IsSet() bool { + return v.isSet +} + +func (v *NullablePackageLicenseRequestPatch) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePackageLicenseRequestPatch(val *PackageLicenseRequestPatch) *NullablePackageLicenseRequestPatch { + return &NullablePackageLicenseRequestPatch{value: val, isSet: true} +} + +func (v NullablePackageLicenseRequestPatch) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePackageLicenseRequestPatch) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_package_move.go b/model_package_move.go index a0ce793f..5040fcf4 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ @@ -121,6 +121,8 @@ type PackageMove struct { // 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"` // 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. @@ -2676,6 +2678,38 @@ func (o *PackageMove) SetTags(v map[string]interface{}) { o.Tags = v } +// GetTagsAutomatic returns the TagsAutomatic field value if set, zero value otherwise. +func (o *PackageMove) 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 *PackageMove) 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 *PackageMove) 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 *PackageMove) SetTagsAutomatic(v map[string]interface{}) { + o.TagsAutomatic = v +} + // GetTagsImmutable returns the TagsImmutable field value if set, zero value otherwise. func (o *PackageMove) GetTagsImmutable() map[string]interface{} { if o == nil || IsNil(o.TagsImmutable) { @@ -3172,6 +3206,9 @@ func (o PackageMove) ToMap() (map[string]interface{}, error) { if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags } + if !IsNil(o.TagsAutomatic) { + toSerialize["tags_automatic"] = o.TagsAutomatic + } if !IsNil(o.TagsImmutable) { toSerialize["tags_immutable"] = o.TagsImmutable } @@ -3291,6 +3328,7 @@ func (o *PackageMove) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "sync_finished_at") delete(additionalProperties, "sync_progress") delete(additionalProperties, "tags") + delete(additionalProperties, "tags_automatic") delete(additionalProperties, "tags_immutable") delete(additionalProperties, "type_display") delete(additionalProperties, "uploaded_at") diff --git a/model_package_move_request.go b/model_package_move_request.go index 25e90644..eaf5f63f 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_package_quarantine.go b/model_package_quarantine.go index 1679f70b..c09a2fac 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ @@ -118,6 +118,8 @@ type PackageQuarantine struct { // 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"` // 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. @@ -2630,6 +2632,38 @@ func (o *PackageQuarantine) SetTags(v map[string]interface{}) { o.Tags = v } +// GetTagsAutomatic returns the TagsAutomatic field value if set, zero value otherwise. +func (o *PackageQuarantine) 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 *PackageQuarantine) 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 *PackageQuarantine) 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 *PackageQuarantine) SetTagsAutomatic(v map[string]interface{}) { + o.TagsAutomatic = v +} + // GetTagsImmutable returns the TagsImmutable field value if set, zero value otherwise. func (o *PackageQuarantine) GetTagsImmutable() map[string]interface{} { if o == nil || IsNil(o.TagsImmutable) { @@ -3123,6 +3157,9 @@ func (o PackageQuarantine) ToMap() (map[string]interface{}, error) { if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags } + if !IsNil(o.TagsAutomatic) { + toSerialize["tags_automatic"] = o.TagsAutomatic + } if !IsNil(o.TagsImmutable) { toSerialize["tags_immutable"] = o.TagsImmutable } @@ -3241,6 +3278,7 @@ func (o *PackageQuarantine) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "sync_finished_at") delete(additionalProperties, "sync_progress") delete(additionalProperties, "tags") + delete(additionalProperties, "tags_automatic") delete(additionalProperties, "tags_immutable") delete(additionalProperties, "type_display") delete(additionalProperties, "uploaded_at") diff --git a/model_package_quarantine_request.go b/model_package_quarantine_request.go index a1640179..58847e8c 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_package_resync.go b/model_package_resync.go index ad02e6eb..70886697 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ @@ -120,6 +120,8 @@ type PackageResync struct { // 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"` // 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. @@ -2675,6 +2677,38 @@ func (o *PackageResync) SetTags(v map[string]interface{}) { o.Tags = v } +// GetTagsAutomatic returns the TagsAutomatic field value if set, zero value otherwise. +func (o *PackageResync) 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 *PackageResync) 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 *PackageResync) 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 *PackageResync) SetTagsAutomatic(v map[string]interface{}) { + o.TagsAutomatic = v +} + // GetTagsImmutable returns the TagsImmutable field value if set, zero value otherwise. func (o *PackageResync) GetTagsImmutable() map[string]interface{} { if o == nil || IsNil(o.TagsImmutable) { @@ -3171,6 +3205,9 @@ func (o PackageResync) ToMap() (map[string]interface{}, error) { if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags } + if !IsNil(o.TagsAutomatic) { + toSerialize["tags_automatic"] = o.TagsAutomatic + } if !IsNil(o.TagsImmutable) { toSerialize["tags_immutable"] = o.TagsImmutable } @@ -3290,6 +3327,7 @@ func (o *PackageResync) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "sync_finished_at") delete(additionalProperties, "sync_progress") delete(additionalProperties, "tags") + delete(additionalProperties, "tags_automatic") delete(additionalProperties, "tags_immutable") delete(additionalProperties, "type_display") delete(additionalProperties, "uploaded_at") diff --git a/model_package_status.go b/model_package_status.go index 10f55616..d4fbcb08 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_package_tag.go b/model_package_tag.go index 6483e6f6..11079e2b 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ @@ -120,6 +120,8 @@ type PackageTag struct { // 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. @@ -2679,6 +2681,38 @@ func (o *PackageTag) SetSyncProgress(v int64) { o.SyncProgress = &v } +// GetTagsAutomatic returns the TagsAutomatic field value if set, zero value otherwise. +func (o *PackageTag) 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 *PackageTag) 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 *PackageTag) 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 *PackageTag) SetTagsAutomatic(v map[string]interface{}) { + o.TagsAutomatic = v +} + // GetTagsImmutable returns the TagsImmutable field value if set, zero value otherwise. func (o *PackageTag) GetTagsImmutable() map[string]interface{} { if o == nil || IsNil(o.TagsImmutable) { @@ -3175,6 +3209,9 @@ func (o PackageTag) ToMap() (map[string]interface{}, error) { 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 } @@ -3294,6 +3331,7 @@ func (o *PackageTag) UnmarshalJSON(data []byte) (err error) { 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") diff --git a/model_package_tag_request.go b/model_package_tag_request.go index a42bfdd9..7f5c8188 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_package_usage_metrics.go b/model_package_usage_metrics.go index 7aa3721a..43253945 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_package_vulnerability.go b/model_package_vulnerability.go index ab21500e..f6017318 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_package_vulnerability_policy_evaluation_request.go b/model_package_vulnerability_policy_evaluation_request.go index 18a0c0e8..e152730a 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_package_vulnerability_policy_violation_log.go b/model_package_vulnerability_policy_violation_log.go index 91b77715..0725ec8e 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.768.2 +API version: 1.830.6 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 ad7ba300..231ef880 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_packages_groups_list_200_response.go b/model_packages_groups_list_200_response.go index 633c301a..40c88761 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_provider_settings.go b/model_provider_settings.go index 0d664821..856ec934 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_provider_settings_write.go b/model_provider_settings_write.go index ddaef211..8c9acdbb 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_provider_settings_write_request.go b/model_provider_settings_write_request.go index 532d9e53..621b8d4c 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_provider_settings_write_request_patch.go b/model_provider_settings_write_request_patch.go index 841da763..6d656a96 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_python_package_upload.go b/model_python_package_upload.go index d6b4be23..c7170d91 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ @@ -118,6 +118,8 @@ type PythonPackageUpload struct { // 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. @@ -2641,6 +2643,38 @@ func (o *PythonPackageUpload) SetSyncProgress(v int64) { o.SyncProgress = &v } +// GetTagsAutomatic returns the TagsAutomatic field value if set, zero value otherwise. +func (o *PythonPackageUpload) 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 *PythonPackageUpload) 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 *PythonPackageUpload) 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 *PythonPackageUpload) SetTagsAutomatic(v map[string]interface{}) { + o.TagsAutomatic = v +} + // GetTagsImmutable returns the TagsImmutable field value if set, zero value otherwise. func (o *PythonPackageUpload) GetTagsImmutable() map[string]interface{} { if o == nil || IsNil(o.TagsImmutable) { @@ -3134,6 +3168,9 @@ func (o PythonPackageUpload) ToMap() (map[string]interface{}, error) { 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 } @@ -3252,6 +3289,7 @@ func (o *PythonPackageUpload) UnmarshalJSON(data []byte) (err error) { 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") diff --git a/model_python_package_upload_request.go b/model_python_package_upload_request.go index cc462f1a..fa81275c 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_python_upstream.go b/model_python_upstream.go index 453ae38d..434d1a9e 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_python_upstream_request.go b/model_python_upstream_request.go index ece708f8..e7bbb7b5 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_python_upstream_request_patch.go b/model_python_upstream_request_patch.go index 06ea30c2..2e12c2b6 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_quota.go b/model_quota.go index a2ae7b98..f6b3500b 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_quota_history.go b/model_quota_history.go index 6e2aecba..5da04c9c 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_rate_check.go b/model_rate_check.go index 9f2dd082..edd502a3 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_raw_package_upload.go b/model_raw_package_upload.go index bfd6474b..f1b98e22 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ @@ -118,6 +118,8 @@ type RawPackageUpload struct { // 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. @@ -2641,6 +2643,38 @@ func (o *RawPackageUpload) SetSyncProgress(v int64) { o.SyncProgress = &v } +// GetTagsAutomatic returns the TagsAutomatic field value if set, zero value otherwise. +func (o *RawPackageUpload) 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 *RawPackageUpload) 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 *RawPackageUpload) 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 *RawPackageUpload) SetTagsAutomatic(v map[string]interface{}) { + o.TagsAutomatic = v +} + // GetTagsImmutable returns the TagsImmutable field value if set, zero value otherwise. func (o *RawPackageUpload) GetTagsImmutable() map[string]interface{} { if o == nil || IsNil(o.TagsImmutable) { @@ -3134,6 +3168,9 @@ func (o RawPackageUpload) ToMap() (map[string]interface{}, error) { 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 } @@ -3252,6 +3289,7 @@ func (o *RawPackageUpload) UnmarshalJSON(data []byte) (err error) { 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") diff --git a/model_raw_package_upload_request.go b/model_raw_package_upload_request.go index 284efb9c..183d982a 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_repository.go b/model_repository.go index f5689c58..d300959e 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_repository_audit_log.go b/model_repository_audit_log.go index cf8dbcc1..fcdaf3e7 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_repository_create.go b/model_repository_create.go index fcdbfb8c..ea80519d 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_repository_create_request.go b/model_repository_create_request.go index fb3b6cbb..cdfa3fd2 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_repository_ecdsa_key.go b/model_repository_ecdsa_key.go index 7c1c2193..3164592d 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_repository_ecdsa_key_create.go b/model_repository_ecdsa_key_create.go index 7b6cb103..59471035 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_repository_geo_ip_cidr.go b/model_repository_geo_ip_cidr.go index 3fb5c09b..8a704ef4 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_repository_geo_ip_country_code.go b/model_repository_geo_ip_country_code.go index 98dce7f4..d8604c27 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_repository_geo_ip_rules.go b/model_repository_geo_ip_rules.go index 47c49775..7002e1bb 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_repository_geo_ip_rules_request.go b/model_repository_geo_ip_rules_request.go index 9d16699c..7645ed70 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.768.2 +API version: 1.830.6 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 f3229d69..4dc2f5c5 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_repository_geo_ip_status.go b/model_repository_geo_ip_status.go index 9d1a4dd4..29aee685 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_repository_geo_ip_test_address.go b/model_repository_geo_ip_test_address.go index 0b6c8975..91631e97 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.768.2 +API version: 1.830.6 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 2900213a..09787092 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.768.2 +API version: 1.830.6 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 73d3f615..9fba518f 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_repository_gpg_key.go b/model_repository_gpg_key.go index e87b7cab..188da973 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_repository_gpg_key_create.go b/model_repository_gpg_key_create.go index d16d1b1d..32013c88 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_repository_privilege_dict.go b/model_repository_privilege_dict.go index 786a30f6..13bfafa7 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_repository_privilege_input.go b/model_repository_privilege_input.go index 9c7114ab..6b09a2f6 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_repository_privilege_input_request.go b/model_repository_privilege_input_request.go index ccca86f2..c56a660f 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_repository_privilege_input_request_patch.go b/model_repository_privilege_input_request_patch.go index b8a32856..c24c21a5 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_repository_request_patch.go b/model_repository_request_patch.go index 05d916a5..90f206c9 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_repository_retention_rules.go b/model_repository_retention_rules.go index 20410e10..1dd68a30 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_repository_retention_rules_request_patch.go b/model_repository_retention_rules_request_patch.go index 4a08c9ba..b6b050b6 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_repository_rsa_key.go b/model_repository_rsa_key.go index 019bf03d..0a20a426 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_repository_rsa_key_create.go b/model_repository_rsa_key_create.go index 97820e24..cee63940 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_repository_token.go b/model_repository_token.go index d6d12960..839126e9 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_repository_token_refresh.go b/model_repository_token_refresh.go index 90a5f2de..dac67b86 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_repository_token_refresh_request.go b/model_repository_token_refresh_request.go index 05ad7794..f7e069ee 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_repository_token_request.go b/model_repository_token_request.go index 07649aa9..4219aa37 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_repository_token_request_patch.go b/model_repository_token_request_patch.go index 376d47b1..683cd10d 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_repository_token_sync.go b/model_repository_token_sync.go index ebc54074..a6b7ce95 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_repository_token_sync_request.go b/model_repository_token_sync_request.go index c5c6c24b..d289d567 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_repository_transfer_region.go b/model_repository_transfer_region.go index 0b337ae7..71e6cf3c 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_repository_transfer_region_request.go b/model_repository_transfer_region_request.go index a1cc83b8..73eff01b 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_repository_webhook.go b/model_repository_webhook.go index d0689e0f..52fb182c 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_repository_webhook_request.go b/model_repository_webhook_request.go index 7ddfea76..ca771310 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_repository_webhook_request_patch.go b/model_repository_webhook_request_patch.go index 89b11219..4636d8a3 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_repository_x509_ecdsa_certificate.go b/model_repository_x509_ecdsa_certificate.go index a2fa6547..8b3ef3f7 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_repository_x509_rsa_certificate.go b/model_repository_x509_rsa_certificate.go index 4111da2d..650c9abb 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_resources_rate_check.go b/model_resources_rate_check.go index 21c2f6f3..77609a94 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_rpm_package_upload.go b/model_rpm_package_upload.go index 2908d9f4..1e5ea24c 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ @@ -118,6 +118,8 @@ type RpmPackageUpload struct { // 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. @@ -2641,6 +2643,38 @@ func (o *RpmPackageUpload) SetSyncProgress(v int64) { o.SyncProgress = &v } +// GetTagsAutomatic returns the TagsAutomatic field value if set, zero value otherwise. +func (o *RpmPackageUpload) 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 *RpmPackageUpload) 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 *RpmPackageUpload) 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 *RpmPackageUpload) SetTagsAutomatic(v map[string]interface{}) { + o.TagsAutomatic = v +} + // GetTagsImmutable returns the TagsImmutable field value if set, zero value otherwise. func (o *RpmPackageUpload) GetTagsImmutable() map[string]interface{} { if o == nil || IsNil(o.TagsImmutable) { @@ -3134,6 +3168,9 @@ func (o RpmPackageUpload) ToMap() (map[string]interface{}, error) { 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 } @@ -3252,6 +3289,7 @@ func (o *RpmPackageUpload) UnmarshalJSON(data []byte) (err error) { 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") diff --git a/model_rpm_package_upload_request.go b/model_rpm_package_upload_request.go index f01c5742..c618fe9f 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_rpm_upstream.go b/model_rpm_upstream.go index d20eb701..d18162f5 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_rpm_upstream_request.go b/model_rpm_upstream_request.go index a51514d9..7a5d78b0 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_rpm_upstream_request_patch.go b/model_rpm_upstream_request_patch.go index 62084354..d9bd35c2 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_ruby_package_upload.go b/model_ruby_package_upload.go index bb86ab45..969759d8 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ @@ -118,6 +118,8 @@ type RubyPackageUpload struct { // 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. @@ -2641,6 +2643,38 @@ func (o *RubyPackageUpload) SetSyncProgress(v int64) { o.SyncProgress = &v } +// GetTagsAutomatic returns the TagsAutomatic field value if set, zero value otherwise. +func (o *RubyPackageUpload) 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 *RubyPackageUpload) 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 *RubyPackageUpload) 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 *RubyPackageUpload) SetTagsAutomatic(v map[string]interface{}) { + o.TagsAutomatic = v +} + // GetTagsImmutable returns the TagsImmutable field value if set, zero value otherwise. func (o *RubyPackageUpload) GetTagsImmutable() map[string]interface{} { if o == nil || IsNil(o.TagsImmutable) { @@ -3134,6 +3168,9 @@ func (o RubyPackageUpload) ToMap() (map[string]interface{}, error) { 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 } @@ -3252,6 +3289,7 @@ func (o *RubyPackageUpload) UnmarshalJSON(data []byte) (err error) { 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") diff --git a/model_ruby_package_upload_request.go b/model_ruby_package_upload_request.go index 66a93f3e..1ae98622 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_ruby_upstream.go b/model_ruby_upstream.go index 3b560c9c..ab27fd12 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_ruby_upstream_request.go b/model_ruby_upstream_request.go index 10efc302..90444023 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_ruby_upstream_request_patch.go b/model_ruby_upstream_request_patch.go index ac0dd696..41c9dc88 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_service.go b/model_service.go index 383a7dd6..ba11567f 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_service_request.go b/model_service_request.go index 3dd2eff4..af9a4ff7 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_service_request_patch.go b/model_service_request_patch.go index ab8722df..6e3776f8 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_service_teams.go b/model_service_teams.go index 928e4fda..e98331e4 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_status_basic.go b/model_status_basic.go index bd3e694f..ca29f14f 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_storage_allocated_limit.go b/model_storage_allocated_limit.go index cc92a347..3350eec1 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_storage_allocated_limit_raw.go b/model_storage_allocated_limit_raw.go index bf53eca5..1b57c259 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_storage_region.go b/model_storage_region.go index c8fc6ab3..68adc826 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_storage_usage.go b/model_storage_usage.go index 9c929a59..f54abb27 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_storage_usage_raw.go b/model_storage_usage_raw.go index 5326184e..f0c76b94 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_swift_package_upload.go b/model_swift_package_upload.go index c46ea183..1472c02b 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ @@ -130,6 +130,8 @@ type SwiftPackageUpload struct { // 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. @@ -2800,6 +2802,38 @@ func (o *SwiftPackageUpload) SetSyncProgress(v int64) { o.SyncProgress = &v } +// GetTagsAutomatic returns the TagsAutomatic field value if set, zero value otherwise. +func (o *SwiftPackageUpload) 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 *SwiftPackageUpload) 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 *SwiftPackageUpload) 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 *SwiftPackageUpload) SetTagsAutomatic(v map[string]interface{}) { + o.TagsAutomatic = v +} + // GetTagsImmutable returns the TagsImmutable field value if set, zero value otherwise. func (o *SwiftPackageUpload) GetTagsImmutable() map[string]interface{} { if o == nil || IsNil(o.TagsImmutable) { @@ -3285,6 +3319,9 @@ func (o SwiftPackageUpload) ToMap() (map[string]interface{}, error) { 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 } @@ -3429,6 +3466,7 @@ func (o *SwiftPackageUpload) UnmarshalJSON(data []byte) (err error) { 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") diff --git a/model_swift_package_upload_request.go b/model_swift_package_upload_request.go index e946185b..5ddc2c06 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_swift_upstream.go b/model_swift_upstream.go index 4aa14017..40584b39 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_swift_upstream_request.go b/model_swift_upstream_request.go index f4a17281..c4a80b7f 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_swift_upstream_request_patch.go b/model_swift_upstream_request_patch.go index d564e03f..555a8157 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_terraform_package_upload.go b/model_terraform_package_upload.go index f21f50db..04dba46a 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ @@ -118,6 +118,8 @@ type TerraformPackageUpload struct { // 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. @@ -2641,6 +2643,38 @@ func (o *TerraformPackageUpload) SetSyncProgress(v int64) { o.SyncProgress = &v } +// GetTagsAutomatic returns the TagsAutomatic field value if set, zero value otherwise. +func (o *TerraformPackageUpload) 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 *TerraformPackageUpload) 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 *TerraformPackageUpload) 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 *TerraformPackageUpload) SetTagsAutomatic(v map[string]interface{}) { + o.TagsAutomatic = v +} + // GetTagsImmutable returns the TagsImmutable field value if set, zero value otherwise. func (o *TerraformPackageUpload) GetTagsImmutable() map[string]interface{} { if o == nil || IsNil(o.TagsImmutable) { @@ -3134,6 +3168,9 @@ func (o TerraformPackageUpload) ToMap() (map[string]interface{}, error) { 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 } @@ -3252,6 +3289,7 @@ func (o *TerraformPackageUpload) UnmarshalJSON(data []byte) (err error) { 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") diff --git a/model_terraform_package_upload_request.go b/model_terraform_package_upload_request.go index 208a0f97..2accbf86 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_usage.go b/model_usage.go index 3a86efb4..ac6c38fc 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_usage_fieldset.go b/model_usage_fieldset.go index 3ff2e485..ecb321a9 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_usage_limits.go b/model_usage_limits.go index fc94fc16..16f1b7da 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_usage_limits_raw.go b/model_usage_limits_raw.go index aafee580..a94b3929 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_usage_raw.go b/model_usage_raw.go index f6a62c9d..d7467a5f 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_user_auth_token.go b/model_user_auth_token.go index 412860f4..8803e4fe 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_user_auth_token_request.go b/model_user_auth_token_request.go index bff11ba7..02428541 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_user_authentication_token.go b/model_user_authentication_token.go index d3c8fc8c..c72e367a 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_user_brief.go b/model_user_brief.go index c9046496..2da42bbd 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_user_profile.go b/model_user_profile.go index bdb8097d..9e8233fe 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_user_tokens_list_200_response.go b/model_user_tokens_list_200_response.go index df7ad186..2939e847 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_vagrant_package_upload.go b/model_vagrant_package_upload.go index 68020df3..8d08d6fd 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ @@ -121,6 +121,8 @@ type VagrantPackageUpload struct { // 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. @@ -2652,6 +2654,38 @@ func (o *VagrantPackageUpload) SetSyncProgress(v int64) { o.SyncProgress = &v } +// GetTagsAutomatic returns the TagsAutomatic field value if set, zero value otherwise. +func (o *VagrantPackageUpload) 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 *VagrantPackageUpload) 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 *VagrantPackageUpload) 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 *VagrantPackageUpload) SetTagsAutomatic(v map[string]interface{}) { + o.TagsAutomatic = v +} + // GetTagsImmutable returns the TagsImmutable field value if set, zero value otherwise. func (o *VagrantPackageUpload) GetTagsImmutable() map[string]interface{} { if o == nil || IsNil(o.TagsImmutable) { @@ -3125,6 +3159,9 @@ func (o VagrantPackageUpload) ToMap() (map[string]interface{}, error) { 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 } @@ -3265,6 +3302,7 @@ func (o *VagrantPackageUpload) UnmarshalJSON(data []byte) (err error) { 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") diff --git a/model_vagrant_package_upload_request.go b/model_vagrant_package_upload_request.go index 2c99ad4f..518ddeb1 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_vulnerability.go b/model_vulnerability.go index cba0efbc..cd9b347d 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ @@ -21,15 +21,17 @@ var _ MappedNullable = &Vulnerability{} // Vulnerability struct for Vulnerability type Vulnerability struct { - AffectedVersion VulnerabilityScanVersion `json:"affected_version"` - Description string `json:"description"` - FixedVersion VulnerabilityScanVersion `json:"fixed_version"` - PackageName string `json:"package_name"` - References []string `json:"references"` - Severity *string `json:"severity,omitempty"` - SeveritySource string `json:"severity_source"` - Title string `json:"title"` - VulnerabilityId string `json:"vulnerability_id"` + AffectedVersion VulnerabilityScanVersion `json:"affected_version"` + // CVSS Scores (when available from the raw scan results) + CvssScores *map[string]map[string]map[string]interface{} `json:"cvss_scores,omitempty"` + Description string `json:"description"` + FixedVersion VulnerabilityScanVersion `json:"fixed_version"` + PackageName string `json:"package_name"` + References []string `json:"references"` + Severity *string `json:"severity,omitempty"` + SeveritySource string `json:"severity_source"` + Title string `json:"title"` + VulnerabilityId string `json:"vulnerability_id"` AdditionalProperties map[string]interface{} } @@ -88,6 +90,38 @@ func (o *Vulnerability) SetAffectedVersion(v VulnerabilityScanVersion) { o.AffectedVersion = v } +// GetCvssScores returns the CvssScores field value if set, zero value otherwise. +func (o *Vulnerability) GetCvssScores() map[string]map[string]map[string]interface{} { + if o == nil || IsNil(o.CvssScores) { + var ret map[string]map[string]map[string]interface{} + return ret + } + return *o.CvssScores +} + +// GetCvssScoresOk returns a tuple with the CvssScores field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Vulnerability) GetCvssScoresOk() (*map[string]map[string]map[string]interface{}, bool) { + if o == nil || IsNil(o.CvssScores) { + return nil, false + } + return o.CvssScores, true +} + +// HasCvssScores returns a boolean if a field has been set. +func (o *Vulnerability) HasCvssScores() bool { + if o != nil && !IsNil(o.CvssScores) { + return true + } + + return false +} + +// SetCvssScores gets a reference to the given map[string]map[string]map[string]interface{} and assigns it to the CvssScores field. +func (o *Vulnerability) SetCvssScores(v map[string]map[string]map[string]interface{}) { + o.CvssScores = &v +} + // GetDescription returns the Description field value func (o *Vulnerability) GetDescription() string { if o == nil { @@ -299,6 +333,9 @@ func (o Vulnerability) MarshalJSON() ([]byte, error) { func (o Vulnerability) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["affected_version"] = o.AffectedVersion + if !IsNil(o.CvssScores) { + toSerialize["cvss_scores"] = o.CvssScores + } toSerialize["description"] = o.Description toSerialize["fixed_version"] = o.FixedVersion toSerialize["package_name"] = o.PackageName @@ -360,6 +397,7 @@ func (o *Vulnerability) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "affected_version") + delete(additionalProperties, "cvss_scores") delete(additionalProperties, "description") delete(additionalProperties, "fixed_version") delete(additionalProperties, "package_name") diff --git a/model_vulnerability_scan.go b/model_vulnerability_scan.go index ee0fe173..9f3079cf 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_vulnerability_scan_results.go b/model_vulnerability_scan_results.go index 2d1c76b7..bd1c0db4 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_vulnerability_scan_results_list.go b/model_vulnerability_scan_results_list.go index a6be68e0..9bb048ae 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_vulnerability_scan_version.go b/model_vulnerability_scan_version.go index aa3d03e7..4717f488 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/model_webhook_template.go b/model_webhook_template.go index 1f9cfa54..d65d83b2 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.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/response.go b/response.go index dbbde5c3..48d72df3 100644 --- a/response.go +++ b/response.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ diff --git a/utils.go b/utils.go index 076df2fc..8758e197 100644 --- a/utils.go +++ b/utils.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.768.2 +API version: 1.830.6 Contact: support@cloudsmith.io */ From 5c4b603f49e5d5e4e5545945793162f04fc9097a Mon Sep 17 00:00:00 2001 From: Bartosz Blizniak Date: Tue, 14 Oct 2025 17:32:06 +0100 Subject: [PATCH 2/3] add workaround to gsed for failed test --- bin/generate | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/generate b/bin/generate index 0b0c0458..f8142ba0 100755 --- a/bin/generate +++ b/bin/generate @@ -67,6 +67,9 @@ gsed -i 's/SCHEDULED_RESET_PERIOD/string/g' model_repository_token_refresh.go gsed -i 's/LIMIT_BANDWIDTH_UNIT/string/g' model_repository_token_refresh_request.go gsed -i 's/SCHEDULED_RESET_PERIOD/string/g' model_repository_token_refresh_request.go gsed -i 's/ACTION/string/g' model_package_tag_request.go +gsed -i 's/LICENSE_OVERRIDE/string/g' model_package_license.go +gsed -i 's/ACTION/string/g' model_package_license_request_patch.go +gsed -i 's/LICENSE_OVERRIDE/string/g' model_package_license_request_patch.go # Check for compilation errors. go build From 83f3ba707e6d15278ab9abe9719743ea7ac750ef Mon Sep 17 00:00:00 2001 From: Bartosz Blizniak Date: Tue, 14 Oct 2025 17:33:07 +0100 Subject: [PATCH 3/3] add workaround to gsed for failed test --- model_package_license.go | 4 ++-- model_package_license_request_patch.go | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/model_package_license.go b/model_package_license.go index 5aafa193..87ea1fce 100644 --- a/model_package_license.go +++ b/model_package_license.go @@ -36,7 +36,7 @@ type _PackageLicense PackageLicense // will change when the set of required properties is changed func NewPackageLicense(spdxLicense string) *PackageLicense { this := PackageLicense{} - var licenseOverride LICENSE_OVERRIDE = "None" + var licenseOverride string = "None" this.LicenseOverride = *NewNullableString(&licenseOverride) this.SpdxLicense = spdxLicense return &this @@ -47,7 +47,7 @@ func NewPackageLicense(spdxLicense string) *PackageLicense { // but it doesn't guarantee that properties required by API are set func NewPackageLicenseWithDefaults() *PackageLicense { this := PackageLicense{} - var licenseOverride LICENSE_OVERRIDE = "None" + var licenseOverride string = "None" this.LicenseOverride = *NewNullableString(&licenseOverride) return &this } diff --git a/model_package_license_request_patch.go b/model_package_license_request_patch.go index be7fac13..f34f3ae1 100644 --- a/model_package_license_request_patch.go +++ b/model_package_license_request_patch.go @@ -36,9 +36,9 @@ type _PackageLicenseRequestPatch PackageLicenseRequestPatch // will change when the set of required properties is changed func NewPackageLicenseRequestPatch() *PackageLicenseRequestPatch { this := PackageLicenseRequestPatch{} - var action ACTION = "Update" + var action string = "Update" this.Action = *NewNullableString(&action) - var licenseOverride LICENSE_OVERRIDE = "None" + var licenseOverride string = "None" this.LicenseOverride = *NewNullableString(&licenseOverride) return &this } @@ -48,9 +48,9 @@ func NewPackageLicenseRequestPatch() *PackageLicenseRequestPatch { // but it doesn't guarantee that properties required by API are set func NewPackageLicenseRequestPatchWithDefaults() *PackageLicenseRequestPatch { this := PackageLicenseRequestPatch{} - var action ACTION = "Update" + var action string = "Update" this.Action = *NewNullableString(&action) - var licenseOverride LICENSE_OVERRIDE = "None" + var licenseOverride string = "None" this.LicenseOverride = *NewNullableString(&licenseOverride) return &this }