diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index f18e15b0..3bf3ec15 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -64,6 +64,9 @@ docs/CondaPackageUploadRequest.md docs/CondaUpstream.md docs/CondaUpstreamRequest.md docs/CondaUpstreamRequestPatch.md +docs/ConnectedRepository.md +docs/ConnectedRepositoryRequest.md +docs/ConnectedRepositoryRequestPatch.md docs/CranPackageUpload.md docs/CranPackageUploadRequest.md docs/CranUpstream.md @@ -136,6 +139,7 @@ docs/MavenUpstreamRequest.md docs/MavenUpstreamRequestPatch.md docs/McpPackageUpload.md docs/McpPackageUploadRequest.md +docs/MemberTeams.md docs/MetricsApi.md docs/Namespace.md docs/NamespaceAuditLog.md @@ -239,6 +243,7 @@ docs/RawPackageUploadRequest.md docs/RecycleBinApi.md docs/RecycleBinPackage.md docs/ReposApi.md +docs/ReposConnectedList200Response.md docs/Repository.md docs/RepositoryAuditLog.md docs/RepositoryCreate.md @@ -373,6 +378,9 @@ model_conda_package_upload_request.go model_conda_upstream.go model_conda_upstream_request.go model_conda_upstream_request_patch.go +model_connected_repository.go +model_connected_repository_request.go +model_connected_repository_request_patch.go model_cran_package_upload.go model_cran_package_upload_request.go model_cran_upstream.go @@ -441,6 +449,7 @@ model_maven_upstream_request.go model_maven_upstream_request_patch.go model_mcp_package_upload.go model_mcp_package_upload_request.go +model_member_teams.go model_namespace.go model_namespace_audit_log.go model_nested_license_policy.go @@ -536,6 +545,7 @@ model_rate_check.go model_raw_package_upload.go model_raw_package_upload_request.go model_recycle_bin_package.go +model_repos_connected_list_200_response.go model_repository.go model_repository_audit_log.go model_repository_create.go diff --git a/README.md b/README.md index 8790c5c0..36c59710 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.1137.0 -- Package version: 0.0.56 +- API version: 1.1182.1 +- Package version: 0.0.57 - 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) @@ -258,11 +258,17 @@ Class | Method | HTTP request | Description *QuotaApi* | [**QuotaOssRead**](docs/QuotaApi.md#quotaossread) | **Get** /quota/oss/{owner}/ | Open-source Quota usage for a given namespace. *QuotaApi* | [**QuotaRead**](docs/QuotaApi.md#quotaread) | **Get** /quota/{owner}/ | Quota usage for a given namespace. *RatesApi* | [**RatesLimitsList**](docs/RatesApi.md#rateslimitslist) | **Get** /rates/limits/ | Endpoint to check rate limits for current user. +*RecycleBinApi* | [**RecycleBinAction**](docs/RecycleBinApi.md#recyclebinaction) | **Post** /recycle-bin/{owner}/action/ | *RecycleBinApi* | [**RecycleBinList**](docs/RecycleBinApi.md#recyclebinlist) | **Get** /recycle-bin/{owner}/ | List soft-deleted packages in recycle bin -*RecycleBinApi* | [**RecycleBinRecycleBinAction**](docs/RecycleBinApi.md#recyclebinrecyclebinaction) | **Post** /recycle-bin/{owner}/action/ | *ReposApi* | [**ApiReposGeoipStatus**](docs/ReposApi.md#apireposgeoipstatus) | **Get** /repos/{owner}/{identifier}/geoip/status/ | Retrieve the GeoIP status for this repository. *ReposApi* | [**RepoRetentionPartialUpdate**](docs/ReposApi.md#reporetentionpartialupdate) | **Patch** /repos/{owner}/{repo}/retention/ | Update the retention rules for the repository. *ReposApi* | [**RepoRetentionRead**](docs/ReposApi.md#reporetentionread) | **Get** /repos/{owner}/{repo}/retention/ | Retrieve the retention rules for the repository. +*ReposApi* | [**ReposConnectedCreate**](docs/ReposApi.md#reposconnectedcreate) | **Post** /repos/{owner}/{identifier}/connected/ | Create a connected repository for this repository. +*ReposApi* | [**ReposConnectedDelete**](docs/ReposApi.md#reposconnecteddelete) | **Delete** /repos/{owner}/{identifier}/connected/{slug_perm}/ | Delete a connected repository for this repository. +*ReposApi* | [**ReposConnectedList**](docs/ReposApi.md#reposconnectedlist) | **Get** /repos/{owner}/{identifier}/connected/ | List connected repositories for this repository. +*ReposApi* | [**ReposConnectedPartialUpdate**](docs/ReposApi.md#reposconnectedpartialupdate) | **Patch** /repos/{owner}/{identifier}/connected/{slug_perm}/ | Partially update a connected repository for this repository. +*ReposApi* | [**ReposConnectedRead**](docs/ReposApi.md#reposconnectedread) | **Get** /repos/{owner}/{identifier}/connected/{slug_perm}/ | Retrieve a connected repository for this repository. +*ReposApi* | [**ReposConnectedUpdate**](docs/ReposApi.md#reposconnectedupdate) | **Put** /repos/{owner}/{identifier}/connected/{slug_perm}/ | Update a connected repository for this repository. *ReposApi* | [**ReposCreate**](docs/ReposApi.md#reposcreate) | **Post** /repos/{owner}/ | Create a new repository in a given namespace. *ReposApi* | [**ReposDelete**](docs/ReposApi.md#reposdelete) | **Delete** /repos/{owner}/{identifier}/ | *ReposApi* | [**ReposEcdsaCreate**](docs/ReposApi.md#reposecdsacreate) | **Post** /repos/{owner}/{identifier}/ecdsa/ | Set the active ECDSA key for the Repository. @@ -466,6 +472,9 @@ Class | Method | HTTP request | Description - [CondaUpstream](docs/CondaUpstream.md) - [CondaUpstreamRequest](docs/CondaUpstreamRequest.md) - [CondaUpstreamRequestPatch](docs/CondaUpstreamRequestPatch.md) + - [ConnectedRepository](docs/ConnectedRepository.md) + - [ConnectedRepositoryRequest](docs/ConnectedRepositoryRequest.md) + - [ConnectedRepositoryRequestPatch](docs/ConnectedRepositoryRequestPatch.md) - [CranPackageUpload](docs/CranPackageUpload.md) - [CranPackageUploadRequest](docs/CranPackageUploadRequest.md) - [CranUpstream](docs/CranUpstream.md) @@ -534,6 +543,7 @@ Class | Method | HTTP request | Description - [MavenUpstreamRequestPatch](docs/MavenUpstreamRequestPatch.md) - [McpPackageUpload](docs/McpPackageUpload.md) - [McpPackageUploadRequest](docs/McpPackageUploadRequest.md) + - [MemberTeams](docs/MemberTeams.md) - [Namespace](docs/Namespace.md) - [NamespaceAuditLog](docs/NamespaceAuditLog.md) - [NestedLicensePolicy](docs/NestedLicensePolicy.md) @@ -629,6 +639,7 @@ Class | Method | HTTP request | Description - [RawPackageUpload](docs/RawPackageUpload.md) - [RawPackageUploadRequest](docs/RawPackageUploadRequest.md) - [RecycleBinPackage](docs/RecycleBinPackage.md) + - [ReposConnectedList200Response](docs/ReposConnectedList200Response.md) - [Repository](docs/Repository.md) - [RepositoryAuditLog](docs/RepositoryAuditLog.md) - [RepositoryCreate](docs/RepositoryCreate.md) diff --git a/api/openapi.yaml b/api/openapi.yaml index 44894f88..abacd2ad 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.1137.0 + version: 1.1182.1 servers: - url: https://api.cloudsmith.io/ security: @@ -454,6 +454,12 @@ paths: schema: default: false type: boolean + - description: "If true, exclude user tokens that belong to other users" + in: query + name: exclude_other_user_tokens + schema: + default: false + type: boolean - description: "A field for sorting objects in ascending or descending order.\ \ Use `-` prefix for descending order (e.g., `-name`). Available options:\ \ name." @@ -4772,7 +4778,7 @@ paths: summary: Get a list of all packages associated with repository. tags: - packages - x-simplified: "fields[packages]=stage_str,stage_updated_at,status_reason,status_str,status_updated_at,is_sync_completed,is_sync_failed,is_sync_in_progress,is_copyable,is_deleteable,is_downloadable,is_moveable,is_quarantined,sync_finished_at,sync_progress,distro,distro_version,downloads,cdn_url,filename,format,freeable_storage,license,name,num_files,package_type,policy_violated,repository,security_scan_status,security_scan_completed_at,size,slug,slug_perm,uploaded_at,uploader,version,vulnerability_scan_results_url&fields[distributions]=slug,name" + x-simplified: "fields[packages]=stage_str,stage_updated_at,status_reason,status_str,status_updated_at,is_sync_completed,is_sync_failed,is_sync_in_progress,is_copyable,is_deleteable,is_downloadable,is_hidden,is_moveable,is_quarantined,sync_finished_at,sync_progress,distro,distro_version,downloads,cdn_url,filename,format,freeable_storage,license,name,num_files,package_type,policy_violated,repository,security_scan_status,security_scan_completed_at,size,slug,slug_perm,uploaded_at,uploader,version,vulnerability_scan_results_url&fields[distributions]=slug,name" /packages/{owner}/{repo}/groups/: get: description: Return a list of Package Groups in a repository. @@ -7746,7 +7752,7 @@ paths: summary: Get a specific package in a repository. tags: - packages - x-simplified: "fields[packages]=stage_str,stage_updated_at,status_reason,status_str,status_updated_at,is_sync_completed,is_sync_failed,is_sync_in_progress,is_copyable,is_deleteable,is_downloadable,is_moveable,is_quarantined,sync_finished_at,sync_progress,distro,distro_version,downloads,cdn_url,filename,format,freeable_storage,license,name,num_files,package_type,policy_violated,repository,security_scan_status,security_scan_completed_at,size,slug,slug_perm,uploaded_at,uploader,version,vulnerability_scan_results_url&fields[distributions]=slug,name" + x-simplified: "fields[packages]=stage_str,stage_updated_at,status_reason,status_str,status_updated_at,is_sync_completed,is_sync_failed,is_sync_in_progress,is_copyable,is_deleteable,is_downloadable,is_hidden,is_moveable,is_quarantined,sync_finished_at,sync_progress,distro,distro_version,downloads,cdn_url,filename,format,freeable_storage,license,name,num_files,package_type,policy_violated,repository,security_scan_status,security_scan_completed_at,size,slug,slug_perm,uploaded_at,uploader,version,vulnerability_scan_results_url&fields[distributions]=slug,name" /packages/{owner}/{repo}/{identifier}/copy/: post: description: Copy a package to another repository. @@ -8371,7 +8377,7 @@ paths: description: "Perform actions on soft-deleted packages in the recycle bin. Supported\ \ actions: permanently delete (hard delete), restore. Returns a list of successfully\ \ actioned packages and any packages that failed with error details. " - operationId: recycle-bin_recycle_bin_action + operationId: recycle-bin_action parameters: - in: path name: owner @@ -8555,9 +8561,10 @@ paths: x-codegen-request-body-name: data /repos/{owner}/{identifier}/: delete: - description: "Delete a repository in a given namespace.Repositories are soft-deleted\ - \ and can be restored within a retention period. During this time, the repository's\ - \ slug remains reserved and cannot be reused for new repositories." + description: |- + Delete a repository in a given namespace. + + Note: Repositories are soft-deleted and can be restored within a retention period. During this time, the repository's slug remains reserved and cannot be reused for new repositories. operationId: repos_delete parameters: - in: path @@ -8686,6 +8693,272 @@ paths: tags: - repos x-codegen-request-body-name: data + /repos/{owner}/{identifier}/connected/: + get: + description: List connected repositories for this repository. + operationId: repos_connected_list + parameters: + - in: path + name: owner + required: true + schema: + type: string + - in: path + name: identifier + required: true + schema: + type: string + - description: A page number within the paginated result set. + in: query + name: page + schema: + type: integer + - description: Number of results to return per page. + in: query + name: page_size + schema: + type: integer + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/repos_connected_list_200_response' + description: Retrieved the list of connected repositories. + "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 connected repositories for this repository. + tags: + - repos + post: + description: Create a connected repository for this repository. + operationId: repos_connected_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/ConnectedRepositoryRequest' + required: false + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/ConnectedRepository' + description: The connected repository was 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 connected repository for this repository. + tags: + - repos + x-codegen-request-body-name: data + /repos/{owner}/{identifier}/connected/{slug_perm}/: + delete: + description: Delete a connected repository for this repository. + operationId: repos_connected_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: The connected repository was deleted. + "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 connected repository for this repository. + tags: + - repos + get: + description: Retrieve a connected repository for this repository. + operationId: repos_connected_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/ConnectedRepository' + description: Retrieved the connected repository. + "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 connected repository for this repository. + tags: + - repos + patch: + description: Partially update a connected repository for this repository. + operationId: repos_connected_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/ConnectedRepositoryRequestPatch' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ConnectedRepository' + description: The connected repository was partially updated. + "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 connected repository for this repository. + tags: + - repos + x-codegen-request-body-name: data + put: + description: Update a connected repository for this repository. + operationId: repos_connected_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/ConnectedRepositoryRequest' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ConnectedRepository' + description: The connected repository was updated. + "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 connected repository for this repository. + tags: + - repos + x-codegen-request-body-name: data /repos/{owner}/{identifier}/ecdsa/: get: description: Retrieve the active ECDSA key for the Repository. @@ -18978,20 +19251,54 @@ components: type: array uniqueItems: true type: object + MemberTeams: + example: + role: Manager + name: name + slug: slug + properties: + name: + minLength: 1 + readOnly: true + title: Name + type: string + role: + default: Manager + enum: + - Manager + - Member + readOnly: true + title: Role + type: string + slug: + format: slug + minLength: 1 + pattern: "^[-a-zA-Z0-9_]+$" + readOnly: true + title: Slug + type: string + type: object OrganizationMembership: example: - joined_at: 2000-01-23T04:56:07.000+00:00 last_login_at: 2000-01-23T04:56:07.000+00:00 is_active: true role: Owner + teams: + - role: Manager + name: name + slug: slug + - role: Manager + name: name + slug: slug visibility: Public - user_id: user_id user_name: user_name + last_login_method: Unknown + has_two_factor: true + joined_at: 2000-01-23T04:56:07.000+00:00 + user_id: user_id user_url: https://openapi-generator.tech user: user email: email - last_login_method: Unknown - has_two_factor: true properties: email: minLength: 1 @@ -19038,6 +19345,11 @@ components: readOnly: true title: Role type: string + teams: + items: + $ref: '#/components/schemas/MemberTeams' + readOnly: true + type: array user: minLength: 1 readOnly: true @@ -19744,8 +20056,15 @@ components: ServiceTeams: example: role: Manager + name: name slug: slug properties: + name: + description: The name of the team + minLength: 1 + readOnly: true + title: Name + type: string role: default: Manager description: The team role associated with the service @@ -19769,8 +20088,10 @@ components: role: Member teams: - role: Manager + name: name slug: slug - role: Manager + name: name slug: slug created_by_url: https://openapi-generator.tech name: name @@ -19849,8 +20170,10 @@ components: role: Member teams: - role: Manager + name: name slug: slug - role: Manager + name: name slug: slug name: name description: description @@ -19887,8 +20210,10 @@ components: role: Member teams: - role: Manager + name: name slug: slug - role: Manager + name: name slug: slug name: name description: description @@ -20664,6 +20989,7 @@ components: slug: slug extension: extension fully_qualified_name: fully_qualified_name + is_hidden: true description: description is_copyable: true epoch: 6 @@ -20846,6 +21172,10 @@ components: readOnly: true title: Is downloadable type: boolean + is_hidden: + readOnly: true + title: Is hidden + type: boolean is_moveable: readOnly: true title: Is moveable @@ -21307,6 +21637,7 @@ components: slug: slug extension: extension fully_qualified_name: fully_qualified_name + is_hidden: true description: description is_copyable: true epoch: 6 @@ -21482,6 +21813,10 @@ components: readOnly: true title: Is downloadable type: boolean + is_hidden: + readOnly: true + title: Is hidden + type: boolean is_moveable: readOnly: true title: Is moveable @@ -21892,6 +22227,7 @@ components: slug: slug extension: extension fully_qualified_name: fully_qualified_name + is_hidden: true description: description is_copyable: true epoch: 6 @@ -22067,6 +22403,10 @@ components: readOnly: true title: Is downloadable type: boolean + is_hidden: + readOnly: true + title: Is hidden + type: boolean is_moveable: readOnly: true title: Is moveable @@ -22477,6 +22817,7 @@ components: slug: slug extension: extension fully_qualified_name: fully_qualified_name + is_hidden: true description: description is_copyable: true epoch: 6 @@ -22652,6 +22993,10 @@ components: readOnly: true title: Is downloadable type: boolean + is_hidden: + readOnly: true + title: Is hidden + type: boolean is_moveable: readOnly: true title: Is moveable @@ -23069,6 +23414,7 @@ components: slug: slug extension: extension fully_qualified_name: fully_qualified_name + is_hidden: true description: description is_copyable: true epoch: 6 @@ -23244,6 +23590,10 @@ components: readOnly: true title: Is downloadable type: boolean + is_hidden: + readOnly: true + title: Is hidden + type: boolean is_moveable: readOnly: true title: Is moveable @@ -23707,6 +24057,7 @@ components: slug: slug extension: extension fully_qualified_name: fully_qualified_name + is_hidden: true description: description is_copyable: true epoch: 6 @@ -23896,6 +24247,10 @@ components: readOnly: true title: Is downloadable type: boolean + is_hidden: + readOnly: true + title: Is hidden + type: boolean is_moveable: readOnly: true title: Is moveable @@ -24306,6 +24661,7 @@ components: slug: slug extension: extension fully_qualified_name: fully_qualified_name + is_hidden: true description: description is_copyable: true epoch: 6 @@ -24481,6 +24837,10 @@ components: readOnly: true title: Is downloadable type: boolean + is_hidden: + readOnly: true + title: Is hidden + type: boolean is_moveable: readOnly: true title: Is moveable @@ -24907,6 +25267,7 @@ components: slug: slug extension: extension fully_qualified_name: fully_qualified_name + is_hidden: true description: description is_copyable: true epoch: 6 @@ -25083,6 +25444,10 @@ components: readOnly: true title: Is downloadable type: boolean + is_hidden: + readOnly: true + title: Is hidden + type: boolean is_moveable: readOnly: true title: Is moveable @@ -25501,6 +25866,7 @@ components: slug: slug extension: extension fully_qualified_name: fully_qualified_name + is_hidden: true description: description is_copyable: true epoch: 6 @@ -25676,6 +26042,10 @@ components: readOnly: true title: Is downloadable type: boolean + is_hidden: + readOnly: true + title: Is hidden + type: boolean is_moveable: readOnly: true title: Is moveable @@ -26118,6 +26488,7 @@ components: slug: slug extension: extension fully_qualified_name: fully_qualified_name + is_hidden: true description: description is_copyable: true epoch: 6 @@ -26293,6 +26664,10 @@ components: readOnly: true title: Is downloadable type: boolean + is_hidden: + readOnly: true + title: Is hidden + type: boolean is_moveable: readOnly: true title: Is moveable @@ -26703,6 +27078,7 @@ components: slug: slug extension: extension fully_qualified_name: fully_qualified_name + is_hidden: true description: description is_copyable: true epoch: 6 @@ -26878,6 +27254,10 @@ components: readOnly: true title: Is downloadable type: boolean + is_hidden: + readOnly: true + title: Is hidden + type: boolean is_moveable: readOnly: true title: Is moveable @@ -27310,6 +27690,7 @@ components: slug: slug extension: extension fully_qualified_name: fully_qualified_name + is_hidden: true description: description is_copyable: true epoch: 6 @@ -27485,6 +27866,10 @@ components: readOnly: true title: Is downloadable type: boolean + is_hidden: + readOnly: true + title: Is hidden + type: boolean is_moveable: readOnly: true title: Is moveable @@ -27895,6 +28280,7 @@ components: slug: slug extension: extension fully_qualified_name: fully_qualified_name + is_hidden: true description: description is_copyable: true epoch: 6 @@ -28070,6 +28456,10 @@ components: readOnly: true title: Is downloadable type: boolean + is_hidden: + readOnly: true + title: Is hidden + type: boolean is_moveable: readOnly: true title: Is moveable @@ -28488,6 +28878,7 @@ components: slug: slug extension: extension fully_qualified_name: fully_qualified_name + is_hidden: true description: description is_copyable: true epoch: 6 @@ -28663,6 +29054,10 @@ components: readOnly: true title: Is downloadable type: boolean + is_hidden: + readOnly: true + title: Is hidden + type: boolean is_moveable: readOnly: true title: Is moveable @@ -29073,6 +29468,7 @@ components: slug: slug extension: extension fully_qualified_name: fully_qualified_name + is_hidden: true description: description is_copyable: true epoch: 6 @@ -29248,6 +29644,10 @@ components: readOnly: true title: Is downloadable type: boolean + is_hidden: + readOnly: true + title: Is hidden + type: boolean is_moveable: readOnly: true title: Is moveable @@ -29658,6 +30058,7 @@ components: slug: slug extension: extension fully_qualified_name: fully_qualified_name + is_hidden: true description: description is_copyable: true epoch: 6 @@ -29833,6 +30234,10 @@ components: readOnly: true title: Is downloadable type: boolean + is_hidden: + readOnly: true + title: Is hidden + type: boolean is_moveable: readOnly: true title: Is moveable @@ -30243,6 +30648,7 @@ components: slug: slug extension: extension fully_qualified_name: fully_qualified_name + is_hidden: true description: description is_copyable: true epoch: 6 @@ -30418,6 +30824,10 @@ components: readOnly: true title: Is downloadable type: boolean + is_hidden: + readOnly: true + title: Is hidden + type: boolean is_moveable: readOnly: true title: Is moveable @@ -30916,6 +31326,7 @@ components: slug: slug extension: extension fully_qualified_name: fully_qualified_name + is_hidden: true description: description is_copyable: true epoch: 6 @@ -31107,6 +31518,10 @@ components: readOnly: true title: Is downloadable type: boolean + is_hidden: + readOnly: true + title: Is hidden + type: boolean is_moveable: readOnly: true title: Is moveable @@ -31540,6 +31955,7 @@ components: slug: slug extension: extension fully_qualified_name: fully_qualified_name + is_hidden: true description: description is_copyable: true epoch: 6 @@ -31715,6 +32131,10 @@ components: readOnly: true title: Is downloadable type: boolean + is_hidden: + readOnly: true + title: Is hidden + type: boolean is_moveable: readOnly: true title: Is moveable @@ -32134,6 +32554,7 @@ components: slug: slug extension: extension fully_qualified_name: fully_qualified_name + is_hidden: true description: description is_copyable: true epoch: 6 @@ -32309,6 +32730,10 @@ components: readOnly: true title: Is downloadable type: boolean + is_hidden: + readOnly: true + title: Is hidden + type: boolean is_moveable: readOnly: true title: Is moveable @@ -32726,6 +33151,7 @@ components: slug: slug extension: extension fully_qualified_name: fully_qualified_name + is_hidden: true description: description is_copyable: true epoch: 6 @@ -32901,6 +33327,10 @@ components: readOnly: true title: Is downloadable type: boolean + is_hidden: + readOnly: true + title: Is hidden + type: boolean is_moveable: readOnly: true title: Is moveable @@ -33311,6 +33741,7 @@ components: slug: slug extension: extension fully_qualified_name: fully_qualified_name + is_hidden: true description: description is_copyable: true epoch: 6 @@ -33486,6 +33917,10 @@ components: readOnly: true title: Is downloadable type: boolean + is_hidden: + readOnly: true + title: Is hidden + type: boolean is_moveable: readOnly: true title: Is moveable @@ -33896,6 +34331,7 @@ components: slug: slug extension: extension fully_qualified_name: fully_qualified_name + is_hidden: true description: description is_copyable: true epoch: 6 @@ -34071,6 +34507,10 @@ components: readOnly: true title: Is downloadable type: boolean + is_hidden: + readOnly: true + title: Is hidden + type: boolean is_moveable: readOnly: true title: Is moveable @@ -34519,6 +34959,7 @@ components: slug: slug extension: extension fully_qualified_name: fully_qualified_name + is_hidden: true description: description is_copyable: true epoch: 6 @@ -34694,6 +35135,10 @@ components: readOnly: true title: Is downloadable type: boolean + is_hidden: + readOnly: true + title: Is hidden + type: boolean is_moveable: readOnly: true title: Is moveable @@ -35111,6 +35556,7 @@ components: slug: slug extension: extension fully_qualified_name: fully_qualified_name + is_hidden: true description: description is_copyable: true epoch: 6 @@ -35286,6 +35732,10 @@ components: readOnly: true title: Is downloadable type: boolean + is_hidden: + readOnly: true + title: Is hidden + type: boolean is_moveable: readOnly: true title: Is moveable @@ -35696,6 +36146,7 @@ components: slug: slug extension: extension fully_qualified_name: fully_qualified_name + is_hidden: true description: description is_copyable: true epoch: 6 @@ -35871,6 +36322,10 @@ components: readOnly: true title: Is downloadable type: boolean + is_hidden: + readOnly: true + title: Is hidden + type: boolean is_moveable: readOnly: true title: Is moveable @@ -36341,6 +36796,7 @@ components: slug: slug extension: extension fully_qualified_name: fully_qualified_name + is_hidden: true description: description is_copyable: true epoch: 6 @@ -36528,6 +36984,10 @@ components: readOnly: true title: Is downloadable type: boolean + is_hidden: + readOnly: true + title: Is hidden + type: boolean is_moveable: readOnly: true title: Is moveable @@ -36961,6 +37421,7 @@ components: slug: slug extension: extension fully_qualified_name: fully_qualified_name + is_hidden: true description: description is_copyable: true epoch: 6 @@ -37136,6 +37597,10 @@ components: readOnly: true title: Is downloadable type: boolean + is_hidden: + readOnly: true + title: Is hidden + type: boolean is_moveable: readOnly: true title: Is moveable @@ -37567,6 +38032,7 @@ components: slug: slug extension: extension fully_qualified_name: fully_qualified_name + is_hidden: true description: description is_copyable: true epoch: 6 @@ -37743,6 +38209,10 @@ components: readOnly: true title: Is downloadable type: boolean + is_hidden: + readOnly: true + title: Is hidden + type: boolean is_moveable: readOnly: true title: Is moveable @@ -38160,6 +38630,7 @@ components: slug: slug extension: extension fully_qualified_name: fully_qualified_name + is_hidden: true description: description is_copyable: true epoch: 6 @@ -38335,6 +38806,10 @@ components: readOnly: true title: Is downloadable type: boolean + is_hidden: + readOnly: true + title: Is hidden + type: boolean is_moveable: readOnly: true title: Is moveable @@ -38738,6 +39213,7 @@ components: slug: slug extension: extension fully_qualified_name: fully_qualified_name + is_hidden: true description: description is_copyable: true epoch: 6 @@ -38920,6 +39396,10 @@ components: readOnly: true title: Is downloadable type: boolean + is_hidden: + readOnly: true + title: Is hidden + type: boolean is_moveable: readOnly: true title: Is moveable @@ -39413,6 +39893,7 @@ components: slug: slug extension: extension fully_qualified_name: fully_qualified_name + is_hidden: true description: description is_copyable: true epoch: 6 @@ -39595,6 +40076,10 @@ components: readOnly: true title: Is downloadable type: boolean + is_hidden: + readOnly: true + title: Is hidden + type: boolean is_moveable: readOnly: true title: Is moveable @@ -40000,6 +40485,7 @@ components: slug: slug extension: extension fully_qualified_name: fully_qualified_name + is_hidden: true description: description is_copyable: true epoch: 6 @@ -40182,6 +40668,10 @@ components: readOnly: true title: Is downloadable type: boolean + is_hidden: + readOnly: true + title: Is hidden + type: boolean is_moveable: readOnly: true title: Is moveable @@ -40566,6 +41056,7 @@ components: slug: slug extension: extension fully_qualified_name: fully_qualified_name + is_hidden: true description: description is_copyable: true epoch: 6 @@ -40748,6 +41239,10 @@ components: readOnly: true title: Is downloadable type: boolean + is_hidden: + readOnly: true + title: Is hidden + type: boolean is_moveable: readOnly: true title: Is moveable @@ -41057,30 +41552,31 @@ components: type: object PackageStatus: example: + is_hidden: true + is_copyable: true + is_sync_completed: true + stage_updated_at: 2000-01-23T04:56:07.000+00:00 + is_moveable: true + is_quarantined: true + status_reason: status_reason + status_updated_at: 2000-01-23T04:56:07.000+00:00 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: readOnly: true @@ -41098,6 +41594,10 @@ components: readOnly: true title: Is downloadable type: boolean + is_hidden: + readOnly: true + title: Is hidden + type: boolean is_moveable: readOnly: true title: Is moveable @@ -41365,6 +41865,10 @@ components: readOnly: true title: Is downloadable type: boolean + is_hidden: + readOnly: true + title: Is hidden + type: boolean is_immutable: default: false description: "If true, created tags will be immutable. An immutable flag\ @@ -42647,6 +43151,7 @@ components: repository_type_str: Public use_vulnerability_scanning: true resync_own: true + npm_upstream_tags_take_precedence: true slug: slug raw_package_index_enabled: true open_source_project_url: https://openapi-generator.tech @@ -42962,6 +43467,14 @@ components: readOnly: true title: Namespace url type: string + npm_upstream_tags_take_precedence: + description: "If checked, npm distribution tags from configured upstreams\ + \ will take precedence over matching local tags. When both upstream and\ + \ local repositories have the same tag name (e.g., 'latest'), the upstream\ + \ tag will be used instead of the local one, even if the local repository\ + \ has a semantically higher version." + title: Npm Upstream Tags Take Precedence? + type: boolean nuget_native_signing_enabled: description: "When enabled, all pushed (or pulled from upstream) nuget packages\ \ and artifacts will be signed using the repository's X.509 RSA certificate.\ @@ -43273,6 +43786,7 @@ components: repository_type_str: Public use_vulnerability_scanning: true resync_own: true + npm_upstream_tags_take_precedence: true slug: slug copy_own: true proxy_pypi: true @@ -43479,6 +43993,14 @@ components: pattern: "^\\w[\\w \\-'\\.\\/()]+$" title: Name type: string + npm_upstream_tags_take_precedence: + description: "If checked, npm distribution tags from configured upstreams\ + \ will take precedence over matching local tags. When both upstream and\ + \ local repositories have the same tag name (e.g., 'latest'), the upstream\ + \ tag will be used instead of the local one, even if the local repository\ + \ has a semantically higher version." + title: Npm Upstream Tags Take Precedence? + type: boolean nuget_native_signing_enabled: description: "When enabled, all pushed (or pulled from upstream) nuget packages\ \ and artifacts will be signed using the repository's X.509 RSA certificate.\ @@ -43708,6 +44230,7 @@ components: repository_type_str: Public use_vulnerability_scanning: true resync_own: true + npm_upstream_tags_take_precedence: true slug: slug raw_package_index_enabled: true open_source_project_url: https://openapi-generator.tech @@ -44023,6 +44546,14 @@ components: readOnly: true title: Namespace url type: string + npm_upstream_tags_take_precedence: + description: "If checked, npm distribution tags from configured upstreams\ + \ will take precedence over matching local tags. When both upstream and\ + \ local repositories have the same tag name (e.g., 'latest'), the upstream\ + \ tag will be used instead of the local one, even if the local repository\ + \ has a semantically higher version." + title: Npm Upstream Tags Take Precedence? + type: boolean nuget_native_signing_enabled: description: "When enabled, all pushed (or pulled from upstream) nuget packages\ \ and artifacts will be signed using the repository's X.509 RSA certificate.\ @@ -44333,6 +44864,7 @@ components: repository_type_str: Public use_vulnerability_scanning: true resync_own: true + npm_upstream_tags_take_precedence: true slug: slug copy_own: true proxy_pypi: true @@ -44538,6 +45070,14 @@ components: pattern: "^\\w[\\w \\-'\\.\\/()]+$" title: Name type: string + npm_upstream_tags_take_precedence: + description: "If checked, npm distribution tags from configured upstreams\ + \ will take precedence over matching local tags. When both upstream and\ + \ local repositories have the same tag name (e.g., 'latest'), the upstream\ + \ tag will be used instead of the local one, even if the local repository\ + \ has a semantically higher version." + title: Npm Upstream Tags Take Precedence? + type: boolean nuget_native_signing_enabled: description: "When enabled, all pushed (or pulled from upstream) nuget packages\ \ and artifacts will be signed using the repository's X.509 RSA certificate.\ @@ -44746,6 +45286,100 @@ components: title: View statistics type: string type: object + ConnectedRepository: + example: + is_active: true + created_at: 2000-01-23T04:56:07.000+00:00 + priority: 2624 + slug_perm: slug_perm + target_repository: target_repository + properties: + created_at: + description: The date and time when the connection was created. + format: date-time + readOnly: true + title: Created at + type: string + is_active: + default: true + title: Is active + type: boolean + priority: + description: "Repositories are checked in ascending order (starting at 1).\ + \ If multiple repositories have the same priority, the oldest one is used\ + \ first." + 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 + target_repository: + description: The slug of the target repository to connect to. + format: slug + pattern: "^[-a-zA-Z0-9_]+$" + title: Target repository + type: string + required: + - target_repository + type: object + ConnectedRepositoryRequest: + example: + is_active: true + priority: 2624 + target_repository: target_repository + properties: + is_active: + default: true + title: Is active + type: boolean + priority: + description: "Repositories are checked in ascending order (starting at 1).\ + \ If multiple repositories have the same priority, the oldest one is used\ + \ first." + maximum: 32767 + minimum: 1 + title: Priority + type: integer + target_repository: + description: The slug of the target repository to connect to. + format: slug + pattern: "^[-a-zA-Z0-9_]+$" + title: Target repository + type: string + required: + - target_repository + type: object + ConnectedRepositoryRequestPatch: + example: + is_active: true + priority: 2624 + target_repository: target_repository + properties: + is_active: + default: true + title: Is active + type: boolean + priority: + description: "Repositories are checked in ascending order (starting at 1).\ + \ If multiple repositories have the same priority, the oldest one is used\ + \ first." + maximum: 32767 + minimum: 1 + title: Priority + type: integer + target_repository: + description: The slug of the target repository to connect to. + format: slug + pattern: "^[-a-zA-Z0-9_]+$" + title: Target repository + type: string + type: object RepositoryEcdsaKeyCreate: example: ecdsa_passphrase: ecdsa_passphrase @@ -55932,6 +56566,27 @@ components: required: - results type: object + repos_connected_list_200_response: + example: + results: + - is_active: true + created_at: 2000-01-23T04:56:07.000+00:00 + priority: 2624 + slug_perm: slug_perm + target_repository: target_repository + - is_active: true + created_at: 2000-01-23T04:56:07.000+00:00 + priority: 2624 + slug_perm: slug_perm + target_repository: target_repository + properties: + results: + items: + $ref: '#/components/schemas/ConnectedRepository' + type: array + required: + - results + type: object user_tokens_list_200_response: example: results: diff --git a/api_audit_log.go b/api_audit_log.go index 7df7bf75..3c1c770e 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/api_badges.go b/api_badges.go index 948ceac9..859fae7d 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/api_broadcasts.go b/api_broadcasts.go index f7a65faa..e7dd56c4 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/api_bulk_action.go b/api_bulk_action.go index 9132bd2a..bb5d33bf 100644 --- a/api_bulk_action.go +++ b/api_bulk_action.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/api_distros.go b/api_distros.go index b0fcc423..206bab2d 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/api_entitlements.go b/api_entitlements.go index a8df6c13..4b21018f 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ @@ -603,16 +603,17 @@ func (a *EntitlementsApiService) EntitlementsEnableExecute(r ApiEntitlementsEnab } type ApiEntitlementsListRequest struct { - ctx context.Context - ApiService *EntitlementsApiService - owner string - repo string - page *int64 - pageSize *int64 - showTokens *bool - query *string - active *bool - sort *string + ctx context.Context + ApiService *EntitlementsApiService + owner string + repo string + page *int64 + pageSize *int64 + showTokens *bool + query *string + active *bool + excludeOtherUserTokens *bool + sort *string } // A page number within the paginated result set. @@ -645,6 +646,12 @@ func (r ApiEntitlementsListRequest) Active(active bool) ApiEntitlementsListReque return r } +// If true, exclude user tokens that belong to other users +func (r ApiEntitlementsListRequest) ExcludeOtherUserTokens(excludeOtherUserTokens bool) ApiEntitlementsListRequest { + r.excludeOtherUserTokens = &excludeOtherUserTokens + return r +} + // A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name. func (r ApiEntitlementsListRequest) Sort(sort string) ApiEntitlementsListRequest { r.sort = &sort @@ -718,6 +725,12 @@ func (a *EntitlementsApiService) EntitlementsListExecute(r ApiEntitlementsListRe var defaultValue bool = false r.active = &defaultValue } + if r.excludeOtherUserTokens != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "exclude_other_user_tokens", r.excludeOtherUserTokens, "", "") + } else { + var defaultValue bool = false + r.excludeOtherUserTokens = &defaultValue + } if r.sort != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "sort", r.sort, "", "") } else { diff --git a/api_files.go b/api_files.go index dd13e9d8..aff12a80 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/api_formats.go b/api_formats.go index 93b01ac3..0fcbd37d 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/api_metrics.go b/api_metrics.go index a87d85db..9d071304 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/api_namespaces.go b/api_namespaces.go index 6f4a541d..e4c70a31 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/api_orgs.go b/api_orgs.go index 7fbef980..28de4854 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/api_packages.go b/api_packages.go index 325cfab3..bef45275 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/api_quota.go b/api_quota.go index 81044d99..113ec545 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/api_rates.go b/api_rates.go index f09c1766..dd9e22d6 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/api_recycle_bin.go b/api_recycle_bin.go index 2b4b9f75..7e16338a 100644 --- a/api_recycle_bin.go +++ b/api_recycle_bin.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ @@ -23,48 +23,33 @@ import ( // RecycleBinApiService RecycleBinApi service type RecycleBinApiService service -type ApiRecycleBinListRequest struct { +type ApiRecycleBinActionRequest struct { ctx context.Context ApiService *RecycleBinApiService owner string - page *int64 - pageSize *int64 - repository *string -} - -// A page number within the paginated result set. -func (r ApiRecycleBinListRequest) Page(page int64) ApiRecycleBinListRequest { - r.page = &page - return r -} - -// Number of results to return per page. -func (r ApiRecycleBinListRequest) PageSize(pageSize int64) ApiRecycleBinListRequest { - r.pageSize = &pageSize - return r + data *PackageRecycleBin } -// Filter packages by repository slug -func (r ApiRecycleBinListRequest) Repository(repository string) ApiRecycleBinListRequest { - r.repository = &repository +func (r ApiRecycleBinActionRequest) Data(data PackageRecycleBin) ApiRecycleBinActionRequest { + r.data = &data return r } -func (r ApiRecycleBinListRequest) Execute() ([]RecycleBinPackage, *http.Response, error) { - return r.ApiService.RecycleBinListExecute(r) +func (r ApiRecycleBinActionRequest) Execute() (*PackageBulkActionResponse, *http.Response, error) { + return r.ApiService.RecycleBinActionExecute(r) } /* -RecycleBinList List soft-deleted packages in recycle bin +RecycleBinAction Method for RecycleBinAction -Retrieve all soft-deleted packages in the workspace. Optionally filter by repository using the 'repository' query parameter. +Perform actions on soft-deleted packages in the recycle bin. Supported actions: permanently delete (hard delete), restore. Returns a list of successfully actioned packages and any packages that failed with error details. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param owner - @return ApiRecycleBinListRequest + @return ApiRecycleBinActionRequest */ -func (a *RecycleBinApiService) RecycleBinList(ctx context.Context, owner string) ApiRecycleBinListRequest { - return ApiRecycleBinListRequest{ +func (a *RecycleBinApiService) RecycleBinAction(ctx context.Context, owner string) ApiRecycleBinActionRequest { + return ApiRecycleBinActionRequest{ ApiService: a, ctx: ctx, owner: owner, @@ -72,38 +57,29 @@ func (a *RecycleBinApiService) RecycleBinList(ctx context.Context, owner string) } // Execute executes the request -// @return []RecycleBinPackage -func (a *RecycleBinApiService) RecycleBinListExecute(r ApiRecycleBinListRequest) ([]RecycleBinPackage, *http.Response, error) { +// @return PackageBulkActionResponse +func (a *RecycleBinApiService) RecycleBinActionExecute(r ApiRecycleBinActionRequest) (*PackageBulkActionResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet + localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue []RecycleBinPackage + localVarReturnValue *PackageBulkActionResponse ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RecycleBinApiService.RecycleBinList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RecycleBinApiService.RecycleBinAction") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/recycle-bin/{owner}/" + localVarPath := localBasePath + "/recycle-bin/{owner}/action/" localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", url.PathEscape(parameterValueToString(r.owner, "owner")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.page != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "", "") - } - if r.pageSize != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "page_size", r.pageSize, "", "") - } - if r.repository != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "repository", r.repository, "", "") - } // to determine the Content-Type header - localVarHTTPContentTypes := []string{} + localVarHTTPContentTypes := []string{"application/json"} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -119,6 +95,8 @@ func (a *RecycleBinApiService) RecycleBinListExecute(r ApiRecycleBinListRequest) 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 { @@ -191,33 +169,48 @@ func (a *RecycleBinApiService) RecycleBinListExecute(r ApiRecycleBinListRequest) return localVarReturnValue, localVarHTTPResponse, nil } -type ApiRecycleBinRecycleBinActionRequest struct { +type ApiRecycleBinListRequest struct { ctx context.Context ApiService *RecycleBinApiService owner string - data *PackageRecycleBin + page *int64 + pageSize *int64 + repository *string } -func (r ApiRecycleBinRecycleBinActionRequest) Data(data PackageRecycleBin) ApiRecycleBinRecycleBinActionRequest { - r.data = &data +// A page number within the paginated result set. +func (r ApiRecycleBinListRequest) Page(page int64) ApiRecycleBinListRequest { + r.page = &page + return r +} + +// Number of results to return per page. +func (r ApiRecycleBinListRequest) PageSize(pageSize int64) ApiRecycleBinListRequest { + r.pageSize = &pageSize return r } -func (r ApiRecycleBinRecycleBinActionRequest) Execute() (*PackageBulkActionResponse, *http.Response, error) { - return r.ApiService.RecycleBinRecycleBinActionExecute(r) +// Filter packages by repository slug +func (r ApiRecycleBinListRequest) Repository(repository string) ApiRecycleBinListRequest { + r.repository = &repository + return r +} + +func (r ApiRecycleBinListRequest) Execute() ([]RecycleBinPackage, *http.Response, error) { + return r.ApiService.RecycleBinListExecute(r) } /* -RecycleBinRecycleBinAction Method for RecycleBinRecycleBinAction +RecycleBinList List soft-deleted packages in recycle bin -Perform actions on soft-deleted packages in the recycle bin. Supported actions: permanently delete (hard delete), restore. Returns a list of successfully actioned packages and any packages that failed with error details. +Retrieve all soft-deleted packages in the workspace. Optionally filter by repository using the 'repository' query parameter. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param owner - @return ApiRecycleBinRecycleBinActionRequest + @return ApiRecycleBinListRequest */ -func (a *RecycleBinApiService) RecycleBinRecycleBinAction(ctx context.Context, owner string) ApiRecycleBinRecycleBinActionRequest { - return ApiRecycleBinRecycleBinActionRequest{ +func (a *RecycleBinApiService) RecycleBinList(ctx context.Context, owner string) ApiRecycleBinListRequest { + return ApiRecycleBinListRequest{ ApiService: a, ctx: ctx, owner: owner, @@ -225,29 +218,38 @@ func (a *RecycleBinApiService) RecycleBinRecycleBinAction(ctx context.Context, o } // Execute executes the request -// @return PackageBulkActionResponse -func (a *RecycleBinApiService) RecycleBinRecycleBinActionExecute(r ApiRecycleBinRecycleBinActionRequest) (*PackageBulkActionResponse, *http.Response, error) { +// @return []RecycleBinPackage +func (a *RecycleBinApiService) RecycleBinListExecute(r ApiRecycleBinListRequest) ([]RecycleBinPackage, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *PackageBulkActionResponse + localVarReturnValue []RecycleBinPackage ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RecycleBinApiService.RecycleBinRecycleBinAction") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RecycleBinApiService.RecycleBinList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/recycle-bin/{owner}/action/" + localVarPath := localBasePath + "/recycle-bin/{owner}/" localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", url.PathEscape(parameterValueToString(r.owner, "owner")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "", "") + } + if r.pageSize != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page_size", r.pageSize, "", "") + } + if r.repository != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "repository", r.repository, "", "") + } // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} + localVarHTTPContentTypes := []string{} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -263,8 +265,6 @@ func (a *RecycleBinApiService) RecycleBinRecycleBinActionExecute(r ApiRecycleBin 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 { diff --git a/api_repos.go b/api_repos.go index 894540fe..e0f3efff 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ @@ -501,6 +501,907 @@ func (a *ReposApiService) RepoRetentionReadExecute(r ApiRepoRetentionReadRequest return localVarReturnValue, localVarHTTPResponse, nil } +type ApiReposConnectedCreateRequest struct { + ctx context.Context + ApiService *ReposApiService + owner string + identifier string + data *ConnectedRepositoryRequest +} + +func (r ApiReposConnectedCreateRequest) Data(data ConnectedRepositoryRequest) ApiReposConnectedCreateRequest { + r.data = &data + return r +} + +func (r ApiReposConnectedCreateRequest) Execute() (*ConnectedRepository, *http.Response, error) { + return r.ApiService.ReposConnectedCreateExecute(r) +} + +/* +ReposConnectedCreate Create a connected repository for this repository. + +Create a connected repository 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 ApiReposConnectedCreateRequest +*/ +func (a *ReposApiService) ReposConnectedCreate(ctx context.Context, owner string, identifier string) ApiReposConnectedCreateRequest { + return ApiReposConnectedCreateRequest{ + ApiService: a, + ctx: ctx, + owner: owner, + identifier: identifier, + } +} + +// Execute executes the request +// @return ConnectedRepository +func (a *ReposApiService) ReposConnectedCreateExecute(r ApiReposConnectedCreateRequest) (*ConnectedRepository, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ConnectedRepository + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposConnectedCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/repos/{owner}/{identifier}/connected/" + 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 ApiReposConnectedDeleteRequest struct { + ctx context.Context + ApiService *ReposApiService + owner string + identifier string + slugPerm string +} + +func (r ApiReposConnectedDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.ReposConnectedDeleteExecute(r) +} + +/* +ReposConnectedDelete Delete a connected repository for this repository. + +Delete a connected repository 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 ApiReposConnectedDeleteRequest +*/ +func (a *ReposApiService) ReposConnectedDelete(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposConnectedDeleteRequest { + return ApiReposConnectedDeleteRequest{ + ApiService: a, + ctx: ctx, + owner: owner, + identifier: identifier, + slugPerm: slugPerm, + } +} + +// Execute executes the request +func (a *ReposApiService) ReposConnectedDeleteExecute(r ApiReposConnectedDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposConnectedDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/repos/{owner}/{identifier}/connected/{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 ApiReposConnectedListRequest struct { + ctx context.Context + ApiService *ReposApiService + owner string + identifier string + page *int64 + pageSize *int64 +} + +// A page number within the paginated result set. +func (r ApiReposConnectedListRequest) Page(page int64) ApiReposConnectedListRequest { + r.page = &page + return r +} + +// Number of results to return per page. +func (r ApiReposConnectedListRequest) PageSize(pageSize int64) ApiReposConnectedListRequest { + r.pageSize = &pageSize + return r +} + +func (r ApiReposConnectedListRequest) Execute() (*ReposConnectedList200Response, *http.Response, error) { + return r.ApiService.ReposConnectedListExecute(r) +} + +/* +ReposConnectedList List connected repositories for this repository. + +List connected repositories 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 ApiReposConnectedListRequest +*/ +func (a *ReposApiService) ReposConnectedList(ctx context.Context, owner string, identifier string) ApiReposConnectedListRequest { + return ApiReposConnectedListRequest{ + ApiService: a, + ctx: ctx, + owner: owner, + identifier: identifier, + } +} + +// Execute executes the request +// @return ReposConnectedList200Response +func (a *ReposApiService) ReposConnectedListExecute(r ApiReposConnectedListRequest) (*ReposConnectedList200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ReposConnectedList200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposConnectedList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/repos/{owner}/{identifier}/connected/" + 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 ApiReposConnectedPartialUpdateRequest struct { + ctx context.Context + ApiService *ReposApiService + owner string + identifier string + slugPerm string + data *ConnectedRepositoryRequestPatch +} + +func (r ApiReposConnectedPartialUpdateRequest) Data(data ConnectedRepositoryRequestPatch) ApiReposConnectedPartialUpdateRequest { + r.data = &data + return r +} + +func (r ApiReposConnectedPartialUpdateRequest) Execute() (*ConnectedRepository, *http.Response, error) { + return r.ApiService.ReposConnectedPartialUpdateExecute(r) +} + +/* +ReposConnectedPartialUpdate Partially update a connected repository for this repository. + +Partially update a connected repository 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 ApiReposConnectedPartialUpdateRequest +*/ +func (a *ReposApiService) ReposConnectedPartialUpdate(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposConnectedPartialUpdateRequest { + return ApiReposConnectedPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + owner: owner, + identifier: identifier, + slugPerm: slugPerm, + } +} + +// Execute executes the request +// @return ConnectedRepository +func (a *ReposApiService) ReposConnectedPartialUpdateExecute(r ApiReposConnectedPartialUpdateRequest) (*ConnectedRepository, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ConnectedRepository + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposConnectedPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/repos/{owner}/{identifier}/connected/{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 ApiReposConnectedReadRequest struct { + ctx context.Context + ApiService *ReposApiService + owner string + identifier string + slugPerm string +} + +func (r ApiReposConnectedReadRequest) Execute() (*ConnectedRepository, *http.Response, error) { + return r.ApiService.ReposConnectedReadExecute(r) +} + +/* +ReposConnectedRead Retrieve a connected repository for this repository. + +Retrieve a connected repository 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 ApiReposConnectedReadRequest +*/ +func (a *ReposApiService) ReposConnectedRead(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposConnectedReadRequest { + return ApiReposConnectedReadRequest{ + ApiService: a, + ctx: ctx, + owner: owner, + identifier: identifier, + slugPerm: slugPerm, + } +} + +// Execute executes the request +// @return ConnectedRepository +func (a *ReposApiService) ReposConnectedReadExecute(r ApiReposConnectedReadRequest) (*ConnectedRepository, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ConnectedRepository + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposConnectedRead") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/repos/{owner}/{identifier}/connected/{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 ApiReposConnectedUpdateRequest struct { + ctx context.Context + ApiService *ReposApiService + owner string + identifier string + slugPerm string + data *ConnectedRepositoryRequest +} + +func (r ApiReposConnectedUpdateRequest) Data(data ConnectedRepositoryRequest) ApiReposConnectedUpdateRequest { + r.data = &data + return r +} + +func (r ApiReposConnectedUpdateRequest) Execute() (*ConnectedRepository, *http.Response, error) { + return r.ApiService.ReposConnectedUpdateExecute(r) +} + +/* +ReposConnectedUpdate Update a connected repository for this repository. + +Update a connected repository 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 ApiReposConnectedUpdateRequest +*/ +func (a *ReposApiService) ReposConnectedUpdate(ctx context.Context, owner string, identifier string, slugPerm string) ApiReposConnectedUpdateRequest { + return ApiReposConnectedUpdateRequest{ + ApiService: a, + ctx: ctx, + owner: owner, + identifier: identifier, + slugPerm: slugPerm, + } +} + +// Execute executes the request +// @return ConnectedRepository +func (a *ReposApiService) ReposConnectedUpdateExecute(r ApiReposConnectedUpdateRequest) (*ConnectedRepository, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ConnectedRepository + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReposApiService.ReposConnectedUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/repos/{owner}/{identifier}/connected/{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 ApiReposCreateRequest struct { ctx context.Context ApiService *ReposApiService @@ -672,7 +1573,9 @@ func (r ApiReposDeleteRequest) Execute() (*http.Response, error) { /* ReposDelete Method for ReposDelete -Delete a repository in a given namespace.Repositories are soft-deleted and can be restored within a retention period. During this time, the repository's slug remains reserved and cannot be reused for new repositories. +Delete a repository in a given namespace. + +Note: Repositories are soft-deleted and can be restored within a retention period. During this time, the repository's slug remains reserved and cannot be reused for new repositories. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param owner diff --git a/api_status.go b/api_status.go index 6b4fe51e..379a6a33 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/api_storage_regions.go b/api_storage_regions.go index b25756f3..033ad5a3 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/api_user.go b/api_user.go index c6112bfe..d88d3ef3 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/api_users.go b/api_users.go index a07c8aef..dab792e1 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/api_vulnerabilities.go b/api_vulnerabilities.go index 3289d025..c9ad132d 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/api_webhooks.go b/api_webhooks.go index b350191b..1bef557b 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/bin/generate b/bin/generate index bd7bd1d7..4903b8be 100755 --- a/bin/generate +++ b/bin/generate @@ -2,7 +2,7 @@ set -eou pipefail -PKG_VERSION=${1:-"0.0.56"} +PKG_VERSION=${1:-"0.0.57"} API_HOST=${2:-"https://api.cloudsmith.io"} diff --git a/client.go b/client.go index 62d689d7..ff73125e 100644 --- a/client.go +++ b/client.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ @@ -41,7 +41,7 @@ var ( queryDescape = strings.NewReplacer("%5B", "[", "%5D", "]") ) -// APIClient manages communication with the Cloudsmith API (v1) API v1.1137.0 +// APIClient manages communication with the Cloudsmith API (v1) API v1.1182.1 // In most cases there should be only one, shared, APIClient. type APIClient struct { cfg *Configuration diff --git a/configuration.go b/configuration.go index 48f5125a..657e3fdb 100644 --- a/configuration.go +++ b/configuration.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1137.0 +API version: 1.1182.1 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.56/go", + UserAgent: "OpenAPI-Generator/0.0.57/go", Debug: false, Servers: ServerConfigurations{ { diff --git a/docs/AlpinePackageUpload.md b/docs/AlpinePackageUpload.md index 3c8763d4..f9795dc3 100644 --- a/docs/AlpinePackageUpload.md +++ b/docs/AlpinePackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **IsCopyable** | Pointer to **bool** | | [optional] [readonly] **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] +**IsHidden** | Pointer to **bool** | | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -868,6 +869,31 @@ SetIsDownloadable sets IsDownloadable field to given value. HasIsDownloadable returns a boolean if a field has been set. +### GetIsHidden + +`func (o *AlpinePackageUpload) GetIsHidden() bool` + +GetIsHidden returns the IsHidden field if non-nil, zero value otherwise. + +### GetIsHiddenOk + +`func (o *AlpinePackageUpload) GetIsHiddenOk() (*bool, bool)` + +GetIsHiddenOk returns a tuple with the IsHidden field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsHidden + +`func (o *AlpinePackageUpload) SetIsHidden(v bool)` + +SetIsHidden sets IsHidden field to given value. + +### HasIsHidden + +`func (o *AlpinePackageUpload) HasIsHidden() bool` + +HasIsHidden returns a boolean if a field has been set. + ### GetIsMoveable `func (o *AlpinePackageUpload) GetIsMoveable() bool` diff --git a/docs/CargoPackageUpload.md b/docs/CargoPackageUpload.md index ffb743c1..6eede3f5 100644 --- a/docs/CargoPackageUpload.md +++ b/docs/CargoPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **IsCopyable** | Pointer to **bool** | | [optional] [readonly] **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] +**IsHidden** | Pointer to **bool** | | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -868,6 +869,31 @@ SetIsDownloadable sets IsDownloadable field to given value. HasIsDownloadable returns a boolean if a field has been set. +### GetIsHidden + +`func (o *CargoPackageUpload) GetIsHidden() bool` + +GetIsHidden returns the IsHidden field if non-nil, zero value otherwise. + +### GetIsHiddenOk + +`func (o *CargoPackageUpload) GetIsHiddenOk() (*bool, bool)` + +GetIsHiddenOk returns a tuple with the IsHidden field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsHidden + +`func (o *CargoPackageUpload) SetIsHidden(v bool)` + +SetIsHidden sets IsHidden field to given value. + +### HasIsHidden + +`func (o *CargoPackageUpload) HasIsHidden() bool` + +HasIsHidden returns a boolean if a field has been set. + ### GetIsMoveable `func (o *CargoPackageUpload) GetIsMoveable() bool` diff --git a/docs/CocoapodsPackageUpload.md b/docs/CocoapodsPackageUpload.md index 9240f0ac..98d789b8 100644 --- a/docs/CocoapodsPackageUpload.md +++ b/docs/CocoapodsPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **IsCopyable** | Pointer to **bool** | | [optional] [readonly] **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] +**IsHidden** | Pointer to **bool** | | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -868,6 +869,31 @@ SetIsDownloadable sets IsDownloadable field to given value. HasIsDownloadable returns a boolean if a field has been set. +### GetIsHidden + +`func (o *CocoapodsPackageUpload) GetIsHidden() bool` + +GetIsHidden returns the IsHidden field if non-nil, zero value otherwise. + +### GetIsHiddenOk + +`func (o *CocoapodsPackageUpload) GetIsHiddenOk() (*bool, bool)` + +GetIsHiddenOk returns a tuple with the IsHidden field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsHidden + +`func (o *CocoapodsPackageUpload) SetIsHidden(v bool)` + +SetIsHidden sets IsHidden field to given value. + +### HasIsHidden + +`func (o *CocoapodsPackageUpload) HasIsHidden() bool` + +HasIsHidden returns a boolean if a field has been set. + ### GetIsMoveable `func (o *CocoapodsPackageUpload) GetIsMoveable() bool` diff --git a/docs/ComposerPackageUpload.md b/docs/ComposerPackageUpload.md index 7f218555..a407000c 100644 --- a/docs/ComposerPackageUpload.md +++ b/docs/ComposerPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **IsCopyable** | Pointer to **bool** | | [optional] [readonly] **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] +**IsHidden** | Pointer to **bool** | | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -868,6 +869,31 @@ SetIsDownloadable sets IsDownloadable field to given value. HasIsDownloadable returns a boolean if a field has been set. +### GetIsHidden + +`func (o *ComposerPackageUpload) GetIsHidden() bool` + +GetIsHidden returns the IsHidden field if non-nil, zero value otherwise. + +### GetIsHiddenOk + +`func (o *ComposerPackageUpload) GetIsHiddenOk() (*bool, bool)` + +GetIsHiddenOk returns a tuple with the IsHidden field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsHidden + +`func (o *ComposerPackageUpload) SetIsHidden(v bool)` + +SetIsHidden sets IsHidden field to given value. + +### HasIsHidden + +`func (o *ComposerPackageUpload) HasIsHidden() bool` + +HasIsHidden returns a boolean if a field has been set. + ### GetIsMoveable `func (o *ComposerPackageUpload) GetIsMoveable() bool` diff --git a/docs/ConanPackageUpload.md b/docs/ConanPackageUpload.md index f67656f7..9f276330 100644 --- a/docs/ConanPackageUpload.md +++ b/docs/ConanPackageUpload.md @@ -34,6 +34,7 @@ Name | Type | Description | Notes **IsCopyable** | Pointer to **bool** | | [optional] [readonly] **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] +**IsHidden** | Pointer to **bool** | | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -940,6 +941,31 @@ SetIsDownloadable sets IsDownloadable field to given value. HasIsDownloadable returns a boolean if a field has been set. +### GetIsHidden + +`func (o *ConanPackageUpload) GetIsHidden() bool` + +GetIsHidden returns the IsHidden field if non-nil, zero value otherwise. + +### GetIsHiddenOk + +`func (o *ConanPackageUpload) GetIsHiddenOk() (*bool, bool)` + +GetIsHiddenOk returns a tuple with the IsHidden field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsHidden + +`func (o *ConanPackageUpload) SetIsHidden(v bool)` + +SetIsHidden sets IsHidden field to given value. + +### HasIsHidden + +`func (o *ConanPackageUpload) HasIsHidden() bool` + +HasIsHidden returns a boolean if a field has been set. + ### GetIsMoveable `func (o *ConanPackageUpload) GetIsMoveable() bool` diff --git a/docs/CondaPackageUpload.md b/docs/CondaPackageUpload.md index 072e1f45..9679eabe 100644 --- a/docs/CondaPackageUpload.md +++ b/docs/CondaPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **IsCopyable** | Pointer to **bool** | | [optional] [readonly] **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] +**IsHidden** | Pointer to **bool** | | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -868,6 +869,31 @@ SetIsDownloadable sets IsDownloadable field to given value. HasIsDownloadable returns a boolean if a field has been set. +### GetIsHidden + +`func (o *CondaPackageUpload) GetIsHidden() bool` + +GetIsHidden returns the IsHidden field if non-nil, zero value otherwise. + +### GetIsHiddenOk + +`func (o *CondaPackageUpload) GetIsHiddenOk() (*bool, bool)` + +GetIsHiddenOk returns a tuple with the IsHidden field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsHidden + +`func (o *CondaPackageUpload) SetIsHidden(v bool)` + +SetIsHidden sets IsHidden field to given value. + +### HasIsHidden + +`func (o *CondaPackageUpload) HasIsHidden() bool` + +HasIsHidden returns a boolean if a field has been set. + ### GetIsMoveable `func (o *CondaPackageUpload) GetIsMoveable() bool` diff --git a/docs/ConnectedRepository.md b/docs/ConnectedRepository.md new file mode 100644 index 00000000..06c5a7f5 --- /dev/null +++ b/docs/ConnectedRepository.md @@ -0,0 +1,155 @@ +# ConnectedRepository + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CreatedAt** | Pointer to **time.Time** | The date and time when the connection was created. | [optional] [readonly] +**IsActive** | Pointer to **bool** | | [optional] [default to true] +**Priority** | Pointer to **int64** | Repositories are checked in ascending order (starting at 1). If multiple repositories have the same priority, the oldest one is used first. | [optional] +**SlugPerm** | Pointer to **string** | | [optional] [readonly] +**TargetRepository** | **string** | The slug of the target repository to connect to. | + +## Methods + +### NewConnectedRepository + +`func NewConnectedRepository(targetRepository string, ) *ConnectedRepository` + +NewConnectedRepository instantiates a new ConnectedRepository 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 + +### NewConnectedRepositoryWithDefaults + +`func NewConnectedRepositoryWithDefaults() *ConnectedRepository` + +NewConnectedRepositoryWithDefaults instantiates a new ConnectedRepository object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCreatedAt + +`func (o *ConnectedRepository) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *ConnectedRepository) 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 *ConnectedRepository) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *ConnectedRepository) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetIsActive + +`func (o *ConnectedRepository) GetIsActive() bool` + +GetIsActive returns the IsActive field if non-nil, zero value otherwise. + +### GetIsActiveOk + +`func (o *ConnectedRepository) 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 *ConnectedRepository) SetIsActive(v bool)` + +SetIsActive sets IsActive field to given value. + +### HasIsActive + +`func (o *ConnectedRepository) HasIsActive() bool` + +HasIsActive returns a boolean if a field has been set. + +### GetPriority + +`func (o *ConnectedRepository) GetPriority() int64` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *ConnectedRepository) 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 *ConnectedRepository) SetPriority(v int64)` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *ConnectedRepository) HasPriority() bool` + +HasPriority returns a boolean if a field has been set. + +### GetSlugPerm + +`func (o *ConnectedRepository) GetSlugPerm() string` + +GetSlugPerm returns the SlugPerm field if non-nil, zero value otherwise. + +### GetSlugPermOk + +`func (o *ConnectedRepository) 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 *ConnectedRepository) SetSlugPerm(v string)` + +SetSlugPerm sets SlugPerm field to given value. + +### HasSlugPerm + +`func (o *ConnectedRepository) HasSlugPerm() bool` + +HasSlugPerm returns a boolean if a field has been set. + +### GetTargetRepository + +`func (o *ConnectedRepository) GetTargetRepository() string` + +GetTargetRepository returns the TargetRepository field if non-nil, zero value otherwise. + +### GetTargetRepositoryOk + +`func (o *ConnectedRepository) GetTargetRepositoryOk() (*string, bool)` + +GetTargetRepositoryOk returns a tuple with the TargetRepository field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTargetRepository + +`func (o *ConnectedRepository) SetTargetRepository(v string)` + +SetTargetRepository sets TargetRepository 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/ConnectedRepositoryRequest.md b/docs/ConnectedRepositoryRequest.md new file mode 100644 index 00000000..8e2f78cb --- /dev/null +++ b/docs/ConnectedRepositoryRequest.md @@ -0,0 +1,103 @@ +# ConnectedRepositoryRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IsActive** | Pointer to **bool** | | [optional] [default to true] +**Priority** | Pointer to **int64** | Repositories are checked in ascending order (starting at 1). If multiple repositories have the same priority, the oldest one is used first. | [optional] +**TargetRepository** | **string** | The slug of the target repository to connect to. | + +## Methods + +### NewConnectedRepositoryRequest + +`func NewConnectedRepositoryRequest(targetRepository string, ) *ConnectedRepositoryRequest` + +NewConnectedRepositoryRequest instantiates a new ConnectedRepositoryRequest 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 + +### NewConnectedRepositoryRequestWithDefaults + +`func NewConnectedRepositoryRequestWithDefaults() *ConnectedRepositoryRequest` + +NewConnectedRepositoryRequestWithDefaults instantiates a new ConnectedRepositoryRequest 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 + +### GetIsActive + +`func (o *ConnectedRepositoryRequest) GetIsActive() bool` + +GetIsActive returns the IsActive field if non-nil, zero value otherwise. + +### GetIsActiveOk + +`func (o *ConnectedRepositoryRequest) 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 *ConnectedRepositoryRequest) SetIsActive(v bool)` + +SetIsActive sets IsActive field to given value. + +### HasIsActive + +`func (o *ConnectedRepositoryRequest) HasIsActive() bool` + +HasIsActive returns a boolean if a field has been set. + +### GetPriority + +`func (o *ConnectedRepositoryRequest) GetPriority() int64` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *ConnectedRepositoryRequest) 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 *ConnectedRepositoryRequest) SetPriority(v int64)` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *ConnectedRepositoryRequest) HasPriority() bool` + +HasPriority returns a boolean if a field has been set. + +### GetTargetRepository + +`func (o *ConnectedRepositoryRequest) GetTargetRepository() string` + +GetTargetRepository returns the TargetRepository field if non-nil, zero value otherwise. + +### GetTargetRepositoryOk + +`func (o *ConnectedRepositoryRequest) GetTargetRepositoryOk() (*string, bool)` + +GetTargetRepositoryOk returns a tuple with the TargetRepository field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTargetRepository + +`func (o *ConnectedRepositoryRequest) SetTargetRepository(v string)` + +SetTargetRepository sets TargetRepository 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/ConnectedRepositoryRequestPatch.md b/docs/ConnectedRepositoryRequestPatch.md new file mode 100644 index 00000000..862bbb1a --- /dev/null +++ b/docs/ConnectedRepositoryRequestPatch.md @@ -0,0 +1,108 @@ +# ConnectedRepositoryRequestPatch + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IsActive** | Pointer to **bool** | | [optional] [default to true] +**Priority** | Pointer to **int64** | Repositories are checked in ascending order (starting at 1). If multiple repositories have the same priority, the oldest one is used first. | [optional] +**TargetRepository** | Pointer to **string** | The slug of the target repository to connect to. | [optional] + +## Methods + +### NewConnectedRepositoryRequestPatch + +`func NewConnectedRepositoryRequestPatch() *ConnectedRepositoryRequestPatch` + +NewConnectedRepositoryRequestPatch instantiates a new ConnectedRepositoryRequestPatch 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 + +### NewConnectedRepositoryRequestPatchWithDefaults + +`func NewConnectedRepositoryRequestPatchWithDefaults() *ConnectedRepositoryRequestPatch` + +NewConnectedRepositoryRequestPatchWithDefaults instantiates a new ConnectedRepositoryRequestPatch 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 + +### GetIsActive + +`func (o *ConnectedRepositoryRequestPatch) GetIsActive() bool` + +GetIsActive returns the IsActive field if non-nil, zero value otherwise. + +### GetIsActiveOk + +`func (o *ConnectedRepositoryRequestPatch) 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 *ConnectedRepositoryRequestPatch) SetIsActive(v bool)` + +SetIsActive sets IsActive field to given value. + +### HasIsActive + +`func (o *ConnectedRepositoryRequestPatch) HasIsActive() bool` + +HasIsActive returns a boolean if a field has been set. + +### GetPriority + +`func (o *ConnectedRepositoryRequestPatch) GetPriority() int64` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *ConnectedRepositoryRequestPatch) 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 *ConnectedRepositoryRequestPatch) SetPriority(v int64)` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *ConnectedRepositoryRequestPatch) HasPriority() bool` + +HasPriority returns a boolean if a field has been set. + +### GetTargetRepository + +`func (o *ConnectedRepositoryRequestPatch) GetTargetRepository() string` + +GetTargetRepository returns the TargetRepository field if non-nil, zero value otherwise. + +### GetTargetRepositoryOk + +`func (o *ConnectedRepositoryRequestPatch) GetTargetRepositoryOk() (*string, bool)` + +GetTargetRepositoryOk returns a tuple with the TargetRepository field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTargetRepository + +`func (o *ConnectedRepositoryRequestPatch) SetTargetRepository(v string)` + +SetTargetRepository sets TargetRepository field to given value. + +### HasTargetRepository + +`func (o *ConnectedRepositoryRequestPatch) HasTargetRepository() bool` + +HasTargetRepository returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CranPackageUpload.md b/docs/CranPackageUpload.md index c7df18ab..d31953a6 100644 --- a/docs/CranPackageUpload.md +++ b/docs/CranPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **IsCopyable** | Pointer to **bool** | | [optional] [readonly] **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] +**IsHidden** | Pointer to **bool** | | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -869,6 +870,31 @@ SetIsDownloadable sets IsDownloadable field to given value. HasIsDownloadable returns a boolean if a field has been set. +### GetIsHidden + +`func (o *CranPackageUpload) GetIsHidden() bool` + +GetIsHidden returns the IsHidden field if non-nil, zero value otherwise. + +### GetIsHiddenOk + +`func (o *CranPackageUpload) GetIsHiddenOk() (*bool, bool)` + +GetIsHiddenOk returns a tuple with the IsHidden field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsHidden + +`func (o *CranPackageUpload) SetIsHidden(v bool)` + +SetIsHidden sets IsHidden field to given value. + +### HasIsHidden + +`func (o *CranPackageUpload) HasIsHidden() bool` + +HasIsHidden returns a boolean if a field has been set. + ### GetIsMoveable `func (o *CranPackageUpload) GetIsMoveable() bool` diff --git a/docs/DartPackageUpload.md b/docs/DartPackageUpload.md index 1bad6220..3ec17a8e 100644 --- a/docs/DartPackageUpload.md +++ b/docs/DartPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **IsCopyable** | Pointer to **bool** | | [optional] [readonly] **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] +**IsHidden** | Pointer to **bool** | | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -868,6 +869,31 @@ SetIsDownloadable sets IsDownloadable field to given value. HasIsDownloadable returns a boolean if a field has been set. +### GetIsHidden + +`func (o *DartPackageUpload) GetIsHidden() bool` + +GetIsHidden returns the IsHidden field if non-nil, zero value otherwise. + +### GetIsHiddenOk + +`func (o *DartPackageUpload) GetIsHiddenOk() (*bool, bool)` + +GetIsHiddenOk returns a tuple with the IsHidden field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsHidden + +`func (o *DartPackageUpload) SetIsHidden(v bool)` + +SetIsHidden sets IsHidden field to given value. + +### HasIsHidden + +`func (o *DartPackageUpload) HasIsHidden() bool` + +HasIsHidden returns a boolean if a field has been set. + ### GetIsMoveable `func (o *DartPackageUpload) GetIsMoveable() bool` diff --git a/docs/DebPackageUpload.md b/docs/DebPackageUpload.md index d2cd2fd7..d18f9011 100644 --- a/docs/DebPackageUpload.md +++ b/docs/DebPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **IsCopyable** | Pointer to **bool** | | [optional] [readonly] **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] +**IsHidden** | Pointer to **bool** | | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -868,6 +869,31 @@ SetIsDownloadable sets IsDownloadable field to given value. HasIsDownloadable returns a boolean if a field has been set. +### GetIsHidden + +`func (o *DebPackageUpload) GetIsHidden() bool` + +GetIsHidden returns the IsHidden field if non-nil, zero value otherwise. + +### GetIsHiddenOk + +`func (o *DebPackageUpload) GetIsHiddenOk() (*bool, bool)` + +GetIsHiddenOk returns a tuple with the IsHidden field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsHidden + +`func (o *DebPackageUpload) SetIsHidden(v bool)` + +SetIsHidden sets IsHidden field to given value. + +### HasIsHidden + +`func (o *DebPackageUpload) HasIsHidden() bool` + +HasIsHidden returns a boolean if a field has been set. + ### GetIsMoveable `func (o *DebPackageUpload) GetIsMoveable() bool` diff --git a/docs/DockerPackageUpload.md b/docs/DockerPackageUpload.md index 75348887..3842a53b 100644 --- a/docs/DockerPackageUpload.md +++ b/docs/DockerPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **IsCopyable** | Pointer to **bool** | | [optional] [readonly] **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] +**IsHidden** | Pointer to **bool** | | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -868,6 +869,31 @@ SetIsDownloadable sets IsDownloadable field to given value. HasIsDownloadable returns a boolean if a field has been set. +### GetIsHidden + +`func (o *DockerPackageUpload) GetIsHidden() bool` + +GetIsHidden returns the IsHidden field if non-nil, zero value otherwise. + +### GetIsHiddenOk + +`func (o *DockerPackageUpload) GetIsHiddenOk() (*bool, bool)` + +GetIsHiddenOk returns a tuple with the IsHidden field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsHidden + +`func (o *DockerPackageUpload) SetIsHidden(v bool)` + +SetIsHidden sets IsHidden field to given value. + +### HasIsHidden + +`func (o *DockerPackageUpload) HasIsHidden() bool` + +HasIsHidden returns a boolean if a field has been set. + ### GetIsMoveable `func (o *DockerPackageUpload) GetIsMoveable() bool` diff --git a/docs/EntitlementsApi.md b/docs/EntitlementsApi.md index 78de1e1d..143a6258 100644 --- a/docs/EntitlementsApi.md +++ b/docs/EntitlementsApi.md @@ -319,7 +319,7 @@ Name | Type | Description | Notes ## EntitlementsList -> []RepositoryToken EntitlementsList(ctx, owner, repo).Page(page).PageSize(pageSize).ShowTokens(showTokens).Query(query).Active(active).Sort(sort).Execute() +> []RepositoryToken EntitlementsList(ctx, owner, repo).Page(page).PageSize(pageSize).ShowTokens(showTokens).Query(query).Active(active).ExcludeOtherUserTokens(excludeOtherUserTokens).Sort(sort).Execute() Get a list of all entitlements in a repository. @@ -345,11 +345,12 @@ func main() { showTokens := true // bool | Show entitlement token strings in results (optional) (default to false) query := "query_example" // string | A search term for querying names of entitlements. (optional) active := true // bool | If true, only include active tokens (optional) (default to false) + excludeOtherUserTokens := true // bool | If true, exclude user tokens that belong to other users (optional) (default to false) sort := "sort_example" // string | A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name. (optional) (default to "name") configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.EntitlementsApi.EntitlementsList(context.Background(), owner, repo).Page(page).PageSize(pageSize).ShowTokens(showTokens).Query(query).Active(active).Sort(sort).Execute() + resp, r, err := apiClient.EntitlementsApi.EntitlementsList(context.Background(), owner, repo).Page(page).PageSize(pageSize).ShowTokens(showTokens).Query(query).Active(active).ExcludeOtherUserTokens(excludeOtherUserTokens).Sort(sort).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsApi.EntitlementsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -382,6 +383,7 @@ Name | Type | Description | Notes **showTokens** | **bool** | Show entitlement token strings in results | [default to false] **query** | **string** | A search term for querying names of entitlements. | **active** | **bool** | If true, only include active tokens | [default to false] + **excludeOtherUserTokens** | **bool** | If true, exclude user tokens that belong to other users | [default to false] **sort** | **string** | A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name. | [default to "name"] ### Return type diff --git a/docs/GenericPackageUpload.md b/docs/GenericPackageUpload.md index 310146fc..91423bbe 100644 --- a/docs/GenericPackageUpload.md +++ b/docs/GenericPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **IsCopyable** | Pointer to **bool** | | [optional] [readonly] **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] +**IsHidden** | Pointer to **bool** | | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -868,6 +869,31 @@ SetIsDownloadable sets IsDownloadable field to given value. HasIsDownloadable returns a boolean if a field has been set. +### GetIsHidden + +`func (o *GenericPackageUpload) GetIsHidden() bool` + +GetIsHidden returns the IsHidden field if non-nil, zero value otherwise. + +### GetIsHiddenOk + +`func (o *GenericPackageUpload) GetIsHiddenOk() (*bool, bool)` + +GetIsHiddenOk returns a tuple with the IsHidden field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsHidden + +`func (o *GenericPackageUpload) SetIsHidden(v bool)` + +SetIsHidden sets IsHidden field to given value. + +### HasIsHidden + +`func (o *GenericPackageUpload) HasIsHidden() bool` + +HasIsHidden returns a boolean if a field has been set. + ### GetIsMoveable `func (o *GenericPackageUpload) GetIsMoveable() bool` diff --git a/docs/GoPackageUpload.md b/docs/GoPackageUpload.md index 0111e24b..e89c77b4 100644 --- a/docs/GoPackageUpload.md +++ b/docs/GoPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **IsCopyable** | Pointer to **bool** | | [optional] [readonly] **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] +**IsHidden** | Pointer to **bool** | | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -868,6 +869,31 @@ SetIsDownloadable sets IsDownloadable field to given value. HasIsDownloadable returns a boolean if a field has been set. +### GetIsHidden + +`func (o *GoPackageUpload) GetIsHidden() bool` + +GetIsHidden returns the IsHidden field if non-nil, zero value otherwise. + +### GetIsHiddenOk + +`func (o *GoPackageUpload) GetIsHiddenOk() (*bool, bool)` + +GetIsHiddenOk returns a tuple with the IsHidden field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsHidden + +`func (o *GoPackageUpload) SetIsHidden(v bool)` + +SetIsHidden sets IsHidden field to given value. + +### HasIsHidden + +`func (o *GoPackageUpload) HasIsHidden() bool` + +HasIsHidden returns a boolean if a field has been set. + ### GetIsMoveable `func (o *GoPackageUpload) GetIsMoveable() bool` diff --git a/docs/HelmPackageUpload.md b/docs/HelmPackageUpload.md index a3a1504f..0b86e37e 100644 --- a/docs/HelmPackageUpload.md +++ b/docs/HelmPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **IsCopyable** | Pointer to **bool** | | [optional] [readonly] **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] +**IsHidden** | Pointer to **bool** | | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -868,6 +869,31 @@ SetIsDownloadable sets IsDownloadable field to given value. HasIsDownloadable returns a boolean if a field has been set. +### GetIsHidden + +`func (o *HelmPackageUpload) GetIsHidden() bool` + +GetIsHidden returns the IsHidden field if non-nil, zero value otherwise. + +### GetIsHiddenOk + +`func (o *HelmPackageUpload) GetIsHiddenOk() (*bool, bool)` + +GetIsHiddenOk returns a tuple with the IsHidden field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsHidden + +`func (o *HelmPackageUpload) SetIsHidden(v bool)` + +SetIsHidden sets IsHidden field to given value. + +### HasIsHidden + +`func (o *HelmPackageUpload) HasIsHidden() bool` + +HasIsHidden returns a boolean if a field has been set. + ### GetIsMoveable `func (o *HelmPackageUpload) GetIsMoveable() bool` diff --git a/docs/HexPackageUpload.md b/docs/HexPackageUpload.md index 44dff7bc..31b8f7c2 100644 --- a/docs/HexPackageUpload.md +++ b/docs/HexPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **IsCopyable** | Pointer to **bool** | | [optional] [readonly] **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] +**IsHidden** | Pointer to **bool** | | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -868,6 +869,31 @@ SetIsDownloadable sets IsDownloadable field to given value. HasIsDownloadable returns a boolean if a field has been set. +### GetIsHidden + +`func (o *HexPackageUpload) GetIsHidden() bool` + +GetIsHidden returns the IsHidden field if non-nil, zero value otherwise. + +### GetIsHiddenOk + +`func (o *HexPackageUpload) GetIsHiddenOk() (*bool, bool)` + +GetIsHiddenOk returns a tuple with the IsHidden field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsHidden + +`func (o *HexPackageUpload) SetIsHidden(v bool)` + +SetIsHidden sets IsHidden field to given value. + +### HasIsHidden + +`func (o *HexPackageUpload) HasIsHidden() bool` + +HasIsHidden returns a boolean if a field has been set. + ### GetIsMoveable `func (o *HexPackageUpload) GetIsMoveable() bool` diff --git a/docs/HuggingfacePackageUpload.md b/docs/HuggingfacePackageUpload.md index c1091e5a..5b78dfef 100644 --- a/docs/HuggingfacePackageUpload.md +++ b/docs/HuggingfacePackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **IsCopyable** | Pointer to **bool** | | [optional] [readonly] **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] +**IsHidden** | Pointer to **bool** | | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -868,6 +869,31 @@ SetIsDownloadable sets IsDownloadable field to given value. HasIsDownloadable returns a boolean if a field has been set. +### GetIsHidden + +`func (o *HuggingfacePackageUpload) GetIsHidden() bool` + +GetIsHidden returns the IsHidden field if non-nil, zero value otherwise. + +### GetIsHiddenOk + +`func (o *HuggingfacePackageUpload) GetIsHiddenOk() (*bool, bool)` + +GetIsHiddenOk returns a tuple with the IsHidden field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsHidden + +`func (o *HuggingfacePackageUpload) SetIsHidden(v bool)` + +SetIsHidden sets IsHidden field to given value. + +### HasIsHidden + +`func (o *HuggingfacePackageUpload) HasIsHidden() bool` + +HasIsHidden returns a boolean if a field has been set. + ### GetIsMoveable `func (o *HuggingfacePackageUpload) GetIsMoveable() bool` diff --git a/docs/LuarocksPackageUpload.md b/docs/LuarocksPackageUpload.md index a8ba0b83..2c10e383 100644 --- a/docs/LuarocksPackageUpload.md +++ b/docs/LuarocksPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **IsCopyable** | Pointer to **bool** | | [optional] [readonly] **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] +**IsHidden** | Pointer to **bool** | | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -868,6 +869,31 @@ SetIsDownloadable sets IsDownloadable field to given value. HasIsDownloadable returns a boolean if a field has been set. +### GetIsHidden + +`func (o *LuarocksPackageUpload) GetIsHidden() bool` + +GetIsHidden returns the IsHidden field if non-nil, zero value otherwise. + +### GetIsHiddenOk + +`func (o *LuarocksPackageUpload) GetIsHiddenOk() (*bool, bool)` + +GetIsHiddenOk returns a tuple with the IsHidden field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsHidden + +`func (o *LuarocksPackageUpload) SetIsHidden(v bool)` + +SetIsHidden sets IsHidden field to given value. + +### HasIsHidden + +`func (o *LuarocksPackageUpload) HasIsHidden() bool` + +HasIsHidden returns a boolean if a field has been set. + ### GetIsMoveable `func (o *LuarocksPackageUpload) GetIsMoveable() bool` diff --git a/docs/MavenPackageUpload.md b/docs/MavenPackageUpload.md index fc12c783..cda11f4d 100644 --- a/docs/MavenPackageUpload.md +++ b/docs/MavenPackageUpload.md @@ -34,6 +34,7 @@ Name | Type | Description | Notes **IsCopyable** | Pointer to **bool** | | [optional] [readonly] **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] +**IsHidden** | Pointer to **bool** | | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -943,6 +944,31 @@ SetIsDownloadable sets IsDownloadable field to given value. HasIsDownloadable returns a boolean if a field has been set. +### GetIsHidden + +`func (o *MavenPackageUpload) GetIsHidden() bool` + +GetIsHidden returns the IsHidden field if non-nil, zero value otherwise. + +### GetIsHiddenOk + +`func (o *MavenPackageUpload) GetIsHiddenOk() (*bool, bool)` + +GetIsHiddenOk returns a tuple with the IsHidden field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsHidden + +`func (o *MavenPackageUpload) SetIsHidden(v bool)` + +SetIsHidden sets IsHidden field to given value. + +### HasIsHidden + +`func (o *MavenPackageUpload) HasIsHidden() bool` + +HasIsHidden returns a boolean if a field has been set. + ### GetIsMoveable `func (o *MavenPackageUpload) GetIsMoveable() bool` diff --git a/docs/McpPackageUpload.md b/docs/McpPackageUpload.md index 6565c1e2..ae2acbc3 100644 --- a/docs/McpPackageUpload.md +++ b/docs/McpPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **IsCopyable** | Pointer to **bool** | | [optional] [readonly] **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] +**IsHidden** | Pointer to **bool** | | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -868,6 +869,31 @@ SetIsDownloadable sets IsDownloadable field to given value. HasIsDownloadable returns a boolean if a field has been set. +### GetIsHidden + +`func (o *McpPackageUpload) GetIsHidden() bool` + +GetIsHidden returns the IsHidden field if non-nil, zero value otherwise. + +### GetIsHiddenOk + +`func (o *McpPackageUpload) GetIsHiddenOk() (*bool, bool)` + +GetIsHiddenOk returns a tuple with the IsHidden field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsHidden + +`func (o *McpPackageUpload) SetIsHidden(v bool)` + +SetIsHidden sets IsHidden field to given value. + +### HasIsHidden + +`func (o *McpPackageUpload) HasIsHidden() bool` + +HasIsHidden returns a boolean if a field has been set. + ### GetIsMoveable `func (o *McpPackageUpload) GetIsMoveable() bool` diff --git a/docs/MemberTeams.md b/docs/MemberTeams.md new file mode 100644 index 00000000..7c07d2e0 --- /dev/null +++ b/docs/MemberTeams.md @@ -0,0 +1,108 @@ +# MemberTeams + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] [readonly] +**Role** | Pointer to **string** | | [optional] [readonly] [default to "Manager"] +**Slug** | Pointer to **string** | | [optional] [readonly] + +## Methods + +### NewMemberTeams + +`func NewMemberTeams() *MemberTeams` + +NewMemberTeams instantiates a new MemberTeams 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 + +### NewMemberTeamsWithDefaults + +`func NewMemberTeamsWithDefaults() *MemberTeams` + +NewMemberTeamsWithDefaults instantiates a new MemberTeams 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 + +### GetName + +`func (o *MemberTeams) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *MemberTeams) 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 *MemberTeams) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *MemberTeams) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetRole + +`func (o *MemberTeams) GetRole() string` + +GetRole returns the Role field if non-nil, zero value otherwise. + +### GetRoleOk + +`func (o *MemberTeams) 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 *MemberTeams) SetRole(v string)` + +SetRole sets Role field to given value. + +### HasRole + +`func (o *MemberTeams) HasRole() bool` + +HasRole returns a boolean if a field has been set. + +### GetSlug + +`func (o *MemberTeams) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *MemberTeams) 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 *MemberTeams) SetSlug(v string)` + +SetSlug sets Slug field to given value. + +### HasSlug + +`func (o *MemberTeams) HasSlug() bool` + +HasSlug 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/NpmPackageUpload.md b/docs/NpmPackageUpload.md index 1176c11c..7594f874 100644 --- a/docs/NpmPackageUpload.md +++ b/docs/NpmPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **IsCopyable** | Pointer to **bool** | | [optional] [readonly] **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] +**IsHidden** | Pointer to **bool** | | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -868,6 +869,31 @@ SetIsDownloadable sets IsDownloadable field to given value. HasIsDownloadable returns a boolean if a field has been set. +### GetIsHidden + +`func (o *NpmPackageUpload) GetIsHidden() bool` + +GetIsHidden returns the IsHidden field if non-nil, zero value otherwise. + +### GetIsHiddenOk + +`func (o *NpmPackageUpload) GetIsHiddenOk() (*bool, bool)` + +GetIsHiddenOk returns a tuple with the IsHidden field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsHidden + +`func (o *NpmPackageUpload) SetIsHidden(v bool)` + +SetIsHidden sets IsHidden field to given value. + +### HasIsHidden + +`func (o *NpmPackageUpload) HasIsHidden() bool` + +HasIsHidden returns a boolean if a field has been set. + ### GetIsMoveable `func (o *NpmPackageUpload) GetIsMoveable() bool` diff --git a/docs/NugetPackageUpload.md b/docs/NugetPackageUpload.md index ee99eac0..97082c0f 100644 --- a/docs/NugetPackageUpload.md +++ b/docs/NugetPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **IsCopyable** | Pointer to **bool** | | [optional] [readonly] **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] +**IsHidden** | Pointer to **bool** | | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -868,6 +869,31 @@ SetIsDownloadable sets IsDownloadable field to given value. HasIsDownloadable returns a boolean if a field has been set. +### GetIsHidden + +`func (o *NugetPackageUpload) GetIsHidden() bool` + +GetIsHidden returns the IsHidden field if non-nil, zero value otherwise. + +### GetIsHiddenOk + +`func (o *NugetPackageUpload) GetIsHiddenOk() (*bool, bool)` + +GetIsHiddenOk returns a tuple with the IsHidden field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsHidden + +`func (o *NugetPackageUpload) SetIsHidden(v bool)` + +SetIsHidden sets IsHidden field to given value. + +### HasIsHidden + +`func (o *NugetPackageUpload) HasIsHidden() bool` + +HasIsHidden returns a boolean if a field has been set. + ### GetIsMoveable `func (o *NugetPackageUpload) GetIsMoveable() bool` diff --git a/docs/OrganizationMembership.md b/docs/OrganizationMembership.md index 20c8c9b8..64cdf8a2 100644 --- a/docs/OrganizationMembership.md +++ b/docs/OrganizationMembership.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **LastLoginAt** | Pointer to **NullableTime** | | [optional] [readonly] **LastLoginMethod** | Pointer to **string** | | [optional] [readonly] [default to "Unknown"] **Role** | Pointer to **string** | | [optional] [readonly] [default to "Owner"] +**Teams** | Pointer to [**[]MemberTeams**](MemberTeams.md) | | [optional] [readonly] **User** | Pointer to **string** | | [optional] [readonly] **UserId** | Pointer to **string** | | [optional] [readonly] **UserName** | Pointer to **string** | | [optional] [readonly] @@ -221,6 +222,31 @@ SetRole sets Role field to given value. HasRole returns a boolean if a field has been set. +### GetTeams + +`func (o *OrganizationMembership) GetTeams() []MemberTeams` + +GetTeams returns the Teams field if non-nil, zero value otherwise. + +### GetTeamsOk + +`func (o *OrganizationMembership) GetTeamsOk() (*[]MemberTeams, bool)` + +GetTeamsOk returns a tuple with the Teams field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTeams + +`func (o *OrganizationMembership) SetTeams(v []MemberTeams)` + +SetTeams sets Teams field to given value. + +### HasTeams + +`func (o *OrganizationMembership) HasTeams() bool` + +HasTeams returns a boolean if a field has been set. + ### GetUser `func (o *OrganizationMembership) GetUser() string` diff --git a/docs/P2PackageUpload.md b/docs/P2PackageUpload.md index 6bc5fb06..895f5bcc 100644 --- a/docs/P2PackageUpload.md +++ b/docs/P2PackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **IsCopyable** | Pointer to **bool** | | [optional] [readonly] **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] +**IsHidden** | Pointer to **bool** | | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -868,6 +869,31 @@ SetIsDownloadable sets IsDownloadable field to given value. HasIsDownloadable returns a boolean if a field has been set. +### GetIsHidden + +`func (o *P2PackageUpload) GetIsHidden() bool` + +GetIsHidden returns the IsHidden field if non-nil, zero value otherwise. + +### GetIsHiddenOk + +`func (o *P2PackageUpload) GetIsHiddenOk() (*bool, bool)` + +GetIsHiddenOk returns a tuple with the IsHidden field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsHidden + +`func (o *P2PackageUpload) SetIsHidden(v bool)` + +SetIsHidden sets IsHidden field to given value. + +### HasIsHidden + +`func (o *P2PackageUpload) HasIsHidden() bool` + +HasIsHidden returns a boolean if a field has been set. + ### GetIsMoveable `func (o *P2PackageUpload) GetIsMoveable() bool` diff --git a/docs/Package.md b/docs/Package.md index 821c4653..bbecc41d 100644 --- a/docs/Package.md +++ b/docs/Package.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **IsCopyable** | Pointer to **bool** | | [optional] [readonly] **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] +**IsHidden** | Pointer to **bool** | | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -905,6 +906,31 @@ SetIsDownloadable sets IsDownloadable field to given value. HasIsDownloadable returns a boolean if a field has been set. +### GetIsHidden + +`func (o *Package) GetIsHidden() bool` + +GetIsHidden returns the IsHidden field if non-nil, zero value otherwise. + +### GetIsHiddenOk + +`func (o *Package) GetIsHiddenOk() (*bool, bool)` + +GetIsHiddenOk returns a tuple with the IsHidden field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsHidden + +`func (o *Package) SetIsHidden(v bool)` + +SetIsHidden sets IsHidden field to given value. + +### HasIsHidden + +`func (o *Package) HasIsHidden() bool` + +HasIsHidden returns a boolean if a field has been set. + ### GetIsMoveable `func (o *Package) GetIsMoveable() bool` diff --git a/docs/PackageCopy.md b/docs/PackageCopy.md index 0fe95be6..a7a083e6 100644 --- a/docs/PackageCopy.md +++ b/docs/PackageCopy.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **IsCopyable** | Pointer to **bool** | | [optional] [readonly] **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] +**IsHidden** | Pointer to **bool** | | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -905,6 +906,31 @@ SetIsDownloadable sets IsDownloadable field to given value. HasIsDownloadable returns a boolean if a field has been set. +### GetIsHidden + +`func (o *PackageCopy) GetIsHidden() bool` + +GetIsHidden returns the IsHidden field if non-nil, zero value otherwise. + +### GetIsHiddenOk + +`func (o *PackageCopy) GetIsHiddenOk() (*bool, bool)` + +GetIsHiddenOk returns a tuple with the IsHidden field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsHidden + +`func (o *PackageCopy) SetIsHidden(v bool)` + +SetIsHidden sets IsHidden field to given value. + +### HasIsHidden + +`func (o *PackageCopy) HasIsHidden() bool` + +HasIsHidden returns a boolean if a field has been set. + ### GetIsMoveable `func (o *PackageCopy) GetIsMoveable() bool` diff --git a/docs/PackageMove.md b/docs/PackageMove.md index cb7b98af..d3c7f4a5 100644 --- a/docs/PackageMove.md +++ b/docs/PackageMove.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **IsCopyable** | Pointer to **bool** | | [optional] [readonly] **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] +**IsHidden** | Pointer to **bool** | | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -905,6 +906,31 @@ SetIsDownloadable sets IsDownloadable field to given value. HasIsDownloadable returns a boolean if a field has been set. +### GetIsHidden + +`func (o *PackageMove) GetIsHidden() bool` + +GetIsHidden returns the IsHidden field if non-nil, zero value otherwise. + +### GetIsHiddenOk + +`func (o *PackageMove) GetIsHiddenOk() (*bool, bool)` + +GetIsHiddenOk returns a tuple with the IsHidden field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsHidden + +`func (o *PackageMove) SetIsHidden(v bool)` + +SetIsHidden sets IsHidden field to given value. + +### HasIsHidden + +`func (o *PackageMove) HasIsHidden() bool` + +HasIsHidden returns a boolean if a field has been set. + ### GetIsMoveable `func (o *PackageMove) GetIsMoveable() bool` diff --git a/docs/PackageQuarantine.md b/docs/PackageQuarantine.md index 7036ab5c..a248d5e5 100644 --- a/docs/PackageQuarantine.md +++ b/docs/PackageQuarantine.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **IsCopyable** | Pointer to **bool** | | [optional] [readonly] **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] +**IsHidden** | Pointer to **bool** | | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -904,6 +905,31 @@ SetIsDownloadable sets IsDownloadable field to given value. HasIsDownloadable returns a boolean if a field has been set. +### GetIsHidden + +`func (o *PackageQuarantine) GetIsHidden() bool` + +GetIsHidden returns the IsHidden field if non-nil, zero value otherwise. + +### GetIsHiddenOk + +`func (o *PackageQuarantine) GetIsHiddenOk() (*bool, bool)` + +GetIsHiddenOk returns a tuple with the IsHidden field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsHidden + +`func (o *PackageQuarantine) SetIsHidden(v bool)` + +SetIsHidden sets IsHidden field to given value. + +### HasIsHidden + +`func (o *PackageQuarantine) HasIsHidden() bool` + +HasIsHidden returns a boolean if a field has been set. + ### GetIsMoveable `func (o *PackageQuarantine) GetIsMoveable() bool` diff --git a/docs/PackageResync.md b/docs/PackageResync.md index ef331cb8..f6a61525 100644 --- a/docs/PackageResync.md +++ b/docs/PackageResync.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **IsCopyable** | Pointer to **bool** | | [optional] [readonly] **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] +**IsHidden** | Pointer to **bool** | | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -905,6 +906,31 @@ SetIsDownloadable sets IsDownloadable field to given value. HasIsDownloadable returns a boolean if a field has been set. +### GetIsHidden + +`func (o *PackageResync) GetIsHidden() bool` + +GetIsHidden returns the IsHidden field if non-nil, zero value otherwise. + +### GetIsHiddenOk + +`func (o *PackageResync) GetIsHiddenOk() (*bool, bool)` + +GetIsHiddenOk returns a tuple with the IsHidden field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsHidden + +`func (o *PackageResync) SetIsHidden(v bool)` + +SetIsHidden sets IsHidden field to given value. + +### HasIsHidden + +`func (o *PackageResync) HasIsHidden() bool` + +HasIsHidden returns a boolean if a field has been set. + ### GetIsMoveable `func (o *PackageResync) GetIsMoveable() bool` diff --git a/docs/PackageStatus.md b/docs/PackageStatus.md index ee1c1e64..2003405b 100644 --- a/docs/PackageStatus.md +++ b/docs/PackageStatus.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **IsCopyable** | Pointer to **bool** | | [optional] [readonly] **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] +**IsHidden** | Pointer to **bool** | | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -148,6 +149,31 @@ SetIsDownloadable sets IsDownloadable field to given value. HasIsDownloadable returns a boolean if a field has been set. +### GetIsHidden + +`func (o *PackageStatus) GetIsHidden() bool` + +GetIsHidden returns the IsHidden field if non-nil, zero value otherwise. + +### GetIsHiddenOk + +`func (o *PackageStatus) GetIsHiddenOk() (*bool, bool)` + +GetIsHiddenOk returns a tuple with the IsHidden field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsHidden + +`func (o *PackageStatus) SetIsHidden(v bool)` + +SetIsHidden sets IsHidden field to given value. + +### HasIsHidden + +`func (o *PackageStatus) HasIsHidden() bool` + +HasIsHidden returns a boolean if a field has been set. + ### GetIsMoveable `func (o *PackageStatus) GetIsMoveable() bool` diff --git a/docs/PackageTag.md b/docs/PackageTag.md index 04868bd9..0faef1ab 100644 --- a/docs/PackageTag.md +++ b/docs/PackageTag.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **IsCopyable** | Pointer to **bool** | | [optional] [readonly] **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] +**IsHidden** | Pointer to **bool** | | [optional] [readonly] **IsImmutable** | Pointer to **bool** | If true, created tags will be immutable. An immutable flag is a tag that cannot be removed from a package. | [optional] [default to false] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] @@ -905,6 +906,31 @@ SetIsDownloadable sets IsDownloadable field to given value. HasIsDownloadable returns a boolean if a field has been set. +### GetIsHidden + +`func (o *PackageTag) GetIsHidden() bool` + +GetIsHidden returns the IsHidden field if non-nil, zero value otherwise. + +### GetIsHiddenOk + +`func (o *PackageTag) GetIsHiddenOk() (*bool, bool)` + +GetIsHiddenOk returns a tuple with the IsHidden field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsHidden + +`func (o *PackageTag) SetIsHidden(v bool)` + +SetIsHidden sets IsHidden field to given value. + +### HasIsHidden + +`func (o *PackageTag) HasIsHidden() bool` + +HasIsHidden returns a boolean if a field has been set. + ### GetIsImmutable `func (o *PackageTag) GetIsImmutable() bool` diff --git a/docs/PythonPackageUpload.md b/docs/PythonPackageUpload.md index 931dd7d1..15b82785 100644 --- a/docs/PythonPackageUpload.md +++ b/docs/PythonPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **IsCopyable** | Pointer to **bool** | | [optional] [readonly] **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] +**IsHidden** | Pointer to **bool** | | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -868,6 +869,31 @@ SetIsDownloadable sets IsDownloadable field to given value. HasIsDownloadable returns a boolean if a field has been set. +### GetIsHidden + +`func (o *PythonPackageUpload) GetIsHidden() bool` + +GetIsHidden returns the IsHidden field if non-nil, zero value otherwise. + +### GetIsHiddenOk + +`func (o *PythonPackageUpload) GetIsHiddenOk() (*bool, bool)` + +GetIsHiddenOk returns a tuple with the IsHidden field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsHidden + +`func (o *PythonPackageUpload) SetIsHidden(v bool)` + +SetIsHidden sets IsHidden field to given value. + +### HasIsHidden + +`func (o *PythonPackageUpload) HasIsHidden() bool` + +HasIsHidden returns a boolean if a field has been set. + ### GetIsMoveable `func (o *PythonPackageUpload) GetIsMoveable() bool` diff --git a/docs/RawPackageUpload.md b/docs/RawPackageUpload.md index 54b00e0c..591fd65c 100644 --- a/docs/RawPackageUpload.md +++ b/docs/RawPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **IsCopyable** | Pointer to **bool** | | [optional] [readonly] **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] +**IsHidden** | Pointer to **bool** | | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -868,6 +869,31 @@ SetIsDownloadable sets IsDownloadable field to given value. HasIsDownloadable returns a boolean if a field has been set. +### GetIsHidden + +`func (o *RawPackageUpload) GetIsHidden() bool` + +GetIsHidden returns the IsHidden field if non-nil, zero value otherwise. + +### GetIsHiddenOk + +`func (o *RawPackageUpload) GetIsHiddenOk() (*bool, bool)` + +GetIsHiddenOk returns a tuple with the IsHidden field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsHidden + +`func (o *RawPackageUpload) SetIsHidden(v bool)` + +SetIsHidden sets IsHidden field to given value. + +### HasIsHidden + +`func (o *RawPackageUpload) HasIsHidden() bool` + +HasIsHidden returns a boolean if a field has been set. + ### GetIsMoveable `func (o *RawPackageUpload) GetIsMoveable() bool` diff --git a/docs/RecycleBinApi.md b/docs/RecycleBinApi.md index 4dd8eafa..3317afee 100644 --- a/docs/RecycleBinApi.md +++ b/docs/RecycleBinApi.md @@ -4,16 +4,16 @@ All URIs are relative to *https://api.cloudsmith.io* Method | HTTP request | Description ------------- | ------------- | ------------- +[**RecycleBinAction**](RecycleBinApi.md#RecycleBinAction) | **Post** /recycle-bin/{owner}/action/ | [**RecycleBinList**](RecycleBinApi.md#RecycleBinList) | **Get** /recycle-bin/{owner}/ | List soft-deleted packages in recycle bin -[**RecycleBinRecycleBinAction**](RecycleBinApi.md#RecycleBinRecycleBinAction) | **Post** /recycle-bin/{owner}/action/ | -## RecycleBinList +## RecycleBinAction + +> PackageBulkActionResponse RecycleBinAction(ctx, owner).Data(data).Execute() -> []RecycleBinPackage RecycleBinList(ctx, owner).Page(page).PageSize(pageSize).Repository(repository).Execute() -List soft-deleted packages in recycle bin @@ -31,19 +31,17 @@ import ( func main() { owner := "owner_example" // string | - page := int64(56) // int64 | A page number within the paginated result set. (optional) - pageSize := int64(56) // int64 | Number of results to return per page. (optional) - repository := "repository_example" // string | Filter packages by repository slug (optional) + data := *openapiclient.NewPackageRecycleBin("Action_example", []string{"Identifiers_example"}) // PackageRecycleBin | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.RecycleBinApi.RecycleBinList(context.Background(), owner).Page(page).PageSize(pageSize).Repository(repository).Execute() + resp, r, err := apiClient.RecycleBinApi.RecycleBinAction(context.Background(), owner).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RecycleBinApi.RecycleBinList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `RecycleBinApi.RecycleBinAction``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `RecycleBinList`: []RecycleBinPackage - fmt.Fprintf(os.Stdout, "Response from `RecycleBinApi.RecycleBinList`: %v\n", resp) + // response from `RecycleBinAction`: PackageBulkActionResponse + fmt.Fprintf(os.Stdout, "Response from `RecycleBinApi.RecycleBinAction`: %v\n", resp) } ``` @@ -57,19 +55,17 @@ Name | Type | Description | Notes ### Other Parameters -Other parameters are passed through a pointer to a apiRecycleBinListRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiRecycleBinActionRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **page** | **int64** | A page number within the paginated result set. | - **pageSize** | **int64** | Number of results to return per page. | - **repository** | **string** | Filter packages by repository slug | + **data** | [**PackageRecycleBin**](PackageRecycleBin.md) | | ### Return type -[**[]RecycleBinPackage**](RecycleBinPackage.md) +[**PackageBulkActionResponse**](PackageBulkActionResponse.md) ### Authorization @@ -77,7 +73,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -85,11 +81,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## RecycleBinRecycleBinAction - -> PackageBulkActionResponse RecycleBinRecycleBinAction(ctx, owner).Data(data).Execute() +## RecycleBinList +> []RecycleBinPackage RecycleBinList(ctx, owner).Page(page).PageSize(pageSize).Repository(repository).Execute() +List soft-deleted packages in recycle bin @@ -107,17 +103,19 @@ import ( func main() { owner := "owner_example" // string | - data := *openapiclient.NewPackageRecycleBin("Action_example", []string{"Identifiers_example"}) // PackageRecycleBin | (optional) + page := int64(56) // int64 | A page number within the paginated result set. (optional) + pageSize := int64(56) // int64 | Number of results to return per page. (optional) + repository := "repository_example" // string | Filter packages by repository slug (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.RecycleBinApi.RecycleBinRecycleBinAction(context.Background(), owner).Data(data).Execute() + resp, r, err := apiClient.RecycleBinApi.RecycleBinList(context.Background(), owner).Page(page).PageSize(pageSize).Repository(repository).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RecycleBinApi.RecycleBinRecycleBinAction``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `RecycleBinApi.RecycleBinList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `RecycleBinRecycleBinAction`: PackageBulkActionResponse - fmt.Fprintf(os.Stdout, "Response from `RecycleBinApi.RecycleBinRecycleBinAction`: %v\n", resp) + // response from `RecycleBinList`: []RecycleBinPackage + fmt.Fprintf(os.Stdout, "Response from `RecycleBinApi.RecycleBinList`: %v\n", resp) } ``` @@ -131,17 +129,19 @@ Name | Type | Description | Notes ### Other Parameters -Other parameters are passed through a pointer to a apiRecycleBinRecycleBinActionRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiRecycleBinListRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **data** | [**PackageRecycleBin**](PackageRecycleBin.md) | | + **page** | **int64** | A page number within the paginated result set. | + **pageSize** | **int64** | Number of results to return per page. | + **repository** | **string** | Filter packages by repository slug | ### Return type -[**PackageBulkActionResponse**](PackageBulkActionResponse.md) +[**[]RecycleBinPackage**](RecycleBinPackage.md) ### Authorization @@ -149,7 +149,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: application/json +- **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) diff --git a/docs/ReposApi.md b/docs/ReposApi.md index d716bedb..7fa48047 100644 --- a/docs/ReposApi.md +++ b/docs/ReposApi.md @@ -7,6 +7,12 @@ Method | HTTP request | Description [**ApiReposGeoipStatus**](ReposApi.md#ApiReposGeoipStatus) | **Get** /repos/{owner}/{identifier}/geoip/status/ | Retrieve the GeoIP status for this repository. [**RepoRetentionPartialUpdate**](ReposApi.md#RepoRetentionPartialUpdate) | **Patch** /repos/{owner}/{repo}/retention/ | Update the retention rules for the repository. [**RepoRetentionRead**](ReposApi.md#RepoRetentionRead) | **Get** /repos/{owner}/{repo}/retention/ | Retrieve the retention rules for the repository. +[**ReposConnectedCreate**](ReposApi.md#ReposConnectedCreate) | **Post** /repos/{owner}/{identifier}/connected/ | Create a connected repository for this repository. +[**ReposConnectedDelete**](ReposApi.md#ReposConnectedDelete) | **Delete** /repos/{owner}/{identifier}/connected/{slug_perm}/ | Delete a connected repository for this repository. +[**ReposConnectedList**](ReposApi.md#ReposConnectedList) | **Get** /repos/{owner}/{identifier}/connected/ | List connected repositories for this repository. +[**ReposConnectedPartialUpdate**](ReposApi.md#ReposConnectedPartialUpdate) | **Patch** /repos/{owner}/{identifier}/connected/{slug_perm}/ | Partially update a connected repository for this repository. +[**ReposConnectedRead**](ReposApi.md#ReposConnectedRead) | **Get** /repos/{owner}/{identifier}/connected/{slug_perm}/ | Retrieve a connected repository for this repository. +[**ReposConnectedUpdate**](ReposApi.md#ReposConnectedUpdate) | **Put** /repos/{owner}/{identifier}/connected/{slug_perm}/ | Update a connected repository for this repository. [**ReposCreate**](ReposApi.md#ReposCreate) | **Post** /repos/{owner}/ | Create a new repository in a given namespace. [**ReposDelete**](ReposApi.md#ReposDelete) | **Delete** /repos/{owner}/{identifier}/ | [**ReposEcdsaCreate**](ReposApi.md#ReposEcdsaCreate) | **Post** /repos/{owner}/{identifier}/ecdsa/ | Set the active ECDSA key for the Repository. @@ -378,6 +384,464 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## ReposConnectedCreate + +> ConnectedRepository ReposConnectedCreate(ctx, owner, identifier).Data(data).Execute() + +Create a connected repository 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.NewConnectedRepositoryRequest("TargetRepository_example") // ConnectedRepositoryRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ReposApi.ReposConnectedCreate(context.Background(), owner, identifier).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposConnectedCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReposConnectedCreate`: ConnectedRepository + fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposConnectedCreate`: %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 apiReposConnectedCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **data** | [**ConnectedRepositoryRequest**](ConnectedRepositoryRequest.md) | | + +### Return type + +[**ConnectedRepository**](ConnectedRepository.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) + + +## ReposConnectedDelete + +> ReposConnectedDelete(ctx, owner, identifier, slugPerm).Execute() + +Delete a connected repository 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.ReposConnectedDelete(context.Background(), owner, identifier, slugPerm).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposConnectedDelete``: %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 apiReposConnectedDeleteRequest 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) + + +## ReposConnectedList + +> ReposConnectedList200Response ReposConnectedList(ctx, owner, identifier).Page(page).PageSize(pageSize).Execute() + +List connected repositories 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.ReposConnectedList(context.Background(), owner, identifier).Page(page).PageSize(pageSize).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposConnectedList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReposConnectedList`: ReposConnectedList200Response + fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposConnectedList`: %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 apiReposConnectedListRequest 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 + +[**ReposConnectedList200Response**](ReposConnectedList200Response.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) + + +## ReposConnectedPartialUpdate + +> ConnectedRepository ReposConnectedPartialUpdate(ctx, owner, identifier, slugPerm).Data(data).Execute() + +Partially update a connected repository 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.NewConnectedRepositoryRequestPatch() // ConnectedRepositoryRequestPatch | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ReposApi.ReposConnectedPartialUpdate(context.Background(), owner, identifier, slugPerm).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposConnectedPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReposConnectedPartialUpdate`: ConnectedRepository + fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposConnectedPartialUpdate`: %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 apiReposConnectedPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **data** | [**ConnectedRepositoryRequestPatch**](ConnectedRepositoryRequestPatch.md) | | + +### Return type + +[**ConnectedRepository**](ConnectedRepository.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) + + +## ReposConnectedRead + +> ConnectedRepository ReposConnectedRead(ctx, owner, identifier, slugPerm).Execute() + +Retrieve a connected repository 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.ReposConnectedRead(context.Background(), owner, identifier, slugPerm).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposConnectedRead``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReposConnectedRead`: ConnectedRepository + fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposConnectedRead`: %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 apiReposConnectedReadRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + +[**ConnectedRepository**](ConnectedRepository.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) + + +## ReposConnectedUpdate + +> ConnectedRepository ReposConnectedUpdate(ctx, owner, identifier, slugPerm).Data(data).Execute() + +Update a connected repository 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.NewConnectedRepositoryRequest("TargetRepository_example") // ConnectedRepositoryRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ReposApi.ReposConnectedUpdate(context.Background(), owner, identifier, slugPerm).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReposApi.ReposConnectedUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReposConnectedUpdate`: ConnectedRepository + fmt.Fprintf(os.Stdout, "Response from `ReposApi.ReposConnectedUpdate`: %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 apiReposConnectedUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **data** | [**ConnectedRepositoryRequest**](ConnectedRepositoryRequest.md) | | + +### Return type + +[**ConnectedRepository**](ConnectedRepository.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) + + ## ReposCreate > RepositoryCreate ReposCreate(ctx, owner).Data(data).Execute() diff --git a/docs/ReposConnectedList200Response.md b/docs/ReposConnectedList200Response.md new file mode 100644 index 00000000..170b5795 --- /dev/null +++ b/docs/ReposConnectedList200Response.md @@ -0,0 +1,51 @@ +# ReposConnectedList200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Results** | [**[]ConnectedRepository**](ConnectedRepository.md) | | + +## Methods + +### NewReposConnectedList200Response + +`func NewReposConnectedList200Response(results []ConnectedRepository, ) *ReposConnectedList200Response` + +NewReposConnectedList200Response instantiates a new ReposConnectedList200Response 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 + +### NewReposConnectedList200ResponseWithDefaults + +`func NewReposConnectedList200ResponseWithDefaults() *ReposConnectedList200Response` + +NewReposConnectedList200ResponseWithDefaults instantiates a new ReposConnectedList200Response 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 + +### GetResults + +`func (o *ReposConnectedList200Response) GetResults() []ConnectedRepository` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *ReposConnectedList200Response) GetResultsOk() (*[]ConnectedRepository, bool)` + +GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResults + +`func (o *ReposConnectedList200Response) SetResults(v []ConnectedRepository)` + +SetResults sets Results 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/Repository.md b/docs/Repository.md index 6c0dd747..24b6babe 100644 --- a/docs/Repository.md +++ b/docs/Repository.md @@ -34,6 +34,7 @@ Name | Type | Description | Notes **Name** | **string** | A descriptive name for the repository. | **Namespace** | Pointer to **string** | Namespace to which this repository belongs. | [optional] [readonly] **NamespaceUrl** | Pointer to **string** | API endpoint where data about this namespace can be retrieved. | [optional] [readonly] +**NpmUpstreamTagsTakePrecedence** | Pointer to **bool** | If checked, npm distribution tags from configured upstreams will take precedence over matching local tags. When both upstream and local repositories have the same tag name (e.g., 'latest'), the upstream tag will be used instead of the local one, even if the local repository has a semantically higher version. | [optional] **NugetNativeSigningEnabled** | Pointer to **bool** | When enabled, all pushed (or pulled from upstream) nuget packages and artifacts will be signed using the repository's X.509 RSA certificate. Additionally, the nuget RepositorySignature index will list all of the repository's signing certificates including the ones from configured upstreams. | [optional] **NumDownloads** | Pointer to **int64** | The number of downloads for packages in the repository. | [optional] [readonly] **NumPolicyViolatedPackages** | Pointer to **int64** | Number of packages with policy violations in a repository. | [optional] [readonly] @@ -859,6 +860,31 @@ SetNamespaceUrl sets NamespaceUrl field to given value. HasNamespaceUrl returns a boolean if a field has been set. +### GetNpmUpstreamTagsTakePrecedence + +`func (o *Repository) GetNpmUpstreamTagsTakePrecedence() bool` + +GetNpmUpstreamTagsTakePrecedence returns the NpmUpstreamTagsTakePrecedence field if non-nil, zero value otherwise. + +### GetNpmUpstreamTagsTakePrecedenceOk + +`func (o *Repository) GetNpmUpstreamTagsTakePrecedenceOk() (*bool, bool)` + +GetNpmUpstreamTagsTakePrecedenceOk returns a tuple with the NpmUpstreamTagsTakePrecedence field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNpmUpstreamTagsTakePrecedence + +`func (o *Repository) SetNpmUpstreamTagsTakePrecedence(v bool)` + +SetNpmUpstreamTagsTakePrecedence sets NpmUpstreamTagsTakePrecedence field to given value. + +### HasNpmUpstreamTagsTakePrecedence + +`func (o *Repository) HasNpmUpstreamTagsTakePrecedence() bool` + +HasNpmUpstreamTagsTakePrecedence returns a boolean if a field has been set. + ### GetNugetNativeSigningEnabled `func (o *Repository) GetNugetNativeSigningEnabled() bool` diff --git a/docs/RepositoryCreate.md b/docs/RepositoryCreate.md index cbe90c2d..33d0e773 100644 --- a/docs/RepositoryCreate.md +++ b/docs/RepositoryCreate.md @@ -34,6 +34,7 @@ Name | Type | Description | Notes **Name** | **string** | A descriptive name for the repository. | **Namespace** | Pointer to **string** | Namespace to which this repository belongs. | [optional] [readonly] **NamespaceUrl** | Pointer to **string** | API endpoint where data about this namespace can be retrieved. | [optional] [readonly] +**NpmUpstreamTagsTakePrecedence** | Pointer to **bool** | If checked, npm distribution tags from configured upstreams will take precedence over matching local tags. When both upstream and local repositories have the same tag name (e.g., 'latest'), the upstream tag will be used instead of the local one, even if the local repository has a semantically higher version. | [optional] **NugetNativeSigningEnabled** | Pointer to **bool** | When enabled, all pushed (or pulled from upstream) nuget packages and artifacts will be signed using the repository's X.509 RSA certificate. Additionally, the nuget RepositorySignature index will list all of the repository's signing certificates including the ones from configured upstreams. | [optional] **NumDownloads** | Pointer to **int64** | The number of downloads for packages in the repository. | [optional] [readonly] **NumPolicyViolatedPackages** | Pointer to **int64** | Number of packages with policy violations in a repository. | [optional] [readonly] @@ -859,6 +860,31 @@ SetNamespaceUrl sets NamespaceUrl field to given value. HasNamespaceUrl returns a boolean if a field has been set. +### GetNpmUpstreamTagsTakePrecedence + +`func (o *RepositoryCreate) GetNpmUpstreamTagsTakePrecedence() bool` + +GetNpmUpstreamTagsTakePrecedence returns the NpmUpstreamTagsTakePrecedence field if non-nil, zero value otherwise. + +### GetNpmUpstreamTagsTakePrecedenceOk + +`func (o *RepositoryCreate) GetNpmUpstreamTagsTakePrecedenceOk() (*bool, bool)` + +GetNpmUpstreamTagsTakePrecedenceOk returns a tuple with the NpmUpstreamTagsTakePrecedence field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNpmUpstreamTagsTakePrecedence + +`func (o *RepositoryCreate) SetNpmUpstreamTagsTakePrecedence(v bool)` + +SetNpmUpstreamTagsTakePrecedence sets NpmUpstreamTagsTakePrecedence field to given value. + +### HasNpmUpstreamTagsTakePrecedence + +`func (o *RepositoryCreate) HasNpmUpstreamTagsTakePrecedence() bool` + +HasNpmUpstreamTagsTakePrecedence returns a boolean if a field has been set. + ### GetNugetNativeSigningEnabled `func (o *RepositoryCreate) GetNugetNativeSigningEnabled() bool` diff --git a/docs/RepositoryCreateRequest.md b/docs/RepositoryCreateRequest.md index 7223a1fe..1e415e79 100644 --- a/docs/RepositoryCreateRequest.md +++ b/docs/RepositoryCreateRequest.md @@ -24,6 +24,7 @@ Name | Type | Description | Notes **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"] **Name** | **string** | A descriptive name for the repository. | +**NpmUpstreamTagsTakePrecedence** | Pointer to **bool** | If checked, npm distribution tags from configured upstreams will take precedence over matching local tags. When both upstream and local repositories have the same tag name (e.g., 'latest'), the upstream tag will be used instead of the local one, even if the local repository has a semantically higher version. | [optional] **NugetNativeSigningEnabled** | Pointer to **bool** | When enabled, all pushed (or pulled from upstream) nuget packages and artifacts will be signed using the repository's X.509 RSA certificate. Additionally, the nuget RepositorySignature index will list all of the repository's signing certificates including the ones from configured upstreams. | [optional] **OpenSourceLicense** | Pointer to **NullableString** | The SPDX identifier of the open source license. | [optional] **OpenSourceProjectUrl** | Pointer to **NullableString** | The URL to the Open-Source project, used for validating that the project meets the requirements for Open-Source. | [optional] @@ -566,6 +567,31 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetNpmUpstreamTagsTakePrecedence + +`func (o *RepositoryCreateRequest) GetNpmUpstreamTagsTakePrecedence() bool` + +GetNpmUpstreamTagsTakePrecedence returns the NpmUpstreamTagsTakePrecedence field if non-nil, zero value otherwise. + +### GetNpmUpstreamTagsTakePrecedenceOk + +`func (o *RepositoryCreateRequest) GetNpmUpstreamTagsTakePrecedenceOk() (*bool, bool)` + +GetNpmUpstreamTagsTakePrecedenceOk returns a tuple with the NpmUpstreamTagsTakePrecedence field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNpmUpstreamTagsTakePrecedence + +`func (o *RepositoryCreateRequest) SetNpmUpstreamTagsTakePrecedence(v bool)` + +SetNpmUpstreamTagsTakePrecedence sets NpmUpstreamTagsTakePrecedence field to given value. + +### HasNpmUpstreamTagsTakePrecedence + +`func (o *RepositoryCreateRequest) HasNpmUpstreamTagsTakePrecedence() bool` + +HasNpmUpstreamTagsTakePrecedence returns a boolean if a field has been set. + ### GetNugetNativeSigningEnabled `func (o *RepositoryCreateRequest) GetNugetNativeSigningEnabled() bool` diff --git a/docs/RepositoryRequestPatch.md b/docs/RepositoryRequestPatch.md index 2b96021f..bccf43aa 100644 --- a/docs/RepositoryRequestPatch.md +++ b/docs/RepositoryRequestPatch.md @@ -24,6 +24,7 @@ Name | Type | Description | Notes **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"] **Name** | Pointer to **string** | A descriptive name for the repository. | [optional] +**NpmUpstreamTagsTakePrecedence** | Pointer to **bool** | If checked, npm distribution tags from configured upstreams will take precedence over matching local tags. When both upstream and local repositories have the same tag name (e.g., 'latest'), the upstream tag will be used instead of the local one, even if the local repository has a semantically higher version. | [optional] **NugetNativeSigningEnabled** | Pointer to **bool** | When enabled, all pushed (or pulled from upstream) nuget packages and artifacts will be signed using the repository's X.509 RSA certificate. Additionally, the nuget RepositorySignature index will list all of the repository's signing certificates including the ones from configured upstreams. | [optional] **OpenSourceLicense** | Pointer to **NullableString** | The SPDX identifier of the open source license. | [optional] **OpenSourceProjectUrl** | Pointer to **NullableString** | The URL to the Open-Source project, used for validating that the project meets the requirements for Open-Source. | [optional] @@ -570,6 +571,31 @@ SetName sets Name field to given value. HasName returns a boolean if a field has been set. +### GetNpmUpstreamTagsTakePrecedence + +`func (o *RepositoryRequestPatch) GetNpmUpstreamTagsTakePrecedence() bool` + +GetNpmUpstreamTagsTakePrecedence returns the NpmUpstreamTagsTakePrecedence field if non-nil, zero value otherwise. + +### GetNpmUpstreamTagsTakePrecedenceOk + +`func (o *RepositoryRequestPatch) GetNpmUpstreamTagsTakePrecedenceOk() (*bool, bool)` + +GetNpmUpstreamTagsTakePrecedenceOk returns a tuple with the NpmUpstreamTagsTakePrecedence field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNpmUpstreamTagsTakePrecedence + +`func (o *RepositoryRequestPatch) SetNpmUpstreamTagsTakePrecedence(v bool)` + +SetNpmUpstreamTagsTakePrecedence sets NpmUpstreamTagsTakePrecedence field to given value. + +### HasNpmUpstreamTagsTakePrecedence + +`func (o *RepositoryRequestPatch) HasNpmUpstreamTagsTakePrecedence() bool` + +HasNpmUpstreamTagsTakePrecedence returns a boolean if a field has been set. + ### GetNugetNativeSigningEnabled `func (o *RepositoryRequestPatch) GetNugetNativeSigningEnabled() bool` diff --git a/docs/RpmPackageUpload.md b/docs/RpmPackageUpload.md index fbee21d1..2c264199 100644 --- a/docs/RpmPackageUpload.md +++ b/docs/RpmPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **IsCopyable** | Pointer to **bool** | | [optional] [readonly] **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] +**IsHidden** | Pointer to **bool** | | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -868,6 +869,31 @@ SetIsDownloadable sets IsDownloadable field to given value. HasIsDownloadable returns a boolean if a field has been set. +### GetIsHidden + +`func (o *RpmPackageUpload) GetIsHidden() bool` + +GetIsHidden returns the IsHidden field if non-nil, zero value otherwise. + +### GetIsHiddenOk + +`func (o *RpmPackageUpload) GetIsHiddenOk() (*bool, bool)` + +GetIsHiddenOk returns a tuple with the IsHidden field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsHidden + +`func (o *RpmPackageUpload) SetIsHidden(v bool)` + +SetIsHidden sets IsHidden field to given value. + +### HasIsHidden + +`func (o *RpmPackageUpload) HasIsHidden() bool` + +HasIsHidden returns a boolean if a field has been set. + ### GetIsMoveable `func (o *RpmPackageUpload) GetIsMoveable() bool` diff --git a/docs/RubyPackageUpload.md b/docs/RubyPackageUpload.md index 22d9cb00..d8915250 100644 --- a/docs/RubyPackageUpload.md +++ b/docs/RubyPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **IsCopyable** | Pointer to **bool** | | [optional] [readonly] **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] +**IsHidden** | Pointer to **bool** | | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -868,6 +869,31 @@ SetIsDownloadable sets IsDownloadable field to given value. HasIsDownloadable returns a boolean if a field has been set. +### GetIsHidden + +`func (o *RubyPackageUpload) GetIsHidden() bool` + +GetIsHidden returns the IsHidden field if non-nil, zero value otherwise. + +### GetIsHiddenOk + +`func (o *RubyPackageUpload) GetIsHiddenOk() (*bool, bool)` + +GetIsHiddenOk returns a tuple with the IsHidden field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsHidden + +`func (o *RubyPackageUpload) SetIsHidden(v bool)` + +SetIsHidden sets IsHidden field to given value. + +### HasIsHidden + +`func (o *RubyPackageUpload) HasIsHidden() bool` + +HasIsHidden returns a boolean if a field has been set. + ### GetIsMoveable `func (o *RubyPackageUpload) GetIsMoveable() bool` diff --git a/docs/ServiceTeams.md b/docs/ServiceTeams.md index f8368123..a11c7d16 100644 --- a/docs/ServiceTeams.md +++ b/docs/ServiceTeams.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | The name of the team | [optional] [readonly] **Role** | Pointer to **string** | The team role associated with the service | [optional] [default to "Manager"] **Slug** | **string** | The teams associated with the service | @@ -26,6 +27,31 @@ NewServiceTeamsWithDefaults instantiates a new ServiceTeams 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 +### GetName + +`func (o *ServiceTeams) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ServiceTeams) 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 *ServiceTeams) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ServiceTeams) HasName() bool` + +HasName returns a boolean if a field has been set. + ### GetRole `func (o *ServiceTeams) GetRole() string` diff --git a/docs/SwiftPackageUpload.md b/docs/SwiftPackageUpload.md index 9683ca72..517e9ddf 100644 --- a/docs/SwiftPackageUpload.md +++ b/docs/SwiftPackageUpload.md @@ -34,6 +34,7 @@ Name | Type | Description | Notes **IsCopyable** | Pointer to **bool** | | [optional] [readonly] **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] +**IsHidden** | Pointer to **bool** | | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -923,6 +924,31 @@ SetIsDownloadable sets IsDownloadable field to given value. HasIsDownloadable returns a boolean if a field has been set. +### GetIsHidden + +`func (o *SwiftPackageUpload) GetIsHidden() bool` + +GetIsHidden returns the IsHidden field if non-nil, zero value otherwise. + +### GetIsHiddenOk + +`func (o *SwiftPackageUpload) GetIsHiddenOk() (*bool, bool)` + +GetIsHiddenOk returns a tuple with the IsHidden field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsHidden + +`func (o *SwiftPackageUpload) SetIsHidden(v bool)` + +SetIsHidden sets IsHidden field to given value. + +### HasIsHidden + +`func (o *SwiftPackageUpload) HasIsHidden() bool` + +HasIsHidden returns a boolean if a field has been set. + ### GetIsMoveable `func (o *SwiftPackageUpload) GetIsMoveable() bool` diff --git a/docs/TerraformPackageUpload.md b/docs/TerraformPackageUpload.md index a80012f2..fedf5f9a 100644 --- a/docs/TerraformPackageUpload.md +++ b/docs/TerraformPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **IsCopyable** | Pointer to **bool** | | [optional] [readonly] **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] +**IsHidden** | Pointer to **bool** | | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -868,6 +869,31 @@ SetIsDownloadable sets IsDownloadable field to given value. HasIsDownloadable returns a boolean if a field has been set. +### GetIsHidden + +`func (o *TerraformPackageUpload) GetIsHidden() bool` + +GetIsHidden returns the IsHidden field if non-nil, zero value otherwise. + +### GetIsHiddenOk + +`func (o *TerraformPackageUpload) GetIsHiddenOk() (*bool, bool)` + +GetIsHiddenOk returns a tuple with the IsHidden field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsHidden + +`func (o *TerraformPackageUpload) SetIsHidden(v bool)` + +SetIsHidden sets IsHidden field to given value. + +### HasIsHidden + +`func (o *TerraformPackageUpload) HasIsHidden() bool` + +HasIsHidden returns a boolean if a field has been set. + ### GetIsMoveable `func (o *TerraformPackageUpload) GetIsMoveable() bool` diff --git a/docs/VagrantPackageUpload.md b/docs/VagrantPackageUpload.md index 8c35d43c..9ab493e7 100644 --- a/docs/VagrantPackageUpload.md +++ b/docs/VagrantPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **IsCopyable** | Pointer to **bool** | | [optional] [readonly] **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] +**IsHidden** | Pointer to **bool** | | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -869,6 +870,31 @@ SetIsDownloadable sets IsDownloadable field to given value. HasIsDownloadable returns a boolean if a field has been set. +### GetIsHidden + +`func (o *VagrantPackageUpload) GetIsHidden() bool` + +GetIsHidden returns the IsHidden field if non-nil, zero value otherwise. + +### GetIsHiddenOk + +`func (o *VagrantPackageUpload) GetIsHiddenOk() (*bool, bool)` + +GetIsHiddenOk returns a tuple with the IsHidden field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsHidden + +`func (o *VagrantPackageUpload) SetIsHidden(v bool)` + +SetIsHidden sets IsHidden field to given value. + +### HasIsHidden + +`func (o *VagrantPackageUpload) HasIsHidden() bool` + +HasIsHidden returns a boolean if a field has been set. + ### GetIsMoveable `func (o *VagrantPackageUpload) GetIsMoveable() bool` diff --git a/docs/VsxPackageUpload.md b/docs/VsxPackageUpload.md index f59c56e3..ee4a787d 100644 --- a/docs/VsxPackageUpload.md +++ b/docs/VsxPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **IsCopyable** | Pointer to **bool** | | [optional] [readonly] **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] +**IsHidden** | Pointer to **bool** | | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -868,6 +869,31 @@ SetIsDownloadable sets IsDownloadable field to given value. HasIsDownloadable returns a boolean if a field has been set. +### GetIsHidden + +`func (o *VsxPackageUpload) GetIsHidden() bool` + +GetIsHidden returns the IsHidden field if non-nil, zero value otherwise. + +### GetIsHiddenOk + +`func (o *VsxPackageUpload) GetIsHiddenOk() (*bool, bool)` + +GetIsHiddenOk returns a tuple with the IsHidden field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsHidden + +`func (o *VsxPackageUpload) SetIsHidden(v bool)` + +SetIsHidden sets IsHidden field to given value. + +### HasIsHidden + +`func (o *VsxPackageUpload) HasIsHidden() bool` + +HasIsHidden returns a boolean if a field has been set. + ### GetIsMoveable `func (o *VsxPackageUpload) GetIsMoveable() bool` diff --git a/model_allocated_limit.go b/model_allocated_limit.go index 0e339e9b..437a2de9 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_allocated_limit_raw.go b/model_allocated_limit_raw.go index 058050f6..72d47695 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_alpine_package_upload.go b/model_alpine_package_upload.go index aa1cc381..3042d0d9 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ @@ -55,6 +55,7 @@ type AlpinePackageUpload struct { IsCopyable *bool `json:"is_copyable,omitempty"` IsDeleteable *bool `json:"is_deleteable,omitempty"` IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` IsMoveable *bool `json:"is_moveable,omitempty"` IsQuarantinable *bool `json:"is_quarantinable,omitempty"` IsQuarantined *bool `json:"is_quarantined,omitempty"` @@ -1119,6 +1120,38 @@ func (o *AlpinePackageUpload) SetIsDownloadable(v bool) { o.IsDownloadable = &v } +// GetIsHidden returns the IsHidden field value if set, zero value otherwise. +func (o *AlpinePackageUpload) GetIsHidden() bool { + if o == nil || IsNil(o.IsHidden) { + var ret bool + return ret + } + return *o.IsHidden +} + +// GetIsHiddenOk returns a tuple with the IsHidden field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlpinePackageUpload) GetIsHiddenOk() (*bool, bool) { + if o == nil || IsNil(o.IsHidden) { + return nil, false + } + return o.IsHidden, true +} + +// HasIsHidden returns a boolean if a field has been set. +func (o *AlpinePackageUpload) HasIsHidden() bool { + if o != nil && !IsNil(o.IsHidden) { + return true + } + + return false +} + +// SetIsHidden gets a reference to the given bool and assigns it to the IsHidden field. +func (o *AlpinePackageUpload) SetIsHidden(v bool) { + o.IsHidden = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *AlpinePackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3159,6 +3192,9 @@ func (o AlpinePackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsDownloadable) { toSerialize["is_downloadable"] = o.IsDownloadable } + if !IsNil(o.IsHidden) { + toSerialize["is_hidden"] = o.IsHidden + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3377,6 +3413,7 @@ func (o *AlpinePackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_copyable") delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") + delete(additionalProperties, "is_hidden") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") diff --git a/model_alpine_package_upload_request.go b/model_alpine_package_upload_request.go index f71a64ba..80561be7 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_alpine_upstream.go b/model_alpine_upstream.go index 5cbd497a..62944ead 100644 --- a/model_alpine_upstream.go +++ b/model_alpine_upstream.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_alpine_upstream_request.go b/model_alpine_upstream_request.go index 0f24141a..c488a370 100644 --- a/model_alpine_upstream_request.go +++ b/model_alpine_upstream_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_alpine_upstream_request_patch.go b/model_alpine_upstream_request_patch.go index 52e0d7b1..70951a18 100644 --- a/model_alpine_upstream_request_patch.go +++ b/model_alpine_upstream_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_architecture.go b/model_architecture.go index 61200709..e8ba816b 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_broadcast_token.go b/model_broadcast_token.go index 4ff4e4f0..28caa0a8 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_broadcast_token_input.go b/model_broadcast_token_input.go index 51155a6a..68ce53af 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_cargo_package_upload.go b/model_cargo_package_upload.go index 4dda00c7..a2be18ff 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ @@ -55,6 +55,7 @@ type CargoPackageUpload struct { IsCopyable *bool `json:"is_copyable,omitempty"` IsDeleteable *bool `json:"is_deleteable,omitempty"` IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` IsMoveable *bool `json:"is_moveable,omitempty"` IsQuarantinable *bool `json:"is_quarantinable,omitempty"` IsQuarantined *bool `json:"is_quarantined,omitempty"` @@ -1119,6 +1120,38 @@ func (o *CargoPackageUpload) SetIsDownloadable(v bool) { o.IsDownloadable = &v } +// GetIsHidden returns the IsHidden field value if set, zero value otherwise. +func (o *CargoPackageUpload) GetIsHidden() bool { + if o == nil || IsNil(o.IsHidden) { + var ret bool + return ret + } + return *o.IsHidden +} + +// GetIsHiddenOk returns a tuple with the IsHidden field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CargoPackageUpload) GetIsHiddenOk() (*bool, bool) { + if o == nil || IsNil(o.IsHidden) { + return nil, false + } + return o.IsHidden, true +} + +// HasIsHidden returns a boolean if a field has been set. +func (o *CargoPackageUpload) HasIsHidden() bool { + if o != nil && !IsNil(o.IsHidden) { + return true + } + + return false +} + +// SetIsHidden gets a reference to the given bool and assigns it to the IsHidden field. +func (o *CargoPackageUpload) SetIsHidden(v bool) { + o.IsHidden = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *CargoPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3159,6 +3192,9 @@ func (o CargoPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsDownloadable) { toSerialize["is_downloadable"] = o.IsDownloadable } + if !IsNil(o.IsHidden) { + toSerialize["is_hidden"] = o.IsHidden + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3377,6 +3413,7 @@ func (o *CargoPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_copyable") delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") + delete(additionalProperties, "is_hidden") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") diff --git a/model_cargo_package_upload_request.go b/model_cargo_package_upload_request.go index 3b913cf7..c11a4623 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_cargo_upstream.go b/model_cargo_upstream.go index 9d4ac570..79747aa9 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_cargo_upstream_request.go b/model_cargo_upstream_request.go index cdc8ba1b..12908bcc 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_cargo_upstream_request_patch.go b/model_cargo_upstream_request_patch.go index e231ef45..1030f89c 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_cocoapods_package_upload.go b/model_cocoapods_package_upload.go index 5efbdd34..214e8524 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ @@ -55,6 +55,7 @@ type CocoapodsPackageUpload struct { IsCopyable *bool `json:"is_copyable,omitempty"` IsDeleteable *bool `json:"is_deleteable,omitempty"` IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` IsMoveable *bool `json:"is_moveable,omitempty"` IsQuarantinable *bool `json:"is_quarantinable,omitempty"` IsQuarantined *bool `json:"is_quarantined,omitempty"` @@ -1119,6 +1120,38 @@ func (o *CocoapodsPackageUpload) SetIsDownloadable(v bool) { o.IsDownloadable = &v } +// GetIsHidden returns the IsHidden field value if set, zero value otherwise. +func (o *CocoapodsPackageUpload) GetIsHidden() bool { + if o == nil || IsNil(o.IsHidden) { + var ret bool + return ret + } + return *o.IsHidden +} + +// GetIsHiddenOk returns a tuple with the IsHidden field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CocoapodsPackageUpload) GetIsHiddenOk() (*bool, bool) { + if o == nil || IsNil(o.IsHidden) { + return nil, false + } + return o.IsHidden, true +} + +// HasIsHidden returns a boolean if a field has been set. +func (o *CocoapodsPackageUpload) HasIsHidden() bool { + if o != nil && !IsNil(o.IsHidden) { + return true + } + + return false +} + +// SetIsHidden gets a reference to the given bool and assigns it to the IsHidden field. +func (o *CocoapodsPackageUpload) SetIsHidden(v bool) { + o.IsHidden = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *CocoapodsPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3159,6 +3192,9 @@ func (o CocoapodsPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsDownloadable) { toSerialize["is_downloadable"] = o.IsDownloadable } + if !IsNil(o.IsHidden) { + toSerialize["is_hidden"] = o.IsHidden + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3377,6 +3413,7 @@ func (o *CocoapodsPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_copyable") delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") + delete(additionalProperties, "is_hidden") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") diff --git a/model_cocoapods_package_upload_request.go b/model_cocoapods_package_upload_request.go index ba80a583..f1c797b6 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_common_bandwidth_metrics.go b/model_common_bandwidth_metrics.go index 1f24cf26..e68c8c7f 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_common_bandwidth_metrics_value.go b/model_common_bandwidth_metrics_value.go index 183f9075..0e86384c 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_common_downloads_metrics.go b/model_common_downloads_metrics.go index 1cd664c8..0fd94fb0 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_common_downloads_metrics_value.go b/model_common_downloads_metrics_value.go index 31c80cfa..35f99357 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_common_metrics.go b/model_common_metrics.go index 31b22702..65a136a4 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_composer_package_upload.go b/model_composer_package_upload.go index fba67654..3452a0e5 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ @@ -55,6 +55,7 @@ type ComposerPackageUpload struct { IsCopyable *bool `json:"is_copyable,omitempty"` IsDeleteable *bool `json:"is_deleteable,omitempty"` IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` IsMoveable *bool `json:"is_moveable,omitempty"` IsQuarantinable *bool `json:"is_quarantinable,omitempty"` IsQuarantined *bool `json:"is_quarantined,omitempty"` @@ -1119,6 +1120,38 @@ func (o *ComposerPackageUpload) SetIsDownloadable(v bool) { o.IsDownloadable = &v } +// GetIsHidden returns the IsHidden field value if set, zero value otherwise. +func (o *ComposerPackageUpload) GetIsHidden() bool { + if o == nil || IsNil(o.IsHidden) { + var ret bool + return ret + } + return *o.IsHidden +} + +// GetIsHiddenOk returns a tuple with the IsHidden field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComposerPackageUpload) GetIsHiddenOk() (*bool, bool) { + if o == nil || IsNil(o.IsHidden) { + return nil, false + } + return o.IsHidden, true +} + +// HasIsHidden returns a boolean if a field has been set. +func (o *ComposerPackageUpload) HasIsHidden() bool { + if o != nil && !IsNil(o.IsHidden) { + return true + } + + return false +} + +// SetIsHidden gets a reference to the given bool and assigns it to the IsHidden field. +func (o *ComposerPackageUpload) SetIsHidden(v bool) { + o.IsHidden = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *ComposerPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3159,6 +3192,9 @@ func (o ComposerPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsDownloadable) { toSerialize["is_downloadable"] = o.IsDownloadable } + if !IsNil(o.IsHidden) { + toSerialize["is_hidden"] = o.IsHidden + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3377,6 +3413,7 @@ func (o *ComposerPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_copyable") delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") + delete(additionalProperties, "is_hidden") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") diff --git a/model_composer_package_upload_request.go b/model_composer_package_upload_request.go index 9297a322..0bb1d8a0 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_composer_upstream.go b/model_composer_upstream.go index 67c39da1..45b454ec 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_composer_upstream_request.go b/model_composer_upstream_request.go index 69fbc047..2f4ec28d 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_composer_upstream_request_patch.go b/model_composer_upstream_request_patch.go index abf2d1e4..1df2ae97 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_conan_package_upload.go b/model_conan_package_upload.go index 15314467..190937ec 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ @@ -59,6 +59,7 @@ type ConanPackageUpload struct { IsCopyable *bool `json:"is_copyable,omitempty"` IsDeleteable *bool `json:"is_deleteable,omitempty"` IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` IsMoveable *bool `json:"is_moveable,omitempty"` IsQuarantinable *bool `json:"is_quarantinable,omitempty"` IsQuarantined *bool `json:"is_quarantined,omitempty"` @@ -1209,6 +1210,38 @@ func (o *ConanPackageUpload) SetIsDownloadable(v bool) { o.IsDownloadable = &v } +// GetIsHidden returns the IsHidden field value if set, zero value otherwise. +func (o *ConanPackageUpload) GetIsHidden() bool { + if o == nil || IsNil(o.IsHidden) { + var ret bool + return ret + } + return *o.IsHidden +} + +// GetIsHiddenOk returns a tuple with the IsHidden field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConanPackageUpload) GetIsHiddenOk() (*bool, bool) { + if o == nil || IsNil(o.IsHidden) { + return nil, false + } + return o.IsHidden, true +} + +// HasIsHidden returns a boolean if a field has been set. +func (o *ConanPackageUpload) HasIsHidden() bool { + if o != nil && !IsNil(o.IsHidden) { + return true + } + + return false +} + +// SetIsHidden gets a reference to the given bool and assigns it to the IsHidden field. +func (o *ConanPackageUpload) SetIsHidden(v bool) { + o.IsHidden = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *ConanPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3255,6 +3288,9 @@ func (o ConanPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsDownloadable) { toSerialize["is_downloadable"] = o.IsDownloadable } + if !IsNil(o.IsHidden) { + toSerialize["is_hidden"] = o.IsHidden + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3475,6 +3511,7 @@ func (o *ConanPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_copyable") delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") + delete(additionalProperties, "is_hidden") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") diff --git a/model_conan_package_upload_request.go b/model_conan_package_upload_request.go index 5fb3d8aa..82141dfe 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_conda_package_upload.go b/model_conda_package_upload.go index 72ac2c2e..e5537d98 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ @@ -55,6 +55,7 @@ type CondaPackageUpload struct { IsCopyable *bool `json:"is_copyable,omitempty"` IsDeleteable *bool `json:"is_deleteable,omitempty"` IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` IsMoveable *bool `json:"is_moveable,omitempty"` IsQuarantinable *bool `json:"is_quarantinable,omitempty"` IsQuarantined *bool `json:"is_quarantined,omitempty"` @@ -1119,6 +1120,38 @@ func (o *CondaPackageUpload) SetIsDownloadable(v bool) { o.IsDownloadable = &v } +// GetIsHidden returns the IsHidden field value if set, zero value otherwise. +func (o *CondaPackageUpload) GetIsHidden() bool { + if o == nil || IsNil(o.IsHidden) { + var ret bool + return ret + } + return *o.IsHidden +} + +// GetIsHiddenOk returns a tuple with the IsHidden field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CondaPackageUpload) GetIsHiddenOk() (*bool, bool) { + if o == nil || IsNil(o.IsHidden) { + return nil, false + } + return o.IsHidden, true +} + +// HasIsHidden returns a boolean if a field has been set. +func (o *CondaPackageUpload) HasIsHidden() bool { + if o != nil && !IsNil(o.IsHidden) { + return true + } + + return false +} + +// SetIsHidden gets a reference to the given bool and assigns it to the IsHidden field. +func (o *CondaPackageUpload) SetIsHidden(v bool) { + o.IsHidden = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *CondaPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3159,6 +3192,9 @@ func (o CondaPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsDownloadable) { toSerialize["is_downloadable"] = o.IsDownloadable } + if !IsNil(o.IsHidden) { + toSerialize["is_hidden"] = o.IsHidden + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3377,6 +3413,7 @@ func (o *CondaPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_copyable") delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") + delete(additionalProperties, "is_hidden") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") diff --git a/model_conda_package_upload_request.go b/model_conda_package_upload_request.go index ba3ea923..9c4150d5 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_conda_upstream.go b/model_conda_upstream.go index 23fc296c..eedd0bef 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_conda_upstream_request.go b/model_conda_upstream_request.go index 8c7dcbde..ac966e0b 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_conda_upstream_request_patch.go b/model_conda_upstream_request_patch.go index c970566e..c58f045f 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_connected_repository.go b/model_connected_repository.go new file mode 100644 index 00000000..3609fc03 --- /dev/null +++ b/model_connected_repository.go @@ -0,0 +1,323 @@ +/* +Cloudsmith API (v1) + +The API to the Cloudsmith Service + +API version: 1.1182.1 +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 ConnectedRepository type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ConnectedRepository{} + +// ConnectedRepository struct for ConnectedRepository +type ConnectedRepository struct { + // The date and time when the connection was created. + CreatedAt *time.Time `json:"created_at,omitempty"` + IsActive *bool `json:"is_active,omitempty"` + // Repositories are checked in ascending order (starting at 1). If multiple repositories have the same priority, the oldest one is used first. + Priority *int64 `json:"priority,omitempty"` + SlugPerm *string `json:"slug_perm,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"` + // The slug of the target repository to connect to. + TargetRepository string `json:"target_repository" validate:"regexp=^[-a-zA-Z0-9_]+$"` + AdditionalProperties map[string]interface{} +} + +type _ConnectedRepository ConnectedRepository + +// NewConnectedRepository instantiates a new ConnectedRepository 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 NewConnectedRepository(targetRepository string) *ConnectedRepository { + this := ConnectedRepository{} + var isActive bool = true + this.IsActive = &isActive + this.TargetRepository = targetRepository + return &this +} + +// NewConnectedRepositoryWithDefaults instantiates a new ConnectedRepository object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewConnectedRepositoryWithDefaults() *ConnectedRepository { + this := ConnectedRepository{} + var isActive bool = true + this.IsActive = &isActive + return &this +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *ConnectedRepository) 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 *ConnectedRepository) 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 *ConnectedRepository) 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 *ConnectedRepository) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetIsActive returns the IsActive field value if set, zero value otherwise. +func (o *ConnectedRepository) 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 *ConnectedRepository) 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 *ConnectedRepository) 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 *ConnectedRepository) SetIsActive(v bool) { + o.IsActive = &v +} + +// GetPriority returns the Priority field value if set, zero value otherwise. +func (o *ConnectedRepository) 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 *ConnectedRepository) 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 *ConnectedRepository) 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 *ConnectedRepository) SetPriority(v int64) { + o.Priority = &v +} + +// GetSlugPerm returns the SlugPerm field value if set, zero value otherwise. +func (o *ConnectedRepository) 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 *ConnectedRepository) 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 *ConnectedRepository) 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 *ConnectedRepository) SetSlugPerm(v string) { + o.SlugPerm = &v +} + +// GetTargetRepository returns the TargetRepository field value +func (o *ConnectedRepository) GetTargetRepository() string { + if o == nil { + var ret string + return ret + } + + return o.TargetRepository +} + +// GetTargetRepositoryOk returns a tuple with the TargetRepository field value +// and a boolean to check if the value has been set. +func (o *ConnectedRepository) GetTargetRepositoryOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TargetRepository, true +} + +// SetTargetRepository sets field value +func (o *ConnectedRepository) SetTargetRepository(v string) { + o.TargetRepository = v +} + +func (o ConnectedRepository) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ConnectedRepository) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CreatedAt) { + toSerialize["created_at"] = o.CreatedAt + } + if !IsNil(o.IsActive) { + toSerialize["is_active"] = o.IsActive + } + if !IsNil(o.Priority) { + toSerialize["priority"] = o.Priority + } + if !IsNil(o.SlugPerm) { + toSerialize["slug_perm"] = o.SlugPerm + } + toSerialize["target_repository"] = o.TargetRepository + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ConnectedRepository) 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{ + "target_repository", + } + + 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) + } + } + + varConnectedRepository := _ConnectedRepository{} + + err = json.Unmarshal(data, &varConnectedRepository) + + if err != nil { + return err + } + + *o = ConnectedRepository(varConnectedRepository) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "created_at") + delete(additionalProperties, "is_active") + delete(additionalProperties, "priority") + delete(additionalProperties, "slug_perm") + delete(additionalProperties, "target_repository") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableConnectedRepository struct { + value *ConnectedRepository + isSet bool +} + +func (v NullableConnectedRepository) Get() *ConnectedRepository { + return v.value +} + +func (v *NullableConnectedRepository) Set(val *ConnectedRepository) { + v.value = val + v.isSet = true +} + +func (v NullableConnectedRepository) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectedRepository) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectedRepository(val *ConnectedRepository) *NullableConnectedRepository { + return &NullableConnectedRepository{value: val, isSet: true} +} + +func (v NullableConnectedRepository) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectedRepository) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_connected_repository_request.go b/model_connected_repository_request.go new file mode 100644 index 00000000..bd9ea4cc --- /dev/null +++ b/model_connected_repository_request.go @@ -0,0 +1,247 @@ +/* +Cloudsmith API (v1) + +The API to the Cloudsmith Service + +API version: 1.1182.1 +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 ConnectedRepositoryRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ConnectedRepositoryRequest{} + +// ConnectedRepositoryRequest struct for ConnectedRepositoryRequest +type ConnectedRepositoryRequest struct { + IsActive *bool `json:"is_active,omitempty"` + // Repositories are checked in ascending order (starting at 1). If multiple repositories have the same priority, the oldest one is used first. + Priority *int64 `json:"priority,omitempty"` + // The slug of the target repository to connect to. + TargetRepository string `json:"target_repository" validate:"regexp=^[-a-zA-Z0-9_]+$"` + AdditionalProperties map[string]interface{} +} + +type _ConnectedRepositoryRequest ConnectedRepositoryRequest + +// NewConnectedRepositoryRequest instantiates a new ConnectedRepositoryRequest 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 NewConnectedRepositoryRequest(targetRepository string) *ConnectedRepositoryRequest { + this := ConnectedRepositoryRequest{} + var isActive bool = true + this.IsActive = &isActive + this.TargetRepository = targetRepository + return &this +} + +// NewConnectedRepositoryRequestWithDefaults instantiates a new ConnectedRepositoryRequest 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 NewConnectedRepositoryRequestWithDefaults() *ConnectedRepositoryRequest { + this := ConnectedRepositoryRequest{} + var isActive bool = true + this.IsActive = &isActive + return &this +} + +// GetIsActive returns the IsActive field value if set, zero value otherwise. +func (o *ConnectedRepositoryRequest) 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 *ConnectedRepositoryRequest) 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 *ConnectedRepositoryRequest) 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 *ConnectedRepositoryRequest) SetIsActive(v bool) { + o.IsActive = &v +} + +// GetPriority returns the Priority field value if set, zero value otherwise. +func (o *ConnectedRepositoryRequest) 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 *ConnectedRepositoryRequest) 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 *ConnectedRepositoryRequest) 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 *ConnectedRepositoryRequest) SetPriority(v int64) { + o.Priority = &v +} + +// GetTargetRepository returns the TargetRepository field value +func (o *ConnectedRepositoryRequest) GetTargetRepository() string { + if o == nil { + var ret string + return ret + } + + return o.TargetRepository +} + +// GetTargetRepositoryOk returns a tuple with the TargetRepository field value +// and a boolean to check if the value has been set. +func (o *ConnectedRepositoryRequest) GetTargetRepositoryOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TargetRepository, true +} + +// SetTargetRepository sets field value +func (o *ConnectedRepositoryRequest) SetTargetRepository(v string) { + o.TargetRepository = v +} + +func (o ConnectedRepositoryRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ConnectedRepositoryRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.IsActive) { + toSerialize["is_active"] = o.IsActive + } + if !IsNil(o.Priority) { + toSerialize["priority"] = o.Priority + } + toSerialize["target_repository"] = o.TargetRepository + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ConnectedRepositoryRequest) 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{ + "target_repository", + } + + 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) + } + } + + varConnectedRepositoryRequest := _ConnectedRepositoryRequest{} + + err = json.Unmarshal(data, &varConnectedRepositoryRequest) + + if err != nil { + return err + } + + *o = ConnectedRepositoryRequest(varConnectedRepositoryRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "is_active") + delete(additionalProperties, "priority") + delete(additionalProperties, "target_repository") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableConnectedRepositoryRequest struct { + value *ConnectedRepositoryRequest + isSet bool +} + +func (v NullableConnectedRepositoryRequest) Get() *ConnectedRepositoryRequest { + return v.value +} + +func (v *NullableConnectedRepositoryRequest) Set(val *ConnectedRepositoryRequest) { + v.value = val + v.isSet = true +} + +func (v NullableConnectedRepositoryRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectedRepositoryRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectedRepositoryRequest(val *ConnectedRepositoryRequest) *NullableConnectedRepositoryRequest { + return &NullableConnectedRepositoryRequest{value: val, isSet: true} +} + +func (v NullableConnectedRepositoryRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectedRepositoryRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_connected_repository_request_patch.go b/model_connected_repository_request_patch.go new file mode 100644 index 00000000..9c2dd08e --- /dev/null +++ b/model_connected_repository_request_patch.go @@ -0,0 +1,234 @@ +/* +Cloudsmith API (v1) + +The API to the Cloudsmith Service + +API version: 1.1182.1 +Contact: support@cloudsmith.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cloudsmith + +import ( + "encoding/json" +) + +// checks if the ConnectedRepositoryRequestPatch type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ConnectedRepositoryRequestPatch{} + +// ConnectedRepositoryRequestPatch struct for ConnectedRepositoryRequestPatch +type ConnectedRepositoryRequestPatch struct { + IsActive *bool `json:"is_active,omitempty"` + // Repositories are checked in ascending order (starting at 1). If multiple repositories have the same priority, the oldest one is used first. + Priority *int64 `json:"priority,omitempty"` + // The slug of the target repository to connect to. + TargetRepository *string `json:"target_repository,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"` + AdditionalProperties map[string]interface{} +} + +type _ConnectedRepositoryRequestPatch ConnectedRepositoryRequestPatch + +// NewConnectedRepositoryRequestPatch instantiates a new ConnectedRepositoryRequestPatch 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 NewConnectedRepositoryRequestPatch() *ConnectedRepositoryRequestPatch { + this := ConnectedRepositoryRequestPatch{} + var isActive bool = true + this.IsActive = &isActive + return &this +} + +// NewConnectedRepositoryRequestPatchWithDefaults instantiates a new ConnectedRepositoryRequestPatch 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 NewConnectedRepositoryRequestPatchWithDefaults() *ConnectedRepositoryRequestPatch { + this := ConnectedRepositoryRequestPatch{} + var isActive bool = true + this.IsActive = &isActive + return &this +} + +// GetIsActive returns the IsActive field value if set, zero value otherwise. +func (o *ConnectedRepositoryRequestPatch) 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 *ConnectedRepositoryRequestPatch) 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 *ConnectedRepositoryRequestPatch) 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 *ConnectedRepositoryRequestPatch) SetIsActive(v bool) { + o.IsActive = &v +} + +// GetPriority returns the Priority field value if set, zero value otherwise. +func (o *ConnectedRepositoryRequestPatch) 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 *ConnectedRepositoryRequestPatch) 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 *ConnectedRepositoryRequestPatch) 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 *ConnectedRepositoryRequestPatch) SetPriority(v int64) { + o.Priority = &v +} + +// GetTargetRepository returns the TargetRepository field value if set, zero value otherwise. +func (o *ConnectedRepositoryRequestPatch) GetTargetRepository() string { + if o == nil || IsNil(o.TargetRepository) { + var ret string + return ret + } + return *o.TargetRepository +} + +// GetTargetRepositoryOk returns a tuple with the TargetRepository field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectedRepositoryRequestPatch) GetTargetRepositoryOk() (*string, bool) { + if o == nil || IsNil(o.TargetRepository) { + return nil, false + } + return o.TargetRepository, true +} + +// HasTargetRepository returns a boolean if a field has been set. +func (o *ConnectedRepositoryRequestPatch) HasTargetRepository() bool { + if o != nil && !IsNil(o.TargetRepository) { + return true + } + + return false +} + +// SetTargetRepository gets a reference to the given string and assigns it to the TargetRepository field. +func (o *ConnectedRepositoryRequestPatch) SetTargetRepository(v string) { + o.TargetRepository = &v +} + +func (o ConnectedRepositoryRequestPatch) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ConnectedRepositoryRequestPatch) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.IsActive) { + toSerialize["is_active"] = o.IsActive + } + if !IsNil(o.Priority) { + toSerialize["priority"] = o.Priority + } + if !IsNil(o.TargetRepository) { + toSerialize["target_repository"] = o.TargetRepository + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ConnectedRepositoryRequestPatch) UnmarshalJSON(data []byte) (err error) { + varConnectedRepositoryRequestPatch := _ConnectedRepositoryRequestPatch{} + + err = json.Unmarshal(data, &varConnectedRepositoryRequestPatch) + + if err != nil { + return err + } + + *o = ConnectedRepositoryRequestPatch(varConnectedRepositoryRequestPatch) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "is_active") + delete(additionalProperties, "priority") + delete(additionalProperties, "target_repository") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableConnectedRepositoryRequestPatch struct { + value *ConnectedRepositoryRequestPatch + isSet bool +} + +func (v NullableConnectedRepositoryRequestPatch) Get() *ConnectedRepositoryRequestPatch { + return v.value +} + +func (v *NullableConnectedRepositoryRequestPatch) Set(val *ConnectedRepositoryRequestPatch) { + v.value = val + v.isSet = true +} + +func (v NullableConnectedRepositoryRequestPatch) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectedRepositoryRequestPatch) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectedRepositoryRequestPatch(val *ConnectedRepositoryRequestPatch) *NullableConnectedRepositoryRequestPatch { + return &NullableConnectedRepositoryRequestPatch{value: val, isSet: true} +} + +func (v NullableConnectedRepositoryRequestPatch) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectedRepositoryRequestPatch) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_cran_package_upload.go b/model_cran_package_upload.go index 4a377503..6fc3d7ce 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ @@ -55,6 +55,7 @@ type CranPackageUpload struct { IsCopyable *bool `json:"is_copyable,omitempty"` IsDeleteable *bool `json:"is_deleteable,omitempty"` IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` IsMoveable *bool `json:"is_moveable,omitempty"` IsQuarantinable *bool `json:"is_quarantinable,omitempty"` IsQuarantined *bool `json:"is_quarantined,omitempty"` @@ -1121,6 +1122,38 @@ func (o *CranPackageUpload) SetIsDownloadable(v bool) { o.IsDownloadable = &v } +// GetIsHidden returns the IsHidden field value if set, zero value otherwise. +func (o *CranPackageUpload) GetIsHidden() bool { + if o == nil || IsNil(o.IsHidden) { + var ret bool + return ret + } + return *o.IsHidden +} + +// GetIsHiddenOk returns a tuple with the IsHidden field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CranPackageUpload) GetIsHiddenOk() (*bool, bool) { + if o == nil || IsNil(o.IsHidden) { + return nil, false + } + return o.IsHidden, true +} + +// HasIsHidden returns a boolean if a field has been set. +func (o *CranPackageUpload) HasIsHidden() bool { + if o != nil && !IsNil(o.IsHidden) { + return true + } + + return false +} + +// SetIsHidden gets a reference to the given bool and assigns it to the IsHidden field. +func (o *CranPackageUpload) SetIsHidden(v bool) { + o.IsHidden = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *CranPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3204,6 +3237,9 @@ func (o CranPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsDownloadable) { toSerialize["is_downloadable"] = o.IsDownloadable } + if !IsNil(o.IsHidden) { + toSerialize["is_hidden"] = o.IsHidden + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3425,6 +3461,7 @@ func (o *CranPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_copyable") delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") + delete(additionalProperties, "is_hidden") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") diff --git a/model_cran_package_upload_request.go b/model_cran_package_upload_request.go index 7b5335be..d956f51d 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_cran_upstream.go b/model_cran_upstream.go index c8054c77..32e4b8eb 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_cran_upstream_request.go b/model_cran_upstream_request.go index c308f162..e7750f12 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_cran_upstream_request_patch.go b/model_cran_upstream_request_patch.go index 7658e4bb..0ab2acff 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_dart_package_upload.go b/model_dart_package_upload.go index 985e9a6b..cce412b8 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ @@ -55,6 +55,7 @@ type DartPackageUpload struct { IsCopyable *bool `json:"is_copyable,omitempty"` IsDeleteable *bool `json:"is_deleteable,omitempty"` IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` IsMoveable *bool `json:"is_moveable,omitempty"` IsQuarantinable *bool `json:"is_quarantinable,omitempty"` IsQuarantined *bool `json:"is_quarantined,omitempty"` @@ -1119,6 +1120,38 @@ func (o *DartPackageUpload) SetIsDownloadable(v bool) { o.IsDownloadable = &v } +// GetIsHidden returns the IsHidden field value if set, zero value otherwise. +func (o *DartPackageUpload) GetIsHidden() bool { + if o == nil || IsNil(o.IsHidden) { + var ret bool + return ret + } + return *o.IsHidden +} + +// GetIsHiddenOk returns a tuple with the IsHidden field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DartPackageUpload) GetIsHiddenOk() (*bool, bool) { + if o == nil || IsNil(o.IsHidden) { + return nil, false + } + return o.IsHidden, true +} + +// HasIsHidden returns a boolean if a field has been set. +func (o *DartPackageUpload) HasIsHidden() bool { + if o != nil && !IsNil(o.IsHidden) { + return true + } + + return false +} + +// SetIsHidden gets a reference to the given bool and assigns it to the IsHidden field. +func (o *DartPackageUpload) SetIsHidden(v bool) { + o.IsHidden = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *DartPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3159,6 +3192,9 @@ func (o DartPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsDownloadable) { toSerialize["is_downloadable"] = o.IsDownloadable } + if !IsNil(o.IsHidden) { + toSerialize["is_hidden"] = o.IsHidden + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3377,6 +3413,7 @@ func (o *DartPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_copyable") delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") + delete(additionalProperties, "is_hidden") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") diff --git a/model_dart_package_upload_request.go b/model_dart_package_upload_request.go index 7f7e355f..fcd3c468 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_dart_upstream.go b/model_dart_upstream.go index ba695f17..e24cf76b 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_dart_upstream_request.go b/model_dart_upstream_request.go index cd77156f..879ce470 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_dart_upstream_request_patch.go b/model_dart_upstream_request_patch.go index e2a29ca8..b7888a83 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_deb_package_upload.go b/model_deb_package_upload.go index 8efb172e..6179945f 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ @@ -55,6 +55,7 @@ type DebPackageUpload struct { IsCopyable *bool `json:"is_copyable,omitempty"` IsDeleteable *bool `json:"is_deleteable,omitempty"` IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` IsMoveable *bool `json:"is_moveable,omitempty"` IsQuarantinable *bool `json:"is_quarantinable,omitempty"` IsQuarantined *bool `json:"is_quarantined,omitempty"` @@ -1119,6 +1120,38 @@ func (o *DebPackageUpload) SetIsDownloadable(v bool) { o.IsDownloadable = &v } +// GetIsHidden returns the IsHidden field value if set, zero value otherwise. +func (o *DebPackageUpload) GetIsHidden() bool { + if o == nil || IsNil(o.IsHidden) { + var ret bool + return ret + } + return *o.IsHidden +} + +// GetIsHiddenOk returns a tuple with the IsHidden field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DebPackageUpload) GetIsHiddenOk() (*bool, bool) { + if o == nil || IsNil(o.IsHidden) { + return nil, false + } + return o.IsHidden, true +} + +// HasIsHidden returns a boolean if a field has been set. +func (o *DebPackageUpload) HasIsHidden() bool { + if o != nil && !IsNil(o.IsHidden) { + return true + } + + return false +} + +// SetIsHidden gets a reference to the given bool and assigns it to the IsHidden field. +func (o *DebPackageUpload) SetIsHidden(v bool) { + o.IsHidden = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *DebPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3159,6 +3192,9 @@ func (o DebPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsDownloadable) { toSerialize["is_downloadable"] = o.IsDownloadable } + if !IsNil(o.IsHidden) { + toSerialize["is_hidden"] = o.IsHidden + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3377,6 +3413,7 @@ func (o *DebPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_copyable") delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") + delete(additionalProperties, "is_hidden") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") diff --git a/model_deb_package_upload_request.go b/model_deb_package_upload_request.go index c68047f3..6da4efd7 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_deb_upstream.go b/model_deb_upstream.go index b3bdabad..194d7fc2 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_deb_upstream_request.go b/model_deb_upstream_request.go index b16de8a6..504166da 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_deb_upstream_request_patch.go b/model_deb_upstream_request_patch.go index f09fc899..ce49cbdd 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_distribution.go b/model_distribution.go index 1ecb7298..d0ec55d5 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_distribution_full.go b/model_distribution_full.go index 33132816..a170ecf7 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_distribution_version.go b/model_distribution_version.go index d7852155..b20f7af7 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_docker_package_upload.go b/model_docker_package_upload.go index ce16fd0b..790f1239 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ @@ -55,6 +55,7 @@ type DockerPackageUpload struct { IsCopyable *bool `json:"is_copyable,omitempty"` IsDeleteable *bool `json:"is_deleteable,omitempty"` IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` IsMoveable *bool `json:"is_moveable,omitempty"` IsQuarantinable *bool `json:"is_quarantinable,omitempty"` IsQuarantined *bool `json:"is_quarantined,omitempty"` @@ -1119,6 +1120,38 @@ func (o *DockerPackageUpload) SetIsDownloadable(v bool) { o.IsDownloadable = &v } +// GetIsHidden returns the IsHidden field value if set, zero value otherwise. +func (o *DockerPackageUpload) GetIsHidden() bool { + if o == nil || IsNil(o.IsHidden) { + var ret bool + return ret + } + return *o.IsHidden +} + +// GetIsHiddenOk returns a tuple with the IsHidden field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DockerPackageUpload) GetIsHiddenOk() (*bool, bool) { + if o == nil || IsNil(o.IsHidden) { + return nil, false + } + return o.IsHidden, true +} + +// HasIsHidden returns a boolean if a field has been set. +func (o *DockerPackageUpload) HasIsHidden() bool { + if o != nil && !IsNil(o.IsHidden) { + return true + } + + return false +} + +// SetIsHidden gets a reference to the given bool and assigns it to the IsHidden field. +func (o *DockerPackageUpload) SetIsHidden(v bool) { + o.IsHidden = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *DockerPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3159,6 +3192,9 @@ func (o DockerPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsDownloadable) { toSerialize["is_downloadable"] = o.IsDownloadable } + if !IsNil(o.IsHidden) { + toSerialize["is_hidden"] = o.IsHidden + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3377,6 +3413,7 @@ func (o *DockerPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_copyable") delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") + delete(additionalProperties, "is_hidden") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") diff --git a/model_docker_package_upload_request.go b/model_docker_package_upload_request.go index 31af77aa..63d884c7 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_docker_upstream.go b/model_docker_upstream.go index 0559aa24..bb1528ac 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_docker_upstream_request.go b/model_docker_upstream_request.go index 2b5817db..cdd57e85 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_docker_upstream_request_patch.go b/model_docker_upstream_request_patch.go index 1f70b352..e72d12ef 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_dynamic_mapping.go b/model_dynamic_mapping.go index c7791b4d..8d2a540b 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_entitlement_usage_metrics.go b/model_entitlement_usage_metrics.go index afdaaf35..6365a8b4 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_error_detail.go b/model_error_detail.go index a45596b9..02b67546 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_eula.go b/model_eula.go index 50f93578..5659ab1c 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_format.go b/model_format.go index c7679517..02e72933 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_format_support.go b/model_format_support.go index 992f24c1..98ed224d 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_format_support_upstream.go b/model_format_support_upstream.go index 67664069..327131f3 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_generic_package_upload.go b/model_generic_package_upload.go index c516acb0..8e28276d 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ @@ -55,6 +55,7 @@ type GenericPackageUpload struct { IsCopyable *bool `json:"is_copyable,omitempty"` IsDeleteable *bool `json:"is_deleteable,omitempty"` IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` IsMoveable *bool `json:"is_moveable,omitempty"` IsQuarantinable *bool `json:"is_quarantinable,omitempty"` IsQuarantined *bool `json:"is_quarantined,omitempty"` @@ -1119,6 +1120,38 @@ func (o *GenericPackageUpload) SetIsDownloadable(v bool) { o.IsDownloadable = &v } +// GetIsHidden returns the IsHidden field value if set, zero value otherwise. +func (o *GenericPackageUpload) GetIsHidden() bool { + if o == nil || IsNil(o.IsHidden) { + var ret bool + return ret + } + return *o.IsHidden +} + +// GetIsHiddenOk returns a tuple with the IsHidden field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GenericPackageUpload) GetIsHiddenOk() (*bool, bool) { + if o == nil || IsNil(o.IsHidden) { + return nil, false + } + return o.IsHidden, true +} + +// HasIsHidden returns a boolean if a field has been set. +func (o *GenericPackageUpload) HasIsHidden() bool { + if o != nil && !IsNil(o.IsHidden) { + return true + } + + return false +} + +// SetIsHidden gets a reference to the given bool and assigns it to the IsHidden field. +func (o *GenericPackageUpload) SetIsHidden(v bool) { + o.IsHidden = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *GenericPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3159,6 +3192,9 @@ func (o GenericPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsDownloadable) { toSerialize["is_downloadable"] = o.IsDownloadable } + if !IsNil(o.IsHidden) { + toSerialize["is_hidden"] = o.IsHidden + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3377,6 +3413,7 @@ func (o *GenericPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_copyable") delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") + delete(additionalProperties, "is_hidden") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") diff --git a/model_generic_package_upload_request.go b/model_generic_package_upload_request.go index f6fc8d21..8b1bf507 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_generic_upstream.go b/model_generic_upstream.go index 4f260c76..79fb97ed 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_generic_upstream_request.go b/model_generic_upstream_request.go index ec93cfeb..c2dd0552 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_generic_upstream_request_patch.go b/model_generic_upstream_request_patch.go index f7c1b2e9..77bde26c 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_geo_ip_location.go b/model_geo_ip_location.go index 4178898b..276ae71c 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_go_package_upload.go b/model_go_package_upload.go index d908b818..791f76d5 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ @@ -55,6 +55,7 @@ type GoPackageUpload struct { IsCopyable *bool `json:"is_copyable,omitempty"` IsDeleteable *bool `json:"is_deleteable,omitempty"` IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` IsMoveable *bool `json:"is_moveable,omitempty"` IsQuarantinable *bool `json:"is_quarantinable,omitempty"` IsQuarantined *bool `json:"is_quarantined,omitempty"` @@ -1119,6 +1120,38 @@ func (o *GoPackageUpload) SetIsDownloadable(v bool) { o.IsDownloadable = &v } +// GetIsHidden returns the IsHidden field value if set, zero value otherwise. +func (o *GoPackageUpload) GetIsHidden() bool { + if o == nil || IsNil(o.IsHidden) { + var ret bool + return ret + } + return *o.IsHidden +} + +// GetIsHiddenOk returns a tuple with the IsHidden field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GoPackageUpload) GetIsHiddenOk() (*bool, bool) { + if o == nil || IsNil(o.IsHidden) { + return nil, false + } + return o.IsHidden, true +} + +// HasIsHidden returns a boolean if a field has been set. +func (o *GoPackageUpload) HasIsHidden() bool { + if o != nil && !IsNil(o.IsHidden) { + return true + } + + return false +} + +// SetIsHidden gets a reference to the given bool and assigns it to the IsHidden field. +func (o *GoPackageUpload) SetIsHidden(v bool) { + o.IsHidden = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *GoPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3159,6 +3192,9 @@ func (o GoPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsDownloadable) { toSerialize["is_downloadable"] = o.IsDownloadable } + if !IsNil(o.IsHidden) { + toSerialize["is_hidden"] = o.IsHidden + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3377,6 +3413,7 @@ func (o *GoPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_copyable") delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") + delete(additionalProperties, "is_hidden") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") diff --git a/model_go_package_upload_request.go b/model_go_package_upload_request.go index bb3f59c5..231dd4cc 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_go_upstream.go b/model_go_upstream.go index 97bdaa0b..01f1fa00 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_go_upstream_request.go b/model_go_upstream_request.go index c8c49336..3a78d3ca 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_go_upstream_request_patch.go b/model_go_upstream_request_patch.go index c8eb3662..e8e82694 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_helm_package_upload.go b/model_helm_package_upload.go index 9cc961e3..c7c5dba9 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ @@ -55,6 +55,7 @@ type HelmPackageUpload struct { IsCopyable *bool `json:"is_copyable,omitempty"` IsDeleteable *bool `json:"is_deleteable,omitempty"` IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` IsMoveable *bool `json:"is_moveable,omitempty"` IsQuarantinable *bool `json:"is_quarantinable,omitempty"` IsQuarantined *bool `json:"is_quarantined,omitempty"` @@ -1119,6 +1120,38 @@ func (o *HelmPackageUpload) SetIsDownloadable(v bool) { o.IsDownloadable = &v } +// GetIsHidden returns the IsHidden field value if set, zero value otherwise. +func (o *HelmPackageUpload) GetIsHidden() bool { + if o == nil || IsNil(o.IsHidden) { + var ret bool + return ret + } + return *o.IsHidden +} + +// GetIsHiddenOk returns a tuple with the IsHidden field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HelmPackageUpload) GetIsHiddenOk() (*bool, bool) { + if o == nil || IsNil(o.IsHidden) { + return nil, false + } + return o.IsHidden, true +} + +// HasIsHidden returns a boolean if a field has been set. +func (o *HelmPackageUpload) HasIsHidden() bool { + if o != nil && !IsNil(o.IsHidden) { + return true + } + + return false +} + +// SetIsHidden gets a reference to the given bool and assigns it to the IsHidden field. +func (o *HelmPackageUpload) SetIsHidden(v bool) { + o.IsHidden = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *HelmPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3159,6 +3192,9 @@ func (o HelmPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsDownloadable) { toSerialize["is_downloadable"] = o.IsDownloadable } + if !IsNil(o.IsHidden) { + toSerialize["is_hidden"] = o.IsHidden + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3377,6 +3413,7 @@ func (o *HelmPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_copyable") delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") + delete(additionalProperties, "is_hidden") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") diff --git a/model_helm_package_upload_request.go b/model_helm_package_upload_request.go index c000551d..2a15c4b6 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_helm_upstream.go b/model_helm_upstream.go index e609ca3a..2e3778f1 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_helm_upstream_request.go b/model_helm_upstream_request.go index 66d834fa..fced35f9 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_helm_upstream_request_patch.go b/model_helm_upstream_request_patch.go index de950315..bed8b958 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_hex_package_upload.go b/model_hex_package_upload.go index 18926db3..64ace19b 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ @@ -55,6 +55,7 @@ type HexPackageUpload struct { IsCopyable *bool `json:"is_copyable,omitempty"` IsDeleteable *bool `json:"is_deleteable,omitempty"` IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` IsMoveable *bool `json:"is_moveable,omitempty"` IsQuarantinable *bool `json:"is_quarantinable,omitempty"` IsQuarantined *bool `json:"is_quarantined,omitempty"` @@ -1119,6 +1120,38 @@ func (o *HexPackageUpload) SetIsDownloadable(v bool) { o.IsDownloadable = &v } +// GetIsHidden returns the IsHidden field value if set, zero value otherwise. +func (o *HexPackageUpload) GetIsHidden() bool { + if o == nil || IsNil(o.IsHidden) { + var ret bool + return ret + } + return *o.IsHidden +} + +// GetIsHiddenOk returns a tuple with the IsHidden field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HexPackageUpload) GetIsHiddenOk() (*bool, bool) { + if o == nil || IsNil(o.IsHidden) { + return nil, false + } + return o.IsHidden, true +} + +// HasIsHidden returns a boolean if a field has been set. +func (o *HexPackageUpload) HasIsHidden() bool { + if o != nil && !IsNil(o.IsHidden) { + return true + } + + return false +} + +// SetIsHidden gets a reference to the given bool and assigns it to the IsHidden field. +func (o *HexPackageUpload) SetIsHidden(v bool) { + o.IsHidden = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *HexPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3159,6 +3192,9 @@ func (o HexPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsDownloadable) { toSerialize["is_downloadable"] = o.IsDownloadable } + if !IsNil(o.IsHidden) { + toSerialize["is_hidden"] = o.IsHidden + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3377,6 +3413,7 @@ func (o *HexPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_copyable") delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") + delete(additionalProperties, "is_hidden") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") diff --git a/model_hex_package_upload_request.go b/model_hex_package_upload_request.go index 9b4205ef..5cfbde0c 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_hex_upstream.go b/model_hex_upstream.go index 2a0f3889..7c721371 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_hex_upstream_request.go b/model_hex_upstream_request.go index ac387c15..070fbc3a 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_hex_upstream_request_patch.go b/model_hex_upstream_request_patch.go index dc10f07a..52fd8692 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_history.go b/model_history.go index 0503aefb..1cc49a59 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_history_fieldset.go b/model_history_fieldset.go index 19fe0a0f..7f55876a 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_history_fieldset_raw.go b/model_history_fieldset_raw.go index 1fc23945..f02e296e 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_huggingface_package_upload.go b/model_huggingface_package_upload.go index 3e0a8d3a..ab0fc085 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ @@ -55,6 +55,7 @@ type HuggingfacePackageUpload struct { IsCopyable *bool `json:"is_copyable,omitempty"` IsDeleteable *bool `json:"is_deleteable,omitempty"` IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` IsMoveable *bool `json:"is_moveable,omitempty"` IsQuarantinable *bool `json:"is_quarantinable,omitempty"` IsQuarantined *bool `json:"is_quarantined,omitempty"` @@ -1119,6 +1120,38 @@ func (o *HuggingfacePackageUpload) SetIsDownloadable(v bool) { o.IsDownloadable = &v } +// GetIsHidden returns the IsHidden field value if set, zero value otherwise. +func (o *HuggingfacePackageUpload) GetIsHidden() bool { + if o == nil || IsNil(o.IsHidden) { + var ret bool + return ret + } + return *o.IsHidden +} + +// GetIsHiddenOk returns a tuple with the IsHidden field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HuggingfacePackageUpload) GetIsHiddenOk() (*bool, bool) { + if o == nil || IsNil(o.IsHidden) { + return nil, false + } + return o.IsHidden, true +} + +// HasIsHidden returns a boolean if a field has been set. +func (o *HuggingfacePackageUpload) HasIsHidden() bool { + if o != nil && !IsNil(o.IsHidden) { + return true + } + + return false +} + +// SetIsHidden gets a reference to the given bool and assigns it to the IsHidden field. +func (o *HuggingfacePackageUpload) SetIsHidden(v bool) { + o.IsHidden = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *HuggingfacePackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3159,6 +3192,9 @@ func (o HuggingfacePackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsDownloadable) { toSerialize["is_downloadable"] = o.IsDownloadable } + if !IsNil(o.IsHidden) { + toSerialize["is_hidden"] = o.IsHidden + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3377,6 +3413,7 @@ func (o *HuggingfacePackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_copyable") delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") + delete(additionalProperties, "is_hidden") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") diff --git a/model_huggingface_package_upload_request.go b/model_huggingface_package_upload_request.go index f23f2079..41c4c6a1 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_huggingface_upstream.go b/model_huggingface_upstream.go index f60e99a7..5b329846 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_huggingface_upstream_request.go b/model_huggingface_upstream_request.go index 946d3790..62edbd1c 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_huggingface_upstream_request_patch.go b/model_huggingface_upstream_request_patch.go index 2c4a5aee..b6e89a58 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_luarocks_package_upload.go b/model_luarocks_package_upload.go index dd479db5..853fcf0e 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ @@ -55,6 +55,7 @@ type LuarocksPackageUpload struct { IsCopyable *bool `json:"is_copyable,omitempty"` IsDeleteable *bool `json:"is_deleteable,omitempty"` IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` IsMoveable *bool `json:"is_moveable,omitempty"` IsQuarantinable *bool `json:"is_quarantinable,omitempty"` IsQuarantined *bool `json:"is_quarantined,omitempty"` @@ -1119,6 +1120,38 @@ func (o *LuarocksPackageUpload) SetIsDownloadable(v bool) { o.IsDownloadable = &v } +// GetIsHidden returns the IsHidden field value if set, zero value otherwise. +func (o *LuarocksPackageUpload) GetIsHidden() bool { + if o == nil || IsNil(o.IsHidden) { + var ret bool + return ret + } + return *o.IsHidden +} + +// GetIsHiddenOk returns a tuple with the IsHidden field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LuarocksPackageUpload) GetIsHiddenOk() (*bool, bool) { + if o == nil || IsNil(o.IsHidden) { + return nil, false + } + return o.IsHidden, true +} + +// HasIsHidden returns a boolean if a field has been set. +func (o *LuarocksPackageUpload) HasIsHidden() bool { + if o != nil && !IsNil(o.IsHidden) { + return true + } + + return false +} + +// SetIsHidden gets a reference to the given bool and assigns it to the IsHidden field. +func (o *LuarocksPackageUpload) SetIsHidden(v bool) { + o.IsHidden = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *LuarocksPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3159,6 +3192,9 @@ func (o LuarocksPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsDownloadable) { toSerialize["is_downloadable"] = o.IsDownloadable } + if !IsNil(o.IsHidden) { + toSerialize["is_hidden"] = o.IsHidden + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3377,6 +3413,7 @@ func (o *LuarocksPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_copyable") delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") + delete(additionalProperties, "is_hidden") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") diff --git a/model_luarocks_package_upload_request.go b/model_luarocks_package_upload_request.go index 43bfc189..56a032b2 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_maven_package_upload.go b/model_maven_package_upload.go index 644a9011..9e09fabe 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ @@ -59,6 +59,7 @@ type MavenPackageUpload struct { IsCopyable *bool `json:"is_copyable,omitempty"` IsDeleteable *bool `json:"is_deleteable,omitempty"` IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` IsMoveable *bool `json:"is_moveable,omitempty"` IsQuarantinable *bool `json:"is_quarantinable,omitempty"` IsQuarantined *bool `json:"is_quarantined,omitempty"` @@ -1213,6 +1214,38 @@ func (o *MavenPackageUpload) SetIsDownloadable(v bool) { o.IsDownloadable = &v } +// GetIsHidden returns the IsHidden field value if set, zero value otherwise. +func (o *MavenPackageUpload) GetIsHidden() bool { + if o == nil || IsNil(o.IsHidden) { + var ret bool + return ret + } + return *o.IsHidden +} + +// GetIsHiddenOk returns a tuple with the IsHidden field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MavenPackageUpload) GetIsHiddenOk() (*bool, bool) { + if o == nil || IsNil(o.IsHidden) { + return nil, false + } + return o.IsHidden, true +} + +// HasIsHidden returns a boolean if a field has been set. +func (o *MavenPackageUpload) HasIsHidden() bool { + if o != nil && !IsNil(o.IsHidden) { + return true + } + + return false +} + +// SetIsHidden gets a reference to the given bool and assigns it to the IsHidden field. +func (o *MavenPackageUpload) SetIsHidden(v bool) { + o.IsHidden = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *MavenPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3388,6 +3421,9 @@ func (o MavenPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsDownloadable) { toSerialize["is_downloadable"] = o.IsDownloadable } + if !IsNil(o.IsHidden) { + toSerialize["is_hidden"] = o.IsHidden + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3617,6 +3653,7 @@ func (o *MavenPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_copyable") delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") + delete(additionalProperties, "is_hidden") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") diff --git a/model_maven_package_upload_request.go b/model_maven_package_upload_request.go index d2db907a..59eaaa58 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_maven_upstream.go b/model_maven_upstream.go index 669eb9f9..1ddf032d 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_maven_upstream_request.go b/model_maven_upstream_request.go index 13ecc3b7..628ecfb6 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_maven_upstream_request_patch.go b/model_maven_upstream_request_patch.go index 282cff95..9b969669 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_mcp_package_upload.go b/model_mcp_package_upload.go index 9d8cc78c..e79a21de 100644 --- a/model_mcp_package_upload.go +++ b/model_mcp_package_upload.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ @@ -55,6 +55,7 @@ type McpPackageUpload struct { IsCopyable *bool `json:"is_copyable,omitempty"` IsDeleteable *bool `json:"is_deleteable,omitempty"` IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` IsMoveable *bool `json:"is_moveable,omitempty"` IsQuarantinable *bool `json:"is_quarantinable,omitempty"` IsQuarantined *bool `json:"is_quarantined,omitempty"` @@ -1119,6 +1120,38 @@ func (o *McpPackageUpload) SetIsDownloadable(v bool) { o.IsDownloadable = &v } +// GetIsHidden returns the IsHidden field value if set, zero value otherwise. +func (o *McpPackageUpload) GetIsHidden() bool { + if o == nil || IsNil(o.IsHidden) { + var ret bool + return ret + } + return *o.IsHidden +} + +// GetIsHiddenOk returns a tuple with the IsHidden field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *McpPackageUpload) GetIsHiddenOk() (*bool, bool) { + if o == nil || IsNil(o.IsHidden) { + return nil, false + } + return o.IsHidden, true +} + +// HasIsHidden returns a boolean if a field has been set. +func (o *McpPackageUpload) HasIsHidden() bool { + if o != nil && !IsNil(o.IsHidden) { + return true + } + + return false +} + +// SetIsHidden gets a reference to the given bool and assigns it to the IsHidden field. +func (o *McpPackageUpload) SetIsHidden(v bool) { + o.IsHidden = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *McpPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3159,6 +3192,9 @@ func (o McpPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsDownloadable) { toSerialize["is_downloadable"] = o.IsDownloadable } + if !IsNil(o.IsHidden) { + toSerialize["is_hidden"] = o.IsHidden + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3377,6 +3413,7 @@ func (o *McpPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_copyable") delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") + delete(additionalProperties, "is_hidden") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") diff --git a/model_mcp_package_upload_request.go b/model_mcp_package_upload_request.go index 1a9a52f2..ecc68164 100644 --- a/model_mcp_package_upload_request.go +++ b/model_mcp_package_upload_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_member_teams.go b/model_member_teams.go new file mode 100644 index 00000000..0047e328 --- /dev/null +++ b/model_member_teams.go @@ -0,0 +1,228 @@ +/* +Cloudsmith API (v1) + +The API to the Cloudsmith Service + +API version: 1.1182.1 +Contact: support@cloudsmith.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cloudsmith + +import ( + "encoding/json" +) + +// checks if the MemberTeams type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MemberTeams{} + +// MemberTeams struct for MemberTeams +type MemberTeams struct { + Name *string `json:"name,omitempty"` + Role *string `json:"role,omitempty"` + Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"` + AdditionalProperties map[string]interface{} +} + +type _MemberTeams MemberTeams + +// NewMemberTeams instantiates a new MemberTeams 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 NewMemberTeams() *MemberTeams { + this := MemberTeams{} + return &this +} + +// NewMemberTeamsWithDefaults instantiates a new MemberTeams 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 NewMemberTeamsWithDefaults() *MemberTeams { + this := MemberTeams{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *MemberTeams) 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 *MemberTeams) 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 *MemberTeams) 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 *MemberTeams) SetName(v string) { + o.Name = &v +} + +// GetRole returns the Role field value if set, zero value otherwise. +func (o *MemberTeams) GetRole() string { + if o == nil || IsNil(o.Role) { + var ret string + return ret + } + return *o.Role +} + +// GetRoleOk returns a tuple with the Role field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MemberTeams) GetRoleOk() (*string, bool) { + if o == nil || IsNil(o.Role) { + return nil, false + } + return o.Role, true +} + +// HasRole returns a boolean if a field has been set. +func (o *MemberTeams) HasRole() bool { + if o != nil && !IsNil(o.Role) { + return true + } + + return false +} + +// SetRole gets a reference to the given string and assigns it to the Role field. +func (o *MemberTeams) SetRole(v string) { + o.Role = &v +} + +// GetSlug returns the Slug field value if set, zero value otherwise. +func (o *MemberTeams) 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 *MemberTeams) 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 *MemberTeams) 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 *MemberTeams) SetSlug(v string) { + o.Slug = &v +} + +func (o MemberTeams) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o MemberTeams) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Role) { + toSerialize["role"] = o.Role + } + if !IsNil(o.Slug) { + toSerialize["slug"] = o.Slug + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *MemberTeams) UnmarshalJSON(data []byte) (err error) { + varMemberTeams := _MemberTeams{} + + err = json.Unmarshal(data, &varMemberTeams) + + if err != nil { + return err + } + + *o = MemberTeams(varMemberTeams) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "role") + delete(additionalProperties, "slug") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableMemberTeams struct { + value *MemberTeams + isSet bool +} + +func (v NullableMemberTeams) Get() *MemberTeams { + return v.value +} + +func (v *NullableMemberTeams) Set(val *MemberTeams) { + v.value = val + v.isSet = true +} + +func (v NullableMemberTeams) IsSet() bool { + return v.isSet +} + +func (v *NullableMemberTeams) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMemberTeams(val *MemberTeams) *NullableMemberTeams { + return &NullableMemberTeams{value: val, isSet: true} +} + +func (v NullableMemberTeams) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMemberTeams) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_namespace.go b/model_namespace.go index fd33135a..247a3294 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_namespace_audit_log.go b/model_namespace_audit_log.go index 868c2018..d1320c22 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_nested_license_policy.go b/model_nested_license_policy.go index 217291b7..a8316181 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_nested_vulnerability_policy.go b/model_nested_vulnerability_policy.go index 4acbb6ed..c23053b6 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_nested_vulnerability_scan_results.go b/model_nested_vulnerability_scan_results.go index 3d28d8d1..0c73cc8e 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_npm_package_upload.go b/model_npm_package_upload.go index 70577d38..1d694c44 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ @@ -55,6 +55,7 @@ type NpmPackageUpload struct { IsCopyable *bool `json:"is_copyable,omitempty"` IsDeleteable *bool `json:"is_deleteable,omitempty"` IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` IsMoveable *bool `json:"is_moveable,omitempty"` IsQuarantinable *bool `json:"is_quarantinable,omitempty"` IsQuarantined *bool `json:"is_quarantined,omitempty"` @@ -1119,6 +1120,38 @@ func (o *NpmPackageUpload) SetIsDownloadable(v bool) { o.IsDownloadable = &v } +// GetIsHidden returns the IsHidden field value if set, zero value otherwise. +func (o *NpmPackageUpload) GetIsHidden() bool { + if o == nil || IsNil(o.IsHidden) { + var ret bool + return ret + } + return *o.IsHidden +} + +// GetIsHiddenOk returns a tuple with the IsHidden field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NpmPackageUpload) GetIsHiddenOk() (*bool, bool) { + if o == nil || IsNil(o.IsHidden) { + return nil, false + } + return o.IsHidden, true +} + +// HasIsHidden returns a boolean if a field has been set. +func (o *NpmPackageUpload) HasIsHidden() bool { + if o != nil && !IsNil(o.IsHidden) { + return true + } + + return false +} + +// SetIsHidden gets a reference to the given bool and assigns it to the IsHidden field. +func (o *NpmPackageUpload) SetIsHidden(v bool) { + o.IsHidden = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *NpmPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3159,6 +3192,9 @@ func (o NpmPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsDownloadable) { toSerialize["is_downloadable"] = o.IsDownloadable } + if !IsNil(o.IsHidden) { + toSerialize["is_hidden"] = o.IsHidden + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3377,6 +3413,7 @@ func (o *NpmPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_copyable") delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") + delete(additionalProperties, "is_hidden") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") diff --git a/model_npm_package_upload_request.go b/model_npm_package_upload_request.go index 91f519df..3bda8419 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_npm_upstream.go b/model_npm_upstream.go index e936ccce..c6c63b1b 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_npm_upstream_request.go b/model_npm_upstream_request.go index 4f586f60..ab817b40 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_npm_upstream_request_patch.go b/model_npm_upstream_request_patch.go index 4b37b1a6..c2202f36 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_nuget_package_upload.go b/model_nuget_package_upload.go index e1f9a7e8..d6e8ffe0 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ @@ -55,6 +55,7 @@ type NugetPackageUpload struct { IsCopyable *bool `json:"is_copyable,omitempty"` IsDeleteable *bool `json:"is_deleteable,omitempty"` IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` IsMoveable *bool `json:"is_moveable,omitempty"` IsQuarantinable *bool `json:"is_quarantinable,omitempty"` IsQuarantined *bool `json:"is_quarantined,omitempty"` @@ -1119,6 +1120,38 @@ func (o *NugetPackageUpload) SetIsDownloadable(v bool) { o.IsDownloadable = &v } +// GetIsHidden returns the IsHidden field value if set, zero value otherwise. +func (o *NugetPackageUpload) GetIsHidden() bool { + if o == nil || IsNil(o.IsHidden) { + var ret bool + return ret + } + return *o.IsHidden +} + +// GetIsHiddenOk returns a tuple with the IsHidden field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NugetPackageUpload) GetIsHiddenOk() (*bool, bool) { + if o == nil || IsNil(o.IsHidden) { + return nil, false + } + return o.IsHidden, true +} + +// HasIsHidden returns a boolean if a field has been set. +func (o *NugetPackageUpload) HasIsHidden() bool { + if o != nil && !IsNil(o.IsHidden) { + return true + } + + return false +} + +// SetIsHidden gets a reference to the given bool and assigns it to the IsHidden field. +func (o *NugetPackageUpload) SetIsHidden(v bool) { + o.IsHidden = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *NugetPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3159,6 +3192,9 @@ func (o NugetPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsDownloadable) { toSerialize["is_downloadable"] = o.IsDownloadable } + if !IsNil(o.IsHidden) { + toSerialize["is_hidden"] = o.IsHidden + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3377,6 +3413,7 @@ func (o *NugetPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_copyable") delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") + delete(additionalProperties, "is_hidden") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") diff --git a/model_nuget_package_upload_request.go b/model_nuget_package_upload_request.go index 8bcbfff5..b9c53b29 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_nuget_upstream.go b/model_nuget_upstream.go index f82adf80..121ca946 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_nuget_upstream_request.go b/model_nuget_upstream_request.go index c21a3059..f8afbba4 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_nuget_upstream_request_patch.go b/model_nuget_upstream_request_patch.go index 2375e48d..f3dedf6f 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_organization.go b/model_organization.go index 3ccb74e1..0be4c53d 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_organization_group_sync.go b/model_organization_group_sync.go index bce1ed87..3d1481a4 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_organization_group_sync_request.go b/model_organization_group_sync_request.go index b84ecf89..22f1aa03 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_organization_group_sync_status.go b/model_organization_group_sync_status.go index 1a408cbc..18e13388 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_organization_invite.go b/model_organization_invite.go index 75a3c1a4..ee27ff34 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_organization_invite_extend.go b/model_organization_invite_extend.go index 84d33401..4c3e3999 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_organization_invite_request.go b/model_organization_invite_request.go index a623e3cb..35996d91 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_organization_invite_update.go b/model_organization_invite_update.go index 8b93fefe..ab4259ae 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_organization_invite_update_request_patch.go b/model_organization_invite_update_request_patch.go index e7dce911..90004db2 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_organization_membership.go b/model_organization_membership.go index d824ac67..ea4a2175 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ @@ -21,18 +21,19 @@ var _ MappedNullable = &OrganizationMembership{} // OrganizationMembership struct for OrganizationMembership type OrganizationMembership struct { - Email *string `json:"email,omitempty"` - HasTwoFactor *bool `json:"has_two_factor,omitempty"` - IsActive *bool `json:"is_active,omitempty"` - JoinedAt *time.Time `json:"joined_at,omitempty"` - LastLoginAt NullableTime `json:"last_login_at,omitempty"` - LastLoginMethod *string `json:"last_login_method,omitempty"` - Role *string `json:"role,omitempty"` - User *string `json:"user,omitempty"` - UserId *string `json:"user_id,omitempty"` - UserName *string `json:"user_name,omitempty"` - UserUrl *string `json:"user_url,omitempty"` - Visibility *string `json:"visibility,omitempty"` + Email *string `json:"email,omitempty"` + HasTwoFactor *bool `json:"has_two_factor,omitempty"` + IsActive *bool `json:"is_active,omitempty"` + JoinedAt *time.Time `json:"joined_at,omitempty"` + LastLoginAt NullableTime `json:"last_login_at,omitempty"` + LastLoginMethod *string `json:"last_login_method,omitempty"` + Role *string `json:"role,omitempty"` + Teams []MemberTeams `json:"teams,omitempty"` + User *string `json:"user,omitempty"` + UserId *string `json:"user_id,omitempty"` + UserName *string `json:"user_name,omitempty"` + UserUrl *string `json:"user_url,omitempty"` + Visibility *string `json:"visibility,omitempty"` AdditionalProperties map[string]interface{} } @@ -290,6 +291,38 @@ func (o *OrganizationMembership) SetRole(v string) { o.Role = &v } +// GetTeams returns the Teams field value if set, zero value otherwise. +func (o *OrganizationMembership) GetTeams() []MemberTeams { + if o == nil || IsNil(o.Teams) { + var ret []MemberTeams + return ret + } + return o.Teams +} + +// GetTeamsOk returns a tuple with the Teams field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrganizationMembership) GetTeamsOk() ([]MemberTeams, bool) { + if o == nil || IsNil(o.Teams) { + return nil, false + } + return o.Teams, true +} + +// HasTeams returns a boolean if a field has been set. +func (o *OrganizationMembership) HasTeams() bool { + if o != nil && !IsNil(o.Teams) { + return true + } + + return false +} + +// SetTeams gets a reference to the given []MemberTeams and assigns it to the Teams field. +func (o *OrganizationMembership) SetTeams(v []MemberTeams) { + o.Teams = v +} + // GetUser returns the User field value if set, zero value otherwise. func (o *OrganizationMembership) GetUser() string { if o == nil || IsNil(o.User) { @@ -481,6 +514,9 @@ func (o OrganizationMembership) ToMap() (map[string]interface{}, error) { if !IsNil(o.Role) { toSerialize["role"] = o.Role } + if !IsNil(o.Teams) { + toSerialize["teams"] = o.Teams + } if !IsNil(o.User) { toSerialize["user"] = o.User } @@ -525,6 +561,7 @@ func (o *OrganizationMembership) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "last_login_at") delete(additionalProperties, "last_login_method") delete(additionalProperties, "role") + delete(additionalProperties, "teams") delete(additionalProperties, "user") delete(additionalProperties, "user_id") delete(additionalProperties, "user_name") diff --git a/model_organization_membership_role_update.go b/model_organization_membership_role_update.go index 8d3d230e..92eb2372 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.1137.0 +API version: 1.1182.1 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 54d7cd04..fc8b84a4 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_organization_membership_visibility_update.go b/model_organization_membership_visibility_update.go index 95f2c445..41dfe3d8 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.1137.0 +API version: 1.1182.1 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 89ad9190..f0c4713b 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_organization_package_license_policy.go b/model_organization_package_license_policy.go index d269c94a..11c9c96d 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_organization_package_license_policy_request.go b/model_organization_package_license_policy_request.go index c916933b..0b87407e 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.1137.0 +API version: 1.1182.1 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 1b22068b..821e809a 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_organization_package_vulnerability_policy.go b/model_organization_package_vulnerability_policy.go index ecd8c88f..d6fd9205 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_organization_package_vulnerability_policy_request.go b/model_organization_package_vulnerability_policy_request.go index 030d8ad3..9480f553 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.1137.0 +API version: 1.1182.1 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 c16a58fb..d2fae4f2 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_organization_saml_auth.go b/model_organization_saml_auth.go index 2672f329..74d9df40 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_organization_saml_auth_request_patch.go b/model_organization_saml_auth_request_patch.go index 0d684c22..ca8863c4 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_organization_team.go b/model_organization_team.go index 9c6da0bd..0b593720 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_organization_team_invite.go b/model_organization_team_invite.go index 41c4805e..a94f4602 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_organization_team_members.go b/model_organization_team_members.go index b6024237..3fe3fb34 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_organization_team_request.go b/model_organization_team_request.go index fa80ee6d..7f6025dd 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_organization_team_request_patch.go b/model_organization_team_request_patch.go index b3b8dc74..6d343017 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_organization_team_service_member.go b/model_organization_team_service_member.go index 38489cda..fa595745 100644 --- a/model_organization_team_service_member.go +++ b/model_organization_team_service_member.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_p2_package_upload.go b/model_p2_package_upload.go index ebeab6f4..916a8f08 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ @@ -55,6 +55,7 @@ type P2PackageUpload struct { IsCopyable *bool `json:"is_copyable,omitempty"` IsDeleteable *bool `json:"is_deleteable,omitempty"` IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` IsMoveable *bool `json:"is_moveable,omitempty"` IsQuarantinable *bool `json:"is_quarantinable,omitempty"` IsQuarantined *bool `json:"is_quarantined,omitempty"` @@ -1119,6 +1120,38 @@ func (o *P2PackageUpload) SetIsDownloadable(v bool) { o.IsDownloadable = &v } +// GetIsHidden returns the IsHidden field value if set, zero value otherwise. +func (o *P2PackageUpload) GetIsHidden() bool { + if o == nil || IsNil(o.IsHidden) { + var ret bool + return ret + } + return *o.IsHidden +} + +// GetIsHiddenOk returns a tuple with the IsHidden field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *P2PackageUpload) GetIsHiddenOk() (*bool, bool) { + if o == nil || IsNil(o.IsHidden) { + return nil, false + } + return o.IsHidden, true +} + +// HasIsHidden returns a boolean if a field has been set. +func (o *P2PackageUpload) HasIsHidden() bool { + if o != nil && !IsNil(o.IsHidden) { + return true + } + + return false +} + +// SetIsHidden gets a reference to the given bool and assigns it to the IsHidden field. +func (o *P2PackageUpload) SetIsHidden(v bool) { + o.IsHidden = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *P2PackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3159,6 +3192,9 @@ func (o P2PackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsDownloadable) { toSerialize["is_downloadable"] = o.IsDownloadable } + if !IsNil(o.IsHidden) { + toSerialize["is_hidden"] = o.IsHidden + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3377,6 +3413,7 @@ func (o *P2PackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_copyable") delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") + delete(additionalProperties, "is_hidden") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") diff --git a/model_p2_package_upload_request.go b/model_p2_package_upload_request.go index 4471adbd..d03adfd1 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_package.go b/model_package.go index 7f418f62..88f5e8e7 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ @@ -57,6 +57,7 @@ type Package struct { IsCopyable *bool `json:"is_copyable,omitempty"` IsDeleteable *bool `json:"is_deleteable,omitempty"` IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` IsMoveable *bool `json:"is_moveable,omitempty"` IsQuarantinable *bool `json:"is_quarantinable,omitempty"` IsQuarantined *bool `json:"is_quarantined,omitempty"` @@ -1166,6 +1167,38 @@ func (o *Package) SetIsDownloadable(v bool) { o.IsDownloadable = &v } +// GetIsHidden returns the IsHidden field value if set, zero value otherwise. +func (o *Package) GetIsHidden() bool { + if o == nil || IsNil(o.IsHidden) { + var ret bool + return ret + } + return *o.IsHidden +} + +// GetIsHiddenOk returns a tuple with the IsHidden field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Package) GetIsHiddenOk() (*bool, bool) { + if o == nil || IsNil(o.IsHidden) { + return nil, false + } + return o.IsHidden, true +} + +// HasIsHidden returns a boolean if a field has been set. +func (o *Package) HasIsHidden() bool { + if o != nil && !IsNil(o.IsHidden) { + return true + } + + return false +} + +// SetIsHidden gets a reference to the given bool and assigns it to the IsHidden field. +func (o *Package) SetIsHidden(v bool) { + o.IsHidden = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *Package) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3241,6 +3274,9 @@ func (o Package) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsDownloadable) { toSerialize["is_downloadable"] = o.IsDownloadable } + if !IsNil(o.IsHidden) { + toSerialize["is_hidden"] = o.IsHidden + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3463,6 +3499,7 @@ func (o *Package) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_copyable") delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") + delete(additionalProperties, "is_hidden") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") diff --git a/model_package_bulk_action.go b/model_package_bulk_action.go index 27d80bc7..cf055b99 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_package_bulk_action_response.go b/model_package_bulk_action_response.go index 11872a2e..5291b978 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_package_copy.go b/model_package_copy.go index 1e528f1e..d374e9ae 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ @@ -57,6 +57,7 @@ type PackageCopy struct { IsCopyable *bool `json:"is_copyable,omitempty"` IsDeleteable *bool `json:"is_deleteable,omitempty"` IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` IsMoveable *bool `json:"is_moveable,omitempty"` IsQuarantinable *bool `json:"is_quarantinable,omitempty"` IsQuarantined *bool `json:"is_quarantined,omitempty"` @@ -1167,6 +1168,38 @@ func (o *PackageCopy) SetIsDownloadable(v bool) { o.IsDownloadable = &v } +// GetIsHidden returns the IsHidden field value if set, zero value otherwise. +func (o *PackageCopy) GetIsHidden() bool { + if o == nil || IsNil(o.IsHidden) { + var ret bool + return ret + } + return *o.IsHidden +} + +// GetIsHiddenOk returns a tuple with the IsHidden field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageCopy) GetIsHiddenOk() (*bool, bool) { + if o == nil || IsNil(o.IsHidden) { + return nil, false + } + return o.IsHidden, true +} + +// HasIsHidden returns a boolean if a field has been set. +func (o *PackageCopy) HasIsHidden() bool { + if o != nil && !IsNil(o.IsHidden) { + return true + } + + return false +} + +// SetIsHidden gets a reference to the given bool and assigns it to the IsHidden field. +func (o *PackageCopy) SetIsHidden(v bool) { + o.IsHidden = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *PackageCopy) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3242,6 +3275,9 @@ func (o PackageCopy) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsDownloadable) { toSerialize["is_downloadable"] = o.IsDownloadable } + if !IsNil(o.IsHidden) { + toSerialize["is_hidden"] = o.IsHidden + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3464,6 +3500,7 @@ func (o *PackageCopy) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_copyable") delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") + delete(additionalProperties, "is_hidden") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") diff --git a/model_package_copy_request.go b/model_package_copy_request.go index 5eed4f3b..c28806e8 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_package_deny_policy.go b/model_package_deny_policy.go index 3eed395d..e18051a3 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_package_deny_policy_request.go b/model_package_deny_policy_request.go index 32629b0b..ed22b09a 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_package_deny_policy_request_patch.go b/model_package_deny_policy_request_patch.go index ff784a08..f27b5808 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_package_dependencies.go b/model_package_dependencies.go index 36741d9b..f2ac9f9e 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_package_dependency.go b/model_package_dependency.go index 17bce294..52af5399 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_package_file.go b/model_package_file.go index ac703a9c..d1350318 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_package_file_parts_upload.go b/model_package_file_parts_upload.go index 0462bcd1..01b3e910 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_package_file_upload.go b/model_package_file_upload.go index 3d550746..540565f1 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_package_file_upload_request.go b/model_package_file_upload_request.go index e56b8998..e8f78f23 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_package_group.go b/model_package_group.go index cbe6e1ba..e73f28a4 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_package_license.go b/model_package_license.go index a8b675a7..fed23903 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_package_license_policy_evaluation_request.go b/model_package_license_policy_evaluation_request.go index 38cacb6d..9c278452 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_package_license_policy_violation_log.go b/model_package_license_policy_violation_log.go index 2ad91653..bb3534eb 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.1137.0 +API version: 1.1182.1 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 9fe56037..afdac6ac 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_package_license_request_patch.go b/model_package_license_request_patch.go index f77cace7..84eaec5a 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_package_move.go b/model_package_move.go index a0418116..7699e068 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ @@ -57,6 +57,7 @@ type PackageMove struct { IsCopyable *bool `json:"is_copyable,omitempty"` IsDeleteable *bool `json:"is_deleteable,omitempty"` IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` IsMoveable *bool `json:"is_moveable,omitempty"` IsQuarantinable *bool `json:"is_quarantinable,omitempty"` IsQuarantined *bool `json:"is_quarantined,omitempty"` @@ -1167,6 +1168,38 @@ func (o *PackageMove) SetIsDownloadable(v bool) { o.IsDownloadable = &v } +// GetIsHidden returns the IsHidden field value if set, zero value otherwise. +func (o *PackageMove) GetIsHidden() bool { + if o == nil || IsNil(o.IsHidden) { + var ret bool + return ret + } + return *o.IsHidden +} + +// GetIsHiddenOk returns a tuple with the IsHidden field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageMove) GetIsHiddenOk() (*bool, bool) { + if o == nil || IsNil(o.IsHidden) { + return nil, false + } + return o.IsHidden, true +} + +// HasIsHidden returns a boolean if a field has been set. +func (o *PackageMove) HasIsHidden() bool { + if o != nil && !IsNil(o.IsHidden) { + return true + } + + return false +} + +// SetIsHidden gets a reference to the given bool and assigns it to the IsHidden field. +func (o *PackageMove) SetIsHidden(v bool) { + o.IsHidden = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *PackageMove) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3242,6 +3275,9 @@ func (o PackageMove) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsDownloadable) { toSerialize["is_downloadable"] = o.IsDownloadable } + if !IsNil(o.IsHidden) { + toSerialize["is_hidden"] = o.IsHidden + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3464,6 +3500,7 @@ func (o *PackageMove) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_copyable") delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") + delete(additionalProperties, "is_hidden") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") diff --git a/model_package_move_request.go b/model_package_move_request.go index 1ffafda6..d9a6ae4a 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_package_quarantine.go b/model_package_quarantine.go index 7217e0ba..1f5bb81b 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ @@ -57,6 +57,7 @@ type PackageQuarantine struct { IsCopyable *bool `json:"is_copyable,omitempty"` IsDeleteable *bool `json:"is_deleteable,omitempty"` IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` IsMoveable *bool `json:"is_moveable,omitempty"` IsQuarantinable *bool `json:"is_quarantinable,omitempty"` IsQuarantined *bool `json:"is_quarantined,omitempty"` @@ -1164,6 +1165,38 @@ func (o *PackageQuarantine) SetIsDownloadable(v bool) { o.IsDownloadable = &v } +// GetIsHidden returns the IsHidden field value if set, zero value otherwise. +func (o *PackageQuarantine) GetIsHidden() bool { + if o == nil || IsNil(o.IsHidden) { + var ret bool + return ret + } + return *o.IsHidden +} + +// GetIsHiddenOk returns a tuple with the IsHidden field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageQuarantine) GetIsHiddenOk() (*bool, bool) { + if o == nil || IsNil(o.IsHidden) { + return nil, false + } + return o.IsHidden, true +} + +// HasIsHidden returns a boolean if a field has been set. +func (o *PackageQuarantine) HasIsHidden() bool { + if o != nil && !IsNil(o.IsHidden) { + return true + } + + return false +} + +// SetIsHidden gets a reference to the given bool and assigns it to the IsHidden field. +func (o *PackageQuarantine) SetIsHidden(v bool) { + o.IsHidden = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *PackageQuarantine) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3196,6 +3229,9 @@ func (o PackageQuarantine) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsDownloadable) { toSerialize["is_downloadable"] = o.IsDownloadable } + if !IsNil(o.IsHidden) { + toSerialize["is_hidden"] = o.IsHidden + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3415,6 +3451,7 @@ func (o *PackageQuarantine) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_copyable") delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") + delete(additionalProperties, "is_hidden") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") diff --git a/model_package_quarantine_request.go b/model_package_quarantine_request.go index 0c25f607..6e41a7f6 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_package_recycle_bin.go b/model_package_recycle_bin.go index c8569096..bbd7d432 100644 --- a/model_package_recycle_bin.go +++ b/model_package_recycle_bin.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_package_resync.go b/model_package_resync.go index f47985d3..39dfba18 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ @@ -57,6 +57,7 @@ type PackageResync struct { IsCopyable *bool `json:"is_copyable,omitempty"` IsDeleteable *bool `json:"is_deleteable,omitempty"` IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` IsMoveable *bool `json:"is_moveable,omitempty"` IsQuarantinable *bool `json:"is_quarantinable,omitempty"` IsQuarantined *bool `json:"is_quarantined,omitempty"` @@ -1166,6 +1167,38 @@ func (o *PackageResync) SetIsDownloadable(v bool) { o.IsDownloadable = &v } +// GetIsHidden returns the IsHidden field value if set, zero value otherwise. +func (o *PackageResync) GetIsHidden() bool { + if o == nil || IsNil(o.IsHidden) { + var ret bool + return ret + } + return *o.IsHidden +} + +// GetIsHiddenOk returns a tuple with the IsHidden field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageResync) GetIsHiddenOk() (*bool, bool) { + if o == nil || IsNil(o.IsHidden) { + return nil, false + } + return o.IsHidden, true +} + +// HasIsHidden returns a boolean if a field has been set. +func (o *PackageResync) HasIsHidden() bool { + if o != nil && !IsNil(o.IsHidden) { + return true + } + + return false +} + +// SetIsHidden gets a reference to the given bool and assigns it to the IsHidden field. +func (o *PackageResync) SetIsHidden(v bool) { + o.IsHidden = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *PackageResync) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3241,6 +3274,9 @@ func (o PackageResync) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsDownloadable) { toSerialize["is_downloadable"] = o.IsDownloadable } + if !IsNil(o.IsHidden) { + toSerialize["is_hidden"] = o.IsHidden + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3463,6 +3499,7 @@ func (o *PackageResync) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_copyable") delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") + delete(additionalProperties, "is_hidden") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") diff --git a/model_package_status.go b/model_package_status.go index f40b67eb..4893890e 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ @@ -25,6 +25,7 @@ type PackageStatus struct { IsCopyable *bool `json:"is_copyable,omitempty"` IsDeleteable *bool `json:"is_deleteable,omitempty"` IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` IsMoveable *bool `json:"is_moveable,omitempty"` IsQuarantinable *bool `json:"is_quarantinable,omitempty"` IsQuarantined *bool `json:"is_quarantined,omitempty"` @@ -202,6 +203,38 @@ func (o *PackageStatus) SetIsDownloadable(v bool) { o.IsDownloadable = &v } +// GetIsHidden returns the IsHidden field value if set, zero value otherwise. +func (o *PackageStatus) GetIsHidden() bool { + if o == nil || IsNil(o.IsHidden) { + var ret bool + return ret + } + return *o.IsHidden +} + +// GetIsHiddenOk returns a tuple with the IsHidden field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageStatus) GetIsHiddenOk() (*bool, bool) { + if o == nil || IsNil(o.IsHidden) { + return nil, false + } + return o.IsHidden, true +} + +// HasIsHidden returns a boolean if a field has been set. +func (o *PackageStatus) HasIsHidden() bool { + if o != nil && !IsNil(o.IsHidden) { + return true + } + + return false +} + +// SetIsHidden gets a reference to the given bool and assigns it to the IsHidden field. +func (o *PackageStatus) SetIsHidden(v bool) { + o.IsHidden = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *PackageStatus) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -886,6 +919,9 @@ func (o PackageStatus) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsDownloadable) { toSerialize["is_downloadable"] = o.IsDownloadable } + if !IsNil(o.IsHidden) { + toSerialize["is_hidden"] = o.IsHidden + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -972,6 +1008,7 @@ func (o *PackageStatus) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_copyable") delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") + delete(additionalProperties, "is_hidden") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") diff --git a/model_package_tag.go b/model_package_tag.go index b729dae1..bf0aee76 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ @@ -57,6 +57,7 @@ type PackageTag struct { IsCopyable *bool `json:"is_copyable,omitempty"` IsDeleteable *bool `json:"is_deleteable,omitempty"` IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` // If true, created tags will be immutable. An immutable flag is a tag that cannot be removed from a package. IsImmutable *bool `json:"is_immutable,omitempty"` IsMoveable *bool `json:"is_moveable,omitempty"` @@ -1170,6 +1171,38 @@ func (o *PackageTag) SetIsDownloadable(v bool) { o.IsDownloadable = &v } +// GetIsHidden returns the IsHidden field value if set, zero value otherwise. +func (o *PackageTag) GetIsHidden() bool { + if o == nil || IsNil(o.IsHidden) { + var ret bool + return ret + } + return *o.IsHidden +} + +// GetIsHiddenOk returns a tuple with the IsHidden field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageTag) GetIsHiddenOk() (*bool, bool) { + if o == nil || IsNil(o.IsHidden) { + return nil, false + } + return o.IsHidden, true +} + +// HasIsHidden returns a boolean if a field has been set. +func (o *PackageTag) HasIsHidden() bool { + if o != nil && !IsNil(o.IsHidden) { + return true + } + + return false +} + +// SetIsHidden gets a reference to the given bool and assigns it to the IsHidden field. +func (o *PackageTag) SetIsHidden(v bool) { + o.IsHidden = &v +} + // GetIsImmutable returns the IsImmutable field value if set, zero value otherwise. func (o *PackageTag) GetIsImmutable() bool { if o == nil || IsNil(o.IsImmutable) { @@ -3245,6 +3278,9 @@ func (o PackageTag) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsDownloadable) { toSerialize["is_downloadable"] = o.IsDownloadable } + if !IsNil(o.IsHidden) { + toSerialize["is_hidden"] = o.IsHidden + } if !IsNil(o.IsImmutable) { toSerialize["is_immutable"] = o.IsImmutable } @@ -3467,6 +3503,7 @@ func (o *PackageTag) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_copyable") delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") + delete(additionalProperties, "is_hidden") delete(additionalProperties, "is_immutable") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") diff --git a/model_package_tag_request.go b/model_package_tag_request.go index e86688eb..2049ac5a 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_package_usage_metrics.go b/model_package_usage_metrics.go index afa3f185..0bcbdd05 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_package_vulnerability.go b/model_package_vulnerability.go index 5a8e7482..4fe5fae5 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_package_vulnerability_policy_evaluation_request.go b/model_package_vulnerability_policy_evaluation_request.go index 7b356c9e..903544dd 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_package_vulnerability_policy_violation_log.go b/model_package_vulnerability_policy_violation_log.go index 830bab77..bd10eaaa 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.1137.0 +API version: 1.1182.1 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 ef8e8d6b..af61e960 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_packages_groups_list_200_response.go b/model_packages_groups_list_200_response.go index deb9f955..1dcd112b 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_provider_settings.go b/model_provider_settings.go index e61841fa..c99ff668 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_provider_settings_write.go b/model_provider_settings_write.go index 1442d2f5..c7f34616 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_provider_settings_write_request.go b/model_provider_settings_write_request.go index f884cb46..2e7ebb5b 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_provider_settings_write_request_patch.go b/model_provider_settings_write_request_patch.go index 0c50cfae..aa80d97c 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_python_package_upload.go b/model_python_package_upload.go index 1e5868a8..e5e436a4 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ @@ -55,6 +55,7 @@ type PythonPackageUpload struct { IsCopyable *bool `json:"is_copyable,omitempty"` IsDeleteable *bool `json:"is_deleteable,omitempty"` IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` IsMoveable *bool `json:"is_moveable,omitempty"` IsQuarantinable *bool `json:"is_quarantinable,omitempty"` IsQuarantined *bool `json:"is_quarantined,omitempty"` @@ -1119,6 +1120,38 @@ func (o *PythonPackageUpload) SetIsDownloadable(v bool) { o.IsDownloadable = &v } +// GetIsHidden returns the IsHidden field value if set, zero value otherwise. +func (o *PythonPackageUpload) GetIsHidden() bool { + if o == nil || IsNil(o.IsHidden) { + var ret bool + return ret + } + return *o.IsHidden +} + +// GetIsHiddenOk returns a tuple with the IsHidden field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PythonPackageUpload) GetIsHiddenOk() (*bool, bool) { + if o == nil || IsNil(o.IsHidden) { + return nil, false + } + return o.IsHidden, true +} + +// HasIsHidden returns a boolean if a field has been set. +func (o *PythonPackageUpload) HasIsHidden() bool { + if o != nil && !IsNil(o.IsHidden) { + return true + } + + return false +} + +// SetIsHidden gets a reference to the given bool and assigns it to the IsHidden field. +func (o *PythonPackageUpload) SetIsHidden(v bool) { + o.IsHidden = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *PythonPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3159,6 +3192,9 @@ func (o PythonPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsDownloadable) { toSerialize["is_downloadable"] = o.IsDownloadable } + if !IsNil(o.IsHidden) { + toSerialize["is_hidden"] = o.IsHidden + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3377,6 +3413,7 @@ func (o *PythonPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_copyable") delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") + delete(additionalProperties, "is_hidden") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") diff --git a/model_python_package_upload_request.go b/model_python_package_upload_request.go index 9a756142..c30daf4f 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_python_upstream.go b/model_python_upstream.go index df8768bb..e07885e2 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_python_upstream_request.go b/model_python_upstream_request.go index bbe807e4..bcffb4dc 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_python_upstream_request_patch.go b/model_python_upstream_request_patch.go index 6336883d..f8860b43 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_quota.go b/model_quota.go index 7f904c32..7c96871a 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_quota_history.go b/model_quota_history.go index 93f48c79..585f096e 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_rate_check.go b/model_rate_check.go index c8db6dbc..253208b6 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_raw_package_upload.go b/model_raw_package_upload.go index 52a09979..3cd1232b 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ @@ -55,6 +55,7 @@ type RawPackageUpload struct { IsCopyable *bool `json:"is_copyable,omitempty"` IsDeleteable *bool `json:"is_deleteable,omitempty"` IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` IsMoveable *bool `json:"is_moveable,omitempty"` IsQuarantinable *bool `json:"is_quarantinable,omitempty"` IsQuarantined *bool `json:"is_quarantined,omitempty"` @@ -1119,6 +1120,38 @@ func (o *RawPackageUpload) SetIsDownloadable(v bool) { o.IsDownloadable = &v } +// GetIsHidden returns the IsHidden field value if set, zero value otherwise. +func (o *RawPackageUpload) GetIsHidden() bool { + if o == nil || IsNil(o.IsHidden) { + var ret bool + return ret + } + return *o.IsHidden +} + +// GetIsHiddenOk returns a tuple with the IsHidden field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RawPackageUpload) GetIsHiddenOk() (*bool, bool) { + if o == nil || IsNil(o.IsHidden) { + return nil, false + } + return o.IsHidden, true +} + +// HasIsHidden returns a boolean if a field has been set. +func (o *RawPackageUpload) HasIsHidden() bool { + if o != nil && !IsNil(o.IsHidden) { + return true + } + + return false +} + +// SetIsHidden gets a reference to the given bool and assigns it to the IsHidden field. +func (o *RawPackageUpload) SetIsHidden(v bool) { + o.IsHidden = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *RawPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3159,6 +3192,9 @@ func (o RawPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsDownloadable) { toSerialize["is_downloadable"] = o.IsDownloadable } + if !IsNil(o.IsHidden) { + toSerialize["is_hidden"] = o.IsHidden + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3377,6 +3413,7 @@ func (o *RawPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_copyable") delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") + delete(additionalProperties, "is_hidden") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") diff --git a/model_raw_package_upload_request.go b/model_raw_package_upload_request.go index 113a4679..ffcd3641 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_recycle_bin_package.go b/model_recycle_bin_package.go index 7bb8987d..0775adc4 100644 --- a/model_recycle_bin_package.go +++ b/model_recycle_bin_package.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_repos_connected_list_200_response.go b/model_repos_connected_list_200_response.go new file mode 100644 index 00000000..55d815f0 --- /dev/null +++ b/model_repos_connected_list_200_response.go @@ -0,0 +1,167 @@ +/* +Cloudsmith API (v1) + +The API to the Cloudsmith Service + +API version: 1.1182.1 +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 ReposConnectedList200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ReposConnectedList200Response{} + +// ReposConnectedList200Response struct for ReposConnectedList200Response +type ReposConnectedList200Response struct { + Results []ConnectedRepository `json:"results"` + AdditionalProperties map[string]interface{} +} + +type _ReposConnectedList200Response ReposConnectedList200Response + +// NewReposConnectedList200Response instantiates a new ReposConnectedList200Response 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 NewReposConnectedList200Response(results []ConnectedRepository) *ReposConnectedList200Response { + this := ReposConnectedList200Response{} + this.Results = results + return &this +} + +// NewReposConnectedList200ResponseWithDefaults instantiates a new ReposConnectedList200Response 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 NewReposConnectedList200ResponseWithDefaults() *ReposConnectedList200Response { + this := ReposConnectedList200Response{} + return &this +} + +// GetResults returns the Results field value +func (o *ReposConnectedList200Response) GetResults() []ConnectedRepository { + if o == nil { + var ret []ConnectedRepository + return ret + } + + return o.Results +} + +// GetResultsOk returns a tuple with the Results field value +// and a boolean to check if the value has been set. +func (o *ReposConnectedList200Response) GetResultsOk() ([]ConnectedRepository, bool) { + if o == nil { + return nil, false + } + return o.Results, true +} + +// SetResults sets field value +func (o *ReposConnectedList200Response) SetResults(v []ConnectedRepository) { + o.Results = v +} + +func (o ReposConnectedList200Response) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ReposConnectedList200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["results"] = o.Results + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ReposConnectedList200Response) 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{ + "results", + } + + 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) + } + } + + varReposConnectedList200Response := _ReposConnectedList200Response{} + + err = json.Unmarshal(data, &varReposConnectedList200Response) + + if err != nil { + return err + } + + *o = ReposConnectedList200Response(varReposConnectedList200Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableReposConnectedList200Response struct { + value *ReposConnectedList200Response + isSet bool +} + +func (v NullableReposConnectedList200Response) Get() *ReposConnectedList200Response { + return v.value +} + +func (v *NullableReposConnectedList200Response) Set(val *ReposConnectedList200Response) { + v.value = val + v.isSet = true +} + +func (v NullableReposConnectedList200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableReposConnectedList200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableReposConnectedList200Response(val *ReposConnectedList200Response) *NullableReposConnectedList200Response { + return &NullableReposConnectedList200Response{value: val, isSet: true} +} + +func (v NullableReposConnectedList200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableReposConnectedList200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_repository.go b/model_repository.go index 2cd5adf9..755c0063 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ @@ -76,6 +76,8 @@ type Repository struct { Namespace *string `json:"namespace,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"` // API endpoint where data about this namespace can be retrieved. NamespaceUrl *string `json:"namespace_url,omitempty"` + // If checked, npm distribution tags from configured upstreams will take precedence over matching local tags. When both upstream and local repositories have the same tag name (e.g., 'latest'), the upstream tag will be used instead of the local one, even if the local repository has a semantically higher version. + NpmUpstreamTagsTakePrecedence *bool `json:"npm_upstream_tags_take_precedence,omitempty"` // When enabled, all pushed (or pulled from upstream) nuget packages and artifacts will be signed using the repository's X.509 RSA certificate. Additionally, the nuget RepositorySignature index will list all of the repository's signing certificates including the ones from configured upstreams. NugetNativeSigningEnabled *bool `json:"nuget_native_signing_enabled,omitempty"` // The number of downloads for packages in the repository. @@ -1205,6 +1207,38 @@ func (o *Repository) SetNamespaceUrl(v string) { o.NamespaceUrl = &v } +// GetNpmUpstreamTagsTakePrecedence returns the NpmUpstreamTagsTakePrecedence field value if set, zero value otherwise. +func (o *Repository) GetNpmUpstreamTagsTakePrecedence() bool { + if o == nil || IsNil(o.NpmUpstreamTagsTakePrecedence) { + var ret bool + return ret + } + return *o.NpmUpstreamTagsTakePrecedence +} + +// GetNpmUpstreamTagsTakePrecedenceOk returns a tuple with the NpmUpstreamTagsTakePrecedence field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Repository) GetNpmUpstreamTagsTakePrecedenceOk() (*bool, bool) { + if o == nil || IsNil(o.NpmUpstreamTagsTakePrecedence) { + return nil, false + } + return o.NpmUpstreamTagsTakePrecedence, true +} + +// HasNpmUpstreamTagsTakePrecedence returns a boolean if a field has been set. +func (o *Repository) HasNpmUpstreamTagsTakePrecedence() bool { + if o != nil && !IsNil(o.NpmUpstreamTagsTakePrecedence) { + return true + } + + return false +} + +// SetNpmUpstreamTagsTakePrecedence gets a reference to the given bool and assigns it to the NpmUpstreamTagsTakePrecedence field. +func (o *Repository) SetNpmUpstreamTagsTakePrecedence(v bool) { + o.NpmUpstreamTagsTakePrecedence = &v +} + // GetNugetNativeSigningEnabled returns the NugetNativeSigningEnabled field value if set, zero value otherwise. func (o *Repository) GetNugetNativeSigningEnabled() bool { if o == nil || IsNil(o.NugetNativeSigningEnabled) { @@ -2605,6 +2639,9 @@ func (o Repository) ToMap() (map[string]interface{}, error) { if !IsNil(o.NamespaceUrl) { toSerialize["namespace_url"] = o.NamespaceUrl } + if !IsNil(o.NpmUpstreamTagsTakePrecedence) { + toSerialize["npm_upstream_tags_take_precedence"] = o.NpmUpstreamTagsTakePrecedence + } if !IsNil(o.NugetNativeSigningEnabled) { toSerialize["nuget_native_signing_enabled"] = o.NugetNativeSigningEnabled } @@ -2798,6 +2835,7 @@ func (o *Repository) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "name") delete(additionalProperties, "namespace") delete(additionalProperties, "namespace_url") + delete(additionalProperties, "npm_upstream_tags_take_precedence") delete(additionalProperties, "nuget_native_signing_enabled") delete(additionalProperties, "num_downloads") delete(additionalProperties, "num_policy_violated_packages") diff --git a/model_repository_audit_log.go b/model_repository_audit_log.go index 2f539a24..8db903dc 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_repository_create.go b/model_repository_create.go index 3d024620..dd937a4e 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ @@ -76,6 +76,8 @@ type RepositoryCreate struct { Namespace *string `json:"namespace,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"` // API endpoint where data about this namespace can be retrieved. NamespaceUrl *string `json:"namespace_url,omitempty"` + // If checked, npm distribution tags from configured upstreams will take precedence over matching local tags. When both upstream and local repositories have the same tag name (e.g., 'latest'), the upstream tag will be used instead of the local one, even if the local repository has a semantically higher version. + NpmUpstreamTagsTakePrecedence *bool `json:"npm_upstream_tags_take_precedence,omitempty"` // When enabled, all pushed (or pulled from upstream) nuget packages and artifacts will be signed using the repository's X.509 RSA certificate. Additionally, the nuget RepositorySignature index will list all of the repository's signing certificates including the ones from configured upstreams. NugetNativeSigningEnabled *bool `json:"nuget_native_signing_enabled,omitempty"` // The number of downloads for packages in the repository. @@ -1209,6 +1211,38 @@ func (o *RepositoryCreate) SetNamespaceUrl(v string) { o.NamespaceUrl = &v } +// GetNpmUpstreamTagsTakePrecedence returns the NpmUpstreamTagsTakePrecedence field value if set, zero value otherwise. +func (o *RepositoryCreate) GetNpmUpstreamTagsTakePrecedence() bool { + if o == nil || IsNil(o.NpmUpstreamTagsTakePrecedence) { + var ret bool + return ret + } + return *o.NpmUpstreamTagsTakePrecedence +} + +// GetNpmUpstreamTagsTakePrecedenceOk returns a tuple with the NpmUpstreamTagsTakePrecedence field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RepositoryCreate) GetNpmUpstreamTagsTakePrecedenceOk() (*bool, bool) { + if o == nil || IsNil(o.NpmUpstreamTagsTakePrecedence) { + return nil, false + } + return o.NpmUpstreamTagsTakePrecedence, true +} + +// HasNpmUpstreamTagsTakePrecedence returns a boolean if a field has been set. +func (o *RepositoryCreate) HasNpmUpstreamTagsTakePrecedence() bool { + if o != nil && !IsNil(o.NpmUpstreamTagsTakePrecedence) { + return true + } + + return false +} + +// SetNpmUpstreamTagsTakePrecedence gets a reference to the given bool and assigns it to the NpmUpstreamTagsTakePrecedence field. +func (o *RepositoryCreate) SetNpmUpstreamTagsTakePrecedence(v bool) { + o.NpmUpstreamTagsTakePrecedence = &v +} + // GetNugetNativeSigningEnabled returns the NugetNativeSigningEnabled field value if set, zero value otherwise. func (o *RepositoryCreate) GetNugetNativeSigningEnabled() bool { if o == nil || IsNil(o.NugetNativeSigningEnabled) { @@ -2609,6 +2643,9 @@ func (o RepositoryCreate) ToMap() (map[string]interface{}, error) { if !IsNil(o.NamespaceUrl) { toSerialize["namespace_url"] = o.NamespaceUrl } + if !IsNil(o.NpmUpstreamTagsTakePrecedence) { + toSerialize["npm_upstream_tags_take_precedence"] = o.NpmUpstreamTagsTakePrecedence + } if !IsNil(o.NugetNativeSigningEnabled) { toSerialize["nuget_native_signing_enabled"] = o.NugetNativeSigningEnabled } @@ -2802,6 +2839,7 @@ func (o *RepositoryCreate) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "name") delete(additionalProperties, "namespace") delete(additionalProperties, "namespace_url") + delete(additionalProperties, "npm_upstream_tags_take_precedence") delete(additionalProperties, "nuget_native_signing_enabled") delete(additionalProperties, "num_downloads") delete(additionalProperties, "num_policy_violated_packages") diff --git a/model_repository_create_request.go b/model_repository_create_request.go index 9a0e5270..bb69b111 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ @@ -61,6 +61,8 @@ type RepositoryCreateRequest struct { MovePackages *string `json:"move_packages,omitempty"` // A descriptive name for the repository. Name string `json:"name" validate:"regexp=^\\\\w[\\\\w \\\\-'\\\\.\\/()]+$"` + // If checked, npm distribution tags from configured upstreams will take precedence over matching local tags. When both upstream and local repositories have the same tag name (e.g., 'latest'), the upstream tag will be used instead of the local one, even if the local repository has a semantically higher version. + NpmUpstreamTagsTakePrecedence *bool `json:"npm_upstream_tags_take_precedence,omitempty"` // When enabled, all pushed (or pulled from upstream) nuget packages and artifacts will be signed using the repository's X.509 RSA certificate. Additionally, the nuget RepositorySignature index will list all of the repository's signing certificates including the ones from configured upstreams. NugetNativeSigningEnabled *bool `json:"nuget_native_signing_enabled,omitempty"` // The SPDX identifier of the open source license. @@ -826,6 +828,38 @@ func (o *RepositoryCreateRequest) SetName(v string) { o.Name = v } +// GetNpmUpstreamTagsTakePrecedence returns the NpmUpstreamTagsTakePrecedence field value if set, zero value otherwise. +func (o *RepositoryCreateRequest) GetNpmUpstreamTagsTakePrecedence() bool { + if o == nil || IsNil(o.NpmUpstreamTagsTakePrecedence) { + var ret bool + return ret + } + return *o.NpmUpstreamTagsTakePrecedence +} + +// GetNpmUpstreamTagsTakePrecedenceOk returns a tuple with the NpmUpstreamTagsTakePrecedence field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RepositoryCreateRequest) GetNpmUpstreamTagsTakePrecedenceOk() (*bool, bool) { + if o == nil || IsNil(o.NpmUpstreamTagsTakePrecedence) { + return nil, false + } + return o.NpmUpstreamTagsTakePrecedence, true +} + +// HasNpmUpstreamTagsTakePrecedence returns a boolean if a field has been set. +func (o *RepositoryCreateRequest) HasNpmUpstreamTagsTakePrecedence() bool { + if o != nil && !IsNil(o.NpmUpstreamTagsTakePrecedence) { + return true + } + + return false +} + +// SetNpmUpstreamTagsTakePrecedence gets a reference to the given bool and assigns it to the NpmUpstreamTagsTakePrecedence field. +func (o *RepositoryCreateRequest) SetNpmUpstreamTagsTakePrecedence(v bool) { + o.NpmUpstreamTagsTakePrecedence = &v +} + // GetNugetNativeSigningEnabled returns the NugetNativeSigningEnabled field value if set, zero value otherwise. func (o *RepositoryCreateRequest) GetNugetNativeSigningEnabled() bool { if o == nil || IsNil(o.NugetNativeSigningEnabled) { @@ -1780,6 +1814,9 @@ func (o RepositoryCreateRequest) ToMap() (map[string]interface{}, error) { toSerialize["move_packages"] = o.MovePackages } toSerialize["name"] = o.Name + if !IsNil(o.NpmUpstreamTagsTakePrecedence) { + toSerialize["npm_upstream_tags_take_precedence"] = o.NpmUpstreamTagsTakePrecedence + } if !IsNil(o.NugetNativeSigningEnabled) { toSerialize["nuget_native_signing_enabled"] = o.NugetNativeSigningEnabled } @@ -1924,6 +1961,7 @@ func (o *RepositoryCreateRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "move_own") delete(additionalProperties, "move_packages") delete(additionalProperties, "name") + delete(additionalProperties, "npm_upstream_tags_take_precedence") delete(additionalProperties, "nuget_native_signing_enabled") delete(additionalProperties, "open_source_license") delete(additionalProperties, "open_source_project_url") diff --git a/model_repository_ecdsa_key.go b/model_repository_ecdsa_key.go index bcbd84f6..0756d8af 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_repository_ecdsa_key_create.go b/model_repository_ecdsa_key_create.go index df054f69..3c4bec6c 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_repository_geo_ip_cidr.go b/model_repository_geo_ip_cidr.go index 3de6ce20..691f4492 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_repository_geo_ip_country_code.go b/model_repository_geo_ip_country_code.go index 0eea4543..7853f444 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_repository_geo_ip_rules.go b/model_repository_geo_ip_rules.go index 83b23e8f..f5d78a35 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_repository_geo_ip_rules_request.go b/model_repository_geo_ip_rules_request.go index dd79cc58..1f7fc07c 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.1137.0 +API version: 1.1182.1 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 3f60e501..697f5bd9 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_repository_geo_ip_status.go b/model_repository_geo_ip_status.go index b80f367e..b59d32cb 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_repository_geo_ip_test_address.go b/model_repository_geo_ip_test_address.go index 0bf43dce..1bab8cab 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.1137.0 +API version: 1.1182.1 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 a11cecb9..32c9316b 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.1137.0 +API version: 1.1182.1 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 b44d75f7..854df1d5 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_repository_gpg_key.go b/model_repository_gpg_key.go index af1d33ef..3ec7c00a 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_repository_gpg_key_create.go b/model_repository_gpg_key_create.go index b182860e..df5ce7c2 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_repository_privilege_dict.go b/model_repository_privilege_dict.go index 10e79bb1..076ee389 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_repository_privilege_input.go b/model_repository_privilege_input.go index 12f1158f..00c509bf 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_repository_privilege_input_request.go b/model_repository_privilege_input_request.go index 4652403b..780526d6 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_repository_privilege_input_request_patch.go b/model_repository_privilege_input_request_patch.go index 3a422c83..38951fad 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_repository_request_patch.go b/model_repository_request_patch.go index a9cbc18d..aa0f994f 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ @@ -60,6 +60,8 @@ type RepositoryRequestPatch struct { MovePackages *string `json:"move_packages,omitempty"` // A descriptive name for the repository. Name *string `json:"name,omitempty" validate:"regexp=^\\\\w[\\\\w \\\\-'\\\\.\\/()]+$"` + // If checked, npm distribution tags from configured upstreams will take precedence over matching local tags. When both upstream and local repositories have the same tag name (e.g., 'latest'), the upstream tag will be used instead of the local one, even if the local repository has a semantically higher version. + NpmUpstreamTagsTakePrecedence *bool `json:"npm_upstream_tags_take_precedence,omitempty"` // When enabled, all pushed (or pulled from upstream) nuget packages and artifacts will be signed using the repository's X.509 RSA certificate. Additionally, the nuget RepositorySignature index will list all of the repository's signing certificates including the ones from configured upstreams. NugetNativeSigningEnabled *bool `json:"nuget_native_signing_enabled,omitempty"` // The SPDX identifier of the open source license. @@ -826,6 +828,38 @@ func (o *RepositoryRequestPatch) SetName(v string) { o.Name = &v } +// GetNpmUpstreamTagsTakePrecedence returns the NpmUpstreamTagsTakePrecedence field value if set, zero value otherwise. +func (o *RepositoryRequestPatch) GetNpmUpstreamTagsTakePrecedence() bool { + if o == nil || IsNil(o.NpmUpstreamTagsTakePrecedence) { + var ret bool + return ret + } + return *o.NpmUpstreamTagsTakePrecedence +} + +// GetNpmUpstreamTagsTakePrecedenceOk returns a tuple with the NpmUpstreamTagsTakePrecedence field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RepositoryRequestPatch) GetNpmUpstreamTagsTakePrecedenceOk() (*bool, bool) { + if o == nil || IsNil(o.NpmUpstreamTagsTakePrecedence) { + return nil, false + } + return o.NpmUpstreamTagsTakePrecedence, true +} + +// HasNpmUpstreamTagsTakePrecedence returns a boolean if a field has been set. +func (o *RepositoryRequestPatch) HasNpmUpstreamTagsTakePrecedence() bool { + if o != nil && !IsNil(o.NpmUpstreamTagsTakePrecedence) { + return true + } + + return false +} + +// SetNpmUpstreamTagsTakePrecedence gets a reference to the given bool and assigns it to the NpmUpstreamTagsTakePrecedence field. +func (o *RepositoryRequestPatch) SetNpmUpstreamTagsTakePrecedence(v bool) { + o.NpmUpstreamTagsTakePrecedence = &v +} + // GetNugetNativeSigningEnabled returns the NugetNativeSigningEnabled field value if set, zero value otherwise. func (o *RepositoryRequestPatch) GetNugetNativeSigningEnabled() bool { if o == nil || IsNil(o.NugetNativeSigningEnabled) { @@ -1750,6 +1784,9 @@ func (o RepositoryRequestPatch) ToMap() (map[string]interface{}, error) { if !IsNil(o.Name) { toSerialize["name"] = o.Name } + if !IsNil(o.NpmUpstreamTagsTakePrecedence) { + toSerialize["npm_upstream_tags_take_precedence"] = o.NpmUpstreamTagsTakePrecedence + } if !IsNil(o.NugetNativeSigningEnabled) { toSerialize["nuget_native_signing_enabled"] = o.NugetNativeSigningEnabled } @@ -1870,6 +1907,7 @@ func (o *RepositoryRequestPatch) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "move_own") delete(additionalProperties, "move_packages") delete(additionalProperties, "name") + delete(additionalProperties, "npm_upstream_tags_take_precedence") delete(additionalProperties, "nuget_native_signing_enabled") delete(additionalProperties, "open_source_license") delete(additionalProperties, "open_source_project_url") diff --git a/model_repository_retention_rules.go b/model_repository_retention_rules.go index 4c09653a..8b882f5a 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_repository_retention_rules_request_patch.go b/model_repository_retention_rules_request_patch.go index cdfac034..e1689d02 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_repository_rsa_key.go b/model_repository_rsa_key.go index a3a46be0..c0c10c55 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_repository_rsa_key_create.go b/model_repository_rsa_key_create.go index a841cdcc..1307527b 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_repository_token.go b/model_repository_token.go index 07dd3cd8..0d58f2e8 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_repository_token_private_broadcasts.go b/model_repository_token_private_broadcasts.go index c747ab77..9a9ad233 100644 --- a/model_repository_token_private_broadcasts.go +++ b/model_repository_token_private_broadcasts.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_repository_token_private_broadcasts_request.go b/model_repository_token_private_broadcasts_request.go index 59c3440f..744cc31e 100644 --- a/model_repository_token_private_broadcasts_request.go +++ b/model_repository_token_private_broadcasts_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_repository_token_refresh.go b/model_repository_token_refresh.go index 6b0bbfc2..7b1ed764 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_repository_token_refresh_request.go b/model_repository_token_refresh_request.go index a6810b12..f24d8a16 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_repository_token_request.go b/model_repository_token_request.go index ed3c4f29..4baba4de 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_repository_token_request_patch.go b/model_repository_token_request_patch.go index 1a21663a..0e983306 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_repository_token_sync.go b/model_repository_token_sync.go index 365a6866..a8096810 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_repository_token_sync_request.go b/model_repository_token_sync_request.go index 1f2216b4..9b39758b 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_repository_transfer_region.go b/model_repository_transfer_region.go index 15292377..158a3783 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_repository_transfer_region_request.go b/model_repository_transfer_region_request.go index a2ba3f7e..b725dd1f 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_repository_webhook.go b/model_repository_webhook.go index 4e99f059..63b073a3 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_repository_webhook_request.go b/model_repository_webhook_request.go index fb0e01d6..ad09a012 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_repository_webhook_request_patch.go b/model_repository_webhook_request_patch.go index 17e2634d..5f8b083e 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_repository_x509_ecdsa_certificate.go b/model_repository_x509_ecdsa_certificate.go index 51e1cdd1..8f794485 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_repository_x509_rsa_certificate.go b/model_repository_x509_rsa_certificate.go index d060c669..680d87c5 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_resources_rate_check.go b/model_resources_rate_check.go index a31b6f85..c38238ed 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_rpm_package_upload.go b/model_rpm_package_upload.go index ded8ca10..667d76a8 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ @@ -55,6 +55,7 @@ type RpmPackageUpload struct { IsCopyable *bool `json:"is_copyable,omitempty"` IsDeleteable *bool `json:"is_deleteable,omitempty"` IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` IsMoveable *bool `json:"is_moveable,omitempty"` IsQuarantinable *bool `json:"is_quarantinable,omitempty"` IsQuarantined *bool `json:"is_quarantined,omitempty"` @@ -1119,6 +1120,38 @@ func (o *RpmPackageUpload) SetIsDownloadable(v bool) { o.IsDownloadable = &v } +// GetIsHidden returns the IsHidden field value if set, zero value otherwise. +func (o *RpmPackageUpload) GetIsHidden() bool { + if o == nil || IsNil(o.IsHidden) { + var ret bool + return ret + } + return *o.IsHidden +} + +// GetIsHiddenOk returns a tuple with the IsHidden field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RpmPackageUpload) GetIsHiddenOk() (*bool, bool) { + if o == nil || IsNil(o.IsHidden) { + return nil, false + } + return o.IsHidden, true +} + +// HasIsHidden returns a boolean if a field has been set. +func (o *RpmPackageUpload) HasIsHidden() bool { + if o != nil && !IsNil(o.IsHidden) { + return true + } + + return false +} + +// SetIsHidden gets a reference to the given bool and assigns it to the IsHidden field. +func (o *RpmPackageUpload) SetIsHidden(v bool) { + o.IsHidden = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *RpmPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3159,6 +3192,9 @@ func (o RpmPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsDownloadable) { toSerialize["is_downloadable"] = o.IsDownloadable } + if !IsNil(o.IsHidden) { + toSerialize["is_hidden"] = o.IsHidden + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3377,6 +3413,7 @@ func (o *RpmPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_copyable") delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") + delete(additionalProperties, "is_hidden") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") diff --git a/model_rpm_package_upload_request.go b/model_rpm_package_upload_request.go index 472d94a7..c77a2f54 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_rpm_upstream.go b/model_rpm_upstream.go index c145d60f..5f6c30a4 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_rpm_upstream_request.go b/model_rpm_upstream_request.go index 2a1d6bb0..cad07022 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_rpm_upstream_request_patch.go b/model_rpm_upstream_request_patch.go index ac428768..6a531100 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_ruby_package_upload.go b/model_ruby_package_upload.go index fa140ffd..d816069e 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ @@ -55,6 +55,7 @@ type RubyPackageUpload struct { IsCopyable *bool `json:"is_copyable,omitempty"` IsDeleteable *bool `json:"is_deleteable,omitempty"` IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` IsMoveable *bool `json:"is_moveable,omitempty"` IsQuarantinable *bool `json:"is_quarantinable,omitempty"` IsQuarantined *bool `json:"is_quarantined,omitempty"` @@ -1119,6 +1120,38 @@ func (o *RubyPackageUpload) SetIsDownloadable(v bool) { o.IsDownloadable = &v } +// GetIsHidden returns the IsHidden field value if set, zero value otherwise. +func (o *RubyPackageUpload) GetIsHidden() bool { + if o == nil || IsNil(o.IsHidden) { + var ret bool + return ret + } + return *o.IsHidden +} + +// GetIsHiddenOk returns a tuple with the IsHidden field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RubyPackageUpload) GetIsHiddenOk() (*bool, bool) { + if o == nil || IsNil(o.IsHidden) { + return nil, false + } + return o.IsHidden, true +} + +// HasIsHidden returns a boolean if a field has been set. +func (o *RubyPackageUpload) HasIsHidden() bool { + if o != nil && !IsNil(o.IsHidden) { + return true + } + + return false +} + +// SetIsHidden gets a reference to the given bool and assigns it to the IsHidden field. +func (o *RubyPackageUpload) SetIsHidden(v bool) { + o.IsHidden = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *RubyPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3159,6 +3192,9 @@ func (o RubyPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsDownloadable) { toSerialize["is_downloadable"] = o.IsDownloadable } + if !IsNil(o.IsHidden) { + toSerialize["is_hidden"] = o.IsHidden + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3377,6 +3413,7 @@ func (o *RubyPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_copyable") delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") + delete(additionalProperties, "is_hidden") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") diff --git a/model_ruby_package_upload_request.go b/model_ruby_package_upload_request.go index f1d744c0..774f8127 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_ruby_upstream.go b/model_ruby_upstream.go index ae0a815a..e2758858 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_ruby_upstream_request.go b/model_ruby_upstream_request.go index 658800de..81deffb5 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_ruby_upstream_request_patch.go b/model_ruby_upstream_request_patch.go index 23046998..79ef157a 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_service.go b/model_service.go index 0ed48620..e78c340f 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_service_request.go b/model_service_request.go index b3abc64a..354d64d7 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_service_request_patch.go b/model_service_request_patch.go index 9d6de5b5..5d52b52f 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_service_teams.go b/model_service_teams.go index 177c4644..7999c160 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ @@ -21,6 +21,8 @@ var _ MappedNullable = &ServiceTeams{} // ServiceTeams struct for ServiceTeams type ServiceTeams struct { + // The name of the team + Name *string `json:"name,omitempty"` // The team role associated with the service Role *string `json:"role,omitempty"` // The teams associated with the service @@ -52,6 +54,38 @@ func NewServiceTeamsWithDefaults() *ServiceTeams { return &this } +// GetName returns the Name field value if set, zero value otherwise. +func (o *ServiceTeams) 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 *ServiceTeams) 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 *ServiceTeams) 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 *ServiceTeams) SetName(v string) { + o.Name = &v +} + // GetRole returns the Role field value if set, zero value otherwise. func (o *ServiceTeams) GetRole() string { if o == nil || IsNil(o.Role) { @@ -118,6 +152,9 @@ func (o ServiceTeams) MarshalJSON() ([]byte, error) { func (o ServiceTeams) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } if !IsNil(o.Role) { toSerialize["role"] = o.Role } @@ -165,6 +202,7 @@ func (o *ServiceTeams) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") delete(additionalProperties, "role") delete(additionalProperties, "slug") o.AdditionalProperties = additionalProperties diff --git a/model_status_basic.go b/model_status_basic.go index 051b08bb..7064e294 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_storage_allocated_limit.go b/model_storage_allocated_limit.go index 096d87ab..3a531f1c 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_storage_allocated_limit_raw.go b/model_storage_allocated_limit_raw.go index c5140c84..9d2b4d4a 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_storage_region.go b/model_storage_region.go index 565c1614..8e122883 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_storage_usage.go b/model_storage_usage.go index 3fe44a35..8b96949c 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_storage_usage_raw.go b/model_storage_usage_raw.go index d93a1316..4fe9f967 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_swift_package_upload.go b/model_swift_package_upload.go index 90b64e6e..e107e336 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ @@ -60,6 +60,7 @@ type SwiftPackageUpload struct { IsCopyable *bool `json:"is_copyable,omitempty"` IsDeleteable *bool `json:"is_deleteable,omitempty"` IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` IsMoveable *bool `json:"is_moveable,omitempty"` IsQuarantinable *bool `json:"is_quarantinable,omitempty"` IsQuarantined *bool `json:"is_quarantined,omitempty"` @@ -1198,6 +1199,38 @@ func (o *SwiftPackageUpload) SetIsDownloadable(v bool) { o.IsDownloadable = &v } +// GetIsHidden returns the IsHidden field value if set, zero value otherwise. +func (o *SwiftPackageUpload) GetIsHidden() bool { + if o == nil || IsNil(o.IsHidden) { + var ret bool + return ret + } + return *o.IsHidden +} + +// GetIsHiddenOk returns a tuple with the IsHidden field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SwiftPackageUpload) GetIsHiddenOk() (*bool, bool) { + if o == nil || IsNil(o.IsHidden) { + return nil, false + } + return o.IsHidden, true +} + +// HasIsHidden returns a boolean if a field has been set. +func (o *SwiftPackageUpload) HasIsHidden() bool { + if o != nil && !IsNil(o.IsHidden) { + return true + } + + return false +} + +// SetIsHidden gets a reference to the given bool and assigns it to the IsHidden field. +func (o *SwiftPackageUpload) SetIsHidden(v bool) { + o.IsHidden = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *SwiftPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3305,6 +3338,9 @@ func (o SwiftPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsDownloadable) { toSerialize["is_downloadable"] = o.IsDownloadable } + if !IsNil(o.IsHidden) { + toSerialize["is_hidden"] = o.IsHidden + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3551,6 +3587,7 @@ func (o *SwiftPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_copyable") delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") + delete(additionalProperties, "is_hidden") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") diff --git a/model_swift_package_upload_request.go b/model_swift_package_upload_request.go index 0f238e4e..d65286da 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_swift_upstream.go b/model_swift_upstream.go index 4aaffe43..59d6aebc 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_swift_upstream_request.go b/model_swift_upstream_request.go index 08111bc7..3be6e64b 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_swift_upstream_request_patch.go b/model_swift_upstream_request_patch.go index 66d5122d..070ae410 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_terraform_package_upload.go b/model_terraform_package_upload.go index 1e1bda96..3ddbae0d 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ @@ -55,6 +55,7 @@ type TerraformPackageUpload struct { IsCopyable *bool `json:"is_copyable,omitempty"` IsDeleteable *bool `json:"is_deleteable,omitempty"` IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` IsMoveable *bool `json:"is_moveable,omitempty"` IsQuarantinable *bool `json:"is_quarantinable,omitempty"` IsQuarantined *bool `json:"is_quarantined,omitempty"` @@ -1119,6 +1120,38 @@ func (o *TerraformPackageUpload) SetIsDownloadable(v bool) { o.IsDownloadable = &v } +// GetIsHidden returns the IsHidden field value if set, zero value otherwise. +func (o *TerraformPackageUpload) GetIsHidden() bool { + if o == nil || IsNil(o.IsHidden) { + var ret bool + return ret + } + return *o.IsHidden +} + +// GetIsHiddenOk returns a tuple with the IsHidden field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TerraformPackageUpload) GetIsHiddenOk() (*bool, bool) { + if o == nil || IsNil(o.IsHidden) { + return nil, false + } + return o.IsHidden, true +} + +// HasIsHidden returns a boolean if a field has been set. +func (o *TerraformPackageUpload) HasIsHidden() bool { + if o != nil && !IsNil(o.IsHidden) { + return true + } + + return false +} + +// SetIsHidden gets a reference to the given bool and assigns it to the IsHidden field. +func (o *TerraformPackageUpload) SetIsHidden(v bool) { + o.IsHidden = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *TerraformPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3159,6 +3192,9 @@ func (o TerraformPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsDownloadable) { toSerialize["is_downloadable"] = o.IsDownloadable } + if !IsNil(o.IsHidden) { + toSerialize["is_hidden"] = o.IsHidden + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3377,6 +3413,7 @@ func (o *TerraformPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_copyable") delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") + delete(additionalProperties, "is_hidden") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") diff --git a/model_terraform_package_upload_request.go b/model_terraform_package_upload_request.go index 08da2bad..20a4e992 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_usage.go b/model_usage.go index 7ed5543b..86fdd69f 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_usage_fieldset.go b/model_usage_fieldset.go index 2e46db4b..05c83792 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_usage_limits.go b/model_usage_limits.go index 4a5c5389..fdef29f1 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_usage_limits_raw.go b/model_usage_limits_raw.go index a07198d9..715ce716 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_usage_raw.go b/model_usage_raw.go index f702cab7..ce2850a9 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_user_auth_token.go b/model_user_auth_token.go index be9e4cec..f1787510 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_user_auth_token_request.go b/model_user_auth_token_request.go index 3890e011..3afa75a5 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_user_authentication_token.go b/model_user_authentication_token.go index 7d89f89b..26b2ed65 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_user_brief.go b/model_user_brief.go index eb806b7f..0980f779 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_user_profile.go b/model_user_profile.go index 68db3486..f3780443 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_user_tokens_list_200_response.go b/model_user_tokens_list_200_response.go index 4806cb93..2fb1ada6 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_vagrant_package_upload.go b/model_vagrant_package_upload.go index 7e5e7a79..ce7ace98 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ @@ -56,6 +56,7 @@ type VagrantPackageUpload struct { IsCopyable *bool `json:"is_copyable,omitempty"` IsDeleteable *bool `json:"is_deleteable,omitempty"` IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` IsMoveable *bool `json:"is_moveable,omitempty"` IsQuarantinable *bool `json:"is_quarantinable,omitempty"` IsQuarantined *bool `json:"is_quarantined,omitempty"` @@ -1125,6 +1126,38 @@ func (o *VagrantPackageUpload) SetIsDownloadable(v bool) { o.IsDownloadable = &v } +// GetIsHidden returns the IsHidden field value if set, zero value otherwise. +func (o *VagrantPackageUpload) GetIsHidden() bool { + if o == nil || IsNil(o.IsHidden) { + var ret bool + return ret + } + return *o.IsHidden +} + +// GetIsHiddenOk returns a tuple with the IsHidden field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VagrantPackageUpload) GetIsHiddenOk() (*bool, bool) { + if o == nil || IsNil(o.IsHidden) { + return nil, false + } + return o.IsHidden, true +} + +// HasIsHidden returns a boolean if a field has been set. +func (o *VagrantPackageUpload) HasIsHidden() bool { + if o != nil && !IsNil(o.IsHidden) { + return true + } + + return false +} + +// SetIsHidden gets a reference to the given bool and assigns it to the IsHidden field. +func (o *VagrantPackageUpload) SetIsHidden(v bool) { + o.IsHidden = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *VagrantPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3151,6 +3184,9 @@ func (o VagrantPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsDownloadable) { toSerialize["is_downloadable"] = o.IsDownloadable } + if !IsNil(o.IsHidden) { + toSerialize["is_hidden"] = o.IsHidden + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3389,6 +3425,7 @@ func (o *VagrantPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_copyable") delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") + delete(additionalProperties, "is_hidden") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") diff --git a/model_vagrant_package_upload_request.go b/model_vagrant_package_upload_request.go index 777ed166..9d18e07a 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_vsx_package_upload.go b/model_vsx_package_upload.go index f2834283..1dbfe532 100644 --- a/model_vsx_package_upload.go +++ b/model_vsx_package_upload.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ @@ -55,6 +55,7 @@ type VsxPackageUpload struct { IsCopyable *bool `json:"is_copyable,omitempty"` IsDeleteable *bool `json:"is_deleteable,omitempty"` IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` IsMoveable *bool `json:"is_moveable,omitempty"` IsQuarantinable *bool `json:"is_quarantinable,omitempty"` IsQuarantined *bool `json:"is_quarantined,omitempty"` @@ -1119,6 +1120,38 @@ func (o *VsxPackageUpload) SetIsDownloadable(v bool) { o.IsDownloadable = &v } +// GetIsHidden returns the IsHidden field value if set, zero value otherwise. +func (o *VsxPackageUpload) GetIsHidden() bool { + if o == nil || IsNil(o.IsHidden) { + var ret bool + return ret + } + return *o.IsHidden +} + +// GetIsHiddenOk returns a tuple with the IsHidden field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VsxPackageUpload) GetIsHiddenOk() (*bool, bool) { + if o == nil || IsNil(o.IsHidden) { + return nil, false + } + return o.IsHidden, true +} + +// HasIsHidden returns a boolean if a field has been set. +func (o *VsxPackageUpload) HasIsHidden() bool { + if o != nil && !IsNil(o.IsHidden) { + return true + } + + return false +} + +// SetIsHidden gets a reference to the given bool and assigns it to the IsHidden field. +func (o *VsxPackageUpload) SetIsHidden(v bool) { + o.IsHidden = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *VsxPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3159,6 +3192,9 @@ func (o VsxPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsDownloadable) { toSerialize["is_downloadable"] = o.IsDownloadable } + if !IsNil(o.IsHidden) { + toSerialize["is_hidden"] = o.IsHidden + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3377,6 +3413,7 @@ func (o *VsxPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_copyable") delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") + delete(additionalProperties, "is_hidden") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") diff --git a/model_vsx_package_upload_request.go b/model_vsx_package_upload_request.go index fed03831..fbb59ed4 100644 --- a/model_vsx_package_upload_request.go +++ b/model_vsx_package_upload_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_vulnerability.go b/model_vulnerability.go index 419d30be..938dbfec 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_vulnerability_scan.go b/model_vulnerability_scan.go index 09075b1e..71ac1c5d 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_vulnerability_scan_results.go b/model_vulnerability_scan_results.go index ea270a8c..d28479ba 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_vulnerability_scan_results_list.go b/model_vulnerability_scan_results_list.go index d12bb9cd..ea5e7244 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_vulnerability_scan_version.go b/model_vulnerability_scan_version.go index 9613c0c7..1bb5f493 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/model_webhook_template.go b/model_webhook_template.go index 3fa3714a..d48f7b84 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.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/response.go b/response.go index 7f327144..be277ede 100644 --- a/response.go +++ b/response.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */ diff --git a/utils.go b/utils.go index 9677ce06..0dedd276 100644 --- a/utils.go +++ b/utils.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1137.0 +API version: 1.1182.1 Contact: support@cloudsmith.io */