diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 1325ee03..9a3d4e9d 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -5,6 +5,7 @@ api/openapi.yaml api_audit_log.go api_badges.go api_broadcasts.go +api_bulk_action.go api_distros.go api_entitlements.go api_files.go @@ -28,12 +29,16 @@ docs/AllocatedLimit.md docs/AllocatedLimitRaw.md docs/AlpinePackageUpload.md docs/AlpinePackageUploadRequest.md +docs/AlpineUpstream.md +docs/AlpineUpstreamRequest.md +docs/AlpineUpstreamRequestPatch.md docs/Architecture.md docs/AuditLogApi.md docs/BadgesApi.md docs/BroadcastToken.md docs/BroadcastTokenInput.md docs/BroadcastsApi.md +docs/BulkActionApi.md docs/CargoPackageUpload.md docs/CargoPackageUploadRequest.md docs/CargoUpstream.md @@ -170,9 +175,9 @@ docs/OrganizationSAMLAuthRequestPatch.md docs/OrganizationTeam.md docs/OrganizationTeamInvite.md docs/OrganizationTeamMembers.md -docs/OrganizationTeamMembership.md docs/OrganizationTeamRequest.md docs/OrganizationTeamRequestPatch.md +docs/OrganizationTeamServiceMember.md docs/OrgsApi.md docs/P2PackageUpload.md docs/P2PackageUploadRequest.md @@ -313,6 +318,8 @@ docs/UserTokensList200Response.md docs/UsersApi.md docs/VagrantPackageUpload.md docs/VagrantPackageUploadRequest.md +docs/VsxPackageUpload.md +docs/VsxPackageUploadRequest.md docs/VulnerabilitiesApi.md docs/Vulnerability.md docs/VulnerabilityScan.md @@ -328,6 +335,9 @@ model_allocated_limit.go model_allocated_limit_raw.go model_alpine_package_upload.go model_alpine_package_upload_request.go +model_alpine_upstream.go +model_alpine_upstream_request.go +model_alpine_upstream_request_patch.go model_architecture.go model_broadcast_token.go model_broadcast_token_input.go @@ -461,9 +471,9 @@ model_organization_saml_auth_request_patch.go model_organization_team.go model_organization_team_invite.go model_organization_team_members.go -model_organization_team_membership.go model_organization_team_request.go model_organization_team_request_patch.go +model_organization_team_service_member.go model_p2_package_upload.go model_p2_package_upload_request.go model_package.go @@ -595,6 +605,8 @@ model_user_profile.go model_user_tokens_list_200_response.go model_vagrant_package_upload.go model_vagrant_package_upload_request.go +model_vsx_package_upload.go +model_vsx_package_upload_request.go model_vulnerability.go model_vulnerability_scan.go model_vulnerability_scan_results.go @@ -605,6 +617,7 @@ response.go test/api_audit_log_test.go test/api_badges_test.go test/api_broadcasts_test.go +test/api_bulk_action_test.go test/api_distros_test.go test/api_entitlements_test.go test/api_files_test.go diff --git a/README.md b/README.md index 695eee90..8e32bd06 100644 --- a/README.md +++ b/README.md @@ -5,8 +5,8 @@ The API to the Cloudsmith Service ## Overview This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. -- API version: 1.999.3 -- Package version: 0.0.53 +- API version: 1.1093.0 +- Package version: 0.0.54 - Generator version: 7.9.0 - Build package: org.openapitools.codegen.languages.GoClientCodegen For more information, please visit [https://help.cloudsmith.io](https://help.cloudsmith.io) @@ -83,6 +83,7 @@ Class | Method | HTTP request | Description *AuditLogApi* | [**AuditLogRepoList**](docs/AuditLogApi.md#auditlogrepolist) | **Get** /audit-log/{owner}/{repo}/ | Lists audit log entries for a specific repository. *BadgesApi* | [**BadgesVersionList**](docs/BadgesApi.md#badgesversionlist) | **Get** /badges/version/{owner}/{repo}/{package_format}/{package_name}/{package_version}/{package_identifiers}/ | Get latest package version for a package or package group. *BroadcastsApi* | [**BroadcastsCreateBroadcastToken**](docs/BroadcastsApi.md#broadcastscreatebroadcasttoken) | **Post** /broadcasts/{org}/broadcast-token/ | Create a broadcast token. +*BulkActionApi* | [**BulkAction**](docs/BulkActionApi.md#bulkaction) | **Post** /bulk-action/{owner}/ | *DistrosApi* | [**DistrosList**](docs/DistrosApi.md#distroslist) | **Get** /distros/ | Get a list of all supported distributions. *DistrosApi* | [**DistrosRead**](docs/DistrosApi.md#distrosread) | **Get** /distros/{slug}/ | View for viewing/listing distributions. *EntitlementsApi* | [**EntitlementsCreate**](docs/EntitlementsApi.md#entitlementscreate) | **Post** /entitlements/{owner}/{repo}/ | Create a specific entitlement in a repository. @@ -180,7 +181,6 @@ Class | Method | HTTP request | Description *OrgsApi* | [**OrgsVulnerabilityPolicyRead**](docs/OrgsApi.md#orgsvulnerabilitypolicyread) | **Get** /orgs/{org}/vulnerability-policy/{slug_perm}/ | Get a package vulnerability policy. *OrgsApi* | [**OrgsVulnerabilityPolicyUpdate**](docs/OrgsApi.md#orgsvulnerabilitypolicyupdate) | **Put** /orgs/{org}/vulnerability-policy/{slug_perm}/ | Update a package vulnerability policy. *OrgsApi* | [**OrgsVulnerabilityPolicyViolationList**](docs/OrgsApi.md#orgsvulnerabilitypolicyviolationlist) | **Get** /orgs/{org}/vulnerability-policy-violation/ | List all current vulnerability policy violations for this Organization. -*PackagesApi* | [**PackagesBulkAction**](docs/PackagesApi.md#packagesbulkaction) | **Post** /packages/{owner}/bulk-action/ | *PackagesApi* | [**PackagesCopy**](docs/PackagesApi.md#packagescopy) | **Post** /packages/{owner}/{repo}/{identifier}/copy/ | Copy a package to another repository. *PackagesApi* | [**PackagesDelete**](docs/PackagesApi.md#packagesdelete) | **Delete** /packages/{owner}/{repo}/{identifier}/ | Delete a specific package in a repository. *PackagesApi* | [**PackagesDependencies**](docs/PackagesApi.md#packagesdependencies) | **Get** /packages/{owner}/{repo}/{identifier}/dependencies/ | Get the list of dependencies for a package. Transitive dependencies are included where supported. @@ -221,6 +221,7 @@ Class | Method | HTTP request | Description *PackagesApi* | [**PackagesUploadSwift**](docs/PackagesApi.md#packagesuploadswift) | **Post** /packages/{owner}/{repo}/upload/swift/ | Create a new Swift package *PackagesApi* | [**PackagesUploadTerraform**](docs/PackagesApi.md#packagesuploadterraform) | **Post** /packages/{owner}/{repo}/upload/terraform/ | Create a new Terraform package *PackagesApi* | [**PackagesUploadVagrant**](docs/PackagesApi.md#packagesuploadvagrant) | **Post** /packages/{owner}/{repo}/upload/vagrant/ | Create a new Vagrant package +*PackagesApi* | [**PackagesUploadVsx**](docs/PackagesApi.md#packagesuploadvsx) | **Post** /packages/{owner}/{repo}/upload/vsx/ | Create a new VSX package *PackagesApi* | [**PackagesValidateUploadAlpine**](docs/PackagesApi.md#packagesvalidateuploadalpine) | **Post** /packages/{owner}/{repo}/validate-upload/alpine/ | Validate parameters for create Alpine package *PackagesApi* | [**PackagesValidateUploadCargo**](docs/PackagesApi.md#packagesvalidateuploadcargo) | **Post** /packages/{owner}/{repo}/validate-upload/cargo/ | Validate parameters for create Cargo package *PackagesApi* | [**PackagesValidateUploadCocoapods**](docs/PackagesApi.md#packagesvalidateuploadcocoapods) | **Post** /packages/{owner}/{repo}/validate-upload/cocoapods/ | Validate parameters for create CocoaPods package @@ -248,6 +249,7 @@ Class | Method | HTTP request | Description *PackagesApi* | [**PackagesValidateUploadSwift**](docs/PackagesApi.md#packagesvalidateuploadswift) | **Post** /packages/{owner}/{repo}/validate-upload/swift/ | Validate parameters for create Swift package *PackagesApi* | [**PackagesValidateUploadTerraform**](docs/PackagesApi.md#packagesvalidateuploadterraform) | **Post** /packages/{owner}/{repo}/validate-upload/terraform/ | Validate parameters for create Terraform package *PackagesApi* | [**PackagesValidateUploadVagrant**](docs/PackagesApi.md#packagesvalidateuploadvagrant) | **Post** /packages/{owner}/{repo}/validate-upload/vagrant/ | Validate parameters for create Vagrant package +*PackagesApi* | [**PackagesValidateUploadVsx**](docs/PackagesApi.md#packagesvalidateuploadvsx) | **Post** /packages/{owner}/{repo}/validate-upload/vsx/ | Validate parameters for create VSX package *QuotaApi* | [**QuotaHistoryRead**](docs/QuotaApi.md#quotahistoryread) | **Get** /quota/history/{owner}/ | Quota history for a given namespace. *QuotaApi* | [**QuotaOssHistoryRead**](docs/QuotaApi.md#quotaosshistoryread) | **Get** /quota/oss/history/{owner}/ | Open-source Quota history for a given namespace. *QuotaApi* | [**QuotaOssRead**](docs/QuotaApi.md#quotaossread) | **Get** /quota/oss/{owner}/ | Open-source Quota usage for a given namespace. @@ -280,6 +282,12 @@ Class | Method | HTTP request | Description *ReposApi* | [**ReposRsaList**](docs/ReposApi.md#reposrsalist) | **Get** /repos/{owner}/{identifier}/rsa/ | Retrieve the active RSA key for the Repository. *ReposApi* | [**ReposRsaRegenerate**](docs/ReposApi.md#reposrsaregenerate) | **Post** /repos/{owner}/{identifier}/rsa/regenerate/ | Regenerate RSA Key for the Repository. *ReposApi* | [**ReposTransferRegion**](docs/ReposApi.md#repostransferregion) | **Post** /repos/{owner}/{repo}/transfer-region/ | Transfer a repository to a different region. +*ReposApi* | [**ReposUpstreamAlpineCreate**](docs/ReposApi.md#reposupstreamalpinecreate) | **Post** /repos/{owner}/{identifier}/upstream/alpine/ | Create an Alpine upstream config for this repository. +*ReposApi* | [**ReposUpstreamAlpineDelete**](docs/ReposApi.md#reposupstreamalpinedelete) | **Delete** /repos/{owner}/{identifier}/upstream/alpine/{slug_perm}/ | Delete an Alpine upstream config for this repository. +*ReposApi* | [**ReposUpstreamAlpineList**](docs/ReposApi.md#reposupstreamalpinelist) | **Get** /repos/{owner}/{identifier}/upstream/alpine/ | List Alpine upstream configs for this repository. +*ReposApi* | [**ReposUpstreamAlpinePartialUpdate**](docs/ReposApi.md#reposupstreamalpinepartialupdate) | **Patch** /repos/{owner}/{identifier}/upstream/alpine/{slug_perm}/ | Partially update an Alpine upstream config for this repository. +*ReposApi* | [**ReposUpstreamAlpineRead**](docs/ReposApi.md#reposupstreamalpineread) | **Get** /repos/{owner}/{identifier}/upstream/alpine/{slug_perm}/ | Retrieve an Alpine upstream config for this repository. +*ReposApi* | [**ReposUpstreamAlpineUpdate**](docs/ReposApi.md#reposupstreamalpineupdate) | **Put** /repos/{owner}/{identifier}/upstream/alpine/{slug_perm}/ | Update an Alpine upstream config for this repository. *ReposApi* | [**ReposUpstreamCargoCreate**](docs/ReposApi.md#reposupstreamcargocreate) | **Post** /repos/{owner}/{identifier}/upstream/cargo/ | Create a Cargo upstream config for this repository. *ReposApi* | [**ReposUpstreamCargoDelete**](docs/ReposApi.md#reposupstreamcargodelete) | **Delete** /repos/{owner}/{identifier}/upstream/cargo/{slug_perm}/ | Delete a Cargo upstream config for this repository. *ReposApi* | [**ReposUpstreamCargoList**](docs/ReposApi.md#reposupstreamcargolist) | **Get** /repos/{owner}/{identifier}/upstream/cargo/ | List Cargo upstream configs for this repository. @@ -423,6 +431,9 @@ Class | Method | HTTP request | Description - [AllocatedLimitRaw](docs/AllocatedLimitRaw.md) - [AlpinePackageUpload](docs/AlpinePackageUpload.md) - [AlpinePackageUploadRequest](docs/AlpinePackageUploadRequest.md) + - [AlpineUpstream](docs/AlpineUpstream.md) + - [AlpineUpstreamRequest](docs/AlpineUpstreamRequest.md) + - [AlpineUpstreamRequestPatch](docs/AlpineUpstreamRequestPatch.md) - [Architecture](docs/Architecture.md) - [BroadcastToken](docs/BroadcastToken.md) - [BroadcastTokenInput](docs/BroadcastTokenInput.md) @@ -556,9 +567,9 @@ Class | Method | HTTP request | Description - [OrganizationTeam](docs/OrganizationTeam.md) - [OrganizationTeamInvite](docs/OrganizationTeamInvite.md) - [OrganizationTeamMembers](docs/OrganizationTeamMembers.md) - - [OrganizationTeamMembership](docs/OrganizationTeamMembership.md) - [OrganizationTeamRequest](docs/OrganizationTeamRequest.md) - [OrganizationTeamRequestPatch](docs/OrganizationTeamRequestPatch.md) + - [OrganizationTeamServiceMember](docs/OrganizationTeamServiceMember.md) - [P2PackageUpload](docs/P2PackageUpload.md) - [P2PackageUploadRequest](docs/P2PackageUploadRequest.md) - [Package](docs/Package.md) @@ -690,6 +701,8 @@ Class | Method | HTTP request | Description - [UserTokensList200Response](docs/UserTokensList200Response.md) - [VagrantPackageUpload](docs/VagrantPackageUpload.md) - [VagrantPackageUploadRequest](docs/VagrantPackageUploadRequest.md) + - [VsxPackageUpload](docs/VsxPackageUpload.md) + - [VsxPackageUploadRequest](docs/VsxPackageUploadRequest.md) - [Vulnerability](docs/Vulnerability.md) - [VulnerabilityScan](docs/VulnerabilityScan.md) - [VulnerabilityScanResults](docs/VulnerabilityScanResults.md) diff --git a/api/openapi.yaml b/api/openapi.yaml index 3104cf5b..9e98d092 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -10,7 +10,7 @@ info: url: https://opensource.org/licenses/MIT termsOfService: https://help.cloudsmith.io title: Cloudsmith API (v1) - version: 1.999.3 + version: 1.1093.0 servers: - url: https://api.cloudsmith.io/ security: @@ -307,6 +307,49 @@ paths: tags: - broadcasts x-codegen-request-body-name: data + /bulk-action/{owner}/: + post: + description: "Perform bulk operations on multiple packages within a repository\ + \ or across all accessible repositories. If 'repository' is provided, actions\ + \ are limited to that repository. If 'repository' is omitted, actions are\ + \ performed across all repositories the user has access to within the workspace.\ + \ Returns a list of successfully actioned packages and any packages that failed\ + \ with error details. " + operationId: bulk_action + parameters: + - in: path + name: owner + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PackageBulkAction' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/PackageBulkActionResponse' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorDetail' + description: Request could not be processed (see detail). + "422": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorDetail' + description: Missing or invalid parameters (see detail). + tags: + - bulk-action + x-codegen-request-body-name: data /distros/: get: description: Get a list of all supported distributions. @@ -4621,49 +4664,6 @@ paths: tags: - orgs x-codegen-request-body-name: data - /packages/{owner}/bulk-action/: - post: - description: "Perform bulk operations on multiple packages within a repository\ - \ or across all accessible repositories. If 'repository' is provided, actions\ - \ are limited to that repository. If 'repository' is omitted, actions are\ - \ performed across all repositories the user has access to within the workspace.\ - \ Returns a list of successfully actioned packages and any packages that failed\ - \ with error details. " - operationId: packages_bulk_action - parameters: - - in: path - name: owner - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PackageBulkAction' - required: false - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/PackageBulkActionResponse' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorDetail' - description: Request could not be processed (see detail). - "422": - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorDetail' - description: Missing or invalid parameters (see detail). - tags: - - packages - x-codegen-request-body-name: data /packages/{owner}/{repo}/: get: description: Get a list of all packages associated with repository. @@ -6156,6 +6156,56 @@ paths: tags: - packages x-codegen-request-body-name: data + /packages/{owner}/{repo}/upload/vsx/: + post: + description: Create a new VSX package + operationId: packages_upload_vsx + 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/VsxPackageUploadRequest' + required: false + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/VsxPackageUpload' + 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 VSX package + tags: + - packages + x-codegen-request-body-name: data /packages/{owner}/{repo}/validate-upload/alpine/: post: description: Validate parameters for create Alpine package @@ -7425,6 +7475,53 @@ paths: tags: - packages x-codegen-request-body-name: data + /packages/{owner}/{repo}/validate-upload/vsx/: + post: + description: Validate parameters for create VSX package + operationId: packages_validate-upload_vsx + 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/VsxPackageUploadRequest' + 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 VSX package + tags: + - packages + x-codegen-request-body-name: data /packages/{owner}/{repo}/{identifier}/: delete: description: Delete a specific package in a repository. @@ -9280,10 +9377,10 @@ paths: summary: Regenerate RSA Key for the Repository. tags: - repos - /repos/{owner}/{identifier}/upstream/cargo/: + /repos/{owner}/{identifier}/upstream/alpine/: get: - description: List Cargo upstream configs for this repository. - operationId: repos_upstream_cargo_list + description: List Alpine upstream configs for this repository. + operationId: repos_upstream_alpine_list parameters: - in: path name: owner @@ -9311,7 +9408,7 @@ paths: application/json: schema: items: - $ref: '#/components/schemas/CargoUpstream' + $ref: '#/components/schemas/AlpineUpstream' type: array description: OK "400": @@ -9326,13 +9423,13 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: List Cargo upstream configs for this repository. + summary: List Alpine upstream configs for this repository. tags: - repos x-simplified: "fields[upstreams]=auth_mode,available,created_at,disable_reason_text,has_failed_signature_verification,is_active,name,mode,pending_validation,slug_perm,upstream_url,verify_ssl" post: - description: Create a Cargo upstream config for this repository. - operationId: repos_upstream_cargo_create + description: Create an Alpine upstream config for this repository. + operationId: repos_upstream_alpine_create parameters: - in: path name: owner @@ -9348,14 +9445,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CargoUpstreamRequest' + $ref: '#/components/schemas/AlpineUpstreamRequest' required: false responses: "201": content: application/json: schema: - $ref: '#/components/schemas/CargoUpstream' + $ref: '#/components/schemas/AlpineUpstream' description: Created "400": content: @@ -9369,14 +9466,14 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Create a Cargo upstream config for this repository. + summary: Create an Alpine upstream config for this repository. tags: - repos x-codegen-request-body-name: data - /repos/{owner}/{identifier}/upstream/cargo/{slug_perm}/: + /repos/{owner}/{identifier}/upstream/alpine/{slug_perm}/: delete: - description: Delete a Cargo upstream config for this repository. - operationId: repos_upstream_cargo_delete + description: Delete an Alpine upstream config for this repository. + operationId: repos_upstream_alpine_delete parameters: - in: path name: owner @@ -9409,12 +9506,12 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Delete a Cargo upstream config for this repository. + summary: Delete an Alpine upstream config for this repository. tags: - repos get: - description: Retrieve a Cargo upstream config for this repository. - operationId: repos_upstream_cargo_read + description: Retrieve an Alpine upstream config for this repository. + operationId: repos_upstream_alpine_read parameters: - in: path name: owner @@ -9436,7 +9533,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CargoUpstream' + $ref: '#/components/schemas/AlpineUpstream' description: OK "400": content: @@ -9450,13 +9547,13 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Retrieve a Cargo upstream config for this repository. + summary: Retrieve an Alpine upstream config for this repository. tags: - repos x-simplified: "fields[upstreams]=auth_mode,available,created_at,disable_reason_text,has_failed_signature_verification,is_active,name,mode,pending_validation,slug_perm,upstream_url,verify_ssl" patch: - description: Partially update a Cargo upstream config for this repository. - operationId: repos_upstream_cargo_partial_update + description: Partially update an Alpine upstream config for this repository. + operationId: repos_upstream_alpine_partial_update parameters: - in: path name: owner @@ -9477,14 +9574,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CargoUpstreamRequestPatch' + $ref: '#/components/schemas/AlpineUpstreamRequestPatch' required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/CargoUpstream' + $ref: '#/components/schemas/AlpineUpstream' description: OK "400": content: @@ -9498,13 +9595,13 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Partially update a Cargo upstream config for this repository. + summary: Partially update an Alpine upstream config for this repository. tags: - repos x-codegen-request-body-name: data put: - description: Update a Cargo upstream config for this repository. - operationId: repos_upstream_cargo_update + description: Update an Alpine upstream config for this repository. + operationId: repos_upstream_alpine_update parameters: - in: path name: owner @@ -9525,14 +9622,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CargoUpstreamRequest' + $ref: '#/components/schemas/AlpineUpstreamRequest' required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/CargoUpstream' + $ref: '#/components/schemas/AlpineUpstream' description: OK "400": content: @@ -9546,14 +9643,14 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Update a Cargo upstream config for this repository. + summary: Update an Alpine upstream config for this repository. tags: - repos x-codegen-request-body-name: data - /repos/{owner}/{identifier}/upstream/composer/: + /repos/{owner}/{identifier}/upstream/cargo/: get: - description: List Composer upstream configs for this repository. - operationId: repos_upstream_composer_list + description: List Cargo upstream configs for this repository. + operationId: repos_upstream_cargo_list parameters: - in: path name: owner @@ -9581,7 +9678,7 @@ paths: application/json: schema: items: - $ref: '#/components/schemas/ComposerUpstream' + $ref: '#/components/schemas/CargoUpstream' type: array description: OK "400": @@ -9596,13 +9693,13 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: List Composer upstream configs for this repository. + summary: List Cargo upstream configs for this repository. tags: - repos x-simplified: "fields[upstreams]=auth_mode,available,created_at,disable_reason_text,has_failed_signature_verification,is_active,name,mode,pending_validation,slug_perm,upstream_url,verify_ssl" post: - description: Create a Composer upstream config for this repository. - operationId: repos_upstream_composer_create + description: Create a Cargo upstream config for this repository. + operationId: repos_upstream_cargo_create parameters: - in: path name: owner @@ -9618,14 +9715,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ComposerUpstreamRequest' + $ref: '#/components/schemas/CargoUpstreamRequest' required: false responses: "201": content: application/json: schema: - $ref: '#/components/schemas/ComposerUpstream' + $ref: '#/components/schemas/CargoUpstream' description: Created "400": content: @@ -9639,14 +9736,14 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Create a Composer upstream config for this repository. + summary: Create a Cargo upstream config for this repository. tags: - repos x-codegen-request-body-name: data - /repos/{owner}/{identifier}/upstream/composer/{slug_perm}/: + /repos/{owner}/{identifier}/upstream/cargo/{slug_perm}/: delete: - description: Delete a Composer upstream config for this repository. - operationId: repos_upstream_composer_delete + description: Delete a Cargo upstream config for this repository. + operationId: repos_upstream_cargo_delete parameters: - in: path name: owner @@ -9679,12 +9776,12 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Delete a Composer upstream config for this repository. + summary: Delete a Cargo upstream config for this repository. tags: - repos get: - description: Retrieve a Composer upstream config for this repository. - operationId: repos_upstream_composer_read + description: Retrieve a Cargo upstream config for this repository. + operationId: repos_upstream_cargo_read parameters: - in: path name: owner @@ -9706,7 +9803,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ComposerUpstream' + $ref: '#/components/schemas/CargoUpstream' description: OK "400": content: @@ -9720,13 +9817,13 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Retrieve a Composer upstream config for this repository. + summary: Retrieve a Cargo upstream config for this repository. tags: - repos x-simplified: "fields[upstreams]=auth_mode,available,created_at,disable_reason_text,has_failed_signature_verification,is_active,name,mode,pending_validation,slug_perm,upstream_url,verify_ssl" patch: - description: Partially update a Composer upstream config for this repository. - operationId: repos_upstream_composer_partial_update + description: Partially update a Cargo upstream config for this repository. + operationId: repos_upstream_cargo_partial_update parameters: - in: path name: owner @@ -9747,14 +9844,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ComposerUpstreamRequestPatch' + $ref: '#/components/schemas/CargoUpstreamRequestPatch' required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/ComposerUpstream' + $ref: '#/components/schemas/CargoUpstream' description: OK "400": content: @@ -9768,13 +9865,13 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Partially update a Composer upstream config for this repository. + summary: Partially update a Cargo upstream config for this repository. tags: - repos x-codegen-request-body-name: data put: - description: Update a Composer upstream config for this repository. - operationId: repos_upstream_composer_update + description: Update a Cargo upstream config for this repository. + operationId: repos_upstream_cargo_update parameters: - in: path name: owner @@ -9795,14 +9892,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ComposerUpstreamRequest' + $ref: '#/components/schemas/CargoUpstreamRequest' required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/ComposerUpstream' + $ref: '#/components/schemas/CargoUpstream' description: OK "400": content: @@ -9816,14 +9913,284 @@ paths: schema: $ref: '#/components/schemas/ErrorDetail' description: Missing or invalid parameters (see detail). - summary: Update a Composer upstream config for this repository. + summary: Update a Cargo upstream config for this repository. tags: - repos x-codegen-request-body-name: data - /repos/{owner}/{identifier}/upstream/conda/: + /repos/{owner}/{identifier}/upstream/composer/: get: - description: List Conda upstream configs for this repository. - operationId: repos_upstream_conda_list + description: List Composer upstream configs for this repository. + operationId: repos_upstream_composer_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: + items: + $ref: '#/components/schemas/ComposerUpstream' + type: array + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorDetail' + description: Request could not be processed (see detail). + "422": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorDetail' + description: Missing or invalid parameters (see detail). + summary: List Composer upstream configs for this repository. + tags: + - repos + x-simplified: "fields[upstreams]=auth_mode,available,created_at,disable_reason_text,has_failed_signature_verification,is_active,name,mode,pending_validation,slug_perm,upstream_url,verify_ssl" + post: + description: Create a Composer upstream config for this repository. + operationId: repos_upstream_composer_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/ComposerUpstreamRequest' + required: false + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/ComposerUpstream' + description: Created + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorDetail' + description: Request could not be processed (see detail). + "422": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorDetail' + description: Missing or invalid parameters (see detail). + summary: Create a Composer upstream config for this repository. + tags: + - repos + x-codegen-request-body-name: data + /repos/{owner}/{identifier}/upstream/composer/{slug_perm}/: + delete: + description: Delete a Composer upstream config for this repository. + operationId: repos_upstream_composer_delete + 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: + "204": + content: {} + description: No Content + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorDetail' + description: Request could not be processed (see detail). + "422": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorDetail' + description: Missing or invalid parameters (see detail). + summary: Delete a Composer upstream config for this repository. + tags: + - repos + get: + description: Retrieve a Composer upstream config for this repository. + operationId: repos_upstream_composer_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/ComposerUpstream' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorDetail' + description: Request could not be processed (see detail). + "422": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorDetail' + description: Missing or invalid parameters (see detail). + summary: Retrieve a Composer upstream config for this repository. + tags: + - repos + x-simplified: "fields[upstreams]=auth_mode,available,created_at,disable_reason_text,has_failed_signature_verification,is_active,name,mode,pending_validation,slug_perm,upstream_url,verify_ssl" + patch: + description: Partially update a Composer upstream config for this repository. + operationId: repos_upstream_composer_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/ComposerUpstreamRequestPatch' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ComposerUpstream' + 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: Partially update a Composer upstream config for this repository. + tags: + - repos + x-codegen-request-body-name: data + put: + description: Update a Composer upstream config for this repository. + operationId: repos_upstream_composer_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/ComposerUpstreamRequest' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ComposerUpstream' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorDetail' + description: Request could not be processed (see detail). + "422": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorDetail' + description: Missing or invalid parameters (see detail). + summary: Update a Composer upstream config for this repository. + tags: + - repos + x-codegen-request-body-name: data + /repos/{owner}/{identifier}/upstream/conda/: + get: + description: List Conda upstream configs for this repository. + operationId: repos_upstream_conda_list parameters: - in: path name: owner @@ -15669,6 +16036,91 @@ components: title: Token type: string type: object + PackageBulkAction: + example: + identifiers: + - identifiers + - identifiers + - identifiers + - identifiers + - identifiers + action: Delete + repository: repository + target_repository: target_repository + properties: + action: + description: The action to perform on the packages. + enum: + - Delete + - Resync + - Quarantine + - Unquarantine + - Move + - Copy + - Rescan + title: Action + type: string + identifiers: + description: A list of package identifiers to apply the action to. + items: + maxLength: 255 + minLength: 1 + type: string + maxItems: 100 + minItems: 1 + type: array + repository: + description: "The repository name to filter packages to. If not provided,\ + \ the action will be performed across all accessible repositories in the\ + \ workspace." + maxLength: 255 + minLength: 1 + title: Repository + type: string + target_repository: + description: The slug of the target repository + minLength: 1 + title: Target repository + type: string + required: + - action + - identifiers + type: object + PackageBulkActionResponse: + example: + packages_failed_to_action: + key: + key: packages_failed_to_action + action: action + packages_actioned: + - packages_actioned + - packages_actioned + properties: + action: + description: The action that was performed. + minLength: 1 + readOnly: true + title: Action + type: string + packages_actioned: + description: List of package identifiers that were successfully actioned. + items: + minLength: 1 + type: string + readOnly: true + type: array + packages_failed_to_action: + additionalProperties: + additionalProperties: + nullable: true + type: string + type: object + description: Dictionary of package identifiers that failed with their error + details. + readOnly: true + title: Packages failed to action + type: object + type: object DistributionVersion: description: A list of the versions for this distribution example: @@ -17056,6 +17508,7 @@ components: FormatSupportUpstream: description: The upstream support for the package format example: + trust: true auth_modes: - Username and Password - Username and Password @@ -17106,11 +17559,17 @@ components: - Repository Metadata and Packages title: Signature verification type: string + trust: + description: If true the upstream format supports configurable trust levels + (trusted vs untrusted) for upstream sources. + title: Trust + type: boolean required: - auth_modes - caching - indexing - proxying + - trust type: object FormatSupport: description: A set of what the package format supports @@ -17119,6 +17578,7 @@ components: metadata: true versioning: true upstreams: + trust: true auth_modes: - Username and Password - Username and Password @@ -17179,6 +17639,7 @@ components: metadata: true versioning: true upstreams: + trust: true auth_modes: - Username and Password - Username and Password @@ -19329,9 +19790,10 @@ components: title: Visibility type: string type: object - OrganizationTeamMembership: + OrganizationTeamServiceMember: description: The team members example: + user_kind: User role: Manager user: user properties: @@ -19345,6 +19807,13 @@ components: minLength: 1 title: User type: string + user_kind: + default: User + enum: + - User + - Service + title: User kind + type: string required: - role - user @@ -19352,15 +19821,17 @@ components: OrganizationTeamMembers: example: members: - - role: Manager + - user_kind: User + role: Manager user: user - - role: Manager + - user_kind: User + role: Manager user: user properties: members: description: The team members items: - $ref: '#/components/schemas/OrganizationTeamMembership' + $ref: '#/components/schemas/OrganizationTeamServiceMember' type: array required: - members @@ -19758,91 +20229,6 @@ components: title: Package query string type: string type: object - PackageBulkAction: - example: - identifiers: - - identifiers - - identifiers - - identifiers - - identifiers - - identifiers - action: Delete - repository: repository - target_repository: target_repository - properties: - action: - description: The action to perform on the packages. - enum: - - Delete - - Resync - - Quarantine - - Unquarantine - - Move - - Copy - - Rescan - title: Action - type: string - identifiers: - description: A list of package identifiers to apply the action to. - items: - maxLength: 255 - minLength: 1 - type: string - maxItems: 100 - minItems: 1 - type: array - repository: - description: "The repository name to filter packages to. If not provided,\ - \ the action will be performed across all accessible repositories in the\ - \ workspace." - maxLength: 255 - minLength: 1 - title: Repository - type: string - target_repository: - description: The slug of the target repository - minLength: 1 - title: Target repository - type: string - required: - - action - - identifiers - type: object - PackageBulkActionResponse: - example: - packages_failed_to_action: - key: - key: packages_failed_to_action - action: action - packages_actioned: - - packages_actioned - - packages_actioned - properties: - action: - description: The action that was performed. - minLength: 1 - readOnly: true - title: Action - type: string - packages_actioned: - description: List of package identifiers that were successfully actioned. - items: - minLength: 1 - type: string - readOnly: true - type: array - packages_failed_to_action: - additionalProperties: - additionalProperties: - nullable: true - type: string - type: object - description: Dictionary of package identifiers that failed with their error - details. - readOnly: true - title: Packages failed to action - type: object - type: object Architecture: example: name: name @@ -30809,7 +31195,7 @@ components: description: The default npm dist-tag for this package/version - This will replace any other package/version if they are using the same tag. maxLength: 255 - minLength: 1 + nullable: true title: Npm dist tag type: string package_file: @@ -36832,25 +37218,34 @@ components: - provider - version type: object - PackageCopyRequest: + VsxPackageUploadRequest: example: republish: true - destination: destination + package_file: package_file + tags: tags properties: - destination: - description: The name of the destination repository without the namespace. + package_file: + description: The primary file for the package. minLength: 1 - title: Destination + title: Package file type: string republish: - description: "If true, the package will overwrite any others with the same\ - \ attributes (e.g. same version); otherwise, it will be flagged as a duplicate." + description: "If true, the uploaded package will overwrite any others with\ + \ the same attributes (e.g. same version); otherwise, it will be flagged\ + \ as a duplicate." title: Republish type: boolean + tags: + description: A comma-separated values list of tags to add to the package. + maxLength: 1024 + minLength: 1 + nullable: true + title: Tags + type: string required: - - destination + - package_file type: object - PackageCopy: + VsxPackageUpload: example: architectures: - name: name @@ -36865,7 +37260,6 @@ components: origin_repository: origin_repository identifier_perm: identifier_perm stage_updated_at: 2000-01-23T04:56:07.000+00:00 - filepath: filepath tags_immutable: "{}" is_quarantined: true slug: slug @@ -36883,7 +37277,6 @@ components: slug_perm: slug_perm spdx_license: spdx_license version: version - tags: "{}" is_resyncable: true license: license filename: filename @@ -37048,13 +37441,6 @@ components: readOnly: true title: Filename type: string - filepath: - description: "Full path to the file, including filename e.g. bin/utils/tool.tar.gz" - minLength: 1 - nullable: true - readOnly: true - title: Filepath - type: string files: items: $ref: '#/components/schemas/PackageFile' @@ -37215,7 +37601,6 @@ components: title: Release type: string repository: - description: The repository the package will be copied to. minLength: 1 readOnly: true title: Repository @@ -37372,11 +37757,6 @@ components: readOnly: true title: Sync progress type: integer - 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\ @@ -37423,98 +37803,9 @@ components: title: Vulnerability scan results url type: string type: object - PackageDependency: - example: - dep_type: Depends - name: name - version: version - operator: = - properties: - dep_type: - default: Depends - enum: - - Depends - - Pre-Depends - - Recommends - - Suggests - - Enhances - - Replaces - - Breaks - - Built-Using - - Build-Depends - - Build-Depends-Indep - - Build-Conflicts - - Build-Conflicts-Indep - - Conflicts - - Provides - - Obsoletes - - Requires - - Runtime - - Development - - Compile - - Provided - - Test - - System - - Import - - Excluded - - Build-Requires - - Python-Requires - readOnly: true - title: Dep type - type: string - name: - maxLength: 255 - minLength: 1 - readOnly: true - title: Name - type: string - operator: - default: = - enum: - - = - - '!=' - - < - - << - - <= - - '>' - - '>>' - - '>=' - - "~=" - - "~>" - - matches - nullable: true - readOnly: true - title: Operator - type: string - version: - maxLength: 128 - minLength: 1 - nullable: true - readOnly: true - title: Version - type: string - type: object - PackageDependencies: - example: - dependencies: - - dep_type: Depends - name: name - version: version - operator: = - - dep_type: Depends - name: name - version: version - operator: = - properties: - dependencies: - items: - $ref: '#/components/schemas/PackageDependency' - type: array - required: - - dependencies - type: object - PackageMoveRequest: + PackageCopyRequest: example: + republish: true destination: destination properties: destination: @@ -37522,10 +37813,15 @@ components: minLength: 1 title: Destination type: string + republish: + description: "If true, the package will overwrite any others with the same\ + \ attributes (e.g. same version); otherwise, it will be flagged as a duplicate." + title: Republish + type: boolean required: - destination type: object - PackageMove: + PackageCopy: example: architectures: - name: name @@ -37890,7 +38186,7 @@ components: title: Release type: string repository: - description: The repository the package will be moved to. + description: The repository the package will be copied to. minLength: 1 readOnly: true title: Repository @@ -38098,22 +38394,109 @@ components: title: Vulnerability scan results url type: string type: object - PackageQuarantineRequest: + PackageDependency: example: - restore: true - release: true + dep_type: Depends + name: name + version: version + operator: = properties: - release: - description: "If true, the package is released from quarantine." - title: Release - type: boolean - restore: - description: "If true, the package is released from quarantine. Note: This\ - \ field is deprecated, please use 'release' instead." - title: Restore - type: boolean + dep_type: + default: Depends + enum: + - Depends + - Pre-Depends + - Recommends + - Suggests + - Enhances + - Replaces + - Breaks + - Built-Using + - Build-Depends + - Build-Depends-Indep + - Build-Conflicts + - Build-Conflicts-Indep + - Conflicts + - Provides + - Obsoletes + - Requires + - Runtime + - Development + - Compile + - Provided + - Test + - System + - Import + - Excluded + - Build-Requires + - Python-Requires + readOnly: true + title: Dep type + type: string + name: + maxLength: 255 + minLength: 1 + readOnly: true + title: Name + type: string + operator: + default: = + enum: + - = + - '!=' + - < + - << + - <= + - '>' + - '>>' + - '>=' + - "~=" + - "~>" + - matches + nullable: true + readOnly: true + title: Operator + type: string + version: + maxLength: 128 + minLength: 1 + nullable: true + readOnly: true + title: Version + type: string type: object - PackageQuarantine: + PackageDependencies: + example: + dependencies: + - dep_type: Depends + name: name + version: version + operator: = + - dep_type: Depends + name: name + version: version + operator: = + properties: + dependencies: + items: + $ref: '#/components/schemas/PackageDependency' + type: array + required: + - dependencies + type: object + PackageMoveRequest: + example: + destination: destination + properties: + destination: + description: The name of the destination repository without the namespace. + minLength: 1 + title: Destination + type: string + required: + - destination + type: object + PackageMove: example: architectures: - name: name @@ -38122,6 +38505,7 @@ components: description: description security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 + release: release package_type: 5 repository: repository origin_repository: origin_repository @@ -38470,7 +38854,14 @@ components: readOnly: true title: Raw license type: string + release: + description: The release of the package version (if any). + nullable: true + readOnly: true + title: Release + type: string repository: + description: The repository the package will be moved to. minLength: 1 readOnly: true title: Repository @@ -38678,7 +39069,22 @@ components: title: Vulnerability scan results url type: string type: object - PackageResync: + PackageQuarantineRequest: + example: + restore: true + release: true + properties: + release: + description: "If true, the package is released from quarantine." + title: Release + type: boolean + restore: + description: "If true, the package is released from quarantine. Note: This\ + \ field is deprecated, please use 'release' instead." + title: Restore + type: boolean + type: object + PackageQuarantine: example: architectures: - name: name @@ -38687,7 +39093,6 @@ components: description: description security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 - release: release package_type: 5 repository: repository origin_repository: origin_repository @@ -39036,12 +39441,6 @@ components: readOnly: true title: Raw license type: string - release: - description: The release of the package version (if any). - nullable: true - readOnly: true - title: Release - type: string repository: minLength: 1 readOnly: true @@ -39250,31 +39649,603 @@ components: title: Vulnerability scan results url type: string type: object - PackageStatus: + PackageResync: example: + architectures: + - name: name + description: description + - name: name + description: description + security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 + checksum_sha256: checksum_sha256 + release: release + package_type: 5 + repository: repository + origin_repository: origin_repository + identifier_perm: identifier_perm + stage_updated_at: 2000-01-23T04:56:07.000+00:00 + filepath: filepath + tags_immutable: "{}" + is_quarantined: true + slug: slug + freeable_storage: 1 is_security_scannable: true - is_quarantinable: true + security_scan_started_at: 2000-01-23T04:56:07.000+00:00 + security_scan_status: Awaiting Security Scan + indexed: true is_deleteable: true - is_copyable: true + format: format status_str: status_str - sync_progress: 1 - is_sync_awaiting: true - is_sync_completed: true - self_url: https://openapi-generator.tech + version_orig: version_orig + namespace_url: https://openapi-generator.tech + display_name: display_name + slug_perm: slug_perm + spdx_license: spdx_license + version: version + tags: "{}" is_resyncable: true - is_sync_in_flight: true - is_sync_in_progress: true - stage_str: stage_str - stage_updated_at: 2000-01-23T04:56:07.000+00:00 - stage: 0 + license: license + filename: filename + size: 2 + cdn_url: cdn_url + uploaded_at: 2000-01-23T04:56:07.000+00:00 is_cancellable: true is_downloadable: true + name: name sync_finished_at: 2000-01-23T04:56:07.000+00:00 - is_sync_failed: true + 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: 5 + status: 9 + checksum_sha512: checksum_sha512 + distro: + name: name + variants: variants + self_url: https://openapi-generator.tech + slug: slug + extension: extension + fully_qualified_name: fully_qualified_name + description: description + is_copyable: true + epoch: 6 + is_sync_completed: true + distro_version: + name: name + slug: slug + type_display: type_display + raw_license: raw_license + vulnerability_scan_results_url: https://openapi-generator.tech + dependencies_checksum_md5: dependencies_checksum_md5 + policy_violated: true + downloads: 0 + subtype: subtype + uploader: uploader + self_webapp_url: self_webapp_url + signature_url: signature_url + tags_automatic: "{}" + repository_url: https://openapi-generator.tech is_moveable: true - is_quarantined: true status_reason: status_reason - status: 6 + status_updated_at: 2000-01-23T04:56:07.000+00:00 + summary: summary + checksum_sha1: checksum_sha1 + is_quarantinable: true + identifiers: + key: identifiers + checksum_md5: checksum_md5 + sync_progress: 3 + is_sync_awaiting: true + uploader_url: https://openapi-generator.tech + self_html_url: self_html_url + origin_repository_url: https://openapi-generator.tech + self_url: https://openapi-generator.tech + status_url: https://openapi-generator.tech + is_sync_in_flight: true + security_scan_completed_at: 2000-01-23T04:56:07.000+00:00 + is_sync_in_progress: true + stage_str: stage_str + stage: 7 + format_url: https://openapi-generator.tech + dependencies_url: https://openapi-generator.tech + namespace: namespace + is_sync_failed: true + properties: + architectures: + items: + $ref: '#/components/schemas/Architecture' + readOnly: true + type: array + cdn_url: + nullable: true + readOnly: true + title: Cdn url + type: string + checksum_md5: + readOnly: true + title: Checksum md5 + type: string + checksum_sha1: + readOnly: true + title: Checksum sha1 + type: string + checksum_sha256: + readOnly: true + title: Checksum sha256 + type: string + checksum_sha512: + readOnly: true + title: Checksum sha512 + type: string + 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 + filepath: + description: "Full path to the file, including filename e.g. bin/utils/tool.tar.gz" + minLength: 1 + nullable: true + readOnly: true + title: Filepath + type: string + files: + items: + $ref: '#/components/schemas/PackageFile' + readOnly: true + type: array + format: + minLength: 1 + readOnly: true + title: Format + type: string + format_url: + format: uri + readOnly: true + title: Format url + type: string + freeable_storage: + description: Amount of storage that will be freed if this package is deleted + readOnly: true + title: Freeable storage + type: integer + fully_qualified_name: + minLength: 1 + nullable: true + readOnly: true + title: Fully qualified name + type: string + identifier_perm: + description: Unique and permanent identifier for the package. + minLength: 1 + readOnly: true + title: Identifier perm + type: string + identifiers: + additionalProperties: + nullable: true + type: string + description: Return a map of identifier field names and their values. + readOnly: true + title: Identifiers + type: object + indexed: + readOnly: true + title: Indexed + type: boolean + is_cancellable: + readOnly: true + title: Is cancellable + type: boolean + is_copyable: + readOnly: true + title: Is copyable + type: boolean + is_deleteable: + readOnly: true + title: Is deleteable + type: boolean + is_downloadable: + readOnly: true + title: Is downloadable + type: boolean + is_moveable: + readOnly: true + title: Is moveable + type: boolean + is_quarantinable: + readOnly: true + title: Is quarantinable + type: boolean + is_quarantined: + readOnly: true + title: Is quarantined + type: boolean + is_resyncable: + readOnly: true + title: Is resyncable + type: boolean + is_security_scannable: + readOnly: true + title: Is security scannable + type: boolean + is_sync_awaiting: + readOnly: true + title: Is sync awaiting + type: boolean + is_sync_completed: + readOnly: true + title: Is sync completed + type: boolean + is_sync_failed: + readOnly: true + title: Is sync failed + type: boolean + is_sync_in_flight: + readOnly: true + title: Is sync in flight + type: boolean + is_sync_in_progress: + readOnly: true + title: Is sync in progress + type: boolean + license: + description: The license of this package. + nullable: true + readOnly: true + title: License + type: string + name: + description: The name of this package. + nullable: true + readOnly: true + title: Name + type: string + namespace: + minLength: 1 + readOnly: true + title: Namespace + type: string + namespace_url: + format: uri + readOnly: true + title: Namespace url + type: string + num_files: + readOnly: true + title: Num files + type: integer + origin_repository: + minLength: 1 + readOnly: true + title: Origin repository + type: string + origin_repository_url: + format: uri + readOnly: true + title: Origin repository url + type: string + package_type: + description: The type of package contents. + readOnly: true + title: Package type + type: integer + policy_violated: + description: Whether or not the package has violated any policy. + readOnly: true + title: Policy violated + type: boolean + raw_license: + description: The raw license string. + minLength: 1 + nullable: true + readOnly: true + title: Raw license + type: string + release: + description: The release of the package version (if any). + nullable: true + readOnly: true + title: Release + type: string + repository: + minLength: 1 + readOnly: true + title: Repository + type: string + repository_url: + format: uri + readOnly: true + title: Repository url + type: string + security_scan_completed_at: + description: The datetime the security scanning was completed. + format: date-time + nullable: true + readOnly: true + title: Security scan completed at + type: string + security_scan_started_at: + description: The datetime the security scanning was started. + format: date-time + nullable: true + readOnly: true + title: Security scan started at + type: string + security_scan_status: + default: Awaiting Security Scan + enum: + - Awaiting Security Scan + - Security Scanning in Progress + - Scan Detected Vulnerabilities + - Scan Detected No Vulnerabilities + - Security Scanning Disabled + - Security Scanning Failed + - Security Scanning Skipped + - Security Scanning Not Supported + nullable: true + readOnly: true + title: Security scan status + type: string + security_scan_status_updated_at: + description: The datetime the security scanning status was updated. + format: date-time + nullable: true + readOnly: true + title: Security scan status updated at + type: string + self_html_url: + minLength: 1 + readOnly: true + title: Self html url + type: string + self_url: + format: uri + readOnly: true + title: Self url + type: string + self_webapp_url: + minLength: 1 + readOnly: true + title: Self webapp url + type: string + signature_url: + nullable: true + readOnly: true + title: Signature url + type: string + size: + description: The calculated size of the package. + readOnly: true + title: Size + type: integer + slug: + description: The public unique identifier for the package. + format: slug + minLength: 1 + pattern: "^[-a-zA-Z0-9_]+$" + readOnly: true + title: Slug + type: string + slug_perm: + format: slug + minLength: 1 + pattern: "^[-a-zA-Z0-9_]+$" + readOnly: true + title: Slug perm + type: string + spdx_license: + description: The SPDX license identifier for this package. + minLength: 1 + nullable: true + readOnly: true + title: Spdx license + type: string + stage: + description: The synchronisation (in progress) stage of the package. + readOnly: true + title: Stage + type: integer + stage_str: + readOnly: true + title: Stage str + type: string + stage_updated_at: + description: The datetime the package stage was updated at. + format: date-time + readOnly: true + title: Stage updated at + type: string + status: + description: The synchronisation status of the package. + readOnly: true + title: Status + type: integer + status_reason: + description: A textual description for the synchronous status reason (if + any + nullable: true + readOnly: true + title: Status reason + type: string + status_str: + readOnly: true + title: Status str + type: string + status_updated_at: + description: The datetime the package status was updated at. + format: date-time + readOnly: true + title: Status updated at + type: string + status_url: + format: uri + readOnly: true + title: Status url + type: string + subtype: + readOnly: true + title: Subtype + type: string + summary: + description: A one-liner synopsis of this package. + nullable: true + readOnly: true + title: Summary + type: string + sync_finished_at: + description: The datetime the package sync was finished at. + format: date-time + nullable: true + readOnly: true + title: Sync finished at + type: string + sync_progress: + description: Synchronisation progress (from 0-100) + readOnly: true + title: Sync progress + type: integer + tags: + 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: Type display + type: string + uploaded_at: + description: The date this package was uploaded. + format: date-time + readOnly: true + title: Uploaded at + type: string + uploader: + minLength: 1 + readOnly: true + title: Uploader + type: string + uploader_url: + format: uri + readOnly: true + title: Uploader url + type: string + version: + description: The raw version for this package. + nullable: true + readOnly: true + title: Version + type: string + version_orig: + readOnly: true + title: Version orig + type: string + vulnerability_scan_results_url: + format: uri + readOnly: true + title: Vulnerability scan results url + type: string + type: object + PackageStatus: + example: + is_security_scannable: true + is_quarantinable: true + is_deleteable: true + is_copyable: true + status_str: status_str + sync_progress: 1 + is_sync_awaiting: true + is_sync_completed: true + self_url: https://openapi-generator.tech + is_resyncable: true + is_sync_in_flight: true + is_sync_in_progress: true + stage_str: stage_str + stage_updated_at: 2000-01-23T04:56:07.000+00:00 + stage: 0 + is_cancellable: true + is_downloadable: true + sync_finished_at: 2000-01-23T04:56:07.000+00:00 + is_sync_failed: true + is_moveable: true + is_quarantined: true + status_reason: status_reason + status: 6 status_updated_at: 2000-01-23T04:56:07.000+00:00 properties: is_cancellable: @@ -39415,7 +40386,7 @@ components: tags: description: A list of tags to apply the action to. Not required for clears. items: - maxLength: 64 + maxLength: 255 minLength: 1 type: string nullable: true @@ -40249,6 +41220,7 @@ components: StorageAllocatedLimit: example: configured: configured + used_pre_deduplication: used_pre_deduplication percentage_used: percentage_used plan_limit: plan_limit peak: peak @@ -40279,6 +41251,11 @@ components: minLength: 1 title: Used type: string + used_pre_deduplication: + maxLength: 32 + minLength: 1 + title: Used pre deduplication + type: string type: object UsageLimits: example: @@ -40289,6 +41266,7 @@ components: used: used storage: configured: configured + used_pre_deduplication: used_pre_deduplication percentage_used: percentage_used plan_limit: plan_limit peak: peak @@ -40326,6 +41304,7 @@ components: StorageAllocatedLimitRaw: example: configured: 5 + used_pre_deduplication: 9 percentage_used: percentage_used plan_limit: 2 peak: 5 @@ -40347,6 +41326,9 @@ components: used: title: Used type: integer + used_pre_deduplication: + title: Used pre deduplication + type: integer type: object UsageLimitsRaw: example: @@ -40357,6 +41339,7 @@ components: used: 1 storage: configured: 5 + used_pre_deduplication: 9 percentage_used: percentage_used plan_limit: 2 peak: 5 @@ -40380,6 +41363,7 @@ components: used: used storage: configured: configured + used_pre_deduplication: used_pre_deduplication percentage_used: percentage_used plan_limit: plan_limit peak: peak @@ -40392,6 +41376,7 @@ components: used: 1 storage: configured: 5 + used_pre_deduplication: 9 percentage_used: percentage_used plan_limit: 2 peak: 5 @@ -40416,6 +41401,7 @@ components: used: used storage: configured: configured + used_pre_deduplication: used_pre_deduplication percentage_used: percentage_used plan_limit: plan_limit peak: peak @@ -40428,6 +41414,7 @@ components: used: 1 storage: configured: 5 + used_pre_deduplication: 9 percentage_used: percentage_used plan_limit: 2 peak: 5 @@ -40617,6 +41604,7 @@ components: slug: slug raw_package_index_enabled: true open_source_project_url: https://openapi-generator.tech + is_public_hidden: true namespace_url: https://openapi-generator.tech slug_perm: slug_perm deleted_at: 2000-01-23T04:56:07.000+00:00 @@ -40871,6 +41859,11 @@ components: readOnly: true title: Is public type: boolean + is_public_hidden: + description: "If checked, this repository will be hidden from the list of\ + \ public broadcasts for the workspace." + title: Is Public Hidden? + type: boolean manage_entitlements_privilege: default: Admin description: "This defines the minimum level of privilege required for a\ @@ -41242,6 +42235,7 @@ components: resync_packages: Admin view_statistics: Read open_source_project_url: https://openapi-generator.tech + is_public_hidden: true copy_packages: Read replace_packages: Write user_entitlements_enabled: true @@ -41395,6 +42389,11 @@ components: \ is significantly impacted." title: Index Files? type: boolean + is_public_hidden: + description: "If checked, this repository will be hidden from the list of\ + \ public broadcasts for the workspace." + title: Is Public Hidden? + type: boolean manage_entitlements_privilege: default: Admin description: "This defines the minimum level of privilege required for a\ @@ -41666,6 +42665,7 @@ components: slug: slug raw_package_index_enabled: true open_source_project_url: https://openapi-generator.tech + is_public_hidden: true namespace_url: https://openapi-generator.tech slug_perm: slug_perm deleted_at: 2000-01-23T04:56:07.000+00:00 @@ -41920,6 +42920,11 @@ components: readOnly: true title: Is public type: boolean + is_public_hidden: + description: "If checked, this repository will be hidden from the list of\ + \ public broadcasts for the workspace." + title: Is Public Hidden? + type: boolean manage_entitlements_privilege: default: Admin description: "This defines the minimum level of privilege required for a\ @@ -42290,6 +43295,7 @@ components: resync_packages: Admin view_statistics: Read open_source_project_url: https://openapi-generator.tech + is_public_hidden: true copy_packages: Read replace_packages: Write user_entitlements_enabled: true @@ -42442,6 +43448,11 @@ components: \ is significantly impacted." title: Index Files? type: boolean + is_public_hidden: + description: "If checked, this repository will be hidden from the list of\ + \ public broadcasts for the workspace." + title: Is Public Hidden? + type: boolean manage_entitlements_privilege: default: Admin description: "This defines the minimum level of privilege required for a\ @@ -43099,6 +44110,429 @@ components: required: - rsa_private_key type: object + AlpineUpstream: + example: + upstream_url: https://openapi-generator.tech + auth_secret: auth_secret + can_reindex: true + available: true + created_at: 2000-01-23T04:56:07.000+00:00 + auth_mode: None + 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 + has_failed_signature_verification: true + pending_validation: true + index_status: index_status + is_active: true + disable_reason: N/A + extra_value_1: extra_value_1 + priority: 19750 + slug_perm: slug_perm + extra_value_2: extra_value_2 + index_package_count: 0 + disable_reason_text: disable_reason_text + verify_ssl: true + last_indexed: last_indexed + 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 + available: + description: Whether the upstream is available for use. + readOnly: true + title: Available + type: boolean + can_reindex: + description: Whether the upstream can be reindexed. + readOnly: true + title: Can reindex + type: boolean + 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 + disable_reason_text: + description: Human-readable explanation of why this upstream is disabled + readOnly: true + title: Disable reason text + 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 + has_failed_signature_verification: + description: Whether the upstream has failed signature verification. + readOnly: true + title: Has failed signature verification + type: boolean + index_package_count: + description: The number of packages available in this upstream source + nullable: true + readOnly: true + title: Index package count + type: integer + index_status: + description: The current indexing status of this upstream source + readOnly: true + title: Index status + type: string + is_active: + description: Whether or not this upstream is active and ready for requests. + title: Is active + type: boolean + last_indexed: + description: The last time this upstream source was indexed + readOnly: true + title: Last indexed + type: string + 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 + AlpineUpstreamRequest: + 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 + AlpineUpstreamRequestPatch: + 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 CargoUpstream: example: upstream_url: https://openapi-generator.tech @@ -48998,6 +50432,7 @@ components: can_reindex: true available: true created_at: 2000-01-23T04:56:07.000+00:00 + trust_level: Trusted auth_mode: None extra_header_2: extra_header_2 extra_header_1: extra_header_1 @@ -49164,6 +50599,17 @@ components: readOnly: true title: Slug perm type: string + trust_level: + default: Trusted + description: "Trust level allows for control of the visibility of upstream\ + \ artifacts to native package managers. Where supported by formats, the\ + \ default level (untrusted) is recommended for all upstreams, and helps\ + \ to safeguard against common dependency confusion attack vectors." + enum: + - Trusted + - Untrusted + title: Trust level + type: string updated_at: format: date-time readOnly: true @@ -49193,6 +50639,7 @@ components: is_active: true upstream_url: https://openapi-generator.tech auth_secret: auth_secret + trust_level: Trusted auth_mode: None extra_value_1: extra_value_1 priority: 2624 @@ -49285,6 +50732,17 @@ components: minimum: 1 title: Priority type: integer + trust_level: + default: Trusted + description: "Trust level allows for control of the visibility of upstream\ + \ artifacts to native package managers. Where supported by formats, the\ + \ default level (untrusted) is recommended for all upstreams, and helps\ + \ to safeguard against common dependency confusion attack vectors." + enum: + - Trusted + - Untrusted + title: Trust level + 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. ' @@ -49309,6 +50767,7 @@ components: is_active: true upstream_url: https://openapi-generator.tech auth_secret: auth_secret + trust_level: Trusted auth_mode: None extra_value_1: extra_value_1 priority: 2624 @@ -49401,6 +50860,17 @@ components: minimum: 1 title: Priority type: integer + trust_level: + default: Trusted + description: "Trust level allows for control of the visibility of upstream\ + \ artifacts to native package managers. Where supported by formats, the\ + \ default level (untrusted) is recommended for all upstreams, and helps\ + \ to safeguard against common dependency confusion attack vectors." + enum: + - Trusted + - Untrusted + title: Trust level + 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. ' diff --git a/api_audit_log.go b/api_audit_log.go index 5c28c354..df71ab88 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/api_badges.go b/api_badges.go index b7b23638..5cb6b1bf 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/api_broadcasts.go b/api_broadcasts.go index b8e0e5ca..f611414e 100644 --- a/api_broadcasts.go +++ b/api_broadcasts.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/api_bulk_action.go b/api_bulk_action.go new file mode 100644 index 00000000..3e6e064d --- /dev/null +++ b/api_bulk_action.go @@ -0,0 +1,170 @@ +/* +Cloudsmith API (v1) + +The API to the Cloudsmith Service + +API version: 1.1093.0 +Contact: support@cloudsmith.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cloudsmith + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + +// BulkActionApiService BulkActionApi service +type BulkActionApiService service + +type ApiBulkActionRequest struct { + ctx context.Context + ApiService *BulkActionApiService + owner string + data *PackageBulkAction +} + +func (r ApiBulkActionRequest) Data(data PackageBulkAction) ApiBulkActionRequest { + r.data = &data + return r +} + +func (r ApiBulkActionRequest) Execute() (*PackageBulkActionResponse, *http.Response, error) { + return r.ApiService.BulkActionExecute(r) +} + +/* +BulkAction Method for BulkAction + +Perform bulk operations on multiple packages within a repository or across all accessible repositories. If 'repository' is provided, actions are limited to that repository. If 'repository' is omitted, actions are performed across all repositories the user has access to within the workspace. Returns a list of successfully actioned packages and any packages that failed with error details. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param owner + @return ApiBulkActionRequest +*/ +func (a *BulkActionApiService) BulkAction(ctx context.Context, owner string) ApiBulkActionRequest { + return ApiBulkActionRequest{ + ApiService: a, + ctx: ctx, + owner: owner, + } +} + +// Execute executes the request +// @return PackageBulkActionResponse +func (a *BulkActionApiService) BulkActionExecute(r ApiBulkActionRequest) (*PackageBulkActionResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PackageBulkActionResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BulkActionApiService.BulkAction") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/bulk-action/{owner}/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", url.PathEscape(parameterValueToString(r.owner, "owner")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.data + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["apikey"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-Api-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorDetail + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 422 { + var v ErrorDetail + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/api_distros.go b/api_distros.go index 811ee06a..d3db98de 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/api_entitlements.go b/api_entitlements.go index 653a482f..6787034e 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/api_files.go b/api_files.go index 9e468c94..d8b8ab05 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/api_formats.go b/api_formats.go index 0cde2bfd..5d986d51 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/api_metrics.go b/api_metrics.go index 6239b74a..f3ae786c 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/api_namespaces.go b/api_namespaces.go index a4bf6d1f..ab668cd5 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/api_orgs.go b/api_orgs.go index 9c22e433..5669ebe2 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/api_packages.go b/api_packages.go index 72660fbb..4545b5b6 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ @@ -23,152 +23,6 @@ import ( // PackagesApiService PackagesApi service type PackagesApiService service -type ApiPackagesBulkActionRequest struct { - ctx context.Context - ApiService *PackagesApiService - owner string - data *PackageBulkAction -} - -func (r ApiPackagesBulkActionRequest) Data(data PackageBulkAction) ApiPackagesBulkActionRequest { - r.data = &data - return r -} - -func (r ApiPackagesBulkActionRequest) Execute() (*PackageBulkActionResponse, *http.Response, error) { - return r.ApiService.PackagesBulkActionExecute(r) -} - -/* -PackagesBulkAction Method for PackagesBulkAction - -Perform bulk operations on multiple packages within a repository or across all accessible repositories. If 'repository' is provided, actions are limited to that repository. If 'repository' is omitted, actions are performed across all repositories the user has access to within the workspace. Returns a list of successfully actioned packages and any packages that failed with error details. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param owner - @return ApiPackagesBulkActionRequest -*/ -func (a *PackagesApiService) PackagesBulkAction(ctx context.Context, owner string) ApiPackagesBulkActionRequest { - return ApiPackagesBulkActionRequest{ - ApiService: a, - ctx: ctx, - owner: owner, - } -} - -// Execute executes the request -// @return PackageBulkActionResponse -func (a *PackagesApiService) PackagesBulkActionExecute(r ApiPackagesBulkActionRequest) (*PackageBulkActionResponse, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PackageBulkActionResponse - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PackagesApiService.PackagesBulkAction") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/packages/{owner}/bulk-action/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", url.PathEscape(parameterValueToString(r.owner, "owner")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.data - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["apikey"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-Api-Key"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ErrorDetail - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 422 { - var v ErrorDetail - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - type ApiPackagesCopyRequest struct { ctx context.Context ApiService *PackagesApiService @@ -6558,6 +6412,167 @@ func (a *PackagesApiService) PackagesUploadVagrantExecute(r ApiPackagesUploadVag return localVarReturnValue, localVarHTTPResponse, nil } +type ApiPackagesUploadVsxRequest struct { + ctx context.Context + ApiService *PackagesApiService + owner string + repo string + data *VsxPackageUploadRequest +} + +func (r ApiPackagesUploadVsxRequest) Data(data VsxPackageUploadRequest) ApiPackagesUploadVsxRequest { + r.data = &data + return r +} + +func (r ApiPackagesUploadVsxRequest) Execute() (*VsxPackageUpload, *http.Response, error) { + return r.ApiService.PackagesUploadVsxExecute(r) +} + +/* +PackagesUploadVsx Create a new VSX package + +Create a new VSX package + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param owner + @param repo + @return ApiPackagesUploadVsxRequest +*/ +func (a *PackagesApiService) PackagesUploadVsx(ctx context.Context, owner string, repo string) ApiPackagesUploadVsxRequest { + return ApiPackagesUploadVsxRequest{ + ApiService: a, + ctx: ctx, + owner: owner, + repo: repo, + } +} + +// Execute executes the request +// @return VsxPackageUpload +func (a *PackagesApiService) PackagesUploadVsxExecute(r ApiPackagesUploadVsxRequest) (*VsxPackageUpload, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VsxPackageUpload + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PackagesApiService.PackagesUploadVsx") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/packages/{owner}/{repo}/upload/vsx/" + 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 ApiPackagesValidateUploadAlpineRequest struct { ctx context.Context ApiService *PackagesApiService @@ -10607,3 +10622,153 @@ func (a *PackagesApiService) PackagesValidateUploadVagrantExecute(r ApiPackagesV return localVarHTTPResponse, nil } + +type ApiPackagesValidateUploadVsxRequest struct { + ctx context.Context + ApiService *PackagesApiService + owner string + repo string + data *VsxPackageUploadRequest +} + +func (r ApiPackagesValidateUploadVsxRequest) Data(data VsxPackageUploadRequest) ApiPackagesValidateUploadVsxRequest { + r.data = &data + return r +} + +func (r ApiPackagesValidateUploadVsxRequest) Execute() (*http.Response, error) { + return r.ApiService.PackagesValidateUploadVsxExecute(r) +} + +/* +PackagesValidateUploadVsx Validate parameters for create VSX package + +Validate parameters for create VSX package + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param owner + @param repo + @return ApiPackagesValidateUploadVsxRequest +*/ +func (a *PackagesApiService) PackagesValidateUploadVsx(ctx context.Context, owner string, repo string) ApiPackagesValidateUploadVsxRequest { + return ApiPackagesValidateUploadVsxRequest{ + ApiService: a, + ctx: ctx, + owner: owner, + repo: repo, + } +} + +// Execute executes the request +func (a *PackagesApiService) PackagesValidateUploadVsxExecute(r ApiPackagesValidateUploadVsxRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PackagesApiService.PackagesValidateUploadVsx") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/packages/{owner}/{repo}/validate-upload/vsx/" + 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 +} diff --git a/api_quota.go b/api_quota.go index 5d1309ec..2edd23f4 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/api_rates.go b/api_rates.go index 6857f8c0..7db7a3f6 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/api_repos.go b/api_repos.go index 37ab5bb6..7f319aed 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ @@ -4310,6 +4310,907 @@ func (a *ReposApiService) ReposTransferRegionExecute(r ApiReposTransferRegionReq return localVarHTTPResponse, nil } +type ApiReposUpstreamAlpineCreateRequest struct { + ctx context.Context + ApiService *ReposApiService + owner string + identifier string + data *AlpineUpstreamRequest +} + +func (r ApiReposUpstreamAlpineCreateRequest) Data(data AlpineUpstreamRequest) ApiReposUpstreamAlpineCreateRequest { + r.data = &data + return r +} + +func (r ApiReposUpstreamAlpineCreateRequest) Execute() (*AlpineUpstream, *http.Response, error) { + return r.ApiService.ReposUpstreamAlpineCreateExecute(r) +} + +/* +ReposUpstreamAlpineCreate Create an Alpine upstream config for this repository. + +Create an Alpine 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 ApiReposUpstreamAlpineCreateRequest +*/ +func (a *ReposApiService) ReposUpstreamAlpineCreate(ctx context.Context, owner string, identifier string) ApiReposUpstreamAlpineCreateRequest { + return ApiReposUpstreamAlpineCreateRequest{ + ApiService: a, + ctx: ctx, + owner: owner, + identifier: identifier, + } +} + +// Execute executes the request +// @return AlpineUpstream +func (a *ReposApiService) ReposUpstreamAlpineCreateExecute(r ApiReposUpstreamAlpineCreateRequest) (*AlpineUpstream, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlpineUpstream + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamAlpineCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/alpine/" + 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 ApiReposUpstreamAlpineDeleteRequest struct { + ctx context.Context + ApiService *ReposApiService + owner string + identifier string + slugPerm string +} + +func (r ApiReposUpstreamAlpineDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.ReposUpstreamAlpineDeleteExecute(r) +} + +/* +ReposUpstreamAlpineDelete Delete an Alpine upstream config for this repository. + +Delete an Alpine 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 ApiReposUpstreamAlpineDeleteRequest +*/ +func (a *ReposApiService) ReposUpstreamAlpineDelete(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamAlpineDeleteRequest { + return ApiReposUpstreamAlpineDeleteRequest{ + ApiService: a, + ctx: ctx, + owner: owner, + identifier: identifier, + slugPerm: slugPerm, + } +} + +// Execute executes the request +func (a *ReposApiService) ReposUpstreamAlpineDeleteExecute(r ApiReposUpstreamAlpineDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamAlpineDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/alpine/{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 ApiReposUpstreamAlpineListRequest struct { + ctx context.Context + ApiService *ReposApiService + owner string + identifier string + page *int64 + pageSize *int64 +} + +// A page number within the paginated result set. +func (r ApiReposUpstreamAlpineListRequest) Page(page int64) ApiReposUpstreamAlpineListRequest { + r.page = &page + return r +} + +// Number of results to return per page. +func (r ApiReposUpstreamAlpineListRequest) PageSize(pageSize int64) ApiReposUpstreamAlpineListRequest { + r.pageSize = &pageSize + return r +} + +func (r ApiReposUpstreamAlpineListRequest) Execute() ([]AlpineUpstream, *http.Response, error) { + return r.ApiService.ReposUpstreamAlpineListExecute(r) +} + +/* +ReposUpstreamAlpineList List Alpine upstream configs for this repository. + +List Alpine 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 ApiReposUpstreamAlpineListRequest +*/ +func (a *ReposApiService) ReposUpstreamAlpineList(ctx context.Context, owner string, identifier string) ApiReposUpstreamAlpineListRequest { + return ApiReposUpstreamAlpineListRequest{ + ApiService: a, + ctx: ctx, + owner: owner, + identifier: identifier, + } +} + +// Execute executes the request +// @return []AlpineUpstream +func (a *ReposApiService) ReposUpstreamAlpineListExecute(r ApiReposUpstreamAlpineListRequest) ([]AlpineUpstream, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []AlpineUpstream + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamAlpineList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/alpine/" + 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 ApiReposUpstreamAlpinePartialUpdateRequest struct { + ctx context.Context + ApiService *ReposApiService + owner string + identifier string + slugPerm string + data *AlpineUpstreamRequestPatch +} + +func (r ApiReposUpstreamAlpinePartialUpdateRequest) Data(data AlpineUpstreamRequestPatch) ApiReposUpstreamAlpinePartialUpdateRequest { + r.data = &data + return r +} + +func (r ApiReposUpstreamAlpinePartialUpdateRequest) Execute() (*AlpineUpstream, *http.Response, error) { + return r.ApiService.ReposUpstreamAlpinePartialUpdateExecute(r) +} + +/* +ReposUpstreamAlpinePartialUpdate Partially update an Alpine upstream config for this repository. + +Partially update an Alpine 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 ApiReposUpstreamAlpinePartialUpdateRequest +*/ +func (a *ReposApiService) ReposUpstreamAlpinePartialUpdate(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamAlpinePartialUpdateRequest { + return ApiReposUpstreamAlpinePartialUpdateRequest{ + ApiService: a, + ctx: ctx, + owner: owner, + identifier: identifier, + slugPerm: slugPerm, + } +} + +// Execute executes the request +// @return AlpineUpstream +func (a *ReposApiService) ReposUpstreamAlpinePartialUpdateExecute(r ApiReposUpstreamAlpinePartialUpdateRequest) (*AlpineUpstream, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlpineUpstream + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamAlpinePartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/alpine/{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 ApiReposUpstreamAlpineReadRequest struct { + ctx context.Context + ApiService *ReposApiService + owner string + identifier string + slugPerm string +} + +func (r ApiReposUpstreamAlpineReadRequest) Execute() (*AlpineUpstream, *http.Response, error) { + return r.ApiService.ReposUpstreamAlpineReadExecute(r) +} + +/* +ReposUpstreamAlpineRead Retrieve an Alpine upstream config for this repository. + +Retrieve an Alpine 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 ApiReposUpstreamAlpineReadRequest +*/ +func (a *ReposApiService) ReposUpstreamAlpineRead(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamAlpineReadRequest { + return ApiReposUpstreamAlpineReadRequest{ + ApiService: a, + ctx: ctx, + owner: owner, + identifier: identifier, + slugPerm: slugPerm, + } +} + +// Execute executes the request +// @return AlpineUpstream +func (a *ReposApiService) ReposUpstreamAlpineReadExecute(r ApiReposUpstreamAlpineReadRequest) (*AlpineUpstream, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlpineUpstream + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamAlpineRead") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/alpine/{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 ApiReposUpstreamAlpineUpdateRequest struct { + ctx context.Context + ApiService *ReposApiService + owner string + identifier string + slugPerm string + data *AlpineUpstreamRequest +} + +func (r ApiReposUpstreamAlpineUpdateRequest) Data(data AlpineUpstreamRequest) ApiReposUpstreamAlpineUpdateRequest { + r.data = &data + return r +} + +func (r ApiReposUpstreamAlpineUpdateRequest) Execute() (*AlpineUpstream, *http.Response, error) { + return r.ApiService.ReposUpstreamAlpineUpdateExecute(r) +} + +/* +ReposUpstreamAlpineUpdate Update an Alpine upstream config for this repository. + +Update an Alpine 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 ApiReposUpstreamAlpineUpdateRequest +*/ +func (a *ReposApiService) ReposUpstreamAlpineUpdate(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposUpstreamAlpineUpdateRequest { + return ApiReposUpstreamAlpineUpdateRequest{ + ApiService: a, + ctx: ctx, + owner: owner, + identifier: identifier, + slugPerm: slugPerm, + } +} + +// Execute executes the request +// @return AlpineUpstream +func (a *ReposApiService) ReposUpstreamAlpineUpdateExecute(r ApiReposUpstreamAlpineUpdateRequest) (*AlpineUpstream, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlpineUpstream + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposUpstreamAlpineUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/repos/{owner}/{identifier}/upstream/alpine/{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 ApiReposUpstreamCargoCreateRequest struct { ctx context.Context ApiService *ReposApiService diff --git a/api_status.go b/api_status.go index b7e6ff4a..3cf302c7 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/api_storage_regions.go b/api_storage_regions.go index dcae3665..4543e0b6 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/api_user.go b/api_user.go index 695775c1..5673cabd 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/api_users.go b/api_users.go index ce3ba900..898a9c8c 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/api_vulnerabilities.go b/api_vulnerabilities.go index e62eb0b6..3b94854e 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/api_webhooks.go b/api_webhooks.go index 521d1a9a..d0ec853b 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/bin/generate b/bin/generate index 5be1f3c0..c36bcb98 100755 --- a/bin/generate +++ b/bin/generate @@ -2,7 +2,7 @@ set -eou pipefail -PKG_VERSION=${1:-"0.0.53"} +PKG_VERSION=${1:-"0.0.54"} API_HOST=${2:-"https://api.cloudsmith.io"} diff --git a/client.go b/client.go index 13f9eb9a..c1af5569 100644 --- a/client.go +++ b/client.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ @@ -41,7 +41,7 @@ var ( queryDescape = strings.NewReplacer("%5B", "[", "%5D", "]") ) -// APIClient manages communication with the Cloudsmith API (v1) API v1.999.3 +// APIClient manages communication with the Cloudsmith API (v1) API v1.1093.0 // In most cases there should be only one, shared, APIClient. type APIClient struct { cfg *Configuration @@ -55,6 +55,8 @@ type APIClient struct { BroadcastsApi *BroadcastsApiService + BulkActionApi *BulkActionApiService + DistrosApi *DistrosApiService EntitlementsApi *EntitlementsApiService @@ -109,6 +111,7 @@ func NewAPIClient(cfg *Configuration) *APIClient { c.AuditLogApi = (*AuditLogApiService)(&c.common) c.BadgesApi = (*BadgesApiService)(&c.common) c.BroadcastsApi = (*BroadcastsApiService)(&c.common) + c.BulkActionApi = (*BulkActionApiService)(&c.common) c.DistrosApi = (*DistrosApiService)(&c.common) c.EntitlementsApi = (*EntitlementsApiService)(&c.common) c.FilesApi = (*FilesApiService)(&c.common) diff --git a/configuration.go b/configuration.go index 50097298..35102dd8 100644 --- a/configuration.go +++ b/configuration.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ @@ -93,7 +93,7 @@ type Configuration struct { func NewConfiguration() *Configuration { cfg := &Configuration{ DefaultHeader: make(map[string]string), - UserAgent: "OpenAPI-Generator/0.0.53/go", + UserAgent: "OpenAPI-Generator/0.0.54/go", Debug: false, Servers: ServerConfigurations{ { diff --git a/docs/AlpineUpstream.md b/docs/AlpineUpstream.md new file mode 100644 index 00000000..9b8296f0 --- /dev/null +++ b/docs/AlpineUpstream.md @@ -0,0 +1,740 @@ +# AlpineUpstream + +## 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] +**Available** | Pointer to **bool** | Whether the upstream is available for use. | [optional] [readonly] +**CanReindex** | Pointer to **bool** | Whether the upstream can be reindexed. | [optional] [readonly] +**CreatedAt** | Pointer to **time.Time** | The datetime the upstream source was created. | [optional] [readonly] +**DisableReason** | Pointer to **string** | | [optional] [readonly] [default to "N/A"] +**DisableReasonText** | Pointer to **string** | Human-readable explanation of why this upstream is disabled | [optional] [readonly] +**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] +**HasFailedSignatureVerification** | Pointer to **bool** | Whether the upstream has failed signature verification. | [optional] [readonly] +**IndexPackageCount** | Pointer to **NullableInt64** | The number of packages available in this upstream source | [optional] [readonly] +**IndexStatus** | Pointer to **string** | The current indexing status of this upstream source | [optional] [readonly] +**IsActive** | Pointer to **bool** | Whether or not this upstream is active and ready for requests. | [optional] +**LastIndexed** | Pointer to **string** | The last time this upstream source was indexed | [optional] [readonly] +**Mode** | Pointer to **string** | The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. | [optional] [default to "Proxy Only"] +**Name** | **string** | A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. | +**PendingValidation** | Pointer to **bool** | When true, this upstream source is pending validation. | [optional] [readonly] +**Priority** | Pointer to **int64** | Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. | [optional] +**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 + +### NewAlpineUpstream + +`func NewAlpineUpstream(name string, upstreamUrl string, ) *AlpineUpstream` + +NewAlpineUpstream instantiates a new AlpineUpstream 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 + +### NewAlpineUpstreamWithDefaults + +`func NewAlpineUpstreamWithDefaults() *AlpineUpstream` + +NewAlpineUpstreamWithDefaults instantiates a new AlpineUpstream 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 *AlpineUpstream) GetAuthMode() string` + +GetAuthMode returns the AuthMode field if non-nil, zero value otherwise. + +### GetAuthModeOk + +`func (o *AlpineUpstream) 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 *AlpineUpstream) SetAuthMode(v string)` + +SetAuthMode sets AuthMode field to given value. + +### HasAuthMode + +`func (o *AlpineUpstream) HasAuthMode() bool` + +HasAuthMode returns a boolean if a field has been set. + +### GetAuthSecret + +`func (o *AlpineUpstream) GetAuthSecret() string` + +GetAuthSecret returns the AuthSecret field if non-nil, zero value otherwise. + +### GetAuthSecretOk + +`func (o *AlpineUpstream) 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 *AlpineUpstream) SetAuthSecret(v string)` + +SetAuthSecret sets AuthSecret field to given value. + +### HasAuthSecret + +`func (o *AlpineUpstream) HasAuthSecret() bool` + +HasAuthSecret returns a boolean if a field has been set. + +### SetAuthSecretNil + +`func (o *AlpineUpstream) SetAuthSecretNil(b bool)` + + SetAuthSecretNil sets the value for AuthSecret to be an explicit nil + +### UnsetAuthSecret +`func (o *AlpineUpstream) UnsetAuthSecret()` + +UnsetAuthSecret ensures that no value is present for AuthSecret, not even an explicit nil +### GetAuthUsername + +`func (o *AlpineUpstream) GetAuthUsername() string` + +GetAuthUsername returns the AuthUsername field if non-nil, zero value otherwise. + +### GetAuthUsernameOk + +`func (o *AlpineUpstream) 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 *AlpineUpstream) SetAuthUsername(v string)` + +SetAuthUsername sets AuthUsername field to given value. + +### HasAuthUsername + +`func (o *AlpineUpstream) HasAuthUsername() bool` + +HasAuthUsername returns a boolean if a field has been set. + +### SetAuthUsernameNil + +`func (o *AlpineUpstream) SetAuthUsernameNil(b bool)` + + SetAuthUsernameNil sets the value for AuthUsername to be an explicit nil + +### UnsetAuthUsername +`func (o *AlpineUpstream) UnsetAuthUsername()` + +UnsetAuthUsername ensures that no value is present for AuthUsername, not even an explicit nil +### GetAvailable + +`func (o *AlpineUpstream) GetAvailable() bool` + +GetAvailable returns the Available field if non-nil, zero value otherwise. + +### GetAvailableOk + +`func (o *AlpineUpstream) GetAvailableOk() (*bool, bool)` + +GetAvailableOk returns a tuple with the Available field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAvailable + +`func (o *AlpineUpstream) SetAvailable(v bool)` + +SetAvailable sets Available field to given value. + +### HasAvailable + +`func (o *AlpineUpstream) HasAvailable() bool` + +HasAvailable returns a boolean if a field has been set. + +### GetCanReindex + +`func (o *AlpineUpstream) GetCanReindex() bool` + +GetCanReindex returns the CanReindex field if non-nil, zero value otherwise. + +### GetCanReindexOk + +`func (o *AlpineUpstream) GetCanReindexOk() (*bool, bool)` + +GetCanReindexOk returns a tuple with the CanReindex field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCanReindex + +`func (o *AlpineUpstream) SetCanReindex(v bool)` + +SetCanReindex sets CanReindex field to given value. + +### HasCanReindex + +`func (o *AlpineUpstream) HasCanReindex() bool` + +HasCanReindex returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *AlpineUpstream) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *AlpineUpstream) 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 *AlpineUpstream) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *AlpineUpstream) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetDisableReason + +`func (o *AlpineUpstream) GetDisableReason() string` + +GetDisableReason returns the DisableReason field if non-nil, zero value otherwise. + +### GetDisableReasonOk + +`func (o *AlpineUpstream) 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 *AlpineUpstream) SetDisableReason(v string)` + +SetDisableReason sets DisableReason field to given value. + +### HasDisableReason + +`func (o *AlpineUpstream) HasDisableReason() bool` + +HasDisableReason returns a boolean if a field has been set. + +### GetDisableReasonText + +`func (o *AlpineUpstream) GetDisableReasonText() string` + +GetDisableReasonText returns the DisableReasonText field if non-nil, zero value otherwise. + +### GetDisableReasonTextOk + +`func (o *AlpineUpstream) GetDisableReasonTextOk() (*string, bool)` + +GetDisableReasonTextOk returns a tuple with the DisableReasonText field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisableReasonText + +`func (o *AlpineUpstream) SetDisableReasonText(v string)` + +SetDisableReasonText sets DisableReasonText field to given value. + +### HasDisableReasonText + +`func (o *AlpineUpstream) HasDisableReasonText() bool` + +HasDisableReasonText returns a boolean if a field has been set. + +### GetExtraHeader1 + +`func (o *AlpineUpstream) GetExtraHeader1() string` + +GetExtraHeader1 returns the ExtraHeader1 field if non-nil, zero value otherwise. + +### GetExtraHeader1Ok + +`func (o *AlpineUpstream) 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 *AlpineUpstream) SetExtraHeader1(v string)` + +SetExtraHeader1 sets ExtraHeader1 field to given value. + +### HasExtraHeader1 + +`func (o *AlpineUpstream) HasExtraHeader1() bool` + +HasExtraHeader1 returns a boolean if a field has been set. + +### SetExtraHeader1Nil + +`func (o *AlpineUpstream) SetExtraHeader1Nil(b bool)` + + SetExtraHeader1Nil sets the value for ExtraHeader1 to be an explicit nil + +### UnsetExtraHeader1 +`func (o *AlpineUpstream) UnsetExtraHeader1()` + +UnsetExtraHeader1 ensures that no value is present for ExtraHeader1, not even an explicit nil +### GetExtraHeader2 + +`func (o *AlpineUpstream) GetExtraHeader2() string` + +GetExtraHeader2 returns the ExtraHeader2 field if non-nil, zero value otherwise. + +### GetExtraHeader2Ok + +`func (o *AlpineUpstream) 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 *AlpineUpstream) SetExtraHeader2(v string)` + +SetExtraHeader2 sets ExtraHeader2 field to given value. + +### HasExtraHeader2 + +`func (o *AlpineUpstream) HasExtraHeader2() bool` + +HasExtraHeader2 returns a boolean if a field has been set. + +### SetExtraHeader2Nil + +`func (o *AlpineUpstream) SetExtraHeader2Nil(b bool)` + + SetExtraHeader2Nil sets the value for ExtraHeader2 to be an explicit nil + +### UnsetExtraHeader2 +`func (o *AlpineUpstream) UnsetExtraHeader2()` + +UnsetExtraHeader2 ensures that no value is present for ExtraHeader2, not even an explicit nil +### GetExtraValue1 + +`func (o *AlpineUpstream) GetExtraValue1() string` + +GetExtraValue1 returns the ExtraValue1 field if non-nil, zero value otherwise. + +### GetExtraValue1Ok + +`func (o *AlpineUpstream) 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 *AlpineUpstream) SetExtraValue1(v string)` + +SetExtraValue1 sets ExtraValue1 field to given value. + +### HasExtraValue1 + +`func (o *AlpineUpstream) HasExtraValue1() bool` + +HasExtraValue1 returns a boolean if a field has been set. + +### SetExtraValue1Nil + +`func (o *AlpineUpstream) SetExtraValue1Nil(b bool)` + + SetExtraValue1Nil sets the value for ExtraValue1 to be an explicit nil + +### UnsetExtraValue1 +`func (o *AlpineUpstream) UnsetExtraValue1()` + +UnsetExtraValue1 ensures that no value is present for ExtraValue1, not even an explicit nil +### GetExtraValue2 + +`func (o *AlpineUpstream) GetExtraValue2() string` + +GetExtraValue2 returns the ExtraValue2 field if non-nil, zero value otherwise. + +### GetExtraValue2Ok + +`func (o *AlpineUpstream) 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 *AlpineUpstream) SetExtraValue2(v string)` + +SetExtraValue2 sets ExtraValue2 field to given value. + +### HasExtraValue2 + +`func (o *AlpineUpstream) HasExtraValue2() bool` + +HasExtraValue2 returns a boolean if a field has been set. + +### SetExtraValue2Nil + +`func (o *AlpineUpstream) SetExtraValue2Nil(b bool)` + + SetExtraValue2Nil sets the value for ExtraValue2 to be an explicit nil + +### UnsetExtraValue2 +`func (o *AlpineUpstream) UnsetExtraValue2()` + +UnsetExtraValue2 ensures that no value is present for ExtraValue2, not even an explicit nil +### GetHasFailedSignatureVerification + +`func (o *AlpineUpstream) GetHasFailedSignatureVerification() bool` + +GetHasFailedSignatureVerification returns the HasFailedSignatureVerification field if non-nil, zero value otherwise. + +### GetHasFailedSignatureVerificationOk + +`func (o *AlpineUpstream) GetHasFailedSignatureVerificationOk() (*bool, bool)` + +GetHasFailedSignatureVerificationOk returns a tuple with the HasFailedSignatureVerification field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHasFailedSignatureVerification + +`func (o *AlpineUpstream) SetHasFailedSignatureVerification(v bool)` + +SetHasFailedSignatureVerification sets HasFailedSignatureVerification field to given value. + +### HasHasFailedSignatureVerification + +`func (o *AlpineUpstream) HasHasFailedSignatureVerification() bool` + +HasHasFailedSignatureVerification returns a boolean if a field has been set. + +### GetIndexPackageCount + +`func (o *AlpineUpstream) GetIndexPackageCount() int64` + +GetIndexPackageCount returns the IndexPackageCount field if non-nil, zero value otherwise. + +### GetIndexPackageCountOk + +`func (o *AlpineUpstream) GetIndexPackageCountOk() (*int64, bool)` + +GetIndexPackageCountOk returns a tuple with the IndexPackageCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIndexPackageCount + +`func (o *AlpineUpstream) SetIndexPackageCount(v int64)` + +SetIndexPackageCount sets IndexPackageCount field to given value. + +### HasIndexPackageCount + +`func (o *AlpineUpstream) HasIndexPackageCount() bool` + +HasIndexPackageCount returns a boolean if a field has been set. + +### SetIndexPackageCountNil + +`func (o *AlpineUpstream) SetIndexPackageCountNil(b bool)` + + SetIndexPackageCountNil sets the value for IndexPackageCount to be an explicit nil + +### UnsetIndexPackageCount +`func (o *AlpineUpstream) UnsetIndexPackageCount()` + +UnsetIndexPackageCount ensures that no value is present for IndexPackageCount, not even an explicit nil +### GetIndexStatus + +`func (o *AlpineUpstream) GetIndexStatus() string` + +GetIndexStatus returns the IndexStatus field if non-nil, zero value otherwise. + +### GetIndexStatusOk + +`func (o *AlpineUpstream) GetIndexStatusOk() (*string, bool)` + +GetIndexStatusOk returns a tuple with the IndexStatus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIndexStatus + +`func (o *AlpineUpstream) SetIndexStatus(v string)` + +SetIndexStatus sets IndexStatus field to given value. + +### HasIndexStatus + +`func (o *AlpineUpstream) HasIndexStatus() bool` + +HasIndexStatus returns a boolean if a field has been set. + +### GetIsActive + +`func (o *AlpineUpstream) GetIsActive() bool` + +GetIsActive returns the IsActive field if non-nil, zero value otherwise. + +### GetIsActiveOk + +`func (o *AlpineUpstream) 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 *AlpineUpstream) SetIsActive(v bool)` + +SetIsActive sets IsActive field to given value. + +### HasIsActive + +`func (o *AlpineUpstream) HasIsActive() bool` + +HasIsActive returns a boolean if a field has been set. + +### GetLastIndexed + +`func (o *AlpineUpstream) GetLastIndexed() string` + +GetLastIndexed returns the LastIndexed field if non-nil, zero value otherwise. + +### GetLastIndexedOk + +`func (o *AlpineUpstream) GetLastIndexedOk() (*string, bool)` + +GetLastIndexedOk returns a tuple with the LastIndexed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastIndexed + +`func (o *AlpineUpstream) SetLastIndexed(v string)` + +SetLastIndexed sets LastIndexed field to given value. + +### HasLastIndexed + +`func (o *AlpineUpstream) HasLastIndexed() bool` + +HasLastIndexed returns a boolean if a field has been set. + +### GetMode + +`func (o *AlpineUpstream) GetMode() string` + +GetMode returns the Mode field if non-nil, zero value otherwise. + +### GetModeOk + +`func (o *AlpineUpstream) 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 *AlpineUpstream) SetMode(v string)` + +SetMode sets Mode field to given value. + +### HasMode + +`func (o *AlpineUpstream) HasMode() bool` + +HasMode returns a boolean if a field has been set. + +### GetName + +`func (o *AlpineUpstream) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *AlpineUpstream) 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 *AlpineUpstream) SetName(v string)` + +SetName sets Name field to given value. + + +### GetPendingValidation + +`func (o *AlpineUpstream) GetPendingValidation() bool` + +GetPendingValidation returns the PendingValidation field if non-nil, zero value otherwise. + +### GetPendingValidationOk + +`func (o *AlpineUpstream) 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 *AlpineUpstream) SetPendingValidation(v bool)` + +SetPendingValidation sets PendingValidation field to given value. + +### HasPendingValidation + +`func (o *AlpineUpstream) HasPendingValidation() bool` + +HasPendingValidation returns a boolean if a field has been set. + +### GetPriority + +`func (o *AlpineUpstream) GetPriority() int64` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *AlpineUpstream) 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 *AlpineUpstream) SetPriority(v int64)` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *AlpineUpstream) HasPriority() bool` + +HasPriority returns a boolean if a field has been set. + +### GetSlugPerm + +`func (o *AlpineUpstream) GetSlugPerm() string` + +GetSlugPerm returns the SlugPerm field if non-nil, zero value otherwise. + +### GetSlugPermOk + +`func (o *AlpineUpstream) 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 *AlpineUpstream) SetSlugPerm(v string)` + +SetSlugPerm sets SlugPerm field to given value. + +### HasSlugPerm + +`func (o *AlpineUpstream) HasSlugPerm() bool` + +HasSlugPerm returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *AlpineUpstream) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *AlpineUpstream) 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 *AlpineUpstream) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *AlpineUpstream) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + +### GetUpstreamUrl + +`func (o *AlpineUpstream) GetUpstreamUrl() string` + +GetUpstreamUrl returns the UpstreamUrl field if non-nil, zero value otherwise. + +### GetUpstreamUrlOk + +`func (o *AlpineUpstream) 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 *AlpineUpstream) SetUpstreamUrl(v string)` + +SetUpstreamUrl sets UpstreamUrl field to given value. + + +### GetVerifySsl + +`func (o *AlpineUpstream) GetVerifySsl() bool` + +GetVerifySsl returns the VerifySsl field if non-nil, zero value otherwise. + +### GetVerifySslOk + +`func (o *AlpineUpstream) 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 *AlpineUpstream) SetVerifySsl(v bool)` + +SetVerifySsl sets VerifySsl field to given value. + +### HasVerifySsl + +`func (o *AlpineUpstream) 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/AlpineUpstreamRequest.md b/docs/AlpineUpstreamRequest.md new file mode 100644 index 00000000..05b91ea1 --- /dev/null +++ b/docs/AlpineUpstreamRequest.md @@ -0,0 +1,418 @@ +# AlpineUpstreamRequest + +## 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 + +### NewAlpineUpstreamRequest + +`func NewAlpineUpstreamRequest(name string, upstreamUrl string, ) *AlpineUpstreamRequest` + +NewAlpineUpstreamRequest instantiates a new AlpineUpstreamRequest 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 + +### NewAlpineUpstreamRequestWithDefaults + +`func NewAlpineUpstreamRequestWithDefaults() *AlpineUpstreamRequest` + +NewAlpineUpstreamRequestWithDefaults instantiates a new AlpineUpstreamRequest 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 *AlpineUpstreamRequest) GetAuthMode() string` + +GetAuthMode returns the AuthMode field if non-nil, zero value otherwise. + +### GetAuthModeOk + +`func (o *AlpineUpstreamRequest) 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 *AlpineUpstreamRequest) SetAuthMode(v string)` + +SetAuthMode sets AuthMode field to given value. + +### HasAuthMode + +`func (o *AlpineUpstreamRequest) HasAuthMode() bool` + +HasAuthMode returns a boolean if a field has been set. + +### GetAuthSecret + +`func (o *AlpineUpstreamRequest) GetAuthSecret() string` + +GetAuthSecret returns the AuthSecret field if non-nil, zero value otherwise. + +### GetAuthSecretOk + +`func (o *AlpineUpstreamRequest) 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 *AlpineUpstreamRequest) SetAuthSecret(v string)` + +SetAuthSecret sets AuthSecret field to given value. + +### HasAuthSecret + +`func (o *AlpineUpstreamRequest) HasAuthSecret() bool` + +HasAuthSecret returns a boolean if a field has been set. + +### SetAuthSecretNil + +`func (o *AlpineUpstreamRequest) SetAuthSecretNil(b bool)` + + SetAuthSecretNil sets the value for AuthSecret to be an explicit nil + +### UnsetAuthSecret +`func (o *AlpineUpstreamRequest) UnsetAuthSecret()` + +UnsetAuthSecret ensures that no value is present for AuthSecret, not even an explicit nil +### GetAuthUsername + +`func (o *AlpineUpstreamRequest) GetAuthUsername() string` + +GetAuthUsername returns the AuthUsername field if non-nil, zero value otherwise. + +### GetAuthUsernameOk + +`func (o *AlpineUpstreamRequest) 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 *AlpineUpstreamRequest) SetAuthUsername(v string)` + +SetAuthUsername sets AuthUsername field to given value. + +### HasAuthUsername + +`func (o *AlpineUpstreamRequest) HasAuthUsername() bool` + +HasAuthUsername returns a boolean if a field has been set. + +### SetAuthUsernameNil + +`func (o *AlpineUpstreamRequest) SetAuthUsernameNil(b bool)` + + SetAuthUsernameNil sets the value for AuthUsername to be an explicit nil + +### UnsetAuthUsername +`func (o *AlpineUpstreamRequest) UnsetAuthUsername()` + +UnsetAuthUsername ensures that no value is present for AuthUsername, not even an explicit nil +### GetExtraHeader1 + +`func (o *AlpineUpstreamRequest) GetExtraHeader1() string` + +GetExtraHeader1 returns the ExtraHeader1 field if non-nil, zero value otherwise. + +### GetExtraHeader1Ok + +`func (o *AlpineUpstreamRequest) 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 *AlpineUpstreamRequest) SetExtraHeader1(v string)` + +SetExtraHeader1 sets ExtraHeader1 field to given value. + +### HasExtraHeader1 + +`func (o *AlpineUpstreamRequest) HasExtraHeader1() bool` + +HasExtraHeader1 returns a boolean if a field has been set. + +### SetExtraHeader1Nil + +`func (o *AlpineUpstreamRequest) SetExtraHeader1Nil(b bool)` + + SetExtraHeader1Nil sets the value for ExtraHeader1 to be an explicit nil + +### UnsetExtraHeader1 +`func (o *AlpineUpstreamRequest) UnsetExtraHeader1()` + +UnsetExtraHeader1 ensures that no value is present for ExtraHeader1, not even an explicit nil +### GetExtraHeader2 + +`func (o *AlpineUpstreamRequest) GetExtraHeader2() string` + +GetExtraHeader2 returns the ExtraHeader2 field if non-nil, zero value otherwise. + +### GetExtraHeader2Ok + +`func (o *AlpineUpstreamRequest) 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 *AlpineUpstreamRequest) SetExtraHeader2(v string)` + +SetExtraHeader2 sets ExtraHeader2 field to given value. + +### HasExtraHeader2 + +`func (o *AlpineUpstreamRequest) HasExtraHeader2() bool` + +HasExtraHeader2 returns a boolean if a field has been set. + +### SetExtraHeader2Nil + +`func (o *AlpineUpstreamRequest) SetExtraHeader2Nil(b bool)` + + SetExtraHeader2Nil sets the value for ExtraHeader2 to be an explicit nil + +### UnsetExtraHeader2 +`func (o *AlpineUpstreamRequest) UnsetExtraHeader2()` + +UnsetExtraHeader2 ensures that no value is present for ExtraHeader2, not even an explicit nil +### GetExtraValue1 + +`func (o *AlpineUpstreamRequest) GetExtraValue1() string` + +GetExtraValue1 returns the ExtraValue1 field if non-nil, zero value otherwise. + +### GetExtraValue1Ok + +`func (o *AlpineUpstreamRequest) 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 *AlpineUpstreamRequest) SetExtraValue1(v string)` + +SetExtraValue1 sets ExtraValue1 field to given value. + +### HasExtraValue1 + +`func (o *AlpineUpstreamRequest) HasExtraValue1() bool` + +HasExtraValue1 returns a boolean if a field has been set. + +### SetExtraValue1Nil + +`func (o *AlpineUpstreamRequest) SetExtraValue1Nil(b bool)` + + SetExtraValue1Nil sets the value for ExtraValue1 to be an explicit nil + +### UnsetExtraValue1 +`func (o *AlpineUpstreamRequest) UnsetExtraValue1()` + +UnsetExtraValue1 ensures that no value is present for ExtraValue1, not even an explicit nil +### GetExtraValue2 + +`func (o *AlpineUpstreamRequest) GetExtraValue2() string` + +GetExtraValue2 returns the ExtraValue2 field if non-nil, zero value otherwise. + +### GetExtraValue2Ok + +`func (o *AlpineUpstreamRequest) 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 *AlpineUpstreamRequest) SetExtraValue2(v string)` + +SetExtraValue2 sets ExtraValue2 field to given value. + +### HasExtraValue2 + +`func (o *AlpineUpstreamRequest) HasExtraValue2() bool` + +HasExtraValue2 returns a boolean if a field has been set. + +### SetExtraValue2Nil + +`func (o *AlpineUpstreamRequest) SetExtraValue2Nil(b bool)` + + SetExtraValue2Nil sets the value for ExtraValue2 to be an explicit nil + +### UnsetExtraValue2 +`func (o *AlpineUpstreamRequest) UnsetExtraValue2()` + +UnsetExtraValue2 ensures that no value is present for ExtraValue2, not even an explicit nil +### GetIsActive + +`func (o *AlpineUpstreamRequest) GetIsActive() bool` + +GetIsActive returns the IsActive field if non-nil, zero value otherwise. + +### GetIsActiveOk + +`func (o *AlpineUpstreamRequest) 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 *AlpineUpstreamRequest) SetIsActive(v bool)` + +SetIsActive sets IsActive field to given value. + +### HasIsActive + +`func (o *AlpineUpstreamRequest) HasIsActive() bool` + +HasIsActive returns a boolean if a field has been set. + +### GetMode + +`func (o *AlpineUpstreamRequest) GetMode() string` + +GetMode returns the Mode field if non-nil, zero value otherwise. + +### GetModeOk + +`func (o *AlpineUpstreamRequest) 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 *AlpineUpstreamRequest) SetMode(v string)` + +SetMode sets Mode field to given value. + +### HasMode + +`func (o *AlpineUpstreamRequest) HasMode() bool` + +HasMode returns a boolean if a field has been set. + +### GetName + +`func (o *AlpineUpstreamRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *AlpineUpstreamRequest) 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 *AlpineUpstreamRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetPriority + +`func (o *AlpineUpstreamRequest) GetPriority() int64` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *AlpineUpstreamRequest) 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 *AlpineUpstreamRequest) SetPriority(v int64)` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *AlpineUpstreamRequest) HasPriority() bool` + +HasPriority returns a boolean if a field has been set. + +### GetUpstreamUrl + +`func (o *AlpineUpstreamRequest) GetUpstreamUrl() string` + +GetUpstreamUrl returns the UpstreamUrl field if non-nil, zero value otherwise. + +### GetUpstreamUrlOk + +`func (o *AlpineUpstreamRequest) 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 *AlpineUpstreamRequest) SetUpstreamUrl(v string)` + +SetUpstreamUrl sets UpstreamUrl field to given value. + + +### GetVerifySsl + +`func (o *AlpineUpstreamRequest) GetVerifySsl() bool` + +GetVerifySsl returns the VerifySsl field if non-nil, zero value otherwise. + +### GetVerifySslOk + +`func (o *AlpineUpstreamRequest) 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 *AlpineUpstreamRequest) SetVerifySsl(v bool)` + +SetVerifySsl sets VerifySsl field to given value. + +### HasVerifySsl + +`func (o *AlpineUpstreamRequest) 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/AlpineUpstreamRequestPatch.md b/docs/AlpineUpstreamRequestPatch.md new file mode 100644 index 00000000..c2dc1c3c --- /dev/null +++ b/docs/AlpineUpstreamRequestPatch.md @@ -0,0 +1,428 @@ +# AlpineUpstreamRequestPatch + +## 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 + +### NewAlpineUpstreamRequestPatch + +`func NewAlpineUpstreamRequestPatch() *AlpineUpstreamRequestPatch` + +NewAlpineUpstreamRequestPatch instantiates a new AlpineUpstreamRequestPatch 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 + +### NewAlpineUpstreamRequestPatchWithDefaults + +`func NewAlpineUpstreamRequestPatchWithDefaults() *AlpineUpstreamRequestPatch` + +NewAlpineUpstreamRequestPatchWithDefaults instantiates a new AlpineUpstreamRequestPatch 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 *AlpineUpstreamRequestPatch) GetAuthMode() string` + +GetAuthMode returns the AuthMode field if non-nil, zero value otherwise. + +### GetAuthModeOk + +`func (o *AlpineUpstreamRequestPatch) 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 *AlpineUpstreamRequestPatch) SetAuthMode(v string)` + +SetAuthMode sets AuthMode field to given value. + +### HasAuthMode + +`func (o *AlpineUpstreamRequestPatch) HasAuthMode() bool` + +HasAuthMode returns a boolean if a field has been set. + +### GetAuthSecret + +`func (o *AlpineUpstreamRequestPatch) GetAuthSecret() string` + +GetAuthSecret returns the AuthSecret field if non-nil, zero value otherwise. + +### GetAuthSecretOk + +`func (o *AlpineUpstreamRequestPatch) 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 *AlpineUpstreamRequestPatch) SetAuthSecret(v string)` + +SetAuthSecret sets AuthSecret field to given value. + +### HasAuthSecret + +`func (o *AlpineUpstreamRequestPatch) HasAuthSecret() bool` + +HasAuthSecret returns a boolean if a field has been set. + +### SetAuthSecretNil + +`func (o *AlpineUpstreamRequestPatch) SetAuthSecretNil(b bool)` + + SetAuthSecretNil sets the value for AuthSecret to be an explicit nil + +### UnsetAuthSecret +`func (o *AlpineUpstreamRequestPatch) UnsetAuthSecret()` + +UnsetAuthSecret ensures that no value is present for AuthSecret, not even an explicit nil +### GetAuthUsername + +`func (o *AlpineUpstreamRequestPatch) GetAuthUsername() string` + +GetAuthUsername returns the AuthUsername field if non-nil, zero value otherwise. + +### GetAuthUsernameOk + +`func (o *AlpineUpstreamRequestPatch) 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 *AlpineUpstreamRequestPatch) SetAuthUsername(v string)` + +SetAuthUsername sets AuthUsername field to given value. + +### HasAuthUsername + +`func (o *AlpineUpstreamRequestPatch) HasAuthUsername() bool` + +HasAuthUsername returns a boolean if a field has been set. + +### SetAuthUsernameNil + +`func (o *AlpineUpstreamRequestPatch) SetAuthUsernameNil(b bool)` + + SetAuthUsernameNil sets the value for AuthUsername to be an explicit nil + +### UnsetAuthUsername +`func (o *AlpineUpstreamRequestPatch) UnsetAuthUsername()` + +UnsetAuthUsername ensures that no value is present for AuthUsername, not even an explicit nil +### GetExtraHeader1 + +`func (o *AlpineUpstreamRequestPatch) GetExtraHeader1() string` + +GetExtraHeader1 returns the ExtraHeader1 field if non-nil, zero value otherwise. + +### GetExtraHeader1Ok + +`func (o *AlpineUpstreamRequestPatch) 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 *AlpineUpstreamRequestPatch) SetExtraHeader1(v string)` + +SetExtraHeader1 sets ExtraHeader1 field to given value. + +### HasExtraHeader1 + +`func (o *AlpineUpstreamRequestPatch) HasExtraHeader1() bool` + +HasExtraHeader1 returns a boolean if a field has been set. + +### SetExtraHeader1Nil + +`func (o *AlpineUpstreamRequestPatch) SetExtraHeader1Nil(b bool)` + + SetExtraHeader1Nil sets the value for ExtraHeader1 to be an explicit nil + +### UnsetExtraHeader1 +`func (o *AlpineUpstreamRequestPatch) UnsetExtraHeader1()` + +UnsetExtraHeader1 ensures that no value is present for ExtraHeader1, not even an explicit nil +### GetExtraHeader2 + +`func (o *AlpineUpstreamRequestPatch) GetExtraHeader2() string` + +GetExtraHeader2 returns the ExtraHeader2 field if non-nil, zero value otherwise. + +### GetExtraHeader2Ok + +`func (o *AlpineUpstreamRequestPatch) 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 *AlpineUpstreamRequestPatch) SetExtraHeader2(v string)` + +SetExtraHeader2 sets ExtraHeader2 field to given value. + +### HasExtraHeader2 + +`func (o *AlpineUpstreamRequestPatch) HasExtraHeader2() bool` + +HasExtraHeader2 returns a boolean if a field has been set. + +### SetExtraHeader2Nil + +`func (o *AlpineUpstreamRequestPatch) SetExtraHeader2Nil(b bool)` + + SetExtraHeader2Nil sets the value for ExtraHeader2 to be an explicit nil + +### UnsetExtraHeader2 +`func (o *AlpineUpstreamRequestPatch) UnsetExtraHeader2()` + +UnsetExtraHeader2 ensures that no value is present for ExtraHeader2, not even an explicit nil +### GetExtraValue1 + +`func (o *AlpineUpstreamRequestPatch) GetExtraValue1() string` + +GetExtraValue1 returns the ExtraValue1 field if non-nil, zero value otherwise. + +### GetExtraValue1Ok + +`func (o *AlpineUpstreamRequestPatch) 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 *AlpineUpstreamRequestPatch) SetExtraValue1(v string)` + +SetExtraValue1 sets ExtraValue1 field to given value. + +### HasExtraValue1 + +`func (o *AlpineUpstreamRequestPatch) HasExtraValue1() bool` + +HasExtraValue1 returns a boolean if a field has been set. + +### SetExtraValue1Nil + +`func (o *AlpineUpstreamRequestPatch) SetExtraValue1Nil(b bool)` + + SetExtraValue1Nil sets the value for ExtraValue1 to be an explicit nil + +### UnsetExtraValue1 +`func (o *AlpineUpstreamRequestPatch) UnsetExtraValue1()` + +UnsetExtraValue1 ensures that no value is present for ExtraValue1, not even an explicit nil +### GetExtraValue2 + +`func (o *AlpineUpstreamRequestPatch) GetExtraValue2() string` + +GetExtraValue2 returns the ExtraValue2 field if non-nil, zero value otherwise. + +### GetExtraValue2Ok + +`func (o *AlpineUpstreamRequestPatch) 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 *AlpineUpstreamRequestPatch) SetExtraValue2(v string)` + +SetExtraValue2 sets ExtraValue2 field to given value. + +### HasExtraValue2 + +`func (o *AlpineUpstreamRequestPatch) HasExtraValue2() bool` + +HasExtraValue2 returns a boolean if a field has been set. + +### SetExtraValue2Nil + +`func (o *AlpineUpstreamRequestPatch) SetExtraValue2Nil(b bool)` + + SetExtraValue2Nil sets the value for ExtraValue2 to be an explicit nil + +### UnsetExtraValue2 +`func (o *AlpineUpstreamRequestPatch) UnsetExtraValue2()` + +UnsetExtraValue2 ensures that no value is present for ExtraValue2, not even an explicit nil +### GetIsActive + +`func (o *AlpineUpstreamRequestPatch) GetIsActive() bool` + +GetIsActive returns the IsActive field if non-nil, zero value otherwise. + +### GetIsActiveOk + +`func (o *AlpineUpstreamRequestPatch) 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 *AlpineUpstreamRequestPatch) SetIsActive(v bool)` + +SetIsActive sets IsActive field to given value. + +### HasIsActive + +`func (o *AlpineUpstreamRequestPatch) HasIsActive() bool` + +HasIsActive returns a boolean if a field has been set. + +### GetMode + +`func (o *AlpineUpstreamRequestPatch) GetMode() string` + +GetMode returns the Mode field if non-nil, zero value otherwise. + +### GetModeOk + +`func (o *AlpineUpstreamRequestPatch) 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 *AlpineUpstreamRequestPatch) SetMode(v string)` + +SetMode sets Mode field to given value. + +### HasMode + +`func (o *AlpineUpstreamRequestPatch) HasMode() bool` + +HasMode returns a boolean if a field has been set. + +### GetName + +`func (o *AlpineUpstreamRequestPatch) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *AlpineUpstreamRequestPatch) 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 *AlpineUpstreamRequestPatch) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *AlpineUpstreamRequestPatch) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetPriority + +`func (o *AlpineUpstreamRequestPatch) GetPriority() int64` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *AlpineUpstreamRequestPatch) 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 *AlpineUpstreamRequestPatch) SetPriority(v int64)` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *AlpineUpstreamRequestPatch) HasPriority() bool` + +HasPriority returns a boolean if a field has been set. + +### GetUpstreamUrl + +`func (o *AlpineUpstreamRequestPatch) GetUpstreamUrl() string` + +GetUpstreamUrl returns the UpstreamUrl field if non-nil, zero value otherwise. + +### GetUpstreamUrlOk + +`func (o *AlpineUpstreamRequestPatch) 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 *AlpineUpstreamRequestPatch) SetUpstreamUrl(v string)` + +SetUpstreamUrl sets UpstreamUrl field to given value. + +### HasUpstreamUrl + +`func (o *AlpineUpstreamRequestPatch) HasUpstreamUrl() bool` + +HasUpstreamUrl returns a boolean if a field has been set. + +### GetVerifySsl + +`func (o *AlpineUpstreamRequestPatch) GetVerifySsl() bool` + +GetVerifySsl returns the VerifySsl field if non-nil, zero value otherwise. + +### GetVerifySslOk + +`func (o *AlpineUpstreamRequestPatch) 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 *AlpineUpstreamRequestPatch) SetVerifySsl(v bool)` + +SetVerifySsl sets VerifySsl field to given value. + +### HasVerifySsl + +`func (o *AlpineUpstreamRequestPatch) 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/BulkActionApi.md b/docs/BulkActionApi.md new file mode 100644 index 00000000..2dfe574b --- /dev/null +++ b/docs/BulkActionApi.md @@ -0,0 +1,81 @@ +# \BulkActionApi + +All URIs are relative to *https://api.cloudsmith.io* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**BulkAction**](BulkActionApi.md#BulkAction) | **Post** /bulk-action/{owner}/ | + + + +## BulkAction + +> PackageBulkActionResponse BulkAction(ctx, owner).Data(data).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/cloudsmith-io/cloudsmith-api-go" +) + +func main() { + owner := "owner_example" // string | + data := *openapiclient.NewPackageBulkAction("Action_example", []string{"Identifiers_example"}) // PackageBulkAction | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BulkActionApi.BulkAction(context.Background(), owner).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BulkActionApi.BulkAction``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `BulkAction`: PackageBulkActionResponse + fmt.Fprintf(os.Stdout, "Response from `BulkActionApi.BulkAction`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**owner** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiBulkActionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **data** | [**PackageBulkAction**](PackageBulkAction.md) | | + +### Return type + +[**PackageBulkActionResponse**](PackageBulkActionResponse.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/docs/FormatSupportUpstream.md b/docs/FormatSupportUpstream.md index 680c3951..76c0c956 100644 --- a/docs/FormatSupportUpstream.md +++ b/docs/FormatSupportUpstream.md @@ -10,12 +10,13 @@ Name | Type | Description | Notes **IndexingBehavior** | Pointer to **string** | The behavior of the upstream when indexing | [optional] [default to "Unsupported"] **Proxying** | **bool** | If true the upstream format supports proxying | **SignatureVerification** | Pointer to **string** | The signature verification supported by the upstream format | [optional] [default to "Unsupported"] +**Trust** | **bool** | If true the upstream format supports configurable trust levels (trusted vs untrusted) for upstream sources. | ## Methods ### NewFormatSupportUpstream -`func NewFormatSupportUpstream(authModes []string, caching bool, indexing bool, proxying bool, ) *FormatSupportUpstream` +`func NewFormatSupportUpstream(authModes []string, caching bool, indexing bool, proxying bool, trust bool, ) *FormatSupportUpstream` NewFormatSupportUpstream instantiates a new FormatSupportUpstream object This constructor will assign default values to properties that have it defined, @@ -160,6 +161,26 @@ SetSignatureVerification sets SignatureVerification field to given value. HasSignatureVerification returns a boolean if a field has been set. +### GetTrust + +`func (o *FormatSupportUpstream) GetTrust() bool` + +GetTrust returns the Trust field if non-nil, zero value otherwise. + +### GetTrustOk + +`func (o *FormatSupportUpstream) GetTrustOk() (*bool, bool)` + +GetTrustOk returns a tuple with the Trust field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTrust + +`func (o *FormatSupportUpstream) SetTrust(v bool)` + +SetTrust sets Trust 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/NpmPackageUploadRequest.md b/docs/NpmPackageUploadRequest.md index 31b1994b..976d08bf 100644 --- a/docs/NpmPackageUploadRequest.md +++ b/docs/NpmPackageUploadRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**NpmDistTag** | Pointer to **string** | The default npm dist-tag for this package/version - This will replace any other package/version if they are using the same tag. | [optional] [default to "latest"] +**NpmDistTag** | Pointer to **NullableString** | The default npm dist-tag for this package/version - This will replace any other package/version if they are using the same tag. | [optional] [default to "latest"] **PackageFile** | **string** | The primary file for the package. | **Republish** | Pointer to **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **Tags** | Pointer to **NullableString** | A comma-separated values list of tags to add to the package. | [optional] @@ -53,6 +53,16 @@ SetNpmDistTag sets NpmDistTag field to given value. HasNpmDistTag returns a boolean if a field has been set. +### SetNpmDistTagNil + +`func (o *NpmPackageUploadRequest) SetNpmDistTagNil(b bool)` + + SetNpmDistTagNil sets the value for NpmDistTag to be an explicit nil + +### UnsetNpmDistTag +`func (o *NpmPackageUploadRequest) UnsetNpmDistTag()` + +UnsetNpmDistTag ensures that no value is present for NpmDistTag, not even an explicit nil ### GetPackageFile `func (o *NpmPackageUploadRequest) GetPackageFile() string` diff --git a/docs/NpmUpstream.md b/docs/NpmUpstream.md index 4fb48c06..f9a6a606 100644 --- a/docs/NpmUpstream.md +++ b/docs/NpmUpstream.md @@ -26,6 +26,7 @@ Name | Type | Description | Notes **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] +**TrustLevel** | Pointer to **string** | Trust level allows for control of the visibility of upstream artifacts to native package managers. Where supported by formats, the default level (untrusted) is recommended for all upstreams, and helps to safeguard against common dependency confusion attack vectors. | [optional] [default to "Trusted"] **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] @@ -664,6 +665,31 @@ SetSlugPerm sets SlugPerm field to given value. HasSlugPerm returns a boolean if a field has been set. +### GetTrustLevel + +`func (o *NpmUpstream) GetTrustLevel() string` + +GetTrustLevel returns the TrustLevel field if non-nil, zero value otherwise. + +### GetTrustLevelOk + +`func (o *NpmUpstream) GetTrustLevelOk() (*string, bool)` + +GetTrustLevelOk returns a tuple with the TrustLevel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTrustLevel + +`func (o *NpmUpstream) SetTrustLevel(v string)` + +SetTrustLevel sets TrustLevel field to given value. + +### HasTrustLevel + +`func (o *NpmUpstream) HasTrustLevel() bool` + +HasTrustLevel returns a boolean if a field has been set. + ### GetUpdatedAt `func (o *NpmUpstream) GetUpdatedAt() time.Time` diff --git a/docs/NpmUpstreamRequest.md b/docs/NpmUpstreamRequest.md index 99b8138d..d519f965 100644 --- a/docs/NpmUpstreamRequest.md +++ b/docs/NpmUpstreamRequest.md @@ -15,6 +15,7 @@ Name | Type | Description | Notes **Mode** | Pointer to **string** | The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. | [optional] [default to "Proxy Only"] **Name** | **string** | A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. | **Priority** | Pointer to **int64** | Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. | [optional] +**TrustLevel** | Pointer to **string** | Trust level allows for control of the visibility of upstream artifacts to native package managers. Where supported by formats, the default level (untrusted) is recommended for all upstreams, and helps to safeguard against common dependency confusion attack vectors. | [optional] [default to "Trusted"] **UpstreamUrl** | **string** | The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. | **VerifySsl** | Pointer to **bool** | If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. | [optional] @@ -367,6 +368,31 @@ SetPriority sets Priority field to given value. HasPriority returns a boolean if a field has been set. +### GetTrustLevel + +`func (o *NpmUpstreamRequest) GetTrustLevel() string` + +GetTrustLevel returns the TrustLevel field if non-nil, zero value otherwise. + +### GetTrustLevelOk + +`func (o *NpmUpstreamRequest) GetTrustLevelOk() (*string, bool)` + +GetTrustLevelOk returns a tuple with the TrustLevel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTrustLevel + +`func (o *NpmUpstreamRequest) SetTrustLevel(v string)` + +SetTrustLevel sets TrustLevel field to given value. + +### HasTrustLevel + +`func (o *NpmUpstreamRequest) HasTrustLevel() bool` + +HasTrustLevel returns a boolean if a field has been set. + ### GetUpstreamUrl `func (o *NpmUpstreamRequest) GetUpstreamUrl() string` diff --git a/docs/NpmUpstreamRequestPatch.md b/docs/NpmUpstreamRequestPatch.md index 5af8622e..140b10c9 100644 --- a/docs/NpmUpstreamRequestPatch.md +++ b/docs/NpmUpstreamRequestPatch.md @@ -15,6 +15,7 @@ Name | Type | Description | Notes **Mode** | Pointer to **string** | The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. | [optional] [default to "Proxy Only"] **Name** | Pointer to **string** | A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. | [optional] **Priority** | Pointer to **int64** | Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. | [optional] +**TrustLevel** | Pointer to **string** | Trust level allows for control of the visibility of upstream artifacts to native package managers. Where supported by formats, the default level (untrusted) is recommended for all upstreams, and helps to safeguard against common dependency confusion attack vectors. | [optional] [default to "Trusted"] **UpstreamUrl** | Pointer to **string** | The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. | [optional] **VerifySsl** | Pointer to **bool** | If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. | [optional] @@ -372,6 +373,31 @@ SetPriority sets Priority field to given value. HasPriority returns a boolean if a field has been set. +### GetTrustLevel + +`func (o *NpmUpstreamRequestPatch) GetTrustLevel() string` + +GetTrustLevel returns the TrustLevel field if non-nil, zero value otherwise. + +### GetTrustLevelOk + +`func (o *NpmUpstreamRequestPatch) GetTrustLevelOk() (*string, bool)` + +GetTrustLevelOk returns a tuple with the TrustLevel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTrustLevel + +`func (o *NpmUpstreamRequestPatch) SetTrustLevel(v string)` + +SetTrustLevel sets TrustLevel field to given value. + +### HasTrustLevel + +`func (o *NpmUpstreamRequestPatch) HasTrustLevel() bool` + +HasTrustLevel returns a boolean if a field has been set. + ### GetUpstreamUrl `func (o *NpmUpstreamRequestPatch) GetUpstreamUrl() string` diff --git a/docs/OrganizationTeamMembers.md b/docs/OrganizationTeamMembers.md index 6a70f58b..30876aaf 100644 --- a/docs/OrganizationTeamMembers.md +++ b/docs/OrganizationTeamMembers.md @@ -4,13 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Members** | [**[]OrganizationTeamMembership**](OrganizationTeamMembership.md) | The team members | +**Members** | [**[]OrganizationTeamServiceMember**](OrganizationTeamServiceMember.md) | The team members | ## Methods ### NewOrganizationTeamMembers -`func NewOrganizationTeamMembers(members []OrganizationTeamMembership, ) *OrganizationTeamMembers` +`func NewOrganizationTeamMembers(members []OrganizationTeamServiceMember, ) *OrganizationTeamMembers` NewOrganizationTeamMembers instantiates a new OrganizationTeamMembers object This constructor will assign default values to properties that have it defined, @@ -27,20 +27,20 @@ but it doesn't guarantee that properties required by API are set ### GetMembers -`func (o *OrganizationTeamMembers) GetMembers() []OrganizationTeamMembership` +`func (o *OrganizationTeamMembers) GetMembers() []OrganizationTeamServiceMember` GetMembers returns the Members field if non-nil, zero value otherwise. ### GetMembersOk -`func (o *OrganizationTeamMembers) GetMembersOk() (*[]OrganizationTeamMembership, bool)` +`func (o *OrganizationTeamMembers) GetMembersOk() (*[]OrganizationTeamServiceMember, bool)` GetMembersOk returns a tuple with the Members field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetMembers -`func (o *OrganizationTeamMembers) SetMembers(v []OrganizationTeamMembership)` +`func (o *OrganizationTeamMembers) SetMembers(v []OrganizationTeamServiceMember)` SetMembers sets Members field to given value. diff --git a/docs/OrganizationTeamMembership.md b/docs/OrganizationTeamMembership.md deleted file mode 100644 index e786309e..00000000 --- a/docs/OrganizationTeamMembership.md +++ /dev/null @@ -1,72 +0,0 @@ -# OrganizationTeamMembership - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Role** | **string** | | -**User** | **string** | | - -## Methods - -### NewOrganizationTeamMembership - -`func NewOrganizationTeamMembership(role string, user string, ) *OrganizationTeamMembership` - -NewOrganizationTeamMembership instantiates a new OrganizationTeamMembership 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 - -### NewOrganizationTeamMembershipWithDefaults - -`func NewOrganizationTeamMembershipWithDefaults() *OrganizationTeamMembership` - -NewOrganizationTeamMembershipWithDefaults instantiates a new OrganizationTeamMembership 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 - -### GetRole - -`func (o *OrganizationTeamMembership) GetRole() string` - -GetRole returns the Role field if non-nil, zero value otherwise. - -### GetRoleOk - -`func (o *OrganizationTeamMembership) GetRoleOk() (*string, bool)` - -GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRole - -`func (o *OrganizationTeamMembership) SetRole(v string)` - -SetRole sets Role field to given value. - - -### GetUser - -`func (o *OrganizationTeamMembership) GetUser() string` - -GetUser returns the User field if non-nil, zero value otherwise. - -### GetUserOk - -`func (o *OrganizationTeamMembership) GetUserOk() (*string, bool)` - -GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUser - -`func (o *OrganizationTeamMembership) SetUser(v string)` - -SetUser sets User 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/OrganizationTeamServiceMember.md b/docs/OrganizationTeamServiceMember.md new file mode 100644 index 00000000..37b13eb2 --- /dev/null +++ b/docs/OrganizationTeamServiceMember.md @@ -0,0 +1,98 @@ +# OrganizationTeamServiceMember + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Role** | **string** | | +**User** | **string** | | +**UserKind** | Pointer to **string** | | [optional] [default to "User"] + +## Methods + +### NewOrganizationTeamServiceMember + +`func NewOrganizationTeamServiceMember(role string, user string, ) *OrganizationTeamServiceMember` + +NewOrganizationTeamServiceMember instantiates a new OrganizationTeamServiceMember 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 + +### NewOrganizationTeamServiceMemberWithDefaults + +`func NewOrganizationTeamServiceMemberWithDefaults() *OrganizationTeamServiceMember` + +NewOrganizationTeamServiceMemberWithDefaults instantiates a new OrganizationTeamServiceMember 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 + +### GetRole + +`func (o *OrganizationTeamServiceMember) GetRole() string` + +GetRole returns the Role field if non-nil, zero value otherwise. + +### GetRoleOk + +`func (o *OrganizationTeamServiceMember) GetRoleOk() (*string, bool)` + +GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRole + +`func (o *OrganizationTeamServiceMember) SetRole(v string)` + +SetRole sets Role field to given value. + + +### GetUser + +`func (o *OrganizationTeamServiceMember) GetUser() string` + +GetUser returns the User field if non-nil, zero value otherwise. + +### GetUserOk + +`func (o *OrganizationTeamServiceMember) GetUserOk() (*string, bool)` + +GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUser + +`func (o *OrganizationTeamServiceMember) SetUser(v string)` + +SetUser sets User field to given value. + + +### GetUserKind + +`func (o *OrganizationTeamServiceMember) GetUserKind() string` + +GetUserKind returns the UserKind field if non-nil, zero value otherwise. + +### GetUserKindOk + +`func (o *OrganizationTeamServiceMember) GetUserKindOk() (*string, bool)` + +GetUserKindOk returns a tuple with the UserKind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserKind + +`func (o *OrganizationTeamServiceMember) SetUserKind(v string)` + +SetUserKind sets UserKind field to given value. + +### HasUserKind + +`func (o *OrganizationTeamServiceMember) HasUserKind() bool` + +HasUserKind returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/OrgsApi.md b/docs/OrgsApi.md index 962d6e72..ab854811 100644 --- a/docs/OrgsApi.md +++ b/docs/OrgsApi.md @@ -4347,7 +4347,7 @@ import ( func main() { org := "org_example" // string | team := "team_example" // string | - data := *openapiclient.NewOrganizationTeamMembers([]openapiclient.OrganizationTeamMembership{*openapiclient.NewOrganizationTeamMembership("Role_example", "User_example")}) // OrganizationTeamMembers | (optional) + data := *openapiclient.NewOrganizationTeamMembers([]openapiclient.OrganizationTeamServiceMember{*openapiclient.NewOrganizationTeamServiceMember("Role_example", "User_example")}) // OrganizationTeamMembers | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -4497,7 +4497,7 @@ import ( func main() { org := "org_example" // string | team := "team_example" // string | - data := *openapiclient.NewOrganizationTeamMembers([]openapiclient.OrganizationTeamMembership{*openapiclient.NewOrganizationTeamMembership("Role_example", "User_example")}) // OrganizationTeamMembers | (optional) + data := *openapiclient.NewOrganizationTeamMembers([]openapiclient.OrganizationTeamServiceMember{*openapiclient.NewOrganizationTeamServiceMember("Role_example", "User_example")}) // OrganizationTeamMembers | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/docs/PackagesApi.md b/docs/PackagesApi.md index b16901a5..0d651107 100644 --- a/docs/PackagesApi.md +++ b/docs/PackagesApi.md @@ -4,7 +4,6 @@ All URIs are relative to *https://api.cloudsmith.io* Method | HTTP request | Description ------------- | ------------- | ------------- -[**PackagesBulkAction**](PackagesApi.md#PackagesBulkAction) | **Post** /packages/{owner}/bulk-action/ | [**PackagesCopy**](PackagesApi.md#PackagesCopy) | **Post** /packages/{owner}/{repo}/{identifier}/copy/ | Copy a package to another repository. [**PackagesDelete**](PackagesApi.md#PackagesDelete) | **Delete** /packages/{owner}/{repo}/{identifier}/ | Delete a specific package in a repository. [**PackagesDependencies**](PackagesApi.md#PackagesDependencies) | **Get** /packages/{owner}/{repo}/{identifier}/dependencies/ | Get the list of dependencies for a package. Transitive dependencies are included where supported. @@ -45,6 +44,7 @@ Method | HTTP request | Description [**PackagesUploadSwift**](PackagesApi.md#PackagesUploadSwift) | **Post** /packages/{owner}/{repo}/upload/swift/ | Create a new Swift package [**PackagesUploadTerraform**](PackagesApi.md#PackagesUploadTerraform) | **Post** /packages/{owner}/{repo}/upload/terraform/ | Create a new Terraform package [**PackagesUploadVagrant**](PackagesApi.md#PackagesUploadVagrant) | **Post** /packages/{owner}/{repo}/upload/vagrant/ | Create a new Vagrant package +[**PackagesUploadVsx**](PackagesApi.md#PackagesUploadVsx) | **Post** /packages/{owner}/{repo}/upload/vsx/ | Create a new VSX package [**PackagesValidateUploadAlpine**](PackagesApi.md#PackagesValidateUploadAlpine) | **Post** /packages/{owner}/{repo}/validate-upload/alpine/ | Validate parameters for create Alpine package [**PackagesValidateUploadCargo**](PackagesApi.md#PackagesValidateUploadCargo) | **Post** /packages/{owner}/{repo}/validate-upload/cargo/ | Validate parameters for create Cargo package [**PackagesValidateUploadCocoapods**](PackagesApi.md#PackagesValidateUploadCocoapods) | **Post** /packages/{owner}/{repo}/validate-upload/cocoapods/ | Validate parameters for create CocoaPods package @@ -72,81 +72,10 @@ Method | HTTP request | Description [**PackagesValidateUploadSwift**](PackagesApi.md#PackagesValidateUploadSwift) | **Post** /packages/{owner}/{repo}/validate-upload/swift/ | Validate parameters for create Swift package [**PackagesValidateUploadTerraform**](PackagesApi.md#PackagesValidateUploadTerraform) | **Post** /packages/{owner}/{repo}/validate-upload/terraform/ | Validate parameters for create Terraform package [**PackagesValidateUploadVagrant**](PackagesApi.md#PackagesValidateUploadVagrant) | **Post** /packages/{owner}/{repo}/validate-upload/vagrant/ | Validate parameters for create Vagrant package +[**PackagesValidateUploadVsx**](PackagesApi.md#PackagesValidateUploadVsx) | **Post** /packages/{owner}/{repo}/validate-upload/vsx/ | Validate parameters for create VSX package -## PackagesBulkAction - -> PackageBulkActionResponse PackagesBulkAction(ctx, owner).Data(data).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/cloudsmith-io/cloudsmith-api-go" -) - -func main() { - owner := "owner_example" // string | - data := *openapiclient.NewPackageBulkAction("Action_example", []string{"Identifiers_example"}) // PackageBulkAction | (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.PackagesApi.PackagesBulkAction(context.Background(), owner).Data(data).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PackagesApi.PackagesBulkAction``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PackagesBulkAction`: PackageBulkActionResponse - fmt.Fprintf(os.Stdout, "Response from `PackagesApi.PackagesBulkAction`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**owner** | **string** | | - -### Other Parameters - -Other parameters are passed through a pointer to a apiPackagesBulkActionRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **data** | [**PackageBulkAction**](PackageBulkAction.md) | | - -### Return type - -[**PackageBulkActionResponse**](PackageBulkActionResponse.md) - -### Authorization - -[apikey](../README.md#apikey), [basic](../README.md#basic) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - ## PackagesCopy > PackageCopy PackagesCopy(ctx, owner, repo, identifier).Data(data).Execute() @@ -3182,6 +3111,81 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## PackagesUploadVsx + +> VsxPackageUpload PackagesUploadVsx(ctx, owner, repo).Data(data).Execute() + +Create a new VSX 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.NewVsxPackageUploadRequest("PackageFile_example") // VsxPackageUploadRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PackagesApi.PackagesUploadVsx(context.Background(), owner, repo).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PackagesApi.PackagesUploadVsx``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PackagesUploadVsx`: VsxPackageUpload + fmt.Fprintf(os.Stdout, "Response from `PackagesApi.PackagesUploadVsx`: %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 apiPackagesUploadVsxRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **data** | [**VsxPackageUploadRequest**](VsxPackageUploadRequest.md) | | + +### Return type + +[**VsxPackageUpload**](VsxPackageUpload.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) + + ## PackagesValidateUploadAlpine > PackagesValidateUploadAlpine(ctx, owner, repo).Data(data).Execute() @@ -5152,3 +5156,76 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +## PackagesValidateUploadVsx + +> PackagesValidateUploadVsx(ctx, owner, repo).Data(data).Execute() + +Validate parameters for create VSX 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.NewVsxPackageUploadRequest("PackageFile_example") // VsxPackageUploadRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.PackagesApi.PackagesValidateUploadVsx(context.Background(), owner, repo).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PackagesApi.PackagesValidateUploadVsx``: %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 apiPackagesValidateUploadVsxRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **data** | [**VsxPackageUploadRequest**](VsxPackageUploadRequest.md) | | + +### Return type + + (empty response body) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/docs/ReposApi.md b/docs/ReposApi.md index 1a8712b0..f27c578c 100644 --- a/docs/ReposApi.md +++ b/docs/ReposApi.md @@ -31,6 +31,12 @@ Method | HTTP request | Description [**ReposRsaList**](ReposApi.md#ReposRsaList) | **Get** /repos/{owner}/{identifier}/rsa/ | Retrieve the active RSA key for the Repository. [**ReposRsaRegenerate**](ReposApi.md#ReposRsaRegenerate) | **Post** /repos/{owner}/{identifier}/rsa/regenerate/ | Regenerate RSA Key for the Repository. [**ReposTransferRegion**](ReposApi.md#ReposTransferRegion) | **Post** /repos/{owner}/{repo}/transfer-region/ | Transfer a repository to a different region. +[**ReposUpstreamAlpineCreate**](ReposApi.md#ReposUpstreamAlpineCreate) | **Post** /repos/{owner}/{identifier}/upstream/alpine/ | Create an Alpine upstream config for this repository. +[**ReposUpstreamAlpineDelete**](ReposApi.md#ReposUpstreamAlpineDelete) | **Delete** /repos/{owner}/{identifier}/upstream/alpine/{slug_perm}/ | Delete an Alpine upstream config for this repository. +[**ReposUpstreamAlpineList**](ReposApi.md#ReposUpstreamAlpineList) | **Get** /repos/{owner}/{identifier}/upstream/alpine/ | List Alpine upstream configs for this repository. +[**ReposUpstreamAlpinePartialUpdate**](ReposApi.md#ReposUpstreamAlpinePartialUpdate) | **Patch** /repos/{owner}/{identifier}/upstream/alpine/{slug_perm}/ | Partially update an Alpine upstream config for this repository. +[**ReposUpstreamAlpineRead**](ReposApi.md#ReposUpstreamAlpineRead) | **Get** /repos/{owner}/{identifier}/upstream/alpine/{slug_perm}/ | Retrieve an Alpine upstream config for this repository. +[**ReposUpstreamAlpineUpdate**](ReposApi.md#ReposUpstreamAlpineUpdate) | **Put** /repos/{owner}/{identifier}/upstream/alpine/{slug_perm}/ | Update an Alpine upstream config for this repository. [**ReposUpstreamCargoCreate**](ReposApi.md#ReposUpstreamCargoCreate) | **Post** /repos/{owner}/{identifier}/upstream/cargo/ | Create a Cargo upstream config for this repository. [**ReposUpstreamCargoDelete**](ReposApi.md#ReposUpstreamCargoDelete) | **Delete** /repos/{owner}/{identifier}/upstream/cargo/{slug_perm}/ | Delete a Cargo upstream config for this repository. [**ReposUpstreamCargoList**](ReposApi.md#ReposUpstreamCargoList) | **Get** /repos/{owner}/{identifier}/upstream/cargo/ | List Cargo upstream configs for this repository. @@ -2144,6 +2150,464 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## ReposUpstreamAlpineCreate + +> AlpineUpstream ReposUpstreamAlpineCreate(ctx, owner, identifier).Data(data).Execute() + +Create an Alpine 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.NewAlpineUpstreamRequest("Name_example", "UpstreamUrl_example") // AlpineUpstreamRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ReposApi.ReposUpstreamAlpineCreate(context.Background(), owner, identifier).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamAlpineCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReposUpstreamAlpineCreate`: AlpineUpstream + fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamAlpineCreate`: %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 apiReposUpstreamAlpineCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **data** | [**AlpineUpstreamRequest**](AlpineUpstreamRequest.md) | | + +### Return type + +[**AlpineUpstream**](AlpineUpstream.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) + + +## ReposUpstreamAlpineDelete + +> ReposUpstreamAlpineDelete(ctx, owner, identifier, slugPerm).Execute() + +Delete an Alpine 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.ReposUpstreamAlpineDelete(context.Background(), owner, identifier, slugPerm).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamAlpineDelete``: %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 apiReposUpstreamAlpineDeleteRequest 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) + + +## ReposUpstreamAlpineList + +> []AlpineUpstream ReposUpstreamAlpineList(ctx, owner, identifier).Page(page).PageSize(pageSize).Execute() + +List Alpine 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.ReposUpstreamAlpineList(context.Background(), owner, identifier).Page(page).PageSize(pageSize).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamAlpineList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReposUpstreamAlpineList`: []AlpineUpstream + fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamAlpineList`: %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 apiReposUpstreamAlpineListRequest 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 + +[**[]AlpineUpstream**](AlpineUpstream.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) + + +## ReposUpstreamAlpinePartialUpdate + +> AlpineUpstream ReposUpstreamAlpinePartialUpdate(ctx, owner, identifier, slugPerm).Data(data).Execute() + +Partially update an Alpine 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.NewAlpineUpstreamRequestPatch() // AlpineUpstreamRequestPatch | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ReposApi.ReposUpstreamAlpinePartialUpdate(context.Background(), owner, identifier, slugPerm).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamAlpinePartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReposUpstreamAlpinePartialUpdate`: AlpineUpstream + fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamAlpinePartialUpdate`: %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 apiReposUpstreamAlpinePartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **data** | [**AlpineUpstreamRequestPatch**](AlpineUpstreamRequestPatch.md) | | + +### Return type + +[**AlpineUpstream**](AlpineUpstream.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) + + +## ReposUpstreamAlpineRead + +> AlpineUpstream ReposUpstreamAlpineRead(ctx, owner, identifier, slugPerm).Execute() + +Retrieve an Alpine 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.ReposUpstreamAlpineRead(context.Background(), owner, identifier, slugPerm).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamAlpineRead``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReposUpstreamAlpineRead`: AlpineUpstream + fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamAlpineRead`: %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 apiReposUpstreamAlpineReadRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + +[**AlpineUpstream**](AlpineUpstream.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) + + +## ReposUpstreamAlpineUpdate + +> AlpineUpstream ReposUpstreamAlpineUpdate(ctx, owner, identifier, slugPerm).Data(data).Execute() + +Update an Alpine 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.NewAlpineUpstreamRequest("Name_example", "UpstreamUrl_example") // AlpineUpstreamRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ReposApi.ReposUpstreamAlpineUpdate(context.Background(), owner, identifier, slugPerm).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposUpstreamAlpineUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReposUpstreamAlpineUpdate`: AlpineUpstream + fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposUpstreamAlpineUpdate`: %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 apiReposUpstreamAlpineUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **data** | [**AlpineUpstreamRequest**](AlpineUpstreamRequest.md) | | + +### Return type + +[**AlpineUpstream**](AlpineUpstream.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) + + ## ReposUpstreamCargoCreate > CargoUpstream ReposUpstreamCargoCreate(ctx, owner, identifier).Data(data).Execute() diff --git a/docs/Repository.md b/docs/Repository.md index 2eb045c4..6c0dd747 100644 --- a/docs/Repository.md +++ b/docs/Repository.md @@ -27,6 +27,7 @@ Name | Type | Description | Notes **IsOpenSource** | Pointer to **bool** | | [optional] [readonly] **IsPrivate** | Pointer to **bool** | | [optional] [readonly] **IsPublic** | Pointer to **bool** | | [optional] [readonly] +**IsPublicHidden** | Pointer to **bool** | If checked, this repository will be hidden from the list of public broadcasts for the workspace. | [optional] **ManageEntitlementsPrivilege** | Pointer to **string** | This defines the minimum level of privilege required for a user to manage entitlement tokens with private repositories. Management is the ability to create, alter, enable, disable or delete all tokens without a repository. | [optional] [default to "Admin"] **MoveOwn** | Pointer to **bool** | If checked, users can move any of their own packages that they have uploaded, assuming that they still have write privilege for the repository. This takes precedence over privileges configured in the 'Access Controls' section of the repository, and any inherited from the org. | [optional] **MovePackages** | Pointer to **string** | This defines the minimum level of privilege required for a user to move packages. Unless the package was uploaded by that user, in which the permission may be overridden by the user-specific move setting. | [optional] [default to "Admin"] @@ -688,6 +689,31 @@ SetIsPublic sets IsPublic field to given value. HasIsPublic returns a boolean if a field has been set. +### GetIsPublicHidden + +`func (o *Repository) GetIsPublicHidden() bool` + +GetIsPublicHidden returns the IsPublicHidden field if non-nil, zero value otherwise. + +### GetIsPublicHiddenOk + +`func (o *Repository) GetIsPublicHiddenOk() (*bool, bool)` + +GetIsPublicHiddenOk returns a tuple with the IsPublicHidden field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsPublicHidden + +`func (o *Repository) SetIsPublicHidden(v bool)` + +SetIsPublicHidden sets IsPublicHidden field to given value. + +### HasIsPublicHidden + +`func (o *Repository) HasIsPublicHidden() bool` + +HasIsPublicHidden returns a boolean if a field has been set. + ### GetManageEntitlementsPrivilege `func (o *Repository) GetManageEntitlementsPrivilege() string` diff --git a/docs/RepositoryCreate.md b/docs/RepositoryCreate.md index ca41c262..cbe90c2d 100644 --- a/docs/RepositoryCreate.md +++ b/docs/RepositoryCreate.md @@ -27,6 +27,7 @@ Name | Type | Description | Notes **IsOpenSource** | Pointer to **bool** | | [optional] [readonly] **IsPrivate** | Pointer to **bool** | | [optional] [readonly] **IsPublic** | Pointer to **bool** | | [optional] [readonly] +**IsPublicHidden** | Pointer to **bool** | If checked, this repository will be hidden from the list of public broadcasts for the workspace. | [optional] **ManageEntitlementsPrivilege** | Pointer to **string** | This defines the minimum level of privilege required for a user to manage entitlement tokens with private repositories. Management is the ability to create, alter, enable, disable or delete all tokens without a repository. | [optional] [default to "Admin"] **MoveOwn** | Pointer to **bool** | If checked, users can move any of their own packages that they have uploaded, assuming that they still have write privilege for the repository. This takes precedence over privileges configured in the 'Access Controls' section of the repository, and any inherited from the org. | [optional] **MovePackages** | Pointer to **string** | This defines the minimum level of privilege required for a user to move packages. Unless the package was uploaded by that user, in which the permission may be overridden by the user-specific move setting. | [optional] [default to "Admin"] @@ -688,6 +689,31 @@ SetIsPublic sets IsPublic field to given value. HasIsPublic returns a boolean if a field has been set. +### GetIsPublicHidden + +`func (o *RepositoryCreate) GetIsPublicHidden() bool` + +GetIsPublicHidden returns the IsPublicHidden field if non-nil, zero value otherwise. + +### GetIsPublicHiddenOk + +`func (o *RepositoryCreate) GetIsPublicHiddenOk() (*bool, bool)` + +GetIsPublicHiddenOk returns a tuple with the IsPublicHidden field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsPublicHidden + +`func (o *RepositoryCreate) SetIsPublicHidden(v bool)` + +SetIsPublicHidden sets IsPublicHidden field to given value. + +### HasIsPublicHidden + +`func (o *RepositoryCreate) HasIsPublicHidden() bool` + +HasIsPublicHidden returns a boolean if a field has been set. + ### GetManageEntitlementsPrivilege `func (o *RepositoryCreate) GetManageEntitlementsPrivilege() string` diff --git a/docs/RepositoryCreateRequest.md b/docs/RepositoryCreateRequest.md index c77b3aef..7223a1fe 100644 --- a/docs/RepositoryCreateRequest.md +++ b/docs/RepositoryCreateRequest.md @@ -19,6 +19,7 @@ Name | Type | Description | Notes **EnforceEula** | Pointer to **bool** | If checked, downloads will explicitly require acceptance of an EULA. | [optional] **GenericPackageIndexEnabled** | Pointer to **bool** | If checked, HTML indexes will be generated that list all available generic packages in the repository. | [optional] **IndexFiles** | Pointer to **bool** | If checked, files contained in packages will be indexed, which increase the synchronisation time required for packages. Note that it is recommended you keep this enabled unless the synchronisation time is significantly impacted. | [optional] +**IsPublicHidden** | Pointer to **bool** | If checked, this repository will be hidden from the list of public broadcasts for the workspace. | [optional] **ManageEntitlementsPrivilege** | Pointer to **string** | This defines the minimum level of privilege required for a user to manage entitlement tokens with private repositories. Management is the ability to create, alter, enable, disable or delete all tokens without a repository. | [optional] [default to "Admin"] **MoveOwn** | Pointer to **bool** | If checked, users can move any of their own packages that they have uploaded, assuming that they still have write privilege for the repository. This takes precedence over privileges configured in the 'Access Controls' section of the repository, and any inherited from the org. | [optional] **MovePackages** | Pointer to **string** | This defines the minimum level of privilege required for a user to move packages. Unless the package was uploaded by that user, in which the permission may be overridden by the user-specific move setting. | [optional] [default to "Admin"] @@ -445,6 +446,31 @@ SetIndexFiles sets IndexFiles field to given value. HasIndexFiles returns a boolean if a field has been set. +### GetIsPublicHidden + +`func (o *RepositoryCreateRequest) GetIsPublicHidden() bool` + +GetIsPublicHidden returns the IsPublicHidden field if non-nil, zero value otherwise. + +### GetIsPublicHiddenOk + +`func (o *RepositoryCreateRequest) GetIsPublicHiddenOk() (*bool, bool)` + +GetIsPublicHiddenOk returns a tuple with the IsPublicHidden field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsPublicHidden + +`func (o *RepositoryCreateRequest) SetIsPublicHidden(v bool)` + +SetIsPublicHidden sets IsPublicHidden field to given value. + +### HasIsPublicHidden + +`func (o *RepositoryCreateRequest) HasIsPublicHidden() bool` + +HasIsPublicHidden returns a boolean if a field has been set. + ### GetManageEntitlementsPrivilege `func (o *RepositoryCreateRequest) GetManageEntitlementsPrivilege() string` diff --git a/docs/RepositoryRequestPatch.md b/docs/RepositoryRequestPatch.md index fcafe1e1..2b96021f 100644 --- a/docs/RepositoryRequestPatch.md +++ b/docs/RepositoryRequestPatch.md @@ -19,6 +19,7 @@ Name | Type | Description | Notes **EnforceEula** | Pointer to **bool** | If checked, downloads will explicitly require acceptance of an EULA. | [optional] **GenericPackageIndexEnabled** | Pointer to **bool** | If checked, HTML indexes will be generated that list all available generic packages in the repository. | [optional] **IndexFiles** | Pointer to **bool** | If checked, files contained in packages will be indexed, which increase the synchronisation time required for packages. Note that it is recommended you keep this enabled unless the synchronisation time is significantly impacted. | [optional] +**IsPublicHidden** | Pointer to **bool** | If checked, this repository will be hidden from the list of public broadcasts for the workspace. | [optional] **ManageEntitlementsPrivilege** | Pointer to **string** | This defines the minimum level of privilege required for a user to manage entitlement tokens with private repositories. Management is the ability to create, alter, enable, disable or delete all tokens without a repository. | [optional] [default to "Admin"] **MoveOwn** | Pointer to **bool** | If checked, users can move any of their own packages that they have uploaded, assuming that they still have write privilege for the repository. This takes precedence over privileges configured in the 'Access Controls' section of the repository, and any inherited from the org. | [optional] **MovePackages** | Pointer to **string** | This defines the minimum level of privilege required for a user to move packages. Unless the package was uploaded by that user, in which the permission may be overridden by the user-specific move setting. | [optional] [default to "Admin"] @@ -444,6 +445,31 @@ SetIndexFiles sets IndexFiles field to given value. HasIndexFiles returns a boolean if a field has been set. +### GetIsPublicHidden + +`func (o *RepositoryRequestPatch) GetIsPublicHidden() bool` + +GetIsPublicHidden returns the IsPublicHidden field if non-nil, zero value otherwise. + +### GetIsPublicHiddenOk + +`func (o *RepositoryRequestPatch) GetIsPublicHiddenOk() (*bool, bool)` + +GetIsPublicHiddenOk returns a tuple with the IsPublicHidden field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsPublicHidden + +`func (o *RepositoryRequestPatch) SetIsPublicHidden(v bool)` + +SetIsPublicHidden sets IsPublicHidden field to given value. + +### HasIsPublicHidden + +`func (o *RepositoryRequestPatch) HasIsPublicHidden() bool` + +HasIsPublicHidden returns a boolean if a field has been set. + ### GetManageEntitlementsPrivilege `func (o *RepositoryRequestPatch) GetManageEntitlementsPrivilege() string` diff --git a/docs/StorageAllocatedLimit.md b/docs/StorageAllocatedLimit.md index 7dae5421..27c0b9f5 100644 --- a/docs/StorageAllocatedLimit.md +++ b/docs/StorageAllocatedLimit.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **PercentageUsed** | Pointer to **string** | | [optional] **PlanLimit** | Pointer to **string** | | [optional] **Used** | Pointer to **string** | | [optional] +**UsedPreDeduplication** | Pointer to **string** | | [optional] ## Methods @@ -154,6 +155,31 @@ SetUsed sets Used field to given value. HasUsed returns a boolean if a field has been set. +### GetUsedPreDeduplication + +`func (o *StorageAllocatedLimit) GetUsedPreDeduplication() string` + +GetUsedPreDeduplication returns the UsedPreDeduplication field if non-nil, zero value otherwise. + +### GetUsedPreDeduplicationOk + +`func (o *StorageAllocatedLimit) GetUsedPreDeduplicationOk() (*string, bool)` + +GetUsedPreDeduplicationOk returns a tuple with the UsedPreDeduplication field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsedPreDeduplication + +`func (o *StorageAllocatedLimit) SetUsedPreDeduplication(v string)` + +SetUsedPreDeduplication sets UsedPreDeduplication field to given value. + +### HasUsedPreDeduplication + +`func (o *StorageAllocatedLimit) HasUsedPreDeduplication() bool` + +HasUsedPreDeduplication 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/StorageAllocatedLimitRaw.md b/docs/StorageAllocatedLimitRaw.md index 1655a9c3..a23997dc 100644 --- a/docs/StorageAllocatedLimitRaw.md +++ b/docs/StorageAllocatedLimitRaw.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **PercentageUsed** | Pointer to **float64** | | [optional] **PlanLimit** | Pointer to **int64** | | [optional] **Used** | Pointer to **int64** | | [optional] +**UsedPreDeduplication** | Pointer to **int64** | | [optional] ## Methods @@ -154,6 +155,31 @@ SetUsed sets Used field to given value. HasUsed returns a boolean if a field has been set. +### GetUsedPreDeduplication + +`func (o *StorageAllocatedLimitRaw) GetUsedPreDeduplication() int64` + +GetUsedPreDeduplication returns the UsedPreDeduplication field if non-nil, zero value otherwise. + +### GetUsedPreDeduplicationOk + +`func (o *StorageAllocatedLimitRaw) GetUsedPreDeduplicationOk() (*int64, bool)` + +GetUsedPreDeduplicationOk returns a tuple with the UsedPreDeduplication field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsedPreDeduplication + +`func (o *StorageAllocatedLimitRaw) SetUsedPreDeduplication(v int64)` + +SetUsedPreDeduplication sets UsedPreDeduplication field to given value. + +### HasUsedPreDeduplication + +`func (o *StorageAllocatedLimitRaw) HasUsedPreDeduplication() bool` + +HasUsedPreDeduplication 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/VsxPackageUpload.md b/docs/VsxPackageUpload.md new file mode 100644 index 00000000..f59c56e3 --- /dev/null +++ b/docs/VsxPackageUpload.md @@ -0,0 +1,2414 @@ +# VsxPackageUpload + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Architectures** | Pointer to [**[]Architecture**](Architecture.md) | | [optional] [readonly] +**CdnUrl** | Pointer to **NullableString** | | [optional] [readonly] +**ChecksumMd5** | Pointer to **string** | | [optional] [readonly] +**ChecksumSha1** | Pointer to **string** | | [optional] [readonly] +**ChecksumSha256** | Pointer to **string** | | [optional] [readonly] +**ChecksumSha512** | Pointer to **string** | | [optional] [readonly] +**DependenciesChecksumMd5** | Pointer to **NullableString** | A checksum of all of the package's dependencies. | [optional] [readonly] +**DependenciesUrl** | Pointer to **string** | | [optional] [readonly] +**Description** | Pointer to **NullableString** | A textual description of this package. | [optional] [readonly] +**DisplayName** | Pointer to **string** | | [optional] [readonly] +**Distro** | Pointer to [**NullableDistribution**](Distribution.md) | | [optional] +**DistroVersion** | Pointer to [**DistributionVersion**](DistributionVersion.md) | | [optional] +**Downloads** | Pointer to **int64** | | [optional] [readonly] +**Epoch** | Pointer to **NullableInt64** | The epoch of the package version (if any). | [optional] [readonly] +**Extension** | Pointer to **string** | | [optional] [readonly] +**Filename** | Pointer to **string** | | [optional] [readonly] +**Files** | Pointer to [**[]PackageFile**](PackageFile.md) | | [optional] [readonly] +**Format** | Pointer to **string** | | [optional] [readonly] +**FormatUrl** | Pointer to **string** | | [optional] [readonly] +**FreeableStorage** | Pointer to **int64** | Amount of storage that will be freed if this package is deleted | [optional] [readonly] +**FullyQualifiedName** | Pointer to **NullableString** | | [optional] [readonly] +**IdentifierPerm** | Pointer to **string** | Unique and permanent identifier for the package. | [optional] [readonly] +**Identifiers** | Pointer to **map[string]string** | Return a map of identifier field names and their values. | [optional] [readonly] +**Indexed** | Pointer to **bool** | | [optional] [readonly] +**IsCancellable** | Pointer to **bool** | | [optional] [readonly] +**IsCopyable** | Pointer to **bool** | | [optional] [readonly] +**IsDeleteable** | Pointer to **bool** | | [optional] [readonly] +**IsDownloadable** | Pointer to **bool** | | [optional] [readonly] +**IsMoveable** | Pointer to **bool** | | [optional] [readonly] +**IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] +**IsQuarantined** | Pointer to **bool** | | [optional] [readonly] +**IsResyncable** | Pointer to **bool** | | [optional] [readonly] +**IsSecurityScannable** | Pointer to **bool** | | [optional] [readonly] +**IsSyncAwaiting** | Pointer to **bool** | | [optional] [readonly] +**IsSyncCompleted** | Pointer to **bool** | | [optional] [readonly] +**IsSyncFailed** | Pointer to **bool** | | [optional] [readonly] +**IsSyncInFlight** | Pointer to **bool** | | [optional] [readonly] +**IsSyncInProgress** | Pointer to **bool** | | [optional] [readonly] +**License** | Pointer to **NullableString** | The license of this package. | [optional] [readonly] +**Name** | Pointer to **NullableString** | The name of this package. | [optional] [readonly] +**Namespace** | Pointer to **string** | | [optional] [readonly] +**NamespaceUrl** | Pointer to **string** | | [optional] [readonly] +**NumFiles** | Pointer to **int64** | | [optional] [readonly] +**OriginRepository** | Pointer to **string** | | [optional] [readonly] +**OriginRepositoryUrl** | Pointer to **string** | | [optional] [readonly] +**PackageType** | Pointer to **int64** | The type of package contents. | [optional] [readonly] +**PolicyViolated** | Pointer to **bool** | Whether or not the package has violated any policy. | [optional] [readonly] +**RawLicense** | Pointer to **NullableString** | The raw license string. | [optional] [readonly] +**Release** | Pointer to **NullableString** | The release of the package version (if any). | [optional] [readonly] +**Repository** | Pointer to **string** | | [optional] [readonly] +**RepositoryUrl** | Pointer to **string** | | [optional] [readonly] +**SecurityScanCompletedAt** | Pointer to **NullableTime** | The datetime the security scanning was completed. | [optional] [readonly] +**SecurityScanStartedAt** | Pointer to **NullableTime** | The datetime the security scanning was started. | [optional] [readonly] +**SecurityScanStatus** | Pointer to **NullableString** | | [optional] [readonly] [default to "Awaiting Security Scan"] +**SecurityScanStatusUpdatedAt** | Pointer to **NullableTime** | The datetime the security scanning status was updated. | [optional] [readonly] +**SelfHtmlUrl** | Pointer to **string** | | [optional] [readonly] +**SelfUrl** | Pointer to **string** | | [optional] [readonly] +**SelfWebappUrl** | Pointer to **string** | | [optional] [readonly] +**SignatureUrl** | Pointer to **NullableString** | | [optional] [readonly] +**Size** | Pointer to **int64** | The calculated size of the package. | [optional] [readonly] +**Slug** | Pointer to **string** | The public unique identifier for the package. | [optional] [readonly] +**SlugPerm** | Pointer to **string** | | [optional] [readonly] +**SpdxLicense** | Pointer to **NullableString** | The SPDX license identifier for this package. | [optional] [readonly] +**Stage** | Pointer to **int64** | The synchronisation (in progress) stage of the package. | [optional] [readonly] +**StageStr** | Pointer to **string** | | [optional] [readonly] +**StageUpdatedAt** | Pointer to **time.Time** | The datetime the package stage was updated at. | [optional] [readonly] +**Status** | Pointer to **int64** | The synchronisation status of the package. | [optional] [readonly] +**StatusReason** | Pointer to **NullableString** | A textual description for the synchronous status reason (if any | [optional] [readonly] +**StatusStr** | Pointer to **string** | | [optional] [readonly] +**StatusUpdatedAt** | Pointer to **time.Time** | The datetime the package status was updated at. | [optional] [readonly] +**StatusUrl** | Pointer to **string** | | [optional] [readonly] +**Subtype** | Pointer to **string** | | [optional] [readonly] +**Summary** | Pointer to **NullableString** | A one-liner synopsis of this package. | [optional] [readonly] +**SyncFinishedAt** | Pointer to **NullableTime** | The datetime the package sync was finished at. | [optional] [readonly] +**SyncProgress** | Pointer to **int64** | Synchronisation progress (from 0-100) | [optional] [readonly] +**TagsAutomatic** | Pointer to **map[string]interface{}** | All tags on the package, grouped by tag type. This includes immutable tags, but doesn't distinguish them from mutable. To see which tags are immutable specifically, see the tags_immutable field. | [optional] +**TagsImmutable** | Pointer to **map[string]interface{}** | All tags on the package, grouped by tag type. This includes immutable tags, but doesn't distinguish them from mutable. To see which tags are immutable specifically, see the tags_immutable field. | [optional] +**TypeDisplay** | Pointer to **string** | | [optional] [readonly] +**UploadedAt** | Pointer to **time.Time** | The date this package was uploaded. | [optional] [readonly] +**Uploader** | Pointer to **string** | | [optional] [readonly] +**UploaderUrl** | Pointer to **string** | | [optional] [readonly] +**Version** | Pointer to **NullableString** | The raw version for this package. | [optional] [readonly] +**VersionOrig** | Pointer to **string** | | [optional] [readonly] +**VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] + +## Methods + +### NewVsxPackageUpload + +`func NewVsxPackageUpload() *VsxPackageUpload` + +NewVsxPackageUpload instantiates a new VsxPackageUpload 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 + +### NewVsxPackageUploadWithDefaults + +`func NewVsxPackageUploadWithDefaults() *VsxPackageUpload` + +NewVsxPackageUploadWithDefaults instantiates a new VsxPackageUpload 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 *VsxPackageUpload) GetArchitectures() []Architecture` + +GetArchitectures returns the Architectures field if non-nil, zero value otherwise. + +### GetArchitecturesOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetArchitectures(v []Architecture)` + +SetArchitectures sets Architectures field to given value. + +### HasArchitectures + +`func (o *VsxPackageUpload) HasArchitectures() bool` + +HasArchitectures returns a boolean if a field has been set. + +### GetCdnUrl + +`func (o *VsxPackageUpload) GetCdnUrl() string` + +GetCdnUrl returns the CdnUrl field if non-nil, zero value otherwise. + +### GetCdnUrlOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetCdnUrl(v string)` + +SetCdnUrl sets CdnUrl field to given value. + +### HasCdnUrl + +`func (o *VsxPackageUpload) HasCdnUrl() bool` + +HasCdnUrl returns a boolean if a field has been set. + +### SetCdnUrlNil + +`func (o *VsxPackageUpload) SetCdnUrlNil(b bool)` + + SetCdnUrlNil sets the value for CdnUrl to be an explicit nil + +### UnsetCdnUrl +`func (o *VsxPackageUpload) UnsetCdnUrl()` + +UnsetCdnUrl ensures that no value is present for CdnUrl, not even an explicit nil +### GetChecksumMd5 + +`func (o *VsxPackageUpload) GetChecksumMd5() string` + +GetChecksumMd5 returns the ChecksumMd5 field if non-nil, zero value otherwise. + +### GetChecksumMd5Ok + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetChecksumMd5(v string)` + +SetChecksumMd5 sets ChecksumMd5 field to given value. + +### HasChecksumMd5 + +`func (o *VsxPackageUpload) HasChecksumMd5() bool` + +HasChecksumMd5 returns a boolean if a field has been set. + +### GetChecksumSha1 + +`func (o *VsxPackageUpload) GetChecksumSha1() string` + +GetChecksumSha1 returns the ChecksumSha1 field if non-nil, zero value otherwise. + +### GetChecksumSha1Ok + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetChecksumSha1(v string)` + +SetChecksumSha1 sets ChecksumSha1 field to given value. + +### HasChecksumSha1 + +`func (o *VsxPackageUpload) HasChecksumSha1() bool` + +HasChecksumSha1 returns a boolean if a field has been set. + +### GetChecksumSha256 + +`func (o *VsxPackageUpload) GetChecksumSha256() string` + +GetChecksumSha256 returns the ChecksumSha256 field if non-nil, zero value otherwise. + +### GetChecksumSha256Ok + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetChecksumSha256(v string)` + +SetChecksumSha256 sets ChecksumSha256 field to given value. + +### HasChecksumSha256 + +`func (o *VsxPackageUpload) HasChecksumSha256() bool` + +HasChecksumSha256 returns a boolean if a field has been set. + +### GetChecksumSha512 + +`func (o *VsxPackageUpload) GetChecksumSha512() string` + +GetChecksumSha512 returns the ChecksumSha512 field if non-nil, zero value otherwise. + +### GetChecksumSha512Ok + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetChecksumSha512(v string)` + +SetChecksumSha512 sets ChecksumSha512 field to given value. + +### HasChecksumSha512 + +`func (o *VsxPackageUpload) HasChecksumSha512() bool` + +HasChecksumSha512 returns a boolean if a field has been set. + +### GetDependenciesChecksumMd5 + +`func (o *VsxPackageUpload) GetDependenciesChecksumMd5() string` + +GetDependenciesChecksumMd5 returns the DependenciesChecksumMd5 field if non-nil, zero value otherwise. + +### GetDependenciesChecksumMd5Ok + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetDependenciesChecksumMd5(v string)` + +SetDependenciesChecksumMd5 sets DependenciesChecksumMd5 field to given value. + +### HasDependenciesChecksumMd5 + +`func (o *VsxPackageUpload) HasDependenciesChecksumMd5() bool` + +HasDependenciesChecksumMd5 returns a boolean if a field has been set. + +### SetDependenciesChecksumMd5Nil + +`func (o *VsxPackageUpload) SetDependenciesChecksumMd5Nil(b bool)` + + SetDependenciesChecksumMd5Nil sets the value for DependenciesChecksumMd5 to be an explicit nil + +### UnsetDependenciesChecksumMd5 +`func (o *VsxPackageUpload) UnsetDependenciesChecksumMd5()` + +UnsetDependenciesChecksumMd5 ensures that no value is present for DependenciesChecksumMd5, not even an explicit nil +### GetDependenciesUrl + +`func (o *VsxPackageUpload) GetDependenciesUrl() string` + +GetDependenciesUrl returns the DependenciesUrl field if non-nil, zero value otherwise. + +### GetDependenciesUrlOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetDependenciesUrl(v string)` + +SetDependenciesUrl sets DependenciesUrl field to given value. + +### HasDependenciesUrl + +`func (o *VsxPackageUpload) HasDependenciesUrl() bool` + +HasDependenciesUrl returns a boolean if a field has been set. + +### GetDescription + +`func (o *VsxPackageUpload) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *VsxPackageUpload) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### SetDescriptionNil + +`func (o *VsxPackageUpload) SetDescriptionNil(b bool)` + + SetDescriptionNil sets the value for Description to be an explicit nil + +### UnsetDescription +`func (o *VsxPackageUpload) UnsetDescription()` + +UnsetDescription ensures that no value is present for Description, not even an explicit nil +### GetDisplayName + +`func (o *VsxPackageUpload) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *VsxPackageUpload) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetDistro + +`func (o *VsxPackageUpload) GetDistro() Distribution` + +GetDistro returns the Distro field if non-nil, zero value otherwise. + +### GetDistroOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetDistro(v Distribution)` + +SetDistro sets Distro field to given value. + +### HasDistro + +`func (o *VsxPackageUpload) HasDistro() bool` + +HasDistro returns a boolean if a field has been set. + +### SetDistroNil + +`func (o *VsxPackageUpload) SetDistroNil(b bool)` + + SetDistroNil sets the value for Distro to be an explicit nil + +### UnsetDistro +`func (o *VsxPackageUpload) UnsetDistro()` + +UnsetDistro ensures that no value is present for Distro, not even an explicit nil +### GetDistroVersion + +`func (o *VsxPackageUpload) GetDistroVersion() DistributionVersion` + +GetDistroVersion returns the DistroVersion field if non-nil, zero value otherwise. + +### GetDistroVersionOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetDistroVersion(v DistributionVersion)` + +SetDistroVersion sets DistroVersion field to given value. + +### HasDistroVersion + +`func (o *VsxPackageUpload) HasDistroVersion() bool` + +HasDistroVersion returns a boolean if a field has been set. + +### GetDownloads + +`func (o *VsxPackageUpload) GetDownloads() int64` + +GetDownloads returns the Downloads field if non-nil, zero value otherwise. + +### GetDownloadsOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetDownloads(v int64)` + +SetDownloads sets Downloads field to given value. + +### HasDownloads + +`func (o *VsxPackageUpload) HasDownloads() bool` + +HasDownloads returns a boolean if a field has been set. + +### GetEpoch + +`func (o *VsxPackageUpload) GetEpoch() int64` + +GetEpoch returns the Epoch field if non-nil, zero value otherwise. + +### GetEpochOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetEpoch(v int64)` + +SetEpoch sets Epoch field to given value. + +### HasEpoch + +`func (o *VsxPackageUpload) HasEpoch() bool` + +HasEpoch returns a boolean if a field has been set. + +### SetEpochNil + +`func (o *VsxPackageUpload) SetEpochNil(b bool)` + + SetEpochNil sets the value for Epoch to be an explicit nil + +### UnsetEpoch +`func (o *VsxPackageUpload) UnsetEpoch()` + +UnsetEpoch ensures that no value is present for Epoch, not even an explicit nil +### GetExtension + +`func (o *VsxPackageUpload) GetExtension() string` + +GetExtension returns the Extension field if non-nil, zero value otherwise. + +### GetExtensionOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetExtension(v string)` + +SetExtension sets Extension field to given value. + +### HasExtension + +`func (o *VsxPackageUpload) HasExtension() bool` + +HasExtension returns a boolean if a field has been set. + +### GetFilename + +`func (o *VsxPackageUpload) GetFilename() string` + +GetFilename returns the Filename field if non-nil, zero value otherwise. + +### GetFilenameOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetFilename(v string)` + +SetFilename sets Filename field to given value. + +### HasFilename + +`func (o *VsxPackageUpload) HasFilename() bool` + +HasFilename returns a boolean if a field has been set. + +### GetFiles + +`func (o *VsxPackageUpload) GetFiles() []PackageFile` + +GetFiles returns the Files field if non-nil, zero value otherwise. + +### GetFilesOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetFiles(v []PackageFile)` + +SetFiles sets Files field to given value. + +### HasFiles + +`func (o *VsxPackageUpload) HasFiles() bool` + +HasFiles returns a boolean if a field has been set. + +### GetFormat + +`func (o *VsxPackageUpload) GetFormat() string` + +GetFormat returns the Format field if non-nil, zero value otherwise. + +### GetFormatOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetFormat(v string)` + +SetFormat sets Format field to given value. + +### HasFormat + +`func (o *VsxPackageUpload) HasFormat() bool` + +HasFormat returns a boolean if a field has been set. + +### GetFormatUrl + +`func (o *VsxPackageUpload) GetFormatUrl() string` + +GetFormatUrl returns the FormatUrl field if non-nil, zero value otherwise. + +### GetFormatUrlOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetFormatUrl(v string)` + +SetFormatUrl sets FormatUrl field to given value. + +### HasFormatUrl + +`func (o *VsxPackageUpload) HasFormatUrl() bool` + +HasFormatUrl returns a boolean if a field has been set. + +### GetFreeableStorage + +`func (o *VsxPackageUpload) GetFreeableStorage() int64` + +GetFreeableStorage returns the FreeableStorage field if non-nil, zero value otherwise. + +### GetFreeableStorageOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetFreeableStorage(v int64)` + +SetFreeableStorage sets FreeableStorage field to given value. + +### HasFreeableStorage + +`func (o *VsxPackageUpload) HasFreeableStorage() bool` + +HasFreeableStorage returns a boolean if a field has been set. + +### GetFullyQualifiedName + +`func (o *VsxPackageUpload) GetFullyQualifiedName() string` + +GetFullyQualifiedName returns the FullyQualifiedName field if non-nil, zero value otherwise. + +### GetFullyQualifiedNameOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetFullyQualifiedName(v string)` + +SetFullyQualifiedName sets FullyQualifiedName field to given value. + +### HasFullyQualifiedName + +`func (o *VsxPackageUpload) HasFullyQualifiedName() bool` + +HasFullyQualifiedName returns a boolean if a field has been set. + +### SetFullyQualifiedNameNil + +`func (o *VsxPackageUpload) SetFullyQualifiedNameNil(b bool)` + + SetFullyQualifiedNameNil sets the value for FullyQualifiedName to be an explicit nil + +### UnsetFullyQualifiedName +`func (o *VsxPackageUpload) UnsetFullyQualifiedName()` + +UnsetFullyQualifiedName ensures that no value is present for FullyQualifiedName, not even an explicit nil +### GetIdentifierPerm + +`func (o *VsxPackageUpload) GetIdentifierPerm() string` + +GetIdentifierPerm returns the IdentifierPerm field if non-nil, zero value otherwise. + +### GetIdentifierPermOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetIdentifierPerm(v string)` + +SetIdentifierPerm sets IdentifierPerm field to given value. + +### HasIdentifierPerm + +`func (o *VsxPackageUpload) HasIdentifierPerm() bool` + +HasIdentifierPerm returns a boolean if a field has been set. + +### GetIdentifiers + +`func (o *VsxPackageUpload) GetIdentifiers() map[string]string` + +GetIdentifiers returns the Identifiers field if non-nil, zero value otherwise. + +### GetIdentifiersOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetIdentifiers(v map[string]string)` + +SetIdentifiers sets Identifiers field to given value. + +### HasIdentifiers + +`func (o *VsxPackageUpload) HasIdentifiers() bool` + +HasIdentifiers returns a boolean if a field has been set. + +### GetIndexed + +`func (o *VsxPackageUpload) GetIndexed() bool` + +GetIndexed returns the Indexed field if non-nil, zero value otherwise. + +### GetIndexedOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetIndexed(v bool)` + +SetIndexed sets Indexed field to given value. + +### HasIndexed + +`func (o *VsxPackageUpload) HasIndexed() bool` + +HasIndexed returns a boolean if a field has been set. + +### GetIsCancellable + +`func (o *VsxPackageUpload) GetIsCancellable() bool` + +GetIsCancellable returns the IsCancellable field if non-nil, zero value otherwise. + +### GetIsCancellableOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetIsCancellable(v bool)` + +SetIsCancellable sets IsCancellable field to given value. + +### HasIsCancellable + +`func (o *VsxPackageUpload) HasIsCancellable() bool` + +HasIsCancellable returns a boolean if a field has been set. + +### GetIsCopyable + +`func (o *VsxPackageUpload) GetIsCopyable() bool` + +GetIsCopyable returns the IsCopyable field if non-nil, zero value otherwise. + +### GetIsCopyableOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetIsCopyable(v bool)` + +SetIsCopyable sets IsCopyable field to given value. + +### HasIsCopyable + +`func (o *VsxPackageUpload) HasIsCopyable() bool` + +HasIsCopyable returns a boolean if a field has been set. + +### GetIsDeleteable + +`func (o *VsxPackageUpload) GetIsDeleteable() bool` + +GetIsDeleteable returns the IsDeleteable field if non-nil, zero value otherwise. + +### GetIsDeleteableOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetIsDeleteable(v bool)` + +SetIsDeleteable sets IsDeleteable field to given value. + +### HasIsDeleteable + +`func (o *VsxPackageUpload) HasIsDeleteable() bool` + +HasIsDeleteable returns a boolean if a field has been set. + +### GetIsDownloadable + +`func (o *VsxPackageUpload) GetIsDownloadable() bool` + +GetIsDownloadable returns the IsDownloadable field if non-nil, zero value otherwise. + +### GetIsDownloadableOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetIsDownloadable(v bool)` + +SetIsDownloadable sets IsDownloadable field to given value. + +### HasIsDownloadable + +`func (o *VsxPackageUpload) HasIsDownloadable() bool` + +HasIsDownloadable returns a boolean if a field has been set. + +### GetIsMoveable + +`func (o *VsxPackageUpload) GetIsMoveable() bool` + +GetIsMoveable returns the IsMoveable field if non-nil, zero value otherwise. + +### GetIsMoveableOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetIsMoveable(v bool)` + +SetIsMoveable sets IsMoveable field to given value. + +### HasIsMoveable + +`func (o *VsxPackageUpload) HasIsMoveable() bool` + +HasIsMoveable returns a boolean if a field has been set. + +### GetIsQuarantinable + +`func (o *VsxPackageUpload) GetIsQuarantinable() bool` + +GetIsQuarantinable returns the IsQuarantinable field if non-nil, zero value otherwise. + +### GetIsQuarantinableOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetIsQuarantinable(v bool)` + +SetIsQuarantinable sets IsQuarantinable field to given value. + +### HasIsQuarantinable + +`func (o *VsxPackageUpload) HasIsQuarantinable() bool` + +HasIsQuarantinable returns a boolean if a field has been set. + +### GetIsQuarantined + +`func (o *VsxPackageUpload) GetIsQuarantined() bool` + +GetIsQuarantined returns the IsQuarantined field if non-nil, zero value otherwise. + +### GetIsQuarantinedOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetIsQuarantined(v bool)` + +SetIsQuarantined sets IsQuarantined field to given value. + +### HasIsQuarantined + +`func (o *VsxPackageUpload) HasIsQuarantined() bool` + +HasIsQuarantined returns a boolean if a field has been set. + +### GetIsResyncable + +`func (o *VsxPackageUpload) GetIsResyncable() bool` + +GetIsResyncable returns the IsResyncable field if non-nil, zero value otherwise. + +### GetIsResyncableOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetIsResyncable(v bool)` + +SetIsResyncable sets IsResyncable field to given value. + +### HasIsResyncable + +`func (o *VsxPackageUpload) HasIsResyncable() bool` + +HasIsResyncable returns a boolean if a field has been set. + +### GetIsSecurityScannable + +`func (o *VsxPackageUpload) GetIsSecurityScannable() bool` + +GetIsSecurityScannable returns the IsSecurityScannable field if non-nil, zero value otherwise. + +### GetIsSecurityScannableOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetIsSecurityScannable(v bool)` + +SetIsSecurityScannable sets IsSecurityScannable field to given value. + +### HasIsSecurityScannable + +`func (o *VsxPackageUpload) HasIsSecurityScannable() bool` + +HasIsSecurityScannable returns a boolean if a field has been set. + +### GetIsSyncAwaiting + +`func (o *VsxPackageUpload) GetIsSyncAwaiting() bool` + +GetIsSyncAwaiting returns the IsSyncAwaiting field if non-nil, zero value otherwise. + +### GetIsSyncAwaitingOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetIsSyncAwaiting(v bool)` + +SetIsSyncAwaiting sets IsSyncAwaiting field to given value. + +### HasIsSyncAwaiting + +`func (o *VsxPackageUpload) HasIsSyncAwaiting() bool` + +HasIsSyncAwaiting returns a boolean if a field has been set. + +### GetIsSyncCompleted + +`func (o *VsxPackageUpload) GetIsSyncCompleted() bool` + +GetIsSyncCompleted returns the IsSyncCompleted field if non-nil, zero value otherwise. + +### GetIsSyncCompletedOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetIsSyncCompleted(v bool)` + +SetIsSyncCompleted sets IsSyncCompleted field to given value. + +### HasIsSyncCompleted + +`func (o *VsxPackageUpload) HasIsSyncCompleted() bool` + +HasIsSyncCompleted returns a boolean if a field has been set. + +### GetIsSyncFailed + +`func (o *VsxPackageUpload) GetIsSyncFailed() bool` + +GetIsSyncFailed returns the IsSyncFailed field if non-nil, zero value otherwise. + +### GetIsSyncFailedOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetIsSyncFailed(v bool)` + +SetIsSyncFailed sets IsSyncFailed field to given value. + +### HasIsSyncFailed + +`func (o *VsxPackageUpload) HasIsSyncFailed() bool` + +HasIsSyncFailed returns a boolean if a field has been set. + +### GetIsSyncInFlight + +`func (o *VsxPackageUpload) GetIsSyncInFlight() bool` + +GetIsSyncInFlight returns the IsSyncInFlight field if non-nil, zero value otherwise. + +### GetIsSyncInFlightOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetIsSyncInFlight(v bool)` + +SetIsSyncInFlight sets IsSyncInFlight field to given value. + +### HasIsSyncInFlight + +`func (o *VsxPackageUpload) HasIsSyncInFlight() bool` + +HasIsSyncInFlight returns a boolean if a field has been set. + +### GetIsSyncInProgress + +`func (o *VsxPackageUpload) GetIsSyncInProgress() bool` + +GetIsSyncInProgress returns the IsSyncInProgress field if non-nil, zero value otherwise. + +### GetIsSyncInProgressOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetIsSyncInProgress(v bool)` + +SetIsSyncInProgress sets IsSyncInProgress field to given value. + +### HasIsSyncInProgress + +`func (o *VsxPackageUpload) HasIsSyncInProgress() bool` + +HasIsSyncInProgress returns a boolean if a field has been set. + +### GetLicense + +`func (o *VsxPackageUpload) GetLicense() string` + +GetLicense returns the License field if non-nil, zero value otherwise. + +### GetLicenseOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetLicense(v string)` + +SetLicense sets License field to given value. + +### HasLicense + +`func (o *VsxPackageUpload) HasLicense() bool` + +HasLicense returns a boolean if a field has been set. + +### SetLicenseNil + +`func (o *VsxPackageUpload) SetLicenseNil(b bool)` + + SetLicenseNil sets the value for License to be an explicit nil + +### UnsetLicense +`func (o *VsxPackageUpload) UnsetLicense()` + +UnsetLicense ensures that no value is present for License, not even an explicit nil +### GetName + +`func (o *VsxPackageUpload) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *VsxPackageUpload) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *VsxPackageUpload) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *VsxPackageUpload) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetNamespace + +`func (o *VsxPackageUpload) GetNamespace() string` + +GetNamespace returns the Namespace field if non-nil, zero value otherwise. + +### GetNamespaceOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetNamespace(v string)` + +SetNamespace sets Namespace field to given value. + +### HasNamespace + +`func (o *VsxPackageUpload) HasNamespace() bool` + +HasNamespace returns a boolean if a field has been set. + +### GetNamespaceUrl + +`func (o *VsxPackageUpload) GetNamespaceUrl() string` + +GetNamespaceUrl returns the NamespaceUrl field if non-nil, zero value otherwise. + +### GetNamespaceUrlOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetNamespaceUrl(v string)` + +SetNamespaceUrl sets NamespaceUrl field to given value. + +### HasNamespaceUrl + +`func (o *VsxPackageUpload) HasNamespaceUrl() bool` + +HasNamespaceUrl returns a boolean if a field has been set. + +### GetNumFiles + +`func (o *VsxPackageUpload) GetNumFiles() int64` + +GetNumFiles returns the NumFiles field if non-nil, zero value otherwise. + +### GetNumFilesOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetNumFiles(v int64)` + +SetNumFiles sets NumFiles field to given value. + +### HasNumFiles + +`func (o *VsxPackageUpload) HasNumFiles() bool` + +HasNumFiles returns a boolean if a field has been set. + +### GetOriginRepository + +`func (o *VsxPackageUpload) GetOriginRepository() string` + +GetOriginRepository returns the OriginRepository field if non-nil, zero value otherwise. + +### GetOriginRepositoryOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetOriginRepository(v string)` + +SetOriginRepository sets OriginRepository field to given value. + +### HasOriginRepository + +`func (o *VsxPackageUpload) HasOriginRepository() bool` + +HasOriginRepository returns a boolean if a field has been set. + +### GetOriginRepositoryUrl + +`func (o *VsxPackageUpload) GetOriginRepositoryUrl() string` + +GetOriginRepositoryUrl returns the OriginRepositoryUrl field if non-nil, zero value otherwise. + +### GetOriginRepositoryUrlOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetOriginRepositoryUrl(v string)` + +SetOriginRepositoryUrl sets OriginRepositoryUrl field to given value. + +### HasOriginRepositoryUrl + +`func (o *VsxPackageUpload) HasOriginRepositoryUrl() bool` + +HasOriginRepositoryUrl returns a boolean if a field has been set. + +### GetPackageType + +`func (o *VsxPackageUpload) GetPackageType() int64` + +GetPackageType returns the PackageType field if non-nil, zero value otherwise. + +### GetPackageTypeOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetPackageType(v int64)` + +SetPackageType sets PackageType field to given value. + +### HasPackageType + +`func (o *VsxPackageUpload) HasPackageType() bool` + +HasPackageType returns a boolean if a field has been set. + +### GetPolicyViolated + +`func (o *VsxPackageUpload) GetPolicyViolated() bool` + +GetPolicyViolated returns the PolicyViolated field if non-nil, zero value otherwise. + +### GetPolicyViolatedOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetPolicyViolated(v bool)` + +SetPolicyViolated sets PolicyViolated field to given value. + +### HasPolicyViolated + +`func (o *VsxPackageUpload) HasPolicyViolated() bool` + +HasPolicyViolated returns a boolean if a field has been set. + +### GetRawLicense + +`func (o *VsxPackageUpload) GetRawLicense() string` + +GetRawLicense returns the RawLicense field if non-nil, zero value otherwise. + +### GetRawLicenseOk + +`func (o *VsxPackageUpload) GetRawLicenseOk() (*string, bool)` + +GetRawLicenseOk returns a tuple with the RawLicense field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRawLicense + +`func (o *VsxPackageUpload) SetRawLicense(v string)` + +SetRawLicense sets RawLicense field to given value. + +### HasRawLicense + +`func (o *VsxPackageUpload) HasRawLicense() bool` + +HasRawLicense returns a boolean if a field has been set. + +### SetRawLicenseNil + +`func (o *VsxPackageUpload) SetRawLicenseNil(b bool)` + + SetRawLicenseNil sets the value for RawLicense to be an explicit nil + +### UnsetRawLicense +`func (o *VsxPackageUpload) UnsetRawLicense()` + +UnsetRawLicense ensures that no value is present for RawLicense, not even an explicit nil +### GetRelease + +`func (o *VsxPackageUpload) GetRelease() string` + +GetRelease returns the Release field if non-nil, zero value otherwise. + +### GetReleaseOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetRelease(v string)` + +SetRelease sets Release field to given value. + +### HasRelease + +`func (o *VsxPackageUpload) HasRelease() bool` + +HasRelease returns a boolean if a field has been set. + +### SetReleaseNil + +`func (o *VsxPackageUpload) SetReleaseNil(b bool)` + + SetReleaseNil sets the value for Release to be an explicit nil + +### UnsetRelease +`func (o *VsxPackageUpload) UnsetRelease()` + +UnsetRelease ensures that no value is present for Release, not even an explicit nil +### GetRepository + +`func (o *VsxPackageUpload) GetRepository() string` + +GetRepository returns the Repository field if non-nil, zero value otherwise. + +### GetRepositoryOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetRepository(v string)` + +SetRepository sets Repository field to given value. + +### HasRepository + +`func (o *VsxPackageUpload) HasRepository() bool` + +HasRepository returns a boolean if a field has been set. + +### GetRepositoryUrl + +`func (o *VsxPackageUpload) GetRepositoryUrl() string` + +GetRepositoryUrl returns the RepositoryUrl field if non-nil, zero value otherwise. + +### GetRepositoryUrlOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetRepositoryUrl(v string)` + +SetRepositoryUrl sets RepositoryUrl field to given value. + +### HasRepositoryUrl + +`func (o *VsxPackageUpload) HasRepositoryUrl() bool` + +HasRepositoryUrl returns a boolean if a field has been set. + +### GetSecurityScanCompletedAt + +`func (o *VsxPackageUpload) GetSecurityScanCompletedAt() time.Time` + +GetSecurityScanCompletedAt returns the SecurityScanCompletedAt field if non-nil, zero value otherwise. + +### GetSecurityScanCompletedAtOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetSecurityScanCompletedAt(v time.Time)` + +SetSecurityScanCompletedAt sets SecurityScanCompletedAt field to given value. + +### HasSecurityScanCompletedAt + +`func (o *VsxPackageUpload) HasSecurityScanCompletedAt() bool` + +HasSecurityScanCompletedAt returns a boolean if a field has been set. + +### SetSecurityScanCompletedAtNil + +`func (o *VsxPackageUpload) SetSecurityScanCompletedAtNil(b bool)` + + SetSecurityScanCompletedAtNil sets the value for SecurityScanCompletedAt to be an explicit nil + +### UnsetSecurityScanCompletedAt +`func (o *VsxPackageUpload) UnsetSecurityScanCompletedAt()` + +UnsetSecurityScanCompletedAt ensures that no value is present for SecurityScanCompletedAt, not even an explicit nil +### GetSecurityScanStartedAt + +`func (o *VsxPackageUpload) GetSecurityScanStartedAt() time.Time` + +GetSecurityScanStartedAt returns the SecurityScanStartedAt field if non-nil, zero value otherwise. + +### GetSecurityScanStartedAtOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetSecurityScanStartedAt(v time.Time)` + +SetSecurityScanStartedAt sets SecurityScanStartedAt field to given value. + +### HasSecurityScanStartedAt + +`func (o *VsxPackageUpload) HasSecurityScanStartedAt() bool` + +HasSecurityScanStartedAt returns a boolean if a field has been set. + +### SetSecurityScanStartedAtNil + +`func (o *VsxPackageUpload) SetSecurityScanStartedAtNil(b bool)` + + SetSecurityScanStartedAtNil sets the value for SecurityScanStartedAt to be an explicit nil + +### UnsetSecurityScanStartedAt +`func (o *VsxPackageUpload) UnsetSecurityScanStartedAt()` + +UnsetSecurityScanStartedAt ensures that no value is present for SecurityScanStartedAt, not even an explicit nil +### GetSecurityScanStatus + +`func (o *VsxPackageUpload) GetSecurityScanStatus() string` + +GetSecurityScanStatus returns the SecurityScanStatus field if non-nil, zero value otherwise. + +### GetSecurityScanStatusOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetSecurityScanStatus(v string)` + +SetSecurityScanStatus sets SecurityScanStatus field to given value. + +### HasSecurityScanStatus + +`func (o *VsxPackageUpload) HasSecurityScanStatus() bool` + +HasSecurityScanStatus returns a boolean if a field has been set. + +### SetSecurityScanStatusNil + +`func (o *VsxPackageUpload) SetSecurityScanStatusNil(b bool)` + + SetSecurityScanStatusNil sets the value for SecurityScanStatus to be an explicit nil + +### UnsetSecurityScanStatus +`func (o *VsxPackageUpload) UnsetSecurityScanStatus()` + +UnsetSecurityScanStatus ensures that no value is present for SecurityScanStatus, not even an explicit nil +### GetSecurityScanStatusUpdatedAt + +`func (o *VsxPackageUpload) GetSecurityScanStatusUpdatedAt() time.Time` + +GetSecurityScanStatusUpdatedAt returns the SecurityScanStatusUpdatedAt field if non-nil, zero value otherwise. + +### GetSecurityScanStatusUpdatedAtOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetSecurityScanStatusUpdatedAt(v time.Time)` + +SetSecurityScanStatusUpdatedAt sets SecurityScanStatusUpdatedAt field to given value. + +### HasSecurityScanStatusUpdatedAt + +`func (o *VsxPackageUpload) HasSecurityScanStatusUpdatedAt() bool` + +HasSecurityScanStatusUpdatedAt returns a boolean if a field has been set. + +### SetSecurityScanStatusUpdatedAtNil + +`func (o *VsxPackageUpload) SetSecurityScanStatusUpdatedAtNil(b bool)` + + SetSecurityScanStatusUpdatedAtNil sets the value for SecurityScanStatusUpdatedAt to be an explicit nil + +### UnsetSecurityScanStatusUpdatedAt +`func (o *VsxPackageUpload) UnsetSecurityScanStatusUpdatedAt()` + +UnsetSecurityScanStatusUpdatedAt ensures that no value is present for SecurityScanStatusUpdatedAt, not even an explicit nil +### GetSelfHtmlUrl + +`func (o *VsxPackageUpload) GetSelfHtmlUrl() string` + +GetSelfHtmlUrl returns the SelfHtmlUrl field if non-nil, zero value otherwise. + +### GetSelfHtmlUrlOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetSelfHtmlUrl(v string)` + +SetSelfHtmlUrl sets SelfHtmlUrl field to given value. + +### HasSelfHtmlUrl + +`func (o *VsxPackageUpload) HasSelfHtmlUrl() bool` + +HasSelfHtmlUrl returns a boolean if a field has been set. + +### GetSelfUrl + +`func (o *VsxPackageUpload) GetSelfUrl() string` + +GetSelfUrl returns the SelfUrl field if non-nil, zero value otherwise. + +### GetSelfUrlOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetSelfUrl(v string)` + +SetSelfUrl sets SelfUrl field to given value. + +### HasSelfUrl + +`func (o *VsxPackageUpload) HasSelfUrl() bool` + +HasSelfUrl returns a boolean if a field has been set. + +### GetSelfWebappUrl + +`func (o *VsxPackageUpload) GetSelfWebappUrl() string` + +GetSelfWebappUrl returns the SelfWebappUrl field if non-nil, zero value otherwise. + +### GetSelfWebappUrlOk + +`func (o *VsxPackageUpload) GetSelfWebappUrlOk() (*string, bool)` + +GetSelfWebappUrlOk returns a tuple with the SelfWebappUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSelfWebappUrl + +`func (o *VsxPackageUpload) SetSelfWebappUrl(v string)` + +SetSelfWebappUrl sets SelfWebappUrl field to given value. + +### HasSelfWebappUrl + +`func (o *VsxPackageUpload) HasSelfWebappUrl() bool` + +HasSelfWebappUrl returns a boolean if a field has been set. + +### GetSignatureUrl + +`func (o *VsxPackageUpload) GetSignatureUrl() string` + +GetSignatureUrl returns the SignatureUrl field if non-nil, zero value otherwise. + +### GetSignatureUrlOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetSignatureUrl(v string)` + +SetSignatureUrl sets SignatureUrl field to given value. + +### HasSignatureUrl + +`func (o *VsxPackageUpload) HasSignatureUrl() bool` + +HasSignatureUrl returns a boolean if a field has been set. + +### SetSignatureUrlNil + +`func (o *VsxPackageUpload) SetSignatureUrlNil(b bool)` + + SetSignatureUrlNil sets the value for SignatureUrl to be an explicit nil + +### UnsetSignatureUrl +`func (o *VsxPackageUpload) UnsetSignatureUrl()` + +UnsetSignatureUrl ensures that no value is present for SignatureUrl, not even an explicit nil +### GetSize + +`func (o *VsxPackageUpload) GetSize() int64` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetSize(v int64)` + +SetSize sets Size field to given value. + +### HasSize + +`func (o *VsxPackageUpload) HasSize() bool` + +HasSize returns a boolean if a field has been set. + +### GetSlug + +`func (o *VsxPackageUpload) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetSlug(v string)` + +SetSlug sets Slug field to given value. + +### HasSlug + +`func (o *VsxPackageUpload) HasSlug() bool` + +HasSlug returns a boolean if a field has been set. + +### GetSlugPerm + +`func (o *VsxPackageUpload) GetSlugPerm() string` + +GetSlugPerm returns the SlugPerm field if non-nil, zero value otherwise. + +### GetSlugPermOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetSlugPerm(v string)` + +SetSlugPerm sets SlugPerm field to given value. + +### HasSlugPerm + +`func (o *VsxPackageUpload) HasSlugPerm() bool` + +HasSlugPerm returns a boolean if a field has been set. + +### GetSpdxLicense + +`func (o *VsxPackageUpload) GetSpdxLicense() string` + +GetSpdxLicense returns the SpdxLicense field if non-nil, zero value otherwise. + +### GetSpdxLicenseOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetSpdxLicense(v string)` + +SetSpdxLicense sets SpdxLicense field to given value. + +### HasSpdxLicense + +`func (o *VsxPackageUpload) HasSpdxLicense() bool` + +HasSpdxLicense returns a boolean if a field has been set. + +### SetSpdxLicenseNil + +`func (o *VsxPackageUpload) SetSpdxLicenseNil(b bool)` + + SetSpdxLicenseNil sets the value for SpdxLicense to be an explicit nil + +### UnsetSpdxLicense +`func (o *VsxPackageUpload) UnsetSpdxLicense()` + +UnsetSpdxLicense ensures that no value is present for SpdxLicense, not even an explicit nil +### GetStage + +`func (o *VsxPackageUpload) GetStage() int64` + +GetStage returns the Stage field if non-nil, zero value otherwise. + +### GetStageOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetStage(v int64)` + +SetStage sets Stage field to given value. + +### HasStage + +`func (o *VsxPackageUpload) HasStage() bool` + +HasStage returns a boolean if a field has been set. + +### GetStageStr + +`func (o *VsxPackageUpload) GetStageStr() string` + +GetStageStr returns the StageStr field if non-nil, zero value otherwise. + +### GetStageStrOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetStageStr(v string)` + +SetStageStr sets StageStr field to given value. + +### HasStageStr + +`func (o *VsxPackageUpload) HasStageStr() bool` + +HasStageStr returns a boolean if a field has been set. + +### GetStageUpdatedAt + +`func (o *VsxPackageUpload) GetStageUpdatedAt() time.Time` + +GetStageUpdatedAt returns the StageUpdatedAt field if non-nil, zero value otherwise. + +### GetStageUpdatedAtOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetStageUpdatedAt(v time.Time)` + +SetStageUpdatedAt sets StageUpdatedAt field to given value. + +### HasStageUpdatedAt + +`func (o *VsxPackageUpload) HasStageUpdatedAt() bool` + +HasStageUpdatedAt returns a boolean if a field has been set. + +### GetStatus + +`func (o *VsxPackageUpload) GetStatus() int64` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetStatus(v int64)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *VsxPackageUpload) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetStatusReason + +`func (o *VsxPackageUpload) GetStatusReason() string` + +GetStatusReason returns the StatusReason field if non-nil, zero value otherwise. + +### GetStatusReasonOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetStatusReason(v string)` + +SetStatusReason sets StatusReason field to given value. + +### HasStatusReason + +`func (o *VsxPackageUpload) HasStatusReason() bool` + +HasStatusReason returns a boolean if a field has been set. + +### SetStatusReasonNil + +`func (o *VsxPackageUpload) SetStatusReasonNil(b bool)` + + SetStatusReasonNil sets the value for StatusReason to be an explicit nil + +### UnsetStatusReason +`func (o *VsxPackageUpload) UnsetStatusReason()` + +UnsetStatusReason ensures that no value is present for StatusReason, not even an explicit nil +### GetStatusStr + +`func (o *VsxPackageUpload) GetStatusStr() string` + +GetStatusStr returns the StatusStr field if non-nil, zero value otherwise. + +### GetStatusStrOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetStatusStr(v string)` + +SetStatusStr sets StatusStr field to given value. + +### HasStatusStr + +`func (o *VsxPackageUpload) HasStatusStr() bool` + +HasStatusStr returns a boolean if a field has been set. + +### GetStatusUpdatedAt + +`func (o *VsxPackageUpload) GetStatusUpdatedAt() time.Time` + +GetStatusUpdatedAt returns the StatusUpdatedAt field if non-nil, zero value otherwise. + +### GetStatusUpdatedAtOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetStatusUpdatedAt(v time.Time)` + +SetStatusUpdatedAt sets StatusUpdatedAt field to given value. + +### HasStatusUpdatedAt + +`func (o *VsxPackageUpload) HasStatusUpdatedAt() bool` + +HasStatusUpdatedAt returns a boolean if a field has been set. + +### GetStatusUrl + +`func (o *VsxPackageUpload) GetStatusUrl() string` + +GetStatusUrl returns the StatusUrl field if non-nil, zero value otherwise. + +### GetStatusUrlOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetStatusUrl(v string)` + +SetStatusUrl sets StatusUrl field to given value. + +### HasStatusUrl + +`func (o *VsxPackageUpload) HasStatusUrl() bool` + +HasStatusUrl returns a boolean if a field has been set. + +### GetSubtype + +`func (o *VsxPackageUpload) GetSubtype() string` + +GetSubtype returns the Subtype field if non-nil, zero value otherwise. + +### GetSubtypeOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetSubtype(v string)` + +SetSubtype sets Subtype field to given value. + +### HasSubtype + +`func (o *VsxPackageUpload) HasSubtype() bool` + +HasSubtype returns a boolean if a field has been set. + +### GetSummary + +`func (o *VsxPackageUpload) GetSummary() string` + +GetSummary returns the Summary field if non-nil, zero value otherwise. + +### GetSummaryOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetSummary(v string)` + +SetSummary sets Summary field to given value. + +### HasSummary + +`func (o *VsxPackageUpload) HasSummary() bool` + +HasSummary returns a boolean if a field has been set. + +### SetSummaryNil + +`func (o *VsxPackageUpload) SetSummaryNil(b bool)` + + SetSummaryNil sets the value for Summary to be an explicit nil + +### UnsetSummary +`func (o *VsxPackageUpload) UnsetSummary()` + +UnsetSummary ensures that no value is present for Summary, not even an explicit nil +### GetSyncFinishedAt + +`func (o *VsxPackageUpload) GetSyncFinishedAt() time.Time` + +GetSyncFinishedAt returns the SyncFinishedAt field if non-nil, zero value otherwise. + +### GetSyncFinishedAtOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetSyncFinishedAt(v time.Time)` + +SetSyncFinishedAt sets SyncFinishedAt field to given value. + +### HasSyncFinishedAt + +`func (o *VsxPackageUpload) HasSyncFinishedAt() bool` + +HasSyncFinishedAt returns a boolean if a field has been set. + +### SetSyncFinishedAtNil + +`func (o *VsxPackageUpload) SetSyncFinishedAtNil(b bool)` + + SetSyncFinishedAtNil sets the value for SyncFinishedAt to be an explicit nil + +### UnsetSyncFinishedAt +`func (o *VsxPackageUpload) UnsetSyncFinishedAt()` + +UnsetSyncFinishedAt ensures that no value is present for SyncFinishedAt, not even an explicit nil +### GetSyncProgress + +`func (o *VsxPackageUpload) GetSyncProgress() int64` + +GetSyncProgress returns the SyncProgress field if non-nil, zero value otherwise. + +### GetSyncProgressOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetSyncProgress(v int64)` + +SetSyncProgress sets SyncProgress field to given value. + +### HasSyncProgress + +`func (o *VsxPackageUpload) HasSyncProgress() bool` + +HasSyncProgress returns a boolean if a field has been set. + +### GetTagsAutomatic + +`func (o *VsxPackageUpload) GetTagsAutomatic() map[string]interface{}` + +GetTagsAutomatic returns the TagsAutomatic field if non-nil, zero value otherwise. + +### GetTagsAutomaticOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetTagsAutomatic(v map[string]interface{})` + +SetTagsAutomatic sets TagsAutomatic field to given value. + +### HasTagsAutomatic + +`func (o *VsxPackageUpload) HasTagsAutomatic() bool` + +HasTagsAutomatic returns a boolean if a field has been set. + +### GetTagsImmutable + +`func (o *VsxPackageUpload) GetTagsImmutable() map[string]interface{}` + +GetTagsImmutable returns the TagsImmutable field if non-nil, zero value otherwise. + +### GetTagsImmutableOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetTagsImmutable(v map[string]interface{})` + +SetTagsImmutable sets TagsImmutable field to given value. + +### HasTagsImmutable + +`func (o *VsxPackageUpload) HasTagsImmutable() bool` + +HasTagsImmutable returns a boolean if a field has been set. + +### GetTypeDisplay + +`func (o *VsxPackageUpload) GetTypeDisplay() string` + +GetTypeDisplay returns the TypeDisplay field if non-nil, zero value otherwise. + +### GetTypeDisplayOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetTypeDisplay(v string)` + +SetTypeDisplay sets TypeDisplay field to given value. + +### HasTypeDisplay + +`func (o *VsxPackageUpload) HasTypeDisplay() bool` + +HasTypeDisplay returns a boolean if a field has been set. + +### GetUploadedAt + +`func (o *VsxPackageUpload) GetUploadedAt() time.Time` + +GetUploadedAt returns the UploadedAt field if non-nil, zero value otherwise. + +### GetUploadedAtOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetUploadedAt(v time.Time)` + +SetUploadedAt sets UploadedAt field to given value. + +### HasUploadedAt + +`func (o *VsxPackageUpload) HasUploadedAt() bool` + +HasUploadedAt returns a boolean if a field has been set. + +### GetUploader + +`func (o *VsxPackageUpload) GetUploader() string` + +GetUploader returns the Uploader field if non-nil, zero value otherwise. + +### GetUploaderOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetUploader(v string)` + +SetUploader sets Uploader field to given value. + +### HasUploader + +`func (o *VsxPackageUpload) HasUploader() bool` + +HasUploader returns a boolean if a field has been set. + +### GetUploaderUrl + +`func (o *VsxPackageUpload) GetUploaderUrl() string` + +GetUploaderUrl returns the UploaderUrl field if non-nil, zero value otherwise. + +### GetUploaderUrlOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetUploaderUrl(v string)` + +SetUploaderUrl sets UploaderUrl field to given value. + +### HasUploaderUrl + +`func (o *VsxPackageUpload) HasUploaderUrl() bool` + +HasUploaderUrl returns a boolean if a field has been set. + +### GetVersion + +`func (o *VsxPackageUpload) GetVersion() string` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetVersion(v string)` + +SetVersion sets Version field to given value. + +### HasVersion + +`func (o *VsxPackageUpload) HasVersion() bool` + +HasVersion returns a boolean if a field has been set. + +### SetVersionNil + +`func (o *VsxPackageUpload) SetVersionNil(b bool)` + + SetVersionNil sets the value for Version to be an explicit nil + +### UnsetVersion +`func (o *VsxPackageUpload) UnsetVersion()` + +UnsetVersion ensures that no value is present for Version, not even an explicit nil +### GetVersionOrig + +`func (o *VsxPackageUpload) GetVersionOrig() string` + +GetVersionOrig returns the VersionOrig field if non-nil, zero value otherwise. + +### GetVersionOrigOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetVersionOrig(v string)` + +SetVersionOrig sets VersionOrig field to given value. + +### HasVersionOrig + +`func (o *VsxPackageUpload) HasVersionOrig() bool` + +HasVersionOrig returns a boolean if a field has been set. + +### GetVulnerabilityScanResultsUrl + +`func (o *VsxPackageUpload) GetVulnerabilityScanResultsUrl() string` + +GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field if non-nil, zero value otherwise. + +### GetVulnerabilityScanResultsUrlOk + +`func (o *VsxPackageUpload) 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 *VsxPackageUpload) SetVulnerabilityScanResultsUrl(v string)` + +SetVulnerabilityScanResultsUrl sets VulnerabilityScanResultsUrl field to given value. + +### HasVulnerabilityScanResultsUrl + +`func (o *VsxPackageUpload) 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/VsxPackageUploadRequest.md b/docs/VsxPackageUploadRequest.md new file mode 100644 index 00000000..6667d553 --- /dev/null +++ b/docs/VsxPackageUploadRequest.md @@ -0,0 +1,113 @@ +# VsxPackageUploadRequest + +## 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 + +### NewVsxPackageUploadRequest + +`func NewVsxPackageUploadRequest(packageFile string, ) *VsxPackageUploadRequest` + +NewVsxPackageUploadRequest instantiates a new VsxPackageUploadRequest 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 + +### NewVsxPackageUploadRequestWithDefaults + +`func NewVsxPackageUploadRequestWithDefaults() *VsxPackageUploadRequest` + +NewVsxPackageUploadRequestWithDefaults instantiates a new VsxPackageUploadRequest 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 *VsxPackageUploadRequest) GetPackageFile() string` + +GetPackageFile returns the PackageFile field if non-nil, zero value otherwise. + +### GetPackageFileOk + +`func (o *VsxPackageUploadRequest) 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 *VsxPackageUploadRequest) SetPackageFile(v string)` + +SetPackageFile sets PackageFile field to given value. + + +### GetRepublish + +`func (o *VsxPackageUploadRequest) GetRepublish() bool` + +GetRepublish returns the Republish field if non-nil, zero value otherwise. + +### GetRepublishOk + +`func (o *VsxPackageUploadRequest) 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 *VsxPackageUploadRequest) SetRepublish(v bool)` + +SetRepublish sets Republish field to given value. + +### HasRepublish + +`func (o *VsxPackageUploadRequest) HasRepublish() bool` + +HasRepublish returns a boolean if a field has been set. + +### GetTags + +`func (o *VsxPackageUploadRequest) GetTags() string` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *VsxPackageUploadRequest) 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 *VsxPackageUploadRequest) SetTags(v string)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *VsxPackageUploadRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### SetTagsNil + +`func (o *VsxPackageUploadRequest) SetTagsNil(b bool)` + + SetTagsNil sets the value for Tags to be an explicit nil + +### UnsetTags +`func (o *VsxPackageUploadRequest) 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/model_allocated_limit.go b/model_allocated_limit.go index 3edc9bf2..b1e2cf4e 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_allocated_limit_raw.go b/model_allocated_limit_raw.go index 44ae0d4a..c7bdef27 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_alpine_package_upload.go b/model_alpine_package_upload.go index bbdf193c..33788f38 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_alpine_package_upload_request.go b/model_alpine_package_upload_request.go index d2786861..f94e9a3e 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_alpine_upstream.go b/model_alpine_upstream.go new file mode 100644 index 00000000..c6981d5d --- /dev/null +++ b/model_alpine_upstream.go @@ -0,0 +1,1155 @@ +/* +Cloudsmith API (v1) + +The API to the Cloudsmith Service + +API version: 1.1093.0 +Contact: support@cloudsmith.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cloudsmith + +import ( + "encoding/json" + "fmt" + "time" +) + +// checks if the AlpineUpstream type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AlpineUpstream{} + +// AlpineUpstream struct for AlpineUpstream +type AlpineUpstream 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"` + // Whether the upstream is available for use. + Available *bool `json:"available,omitempty"` + // Whether the upstream can be reindexed. + CanReindex *bool `json:"can_reindex,omitempty"` + // The datetime the upstream source was created. + CreatedAt *time.Time `json:"created_at,omitempty"` + DisableReason *string `json:"disable_reason,omitempty"` + // Human-readable explanation of why this upstream is disabled + DisableReasonText *string `json:"disable_reason_text,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 the upstream has failed signature verification. + HasFailedSignatureVerification *bool `json:"has_failed_signature_verification,omitempty"` + // The number of packages available in this upstream source + IndexPackageCount NullableInt64 `json:"index_package_count,omitempty"` + // The current indexing status of this upstream source + IndexStatus *string `json:"index_status,omitempty"` + // Whether or not this upstream is active and ready for requests. + IsActive *bool `json:"is_active,omitempty"` + // The last time this upstream source was indexed + LastIndexed *string `json:"last_indexed,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 _AlpineUpstream AlpineUpstream + +// NewAlpineUpstream instantiates a new AlpineUpstream 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 NewAlpineUpstream(name string, upstreamUrl string) *AlpineUpstream { + this := AlpineUpstream{} + var authMode string = "None" + this.AuthMode = &authMode + var mode string = "Proxy Only" + this.Mode = &mode + this.Name = name + this.UpstreamUrl = upstreamUrl + return &this +} + +// NewAlpineUpstreamWithDefaults instantiates a new AlpineUpstream 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 NewAlpineUpstreamWithDefaults() *AlpineUpstream { + this := AlpineUpstream{} + 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 *AlpineUpstream) 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 *AlpineUpstream) 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 *AlpineUpstream) 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 *AlpineUpstream) 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 *AlpineUpstream) 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 *AlpineUpstream) 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 *AlpineUpstream) 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 *AlpineUpstream) SetAuthSecret(v string) { + o.AuthSecret.Set(&v) +} + +// SetAuthSecretNil sets the value for AuthSecret to be an explicit nil +func (o *AlpineUpstream) SetAuthSecretNil() { + o.AuthSecret.Set(nil) +} + +// UnsetAuthSecret ensures that no value is present for AuthSecret, not even an explicit nil +func (o *AlpineUpstream) 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 *AlpineUpstream) 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 *AlpineUpstream) 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 *AlpineUpstream) 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 *AlpineUpstream) SetAuthUsername(v string) { + o.AuthUsername.Set(&v) +} + +// SetAuthUsernameNil sets the value for AuthUsername to be an explicit nil +func (o *AlpineUpstream) SetAuthUsernameNil() { + o.AuthUsername.Set(nil) +} + +// UnsetAuthUsername ensures that no value is present for AuthUsername, not even an explicit nil +func (o *AlpineUpstream) UnsetAuthUsername() { + o.AuthUsername.Unset() +} + +// GetAvailable returns the Available field value if set, zero value otherwise. +func (o *AlpineUpstream) GetAvailable() bool { + if o == nil || IsNil(o.Available) { + var ret bool + return ret + } + return *o.Available +} + +// GetAvailableOk returns a tuple with the Available field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlpineUpstream) GetAvailableOk() (*bool, bool) { + if o == nil || IsNil(o.Available) { + return nil, false + } + return o.Available, true +} + +// HasAvailable returns a boolean if a field has been set. +func (o *AlpineUpstream) HasAvailable() bool { + if o != nil && !IsNil(o.Available) { + return true + } + + return false +} + +// SetAvailable gets a reference to the given bool and assigns it to the Available field. +func (o *AlpineUpstream) SetAvailable(v bool) { + o.Available = &v +} + +// GetCanReindex returns the CanReindex field value if set, zero value otherwise. +func (o *AlpineUpstream) GetCanReindex() bool { + if o == nil || IsNil(o.CanReindex) { + var ret bool + return ret + } + return *o.CanReindex +} + +// GetCanReindexOk returns a tuple with the CanReindex field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlpineUpstream) GetCanReindexOk() (*bool, bool) { + if o == nil || IsNil(o.CanReindex) { + return nil, false + } + return o.CanReindex, true +} + +// HasCanReindex returns a boolean if a field has been set. +func (o *AlpineUpstream) HasCanReindex() bool { + if o != nil && !IsNil(o.CanReindex) { + return true + } + + return false +} + +// SetCanReindex gets a reference to the given bool and assigns it to the CanReindex field. +func (o *AlpineUpstream) SetCanReindex(v bool) { + o.CanReindex = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *AlpineUpstream) 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 *AlpineUpstream) 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 *AlpineUpstream) 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 *AlpineUpstream) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetDisableReason returns the DisableReason field value if set, zero value otherwise. +func (o *AlpineUpstream) 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 *AlpineUpstream) 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 *AlpineUpstream) 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 *AlpineUpstream) SetDisableReason(v string) { + o.DisableReason = &v +} + +// GetDisableReasonText returns the DisableReasonText field value if set, zero value otherwise. +func (o *AlpineUpstream) GetDisableReasonText() string { + if o == nil || IsNil(o.DisableReasonText) { + var ret string + return ret + } + return *o.DisableReasonText +} + +// GetDisableReasonTextOk returns a tuple with the DisableReasonText field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlpineUpstream) GetDisableReasonTextOk() (*string, bool) { + if o == nil || IsNil(o.DisableReasonText) { + return nil, false + } + return o.DisableReasonText, true +} + +// HasDisableReasonText returns a boolean if a field has been set. +func (o *AlpineUpstream) HasDisableReasonText() bool { + if o != nil && !IsNil(o.DisableReasonText) { + return true + } + + return false +} + +// SetDisableReasonText gets a reference to the given string and assigns it to the DisableReasonText field. +func (o *AlpineUpstream) SetDisableReasonText(v string) { + o.DisableReasonText = &v +} + +// GetExtraHeader1 returns the ExtraHeader1 field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlpineUpstream) 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 *AlpineUpstream) 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 *AlpineUpstream) 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 *AlpineUpstream) SetExtraHeader1(v string) { + o.ExtraHeader1.Set(&v) +} + +// SetExtraHeader1Nil sets the value for ExtraHeader1 to be an explicit nil +func (o *AlpineUpstream) SetExtraHeader1Nil() { + o.ExtraHeader1.Set(nil) +} + +// UnsetExtraHeader1 ensures that no value is present for ExtraHeader1, not even an explicit nil +func (o *AlpineUpstream) 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 *AlpineUpstream) 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 *AlpineUpstream) 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 *AlpineUpstream) 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 *AlpineUpstream) SetExtraHeader2(v string) { + o.ExtraHeader2.Set(&v) +} + +// SetExtraHeader2Nil sets the value for ExtraHeader2 to be an explicit nil +func (o *AlpineUpstream) SetExtraHeader2Nil() { + o.ExtraHeader2.Set(nil) +} + +// UnsetExtraHeader2 ensures that no value is present for ExtraHeader2, not even an explicit nil +func (o *AlpineUpstream) 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 *AlpineUpstream) 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 *AlpineUpstream) 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 *AlpineUpstream) 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 *AlpineUpstream) SetExtraValue1(v string) { + o.ExtraValue1.Set(&v) +} + +// SetExtraValue1Nil sets the value for ExtraValue1 to be an explicit nil +func (o *AlpineUpstream) SetExtraValue1Nil() { + o.ExtraValue1.Set(nil) +} + +// UnsetExtraValue1 ensures that no value is present for ExtraValue1, not even an explicit nil +func (o *AlpineUpstream) 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 *AlpineUpstream) 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 *AlpineUpstream) 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 *AlpineUpstream) 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 *AlpineUpstream) SetExtraValue2(v string) { + o.ExtraValue2.Set(&v) +} + +// SetExtraValue2Nil sets the value for ExtraValue2 to be an explicit nil +func (o *AlpineUpstream) SetExtraValue2Nil() { + o.ExtraValue2.Set(nil) +} + +// UnsetExtraValue2 ensures that no value is present for ExtraValue2, not even an explicit nil +func (o *AlpineUpstream) UnsetExtraValue2() { + o.ExtraValue2.Unset() +} + +// GetHasFailedSignatureVerification returns the HasFailedSignatureVerification field value if set, zero value otherwise. +func (o *AlpineUpstream) GetHasFailedSignatureVerification() bool { + if o == nil || IsNil(o.HasFailedSignatureVerification) { + var ret bool + return ret + } + return *o.HasFailedSignatureVerification +} + +// GetHasFailedSignatureVerificationOk returns a tuple with the HasFailedSignatureVerification field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlpineUpstream) GetHasFailedSignatureVerificationOk() (*bool, bool) { + if o == nil || IsNil(o.HasFailedSignatureVerification) { + return nil, false + } + return o.HasFailedSignatureVerification, true +} + +// HasHasFailedSignatureVerification returns a boolean if a field has been set. +func (o *AlpineUpstream) HasHasFailedSignatureVerification() bool { + if o != nil && !IsNil(o.HasFailedSignatureVerification) { + return true + } + + return false +} + +// SetHasFailedSignatureVerification gets a reference to the given bool and assigns it to the HasFailedSignatureVerification field. +func (o *AlpineUpstream) SetHasFailedSignatureVerification(v bool) { + o.HasFailedSignatureVerification = &v +} + +// GetIndexPackageCount returns the IndexPackageCount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlpineUpstream) GetIndexPackageCount() int64 { + if o == nil || IsNil(o.IndexPackageCount.Get()) { + var ret int64 + return ret + } + return *o.IndexPackageCount.Get() +} + +// GetIndexPackageCountOk returns a tuple with the IndexPackageCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlpineUpstream) GetIndexPackageCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return o.IndexPackageCount.Get(), o.IndexPackageCount.IsSet() +} + +// HasIndexPackageCount returns a boolean if a field has been set. +func (o *AlpineUpstream) HasIndexPackageCount() bool { + if o != nil && o.IndexPackageCount.IsSet() { + return true + } + + return false +} + +// SetIndexPackageCount gets a reference to the given NullableInt64 and assigns it to the IndexPackageCount field. +func (o *AlpineUpstream) SetIndexPackageCount(v int64) { + o.IndexPackageCount.Set(&v) +} + +// SetIndexPackageCountNil sets the value for IndexPackageCount to be an explicit nil +func (o *AlpineUpstream) SetIndexPackageCountNil() { + o.IndexPackageCount.Set(nil) +} + +// UnsetIndexPackageCount ensures that no value is present for IndexPackageCount, not even an explicit nil +func (o *AlpineUpstream) UnsetIndexPackageCount() { + o.IndexPackageCount.Unset() +} + +// GetIndexStatus returns the IndexStatus field value if set, zero value otherwise. +func (o *AlpineUpstream) GetIndexStatus() string { + if o == nil || IsNil(o.IndexStatus) { + var ret string + return ret + } + return *o.IndexStatus +} + +// GetIndexStatusOk returns a tuple with the IndexStatus field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlpineUpstream) GetIndexStatusOk() (*string, bool) { + if o == nil || IsNil(o.IndexStatus) { + return nil, false + } + return o.IndexStatus, true +} + +// HasIndexStatus returns a boolean if a field has been set. +func (o *AlpineUpstream) HasIndexStatus() bool { + if o != nil && !IsNil(o.IndexStatus) { + return true + } + + return false +} + +// SetIndexStatus gets a reference to the given string and assigns it to the IndexStatus field. +func (o *AlpineUpstream) SetIndexStatus(v string) { + o.IndexStatus = &v +} + +// GetIsActive returns the IsActive field value if set, zero value otherwise. +func (o *AlpineUpstream) 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 *AlpineUpstream) 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 *AlpineUpstream) 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 *AlpineUpstream) SetIsActive(v bool) { + o.IsActive = &v +} + +// GetLastIndexed returns the LastIndexed field value if set, zero value otherwise. +func (o *AlpineUpstream) GetLastIndexed() string { + if o == nil || IsNil(o.LastIndexed) { + var ret string + return ret + } + return *o.LastIndexed +} + +// GetLastIndexedOk returns a tuple with the LastIndexed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlpineUpstream) GetLastIndexedOk() (*string, bool) { + if o == nil || IsNil(o.LastIndexed) { + return nil, false + } + return o.LastIndexed, true +} + +// HasLastIndexed returns a boolean if a field has been set. +func (o *AlpineUpstream) HasLastIndexed() bool { + if o != nil && !IsNil(o.LastIndexed) { + return true + } + + return false +} + +// SetLastIndexed gets a reference to the given string and assigns it to the LastIndexed field. +func (o *AlpineUpstream) SetLastIndexed(v string) { + o.LastIndexed = &v +} + +// GetMode returns the Mode field value if set, zero value otherwise. +func (o *AlpineUpstream) 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 *AlpineUpstream) 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 *AlpineUpstream) 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 *AlpineUpstream) SetMode(v string) { + o.Mode = &v +} + +// GetName returns the Name field value +func (o *AlpineUpstream) 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 *AlpineUpstream) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *AlpineUpstream) SetName(v string) { + o.Name = v +} + +// GetPendingValidation returns the PendingValidation field value if set, zero value otherwise. +func (o *AlpineUpstream) 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 *AlpineUpstream) 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 *AlpineUpstream) 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 *AlpineUpstream) SetPendingValidation(v bool) { + o.PendingValidation = &v +} + +// GetPriority returns the Priority field value if set, zero value otherwise. +func (o *AlpineUpstream) 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 *AlpineUpstream) 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 *AlpineUpstream) 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 *AlpineUpstream) SetPriority(v int64) { + o.Priority = &v +} + +// GetSlugPerm returns the SlugPerm field value if set, zero value otherwise. +func (o *AlpineUpstream) 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 *AlpineUpstream) 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 *AlpineUpstream) 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 *AlpineUpstream) SetSlugPerm(v string) { + o.SlugPerm = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *AlpineUpstream) 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 *AlpineUpstream) 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 *AlpineUpstream) 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 *AlpineUpstream) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +// GetUpstreamUrl returns the UpstreamUrl field value +func (o *AlpineUpstream) 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 *AlpineUpstream) GetUpstreamUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.UpstreamUrl, true +} + +// SetUpstreamUrl sets field value +func (o *AlpineUpstream) SetUpstreamUrl(v string) { + o.UpstreamUrl = v +} + +// GetVerifySsl returns the VerifySsl field value if set, zero value otherwise. +func (o *AlpineUpstream) 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 *AlpineUpstream) 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 *AlpineUpstream) 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 *AlpineUpstream) SetVerifySsl(v bool) { + o.VerifySsl = &v +} + +func (o AlpineUpstream) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AlpineUpstream) 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.Available) { + toSerialize["available"] = o.Available + } + if !IsNil(o.CanReindex) { + toSerialize["can_reindex"] = o.CanReindex + } + if !IsNil(o.CreatedAt) { + toSerialize["created_at"] = o.CreatedAt + } + if !IsNil(o.DisableReason) { + toSerialize["disable_reason"] = o.DisableReason + } + if !IsNil(o.DisableReasonText) { + toSerialize["disable_reason_text"] = o.DisableReasonText + } + 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.HasFailedSignatureVerification) { + toSerialize["has_failed_signature_verification"] = o.HasFailedSignatureVerification + } + if o.IndexPackageCount.IsSet() { + toSerialize["index_package_count"] = o.IndexPackageCount.Get() + } + if !IsNil(o.IndexStatus) { + toSerialize["index_status"] = o.IndexStatus + } + if !IsNil(o.IsActive) { + toSerialize["is_active"] = o.IsActive + } + if !IsNil(o.LastIndexed) { + toSerialize["last_indexed"] = o.LastIndexed + } + 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 *AlpineUpstream) 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) + } + } + + varAlpineUpstream := _AlpineUpstream{} + + err = json.Unmarshal(data, &varAlpineUpstream) + + if err != nil { + return err + } + + *o = AlpineUpstream(varAlpineUpstream) + + 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, "available") + delete(additionalProperties, "can_reindex") + delete(additionalProperties, "created_at") + delete(additionalProperties, "disable_reason") + delete(additionalProperties, "disable_reason_text") + delete(additionalProperties, "extra_header_1") + delete(additionalProperties, "extra_header_2") + delete(additionalProperties, "extra_value_1") + delete(additionalProperties, "extra_value_2") + delete(additionalProperties, "has_failed_signature_verification") + delete(additionalProperties, "index_package_count") + delete(additionalProperties, "index_status") + delete(additionalProperties, "is_active") + delete(additionalProperties, "last_indexed") + 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 NullableAlpineUpstream struct { + value *AlpineUpstream + isSet bool +} + +func (v NullableAlpineUpstream) Get() *AlpineUpstream { + return v.value +} + +func (v *NullableAlpineUpstream) Set(val *AlpineUpstream) { + v.value = val + v.isSet = true +} + +func (v NullableAlpineUpstream) IsSet() bool { + return v.isSet +} + +func (v *NullableAlpineUpstream) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAlpineUpstream(val *AlpineUpstream) *NullableAlpineUpstream { + return &NullableAlpineUpstream{value: val, isSet: true} +} + +func (v NullableAlpineUpstream) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAlpineUpstream) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_alpine_upstream_request.go b/model_alpine_upstream_request.go new file mode 100644 index 00000000..6dc1f089 --- /dev/null +++ b/model_alpine_upstream_request.go @@ -0,0 +1,690 @@ +/* +Cloudsmith API (v1) + +The API to the Cloudsmith Service + +API version: 1.1093.0 +Contact: support@cloudsmith.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cloudsmith + +import ( + "encoding/json" + "fmt" +) + +// checks if the AlpineUpstreamRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AlpineUpstreamRequest{} + +// AlpineUpstreamRequest struct for AlpineUpstreamRequest +type AlpineUpstreamRequest 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 _AlpineUpstreamRequest AlpineUpstreamRequest + +// NewAlpineUpstreamRequest instantiates a new AlpineUpstreamRequest 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 NewAlpineUpstreamRequest(name string, upstreamUrl string) *AlpineUpstreamRequest { + this := AlpineUpstreamRequest{} + var authMode string = "None" + this.AuthMode = &authMode + var mode string = "Proxy Only" + this.Mode = &mode + this.Name = name + this.UpstreamUrl = upstreamUrl + return &this +} + +// NewAlpineUpstreamRequestWithDefaults instantiates a new AlpineUpstreamRequest 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 NewAlpineUpstreamRequestWithDefaults() *AlpineUpstreamRequest { + this := AlpineUpstreamRequest{} + 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 *AlpineUpstreamRequest) 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 *AlpineUpstreamRequest) 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 *AlpineUpstreamRequest) 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 *AlpineUpstreamRequest) 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 *AlpineUpstreamRequest) 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 *AlpineUpstreamRequest) 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 *AlpineUpstreamRequest) 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 *AlpineUpstreamRequest) SetAuthSecret(v string) { + o.AuthSecret.Set(&v) +} + +// SetAuthSecretNil sets the value for AuthSecret to be an explicit nil +func (o *AlpineUpstreamRequest) SetAuthSecretNil() { + o.AuthSecret.Set(nil) +} + +// UnsetAuthSecret ensures that no value is present for AuthSecret, not even an explicit nil +func (o *AlpineUpstreamRequest) 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 *AlpineUpstreamRequest) 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 *AlpineUpstreamRequest) 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 *AlpineUpstreamRequest) 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 *AlpineUpstreamRequest) SetAuthUsername(v string) { + o.AuthUsername.Set(&v) +} + +// SetAuthUsernameNil sets the value for AuthUsername to be an explicit nil +func (o *AlpineUpstreamRequest) SetAuthUsernameNil() { + o.AuthUsername.Set(nil) +} + +// UnsetAuthUsername ensures that no value is present for AuthUsername, not even an explicit nil +func (o *AlpineUpstreamRequest) 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 *AlpineUpstreamRequest) 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 *AlpineUpstreamRequest) 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 *AlpineUpstreamRequest) 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 *AlpineUpstreamRequest) SetExtraHeader1(v string) { + o.ExtraHeader1.Set(&v) +} + +// SetExtraHeader1Nil sets the value for ExtraHeader1 to be an explicit nil +func (o *AlpineUpstreamRequest) SetExtraHeader1Nil() { + o.ExtraHeader1.Set(nil) +} + +// UnsetExtraHeader1 ensures that no value is present for ExtraHeader1, not even an explicit nil +func (o *AlpineUpstreamRequest) 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 *AlpineUpstreamRequest) 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 *AlpineUpstreamRequest) 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 *AlpineUpstreamRequest) 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 *AlpineUpstreamRequest) SetExtraHeader2(v string) { + o.ExtraHeader2.Set(&v) +} + +// SetExtraHeader2Nil sets the value for ExtraHeader2 to be an explicit nil +func (o *AlpineUpstreamRequest) SetExtraHeader2Nil() { + o.ExtraHeader2.Set(nil) +} + +// UnsetExtraHeader2 ensures that no value is present for ExtraHeader2, not even an explicit nil +func (o *AlpineUpstreamRequest) 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 *AlpineUpstreamRequest) 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 *AlpineUpstreamRequest) 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 *AlpineUpstreamRequest) 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 *AlpineUpstreamRequest) SetExtraValue1(v string) { + o.ExtraValue1.Set(&v) +} + +// SetExtraValue1Nil sets the value for ExtraValue1 to be an explicit nil +func (o *AlpineUpstreamRequest) SetExtraValue1Nil() { + o.ExtraValue1.Set(nil) +} + +// UnsetExtraValue1 ensures that no value is present for ExtraValue1, not even an explicit nil +func (o *AlpineUpstreamRequest) 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 *AlpineUpstreamRequest) 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 *AlpineUpstreamRequest) 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 *AlpineUpstreamRequest) 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 *AlpineUpstreamRequest) SetExtraValue2(v string) { + o.ExtraValue2.Set(&v) +} + +// SetExtraValue2Nil sets the value for ExtraValue2 to be an explicit nil +func (o *AlpineUpstreamRequest) SetExtraValue2Nil() { + o.ExtraValue2.Set(nil) +} + +// UnsetExtraValue2 ensures that no value is present for ExtraValue2, not even an explicit nil +func (o *AlpineUpstreamRequest) UnsetExtraValue2() { + o.ExtraValue2.Unset() +} + +// GetIsActive returns the IsActive field value if set, zero value otherwise. +func (o *AlpineUpstreamRequest) 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 *AlpineUpstreamRequest) 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 *AlpineUpstreamRequest) 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 *AlpineUpstreamRequest) SetIsActive(v bool) { + o.IsActive = &v +} + +// GetMode returns the Mode field value if set, zero value otherwise. +func (o *AlpineUpstreamRequest) 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 *AlpineUpstreamRequest) 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 *AlpineUpstreamRequest) 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 *AlpineUpstreamRequest) SetMode(v string) { + o.Mode = &v +} + +// GetName returns the Name field value +func (o *AlpineUpstreamRequest) 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 *AlpineUpstreamRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *AlpineUpstreamRequest) SetName(v string) { + o.Name = v +} + +// GetPriority returns the Priority field value if set, zero value otherwise. +func (o *AlpineUpstreamRequest) 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 *AlpineUpstreamRequest) 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 *AlpineUpstreamRequest) 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 *AlpineUpstreamRequest) SetPriority(v int64) { + o.Priority = &v +} + +// GetUpstreamUrl returns the UpstreamUrl field value +func (o *AlpineUpstreamRequest) 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 *AlpineUpstreamRequest) GetUpstreamUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.UpstreamUrl, true +} + +// SetUpstreamUrl sets field value +func (o *AlpineUpstreamRequest) SetUpstreamUrl(v string) { + o.UpstreamUrl = v +} + +// GetVerifySsl returns the VerifySsl field value if set, zero value otherwise. +func (o *AlpineUpstreamRequest) 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 *AlpineUpstreamRequest) 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 *AlpineUpstreamRequest) 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 *AlpineUpstreamRequest) SetVerifySsl(v bool) { + o.VerifySsl = &v +} + +func (o AlpineUpstreamRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AlpineUpstreamRequest) 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 *AlpineUpstreamRequest) 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) + } + } + + varAlpineUpstreamRequest := _AlpineUpstreamRequest{} + + err = json.Unmarshal(data, &varAlpineUpstreamRequest) + + if err != nil { + return err + } + + *o = AlpineUpstreamRequest(varAlpineUpstreamRequest) + + 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 NullableAlpineUpstreamRequest struct { + value *AlpineUpstreamRequest + isSet bool +} + +func (v NullableAlpineUpstreamRequest) Get() *AlpineUpstreamRequest { + return v.value +} + +func (v *NullableAlpineUpstreamRequest) Set(val *AlpineUpstreamRequest) { + v.value = val + v.isSet = true +} + +func (v NullableAlpineUpstreamRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableAlpineUpstreamRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAlpineUpstreamRequest(val *AlpineUpstreamRequest) *NullableAlpineUpstreamRequest { + return &NullableAlpineUpstreamRequest{value: val, isSet: true} +} + +func (v NullableAlpineUpstreamRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAlpineUpstreamRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_alpine_upstream_request_patch.go b/model_alpine_upstream_request_patch.go new file mode 100644 index 00000000..18bf614f --- /dev/null +++ b/model_alpine_upstream_request_patch.go @@ -0,0 +1,685 @@ +/* +Cloudsmith API (v1) + +The API to the Cloudsmith Service + +API version: 1.1093.0 +Contact: support@cloudsmith.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cloudsmith + +import ( + "encoding/json" +) + +// checks if the AlpineUpstreamRequestPatch type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AlpineUpstreamRequestPatch{} + +// AlpineUpstreamRequestPatch struct for AlpineUpstreamRequestPatch +type AlpineUpstreamRequestPatch 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 _AlpineUpstreamRequestPatch AlpineUpstreamRequestPatch + +// NewAlpineUpstreamRequestPatch instantiates a new AlpineUpstreamRequestPatch 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 NewAlpineUpstreamRequestPatch() *AlpineUpstreamRequestPatch { + this := AlpineUpstreamRequestPatch{} + var authMode string = "None" + this.AuthMode = &authMode + var mode string = "Proxy Only" + this.Mode = &mode + return &this +} + +// NewAlpineUpstreamRequestPatchWithDefaults instantiates a new AlpineUpstreamRequestPatch 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 NewAlpineUpstreamRequestPatchWithDefaults() *AlpineUpstreamRequestPatch { + this := AlpineUpstreamRequestPatch{} + 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 *AlpineUpstreamRequestPatch) 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 *AlpineUpstreamRequestPatch) 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 *AlpineUpstreamRequestPatch) 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 *AlpineUpstreamRequestPatch) 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 *AlpineUpstreamRequestPatch) 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 *AlpineUpstreamRequestPatch) 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 *AlpineUpstreamRequestPatch) 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 *AlpineUpstreamRequestPatch) SetAuthSecret(v string) { + o.AuthSecret.Set(&v) +} + +// SetAuthSecretNil sets the value for AuthSecret to be an explicit nil +func (o *AlpineUpstreamRequestPatch) SetAuthSecretNil() { + o.AuthSecret.Set(nil) +} + +// UnsetAuthSecret ensures that no value is present for AuthSecret, not even an explicit nil +func (o *AlpineUpstreamRequestPatch) 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 *AlpineUpstreamRequestPatch) 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 *AlpineUpstreamRequestPatch) 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 *AlpineUpstreamRequestPatch) 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 *AlpineUpstreamRequestPatch) SetAuthUsername(v string) { + o.AuthUsername.Set(&v) +} + +// SetAuthUsernameNil sets the value for AuthUsername to be an explicit nil +func (o *AlpineUpstreamRequestPatch) SetAuthUsernameNil() { + o.AuthUsername.Set(nil) +} + +// UnsetAuthUsername ensures that no value is present for AuthUsername, not even an explicit nil +func (o *AlpineUpstreamRequestPatch) 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 *AlpineUpstreamRequestPatch) 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 *AlpineUpstreamRequestPatch) 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 *AlpineUpstreamRequestPatch) 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 *AlpineUpstreamRequestPatch) SetExtraHeader1(v string) { + o.ExtraHeader1.Set(&v) +} + +// SetExtraHeader1Nil sets the value for ExtraHeader1 to be an explicit nil +func (o *AlpineUpstreamRequestPatch) SetExtraHeader1Nil() { + o.ExtraHeader1.Set(nil) +} + +// UnsetExtraHeader1 ensures that no value is present for ExtraHeader1, not even an explicit nil +func (o *AlpineUpstreamRequestPatch) 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 *AlpineUpstreamRequestPatch) 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 *AlpineUpstreamRequestPatch) 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 *AlpineUpstreamRequestPatch) 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 *AlpineUpstreamRequestPatch) SetExtraHeader2(v string) { + o.ExtraHeader2.Set(&v) +} + +// SetExtraHeader2Nil sets the value for ExtraHeader2 to be an explicit nil +func (o *AlpineUpstreamRequestPatch) SetExtraHeader2Nil() { + o.ExtraHeader2.Set(nil) +} + +// UnsetExtraHeader2 ensures that no value is present for ExtraHeader2, not even an explicit nil +func (o *AlpineUpstreamRequestPatch) 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 *AlpineUpstreamRequestPatch) 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 *AlpineUpstreamRequestPatch) 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 *AlpineUpstreamRequestPatch) 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 *AlpineUpstreamRequestPatch) SetExtraValue1(v string) { + o.ExtraValue1.Set(&v) +} + +// SetExtraValue1Nil sets the value for ExtraValue1 to be an explicit nil +func (o *AlpineUpstreamRequestPatch) SetExtraValue1Nil() { + o.ExtraValue1.Set(nil) +} + +// UnsetExtraValue1 ensures that no value is present for ExtraValue1, not even an explicit nil +func (o *AlpineUpstreamRequestPatch) 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 *AlpineUpstreamRequestPatch) 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 *AlpineUpstreamRequestPatch) 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 *AlpineUpstreamRequestPatch) 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 *AlpineUpstreamRequestPatch) SetExtraValue2(v string) { + o.ExtraValue2.Set(&v) +} + +// SetExtraValue2Nil sets the value for ExtraValue2 to be an explicit nil +func (o *AlpineUpstreamRequestPatch) SetExtraValue2Nil() { + o.ExtraValue2.Set(nil) +} + +// UnsetExtraValue2 ensures that no value is present for ExtraValue2, not even an explicit nil +func (o *AlpineUpstreamRequestPatch) UnsetExtraValue2() { + o.ExtraValue2.Unset() +} + +// GetIsActive returns the IsActive field value if set, zero value otherwise. +func (o *AlpineUpstreamRequestPatch) 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 *AlpineUpstreamRequestPatch) 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 *AlpineUpstreamRequestPatch) 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 *AlpineUpstreamRequestPatch) SetIsActive(v bool) { + o.IsActive = &v +} + +// GetMode returns the Mode field value if set, zero value otherwise. +func (o *AlpineUpstreamRequestPatch) 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 *AlpineUpstreamRequestPatch) 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 *AlpineUpstreamRequestPatch) 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 *AlpineUpstreamRequestPatch) SetMode(v string) { + o.Mode = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *AlpineUpstreamRequestPatch) 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 *AlpineUpstreamRequestPatch) 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 *AlpineUpstreamRequestPatch) 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 *AlpineUpstreamRequestPatch) SetName(v string) { + o.Name = &v +} + +// GetPriority returns the Priority field value if set, zero value otherwise. +func (o *AlpineUpstreamRequestPatch) 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 *AlpineUpstreamRequestPatch) 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 *AlpineUpstreamRequestPatch) 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 *AlpineUpstreamRequestPatch) SetPriority(v int64) { + o.Priority = &v +} + +// GetUpstreamUrl returns the UpstreamUrl field value if set, zero value otherwise. +func (o *AlpineUpstreamRequestPatch) 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 *AlpineUpstreamRequestPatch) 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 *AlpineUpstreamRequestPatch) 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 *AlpineUpstreamRequestPatch) SetUpstreamUrl(v string) { + o.UpstreamUrl = &v +} + +// GetVerifySsl returns the VerifySsl field value if set, zero value otherwise. +func (o *AlpineUpstreamRequestPatch) 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 *AlpineUpstreamRequestPatch) 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 *AlpineUpstreamRequestPatch) 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 *AlpineUpstreamRequestPatch) SetVerifySsl(v bool) { + o.VerifySsl = &v +} + +func (o AlpineUpstreamRequestPatch) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AlpineUpstreamRequestPatch) 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 *AlpineUpstreamRequestPatch) UnmarshalJSON(data []byte) (err error) { + varAlpineUpstreamRequestPatch := _AlpineUpstreamRequestPatch{} + + err = json.Unmarshal(data, &varAlpineUpstreamRequestPatch) + + if err != nil { + return err + } + + *o = AlpineUpstreamRequestPatch(varAlpineUpstreamRequestPatch) + + 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 NullableAlpineUpstreamRequestPatch struct { + value *AlpineUpstreamRequestPatch + isSet bool +} + +func (v NullableAlpineUpstreamRequestPatch) Get() *AlpineUpstreamRequestPatch { + return v.value +} + +func (v *NullableAlpineUpstreamRequestPatch) Set(val *AlpineUpstreamRequestPatch) { + v.value = val + v.isSet = true +} + +func (v NullableAlpineUpstreamRequestPatch) IsSet() bool { + return v.isSet +} + +func (v *NullableAlpineUpstreamRequestPatch) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAlpineUpstreamRequestPatch(val *AlpineUpstreamRequestPatch) *NullableAlpineUpstreamRequestPatch { + return &NullableAlpineUpstreamRequestPatch{value: val, isSet: true} +} + +func (v NullableAlpineUpstreamRequestPatch) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAlpineUpstreamRequestPatch) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_architecture.go b/model_architecture.go index 3da9ccf0..3f66c902 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_broadcast_token.go b/model_broadcast_token.go index 2e2751ed..f6125f86 100644 --- a/model_broadcast_token.go +++ b/model_broadcast_token.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_broadcast_token_input.go b/model_broadcast_token_input.go index 00a52870..bb8c3154 100644 --- a/model_broadcast_token_input.go +++ b/model_broadcast_token_input.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_cargo_package_upload.go b/model_cargo_package_upload.go index c6b92d31..9d433622 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_cargo_package_upload_request.go b/model_cargo_package_upload_request.go index 3590a27f..dc5ab5d7 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_cargo_upstream.go b/model_cargo_upstream.go index ba0d2930..85c82f4f 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_cargo_upstream_request.go b/model_cargo_upstream_request.go index d5258c41..945e8a78 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_cargo_upstream_request_patch.go b/model_cargo_upstream_request_patch.go index 05f8aed1..666d00db 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_cocoapods_package_upload.go b/model_cocoapods_package_upload.go index 6487fa90..932dcbc8 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_cocoapods_package_upload_request.go b/model_cocoapods_package_upload_request.go index 85856737..51b508e5 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_common_bandwidth_metrics.go b/model_common_bandwidth_metrics.go index 9ff51001..997e2ce2 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_common_bandwidth_metrics_value.go b/model_common_bandwidth_metrics_value.go index a02b73c8..57f7a762 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_common_downloads_metrics.go b/model_common_downloads_metrics.go index ed9e4fdf..fe7aba48 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_common_downloads_metrics_value.go b/model_common_downloads_metrics_value.go index bac68774..6ebeabf4 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_common_metrics.go b/model_common_metrics.go index 29366a95..a008d2ff 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_composer_package_upload.go b/model_composer_package_upload.go index a7c8e34c..4b219cb3 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_composer_package_upload_request.go b/model_composer_package_upload_request.go index 2447685a..360c5c16 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_composer_upstream.go b/model_composer_upstream.go index 03c6a3a8..716e8686 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_composer_upstream_request.go b/model_composer_upstream_request.go index 85a433a1..08245454 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_composer_upstream_request_patch.go b/model_composer_upstream_request_patch.go index 2d2e90ff..45c30258 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_conan_package_upload.go b/model_conan_package_upload.go index 04514b82..4ab888f2 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_conan_package_upload_request.go b/model_conan_package_upload_request.go index cbfb3c66..c541ce72 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_conda_package_upload.go b/model_conda_package_upload.go index dd9e54c6..b7fce5f2 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_conda_package_upload_request.go b/model_conda_package_upload_request.go index adcc672f..c1f525de 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_conda_upstream.go b/model_conda_upstream.go index d246a190..9412c104 100644 --- a/model_conda_upstream.go +++ b/model_conda_upstream.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_conda_upstream_request.go b/model_conda_upstream_request.go index be9068ef..4c5d480d 100644 --- a/model_conda_upstream_request.go +++ b/model_conda_upstream_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_conda_upstream_request_patch.go b/model_conda_upstream_request_patch.go index e476ce5d..96476c2d 100644 --- a/model_conda_upstream_request_patch.go +++ b/model_conda_upstream_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_cran_package_upload.go b/model_cran_package_upload.go index b35fc34f..2897c8a1 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_cran_package_upload_request.go b/model_cran_package_upload_request.go index bc47c483..ec2a4a54 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_cran_upstream.go b/model_cran_upstream.go index 859f8b79..07227949 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_cran_upstream_request.go b/model_cran_upstream_request.go index 15935506..adea1b17 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_cran_upstream_request_patch.go b/model_cran_upstream_request_patch.go index 9b483a3e..2a89cd23 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_dart_package_upload.go b/model_dart_package_upload.go index 4a991655..dd5e7fb4 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_dart_package_upload_request.go b/model_dart_package_upload_request.go index b619a1b6..c4c41824 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_dart_upstream.go b/model_dart_upstream.go index c283d56f..f9c4bed5 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_dart_upstream_request.go b/model_dart_upstream_request.go index c1fe7f96..450b707a 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_dart_upstream_request_patch.go b/model_dart_upstream_request_patch.go index 9c98f248..068cf211 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_deb_package_upload.go b/model_deb_package_upload.go index ac26247c..95d8dadf 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_deb_package_upload_request.go b/model_deb_package_upload_request.go index d6d8d6d2..0591e44c 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_deb_upstream.go b/model_deb_upstream.go index 4afc500a..d02bb3ff 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_deb_upstream_request.go b/model_deb_upstream_request.go index b1fd6707..12026117 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_deb_upstream_request_patch.go b/model_deb_upstream_request_patch.go index 9a03957d..3859f863 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_distribution.go b/model_distribution.go index ee93076f..52a87283 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_distribution_full.go b/model_distribution_full.go index 9409ec35..e76462eb 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_distribution_version.go b/model_distribution_version.go index f9bf0a97..7b6de68b 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_docker_package_upload.go b/model_docker_package_upload.go index 7845cb7b..992a0d65 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_docker_package_upload_request.go b/model_docker_package_upload_request.go index 07d170ee..28cfc6c9 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_docker_upstream.go b/model_docker_upstream.go index 8b103b58..d8fb9bd8 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_docker_upstream_request.go b/model_docker_upstream_request.go index 9c7c19c4..af5c36f8 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_docker_upstream_request_patch.go b/model_docker_upstream_request_patch.go index ba9f724f..5e5dd193 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_dynamic_mapping.go b/model_dynamic_mapping.go index f40f8356..382381db 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_entitlement_usage_metrics.go b/model_entitlement_usage_metrics.go index c1e25425..b28b5620 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_error_detail.go b/model_error_detail.go index 39586b12..7afcfe5c 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_eula.go b/model_eula.go index 982f4b97..8950daa6 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_format.go b/model_format.go index a419f69e..bf9e4ac4 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_format_support.go b/model_format_support.go index 931e4111..d13ee0a6 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_format_support_upstream.go b/model_format_support_upstream.go index 815f0e06..060b2275 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ @@ -33,7 +33,9 @@ type FormatSupportUpstream struct { Proxying bool `json:"proxying"` // The signature verification supported by the upstream format SignatureVerification *string `json:"signature_verification,omitempty"` - AdditionalProperties map[string]interface{} + // If true the upstream format supports configurable trust levels (trusted vs untrusted) for upstream sources. + Trust bool `json:"trust"` + AdditionalProperties map[string]interface{} } type _FormatSupportUpstream FormatSupportUpstream @@ -42,7 +44,7 @@ type _FormatSupportUpstream FormatSupportUpstream // 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 NewFormatSupportUpstream(authModes []string, caching bool, indexing bool, proxying bool) *FormatSupportUpstream { +func NewFormatSupportUpstream(authModes []string, caching bool, indexing bool, proxying bool, trust bool) *FormatSupportUpstream { this := FormatSupportUpstream{} this.AuthModes = authModes this.Caching = caching @@ -52,6 +54,7 @@ func NewFormatSupportUpstream(authModes []string, caching bool, indexing bool, p this.Proxying = proxying var signatureVerification string = "Unsupported" this.SignatureVerification = &signatureVerification + this.Trust = trust return &this } @@ -227,6 +230,30 @@ func (o *FormatSupportUpstream) SetSignatureVerification(v string) { o.SignatureVerification = &v } +// GetTrust returns the Trust field value +func (o *FormatSupportUpstream) GetTrust() bool { + if o == nil { + var ret bool + return ret + } + + return o.Trust +} + +// GetTrustOk returns a tuple with the Trust field value +// and a boolean to check if the value has been set. +func (o *FormatSupportUpstream) GetTrustOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Trust, true +} + +// SetTrust sets field value +func (o *FormatSupportUpstream) SetTrust(v bool) { + o.Trust = v +} + func (o FormatSupportUpstream) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -247,6 +274,7 @@ func (o FormatSupportUpstream) ToMap() (map[string]interface{}, error) { if !IsNil(o.SignatureVerification) { toSerialize["signature_verification"] = o.SignatureVerification } + toSerialize["trust"] = o.Trust for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -264,6 +292,7 @@ func (o *FormatSupportUpstream) UnmarshalJSON(data []byte) (err error) { "caching", "indexing", "proxying", + "trust", } allProperties := make(map[string]interface{}) @@ -299,6 +328,7 @@ func (o *FormatSupportUpstream) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "indexing_behavior") delete(additionalProperties, "proxying") delete(additionalProperties, "signature_verification") + delete(additionalProperties, "trust") o.AdditionalProperties = additionalProperties } diff --git a/model_generic_package_upload.go b/model_generic_package_upload.go index 5439c103..bb068e36 100644 --- a/model_generic_package_upload.go +++ b/model_generic_package_upload.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_generic_package_upload_request.go b/model_generic_package_upload_request.go index e49b5caf..2f5a93db 100644 --- a/model_generic_package_upload_request.go +++ b/model_generic_package_upload_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_generic_upstream.go b/model_generic_upstream.go index 7f6ee952..cd6e9710 100644 --- a/model_generic_upstream.go +++ b/model_generic_upstream.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_generic_upstream_request.go b/model_generic_upstream_request.go index 45a1b1a6..b408b76b 100644 --- a/model_generic_upstream_request.go +++ b/model_generic_upstream_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_generic_upstream_request_patch.go b/model_generic_upstream_request_patch.go index 6bcfeca3..99c29c70 100644 --- a/model_generic_upstream_request_patch.go +++ b/model_generic_upstream_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_geo_ip_location.go b/model_geo_ip_location.go index 4873bae2..d4af4dcb 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_go_package_upload.go b/model_go_package_upload.go index a79702ad..a69c1990 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_go_package_upload_request.go b/model_go_package_upload_request.go index 4543fdb9..5578189f 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_go_upstream.go b/model_go_upstream.go index 549bed64..a234c54c 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_go_upstream_request.go b/model_go_upstream_request.go index 66636740..fc254ea3 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_go_upstream_request_patch.go b/model_go_upstream_request_patch.go index 004b5022..d1167999 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_helm_package_upload.go b/model_helm_package_upload.go index 22fb5849..ff316f84 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_helm_package_upload_request.go b/model_helm_package_upload_request.go index 31b5ae07..c50265e7 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_helm_upstream.go b/model_helm_upstream.go index 4bfc01b0..eb37049d 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_helm_upstream_request.go b/model_helm_upstream_request.go index 663743e2..8a0c3cc7 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_helm_upstream_request_patch.go b/model_helm_upstream_request_patch.go index c76fb027..3c9cf82e 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_hex_package_upload.go b/model_hex_package_upload.go index 903c1282..814ee6e9 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_hex_package_upload_request.go b/model_hex_package_upload_request.go index efdba914..309a751a 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_hex_upstream.go b/model_hex_upstream.go index 731a606d..daaead3a 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_hex_upstream_request.go b/model_hex_upstream_request.go index f0be61ab..71a7d52f 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_hex_upstream_request_patch.go b/model_hex_upstream_request_patch.go index 94efe74f..5853dd43 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_history.go b/model_history.go index 69d79703..de880d22 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_history_fieldset.go b/model_history_fieldset.go index 31434603..513189ea 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_history_fieldset_raw.go b/model_history_fieldset_raw.go index 225523f2..de466196 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_huggingface_package_upload.go b/model_huggingface_package_upload.go index 3e890c72..53d3fb2c 100644 --- a/model_huggingface_package_upload.go +++ b/model_huggingface_package_upload.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_huggingface_package_upload_request.go b/model_huggingface_package_upload_request.go index f5b66823..884a87f7 100644 --- a/model_huggingface_package_upload_request.go +++ b/model_huggingface_package_upload_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_huggingface_upstream.go b/model_huggingface_upstream.go index 01ae5196..e06bb80f 100644 --- a/model_huggingface_upstream.go +++ b/model_huggingface_upstream.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_huggingface_upstream_request.go b/model_huggingface_upstream_request.go index e020df91..e16c3264 100644 --- a/model_huggingface_upstream_request.go +++ b/model_huggingface_upstream_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_huggingface_upstream_request_patch.go b/model_huggingface_upstream_request_patch.go index f3aa2f8e..bf957e19 100644 --- a/model_huggingface_upstream_request_patch.go +++ b/model_huggingface_upstream_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_luarocks_package_upload.go b/model_luarocks_package_upload.go index 0299e736..1acc5792 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_luarocks_package_upload_request.go b/model_luarocks_package_upload_request.go index 6c3de239..ba77cb33 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_maven_package_upload.go b/model_maven_package_upload.go index 1850d5d1..0b8cbc07 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_maven_package_upload_request.go b/model_maven_package_upload_request.go index 6a5b43c8..c888f14a 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_maven_upstream.go b/model_maven_upstream.go index 721449f2..06456f78 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_maven_upstream_request.go b/model_maven_upstream_request.go index c96ce33f..56d4613b 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_maven_upstream_request_patch.go b/model_maven_upstream_request_patch.go index a4101d11..ed77f2e4 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_namespace.go b/model_namespace.go index d3a43083..85c127f8 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_namespace_audit_log.go b/model_namespace_audit_log.go index 91152731..904f2c2f 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_nested_license_policy.go b/model_nested_license_policy.go index acd605a7..f715ae95 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_nested_vulnerability_policy.go b/model_nested_vulnerability_policy.go index 988410b8..281a0fd3 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_nested_vulnerability_scan_results.go b/model_nested_vulnerability_scan_results.go index 4d91929b..5f47fcb3 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_npm_package_upload.go b/model_npm_package_upload.go index 51e5231e..49328710 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_npm_package_upload_request.go b/model_npm_package_upload_request.go index 63ca7ab3..57539ef5 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ @@ -22,7 +22,7 @@ var _ MappedNullable = &NpmPackageUploadRequest{} // NpmPackageUploadRequest struct for NpmPackageUploadRequest type NpmPackageUploadRequest struct { // The default npm dist-tag for this package/version - This will replace any other package/version if they are using the same tag. - NpmDistTag *string `json:"npm_dist_tag,omitempty"` + NpmDistTag NullableString `json:"npm_dist_tag,omitempty"` // The primary file for the package. PackageFile string `json:"package_file"` // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. @@ -41,7 +41,7 @@ type _NpmPackageUploadRequest NpmPackageUploadRequest func NewNpmPackageUploadRequest(packageFile string) *NpmPackageUploadRequest { this := NpmPackageUploadRequest{} var npmDistTag string = "latest" - this.NpmDistTag = &npmDistTag + this.NpmDistTag = *NewNullableString(&npmDistTag) this.PackageFile = packageFile return &this } @@ -52,40 +52,51 @@ func NewNpmPackageUploadRequest(packageFile string) *NpmPackageUploadRequest { func NewNpmPackageUploadRequestWithDefaults() *NpmPackageUploadRequest { this := NpmPackageUploadRequest{} var npmDistTag string = "latest" - this.NpmDistTag = &npmDistTag + this.NpmDistTag = *NewNullableString(&npmDistTag) return &this } -// GetNpmDistTag returns the NpmDistTag field value if set, zero value otherwise. +// GetNpmDistTag returns the NpmDistTag field value if set, zero value otherwise (both if not set or set to explicit null). func (o *NpmPackageUploadRequest) GetNpmDistTag() string { - if o == nil || IsNil(o.NpmDistTag) { + if o == nil || IsNil(o.NpmDistTag.Get()) { var ret string return ret } - return *o.NpmDistTag + return *o.NpmDistTag.Get() } // GetNpmDistTagOk returns a tuple with the NpmDistTag field value if set, nil otherwise // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *NpmPackageUploadRequest) GetNpmDistTagOk() (*string, bool) { - if o == nil || IsNil(o.NpmDistTag) { + if o == nil { return nil, false } - return o.NpmDistTag, true + return o.NpmDistTag.Get(), o.NpmDistTag.IsSet() } // HasNpmDistTag returns a boolean if a field has been set. func (o *NpmPackageUploadRequest) HasNpmDistTag() bool { - if o != nil && !IsNil(o.NpmDistTag) { + if o != nil && o.NpmDistTag.IsSet() { return true } return false } -// SetNpmDistTag gets a reference to the given string and assigns it to the NpmDistTag field. +// SetNpmDistTag gets a reference to the given NullableString and assigns it to the NpmDistTag field. func (o *NpmPackageUploadRequest) SetNpmDistTag(v string) { - o.NpmDistTag = &v + o.NpmDistTag.Set(&v) +} + +// SetNpmDistTagNil sets the value for NpmDistTag to be an explicit nil +func (o *NpmPackageUploadRequest) SetNpmDistTagNil() { + o.NpmDistTag.Set(nil) +} + +// UnsetNpmDistTag ensures that no value is present for NpmDistTag, not even an explicit nil +func (o *NpmPackageUploadRequest) UnsetNpmDistTag() { + o.NpmDistTag.Unset() } // GetPackageFile returns the PackageFile field value @@ -197,8 +208,8 @@ func (o NpmPackageUploadRequest) MarshalJSON() ([]byte, error) { func (o NpmPackageUploadRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !IsNil(o.NpmDistTag) { - toSerialize["npm_dist_tag"] = o.NpmDistTag + if o.NpmDistTag.IsSet() { + toSerialize["npm_dist_tag"] = o.NpmDistTag.Get() } toSerialize["package_file"] = o.PackageFile if !IsNil(o.Republish) { diff --git a/model_npm_upstream.go b/model_npm_upstream.go index 16ed683d..c3903f6e 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ @@ -62,9 +62,11 @@ type NpmUpstream struct { // When true, this upstream source is pending validation. PendingValidation *bool `json:"pending_validation,omitempty"` // Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. - Priority *int64 `json:"priority,omitempty"` - SlugPerm *string `json:"slug_perm,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"` - UpdatedAt *time.Time `json:"updated_at,omitempty"` + Priority *int64 `json:"priority,omitempty"` + SlugPerm *string `json:"slug_perm,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"` + // Trust level allows for control of the visibility of upstream artifacts to native package managers. Where supported by formats, the default level (untrusted) is recommended for all upstreams, and helps to safeguard against common dependency confusion attack vectors. + TrustLevel *string `json:"trust_level,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` // The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. UpstreamUrl string `json:"upstream_url"` // If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. @@ -85,6 +87,8 @@ func NewNpmUpstream(name string, upstreamUrl string) *NpmUpstream { var mode string = "Proxy Only" this.Mode = &mode this.Name = name + var trustLevel string = "Trusted" + this.TrustLevel = &trustLevel this.UpstreamUrl = upstreamUrl return &this } @@ -98,6 +102,8 @@ func NewNpmUpstreamWithDefaults() *NpmUpstream { this.AuthMode = &authMode var mode string = "Proxy Only" this.Mode = &mode + var trustLevel string = "Trusted" + this.TrustLevel = &trustLevel return &this } @@ -874,6 +880,38 @@ func (o *NpmUpstream) SetSlugPerm(v string) { o.SlugPerm = &v } +// GetTrustLevel returns the TrustLevel field value if set, zero value otherwise. +func (o *NpmUpstream) GetTrustLevel() string { + if o == nil || IsNil(o.TrustLevel) { + var ret string + return ret + } + return *o.TrustLevel +} + +// GetTrustLevelOk returns a tuple with the TrustLevel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NpmUpstream) GetTrustLevelOk() (*string, bool) { + if o == nil || IsNil(o.TrustLevel) { + return nil, false + } + return o.TrustLevel, true +} + +// HasTrustLevel returns a boolean if a field has been set. +func (o *NpmUpstream) HasTrustLevel() bool { + if o != nil && !IsNil(o.TrustLevel) { + return true + } + + return false +} + +// SetTrustLevel gets a reference to the given string and assigns it to the TrustLevel field. +func (o *NpmUpstream) SetTrustLevel(v string) { + o.TrustLevel = &v +} + // GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. func (o *NpmUpstream) GetUpdatedAt() time.Time { if o == nil || IsNil(o.UpdatedAt) { @@ -1036,6 +1074,9 @@ func (o NpmUpstream) ToMap() (map[string]interface{}, error) { if !IsNil(o.SlugPerm) { toSerialize["slug_perm"] = o.SlugPerm } + if !IsNil(o.TrustLevel) { + toSerialize["trust_level"] = o.TrustLevel + } if !IsNil(o.UpdatedAt) { toSerialize["updated_at"] = o.UpdatedAt } @@ -1109,6 +1150,7 @@ func (o *NpmUpstream) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "pending_validation") delete(additionalProperties, "priority") delete(additionalProperties, "slug_perm") + delete(additionalProperties, "trust_level") delete(additionalProperties, "updated_at") delete(additionalProperties, "upstream_url") delete(additionalProperties, "verify_ssl") diff --git a/model_npm_upstream_request.go b/model_npm_upstream_request.go index cba23722..3fb72a4c 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ @@ -43,6 +43,8 @@ type NpmUpstreamRequest struct { Name string `json:"name" validate:"regexp=^\\\\w[\\\\w \\\\-'\\\\.\\/()]+$"` // Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. Priority *int64 `json:"priority,omitempty"` + // Trust level allows for control of the visibility of upstream artifacts to native package managers. Where supported by formats, the default level (untrusted) is recommended for all upstreams, and helps to safeguard against common dependency confusion attack vectors. + TrustLevel *string `json:"trust_level,omitempty"` // The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. UpstreamUrl string `json:"upstream_url"` // If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. @@ -63,6 +65,8 @@ func NewNpmUpstreamRequest(name string, upstreamUrl string) *NpmUpstreamRequest var mode string = "Proxy Only" this.Mode = &mode this.Name = name + var trustLevel string = "Trusted" + this.TrustLevel = &trustLevel this.UpstreamUrl = upstreamUrl return &this } @@ -76,6 +80,8 @@ func NewNpmUpstreamRequestWithDefaults() *NpmUpstreamRequest { this.AuthMode = &authMode var mode string = "Proxy Only" this.Mode = &mode + var trustLevel string = "Trusted" + this.TrustLevel = &trustLevel return &this } @@ -489,6 +495,38 @@ func (o *NpmUpstreamRequest) SetPriority(v int64) { o.Priority = &v } +// GetTrustLevel returns the TrustLevel field value if set, zero value otherwise. +func (o *NpmUpstreamRequest) GetTrustLevel() string { + if o == nil || IsNil(o.TrustLevel) { + var ret string + return ret + } + return *o.TrustLevel +} + +// GetTrustLevelOk returns a tuple with the TrustLevel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NpmUpstreamRequest) GetTrustLevelOk() (*string, bool) { + if o == nil || IsNil(o.TrustLevel) { + return nil, false + } + return o.TrustLevel, true +} + +// HasTrustLevel returns a boolean if a field has been set. +func (o *NpmUpstreamRequest) HasTrustLevel() bool { + if o != nil && !IsNil(o.TrustLevel) { + return true + } + + return false +} + +// SetTrustLevel gets a reference to the given string and assigns it to the TrustLevel field. +func (o *NpmUpstreamRequest) SetTrustLevel(v string) { + o.TrustLevel = &v +} + // GetUpstreamUrl returns the UpstreamUrl field value func (o *NpmUpstreamRequest) GetUpstreamUrl() string { if o == nil { @@ -586,6 +624,9 @@ func (o NpmUpstreamRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Priority) { toSerialize["priority"] = o.Priority } + if !IsNil(o.TrustLevel) { + toSerialize["trust_level"] = o.TrustLevel + } toSerialize["upstream_url"] = o.UpstreamUrl if !IsNil(o.VerifySsl) { toSerialize["verify_ssl"] = o.VerifySsl @@ -645,6 +686,7 @@ func (o *NpmUpstreamRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "mode") delete(additionalProperties, "name") delete(additionalProperties, "priority") + delete(additionalProperties, "trust_level") delete(additionalProperties, "upstream_url") delete(additionalProperties, "verify_ssl") o.AdditionalProperties = additionalProperties diff --git a/model_npm_upstream_request_patch.go b/model_npm_upstream_request_patch.go index 317ca130..b1700942 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ @@ -42,6 +42,8 @@ type NpmUpstreamRequestPatch struct { Name *string `json:"name,omitempty" validate:"regexp=^\\\\w[\\\\w \\\\-'\\\\.\\/()]+$"` // Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. Priority *int64 `json:"priority,omitempty"` + // Trust level allows for control of the visibility of upstream artifacts to native package managers. Where supported by formats, the default level (untrusted) is recommended for all upstreams, and helps to safeguard against common dependency confusion attack vectors. + TrustLevel *string `json:"trust_level,omitempty"` // The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. UpstreamUrl *string `json:"upstream_url,omitempty"` // If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. @@ -61,6 +63,8 @@ func NewNpmUpstreamRequestPatch() *NpmUpstreamRequestPatch { this.AuthMode = &authMode var mode string = "Proxy Only" this.Mode = &mode + var trustLevel string = "Trusted" + this.TrustLevel = &trustLevel return &this } @@ -73,6 +77,8 @@ func NewNpmUpstreamRequestPatchWithDefaults() *NpmUpstreamRequestPatch { this.AuthMode = &authMode var mode string = "Proxy Only" this.Mode = &mode + var trustLevel string = "Trusted" + this.TrustLevel = &trustLevel return &this } @@ -494,6 +500,38 @@ func (o *NpmUpstreamRequestPatch) SetPriority(v int64) { o.Priority = &v } +// GetTrustLevel returns the TrustLevel field value if set, zero value otherwise. +func (o *NpmUpstreamRequestPatch) GetTrustLevel() string { + if o == nil || IsNil(o.TrustLevel) { + var ret string + return ret + } + return *o.TrustLevel +} + +// GetTrustLevelOk returns a tuple with the TrustLevel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NpmUpstreamRequestPatch) GetTrustLevelOk() (*string, bool) { + if o == nil || IsNil(o.TrustLevel) { + return nil, false + } + return o.TrustLevel, true +} + +// HasTrustLevel returns a boolean if a field has been set. +func (o *NpmUpstreamRequestPatch) HasTrustLevel() bool { + if o != nil && !IsNil(o.TrustLevel) { + return true + } + + return false +} + +// SetTrustLevel gets a reference to the given string and assigns it to the TrustLevel field. +func (o *NpmUpstreamRequestPatch) SetTrustLevel(v string) { + o.TrustLevel = &v +} + // GetUpstreamUrl returns the UpstreamUrl field value if set, zero value otherwise. func (o *NpmUpstreamRequestPatch) GetUpstreamUrl() string { if o == nil || IsNil(o.UpstreamUrl) { @@ -601,6 +639,9 @@ func (o NpmUpstreamRequestPatch) ToMap() (map[string]interface{}, error) { if !IsNil(o.Priority) { toSerialize["priority"] = o.Priority } + if !IsNil(o.TrustLevel) { + toSerialize["trust_level"] = o.TrustLevel + } if !IsNil(o.UpstreamUrl) { toSerialize["upstream_url"] = o.UpstreamUrl } @@ -640,6 +681,7 @@ func (o *NpmUpstreamRequestPatch) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "mode") delete(additionalProperties, "name") delete(additionalProperties, "priority") + delete(additionalProperties, "trust_level") delete(additionalProperties, "upstream_url") delete(additionalProperties, "verify_ssl") o.AdditionalProperties = additionalProperties diff --git a/model_nuget_package_upload.go b/model_nuget_package_upload.go index 9f495cec..bbfb5d7d 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_nuget_package_upload_request.go b/model_nuget_package_upload_request.go index 93acf706..ad741584 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_nuget_upstream.go b/model_nuget_upstream.go index d14bb92d..42d296d7 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_nuget_upstream_request.go b/model_nuget_upstream_request.go index db0af998..10675374 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_nuget_upstream_request_patch.go b/model_nuget_upstream_request_patch.go index 01f57888..154c073a 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_organization.go b/model_organization.go index 51cdaf37..81cc5c97 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_group_sync.go b/model_organization_group_sync.go index 6d7e51ad..6f361d0d 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_group_sync_request.go b/model_organization_group_sync_request.go index ba136fcf..14da2447 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_group_sync_status.go b/model_organization_group_sync_status.go index 7b7ca236..d037575d 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_invite.go b/model_organization_invite.go index 7151b938..a547975c 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_invite_extend.go b/model_organization_invite_extend.go index 56d38d6f..86b9324f 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_invite_request.go b/model_organization_invite_request.go index c68dc96a..2d5673da 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_invite_update.go b/model_organization_invite_update.go index f4923d0f..f41c7e0c 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_invite_update_request_patch.go b/model_organization_invite_update_request_patch.go index c3d00df0..93147182 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_membership.go b/model_organization_membership.go index a986f717..22794b9a 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_membership_role_update.go b/model_organization_membership_role_update.go index 984f9846..0b9292bc 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_membership_role_update_request_patch.go b/model_organization_membership_role_update_request_patch.go index 8ea17d2f..b5b37eb7 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_membership_visibility_update.go b/model_organization_membership_visibility_update.go index 9cb1675e..cd78b4bd 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_membership_visibility_update_request_patch.go b/model_organization_membership_visibility_update_request_patch.go index 9a51c0b1..6d154b3f 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_package_license_policy.go b/model_organization_package_license_policy.go index e65913d5..d855987d 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_package_license_policy_request.go b/model_organization_package_license_policy_request.go index b592421c..5b1cd588 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_package_license_policy_request_patch.go b/model_organization_package_license_policy_request_patch.go index 5c7a3156..64574c86 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_package_vulnerability_policy.go b/model_organization_package_vulnerability_policy.go index 58a709cc..52a5f4c1 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_package_vulnerability_policy_request.go b/model_organization_package_vulnerability_policy_request.go index 368cc8bb..231a7967 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_package_vulnerability_policy_request_patch.go b/model_organization_package_vulnerability_policy_request_patch.go index ce785a07..f79b092d 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_saml_auth.go b/model_organization_saml_auth.go index 7089b1fa..1c116905 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_saml_auth_request_patch.go b/model_organization_saml_auth_request_patch.go index bc324c89..cb35567b 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_team.go b/model_organization_team.go index 15874f66..466c86e5 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_team_invite.go b/model_organization_team_invite.go index 25553db7..2d0052c2 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_team_members.go b/model_organization_team_members.go index 24ec4db9..83a4e4b3 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ @@ -22,7 +22,7 @@ var _ MappedNullable = &OrganizationTeamMembers{} // OrganizationTeamMembers struct for OrganizationTeamMembers type OrganizationTeamMembers struct { // The team members - Members []OrganizationTeamMembership `json:"members"` + Members []OrganizationTeamServiceMember `json:"members"` AdditionalProperties map[string]interface{} } @@ -32,7 +32,7 @@ type _OrganizationTeamMembers OrganizationTeamMembers // 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 NewOrganizationTeamMembers(members []OrganizationTeamMembership) *OrganizationTeamMembers { +func NewOrganizationTeamMembers(members []OrganizationTeamServiceMember) *OrganizationTeamMembers { this := OrganizationTeamMembers{} this.Members = members return &this @@ -47,9 +47,9 @@ func NewOrganizationTeamMembersWithDefaults() *OrganizationTeamMembers { } // GetMembers returns the Members field value -func (o *OrganizationTeamMembers) GetMembers() []OrganizationTeamMembership { +func (o *OrganizationTeamMembers) GetMembers() []OrganizationTeamServiceMember { if o == nil { - var ret []OrganizationTeamMembership + var ret []OrganizationTeamServiceMember return ret } @@ -58,7 +58,7 @@ func (o *OrganizationTeamMembers) GetMembers() []OrganizationTeamMembership { // GetMembersOk returns a tuple with the Members field value // and a boolean to check if the value has been set. -func (o *OrganizationTeamMembers) GetMembersOk() ([]OrganizationTeamMembership, bool) { +func (o *OrganizationTeamMembers) GetMembersOk() ([]OrganizationTeamServiceMember, bool) { if o == nil { return nil, false } @@ -66,7 +66,7 @@ func (o *OrganizationTeamMembers) GetMembersOk() ([]OrganizationTeamMembership, } // SetMembers sets field value -func (o *OrganizationTeamMembers) SetMembers(v []OrganizationTeamMembership) { +func (o *OrganizationTeamMembers) SetMembers(v []OrganizationTeamServiceMember) { o.Members = v } diff --git a/model_organization_team_membership.go b/model_organization_team_membership.go deleted file mode 100644 index de40ffa2..00000000 --- a/model_organization_team_membership.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -Cloudsmith API (v1) - -The API to the Cloudsmith Service - -API version: 1.999.3 -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 OrganizationTeamMembership type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &OrganizationTeamMembership{} - -// OrganizationTeamMembership The team members -type OrganizationTeamMembership struct { - Role string `json:"role"` - User string `json:"user"` - AdditionalProperties map[string]interface{} -} - -type _OrganizationTeamMembership OrganizationTeamMembership - -// NewOrganizationTeamMembership instantiates a new OrganizationTeamMembership 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 NewOrganizationTeamMembership(role string, user string) *OrganizationTeamMembership { - this := OrganizationTeamMembership{} - this.Role = role - this.User = user - return &this -} - -// NewOrganizationTeamMembershipWithDefaults instantiates a new OrganizationTeamMembership 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 NewOrganizationTeamMembershipWithDefaults() *OrganizationTeamMembership { - this := OrganizationTeamMembership{} - return &this -} - -// GetRole returns the Role field value -func (o *OrganizationTeamMembership) GetRole() string { - if o == nil { - var ret string - return ret - } - - return o.Role -} - -// GetRoleOk returns a tuple with the Role field value -// and a boolean to check if the value has been set. -func (o *OrganizationTeamMembership) GetRoleOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Role, true -} - -// SetRole sets field value -func (o *OrganizationTeamMembership) SetRole(v string) { - o.Role = v -} - -// GetUser returns the User field value -func (o *OrganizationTeamMembership) GetUser() string { - if o == nil { - var ret string - return ret - } - - return o.User -} - -// GetUserOk returns a tuple with the User field value -// and a boolean to check if the value has been set. -func (o *OrganizationTeamMembership) GetUserOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.User, true -} - -// SetUser sets field value -func (o *OrganizationTeamMembership) SetUser(v string) { - o.User = v -} - -func (o OrganizationTeamMembership) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o OrganizationTeamMembership) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["role"] = o.Role - toSerialize["user"] = o.User - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *OrganizationTeamMembership) 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{ - "role", - "user", - } - - 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) - } - } - - varOrganizationTeamMembership := _OrganizationTeamMembership{} - - err = json.Unmarshal(data, &varOrganizationTeamMembership) - - if err != nil { - return err - } - - *o = OrganizationTeamMembership(varOrganizationTeamMembership) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "role") - delete(additionalProperties, "user") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableOrganizationTeamMembership struct { - value *OrganizationTeamMembership - isSet bool -} - -func (v NullableOrganizationTeamMembership) Get() *OrganizationTeamMembership { - return v.value -} - -func (v *NullableOrganizationTeamMembership) Set(val *OrganizationTeamMembership) { - v.value = val - v.isSet = true -} - -func (v NullableOrganizationTeamMembership) IsSet() bool { - return v.isSet -} - -func (v *NullableOrganizationTeamMembership) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableOrganizationTeamMembership(val *OrganizationTeamMembership) *NullableOrganizationTeamMembership { - return &NullableOrganizationTeamMembership{value: val, isSet: true} -} - -func (v NullableOrganizationTeamMembership) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableOrganizationTeamMembership) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/model_organization_team_request.go b/model_organization_team_request.go index 79de0e73..0cd238ba 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_team_request_patch.go b/model_organization_team_request_patch.go index df2a6714..df03df97 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_organization_team_service_member.go b/model_organization_team_service_member.go new file mode 100644 index 00000000..5b74809c --- /dev/null +++ b/model_organization_team_service_member.go @@ -0,0 +1,237 @@ +/* +Cloudsmith API (v1) + +The API to the Cloudsmith Service + +API version: 1.1093.0 +Contact: support@cloudsmith.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cloudsmith + +import ( + "encoding/json" + "fmt" +) + +// checks if the OrganizationTeamServiceMember type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OrganizationTeamServiceMember{} + +// OrganizationTeamServiceMember The team members +type OrganizationTeamServiceMember struct { + Role string `json:"role"` + User string `json:"user"` + UserKind *string `json:"user_kind,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _OrganizationTeamServiceMember OrganizationTeamServiceMember + +// NewOrganizationTeamServiceMember instantiates a new OrganizationTeamServiceMember 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 NewOrganizationTeamServiceMember(role string, user string) *OrganizationTeamServiceMember { + this := OrganizationTeamServiceMember{} + this.Role = role + this.User = user + var userKind string = "User" + this.UserKind = &userKind + return &this +} + +// NewOrganizationTeamServiceMemberWithDefaults instantiates a new OrganizationTeamServiceMember 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 NewOrganizationTeamServiceMemberWithDefaults() *OrganizationTeamServiceMember { + this := OrganizationTeamServiceMember{} + var userKind string = "User" + this.UserKind = &userKind + return &this +} + +// GetRole returns the Role field value +func (o *OrganizationTeamServiceMember) GetRole() string { + if o == nil { + var ret string + return ret + } + + return o.Role +} + +// GetRoleOk returns a tuple with the Role field value +// and a boolean to check if the value has been set. +func (o *OrganizationTeamServiceMember) GetRoleOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Role, true +} + +// SetRole sets field value +func (o *OrganizationTeamServiceMember) SetRole(v string) { + o.Role = v +} + +// GetUser returns the User field value +func (o *OrganizationTeamServiceMember) GetUser() string { + if o == nil { + var ret string + return ret + } + + return o.User +} + +// GetUserOk returns a tuple with the User field value +// and a boolean to check if the value has been set. +func (o *OrganizationTeamServiceMember) GetUserOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.User, true +} + +// SetUser sets field value +func (o *OrganizationTeamServiceMember) SetUser(v string) { + o.User = v +} + +// GetUserKind returns the UserKind field value if set, zero value otherwise. +func (o *OrganizationTeamServiceMember) GetUserKind() string { + if o == nil || IsNil(o.UserKind) { + var ret string + return ret + } + return *o.UserKind +} + +// GetUserKindOk returns a tuple with the UserKind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrganizationTeamServiceMember) GetUserKindOk() (*string, bool) { + if o == nil || IsNil(o.UserKind) { + return nil, false + } + return o.UserKind, true +} + +// HasUserKind returns a boolean if a field has been set. +func (o *OrganizationTeamServiceMember) HasUserKind() bool { + if o != nil && !IsNil(o.UserKind) { + return true + } + + return false +} + +// SetUserKind gets a reference to the given string and assigns it to the UserKind field. +func (o *OrganizationTeamServiceMember) SetUserKind(v string) { + o.UserKind = &v +} + +func (o OrganizationTeamServiceMember) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OrganizationTeamServiceMember) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["role"] = o.Role + toSerialize["user"] = o.User + if !IsNil(o.UserKind) { + toSerialize["user_kind"] = o.UserKind + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *OrganizationTeamServiceMember) 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{ + "role", + "user", + } + + 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) + } + } + + varOrganizationTeamServiceMember := _OrganizationTeamServiceMember{} + + err = json.Unmarshal(data, &varOrganizationTeamServiceMember) + + if err != nil { + return err + } + + *o = OrganizationTeamServiceMember(varOrganizationTeamServiceMember) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "role") + delete(additionalProperties, "user") + delete(additionalProperties, "user_kind") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableOrganizationTeamServiceMember struct { + value *OrganizationTeamServiceMember + isSet bool +} + +func (v NullableOrganizationTeamServiceMember) Get() *OrganizationTeamServiceMember { + return v.value +} + +func (v *NullableOrganizationTeamServiceMember) Set(val *OrganizationTeamServiceMember) { + v.value = val + v.isSet = true +} + +func (v NullableOrganizationTeamServiceMember) IsSet() bool { + return v.isSet +} + +func (v *NullableOrganizationTeamServiceMember) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOrganizationTeamServiceMember(val *OrganizationTeamServiceMember) *NullableOrganizationTeamServiceMember { + return &NullableOrganizationTeamServiceMember{value: val, isSet: true} +} + +func (v NullableOrganizationTeamServiceMember) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOrganizationTeamServiceMember) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_p2_package_upload.go b/model_p2_package_upload.go index 39c67cc0..7c50bd92 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_p2_package_upload_request.go b/model_p2_package_upload_request.go index 2045df42..3fe41301 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_package.go b/model_package.go index 7c86631f..2a98b4df 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_package_bulk_action.go b/model_package_bulk_action.go index 9ac01ce6..f0fe9176 100644 --- a/model_package_bulk_action.go +++ b/model_package_bulk_action.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_package_bulk_action_response.go b/model_package_bulk_action_response.go index c9f9c079..31a4a47e 100644 --- a/model_package_bulk_action_response.go +++ b/model_package_bulk_action_response.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_package_copy.go b/model_package_copy.go index 60064a13..4922c1a1 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_package_copy_request.go b/model_package_copy_request.go index d5efdf05..603b0f41 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_package_deny_policy.go b/model_package_deny_policy.go index 9dbb418b..e5b9656e 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_package_deny_policy_request.go b/model_package_deny_policy_request.go index 58d7e591..285f7236 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_package_deny_policy_request_patch.go b/model_package_deny_policy_request_patch.go index ef498e1b..19f7bef6 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_package_dependencies.go b/model_package_dependencies.go index 2ad56d81..fd060b67 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_package_dependency.go b/model_package_dependency.go index bb37062d..6691db4d 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_package_file.go b/model_package_file.go index 5867b784..c3b0a239 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_package_file_parts_upload.go b/model_package_file_parts_upload.go index 6473f4b9..d60b7a20 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_package_file_upload.go b/model_package_file_upload.go index 86ff6700..8abaacf2 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_package_file_upload_request.go b/model_package_file_upload_request.go index 1def63b2..6f0f42cb 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_package_group.go b/model_package_group.go index c1c47743..0d2b6712 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_package_license.go b/model_package_license.go index ec9cd413..b6353ee1 100644 --- a/model_package_license.go +++ b/model_package_license.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_package_license_policy_evaluation_request.go b/model_package_license_policy_evaluation_request.go index 441ba555..e477b849 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_package_license_policy_violation_log.go b/model_package_license_policy_violation_log.go index d7be4d16..b7a06928 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_package_license_policy_violation_log_cursor_page.go b/model_package_license_policy_violation_log_cursor_page.go index c169c504..afe4fc2e 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_package_license_request_patch.go b/model_package_license_request_patch.go index 11392ab8..8f58f6d3 100644 --- a/model_package_license_request_patch.go +++ b/model_package_license_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_package_move.go b/model_package_move.go index c2f187da..65c16bd2 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_package_move_request.go b/model_package_move_request.go index 0ee6101b..c7ab14c5 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_package_quarantine.go b/model_package_quarantine.go index f98ab519..e9ce0d14 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_package_quarantine_request.go b/model_package_quarantine_request.go index 94b9d8ce..ad291b10 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_package_resync.go b/model_package_resync.go index a2aae977..fd1458bf 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_package_status.go b/model_package_status.go index 10b53a34..98d47a12 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_package_tag.go b/model_package_tag.go index ddff3c0e..0e80326d 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_package_tag_request.go b/model_package_tag_request.go index 2880b95d..7853c38b 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_package_usage_metrics.go b/model_package_usage_metrics.go index 88b6d973..664ab2fb 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_package_vulnerability.go b/model_package_vulnerability.go index edee803b..e792011d 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_package_vulnerability_policy_evaluation_request.go b/model_package_vulnerability_policy_evaluation_request.go index 65163060..f2c209fb 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_package_vulnerability_policy_violation_log.go b/model_package_vulnerability_policy_violation_log.go index 0d81ef30..dd2ee7a3 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_package_vulnerability_policy_violation_log_cursor_page.go b/model_package_vulnerability_policy_violation_log_cursor_page.go index 17d7859d..df0adca6 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_packages_groups_list_200_response.go b/model_packages_groups_list_200_response.go index b810f066..c8d3e3ab 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_provider_settings.go b/model_provider_settings.go index 0d77c610..e14c6ebd 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_provider_settings_write.go b/model_provider_settings_write.go index 45ddf59d..5aff282b 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_provider_settings_write_request.go b/model_provider_settings_write_request.go index 952d08e5..afde12e6 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_provider_settings_write_request_patch.go b/model_provider_settings_write_request_patch.go index d6d613aa..bd92a3a7 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_python_package_upload.go b/model_python_package_upload.go index d05f9697..3c337b87 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_python_package_upload_request.go b/model_python_package_upload_request.go index 07941f87..bfec6932 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_python_upstream.go b/model_python_upstream.go index cc136320..97f2bc9a 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_python_upstream_request.go b/model_python_upstream_request.go index 0fd4d933..bd652571 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_python_upstream_request_patch.go b/model_python_upstream_request_patch.go index 056c3986..7569f341 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_quota.go b/model_quota.go index 601cac7a..65b62b78 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_quota_history.go b/model_quota_history.go index e8618ca6..00244c6f 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_rate_check.go b/model_rate_check.go index 61a651e5..b200b7e8 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_raw_package_upload.go b/model_raw_package_upload.go index 40e08f81..d95ab026 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_raw_package_upload_request.go b/model_raw_package_upload_request.go index 5ce08675..24135bb1 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_repository.go b/model_repository.go index 46a9ae52..44338075 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ @@ -62,6 +62,8 @@ type Repository struct { IsOpenSource *bool `json:"is_open_source,omitempty"` IsPrivate *bool `json:"is_private,omitempty"` IsPublic *bool `json:"is_public,omitempty"` + // If checked, this repository will be hidden from the list of public broadcasts for the workspace. + IsPublicHidden *bool `json:"is_public_hidden,omitempty"` // This defines the minimum level of privilege required for a user to manage entitlement tokens with private repositories. Management is the ability to create, alter, enable, disable or delete all tokens without a repository. ManageEntitlementsPrivilege *string `json:"manage_entitlements_privilege,omitempty"` // If checked, users can move any of their own packages that they have uploaded, assuming that they still have write privilege for the repository. This takes precedence over privileges configured in the 'Access Controls' section of the repository, and any inherited from the org. @@ -987,6 +989,38 @@ func (o *Repository) SetIsPublic(v bool) { o.IsPublic = &v } +// GetIsPublicHidden returns the IsPublicHidden field value if set, zero value otherwise. +func (o *Repository) GetIsPublicHidden() bool { + if o == nil || IsNil(o.IsPublicHidden) { + var ret bool + return ret + } + return *o.IsPublicHidden +} + +// GetIsPublicHiddenOk returns a tuple with the IsPublicHidden field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Repository) GetIsPublicHiddenOk() (*bool, bool) { + if o == nil || IsNil(o.IsPublicHidden) { + return nil, false + } + return o.IsPublicHidden, true +} + +// HasIsPublicHidden returns a boolean if a field has been set. +func (o *Repository) HasIsPublicHidden() bool { + if o != nil && !IsNil(o.IsPublicHidden) { + return true + } + + return false +} + +// SetIsPublicHidden gets a reference to the given bool and assigns it to the IsPublicHidden field. +func (o *Repository) SetIsPublicHidden(v bool) { + o.IsPublicHidden = &v +} + // GetManageEntitlementsPrivilege returns the ManageEntitlementsPrivilege field value if set, zero value otherwise. func (o *Repository) GetManageEntitlementsPrivilege() string { if o == nil || IsNil(o.ManageEntitlementsPrivilege) { @@ -2552,6 +2586,9 @@ func (o Repository) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsPublic) { toSerialize["is_public"] = o.IsPublic } + if !IsNil(o.IsPublicHidden) { + toSerialize["is_public_hidden"] = o.IsPublicHidden + } if !IsNil(o.ManageEntitlementsPrivilege) { toSerialize["manage_entitlements_privilege"] = o.ManageEntitlementsPrivilege } @@ -2754,6 +2791,7 @@ func (o *Repository) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_open_source") delete(additionalProperties, "is_private") delete(additionalProperties, "is_public") + delete(additionalProperties, "is_public_hidden") delete(additionalProperties, "manage_entitlements_privilege") delete(additionalProperties, "move_own") delete(additionalProperties, "move_packages") diff --git a/model_repository_audit_log.go b/model_repository_audit_log.go index da90c084..aba674d7 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_create.go b/model_repository_create.go index cbceb6a5..112f578d 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ @@ -62,6 +62,8 @@ type RepositoryCreate struct { IsOpenSource *bool `json:"is_open_source,omitempty"` IsPrivate *bool `json:"is_private,omitempty"` IsPublic *bool `json:"is_public,omitempty"` + // If checked, this repository will be hidden from the list of public broadcasts for the workspace. + IsPublicHidden *bool `json:"is_public_hidden,omitempty"` // This defines the minimum level of privilege required for a user to manage entitlement tokens with private repositories. Management is the ability to create, alter, enable, disable or delete all tokens without a repository. ManageEntitlementsPrivilege *string `json:"manage_entitlements_privilege,omitempty"` // If checked, users can move any of their own packages that they have uploaded, assuming that they still have write privilege for the repository. This takes precedence over privileges configured in the 'Access Controls' section of the repository, and any inherited from the org. @@ -991,6 +993,38 @@ func (o *RepositoryCreate) SetIsPublic(v bool) { o.IsPublic = &v } +// GetIsPublicHidden returns the IsPublicHidden field value if set, zero value otherwise. +func (o *RepositoryCreate) GetIsPublicHidden() bool { + if o == nil || IsNil(o.IsPublicHidden) { + var ret bool + return ret + } + return *o.IsPublicHidden +} + +// GetIsPublicHiddenOk returns a tuple with the IsPublicHidden field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RepositoryCreate) GetIsPublicHiddenOk() (*bool, bool) { + if o == nil || IsNil(o.IsPublicHidden) { + return nil, false + } + return o.IsPublicHidden, true +} + +// HasIsPublicHidden returns a boolean if a field has been set. +func (o *RepositoryCreate) HasIsPublicHidden() bool { + if o != nil && !IsNil(o.IsPublicHidden) { + return true + } + + return false +} + +// SetIsPublicHidden gets a reference to the given bool and assigns it to the IsPublicHidden field. +func (o *RepositoryCreate) SetIsPublicHidden(v bool) { + o.IsPublicHidden = &v +} + // GetManageEntitlementsPrivilege returns the ManageEntitlementsPrivilege field value if set, zero value otherwise. func (o *RepositoryCreate) GetManageEntitlementsPrivilege() string { if o == nil || IsNil(o.ManageEntitlementsPrivilege) { @@ -2556,6 +2590,9 @@ func (o RepositoryCreate) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsPublic) { toSerialize["is_public"] = o.IsPublic } + if !IsNil(o.IsPublicHidden) { + toSerialize["is_public_hidden"] = o.IsPublicHidden + } if !IsNil(o.ManageEntitlementsPrivilege) { toSerialize["manage_entitlements_privilege"] = o.ManageEntitlementsPrivilege } @@ -2758,6 +2795,7 @@ func (o *RepositoryCreate) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_open_source") delete(additionalProperties, "is_private") delete(additionalProperties, "is_public") + delete(additionalProperties, "is_public_hidden") delete(additionalProperties, "manage_entitlements_privilege") delete(additionalProperties, "move_own") delete(additionalProperties, "move_packages") diff --git a/model_repository_create_request.go b/model_repository_create_request.go index 1258fb2c..1a5c3687 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ @@ -51,6 +51,8 @@ type RepositoryCreateRequest struct { GenericPackageIndexEnabled *bool `json:"generic_package_index_enabled,omitempty"` // If checked, files contained in packages will be indexed, which increase the synchronisation time required for packages. Note that it is recommended you keep this enabled unless the synchronisation time is significantly impacted. IndexFiles *bool `json:"index_files,omitempty"` + // If checked, this repository will be hidden from the list of public broadcasts for the workspace. + IsPublicHidden *bool `json:"is_public_hidden,omitempty"` // This defines the minimum level of privilege required for a user to manage entitlement tokens with private repositories. Management is the ability to create, alter, enable, disable or delete all tokens without a repository. ManageEntitlementsPrivilege *string `json:"manage_entitlements_privilege,omitempty"` // If checked, users can move any of their own packages that they have uploaded, assuming that they still have write privilege for the repository. This takes precedence over privileges configured in the 'Access Controls' section of the repository, and any inherited from the org. @@ -672,6 +674,38 @@ func (o *RepositoryCreateRequest) SetIndexFiles(v bool) { o.IndexFiles = &v } +// GetIsPublicHidden returns the IsPublicHidden field value if set, zero value otherwise. +func (o *RepositoryCreateRequest) GetIsPublicHidden() bool { + if o == nil || IsNil(o.IsPublicHidden) { + var ret bool + return ret + } + return *o.IsPublicHidden +} + +// GetIsPublicHiddenOk returns a tuple with the IsPublicHidden field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RepositoryCreateRequest) GetIsPublicHiddenOk() (*bool, bool) { + if o == nil || IsNil(o.IsPublicHidden) { + return nil, false + } + return o.IsPublicHidden, true +} + +// HasIsPublicHidden returns a boolean if a field has been set. +func (o *RepositoryCreateRequest) HasIsPublicHidden() bool { + if o != nil && !IsNil(o.IsPublicHidden) { + return true + } + + return false +} + +// SetIsPublicHidden gets a reference to the given bool and assigns it to the IsPublicHidden field. +func (o *RepositoryCreateRequest) SetIsPublicHidden(v bool) { + o.IsPublicHidden = &v +} + // GetManageEntitlementsPrivilege returns the ManageEntitlementsPrivilege field value if set, zero value otherwise. func (o *RepositoryCreateRequest) GetManageEntitlementsPrivilege() string { if o == nil || IsNil(o.ManageEntitlementsPrivilege) { @@ -1733,6 +1767,9 @@ func (o RepositoryCreateRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.IndexFiles) { toSerialize["index_files"] = o.IndexFiles } + if !IsNil(o.IsPublicHidden) { + toSerialize["is_public_hidden"] = o.IsPublicHidden + } if !IsNil(o.ManageEntitlementsPrivilege) { toSerialize["manage_entitlements_privilege"] = o.ManageEntitlementsPrivilege } @@ -1882,6 +1919,7 @@ func (o *RepositoryCreateRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "enforce_eula") delete(additionalProperties, "generic_package_index_enabled") delete(additionalProperties, "index_files") + delete(additionalProperties, "is_public_hidden") delete(additionalProperties, "manage_entitlements_privilege") delete(additionalProperties, "move_own") delete(additionalProperties, "move_packages") diff --git a/model_repository_ecdsa_key.go b/model_repository_ecdsa_key.go index 8ea849a2..1400db35 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_ecdsa_key_create.go b/model_repository_ecdsa_key_create.go index 757d5a9b..57e1cac0 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_geo_ip_cidr.go b/model_repository_geo_ip_cidr.go index 92362bcd..88efc880 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_geo_ip_country_code.go b/model_repository_geo_ip_country_code.go index 21f5d8bf..7eccdcf3 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_geo_ip_rules.go b/model_repository_geo_ip_rules.go index 2d501a53..b133f9da 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_geo_ip_rules_request.go b/model_repository_geo_ip_rules_request.go index f9640c19..7b7534a2 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_geo_ip_rules_request_patch.go b/model_repository_geo_ip_rules_request_patch.go index fa3eb827..96b2e638 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_geo_ip_status.go b/model_repository_geo_ip_status.go index 340c2110..82354a15 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_geo_ip_test_address.go b/model_repository_geo_ip_test_address.go index e89e4fb6..f772e4e8 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_geo_ip_test_address_response.go b/model_repository_geo_ip_test_address_response.go index 03a1a6f9..a49054f6 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_geo_ip_test_address_response_dict.go b/model_repository_geo_ip_test_address_response_dict.go index b5306072..f1e63cf3 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_gpg_key.go b/model_repository_gpg_key.go index dc86cf8f..989c80ed 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_gpg_key_create.go b/model_repository_gpg_key_create.go index 1e6bf672..b657a92b 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_privilege_dict.go b/model_repository_privilege_dict.go index d18584d5..15f6ab0f 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_privilege_input.go b/model_repository_privilege_input.go index 6757e491..72f49896 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_privilege_input_request.go b/model_repository_privilege_input_request.go index 1866f587..d856ec0c 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_privilege_input_request_patch.go b/model_repository_privilege_input_request_patch.go index 55517725..3f754fdf 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_request_patch.go b/model_repository_request_patch.go index f59547cd..21928f32 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ @@ -50,6 +50,8 @@ type RepositoryRequestPatch struct { GenericPackageIndexEnabled *bool `json:"generic_package_index_enabled,omitempty"` // If checked, files contained in packages will be indexed, which increase the synchronisation time required for packages. Note that it is recommended you keep this enabled unless the synchronisation time is significantly impacted. IndexFiles *bool `json:"index_files,omitempty"` + // If checked, this repository will be hidden from the list of public broadcasts for the workspace. + IsPublicHidden *bool `json:"is_public_hidden,omitempty"` // This defines the minimum level of privilege required for a user to manage entitlement tokens with private repositories. Management is the ability to create, alter, enable, disable or delete all tokens without a repository. ManageEntitlementsPrivilege *string `json:"manage_entitlements_privilege,omitempty"` // If checked, users can move any of their own packages that they have uploaded, assuming that they still have write privilege for the repository. This takes precedence over privileges configured in the 'Access Controls' section of the repository, and any inherited from the org. @@ -664,6 +666,38 @@ func (o *RepositoryRequestPatch) SetIndexFiles(v bool) { o.IndexFiles = &v } +// GetIsPublicHidden returns the IsPublicHidden field value if set, zero value otherwise. +func (o *RepositoryRequestPatch) GetIsPublicHidden() bool { + if o == nil || IsNil(o.IsPublicHidden) { + var ret bool + return ret + } + return *o.IsPublicHidden +} + +// GetIsPublicHiddenOk returns a tuple with the IsPublicHidden field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RepositoryRequestPatch) GetIsPublicHiddenOk() (*bool, bool) { + if o == nil || IsNil(o.IsPublicHidden) { + return nil, false + } + return o.IsPublicHidden, true +} + +// HasIsPublicHidden returns a boolean if a field has been set. +func (o *RepositoryRequestPatch) HasIsPublicHidden() bool { + if o != nil && !IsNil(o.IsPublicHidden) { + return true + } + + return false +} + +// SetIsPublicHidden gets a reference to the given bool and assigns it to the IsPublicHidden field. +func (o *RepositoryRequestPatch) SetIsPublicHidden(v bool) { + o.IsPublicHidden = &v +} + // GetManageEntitlementsPrivilege returns the ManageEntitlementsPrivilege field value if set, zero value otherwise. func (o *RepositoryRequestPatch) GetManageEntitlementsPrivilege() string { if o == nil || IsNil(o.ManageEntitlementsPrivilege) { @@ -1701,6 +1735,9 @@ func (o RepositoryRequestPatch) ToMap() (map[string]interface{}, error) { if !IsNil(o.IndexFiles) { toSerialize["index_files"] = o.IndexFiles } + if !IsNil(o.IsPublicHidden) { + toSerialize["is_public_hidden"] = o.IsPublicHidden + } if !IsNil(o.ManageEntitlementsPrivilege) { toSerialize["manage_entitlements_privilege"] = o.ManageEntitlementsPrivilege } @@ -1828,6 +1865,7 @@ func (o *RepositoryRequestPatch) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "enforce_eula") delete(additionalProperties, "generic_package_index_enabled") delete(additionalProperties, "index_files") + delete(additionalProperties, "is_public_hidden") delete(additionalProperties, "manage_entitlements_privilege") delete(additionalProperties, "move_own") delete(additionalProperties, "move_packages") diff --git a/model_repository_retention_rules.go b/model_repository_retention_rules.go index 83420d7c..86077506 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_retention_rules_request_patch.go b/model_repository_retention_rules_request_patch.go index 6d6ff3e9..a0c2184c 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_rsa_key.go b/model_repository_rsa_key.go index a11682c2..cfe5e2d1 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_rsa_key_create.go b/model_repository_rsa_key_create.go index ef7b424c..3f5f4928 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_token.go b/model_repository_token.go index 42afaa4b..9e55c85f 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_token_refresh.go b/model_repository_token_refresh.go index ffaa9c60..46ce78be 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_token_refresh_request.go b/model_repository_token_refresh_request.go index f6fd31e8..6c43d029 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_token_request.go b/model_repository_token_request.go index 22a4e0ce..0981ec70 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_token_request_patch.go b/model_repository_token_request_patch.go index 289745f5..bbc22421 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_token_sync.go b/model_repository_token_sync.go index 118b9cb2..a81225a8 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_token_sync_request.go b/model_repository_token_sync_request.go index 05372b9c..74c337bc 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_transfer_region.go b/model_repository_transfer_region.go index 9a1cd7de..d89639e3 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_transfer_region_request.go b/model_repository_transfer_region_request.go index 01c9a16b..ae10cac5 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_webhook.go b/model_repository_webhook.go index 76ec1f5d..1a9cbd6e 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_webhook_request.go b/model_repository_webhook_request.go index 8b7c5549..4ded8201 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_webhook_request_patch.go b/model_repository_webhook_request_patch.go index ef77b17f..09cd49a5 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_x509_ecdsa_certificate.go b/model_repository_x509_ecdsa_certificate.go index 5d9ece92..4afee669 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_repository_x509_rsa_certificate.go b/model_repository_x509_rsa_certificate.go index ec1e4756..9db2b022 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_resources_rate_check.go b/model_resources_rate_check.go index 2bb3e945..44ecc71e 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_rpm_package_upload.go b/model_rpm_package_upload.go index 51ce6aa9..5bf24437 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_rpm_package_upload_request.go b/model_rpm_package_upload_request.go index c6fb65d8..f8247a95 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_rpm_upstream.go b/model_rpm_upstream.go index ed53b85d..9f3644d3 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_rpm_upstream_request.go b/model_rpm_upstream_request.go index 473961ed..e2ccc9ef 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_rpm_upstream_request_patch.go b/model_rpm_upstream_request_patch.go index 4548632f..25e8c9ea 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_ruby_package_upload.go b/model_ruby_package_upload.go index 780b97ea..95fa6f05 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_ruby_package_upload_request.go b/model_ruby_package_upload_request.go index 22c73f6e..d4d1d048 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_ruby_upstream.go b/model_ruby_upstream.go index 6c5b5d74..5f441c20 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_ruby_upstream_request.go b/model_ruby_upstream_request.go index 1aebd969..8af2e600 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_ruby_upstream_request_patch.go b/model_ruby_upstream_request_patch.go index 9f38d371..077a26c0 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_service.go b/model_service.go index 729003d9..db72f8c3 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_service_request.go b/model_service_request.go index df238f56..6104d593 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_service_request_patch.go b/model_service_request_patch.go index 5e31bbe1..4e28c7f6 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_service_teams.go b/model_service_teams.go index 2aff368e..dda85cd6 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_status_basic.go b/model_status_basic.go index 4161cb4c..62c4b93b 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_storage_allocated_limit.go b/model_storage_allocated_limit.go index b0eb8918..ab5a1870 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ @@ -25,6 +25,7 @@ type StorageAllocatedLimit struct { PercentageUsed *string `json:"percentage_used,omitempty"` PlanLimit *string `json:"plan_limit,omitempty"` Used *string `json:"used,omitempty"` + UsedPreDeduplication *string `json:"used_pre_deduplication,omitempty"` AdditionalProperties map[string]interface{} } @@ -207,6 +208,38 @@ func (o *StorageAllocatedLimit) SetUsed(v string) { o.Used = &v } +// GetUsedPreDeduplication returns the UsedPreDeduplication field value if set, zero value otherwise. +func (o *StorageAllocatedLimit) GetUsedPreDeduplication() string { + if o == nil || IsNil(o.UsedPreDeduplication) { + var ret string + return ret + } + return *o.UsedPreDeduplication +} + +// GetUsedPreDeduplicationOk returns a tuple with the UsedPreDeduplication field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StorageAllocatedLimit) GetUsedPreDeduplicationOk() (*string, bool) { + if o == nil || IsNil(o.UsedPreDeduplication) { + return nil, false + } + return o.UsedPreDeduplication, true +} + +// HasUsedPreDeduplication returns a boolean if a field has been set. +func (o *StorageAllocatedLimit) HasUsedPreDeduplication() bool { + if o != nil && !IsNil(o.UsedPreDeduplication) { + return true + } + + return false +} + +// SetUsedPreDeduplication gets a reference to the given string and assigns it to the UsedPreDeduplication field. +func (o *StorageAllocatedLimit) SetUsedPreDeduplication(v string) { + o.UsedPreDeduplication = &v +} + func (o StorageAllocatedLimit) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -232,6 +265,9 @@ func (o StorageAllocatedLimit) ToMap() (map[string]interface{}, error) { if !IsNil(o.Used) { toSerialize["used"] = o.Used } + if !IsNil(o.UsedPreDeduplication) { + toSerialize["used_pre_deduplication"] = o.UsedPreDeduplication + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -259,6 +295,7 @@ func (o *StorageAllocatedLimit) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "percentage_used") delete(additionalProperties, "plan_limit") delete(additionalProperties, "used") + delete(additionalProperties, "used_pre_deduplication") o.AdditionalProperties = additionalProperties } diff --git a/model_storage_allocated_limit_raw.go b/model_storage_allocated_limit_raw.go index d66c3aac..bd06bc53 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ @@ -25,6 +25,7 @@ type StorageAllocatedLimitRaw struct { PercentageUsed *float64 `json:"percentage_used,omitempty"` PlanLimit *int64 `json:"plan_limit,omitempty"` Used *int64 `json:"used,omitempty"` + UsedPreDeduplication *int64 `json:"used_pre_deduplication,omitempty"` AdditionalProperties map[string]interface{} } @@ -207,6 +208,38 @@ func (o *StorageAllocatedLimitRaw) SetUsed(v int64) { o.Used = &v } +// GetUsedPreDeduplication returns the UsedPreDeduplication field value if set, zero value otherwise. +func (o *StorageAllocatedLimitRaw) GetUsedPreDeduplication() int64 { + if o == nil || IsNil(o.UsedPreDeduplication) { + var ret int64 + return ret + } + return *o.UsedPreDeduplication +} + +// GetUsedPreDeduplicationOk returns a tuple with the UsedPreDeduplication field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StorageAllocatedLimitRaw) GetUsedPreDeduplicationOk() (*int64, bool) { + if o == nil || IsNil(o.UsedPreDeduplication) { + return nil, false + } + return o.UsedPreDeduplication, true +} + +// HasUsedPreDeduplication returns a boolean if a field has been set. +func (o *StorageAllocatedLimitRaw) HasUsedPreDeduplication() bool { + if o != nil && !IsNil(o.UsedPreDeduplication) { + return true + } + + return false +} + +// SetUsedPreDeduplication gets a reference to the given int64 and assigns it to the UsedPreDeduplication field. +func (o *StorageAllocatedLimitRaw) SetUsedPreDeduplication(v int64) { + o.UsedPreDeduplication = &v +} + func (o StorageAllocatedLimitRaw) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -232,6 +265,9 @@ func (o StorageAllocatedLimitRaw) ToMap() (map[string]interface{}, error) { if !IsNil(o.Used) { toSerialize["used"] = o.Used } + if !IsNil(o.UsedPreDeduplication) { + toSerialize["used_pre_deduplication"] = o.UsedPreDeduplication + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -259,6 +295,7 @@ func (o *StorageAllocatedLimitRaw) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "percentage_used") delete(additionalProperties, "plan_limit") delete(additionalProperties, "used") + delete(additionalProperties, "used_pre_deduplication") o.AdditionalProperties = additionalProperties } diff --git a/model_storage_region.go b/model_storage_region.go index 2ab6a74f..ada515fd 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_storage_usage.go b/model_storage_usage.go index e8c4e355..f0d3cc89 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_storage_usage_raw.go b/model_storage_usage_raw.go index 765077e3..04a1e355 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_swift_package_upload.go b/model_swift_package_upload.go index 4cbe72da..b7ed1156 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_swift_package_upload_request.go b/model_swift_package_upload_request.go index 2b0805ec..21440b6b 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_swift_upstream.go b/model_swift_upstream.go index f4b0fed5..de2e2c6d 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_swift_upstream_request.go b/model_swift_upstream_request.go index cd29f1d6..2996ef23 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_swift_upstream_request_patch.go b/model_swift_upstream_request_patch.go index 58a04462..00f716b5 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_terraform_package_upload.go b/model_terraform_package_upload.go index 23046dc4..b5e989f1 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_terraform_package_upload_request.go b/model_terraform_package_upload_request.go index 30250ec9..98b44eb2 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_usage.go b/model_usage.go index 8f3c28a5..db84c16e 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_usage_fieldset.go b/model_usage_fieldset.go index 6055b7d8..3bc0e6d2 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_usage_limits.go b/model_usage_limits.go index 4eb93fb1..f2cb8cb5 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_usage_limits_raw.go b/model_usage_limits_raw.go index 6208589b..747fe40e 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_usage_raw.go b/model_usage_raw.go index 1ca57870..3856ba92 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_user_auth_token.go b/model_user_auth_token.go index f97434e3..8248dcbe 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_user_auth_token_request.go b/model_user_auth_token_request.go index 3dfea143..427d1238 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_user_authentication_token.go b/model_user_authentication_token.go index a4a2949a..4f4ed068 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_user_brief.go b/model_user_brief.go index 64a88f5c..8e9f0141 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_user_profile.go b/model_user_profile.go index 9f812bca..bdd1271a 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_user_tokens_list_200_response.go b/model_user_tokens_list_200_response.go index c9989246..6ee0c321 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_vagrant_package_upload.go b/model_vagrant_package_upload.go index 79e2d6f3..9c4c9708 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_vagrant_package_upload_request.go b/model_vagrant_package_upload_request.go index 2c29791d..8417f95a 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_vsx_package_upload.go b/model_vsx_package_upload.go new file mode 100644 index 00000000..73a58249 --- /dev/null +++ b/model_vsx_package_upload.go @@ -0,0 +1,3476 @@ +/* +Cloudsmith API (v1) + +The API to the Cloudsmith Service + +API version: 1.1093.0 +Contact: support@cloudsmith.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cloudsmith + +import ( + "encoding/json" + "time" +) + +// checks if the VsxPackageUpload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &VsxPackageUpload{} + +// VsxPackageUpload struct for VsxPackageUpload +type VsxPackageUpload struct { + Architectures []Architecture `json:"architectures,omitempty"` + CdnUrl NullableString `json:"cdn_url,omitempty"` + ChecksumMd5 *string `json:"checksum_md5,omitempty"` + ChecksumSha1 *string `json:"checksum_sha1,omitempty"` + ChecksumSha256 *string `json:"checksum_sha256,omitempty"` + ChecksumSha512 *string `json:"checksum_sha512,omitempty"` + // A checksum of all of the package's dependencies. + DependenciesChecksumMd5 NullableString `json:"dependencies_checksum_md5,omitempty"` + DependenciesUrl *string `json:"dependencies_url,omitempty"` + // A textual description of this package. + Description NullableString `json:"description,omitempty"` + DisplayName *string `json:"display_name,omitempty"` + Distro NullableDistribution `json:"distro,omitempty"` + DistroVersion *DistributionVersion `json:"distro_version,omitempty"` + Downloads *int64 `json:"downloads,omitempty"` + // The epoch of the package version (if any). + Epoch NullableInt64 `json:"epoch,omitempty"` + Extension *string `json:"extension,omitempty"` + Filename *string `json:"filename,omitempty"` + Files []PackageFile `json:"files,omitempty"` + Format *string `json:"format,omitempty"` + FormatUrl *string `json:"format_url,omitempty"` + // Amount of storage that will be freed if this package is deleted + FreeableStorage *int64 `json:"freeable_storage,omitempty"` + FullyQualifiedName NullableString `json:"fully_qualified_name,omitempty"` + // Unique and permanent identifier for the package. + IdentifierPerm *string `json:"identifier_perm,omitempty"` + // Return a map of identifier field names and their values. + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + // The license of this package. + License NullableString `json:"license,omitempty"` + // The name of this package. + Name NullableString `json:"name,omitempty"` + Namespace *string `json:"namespace,omitempty"` + NamespaceUrl *string `json:"namespace_url,omitempty"` + NumFiles *int64 `json:"num_files,omitempty"` + OriginRepository *string `json:"origin_repository,omitempty"` + OriginRepositoryUrl *string `json:"origin_repository_url,omitempty"` + // The type of package contents. + PackageType *int64 `json:"package_type,omitempty"` + // Whether or not the package has violated any policy. + PolicyViolated *bool `json:"policy_violated,omitempty"` + // The raw license string. + RawLicense NullableString `json:"raw_license,omitempty"` + // The release of the package version (if any). + Release NullableString `json:"release,omitempty"` + Repository *string `json:"repository,omitempty"` + RepositoryUrl *string `json:"repository_url,omitempty"` + // The datetime the security scanning was completed. + SecurityScanCompletedAt NullableTime `json:"security_scan_completed_at,omitempty"` + // The datetime the security scanning was started. + SecurityScanStartedAt NullableTime `json:"security_scan_started_at,omitempty"` + SecurityScanStatus NullableString `json:"security_scan_status,omitempty"` + // The datetime the security scanning status was updated. + SecurityScanStatusUpdatedAt NullableTime `json:"security_scan_status_updated_at,omitempty"` + SelfHtmlUrl *string `json:"self_html_url,omitempty"` + SelfUrl *string `json:"self_url,omitempty"` + SelfWebappUrl *string `json:"self_webapp_url,omitempty"` + SignatureUrl NullableString `json:"signature_url,omitempty"` + // The calculated size of the package. + Size *int64 `json:"size,omitempty"` + // The public unique identifier for the package. + Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"` + SlugPerm *string `json:"slug_perm,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"` + // The SPDX license identifier for this package. + SpdxLicense NullableString `json:"spdx_license,omitempty"` + // The synchronisation (in progress) stage of the package. + Stage *int64 `json:"stage,omitempty"` + StageStr *string `json:"stage_str,omitempty"` + // The datetime the package stage was updated at. + StageUpdatedAt *time.Time `json:"stage_updated_at,omitempty"` + // The synchronisation status of the package. + Status *int64 `json:"status,omitempty"` + // A textual description for the synchronous status reason (if any + StatusReason NullableString `json:"status_reason,omitempty"` + StatusStr *string `json:"status_str,omitempty"` + // The datetime the package status was updated at. + StatusUpdatedAt *time.Time `json:"status_updated_at,omitempty"` + StatusUrl *string `json:"status_url,omitempty"` + Subtype *string `json:"subtype,omitempty"` + // A one-liner synopsis of this package. + Summary NullableString `json:"summary,omitempty"` + // The datetime the package sync was finished at. + SyncFinishedAt NullableTime `json:"sync_finished_at,omitempty"` + // Synchronisation progress (from 0-100) + SyncProgress *int64 `json:"sync_progress,omitempty"` + // All tags on the package, grouped by tag type. This includes immutable tags, but doesn't distinguish them from mutable. To see which tags are immutable specifically, see the tags_immutable field. + TagsAutomatic map[string]interface{} `json:"tags_automatic,omitempty"` + // All tags on the package, grouped by tag type. This includes immutable tags, but doesn't distinguish them from mutable. To see which tags are immutable specifically, see the tags_immutable field. + TagsImmutable map[string]interface{} `json:"tags_immutable,omitempty"` + TypeDisplay *string `json:"type_display,omitempty"` + // The date this package was uploaded. + UploadedAt *time.Time `json:"uploaded_at,omitempty"` + Uploader *string `json:"uploader,omitempty"` + UploaderUrl *string `json:"uploader_url,omitempty"` + // The raw version for this package. + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _VsxPackageUpload VsxPackageUpload + +// NewVsxPackageUpload instantiates a new VsxPackageUpload 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 NewVsxPackageUpload() *VsxPackageUpload { + this := VsxPackageUpload{} + return &this +} + +// NewVsxPackageUploadWithDefaults instantiates a new VsxPackageUpload 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 NewVsxPackageUploadWithDefaults() *VsxPackageUpload { + this := VsxPackageUpload{} + return &this +} + +// GetArchitectures returns the Architectures field value if set, zero value otherwise. +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetCdnUrl(v string) { + o.CdnUrl.Set(&v) +} + +// SetCdnUrlNil sets the value for CdnUrl to be an explicit nil +func (o *VsxPackageUpload) SetCdnUrlNil() { + o.CdnUrl.Set(nil) +} + +// UnsetCdnUrl ensures that no value is present for CdnUrl, not even an explicit nil +func (o *VsxPackageUpload) UnsetCdnUrl() { + o.CdnUrl.Unset() +} + +// GetChecksumMd5 returns the ChecksumMd5 field value if set, zero value otherwise. +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetChecksumMd5(v string) { + o.ChecksumMd5 = &v +} + +// GetChecksumSha1 returns the ChecksumSha1 field value if set, zero value otherwise. +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetChecksumSha1(v string) { + o.ChecksumSha1 = &v +} + +// GetChecksumSha256 returns the ChecksumSha256 field value if set, zero value otherwise. +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetChecksumSha256(v string) { + o.ChecksumSha256 = &v +} + +// GetChecksumSha512 returns the ChecksumSha512 field value if set, zero value otherwise. +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetDependenciesChecksumMd5(v string) { + o.DependenciesChecksumMd5.Set(&v) +} + +// SetDependenciesChecksumMd5Nil sets the value for DependenciesChecksumMd5 to be an explicit nil +func (o *VsxPackageUpload) SetDependenciesChecksumMd5Nil() { + o.DependenciesChecksumMd5.Set(nil) +} + +// UnsetDependenciesChecksumMd5 ensures that no value is present for DependenciesChecksumMd5, not even an explicit nil +func (o *VsxPackageUpload) UnsetDependenciesChecksumMd5() { + o.DependenciesChecksumMd5.Unset() +} + +// GetDependenciesUrl returns the DependenciesUrl field value if set, zero value otherwise. +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetDescription(v string) { + o.Description.Set(&v) +} + +// SetDescriptionNil sets the value for Description to be an explicit nil +func (o *VsxPackageUpload) SetDescriptionNil() { + o.Description.Set(nil) +} + +// UnsetDescription ensures that no value is present for Description, not even an explicit nil +func (o *VsxPackageUpload) UnsetDescription() { + o.Description.Unset() +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetDistro(v Distribution) { + o.Distro.Set(&v) +} + +// SetDistroNil sets the value for Distro to be an explicit nil +func (o *VsxPackageUpload) SetDistroNil() { + o.Distro.Set(nil) +} + +// UnsetDistro ensures that no value is present for Distro, not even an explicit nil +func (o *VsxPackageUpload) UnsetDistro() { + o.Distro.Unset() +} + +// GetDistroVersion returns the DistroVersion field value if set, zero value otherwise. +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetDistroVersion(v DistributionVersion) { + o.DistroVersion = &v +} + +// GetDownloads returns the Downloads field value if set, zero value otherwise. +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetEpoch(v int64) { + o.Epoch.Set(&v) +} + +// SetEpochNil sets the value for Epoch to be an explicit nil +func (o *VsxPackageUpload) SetEpochNil() { + o.Epoch.Set(nil) +} + +// UnsetEpoch ensures that no value is present for Epoch, not even an explicit nil +func (o *VsxPackageUpload) UnsetEpoch() { + o.Epoch.Unset() +} + +// GetExtension returns the Extension field value if set, zero value otherwise. +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetExtension(v string) { + o.Extension = &v +} + +// GetFilename returns the Filename field value if set, zero value otherwise. +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetFilename(v string) { + o.Filename = &v +} + +// GetFiles returns the Files field value if set, zero value otherwise. +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetFiles(v []PackageFile) { + o.Files = v +} + +// GetFormat returns the Format field value if set, zero value otherwise. +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetFormat(v string) { + o.Format = &v +} + +// GetFormatUrl returns the FormatUrl field value if set, zero value otherwise. +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetFormatUrl(v string) { + o.FormatUrl = &v +} + +// GetFreeableStorage returns the FreeableStorage field value if set, zero value otherwise. +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetFullyQualifiedName(v string) { + o.FullyQualifiedName.Set(&v) +} + +// SetFullyQualifiedNameNil sets the value for FullyQualifiedName to be an explicit nil +func (o *VsxPackageUpload) SetFullyQualifiedNameNil() { + o.FullyQualifiedName.Set(nil) +} + +// UnsetFullyQualifiedName ensures that no value is present for FullyQualifiedName, not even an explicit nil +func (o *VsxPackageUpload) UnsetFullyQualifiedName() { + o.FullyQualifiedName.Unset() +} + +// GetIdentifierPerm returns the IdentifierPerm field value if set, zero value otherwise. +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetIdentifierPerm(v string) { + o.IdentifierPerm = &v +} + +// GetIdentifiers returns the Identifiers field value if set, zero value otherwise. +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetIdentifiers(v map[string]string) { + o.Identifiers = &v +} + +// GetIndexed returns the Indexed field value if set, zero value otherwise. +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetIndexed(v bool) { + o.Indexed = &v +} + +// GetIsCancellable returns the IsCancellable field value if set, zero value otherwise. +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetIsCancellable(v bool) { + o.IsCancellable = &v +} + +// GetIsCopyable returns the IsCopyable field value if set, zero value otherwise. +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetIsCopyable(v bool) { + o.IsCopyable = &v +} + +// GetIsDeleteable returns the IsDeleteable field value if set, zero value otherwise. +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetIsDeleteable(v bool) { + o.IsDeleteable = &v +} + +// GetIsDownloadable returns the IsDownloadable field value if set, zero value otherwise. +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetIsDownloadable(v bool) { + o.IsDownloadable = &v +} + +// GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetIsMoveable(v bool) { + o.IsMoveable = &v +} + +// GetIsQuarantinable returns the IsQuarantinable field value if set, zero value otherwise. +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetIsQuarantinable(v bool) { + o.IsQuarantinable = &v +} + +// GetIsQuarantined returns the IsQuarantined field value if set, zero value otherwise. +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetIsQuarantined(v bool) { + o.IsQuarantined = &v +} + +// GetIsResyncable returns the IsResyncable field value if set, zero value otherwise. +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetIsResyncable(v bool) { + o.IsResyncable = &v +} + +// GetIsSecurityScannable returns the IsSecurityScannable field value if set, zero value otherwise. +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetIsSecurityScannable(v bool) { + o.IsSecurityScannable = &v +} + +// GetIsSyncAwaiting returns the IsSyncAwaiting field value if set, zero value otherwise. +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetIsSyncAwaiting(v bool) { + o.IsSyncAwaiting = &v +} + +// GetIsSyncCompleted returns the IsSyncCompleted field value if set, zero value otherwise. +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetIsSyncCompleted(v bool) { + o.IsSyncCompleted = &v +} + +// GetIsSyncFailed returns the IsSyncFailed field value if set, zero value otherwise. +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetIsSyncFailed(v bool) { + o.IsSyncFailed = &v +} + +// GetIsSyncInFlight returns the IsSyncInFlight field value if set, zero value otherwise. +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetIsSyncInFlight(v bool) { + o.IsSyncInFlight = &v +} + +// GetIsSyncInProgress returns the IsSyncInProgress field value if set, zero value otherwise. +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetLicense(v string) { + o.License.Set(&v) +} + +// SetLicenseNil sets the value for License to be an explicit nil +func (o *VsxPackageUpload) SetLicenseNil() { + o.License.Set(nil) +} + +// UnsetLicense ensures that no value is present for License, not even an explicit nil +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *VsxPackageUpload) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *VsxPackageUpload) UnsetName() { + o.Name.Unset() +} + +// GetNamespace returns the Namespace field value if set, zero value otherwise. +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetNamespace(v string) { + o.Namespace = &v +} + +// GetNamespaceUrl returns the NamespaceUrl field value if set, zero value otherwise. +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetNamespaceUrl(v string) { + o.NamespaceUrl = &v +} + +// GetNumFiles returns the NumFiles field value if set, zero value otherwise. +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetNumFiles(v int64) { + o.NumFiles = &v +} + +// GetOriginRepository returns the OriginRepository field value if set, zero value otherwise. +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetOriginRepository(v string) { + o.OriginRepository = &v +} + +// GetOriginRepositoryUrl returns the OriginRepositoryUrl field value if set, zero value otherwise. +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetOriginRepositoryUrl(v string) { + o.OriginRepositoryUrl = &v +} + +// GetPackageType returns the PackageType field value if set, zero value otherwise. +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetPackageType(v int64) { + o.PackageType = &v +} + +// GetPolicyViolated returns the PolicyViolated field value if set, zero value otherwise. +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetPolicyViolated(v bool) { + o.PolicyViolated = &v +} + +// GetRawLicense returns the RawLicense field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VsxPackageUpload) GetRawLicense() string { + if o == nil || IsNil(o.RawLicense.Get()) { + var ret string + return ret + } + return *o.RawLicense.Get() +} + +// GetRawLicenseOk returns a tuple with the RawLicense field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *VsxPackageUpload) GetRawLicenseOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.RawLicense.Get(), o.RawLicense.IsSet() +} + +// HasRawLicense returns a boolean if a field has been set. +func (o *VsxPackageUpload) HasRawLicense() bool { + if o != nil && o.RawLicense.IsSet() { + return true + } + + return false +} + +// SetRawLicense gets a reference to the given NullableString and assigns it to the RawLicense field. +func (o *VsxPackageUpload) SetRawLicense(v string) { + o.RawLicense.Set(&v) +} + +// SetRawLicenseNil sets the value for RawLicense to be an explicit nil +func (o *VsxPackageUpload) SetRawLicenseNil() { + o.RawLicense.Set(nil) +} + +// UnsetRawLicense ensures that no value is present for RawLicense, not even an explicit nil +func (o *VsxPackageUpload) UnsetRawLicense() { + o.RawLicense.Unset() +} + +// GetRelease returns the Release field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetRelease(v string) { + o.Release.Set(&v) +} + +// SetReleaseNil sets the value for Release to be an explicit nil +func (o *VsxPackageUpload) SetReleaseNil() { + o.Release.Set(nil) +} + +// UnsetRelease ensures that no value is present for Release, not even an explicit nil +func (o *VsxPackageUpload) UnsetRelease() { + o.Release.Unset() +} + +// GetRepository returns the Repository field value if set, zero value otherwise. +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetRepository(v string) { + o.Repository = &v +} + +// GetRepositoryUrl returns the RepositoryUrl field value if set, zero value otherwise. +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetSecurityScanCompletedAt(v time.Time) { + o.SecurityScanCompletedAt.Set(&v) +} + +// SetSecurityScanCompletedAtNil sets the value for SecurityScanCompletedAt to be an explicit nil +func (o *VsxPackageUpload) SetSecurityScanCompletedAtNil() { + o.SecurityScanCompletedAt.Set(nil) +} + +// UnsetSecurityScanCompletedAt ensures that no value is present for SecurityScanCompletedAt, not even an explicit nil +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetSecurityScanStartedAt(v time.Time) { + o.SecurityScanStartedAt.Set(&v) +} + +// SetSecurityScanStartedAtNil sets the value for SecurityScanStartedAt to be an explicit nil +func (o *VsxPackageUpload) SetSecurityScanStartedAtNil() { + o.SecurityScanStartedAt.Set(nil) +} + +// UnsetSecurityScanStartedAt ensures that no value is present for SecurityScanStartedAt, not even an explicit nil +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetSecurityScanStatus(v string) { + o.SecurityScanStatus.Set(&v) +} + +// SetSecurityScanStatusNil sets the value for SecurityScanStatus to be an explicit nil +func (o *VsxPackageUpload) SetSecurityScanStatusNil() { + o.SecurityScanStatus.Set(nil) +} + +// UnsetSecurityScanStatus ensures that no value is present for SecurityScanStatus, not even an explicit nil +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetSecurityScanStatusUpdatedAt(v time.Time) { + o.SecurityScanStatusUpdatedAt.Set(&v) +} + +// SetSecurityScanStatusUpdatedAtNil sets the value for SecurityScanStatusUpdatedAt to be an explicit nil +func (o *VsxPackageUpload) SetSecurityScanStatusUpdatedAtNil() { + o.SecurityScanStatusUpdatedAt.Set(nil) +} + +// UnsetSecurityScanStatusUpdatedAt ensures that no value is present for SecurityScanStatusUpdatedAt, not even an explicit nil +func (o *VsxPackageUpload) UnsetSecurityScanStatusUpdatedAt() { + o.SecurityScanStatusUpdatedAt.Unset() +} + +// GetSelfHtmlUrl returns the SelfHtmlUrl field value if set, zero value otherwise. +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetSelfHtmlUrl(v string) { + o.SelfHtmlUrl = &v +} + +// GetSelfUrl returns the SelfUrl field value if set, zero value otherwise. +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetSelfUrl(v string) { + o.SelfUrl = &v +} + +// GetSelfWebappUrl returns the SelfWebappUrl field value if set, zero value otherwise. +func (o *VsxPackageUpload) GetSelfWebappUrl() string { + if o == nil || IsNil(o.SelfWebappUrl) { + var ret string + return ret + } + return *o.SelfWebappUrl +} + +// GetSelfWebappUrlOk returns a tuple with the SelfWebappUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VsxPackageUpload) GetSelfWebappUrlOk() (*string, bool) { + if o == nil || IsNil(o.SelfWebappUrl) { + return nil, false + } + return o.SelfWebappUrl, true +} + +// HasSelfWebappUrl returns a boolean if a field has been set. +func (o *VsxPackageUpload) HasSelfWebappUrl() bool { + if o != nil && !IsNil(o.SelfWebappUrl) { + return true + } + + return false +} + +// SetSelfWebappUrl gets a reference to the given string and assigns it to the SelfWebappUrl field. +func (o *VsxPackageUpload) SetSelfWebappUrl(v string) { + o.SelfWebappUrl = &v +} + +// GetSignatureUrl returns the SignatureUrl field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetSignatureUrl(v string) { + o.SignatureUrl.Set(&v) +} + +// SetSignatureUrlNil sets the value for SignatureUrl to be an explicit nil +func (o *VsxPackageUpload) SetSignatureUrlNil() { + o.SignatureUrl.Set(nil) +} + +// UnsetSignatureUrl ensures that no value is present for SignatureUrl, not even an explicit nil +func (o *VsxPackageUpload) UnsetSignatureUrl() { + o.SignatureUrl.Unset() +} + +// GetSize returns the Size field value if set, zero value otherwise. +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetSize(v int64) { + o.Size = &v +} + +// GetSlug returns the Slug field value if set, zero value otherwise. +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetSlug(v string) { + o.Slug = &v +} + +// GetSlugPerm returns the SlugPerm field value if set, zero value otherwise. +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetSlugPerm(v string) { + o.SlugPerm = &v +} + +// GetSpdxLicense returns the SpdxLicense field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VsxPackageUpload) GetSpdxLicense() string { + if o == nil || IsNil(o.SpdxLicense.Get()) { + var ret string + return ret + } + return *o.SpdxLicense.Get() +} + +// GetSpdxLicenseOk returns a tuple with the SpdxLicense field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *VsxPackageUpload) GetSpdxLicenseOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SpdxLicense.Get(), o.SpdxLicense.IsSet() +} + +// HasSpdxLicense returns a boolean if a field has been set. +func (o *VsxPackageUpload) HasSpdxLicense() bool { + if o != nil && o.SpdxLicense.IsSet() { + return true + } + + return false +} + +// SetSpdxLicense gets a reference to the given NullableString and assigns it to the SpdxLicense field. +func (o *VsxPackageUpload) SetSpdxLicense(v string) { + o.SpdxLicense.Set(&v) +} + +// SetSpdxLicenseNil sets the value for SpdxLicense to be an explicit nil +func (o *VsxPackageUpload) SetSpdxLicenseNil() { + o.SpdxLicense.Set(nil) +} + +// UnsetSpdxLicense ensures that no value is present for SpdxLicense, not even an explicit nil +func (o *VsxPackageUpload) UnsetSpdxLicense() { + o.SpdxLicense.Unset() +} + +// GetStage returns the Stage field value if set, zero value otherwise. +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetStage(v int64) { + o.Stage = &v +} + +// GetStageStr returns the StageStr field value if set, zero value otherwise. +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetStageStr(v string) { + o.StageStr = &v +} + +// GetStageUpdatedAt returns the StageUpdatedAt field value if set, zero value otherwise. +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetStageUpdatedAt(v time.Time) { + o.StageUpdatedAt = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetStatusReason(v string) { + o.StatusReason.Set(&v) +} + +// SetStatusReasonNil sets the value for StatusReason to be an explicit nil +func (o *VsxPackageUpload) SetStatusReasonNil() { + o.StatusReason.Set(nil) +} + +// UnsetStatusReason ensures that no value is present for StatusReason, not even an explicit nil +func (o *VsxPackageUpload) UnsetStatusReason() { + o.StatusReason.Unset() +} + +// GetStatusStr returns the StatusStr field value if set, zero value otherwise. +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetStatusStr(v string) { + o.StatusStr = &v +} + +// GetStatusUpdatedAt returns the StatusUpdatedAt field value if set, zero value otherwise. +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetStatusUpdatedAt(v time.Time) { + o.StatusUpdatedAt = &v +} + +// GetStatusUrl returns the StatusUrl field value if set, zero value otherwise. +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetStatusUrl(v string) { + o.StatusUrl = &v +} + +// GetSubtype returns the Subtype field value if set, zero value otherwise. +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetSummary(v string) { + o.Summary.Set(&v) +} + +// SetSummaryNil sets the value for Summary to be an explicit nil +func (o *VsxPackageUpload) SetSummaryNil() { + o.Summary.Set(nil) +} + +// UnsetSummary ensures that no value is present for Summary, not even an explicit nil +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetSyncFinishedAt(v time.Time) { + o.SyncFinishedAt.Set(&v) +} + +// SetSyncFinishedAtNil sets the value for SyncFinishedAt to be an explicit nil +func (o *VsxPackageUpload) SetSyncFinishedAtNil() { + o.SyncFinishedAt.Set(nil) +} + +// UnsetSyncFinishedAt ensures that no value is present for SyncFinishedAt, not even an explicit nil +func (o *VsxPackageUpload) UnsetSyncFinishedAt() { + o.SyncFinishedAt.Unset() +} + +// GetSyncProgress returns the SyncProgress field value if set, zero value otherwise. +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetSyncProgress(v int64) { + o.SyncProgress = &v +} + +// GetTagsAutomatic returns the TagsAutomatic field value if set, zero value otherwise. +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetTagsAutomatic(v map[string]interface{}) { + o.TagsAutomatic = v +} + +// GetTagsImmutable returns the TagsImmutable field value if set, zero value otherwise. +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetTagsImmutable(v map[string]interface{}) { + o.TagsImmutable = v +} + +// GetTypeDisplay returns the TypeDisplay field value if set, zero value otherwise. +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetTypeDisplay(v string) { + o.TypeDisplay = &v +} + +// GetUploadedAt returns the UploadedAt field value if set, zero value otherwise. +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetUploadedAt(v time.Time) { + o.UploadedAt = &v +} + +// GetUploader returns the Uploader field value if set, zero value otherwise. +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetUploader(v string) { + o.Uploader = &v +} + +// GetUploaderUrl returns the UploaderUrl field value if set, zero value otherwise. +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetVersion(v string) { + o.Version.Set(&v) +} + +// SetVersionNil sets the value for Version to be an explicit nil +func (o *VsxPackageUpload) SetVersionNil() { + o.Version.Set(nil) +} + +// UnsetVersion ensures that no value is present for Version, not even an explicit nil +func (o *VsxPackageUpload) UnsetVersion() { + o.Version.Unset() +} + +// GetVersionOrig returns the VersionOrig field value if set, zero value otherwise. +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetVersionOrig(v string) { + o.VersionOrig = &v +} + +// GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. +func (o *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) 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 *VsxPackageUpload) SetVulnerabilityScanResultsUrl(v string) { + o.VulnerabilityScanResultsUrl = &v +} + +func (o VsxPackageUpload) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o VsxPackageUpload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Architectures) { + toSerialize["architectures"] = o.Architectures + } + if o.CdnUrl.IsSet() { + toSerialize["cdn_url"] = o.CdnUrl.Get() + } + if !IsNil(o.ChecksumMd5) { + toSerialize["checksum_md5"] = o.ChecksumMd5 + } + if !IsNil(o.ChecksumSha1) { + toSerialize["checksum_sha1"] = o.ChecksumSha1 + } + if !IsNil(o.ChecksumSha256) { + toSerialize["checksum_sha256"] = o.ChecksumSha256 + } + if !IsNil(o.ChecksumSha512) { + toSerialize["checksum_sha512"] = o.ChecksumSha512 + } + if o.DependenciesChecksumMd5.IsSet() { + toSerialize["dependencies_checksum_md5"] = o.DependenciesChecksumMd5.Get() + } + if !IsNil(o.DependenciesUrl) { + toSerialize["dependencies_url"] = o.DependenciesUrl + } + if o.Description.IsSet() { + toSerialize["description"] = o.Description.Get() + } + if !IsNil(o.DisplayName) { + toSerialize["display_name"] = o.DisplayName + } + if o.Distro.IsSet() { + toSerialize["distro"] = o.Distro.Get() + } + if !IsNil(o.DistroVersion) { + toSerialize["distro_version"] = o.DistroVersion + } + if !IsNil(o.Downloads) { + toSerialize["downloads"] = o.Downloads + } + if o.Epoch.IsSet() { + toSerialize["epoch"] = o.Epoch.Get() + } + if !IsNil(o.Extension) { + toSerialize["extension"] = o.Extension + } + if !IsNil(o.Filename) { + toSerialize["filename"] = o.Filename + } + if !IsNil(o.Files) { + toSerialize["files"] = o.Files + } + if !IsNil(o.Format) { + toSerialize["format"] = o.Format + } + if !IsNil(o.FormatUrl) { + toSerialize["format_url"] = o.FormatUrl + } + if !IsNil(o.FreeableStorage) { + toSerialize["freeable_storage"] = o.FreeableStorage + } + if o.FullyQualifiedName.IsSet() { + toSerialize["fully_qualified_name"] = o.FullyQualifiedName.Get() + } + if !IsNil(o.IdentifierPerm) { + toSerialize["identifier_perm"] = o.IdentifierPerm + } + if !IsNil(o.Identifiers) { + toSerialize["identifiers"] = o.Identifiers + } + if !IsNil(o.Indexed) { + toSerialize["indexed"] = o.Indexed + } + if !IsNil(o.IsCancellable) { + toSerialize["is_cancellable"] = o.IsCancellable + } + if !IsNil(o.IsCopyable) { + toSerialize["is_copyable"] = o.IsCopyable + } + if !IsNil(o.IsDeleteable) { + toSerialize["is_deleteable"] = o.IsDeleteable + } + if !IsNil(o.IsDownloadable) { + toSerialize["is_downloadable"] = o.IsDownloadable + } + if !IsNil(o.IsMoveable) { + toSerialize["is_moveable"] = o.IsMoveable + } + if !IsNil(o.IsQuarantinable) { + toSerialize["is_quarantinable"] = o.IsQuarantinable + } + if !IsNil(o.IsQuarantined) { + toSerialize["is_quarantined"] = o.IsQuarantined + } + if !IsNil(o.IsResyncable) { + toSerialize["is_resyncable"] = o.IsResyncable + } + if !IsNil(o.IsSecurityScannable) { + toSerialize["is_security_scannable"] = o.IsSecurityScannable + } + if !IsNil(o.IsSyncAwaiting) { + toSerialize["is_sync_awaiting"] = o.IsSyncAwaiting + } + if !IsNil(o.IsSyncCompleted) { + toSerialize["is_sync_completed"] = o.IsSyncCompleted + } + if !IsNil(o.IsSyncFailed) { + toSerialize["is_sync_failed"] = o.IsSyncFailed + } + if !IsNil(o.IsSyncInFlight) { + toSerialize["is_sync_in_flight"] = o.IsSyncInFlight + } + if !IsNil(o.IsSyncInProgress) { + toSerialize["is_sync_in_progress"] = o.IsSyncInProgress + } + if o.License.IsSet() { + toSerialize["license"] = o.License.Get() + } + if o.Name.IsSet() { + toSerialize["name"] = o.Name.Get() + } + if !IsNil(o.Namespace) { + toSerialize["namespace"] = o.Namespace + } + if !IsNil(o.NamespaceUrl) { + toSerialize["namespace_url"] = o.NamespaceUrl + } + if !IsNil(o.NumFiles) { + toSerialize["num_files"] = o.NumFiles + } + if !IsNil(o.OriginRepository) { + toSerialize["origin_repository"] = o.OriginRepository + } + if !IsNil(o.OriginRepositoryUrl) { + toSerialize["origin_repository_url"] = o.OriginRepositoryUrl + } + if !IsNil(o.PackageType) { + toSerialize["package_type"] = o.PackageType + } + if !IsNil(o.PolicyViolated) { + toSerialize["policy_violated"] = o.PolicyViolated + } + if o.RawLicense.IsSet() { + toSerialize["raw_license"] = o.RawLicense.Get() + } + if o.Release.IsSet() { + toSerialize["release"] = o.Release.Get() + } + if !IsNil(o.Repository) { + toSerialize["repository"] = o.Repository + } + if !IsNil(o.RepositoryUrl) { + toSerialize["repository_url"] = o.RepositoryUrl + } + if o.SecurityScanCompletedAt.IsSet() { + toSerialize["security_scan_completed_at"] = o.SecurityScanCompletedAt.Get() + } + if o.SecurityScanStartedAt.IsSet() { + toSerialize["security_scan_started_at"] = o.SecurityScanStartedAt.Get() + } + if o.SecurityScanStatus.IsSet() { + toSerialize["security_scan_status"] = o.SecurityScanStatus.Get() + } + if o.SecurityScanStatusUpdatedAt.IsSet() { + toSerialize["security_scan_status_updated_at"] = o.SecurityScanStatusUpdatedAt.Get() + } + if !IsNil(o.SelfHtmlUrl) { + toSerialize["self_html_url"] = o.SelfHtmlUrl + } + if !IsNil(o.SelfUrl) { + toSerialize["self_url"] = o.SelfUrl + } + if !IsNil(o.SelfWebappUrl) { + toSerialize["self_webapp_url"] = o.SelfWebappUrl + } + if o.SignatureUrl.IsSet() { + toSerialize["signature_url"] = o.SignatureUrl.Get() + } + if !IsNil(o.Size) { + toSerialize["size"] = o.Size + } + if !IsNil(o.Slug) { + toSerialize["slug"] = o.Slug + } + if !IsNil(o.SlugPerm) { + toSerialize["slug_perm"] = o.SlugPerm + } + if o.SpdxLicense.IsSet() { + toSerialize["spdx_license"] = o.SpdxLicense.Get() + } + if !IsNil(o.Stage) { + toSerialize["stage"] = o.Stage + } + if !IsNil(o.StageStr) { + toSerialize["stage_str"] = o.StageStr + } + if !IsNil(o.StageUpdatedAt) { + toSerialize["stage_updated_at"] = o.StageUpdatedAt + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if o.StatusReason.IsSet() { + toSerialize["status_reason"] = o.StatusReason.Get() + } + if !IsNil(o.StatusStr) { + toSerialize["status_str"] = o.StatusStr + } + if !IsNil(o.StatusUpdatedAt) { + toSerialize["status_updated_at"] = o.StatusUpdatedAt + } + if !IsNil(o.StatusUrl) { + toSerialize["status_url"] = o.StatusUrl + } + if !IsNil(o.Subtype) { + toSerialize["subtype"] = o.Subtype + } + if o.Summary.IsSet() { + toSerialize["summary"] = o.Summary.Get() + } + if o.SyncFinishedAt.IsSet() { + toSerialize["sync_finished_at"] = o.SyncFinishedAt.Get() + } + if !IsNil(o.SyncProgress) { + toSerialize["sync_progress"] = o.SyncProgress + } + if !IsNil(o.TagsAutomatic) { + toSerialize["tags_automatic"] = o.TagsAutomatic + } + if !IsNil(o.TagsImmutable) { + toSerialize["tags_immutable"] = o.TagsImmutable + } + if !IsNil(o.TypeDisplay) { + toSerialize["type_display"] = o.TypeDisplay + } + if !IsNil(o.UploadedAt) { + toSerialize["uploaded_at"] = o.UploadedAt + } + if !IsNil(o.Uploader) { + toSerialize["uploader"] = o.Uploader + } + if !IsNil(o.UploaderUrl) { + toSerialize["uploader_url"] = o.UploaderUrl + } + if o.Version.IsSet() { + toSerialize["version"] = o.Version.Get() + } + if !IsNil(o.VersionOrig) { + toSerialize["version_orig"] = o.VersionOrig + } + if !IsNil(o.VulnerabilityScanResultsUrl) { + toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *VsxPackageUpload) UnmarshalJSON(data []byte) (err error) { + varVsxPackageUpload := _VsxPackageUpload{} + + err = json.Unmarshal(data, &varVsxPackageUpload) + + if err != nil { + return err + } + + *o = VsxPackageUpload(varVsxPackageUpload) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "architectures") + delete(additionalProperties, "cdn_url") + delete(additionalProperties, "checksum_md5") + delete(additionalProperties, "checksum_sha1") + delete(additionalProperties, "checksum_sha256") + delete(additionalProperties, "checksum_sha512") + delete(additionalProperties, "dependencies_checksum_md5") + delete(additionalProperties, "dependencies_url") + delete(additionalProperties, "description") + delete(additionalProperties, "display_name") + delete(additionalProperties, "distro") + delete(additionalProperties, "distro_version") + delete(additionalProperties, "downloads") + delete(additionalProperties, "epoch") + delete(additionalProperties, "extension") + delete(additionalProperties, "filename") + delete(additionalProperties, "files") + delete(additionalProperties, "format") + delete(additionalProperties, "format_url") + delete(additionalProperties, "freeable_storage") + delete(additionalProperties, "fully_qualified_name") + delete(additionalProperties, "identifier_perm") + delete(additionalProperties, "identifiers") + delete(additionalProperties, "indexed") + delete(additionalProperties, "is_cancellable") + delete(additionalProperties, "is_copyable") + delete(additionalProperties, "is_deleteable") + delete(additionalProperties, "is_downloadable") + delete(additionalProperties, "is_moveable") + delete(additionalProperties, "is_quarantinable") + delete(additionalProperties, "is_quarantined") + delete(additionalProperties, "is_resyncable") + delete(additionalProperties, "is_security_scannable") + delete(additionalProperties, "is_sync_awaiting") + delete(additionalProperties, "is_sync_completed") + delete(additionalProperties, "is_sync_failed") + delete(additionalProperties, "is_sync_in_flight") + delete(additionalProperties, "is_sync_in_progress") + delete(additionalProperties, "license") + delete(additionalProperties, "name") + delete(additionalProperties, "namespace") + delete(additionalProperties, "namespace_url") + delete(additionalProperties, "num_files") + delete(additionalProperties, "origin_repository") + delete(additionalProperties, "origin_repository_url") + delete(additionalProperties, "package_type") + delete(additionalProperties, "policy_violated") + delete(additionalProperties, "raw_license") + delete(additionalProperties, "release") + delete(additionalProperties, "repository") + delete(additionalProperties, "repository_url") + delete(additionalProperties, "security_scan_completed_at") + delete(additionalProperties, "security_scan_started_at") + delete(additionalProperties, "security_scan_status") + delete(additionalProperties, "security_scan_status_updated_at") + delete(additionalProperties, "self_html_url") + delete(additionalProperties, "self_url") + delete(additionalProperties, "self_webapp_url") + delete(additionalProperties, "signature_url") + delete(additionalProperties, "size") + delete(additionalProperties, "slug") + delete(additionalProperties, "slug_perm") + delete(additionalProperties, "spdx_license") + delete(additionalProperties, "stage") + delete(additionalProperties, "stage_str") + delete(additionalProperties, "stage_updated_at") + delete(additionalProperties, "status") + delete(additionalProperties, "status_reason") + delete(additionalProperties, "status_str") + delete(additionalProperties, "status_updated_at") + delete(additionalProperties, "status_url") + delete(additionalProperties, "subtype") + delete(additionalProperties, "summary") + delete(additionalProperties, "sync_finished_at") + delete(additionalProperties, "sync_progress") + delete(additionalProperties, "tags_automatic") + delete(additionalProperties, "tags_immutable") + delete(additionalProperties, "type_display") + delete(additionalProperties, "uploaded_at") + delete(additionalProperties, "uploader") + delete(additionalProperties, "uploader_url") + delete(additionalProperties, "version") + delete(additionalProperties, "version_orig") + delete(additionalProperties, "vulnerability_scan_results_url") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableVsxPackageUpload struct { + value *VsxPackageUpload + isSet bool +} + +func (v NullableVsxPackageUpload) Get() *VsxPackageUpload { + return v.value +} + +func (v *NullableVsxPackageUpload) Set(val *VsxPackageUpload) { + v.value = val + v.isSet = true +} + +func (v NullableVsxPackageUpload) IsSet() bool { + return v.isSet +} + +func (v *NullableVsxPackageUpload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVsxPackageUpload(val *VsxPackageUpload) *NullableVsxPackageUpload { + return &NullableVsxPackageUpload{value: val, isSet: true} +} + +func (v NullableVsxPackageUpload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVsxPackageUpload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_vsx_package_upload_request.go b/model_vsx_package_upload_request.go new file mode 100644 index 00000000..954e4862 --- /dev/null +++ b/model_vsx_package_upload_request.go @@ -0,0 +1,255 @@ +/* +Cloudsmith API (v1) + +The API to the Cloudsmith Service + +API version: 1.1093.0 +Contact: support@cloudsmith.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cloudsmith + +import ( + "encoding/json" + "fmt" +) + +// checks if the VsxPackageUploadRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &VsxPackageUploadRequest{} + +// VsxPackageUploadRequest struct for VsxPackageUploadRequest +type VsxPackageUploadRequest 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 _VsxPackageUploadRequest VsxPackageUploadRequest + +// NewVsxPackageUploadRequest instantiates a new VsxPackageUploadRequest 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 NewVsxPackageUploadRequest(packageFile string) *VsxPackageUploadRequest { + this := VsxPackageUploadRequest{} + this.PackageFile = packageFile + return &this +} + +// NewVsxPackageUploadRequestWithDefaults instantiates a new VsxPackageUploadRequest 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 NewVsxPackageUploadRequestWithDefaults() *VsxPackageUploadRequest { + this := VsxPackageUploadRequest{} + return &this +} + +// GetPackageFile returns the PackageFile field value +func (o *VsxPackageUploadRequest) 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 *VsxPackageUploadRequest) GetPackageFileOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.PackageFile, true +} + +// SetPackageFile sets field value +func (o *VsxPackageUploadRequest) SetPackageFile(v string) { + o.PackageFile = v +} + +// GetRepublish returns the Republish field value if set, zero value otherwise. +func (o *VsxPackageUploadRequest) 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 *VsxPackageUploadRequest) 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 *VsxPackageUploadRequest) 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 *VsxPackageUploadRequest) 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 *VsxPackageUploadRequest) 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 *VsxPackageUploadRequest) 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 *VsxPackageUploadRequest) 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 *VsxPackageUploadRequest) SetTags(v string) { + o.Tags.Set(&v) +} + +// SetTagsNil sets the value for Tags to be an explicit nil +func (o *VsxPackageUploadRequest) SetTagsNil() { + o.Tags.Set(nil) +} + +// UnsetTags ensures that no value is present for Tags, not even an explicit nil +func (o *VsxPackageUploadRequest) UnsetTags() { + o.Tags.Unset() +} + +func (o VsxPackageUploadRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o VsxPackageUploadRequest) 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 *VsxPackageUploadRequest) 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) + } + } + + varVsxPackageUploadRequest := _VsxPackageUploadRequest{} + + err = json.Unmarshal(data, &varVsxPackageUploadRequest) + + if err != nil { + return err + } + + *o = VsxPackageUploadRequest(varVsxPackageUploadRequest) + + 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 NullableVsxPackageUploadRequest struct { + value *VsxPackageUploadRequest + isSet bool +} + +func (v NullableVsxPackageUploadRequest) Get() *VsxPackageUploadRequest { + return v.value +} + +func (v *NullableVsxPackageUploadRequest) Set(val *VsxPackageUploadRequest) { + v.value = val + v.isSet = true +} + +func (v NullableVsxPackageUploadRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableVsxPackageUploadRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVsxPackageUploadRequest(val *VsxPackageUploadRequest) *NullableVsxPackageUploadRequest { + return &NullableVsxPackageUploadRequest{value: val, isSet: true} +} + +func (v NullableVsxPackageUploadRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVsxPackageUploadRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_vulnerability.go b/model_vulnerability.go index 712c460e..10214891 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_vulnerability_scan.go b/model_vulnerability_scan.go index a468c3aa..916d4357 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_vulnerability_scan_results.go b/model_vulnerability_scan_results.go index 6230d321..0284143b 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_vulnerability_scan_results_list.go b/model_vulnerability_scan_results_list.go index a7d7e644..9361966c 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_vulnerability_scan_version.go b/model_vulnerability_scan_version.go index 269c3219..7908abb9 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/model_webhook_template.go b/model_webhook_template.go index 46408b0c..1c67e4e9 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.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/response.go b/response.go index 20abf4db..1d2486fc 100644 --- a/response.go +++ b/response.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */ diff --git a/utils.go b/utils.go index de30fa94..a8d1a3ce 100644 --- a/utils.go +++ b/utils.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.999.3 +API version: 1.1093.0 Contact: support@cloudsmith.io */