feat: Add new gcloud commands, API clients, and third-party libraries across various services.

This commit is contained in:
2026-01-01 20:26:35 +01:00
parent 5e23cbece0
commit a19e592eb7
25221 changed files with 8324611 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
"""Manage Developer Connect resources."""
from googlecloudsdk.calliope import base
from surface.developer_connect import _init_extensions as extensions
@base.ReleaseTracks(base.ReleaseTrack.ALPHA)
@base.Autogenerated
class DeveloperConnectAlpha(extensions.DeveloperConnectAlpha):
"""Manage Developer Connect resources."""
@base.ReleaseTracks(base.ReleaseTrack.BETA)
@base.Autogenerated
class DeveloperConnectBeta(extensions.DeveloperConnectBeta):
"""Manage Developer Connect resources."""
@base.ReleaseTracks(base.ReleaseTrack.GA)
@base.Autogenerated
class DeveloperConnectGa(extensions.DeveloperConnectGa):
"""Manage Developer Connect resources."""

View File

@@ -0,0 +1,34 @@
# -*- coding: utf-8 -*- #
# Copyright 2024 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
"""File to add optional custom code to extend __init__.py."""
from googlecloudsdk.calliope import base
class DeveloperConnectAlpha(base.Group):
"""Optional no-auto-generated code for ALPHA."""
category = base.UNCATEGORIZED_CATEGORY
class DeveloperConnectBeta(base.Group):
"""Optional no-auto-generated code for BETA."""
category = base.UNCATEGORIZED_CATEGORY
class DeveloperConnectGa(base.Group):
"""Optional no-auto-generated code for GA."""
category = base.UNCATEGORIZED_CATEGORY

View File

@@ -0,0 +1,27 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
"""Manage Account Connector resources."""
from googlecloudsdk.calliope import base
from surface.developer_connect.account_connectors import _init_extensions as extensions
@base.ReleaseTracks(base.ReleaseTrack.ALPHA)
@base.Autogenerated
class AccountConnectorsAlpha(extensions.AccountConnectorsAlpha):
"""Manage Account Connector resources."""

View File

@@ -0,0 +1,34 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
"""File to add optional custom code to extend __init__.py."""
from googlecloudsdk.calliope import base
@base.DefaultUniverseOnly
class AccountConnectorsAlpha(base.Group):
"""Optional no-auto-generated code for ALPHA."""
@base.DefaultUniverseOnly
class AccountConnectorsBeta(base.Group):
"""Optional no-auto-generated code for BETA."""
@base.DefaultUniverseOnly
class AccountConnectorsGa(base.Group):
"""Optional no-auto-generated code for GA."""

View File

@@ -0,0 +1,241 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- ALPHA
auto_generated: true
help_text:
brief: Create accountConnectors
description: Create an accountConnector
examples: |-
To create the accountConnector, run:
$ {command}
arguments:
params:
- group:
mutex: true
help_text: |-
Arguments for the account connector config.
params:
- group:
api_field: accountConnector.customOauthConfig
required: false
hidden: true
help_text: |-
Message for a customized OAuth config.
params:
- arg_name: custom-oauth-config-scopes
api_field: accountConnector.customOauthConfig.scopes
required: true
repeated: true
help_text: |-
The scopes to be requested during OAuth.
- arg_name: custom-oauth-config-client-id
api_field: accountConnector.customOauthConfig.clientId
required: true
repeated: false
help_text: |-
The client ID of the OAuth application.
- arg_name: custom-oauth-config-client-secret
api_field: accountConnector.customOauthConfig.clientSecret
required: true
repeated: false
help_text: |-
The client secret of the OAuth application.
It will be provided as plain text, but encrypted and stored in developer
connect. As INPUT_ONLY field, it will not be included in the output.
- arg_name: custom-oauth-config-auth-uri
api_field: accountConnector.customOauthConfig.authUri
required: true
repeated: false
help_text: |-
The OAuth2 authrization server URL.
- arg_name: custom-oauth-config-token-uri
api_field: accountConnector.customOauthConfig.tokenUri
required: true
repeated: false
help_text: |-
The OAuth2 token request URL.
- arg_name: custom-oauth-config-pkce-disabled
api_field: accountConnector.customOauthConfig.pkceDisabled
action: store_true
required: false
type: bool
help_text: |-
Disable PKCE for this OAuth config. PKCE is enabled by default.
default: null
- arg_name: custom-oauth-config-host-uri
api_field: accountConnector.customOauthConfig.hostUri
required: true
repeated: false
help_text: |-
The host URI of the OAuth application.
- arg_name: custom-oauth-config-scm-provider
api_field: accountConnector.customOauthConfig.scmProvider
required: true
help_text: |-
The type of the SCM provider.
choices:
- arg_value: github-enterprise
enum_value: GITHUB_ENTERPRISE
help_text: |-
BYO Account Connector is an instance of GitHub Enterprise.
- arg_value: gitlab-enterprise
enum_value: GITLAB_ENTERPRISE
help_text: |-
BYO Account Connector is an instance of GitLab Enterprise.
- arg_value: bitbucket-data-center
enum_value: BITBUCKET_DATA_CENTER
help_text: |-
BYO Account Connector is an instance of Bitbucket Data Center.
- group:
api_field: accountConnector.providerOauthConfig
required: false
help_text: |-
ProviderOAuthConfig is the OAuth config for a provider.
params:
- group:
mutex: true
help_text: |-
Arguments for the oauth provider id.
params:
- arg_name: provider-oauth-config-system-id
api_field: accountConnector.providerOauthConfig.systemProviderId
required: false
help_text: |-
Developer Connect provided OAuth.
choices:
- arg_value: github
enum_value: GITHUB
help_text: |-
GitHub provider.
Scopes can be found at
https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/scopes-for-oauth-apps#available-scopes
- arg_value: gitlab
enum_value: GITLAB
help_text: |-
GitLab provider.
Scopes can be found at
https://docs.gitlab.com/user/profile/personal_access_tokens/#personal-access-token-scopes
- arg_value: google
enum_value: GOOGLE
help_text: |-
Google provider.
Recommended scopes:
"https://www.googleapis.com/auth/drive.readonly",
"https://www.googleapis.com/auth/documents.readonly"
- arg_value: sentry
enum_value: SENTRY
help_text: |-
Sentry provider.
Scopes can be found at
https://docs.sentry.io/api/permissions/
- arg_value: rovo
enum_value: ROVO
help_text: |-
Rovo provider.
Must select the "rovo" scope.
- arg_value: new-relic
enum_value: NEW_RELIC
help_text: |-
New Relic provider.
No scopes are allowed.
- arg_value: datastax
enum_value: DATASTAX
help_text: |-
Datastax provider.
No scopes are allowed.
- arg_value: dynatrace
enum_value: DYNATRACE
help_text: |-
Dynatrace provider.
- arg_name: provider-oauth-config-scopes
api_field: accountConnector.providerOauthConfig.scopes
required: true
repeated: true
help_text: |-
User selected scopes to apply to the Oauth config
In the event of changing scopes, user records under AccountConnector will
be deleted and users will re-auth again.
- help_text: |-
Identifier. The resource name of the accountConnector, in the format
`projects/{project}/locations/{location}/accountConnectors/{account_connector_id}`.
is_positional: true
is_primary_resource: true
request_id_field: accountConnectorId
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_account_connectors
required: true
- arg_name: annotations
api_field: accountConnector.annotations
required: false
repeated: true
help_text: |-
Allows users to store small amounts of arbitrary data.
spec:
- api_field: key
- api_field: value
- arg_name: etag
api_field: accountConnector.etag
required: false
repeated: false
help_text: |-
This checksum is computed by the server based on the value of other
fields, and may be sent on update and delete requests to ensure the
client has an up-to-date value before proceeding.
- arg_name: labels
api_field: accountConnector.labels
required: false
repeated: true
help_text: |-
Labels as key value pairs
spec:
- api_field: key
- api_field: value
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and the
request times out. If you make the request again with the same request
ID, the server can check if original operation with the same request ID
was received, and if so, will ignore the second request. This prevents
clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
- arg_name: validate-only
api_field: validateOnly
action: store_true
required: false
type: bool
help_text: |-
If set, validate the request, but do not actually post it.
default: null
request:
api_version: v1
collection:
- developerconnect.projects.locations.accountConnectors
async:
collection:
- developerconnect.projects.locations.operations

View File

@@ -0,0 +1,241 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- BETA
auto_generated: true
help_text:
brief: Create accountConnectors
description: Create an accountConnector
examples: |-
To create the accountConnector, run:
$ {command}
arguments:
params:
- group:
mutex: true
help_text: |-
Arguments for the account connector config.
params:
- group:
api_field: accountConnector.customOauthConfig
required: false
hidden: true
help_text: |-
Message for a customized OAuth config.
params:
- arg_name: custom-oauth-config-scopes
api_field: accountConnector.customOauthConfig.scopes
required: true
repeated: true
help_text: |-
The scopes to be requested during OAuth.
- arg_name: custom-oauth-config-client-id
api_field: accountConnector.customOauthConfig.clientId
required: true
repeated: false
help_text: |-
The client ID of the OAuth application.
- arg_name: custom-oauth-config-client-secret
api_field: accountConnector.customOauthConfig.clientSecret
required: true
repeated: false
help_text: |-
The client secret of the OAuth application.
It will be provided as plain text, but encrypted and stored in developer
connect. As INPUT_ONLY field, it will not be included in the output.
- arg_name: custom-oauth-config-auth-uri
api_field: accountConnector.customOauthConfig.authUri
required: true
repeated: false
help_text: |-
The OAuth2 authrization server URL.
- arg_name: custom-oauth-config-token-uri
api_field: accountConnector.customOauthConfig.tokenUri
required: true
repeated: false
help_text: |-
The OAuth2 token request URL.
- arg_name: custom-oauth-config-pkce-disabled
api_field: accountConnector.customOauthConfig.pkceDisabled
action: store_true
required: false
type: bool
help_text: |-
Disable PKCE for this OAuth config. PKCE is enabled by default.
default: null
- arg_name: custom-oauth-config-host-uri
api_field: accountConnector.customOauthConfig.hostUri
required: true
repeated: false
help_text: |-
The host URI of the OAuth application.
- arg_name: custom-oauth-config-scm-provider
api_field: accountConnector.customOauthConfig.scmProvider
required: true
help_text: |-
The type of the SCM provider.
choices:
- arg_value: github-enterprise
enum_value: GITHUB_ENTERPRISE
help_text: |-
BYO Account Connector is an instance of GitHub Enterprise.
- arg_value: gitlab-enterprise
enum_value: GITLAB_ENTERPRISE
help_text: |-
BYO Account Connector is an instance of GitLab Enterprise.
- arg_value: bitbucket-data-center
enum_value: BITBUCKET_DATA_CENTER
help_text: |-
BYO Account Connector is an instance of Bitbucket Data Center.
- group:
api_field: accountConnector.providerOauthConfig
required: false
help_text: |-
ProviderOAuthConfig is the OAuth config for a provider.
params:
- group:
mutex: true
help_text: |-
Arguments for the oauth provider id.
params:
- arg_name: provider-oauth-config-system-id
api_field: accountConnector.providerOauthConfig.systemProviderId
required: false
help_text: |-
Developer Connect provided OAuth.
choices:
- arg_value: github
enum_value: GITHUB
help_text: |-
GitHub provider.
Scopes can be found at
https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/scopes-for-oauth-apps#available-scopes
- arg_value: gitlab
enum_value: GITLAB
help_text: |-
GitLab provider.
Scopes can be found at
https://docs.gitlab.com/user/profile/personal_access_tokens/#personal-access-token-scopes
- arg_value: google
enum_value: GOOGLE
help_text: |-
Google provider.
Recommended scopes:
"https://www.googleapis.com/auth/drive.readonly",
"https://www.googleapis.com/auth/documents.readonly"
- arg_value: sentry
enum_value: SENTRY
help_text: |-
Sentry provider.
Scopes can be found at
https://docs.sentry.io/api/permissions/
- arg_value: rovo
enum_value: ROVO
help_text: |-
Rovo provider.
Must select the "rovo" scope.
- arg_value: new-relic
enum_value: NEW_RELIC
help_text: |-
New Relic provider.
No scopes are allowed.
- arg_value: datastax
enum_value: DATASTAX
help_text: |-
Datastax provider.
No scopes are allowed.
- arg_value: dynatrace
enum_value: DYNATRACE
help_text: |-
Dynatrace provider.
- arg_name: provider-oauth-config-scopes
api_field: accountConnector.providerOauthConfig.scopes
required: true
repeated: true
help_text: |-
User selected scopes to apply to the Oauth config
In the event of changing scopes, user records under AccountConnector will
be deleted and users will re-auth again.
- help_text: |-
Identifier. The resource name of the accountConnector, in the format
`projects/{project}/locations/{location}/accountConnectors/{account_connector_id}`.
is_positional: true
is_primary_resource: true
request_id_field: accountConnectorId
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_account_connectors
required: true
- arg_name: annotations
api_field: accountConnector.annotations
required: false
repeated: true
help_text: |-
Allows users to store small amounts of arbitrary data.
spec:
- api_field: key
- api_field: value
- arg_name: etag
api_field: accountConnector.etag
required: false
repeated: false
help_text: |-
This checksum is computed by the server based on the value of other
fields, and may be sent on update and delete requests to ensure the
client has an up-to-date value before proceeding.
- arg_name: labels
api_field: accountConnector.labels
required: false
repeated: true
help_text: |-
Labels as key value pairs
spec:
- api_field: key
- api_field: value
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and the
request times out. If you make the request again with the same request
ID, the server can check if original operation with the same request ID
was received, and if so, will ignore the second request. This prevents
clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
- arg_name: validate-only
api_field: validateOnly
action: store_true
required: false
type: bool
help_text: |-
If set, validate the request, but do not actually post it.
default: null
request:
api_version: v1
collection:
- developerconnect.projects.locations.accountConnectors
async:
collection:
- developerconnect.projects.locations.operations

View File

@@ -0,0 +1,241 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- GA
auto_generated: true
help_text:
brief: Create accountConnectors
description: Create an accountConnector
examples: |-
To create the accountConnector, run:
$ {command}
arguments:
params:
- group:
mutex: true
help_text: |-
Arguments for the account connector config.
params:
- group:
api_field: accountConnector.customOauthConfig
required: false
hidden: true
help_text: |-
Message for a customized OAuth config.
params:
- arg_name: custom-oauth-config-scopes
api_field: accountConnector.customOauthConfig.scopes
required: true
repeated: true
help_text: |-
The scopes to be requested during OAuth.
- arg_name: custom-oauth-config-client-id
api_field: accountConnector.customOauthConfig.clientId
required: true
repeated: false
help_text: |-
The client ID of the OAuth application.
- arg_name: custom-oauth-config-client-secret
api_field: accountConnector.customOauthConfig.clientSecret
required: true
repeated: false
help_text: |-
The client secret of the OAuth application.
It will be provided as plain text, but encrypted and stored in developer
connect. As INPUT_ONLY field, it will not be included in the output.
- arg_name: custom-oauth-config-auth-uri
api_field: accountConnector.customOauthConfig.authUri
required: true
repeated: false
help_text: |-
The OAuth2 authrization server URL.
- arg_name: custom-oauth-config-token-uri
api_field: accountConnector.customOauthConfig.tokenUri
required: true
repeated: false
help_text: |-
The OAuth2 token request URL.
- arg_name: custom-oauth-config-pkce-disabled
api_field: accountConnector.customOauthConfig.pkceDisabled
action: store_true
required: false
type: bool
help_text: |-
Disable PKCE for this OAuth config. PKCE is enabled by default.
default: null
- arg_name: custom-oauth-config-host-uri
api_field: accountConnector.customOauthConfig.hostUri
required: true
repeated: false
help_text: |-
The host URI of the OAuth application.
- arg_name: custom-oauth-config-scm-provider
api_field: accountConnector.customOauthConfig.scmProvider
required: true
help_text: |-
The type of the SCM provider.
choices:
- arg_value: github-enterprise
enum_value: GITHUB_ENTERPRISE
help_text: |-
BYO Account Connector is an instance of GitHub Enterprise.
- arg_value: gitlab-enterprise
enum_value: GITLAB_ENTERPRISE
help_text: |-
BYO Account Connector is an instance of GitLab Enterprise.
- arg_value: bitbucket-data-center
enum_value: BITBUCKET_DATA_CENTER
help_text: |-
BYO Account Connector is an instance of Bitbucket Data Center.
- group:
api_field: accountConnector.providerOauthConfig
required: false
help_text: |-
ProviderOAuthConfig is the OAuth config for a provider.
params:
- group:
mutex: true
help_text: |-
Arguments for the oauth provider id.
params:
- arg_name: provider-oauth-config-system-id
api_field: accountConnector.providerOauthConfig.systemProviderId
required: false
help_text: |-
Developer Connect provided OAuth.
choices:
- arg_value: github
enum_value: GITHUB
help_text: |-
GitHub provider.
Scopes can be found at
https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/scopes-for-oauth-apps#available-scopes
- arg_value: gitlab
enum_value: GITLAB
help_text: |-
GitLab provider.
Scopes can be found at
https://docs.gitlab.com/user/profile/personal_access_tokens/#personal-access-token-scopes
- arg_value: google
enum_value: GOOGLE
help_text: |-
Google provider.
Recommended scopes:
"https://www.googleapis.com/auth/drive.readonly",
"https://www.googleapis.com/auth/documents.readonly"
- arg_value: sentry
enum_value: SENTRY
help_text: |-
Sentry provider.
Scopes can be found at
https://docs.sentry.io/api/permissions/
- arg_value: rovo
enum_value: ROVO
help_text: |-
Rovo provider.
Must select the "rovo" scope.
- arg_value: new-relic
enum_value: NEW_RELIC
help_text: |-
New Relic provider.
No scopes are allowed.
- arg_value: datastax
enum_value: DATASTAX
help_text: |-
Datastax provider.
No scopes are allowed.
- arg_value: dynatrace
enum_value: DYNATRACE
help_text: |-
Dynatrace provider.
- arg_name: provider-oauth-config-scopes
api_field: accountConnector.providerOauthConfig.scopes
required: true
repeated: true
help_text: |-
User selected scopes to apply to the Oauth config
In the event of changing scopes, user records under AccountConnector will
be deleted and users will re-auth again.
- help_text: |-
Identifier. The resource name of the accountConnector, in the format
`projects/{project}/locations/{location}/accountConnectors/{account_connector_id}`.
is_positional: true
is_primary_resource: true
request_id_field: accountConnectorId
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_account_connectors
required: true
- arg_name: annotations
api_field: accountConnector.annotations
required: false
repeated: true
help_text: |-
Allows users to store small amounts of arbitrary data.
spec:
- api_field: key
- api_field: value
- arg_name: etag
api_field: accountConnector.etag
required: false
repeated: false
help_text: |-
This checksum is computed by the server based on the value of other
fields, and may be sent on update and delete requests to ensure the
client has an up-to-date value before proceeding.
- arg_name: labels
api_field: accountConnector.labels
required: false
repeated: true
help_text: |-
Labels as key value pairs
spec:
- api_field: key
- api_field: value
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and the
request times out. If you make the request again with the same request
ID, the server can check if original operation with the same request ID
was received, and if so, will ignore the second request. This prevents
clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
- arg_name: validate-only
api_field: validateOnly
action: store_true
required: false
type: bool
help_text: |-
If set, validate the request, but do not actually post it.
default: null
request:
api_version: v1
collection:
- developerconnect.projects.locations.accountConnectors
async:
collection:
- developerconnect.projects.locations.operations

View File

@@ -0,0 +1,87 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- ALPHA
auto_generated: true
help_text:
brief: Delete accountConnectors
description: Delete an accountConnector
examples: |-
To delete the accountConnector, run:
$ {command}
arguments:
params:
- help_text: |-
Name of the resource
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_account_connectors
required: true
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes after the first request.
For example, consider a situation where you make an initial request and the
request times out. If you make the request again with the same request
ID, the server can check if original operation with the same request ID
was received, and if so, will ignore the second request. This prevents
clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
- arg_name: validate-only
api_field: validateOnly
action: store_true
required: false
type: bool
help_text: |-
If set, validate the request, but do not actually post it.
default: null
- arg_name: etag
api_field: etag
required: false
repeated: false
help_text: |-
The current etag of the AccountConnectorn.
If an etag is provided and does not match the current etag of the
AccountConnector, deletion will be blocked and an ABORTED error will be
returned.
- arg_name: force
api_field: force
action: store_true
required: false
type: bool
help_text: |-
If set to true, any Users from this AccountConnector will also
be deleted. (Otherwise, the request will only work if the AccountConnector
has no Users.)
default: null
request:
api_version: v1
collection:
- developerconnect.projects.locations.accountConnectors
async:
collection:
- developerconnect.projects.locations.operations

View File

@@ -0,0 +1,87 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- BETA
auto_generated: true
help_text:
brief: Delete accountConnectors
description: Delete an accountConnector
examples: |-
To delete the accountConnector, run:
$ {command}
arguments:
params:
- help_text: |-
Name of the resource
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_account_connectors
required: true
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes after the first request.
For example, consider a situation where you make an initial request and the
request times out. If you make the request again with the same request
ID, the server can check if original operation with the same request ID
was received, and if so, will ignore the second request. This prevents
clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
- arg_name: validate-only
api_field: validateOnly
action: store_true
required: false
type: bool
help_text: |-
If set, validate the request, but do not actually post it.
default: null
- arg_name: etag
api_field: etag
required: false
repeated: false
help_text: |-
The current etag of the AccountConnectorn.
If an etag is provided and does not match the current etag of the
AccountConnector, deletion will be blocked and an ABORTED error will be
returned.
- arg_name: force
api_field: force
action: store_true
required: false
type: bool
help_text: |-
If set to true, any Users from this AccountConnector will also
be deleted. (Otherwise, the request will only work if the AccountConnector
has no Users.)
default: null
request:
api_version: v1
collection:
- developerconnect.projects.locations.accountConnectors
async:
collection:
- developerconnect.projects.locations.operations

View File

@@ -0,0 +1,87 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- GA
auto_generated: true
help_text:
brief: Delete accountConnectors
description: Delete an accountConnector
examples: |-
To delete the accountConnector, run:
$ {command}
arguments:
params:
- help_text: |-
Name of the resource
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_account_connectors
required: true
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes after the first request.
For example, consider a situation where you make an initial request and the
request times out. If you make the request again with the same request
ID, the server can check if original operation with the same request ID
was received, and if so, will ignore the second request. This prevents
clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
- arg_name: validate-only
api_field: validateOnly
action: store_true
required: false
type: bool
help_text: |-
If set, validate the request, but do not actually post it.
default: null
- arg_name: etag
api_field: etag
required: false
repeated: false
help_text: |-
The current etag of the AccountConnectorn.
If an etag is provided and does not match the current etag of the
AccountConnector, deletion will be blocked and an ABORTED error will be
returned.
- arg_name: force
api_field: force
action: store_true
required: false
type: bool
help_text: |-
If set to true, any Users from this AccountConnector will also
be deleted. (Otherwise, the request will only work if the AccountConnector
has no Users.)
default: null
request:
api_version: v1
collection:
- developerconnect.projects.locations.accountConnectors
async:
collection:
- developerconnect.projects.locations.operations

View File

@@ -0,0 +1,39 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- ALPHA
auto_generated: true
help_text:
brief: Describe accountConnectors
description: Describe an accountConnector
examples: |-
To describe the accountConnector, run:
$ {command}
arguments:
params:
- help_text: |-
Name of the resource
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_account_connectors
required: true
request:
api_version: v1
collection:
- developerconnect.projects.locations.accountConnectors

View File

@@ -0,0 +1,39 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- BETA
auto_generated: true
help_text:
brief: Describe accountConnectors
description: Describe an accountConnector
examples: |-
To describe the accountConnector, run:
$ {command}
arguments:
params:
- help_text: |-
Name of the resource
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_account_connectors
required: true
request:
api_version: v1
collection:
- developerconnect.projects.locations.accountConnectors

View File

@@ -0,0 +1,39 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- GA
auto_generated: true
help_text:
brief: Describe accountConnectors
description: Describe an accountConnector
examples: |-
To describe the accountConnector, run:
$ {command}
arguments:
params:
- help_text: |-
Name of the resource
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_account_connectors
required: true
request:
api_version: v1
collection:
- developerconnect.projects.locations.accountConnectors

View File

@@ -0,0 +1,41 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- ALPHA
auto_generated: true
help_text:
brief: List accountConnectors
description: List accountConnectors
examples: |-
To list all accountConnectors, run:
$ {command}
arguments:
params:
- help_text: |-
Parent value for ListAccountConnectorsRequest
is_positional: false
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations
required: true
request:
api_version: v1
collection:
- developerconnect.projects.locations.accountConnectors
response:
id_field: name

View File

@@ -0,0 +1,41 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- BETA
auto_generated: true
help_text:
brief: List accountConnectors
description: List accountConnectors
examples: |-
To list all accountConnectors, run:
$ {command}
arguments:
params:
- help_text: |-
Parent value for ListAccountConnectorsRequest
is_positional: false
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations
required: true
request:
api_version: v1
collection:
- developerconnect.projects.locations.accountConnectors
response:
id_field: name

View File

@@ -0,0 +1,41 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- GA
auto_generated: true
help_text:
brief: List accountConnectors
description: List accountConnectors
examples: |-
To list all accountConnectors, run:
$ {command}
arguments:
params:
- help_text: |-
Parent value for ListAccountConnectorsRequest
is_positional: false
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations
required: true
request:
api_version: v1
collection:
- developerconnect.projects.locations.accountConnectors
response:
id_field: name

View File

@@ -0,0 +1,192 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- ALPHA
auto_generated: true
help_text:
brief: Update accountConnectors
description: Update an accountConnector
examples: |-
To update the accountConnector, run:
$ {command}
arguments:
params:
- group:
mutex: true
help_text: |-
Arguments for the account connector config.
params:
- group:
api_field: accountConnector.customOauthConfig
arg_name: custom-oauth-config
clearable: true
required: false
hidden: true
help_text: |-
Message for a customized OAuth config.
params:
- arg_name: custom-oauth-config-scopes
api_field: accountConnector.customOauthConfig.scopes
required: false
repeated: true
help_text: |-
The scopes to be requested during OAuth.
- arg_name: custom-oauth-config-client-id
api_field: accountConnector.customOauthConfig.clientId
required: false
repeated: false
help_text: |-
The client ID of the OAuth application.
- arg_name: custom-oauth-config-client-secret
api_field: accountConnector.customOauthConfig.clientSecret
required: false
repeated: false
help_text: |-
The client secret of the OAuth application.
It will be provided as plain text, but encrypted and stored in developer
connect. As INPUT_ONLY field, it will not be included in the output.
- arg_name: custom-oauth-config-pkce-disabled
api_field: accountConnector.customOauthConfig.pkceDisabled
action: store_true_false
required: false
type: bool
help_text: |-
Disable PKCE for this OAuth config. PKCE is enabled by default.
- arg_name: custom-oauth-config-host-uri
api_field: accountConnector.customOauthConfig.hostUri
required: false
repeated: false
help_text: |-
The host URI of the OAuth application.
- arg_name: custom-oauth-config-scm-provider
api_field: accountConnector.customOauthConfig.scmProvider
required: false
help_text: |-
The type of the SCM provider.
choices:
- arg_value: github-enterprise
enum_value: GITHUB_ENTERPRISE
help_text: |-
BYO Account Connector is an instance of GitHub Enterprise.
- arg_value: gitlab-enterprise
enum_value: GITLAB_ENTERPRISE
help_text: |-
BYO Account Connector is an instance of GitLab Enterprise.
- arg_value: bitbucket-data-center
enum_value: BITBUCKET_DATA_CENTER
help_text: |-
BYO Account Connector is an instance of Bitbucket Data Center.
- group:
api_field: accountConnector.providerOauthConfig
arg_name: provider-oauth-config
clearable: true
required: false
help_text: |-
ProviderOAuthConfig is the OAuth config for a provider.
params:
- arg_name: provider-oauth-config-scopes
api_field: accountConnector.providerOauthConfig.scopes
required: false
repeated: true
help_text: |-
User selected scopes to apply to the Oauth config
In the event of changing scopes, user records under AccountConnector will
be deleted and users will re-auth again.
- help_text: |-
Identifier. The resource name of the accountConnector, in the format
`projects/{project}/locations/{location}/accountConnectors/{account_connector_id}`.
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_account_connectors
required: true
- arg_name: annotations
api_field: accountConnector.annotations
required: false
repeated: true
help_text: |-
Allows users to store small amounts of arbitrary data.
clearable: true
spec:
- api_field: key
- api_field: value
- arg_name: etag
api_field: accountConnector.etag
required: false
repeated: false
help_text: |-
This checksum is computed by the server based on the value of other
fields, and may be sent on update and delete requests to ensure the
client has an up-to-date value before proceeding.
- arg_name: labels
api_field: accountConnector.labels
required: false
repeated: true
help_text: |-
Labels as key value pairs
clearable: true
spec:
- api_field: key
- api_field: value
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and the
request times out. If you make the request again with the same request
ID, the server can check if original operation with the same request ID
was received, and if so, will ignore the second request. This prevents
clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
- arg_name: allow-missing
api_field: allowMissing
action: store_true_false
required: false
type: bool
help_text: |-
If set to true, and the accountConnector is not found a new
accountConnector will be created. In this situation `update_mask` is
ignored. The creation will succeed only if the input accountConnector has
all the necessary
- arg_name: validate-only
api_field: validateOnly
action: store_true_false
required: false
type: bool
help_text: |-
If set, validate the request, but do not actually post it.
request:
api_version: v1
collection:
- developerconnect.projects.locations.accountConnectors
static_fields:
updateMask: '*'
async:
collection:
- developerconnect.projects.locations.operations
update:
read_modify_update: true
disable_auto_field_mask: true

View File

@@ -0,0 +1,192 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- BETA
auto_generated: true
help_text:
brief: Update accountConnectors
description: Update an accountConnector
examples: |-
To update the accountConnector, run:
$ {command}
arguments:
params:
- group:
mutex: true
help_text: |-
Arguments for the account connector config.
params:
- group:
api_field: accountConnector.customOauthConfig
arg_name: custom-oauth-config
clearable: true
required: false
hidden: true
help_text: |-
Message for a customized OAuth config.
params:
- arg_name: custom-oauth-config-scopes
api_field: accountConnector.customOauthConfig.scopes
required: false
repeated: true
help_text: |-
The scopes to be requested during OAuth.
- arg_name: custom-oauth-config-client-id
api_field: accountConnector.customOauthConfig.clientId
required: false
repeated: false
help_text: |-
The client ID of the OAuth application.
- arg_name: custom-oauth-config-client-secret
api_field: accountConnector.customOauthConfig.clientSecret
required: false
repeated: false
help_text: |-
The client secret of the OAuth application.
It will be provided as plain text, but encrypted and stored in developer
connect. As INPUT_ONLY field, it will not be included in the output.
- arg_name: custom-oauth-config-pkce-disabled
api_field: accountConnector.customOauthConfig.pkceDisabled
action: store_true_false
required: false
type: bool
help_text: |-
Disable PKCE for this OAuth config. PKCE is enabled by default.
- arg_name: custom-oauth-config-host-uri
api_field: accountConnector.customOauthConfig.hostUri
required: false
repeated: false
help_text: |-
The host URI of the OAuth application.
- arg_name: custom-oauth-config-scm-provider
api_field: accountConnector.customOauthConfig.scmProvider
required: false
help_text: |-
The type of the SCM provider.
choices:
- arg_value: github-enterprise
enum_value: GITHUB_ENTERPRISE
help_text: |-
BYO Account Connector is an instance of GitHub Enterprise.
- arg_value: gitlab-enterprise
enum_value: GITLAB_ENTERPRISE
help_text: |-
BYO Account Connector is an instance of GitLab Enterprise.
- arg_value: bitbucket-data-center
enum_value: BITBUCKET_DATA_CENTER
help_text: |-
BYO Account Connector is an instance of Bitbucket Data Center.
- group:
api_field: accountConnector.providerOauthConfig
arg_name: provider-oauth-config
clearable: true
required: false
help_text: |-
ProviderOAuthConfig is the OAuth config for a provider.
params:
- arg_name: provider-oauth-config-scopes
api_field: accountConnector.providerOauthConfig.scopes
required: false
repeated: true
help_text: |-
User selected scopes to apply to the Oauth config
In the event of changing scopes, user records under AccountConnector will
be deleted and users will re-auth again.
- help_text: |-
Identifier. The resource name of the accountConnector, in the format
`projects/{project}/locations/{location}/accountConnectors/{account_connector_id}`.
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_account_connectors
required: true
- arg_name: annotations
api_field: accountConnector.annotations
required: false
repeated: true
help_text: |-
Allows users to store small amounts of arbitrary data.
clearable: true
spec:
- api_field: key
- api_field: value
- arg_name: etag
api_field: accountConnector.etag
required: false
repeated: false
help_text: |-
This checksum is computed by the server based on the value of other
fields, and may be sent on update and delete requests to ensure the
client has an up-to-date value before proceeding.
- arg_name: labels
api_field: accountConnector.labels
required: false
repeated: true
help_text: |-
Labels as key value pairs
clearable: true
spec:
- api_field: key
- api_field: value
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and the
request times out. If you make the request again with the same request
ID, the server can check if original operation with the same request ID
was received, and if so, will ignore the second request. This prevents
clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
- arg_name: allow-missing
api_field: allowMissing
action: store_true_false
required: false
type: bool
help_text: |-
If set to true, and the accountConnector is not found a new
accountConnector will be created. In this situation `update_mask` is
ignored. The creation will succeed only if the input accountConnector has
all the necessary
- arg_name: validate-only
api_field: validateOnly
action: store_true_false
required: false
type: bool
help_text: |-
If set, validate the request, but do not actually post it.
request:
api_version: v1
collection:
- developerconnect.projects.locations.accountConnectors
static_fields:
updateMask: '*'
async:
collection:
- developerconnect.projects.locations.operations
update:
read_modify_update: true
disable_auto_field_mask: true

View File

@@ -0,0 +1,192 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- GA
auto_generated: true
help_text:
brief: Update accountConnectors
description: Update an accountConnector
examples: |-
To update the accountConnector, run:
$ {command}
arguments:
params:
- group:
mutex: true
help_text: |-
Arguments for the account connector config.
params:
- group:
api_field: accountConnector.customOauthConfig
arg_name: custom-oauth-config
clearable: true
required: false
hidden: true
help_text: |-
Message for a customized OAuth config.
params:
- arg_name: custom-oauth-config-scopes
api_field: accountConnector.customOauthConfig.scopes
required: false
repeated: true
help_text: |-
The scopes to be requested during OAuth.
- arg_name: custom-oauth-config-client-id
api_field: accountConnector.customOauthConfig.clientId
required: false
repeated: false
help_text: |-
The client ID of the OAuth application.
- arg_name: custom-oauth-config-client-secret
api_field: accountConnector.customOauthConfig.clientSecret
required: false
repeated: false
help_text: |-
The client secret of the OAuth application.
It will be provided as plain text, but encrypted and stored in developer
connect. As INPUT_ONLY field, it will not be included in the output.
- arg_name: custom-oauth-config-pkce-disabled
api_field: accountConnector.customOauthConfig.pkceDisabled
action: store_true_false
required: false
type: bool
help_text: |-
Disable PKCE for this OAuth config. PKCE is enabled by default.
- arg_name: custom-oauth-config-host-uri
api_field: accountConnector.customOauthConfig.hostUri
required: false
repeated: false
help_text: |-
The host URI of the OAuth application.
- arg_name: custom-oauth-config-scm-provider
api_field: accountConnector.customOauthConfig.scmProvider
required: false
help_text: |-
The type of the SCM provider.
choices:
- arg_value: github-enterprise
enum_value: GITHUB_ENTERPRISE
help_text: |-
BYO Account Connector is an instance of GitHub Enterprise.
- arg_value: gitlab-enterprise
enum_value: GITLAB_ENTERPRISE
help_text: |-
BYO Account Connector is an instance of GitLab Enterprise.
- arg_value: bitbucket-data-center
enum_value: BITBUCKET_DATA_CENTER
help_text: |-
BYO Account Connector is an instance of Bitbucket Data Center.
- group:
api_field: accountConnector.providerOauthConfig
arg_name: provider-oauth-config
clearable: true
required: false
help_text: |-
ProviderOAuthConfig is the OAuth config for a provider.
params:
- arg_name: provider-oauth-config-scopes
api_field: accountConnector.providerOauthConfig.scopes
required: false
repeated: true
help_text: |-
User selected scopes to apply to the Oauth config
In the event of changing scopes, user records under AccountConnector will
be deleted and users will re-auth again.
- help_text: |-
Identifier. The resource name of the accountConnector, in the format
`projects/{project}/locations/{location}/accountConnectors/{account_connector_id}`.
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_account_connectors
required: true
- arg_name: annotations
api_field: accountConnector.annotations
required: false
repeated: true
help_text: |-
Allows users to store small amounts of arbitrary data.
clearable: true
spec:
- api_field: key
- api_field: value
- arg_name: etag
api_field: accountConnector.etag
required: false
repeated: false
help_text: |-
This checksum is computed by the server based on the value of other
fields, and may be sent on update and delete requests to ensure the
client has an up-to-date value before proceeding.
- arg_name: labels
api_field: accountConnector.labels
required: false
repeated: true
help_text: |-
Labels as key value pairs
clearable: true
spec:
- api_field: key
- api_field: value
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and the
request times out. If you make the request again with the same request
ID, the server can check if original operation with the same request ID
was received, and if so, will ignore the second request. This prevents
clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
- arg_name: allow-missing
api_field: allowMissing
action: store_true_false
required: false
type: bool
help_text: |-
If set to true, and the accountConnector is not found a new
accountConnector will be created. In this situation `update_mask` is
ignored. The creation will succeed only if the input accountConnector has
all the necessary
- arg_name: validate-only
api_field: validateOnly
action: store_true_false
required: false
type: bool
help_text: |-
If set, validate the request, but do not actually post it.
request:
api_version: v1
collection:
- developerconnect.projects.locations.accountConnectors
static_fields:
updateMask: '*'
async:
collection:
- developerconnect.projects.locations.operations
update:
read_modify_update: true
disable_auto_field_mask: true

View File

@@ -0,0 +1,18 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
_PARTIALS_: true

View File

@@ -0,0 +1,18 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
_PARTIALS_: true

View File

@@ -0,0 +1,18 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
_PARTIALS_: true

View File

@@ -0,0 +1,18 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
_PARTIALS_: true

View File

@@ -0,0 +1,18 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
_PARTIALS_: true

View File

@@ -0,0 +1,39 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
"""Manage connection resources."""
from googlecloudsdk.calliope import base
from surface.developer_connect.connections import _init_extensions as extensions
@base.ReleaseTracks(base.ReleaseTrack.ALPHA)
@base.Autogenerated
class ConnectionsAlpha(extensions.ConnectionsAlpha):
"""Manage connection resources."""
@base.ReleaseTracks(base.ReleaseTrack.BETA)
@base.Autogenerated
class ConnectionsBeta(extensions.ConnectionsBeta):
"""Manage connection resources."""
@base.ReleaseTracks(base.ReleaseTrack.GA)
@base.Autogenerated
class ConnectionsGa(extensions.ConnectionsGa):
"""Manage connection resources."""

View File

@@ -0,0 +1,31 @@
# -*- coding: utf-8 -*- #
# Copyright 2024 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
"""File to add optional custom code to extend __init__.py."""
from googlecloudsdk.calliope import base
class ConnectionsAlpha(base.Group):
"""Optional no-auto-generated code for ALPHA."""
class ConnectionsBeta(base.Group):
"""Optional no-auto-generated code for BETA."""
class ConnectionsGa(base.Group):
"""Optional no-auto-generated code for GA."""

View File

@@ -0,0 +1,673 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- ALPHA
auto_generated: true
help_text:
brief: Create a connection resource
description: |
Create a connection resource.
examples: |-
To create a GitHub connection named `my-connection` in `us-central1` run:
$ {command} my-connection --github-config-app=developer-connect --github-config-authorizer-credential-oauth-token-secret-version=projects/my-project/secrets/my-oauth-token/versions/1 --github-config-app-installation-id=12345 --location=us-central1
arguments:
params:
- group:
mutex: true
help_text: |-
Arguments for the connection config.
params:
- group:
api_field: connection.githubConfig
required: false
help_text: |-
Configuration for connections to github.com.
params:
- arg_name: github-config-app
api_field: connection.githubConfig.githubApp
required: true
help_text: |-
The GitHub Application that was installed to the GitHub user or
organization.
choices:
- arg_value: developer-connect
enum_value: DEVELOPER_CONNECT
help_text: |-
The Developer Connect GitHub Application.
- arg_value: firebase
enum_value: FIREBASE
help_text: |-
The Firebase GitHub Application.
- arg_value: gemini-code-assist
enum_value: GEMINI_CODE_ASSIST
help_text: |-
The Gemini Code Assist Application.
- group:
api_field: connection.githubConfig.authorizerCredential
required: false
help_text: |-
Represents an OAuth token of the account that authorized the Connection,
and associated metadata.
params:
- arg_name: github-config-authorizer-credential-oauth-token-secret-version
help_text: |-
A SecretManager resource containing the OAuth token that authorizes
the connection. Format: `projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.githubConfig.authorizerCredential.oauthTokenSecretVersion: '{__relative_name__}'
required: true
- arg_name: github-config-app-installation-id
api_field: connection.githubConfig.appInstallationId
required: false
repeated: false
type: long
help_text: |-
GitHub App installation id.
- group:
api_field: connection.githubEnterpriseConfig
required: false
help_text: |-
Configuration for connections to an instance of GitHub Enterprise.
params:
- arg_name: github-enterprise-config-host-uri
api_field: connection.githubEnterpriseConfig.hostUri
required: true
repeated: false
help_text: |-
The URI of the GitHub Enterprise host this connection is for.
- arg_name: github-enterprise-config-app-id
api_field: connection.githubEnterpriseConfig.appId
required: false
repeated: false
type: long
help_text: |-
ID of the GitHub App created from the manifest.
- arg_name: github-enterprise-config-private-key-secret-version
help_text: |-
SecretManager resource containing the private key of the GitHub App,
formatted as `projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.githubEnterpriseConfig.privateKeySecretVersion: '{__relative_name__}'
required: false
- arg_name: github-enterprise-config-webhook-secret-version
help_text: |-
SecretManager resource containing the webhook secret of the GitHub App,
formatted as `projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.githubEnterpriseConfig.webhookSecretSecretVersion: '{__relative_name__}'
required: false
- arg_name: github-enterprise-config-app-installation-id
api_field: connection.githubEnterpriseConfig.appInstallationId
required: false
repeated: false
type: long
help_text: |-
ID of the installation of the GitHub App.
- group:
api_field: connection.githubEnterpriseConfig.serviceDirectoryConfig
required: false
help_text: |-
ServiceDirectoryConfig represents Service Directory configuration for a
connection.
params:
- arg_name: github-enterprise-config-service-directory
help_text: |-
The Service Directory service name.
Format:
projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_namespaces_services
resource_method_params:
connection.githubEnterpriseConfig.serviceDirectoryConfig.service: '{__relative_name__}'
required: true
- arg_name: github-enterprise-config-ssl-ca-certificate
api_field: connection.githubEnterpriseConfig.sslCaCertificate
required: false
repeated: false
help_text: |-
SSL certificate to use for requests to GitHub Enterprise.
- group:
api_field: connection.gitlabConfig
required: false
help_text: |-
Configuration for connections to gitlab.com.
params:
- arg_name: gitlab-config-webhook-secret-version
help_text: |-
SecretManager resource containing the webhook secret of a GitLab project,
formatted as `projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location). This is used to validate webhooks.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.gitlabConfig.webhookSecretSecretVersion: '{__relative_name__}'
required: true
- group:
api_field: connection.gitlabConfig.readAuthorizerCredential
required: true
help_text: |-
Represents a personal access token that authorized the Connection,
and associated metadata.
params:
- arg_name: gitlab-config-read-authorizer-credential-user-token-secret-version
help_text: |-
A SecretManager resource containing the user token that authorizes
the Developer Connect connection. Format:
`projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.gitlabConfig.readAuthorizerCredential.userTokenSecretVersion: '{__relative_name__}'
required: true
- group:
api_field: connection.gitlabConfig.authorizerCredential
required: true
help_text: |-
Represents a personal access token that authorized the Connection,
and associated metadata.
params:
- arg_name: gitlab-config-authorizer-credential-user-token-secret-version
help_text: |-
A SecretManager resource containing the user token that authorizes
the Developer Connect connection. Format:
`projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.gitlabConfig.authorizerCredential.userTokenSecretVersion: '{__relative_name__}'
required: true
- group:
api_field: connection.gitlabEnterpriseConfig
required: false
help_text: |-
Configuration for connections to an instance of GitLab Enterprise.
params:
- arg_name: gitlab-enterprise-config-host-uri
api_field: connection.gitlabEnterpriseConfig.hostUri
required: true
repeated: false
help_text: |-
The URI of the GitLab Enterprise host this connection is for.
- arg_name: gitlab-enterprise-config-webhook-secret-version
help_text: |-
SecretManager resource containing the webhook secret of a GitLab project,
formatted as `projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location). This is used to validate webhooks.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.gitlabEnterpriseConfig.webhookSecretSecretVersion: '{__relative_name__}'
required: true
- group:
api_field: connection.gitlabEnterpriseConfig.readAuthorizerCredential
required: true
help_text: |-
Represents a personal access token that authorized the Connection,
and associated metadata.
params:
- arg_name: gitlab-enterprise-config-read-authorizer-credential-user-token-secret-version
help_text: |-
A SecretManager resource containing the user token that authorizes
the Developer Connect connection. Format:
`projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.gitlabEnterpriseConfig.readAuthorizerCredential.userTokenSecretVersion: '{__relative_name__}'
required: true
- group:
api_field: connection.gitlabEnterpriseConfig.authorizerCredential
required: true
help_text: |-
Represents a personal access token that authorized the Connection,
and associated metadata.
params:
- arg_name: gitlab-enterprise-config-authorizer-credential-user-token-secret-version
help_text: |-
A SecretManager resource containing the user token that authorizes
the Developer Connect connection. Format:
`projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.gitlabEnterpriseConfig.authorizerCredential.userTokenSecretVersion: '{__relative_name__}'
required: true
- group:
api_field: connection.gitlabEnterpriseConfig.serviceDirectoryConfig
required: false
help_text: |-
ServiceDirectoryConfig represents Service Directory configuration for a
connection.
params:
- arg_name: gitlab-enterprise-config-service-directory
help_text: |-
The Service Directory service name.
Format:
projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_namespaces_services
resource_method_params:
connection.gitlabEnterpriseConfig.serviceDirectoryConfig.service: '{__relative_name__}'
required: true
- arg_name: gitlab-enterprise-config-ssl-ca-certificate
api_field: connection.gitlabEnterpriseConfig.sslCaCertificate
required: false
repeated: false
help_text: |-
SSL Certificate Authority certificate to use for requests to GitLab
Enterprise instance.
- group:
api_field: connection.bitbucketDataCenterConfig
required: false
help_text: |-
Configuration for connections to an instance of Bitbucket Data Center.
params:
- arg_name: bitbucket-data-center-config-host-uri
api_field: connection.bitbucketDataCenterConfig.hostUri
required: true
repeated: false
help_text: |-
The URI of the Bitbucket Data Center host this connection is for.
- arg_name: bitbucket-data-center-config-webhook-secret-version
help_text: |-
SecretManager resource containing the webhook secret used to verify webhook
events, formatted as `projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location). This is used to validate webhooks.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.bitbucketDataCenterConfig.webhookSecretSecretVersion: '{__relative_name__}'
required: true
- group:
api_field: connection.bitbucketDataCenterConfig.readAuthorizerCredential
required: true
help_text: |-
Represents a personal access token that authorized the Connection,
and associated metadata.
params:
- arg_name: bitbucket-data-center-config-read-authorizer-credential-user-token-secret-version
help_text: |-
A SecretManager resource containing the user token that authorizes
the Developer Connect connection. Format:
`projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.bitbucketDataCenterConfig.readAuthorizerCredential.userTokenSecretVersion: '{__relative_name__}'
required: true
- group:
api_field: connection.bitbucketDataCenterConfig.authorizerCredential
required: true
help_text: |-
Represents a personal access token that authorized the Connection,
and associated metadata.
params:
- arg_name: bitbucket-data-center-config-authorizer-credential-user-token-secret-version
help_text: |-
A SecretManager resource containing the user token that authorizes
the Developer Connect connection. Format:
`projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.bitbucketDataCenterConfig.authorizerCredential.userTokenSecretVersion: '{__relative_name__}'
required: true
- group:
api_field: connection.bitbucketDataCenterConfig.serviceDirectoryConfig
required: false
help_text: |-
ServiceDirectoryConfig represents Service Directory configuration for a
connection.
params:
- arg_name: bitbucket-data-center-config-service-directory
help_text: |-
The Service Directory service name.
Format:
projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_namespaces_services
resource_method_params:
connection.bitbucketDataCenterConfig.serviceDirectoryConfig.service: '{__relative_name__}'
required: true
- arg_name: bitbucket-data-center-config-ssl-ca-certificate
api_field: connection.bitbucketDataCenterConfig.sslCaCertificate
required: false
repeated: false
help_text: |-
SSL certificate authority to trust when making requests to Bitbucket Data
Center.
- group:
api_field: connection.bitbucketCloudConfig
required: false
help_text: |-
Configuration for connections to an instance of Bitbucket Cloud.
params:
- arg_name: bitbucket-cloud-config-workspace
api_field: connection.bitbucketCloudConfig.workspace
required: true
repeated: false
help_text: |-
The Bitbucket Cloud Workspace ID to be connected to Google Cloud Platform.
- arg_name: bitbucket-cloud-config-webhook-secret-version
help_text: |-
SecretManager resource containing the webhook secret used to verify webhook
events, formatted as `projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location). This is used to validate and create webhooks.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.bitbucketCloudConfig.webhookSecretSecretVersion: '{__relative_name__}'
required: true
- group:
api_field: connection.bitbucketCloudConfig.readAuthorizerCredential
required: true
help_text: |-
Represents a personal access token that authorized the Connection,
and associated metadata.
params:
- arg_name: bitbucket-cloud-config-read-authorizer-credential-user-token-secret-version
help_text: |-
A SecretManager resource containing the user token that authorizes
the Developer Connect connection. Format:
`projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.bitbucketCloudConfig.readAuthorizerCredential.userTokenSecretVersion: '{__relative_name__}'
required: true
- group:
api_field: connection.bitbucketCloudConfig.authorizerCredential
required: true
help_text: |-
Represents a personal access token that authorized the Connection,
and associated metadata.
params:
- arg_name: bitbucket-cloud-config-authorizer-credential-user-token-secret-version
help_text: |-
A SecretManager resource containing the user token that authorizes
the Developer Connect connection. Format:
`projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.bitbucketCloudConfig.authorizerCredential.userTokenSecretVersion: '{__relative_name__}'
required: true
- group:
api_field: connection.secureSourceManagerInstanceConfig
required: false
hidden: true
help_text: |-
Configuration for connections to SSM instance
params:
- arg_name: secure-source-manager-instance-config
api_field: connection.secureSourceManagerInstanceConfig.instance
required: true
repeated: false
help_text: |-
SSM instance resource, formatted as `projects/*/locations/*/instances/*`
- group:
api_field: connection.httpConfig
required: false
hidden: true
help_text: |-
Configuration for connections to an HTTP service provider.
params:
- group:
mutex: true
help_text: |-
Arguments for the authentication.
params:
- group:
api_field: connection.httpConfig.basicAuthentication
required: false
help_text: |-
Basic authentication with username and password.
params:
- group:
mutex: true
help_text: |-
Arguments for the password.
params:
- arg_name: http-config-basic-authentication-password-secret-version
help_text: |-
The password SecretManager secret version to authenticate as.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.httpConfig.basicAuthentication.passwordSecretVersion: '{__relative_name__}'
required: false
- arg_name: http-config-basic-authentication-username
api_field: connection.httpConfig.basicAuthentication.username
required: true
repeated: false
help_text: |-
The username to authenticate as.
- group:
api_field: connection.httpConfig.bearerTokenAuthentication
required: false
help_text: |-
Bearer token authentication with a token.
params:
- group:
mutex: true
help_text: |-
Arguments for the token.
params:
- arg_name: http-config-bearer-token-authentication-secret-version
help_text: |-
The token SecretManager secret version to authenticate as.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.httpConfig.bearerTokenAuthentication.tokenSecretVersion: '{__relative_name__}'
required: false
- arg_name: http-config-host-uri
api_field: connection.httpConfig.hostUri
required: true
repeated: false
help_text: |-
The service provider's https endpoint.
- group:
api_field: connection.httpConfig.serviceDirectoryConfig
required: false
help_text: |-
ServiceDirectoryConfig represents Service Directory configuration for a
connection.
params:
- arg_name: http-config-service-directory
help_text: |-
The Service Directory service name.
Format:
projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_namespaces_services
resource_method_params:
connection.httpConfig.serviceDirectoryConfig.service: '{__relative_name__}'
required: true
- arg_name: http-config-ssl-ca-certificate
api_field: connection.httpConfig.sslCaCertificate
required: false
repeated: false
help_text: |-
The SSL certificate to use for requests to the HTTP service provider.
- help_text: |-
Identifier. The resource name of the connection, in the format
`projects/{project}/locations/{location}/connections/{connection_id}`.
is_positional: true
is_primary_resource: true
request_id_field: connectionId
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_connections
required: true
- arg_name: labels
api_field: connection.labels
required: false
repeated: true
help_text: |-
Labels as key value pairs
spec:
- api_field: key
- api_field: value
- arg_name: disabled
api_field: connection.disabled
action: store_true
required: false
type: bool
help_text: |-
If disabled is set to true, functionality is disabled for this connection.
Repository based API methods and webhooks processing for repositories in
this connection will be disabled.
default: null
- arg_name: annotations
api_field: connection.annotations
required: false
repeated: true
help_text: |-
Allows clients to store small amounts of arbitrary data.
spec:
- api_field: key
- api_field: value
- arg_name: etag
api_field: connection.etag
required: false
repeated: false
help_text: |-
This checksum is computed by the server based on the value of other
fields, and may be sent on update and delete requests to ensure the
client has an up-to-date value before proceeding.
- group:
api_field: connection.cryptoKeyConfig
required: false
help_text: |-
The crypto key configuration. This field is used by the Customer-managed
encryption keys (CMEK) feature.
params:
- arg_name: crypto-key-config-reference
help_text: |-
The name of the key which is used to encrypt/decrypt customer data. For key
in Cloud KMS, the key should be in the format of
`projects/*/locations/*/keyRings/*/cryptoKeys/*`.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_key_rings_crypto_keys
resource_method_params:
connection.cryptoKeyConfig.keyReference: '{__relative_name__}'
required: true
- group:
api_field: connection.gitProxyConfig
required: false
help_text: |-
The git proxy configuration.
params:
- arg_name: git-proxy-config-enabled
api_field: connection.gitProxyConfig.enabled
action: store_true
required: false
type: bool
help_text: |-
Setting this to true allows the git proxy to be used for performing git
operations on the repositories linked in the connection.
default: null
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and the
request times out. If you make the request again with the same request
ID, the server can check if original operation with the same request ID
was received, and if so, will ignore the second request. This prevents
clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
- arg_name: validate-only
api_field: validateOnly
action: store_true
required: false
type: bool
help_text: |-
If set, validate the request, but do not actually post it.
default: null
request:
api_version: v1
collection:
- developerconnect.projects.locations.connections
async:
collection:
- developerconnect.projects.locations.operations
output:
format: csv[no-heading,separator="\\n"](installationState.stage,installationState.message,installationState.actionUri)

View File

@@ -0,0 +1,673 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- BETA
auto_generated: true
help_text:
brief: Create a connection resource
description: |
Create a connection resource.
examples: |-
To create a GitHub connection named `my-connection` in `us-central1` run:
$ {command} my-connection --github-config-app=developer-connect --github-config-authorizer-credential-oauth-token-secret-version=projects/my-project/secrets/my-oauth-token/versions/1 --github-config-app-installation-id=12345 --location=us-central1
arguments:
params:
- group:
mutex: true
help_text: |-
Arguments for the connection config.
params:
- group:
api_field: connection.githubConfig
required: false
help_text: |-
Configuration for connections to github.com.
params:
- arg_name: github-config-app
api_field: connection.githubConfig.githubApp
required: true
help_text: |-
The GitHub Application that was installed to the GitHub user or
organization.
choices:
- arg_value: developer-connect
enum_value: DEVELOPER_CONNECT
help_text: |-
The Developer Connect GitHub Application.
- arg_value: firebase
enum_value: FIREBASE
help_text: |-
The Firebase GitHub Application.
- arg_value: gemini-code-assist
enum_value: GEMINI_CODE_ASSIST
help_text: |-
The Gemini Code Assist Application.
- group:
api_field: connection.githubConfig.authorizerCredential
required: false
help_text: |-
Represents an OAuth token of the account that authorized the Connection,
and associated metadata.
params:
- arg_name: github-config-authorizer-credential-oauth-token-secret-version
help_text: |-
A SecretManager resource containing the OAuth token that authorizes
the connection. Format: `projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.githubConfig.authorizerCredential.oauthTokenSecretVersion: '{__relative_name__}'
required: true
- arg_name: github-config-app-installation-id
api_field: connection.githubConfig.appInstallationId
required: false
repeated: false
type: long
help_text: |-
GitHub App installation id.
- group:
api_field: connection.githubEnterpriseConfig
required: false
help_text: |-
Configuration for connections to an instance of GitHub Enterprise.
params:
- arg_name: github-enterprise-config-host-uri
api_field: connection.githubEnterpriseConfig.hostUri
required: true
repeated: false
help_text: |-
The URI of the GitHub Enterprise host this connection is for.
- arg_name: github-enterprise-config-app-id
api_field: connection.githubEnterpriseConfig.appId
required: false
repeated: false
type: long
help_text: |-
ID of the GitHub App created from the manifest.
- arg_name: github-enterprise-config-private-key-secret-version
help_text: |-
SecretManager resource containing the private key of the GitHub App,
formatted as `projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.githubEnterpriseConfig.privateKeySecretVersion: '{__relative_name__}'
required: false
- arg_name: github-enterprise-config-webhook-secret-version
help_text: |-
SecretManager resource containing the webhook secret of the GitHub App,
formatted as `projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.githubEnterpriseConfig.webhookSecretSecretVersion: '{__relative_name__}'
required: false
- arg_name: github-enterprise-config-app-installation-id
api_field: connection.githubEnterpriseConfig.appInstallationId
required: false
repeated: false
type: long
help_text: |-
ID of the installation of the GitHub App.
- group:
api_field: connection.githubEnterpriseConfig.serviceDirectoryConfig
required: false
help_text: |-
ServiceDirectoryConfig represents Service Directory configuration for a
connection.
params:
- arg_name: github-enterprise-config-service-directory
help_text: |-
The Service Directory service name.
Format:
projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_namespaces_services
resource_method_params:
connection.githubEnterpriseConfig.serviceDirectoryConfig.service: '{__relative_name__}'
required: true
- arg_name: github-enterprise-config-ssl-ca-certificate
api_field: connection.githubEnterpriseConfig.sslCaCertificate
required: false
repeated: false
help_text: |-
SSL certificate to use for requests to GitHub Enterprise.
- group:
api_field: connection.gitlabConfig
required: false
help_text: |-
Configuration for connections to gitlab.com.
params:
- arg_name: gitlab-config-webhook-secret-version
help_text: |-
SecretManager resource containing the webhook secret of a GitLab project,
formatted as `projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location). This is used to validate webhooks.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.gitlabConfig.webhookSecretSecretVersion: '{__relative_name__}'
required: true
- group:
api_field: connection.gitlabConfig.readAuthorizerCredential
required: true
help_text: |-
Represents a personal access token that authorized the Connection,
and associated metadata.
params:
- arg_name: gitlab-config-read-authorizer-credential-user-token-secret-version
help_text: |-
A SecretManager resource containing the user token that authorizes
the Developer Connect connection. Format:
`projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.gitlabConfig.readAuthorizerCredential.userTokenSecretVersion: '{__relative_name__}'
required: true
- group:
api_field: connection.gitlabConfig.authorizerCredential
required: true
help_text: |-
Represents a personal access token that authorized the Connection,
and associated metadata.
params:
- arg_name: gitlab-config-authorizer-credential-user-token-secret-version
help_text: |-
A SecretManager resource containing the user token that authorizes
the Developer Connect connection. Format:
`projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.gitlabConfig.authorizerCredential.userTokenSecretVersion: '{__relative_name__}'
required: true
- group:
api_field: connection.gitlabEnterpriseConfig
required: false
help_text: |-
Configuration for connections to an instance of GitLab Enterprise.
params:
- arg_name: gitlab-enterprise-config-host-uri
api_field: connection.gitlabEnterpriseConfig.hostUri
required: true
repeated: false
help_text: |-
The URI of the GitLab Enterprise host this connection is for.
- arg_name: gitlab-enterprise-config-webhook-secret-version
help_text: |-
SecretManager resource containing the webhook secret of a GitLab project,
formatted as `projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location). This is used to validate webhooks.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.gitlabEnterpriseConfig.webhookSecretSecretVersion: '{__relative_name__}'
required: true
- group:
api_field: connection.gitlabEnterpriseConfig.readAuthorizerCredential
required: true
help_text: |-
Represents a personal access token that authorized the Connection,
and associated metadata.
params:
- arg_name: gitlab-enterprise-config-read-authorizer-credential-user-token-secret-version
help_text: |-
A SecretManager resource containing the user token that authorizes
the Developer Connect connection. Format:
`projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.gitlabEnterpriseConfig.readAuthorizerCredential.userTokenSecretVersion: '{__relative_name__}'
required: true
- group:
api_field: connection.gitlabEnterpriseConfig.authorizerCredential
required: true
help_text: |-
Represents a personal access token that authorized the Connection,
and associated metadata.
params:
- arg_name: gitlab-enterprise-config-authorizer-credential-user-token-secret-version
help_text: |-
A SecretManager resource containing the user token that authorizes
the Developer Connect connection. Format:
`projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.gitlabEnterpriseConfig.authorizerCredential.userTokenSecretVersion: '{__relative_name__}'
required: true
- group:
api_field: connection.gitlabEnterpriseConfig.serviceDirectoryConfig
required: false
help_text: |-
ServiceDirectoryConfig represents Service Directory configuration for a
connection.
params:
- arg_name: gitlab-enterprise-config-service-directory
help_text: |-
The Service Directory service name.
Format:
projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_namespaces_services
resource_method_params:
connection.gitlabEnterpriseConfig.serviceDirectoryConfig.service: '{__relative_name__}'
required: true
- arg_name: gitlab-enterprise-config-ssl-ca-certificate
api_field: connection.gitlabEnterpriseConfig.sslCaCertificate
required: false
repeated: false
help_text: |-
SSL Certificate Authority certificate to use for requests to GitLab
Enterprise instance.
- group:
api_field: connection.bitbucketDataCenterConfig
required: false
help_text: |-
Configuration for connections to an instance of Bitbucket Data Center.
params:
- arg_name: bitbucket-data-center-config-host-uri
api_field: connection.bitbucketDataCenterConfig.hostUri
required: true
repeated: false
help_text: |-
The URI of the Bitbucket Data Center host this connection is for.
- arg_name: bitbucket-data-center-config-webhook-secret-version
help_text: |-
SecretManager resource containing the webhook secret used to verify webhook
events, formatted as `projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location). This is used to validate webhooks.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.bitbucketDataCenterConfig.webhookSecretSecretVersion: '{__relative_name__}'
required: true
- group:
api_field: connection.bitbucketDataCenterConfig.readAuthorizerCredential
required: true
help_text: |-
Represents a personal access token that authorized the Connection,
and associated metadata.
params:
- arg_name: bitbucket-data-center-config-read-authorizer-credential-user-token-secret-version
help_text: |-
A SecretManager resource containing the user token that authorizes
the Developer Connect connection. Format:
`projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.bitbucketDataCenterConfig.readAuthorizerCredential.userTokenSecretVersion: '{__relative_name__}'
required: true
- group:
api_field: connection.bitbucketDataCenterConfig.authorizerCredential
required: true
help_text: |-
Represents a personal access token that authorized the Connection,
and associated metadata.
params:
- arg_name: bitbucket-data-center-config-authorizer-credential-user-token-secret-version
help_text: |-
A SecretManager resource containing the user token that authorizes
the Developer Connect connection. Format:
`projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.bitbucketDataCenterConfig.authorizerCredential.userTokenSecretVersion: '{__relative_name__}'
required: true
- group:
api_field: connection.bitbucketDataCenterConfig.serviceDirectoryConfig
required: false
help_text: |-
ServiceDirectoryConfig represents Service Directory configuration for a
connection.
params:
- arg_name: bitbucket-data-center-config-service-directory
help_text: |-
The Service Directory service name.
Format:
projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_namespaces_services
resource_method_params:
connection.bitbucketDataCenterConfig.serviceDirectoryConfig.service: '{__relative_name__}'
required: true
- arg_name: bitbucket-data-center-config-ssl-ca-certificate
api_field: connection.bitbucketDataCenterConfig.sslCaCertificate
required: false
repeated: false
help_text: |-
SSL certificate authority to trust when making requests to Bitbucket Data
Center.
- group:
api_field: connection.bitbucketCloudConfig
required: false
help_text: |-
Configuration for connections to an instance of Bitbucket Cloud.
params:
- arg_name: bitbucket-cloud-config-workspace
api_field: connection.bitbucketCloudConfig.workspace
required: true
repeated: false
help_text: |-
The Bitbucket Cloud Workspace ID to be connected to Google Cloud Platform.
- arg_name: bitbucket-cloud-config-webhook-secret-version
help_text: |-
SecretManager resource containing the webhook secret used to verify webhook
events, formatted as `projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location). This is used to validate and create webhooks.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.bitbucketCloudConfig.webhookSecretSecretVersion: '{__relative_name__}'
required: true
- group:
api_field: connection.bitbucketCloudConfig.readAuthorizerCredential
required: true
help_text: |-
Represents a personal access token that authorized the Connection,
and associated metadata.
params:
- arg_name: bitbucket-cloud-config-read-authorizer-credential-user-token-secret-version
help_text: |-
A SecretManager resource containing the user token that authorizes
the Developer Connect connection. Format:
`projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.bitbucketCloudConfig.readAuthorizerCredential.userTokenSecretVersion: '{__relative_name__}'
required: true
- group:
api_field: connection.bitbucketCloudConfig.authorizerCredential
required: true
help_text: |-
Represents a personal access token that authorized the Connection,
and associated metadata.
params:
- arg_name: bitbucket-cloud-config-authorizer-credential-user-token-secret-version
help_text: |-
A SecretManager resource containing the user token that authorizes
the Developer Connect connection. Format:
`projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.bitbucketCloudConfig.authorizerCredential.userTokenSecretVersion: '{__relative_name__}'
required: true
- group:
api_field: connection.secureSourceManagerInstanceConfig
required: false
hidden: true
help_text: |-
Configuration for connections to SSM instance
params:
- arg_name: secure-source-manager-instance-config
api_field: connection.secureSourceManagerInstanceConfig.instance
required: true
repeated: false
help_text: |-
SSM instance resource, formatted as `projects/*/locations/*/instances/*`
- group:
api_field: connection.httpConfig
required: false
hidden: true
help_text: |-
Configuration for connections to an HTTP service provider.
params:
- group:
mutex: true
help_text: |-
Arguments for the authentication.
params:
- group:
api_field: connection.httpConfig.basicAuthentication
required: false
help_text: |-
Basic authentication with username and password.
params:
- group:
mutex: true
help_text: |-
Arguments for the password.
params:
- arg_name: http-config-basic-authentication-password-secret-version
help_text: |-
The password SecretManager secret version to authenticate as.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.httpConfig.basicAuthentication.passwordSecretVersion: '{__relative_name__}'
required: false
- arg_name: http-config-basic-authentication-username
api_field: connection.httpConfig.basicAuthentication.username
required: true
repeated: false
help_text: |-
The username to authenticate as.
- group:
api_field: connection.httpConfig.bearerTokenAuthentication
required: false
help_text: |-
Bearer token authentication with a token.
params:
- group:
mutex: true
help_text: |-
Arguments for the token.
params:
- arg_name: http-config-bearer-token-authentication-secret-version
help_text: |-
The token SecretManager secret version to authenticate as.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.httpConfig.bearerTokenAuthentication.tokenSecretVersion: '{__relative_name__}'
required: false
- arg_name: http-config-host-uri
api_field: connection.httpConfig.hostUri
required: true
repeated: false
help_text: |-
The service provider's https endpoint.
- group:
api_field: connection.httpConfig.serviceDirectoryConfig
required: false
help_text: |-
ServiceDirectoryConfig represents Service Directory configuration for a
connection.
params:
- arg_name: http-config-service-directory
help_text: |-
The Service Directory service name.
Format:
projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_namespaces_services
resource_method_params:
connection.httpConfig.serviceDirectoryConfig.service: '{__relative_name__}'
required: true
- arg_name: http-config-ssl-ca-certificate
api_field: connection.httpConfig.sslCaCertificate
required: false
repeated: false
help_text: |-
The SSL certificate to use for requests to the HTTP service provider.
- help_text: |-
Identifier. The resource name of the connection, in the format
`projects/{project}/locations/{location}/connections/{connection_id}`.
is_positional: true
is_primary_resource: true
request_id_field: connectionId
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_connections
required: true
- arg_name: labels
api_field: connection.labels
required: false
repeated: true
help_text: |-
Labels as key value pairs
spec:
- api_field: key
- api_field: value
- arg_name: disabled
api_field: connection.disabled
action: store_true
required: false
type: bool
help_text: |-
If disabled is set to true, functionality is disabled for this connection.
Repository based API methods and webhooks processing for repositories in
this connection will be disabled.
default: null
- arg_name: annotations
api_field: connection.annotations
required: false
repeated: true
help_text: |-
Allows clients to store small amounts of arbitrary data.
spec:
- api_field: key
- api_field: value
- arg_name: etag
api_field: connection.etag
required: false
repeated: false
help_text: |-
This checksum is computed by the server based on the value of other
fields, and may be sent on update and delete requests to ensure the
client has an up-to-date value before proceeding.
- group:
api_field: connection.cryptoKeyConfig
required: false
help_text: |-
The crypto key configuration. This field is used by the Customer-managed
encryption keys (CMEK) feature.
params:
- arg_name: crypto-key-config-reference
help_text: |-
The name of the key which is used to encrypt/decrypt customer data. For key
in Cloud KMS, the key should be in the format of
`projects/*/locations/*/keyRings/*/cryptoKeys/*`.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_key_rings_crypto_keys
resource_method_params:
connection.cryptoKeyConfig.keyReference: '{__relative_name__}'
required: true
- group:
api_field: connection.gitProxyConfig
required: false
help_text: |-
The git proxy configuration.
params:
- arg_name: git-proxy-config-enabled
api_field: connection.gitProxyConfig.enabled
action: store_true
required: false
type: bool
help_text: |-
Setting this to true allows the git proxy to be used for performing git
operations on the repositories linked in the connection.
default: null
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and the
request times out. If you make the request again with the same request
ID, the server can check if original operation with the same request ID
was received, and if so, will ignore the second request. This prevents
clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
- arg_name: validate-only
api_field: validateOnly
action: store_true
required: false
type: bool
help_text: |-
If set, validate the request, but do not actually post it.
default: null
request:
api_version: v1
collection:
- developerconnect.projects.locations.connections
async:
collection:
- developerconnect.projects.locations.operations
output:
format: csv[no-heading,separator="\\n"](installationState.stage,installationState.message,installationState.actionUri)

View File

@@ -0,0 +1,673 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- GA
auto_generated: true
help_text:
brief: Create a connection resource
description: |
Create a connection resource.
examples: |-
To create a GitHub connection named `my-connection` in `us-central1` run:
$ {command} my-connection --github-config-app=developer-connect --github-config-authorizer-credential-oauth-token-secret-version=projects/my-project/secrets/my-oauth-token/versions/1 --github-config-app-installation-id=12345 --location=us-central1
arguments:
params:
- group:
mutex: true
help_text: |-
Arguments for the connection config.
params:
- group:
api_field: connection.githubConfig
required: false
help_text: |-
Configuration for connections to github.com.
params:
- arg_name: github-config-app
api_field: connection.githubConfig.githubApp
required: true
help_text: |-
The GitHub Application that was installed to the GitHub user or
organization.
choices:
- arg_value: developer-connect
enum_value: DEVELOPER_CONNECT
help_text: |-
The Developer Connect GitHub Application.
- arg_value: firebase
enum_value: FIREBASE
help_text: |-
The Firebase GitHub Application.
- arg_value: gemini-code-assist
enum_value: GEMINI_CODE_ASSIST
help_text: |-
The Gemini Code Assist Application.
- group:
api_field: connection.githubConfig.authorizerCredential
required: false
help_text: |-
Represents an OAuth token of the account that authorized the Connection,
and associated metadata.
params:
- arg_name: github-config-authorizer-credential-oauth-token-secret-version
help_text: |-
A SecretManager resource containing the OAuth token that authorizes
the connection. Format: `projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.githubConfig.authorizerCredential.oauthTokenSecretVersion: '{__relative_name__}'
required: true
- arg_name: github-config-app-installation-id
api_field: connection.githubConfig.appInstallationId
required: false
repeated: false
type: long
help_text: |-
GitHub App installation id.
- group:
api_field: connection.githubEnterpriseConfig
required: false
help_text: |-
Configuration for connections to an instance of GitHub Enterprise.
params:
- arg_name: github-enterprise-config-host-uri
api_field: connection.githubEnterpriseConfig.hostUri
required: true
repeated: false
help_text: |-
The URI of the GitHub Enterprise host this connection is for.
- arg_name: github-enterprise-config-app-id
api_field: connection.githubEnterpriseConfig.appId
required: false
repeated: false
type: long
help_text: |-
ID of the GitHub App created from the manifest.
- arg_name: github-enterprise-config-private-key-secret-version
help_text: |-
SecretManager resource containing the private key of the GitHub App,
formatted as `projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.githubEnterpriseConfig.privateKeySecretVersion: '{__relative_name__}'
required: false
- arg_name: github-enterprise-config-webhook-secret-version
help_text: |-
SecretManager resource containing the webhook secret of the GitHub App,
formatted as `projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.githubEnterpriseConfig.webhookSecretSecretVersion: '{__relative_name__}'
required: false
- arg_name: github-enterprise-config-app-installation-id
api_field: connection.githubEnterpriseConfig.appInstallationId
required: false
repeated: false
type: long
help_text: |-
ID of the installation of the GitHub App.
- group:
api_field: connection.githubEnterpriseConfig.serviceDirectoryConfig
required: false
help_text: |-
ServiceDirectoryConfig represents Service Directory configuration for a
connection.
params:
- arg_name: github-enterprise-config-service-directory
help_text: |-
The Service Directory service name.
Format:
projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_namespaces_services
resource_method_params:
connection.githubEnterpriseConfig.serviceDirectoryConfig.service: '{__relative_name__}'
required: true
- arg_name: github-enterprise-config-ssl-ca-certificate
api_field: connection.githubEnterpriseConfig.sslCaCertificate
required: false
repeated: false
help_text: |-
SSL certificate to use for requests to GitHub Enterprise.
- group:
api_field: connection.gitlabConfig
required: false
help_text: |-
Configuration for connections to gitlab.com.
params:
- arg_name: gitlab-config-webhook-secret-version
help_text: |-
SecretManager resource containing the webhook secret of a GitLab project,
formatted as `projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location). This is used to validate webhooks.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.gitlabConfig.webhookSecretSecretVersion: '{__relative_name__}'
required: true
- group:
api_field: connection.gitlabConfig.readAuthorizerCredential
required: true
help_text: |-
Represents a personal access token that authorized the Connection,
and associated metadata.
params:
- arg_name: gitlab-config-read-authorizer-credential-user-token-secret-version
help_text: |-
A SecretManager resource containing the user token that authorizes
the Developer Connect connection. Format:
`projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.gitlabConfig.readAuthorizerCredential.userTokenSecretVersion: '{__relative_name__}'
required: true
- group:
api_field: connection.gitlabConfig.authorizerCredential
required: true
help_text: |-
Represents a personal access token that authorized the Connection,
and associated metadata.
params:
- arg_name: gitlab-config-authorizer-credential-user-token-secret-version
help_text: |-
A SecretManager resource containing the user token that authorizes
the Developer Connect connection. Format:
`projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.gitlabConfig.authorizerCredential.userTokenSecretVersion: '{__relative_name__}'
required: true
- group:
api_field: connection.gitlabEnterpriseConfig
required: false
help_text: |-
Configuration for connections to an instance of GitLab Enterprise.
params:
- arg_name: gitlab-enterprise-config-host-uri
api_field: connection.gitlabEnterpriseConfig.hostUri
required: true
repeated: false
help_text: |-
The URI of the GitLab Enterprise host this connection is for.
- arg_name: gitlab-enterprise-config-webhook-secret-version
help_text: |-
SecretManager resource containing the webhook secret of a GitLab project,
formatted as `projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location). This is used to validate webhooks.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.gitlabEnterpriseConfig.webhookSecretSecretVersion: '{__relative_name__}'
required: true
- group:
api_field: connection.gitlabEnterpriseConfig.readAuthorizerCredential
required: true
help_text: |-
Represents a personal access token that authorized the Connection,
and associated metadata.
params:
- arg_name: gitlab-enterprise-config-read-authorizer-credential-user-token-secret-version
help_text: |-
A SecretManager resource containing the user token that authorizes
the Developer Connect connection. Format:
`projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.gitlabEnterpriseConfig.readAuthorizerCredential.userTokenSecretVersion: '{__relative_name__}'
required: true
- group:
api_field: connection.gitlabEnterpriseConfig.authorizerCredential
required: true
help_text: |-
Represents a personal access token that authorized the Connection,
and associated metadata.
params:
- arg_name: gitlab-enterprise-config-authorizer-credential-user-token-secret-version
help_text: |-
A SecretManager resource containing the user token that authorizes
the Developer Connect connection. Format:
`projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.gitlabEnterpriseConfig.authorizerCredential.userTokenSecretVersion: '{__relative_name__}'
required: true
- group:
api_field: connection.gitlabEnterpriseConfig.serviceDirectoryConfig
required: false
help_text: |-
ServiceDirectoryConfig represents Service Directory configuration for a
connection.
params:
- arg_name: gitlab-enterprise-config-service-directory
help_text: |-
The Service Directory service name.
Format:
projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_namespaces_services
resource_method_params:
connection.gitlabEnterpriseConfig.serviceDirectoryConfig.service: '{__relative_name__}'
required: true
- arg_name: gitlab-enterprise-config-ssl-ca-certificate
api_field: connection.gitlabEnterpriseConfig.sslCaCertificate
required: false
repeated: false
help_text: |-
SSL Certificate Authority certificate to use for requests to GitLab
Enterprise instance.
- group:
api_field: connection.bitbucketDataCenterConfig
required: false
help_text: |-
Configuration for connections to an instance of Bitbucket Data Center.
params:
- arg_name: bitbucket-data-center-config-host-uri
api_field: connection.bitbucketDataCenterConfig.hostUri
required: true
repeated: false
help_text: |-
The URI of the Bitbucket Data Center host this connection is for.
- arg_name: bitbucket-data-center-config-webhook-secret-version
help_text: |-
SecretManager resource containing the webhook secret used to verify webhook
events, formatted as `projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location). This is used to validate webhooks.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.bitbucketDataCenterConfig.webhookSecretSecretVersion: '{__relative_name__}'
required: true
- group:
api_field: connection.bitbucketDataCenterConfig.readAuthorizerCredential
required: true
help_text: |-
Represents a personal access token that authorized the Connection,
and associated metadata.
params:
- arg_name: bitbucket-data-center-config-read-authorizer-credential-user-token-secret-version
help_text: |-
A SecretManager resource containing the user token that authorizes
the Developer Connect connection. Format:
`projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.bitbucketDataCenterConfig.readAuthorizerCredential.userTokenSecretVersion: '{__relative_name__}'
required: true
- group:
api_field: connection.bitbucketDataCenterConfig.authorizerCredential
required: true
help_text: |-
Represents a personal access token that authorized the Connection,
and associated metadata.
params:
- arg_name: bitbucket-data-center-config-authorizer-credential-user-token-secret-version
help_text: |-
A SecretManager resource containing the user token that authorizes
the Developer Connect connection. Format:
`projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.bitbucketDataCenterConfig.authorizerCredential.userTokenSecretVersion: '{__relative_name__}'
required: true
- group:
api_field: connection.bitbucketDataCenterConfig.serviceDirectoryConfig
required: false
help_text: |-
ServiceDirectoryConfig represents Service Directory configuration for a
connection.
params:
- arg_name: bitbucket-data-center-config-service-directory
help_text: |-
The Service Directory service name.
Format:
projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_namespaces_services
resource_method_params:
connection.bitbucketDataCenterConfig.serviceDirectoryConfig.service: '{__relative_name__}'
required: true
- arg_name: bitbucket-data-center-config-ssl-ca-certificate
api_field: connection.bitbucketDataCenterConfig.sslCaCertificate
required: false
repeated: false
help_text: |-
SSL certificate authority to trust when making requests to Bitbucket Data
Center.
- group:
api_field: connection.bitbucketCloudConfig
required: false
help_text: |-
Configuration for connections to an instance of Bitbucket Cloud.
params:
- arg_name: bitbucket-cloud-config-workspace
api_field: connection.bitbucketCloudConfig.workspace
required: true
repeated: false
help_text: |-
The Bitbucket Cloud Workspace ID to be connected to Google Cloud Platform.
- arg_name: bitbucket-cloud-config-webhook-secret-version
help_text: |-
SecretManager resource containing the webhook secret used to verify webhook
events, formatted as `projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location). This is used to validate and create webhooks.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.bitbucketCloudConfig.webhookSecretSecretVersion: '{__relative_name__}'
required: true
- group:
api_field: connection.bitbucketCloudConfig.readAuthorizerCredential
required: true
help_text: |-
Represents a personal access token that authorized the Connection,
and associated metadata.
params:
- arg_name: bitbucket-cloud-config-read-authorizer-credential-user-token-secret-version
help_text: |-
A SecretManager resource containing the user token that authorizes
the Developer Connect connection. Format:
`projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.bitbucketCloudConfig.readAuthorizerCredential.userTokenSecretVersion: '{__relative_name__}'
required: true
- group:
api_field: connection.bitbucketCloudConfig.authorizerCredential
required: true
help_text: |-
Represents a personal access token that authorized the Connection,
and associated metadata.
params:
- arg_name: bitbucket-cloud-config-authorizer-credential-user-token-secret-version
help_text: |-
A SecretManager resource containing the user token that authorizes
the Developer Connect connection. Format:
`projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.bitbucketCloudConfig.authorizerCredential.userTokenSecretVersion: '{__relative_name__}'
required: true
- group:
api_field: connection.secureSourceManagerInstanceConfig
required: false
hidden: true
help_text: |-
Configuration for connections to SSM instance
params:
- arg_name: secure-source-manager-instance-config
api_field: connection.secureSourceManagerInstanceConfig.instance
required: true
repeated: false
help_text: |-
SSM instance resource, formatted as `projects/*/locations/*/instances/*`
- group:
api_field: connection.httpConfig
required: false
hidden: true
help_text: |-
Configuration for connections to an HTTP service provider.
params:
- group:
mutex: true
help_text: |-
Arguments for the authentication.
params:
- group:
api_field: connection.httpConfig.basicAuthentication
required: false
help_text: |-
Basic authentication with username and password.
params:
- group:
mutex: true
help_text: |-
Arguments for the password.
params:
- arg_name: http-config-basic-authentication-password-secret-version
help_text: |-
The password SecretManager secret version to authenticate as.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.httpConfig.basicAuthentication.passwordSecretVersion: '{__relative_name__}'
required: false
- arg_name: http-config-basic-authentication-username
api_field: connection.httpConfig.basicAuthentication.username
required: true
repeated: false
help_text: |-
The username to authenticate as.
- group:
api_field: connection.httpConfig.bearerTokenAuthentication
required: false
help_text: |-
Bearer token authentication with a token.
params:
- group:
mutex: true
help_text: |-
Arguments for the token.
params:
- arg_name: http-config-bearer-token-authentication-secret-version
help_text: |-
The token SecretManager secret version to authenticate as.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.httpConfig.bearerTokenAuthentication.tokenSecretVersion: '{__relative_name__}'
required: false
- arg_name: http-config-host-uri
api_field: connection.httpConfig.hostUri
required: true
repeated: false
help_text: |-
The service provider's https endpoint.
- group:
api_field: connection.httpConfig.serviceDirectoryConfig
required: false
help_text: |-
ServiceDirectoryConfig represents Service Directory configuration for a
connection.
params:
- arg_name: http-config-service-directory
help_text: |-
The Service Directory service name.
Format:
projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_namespaces_services
resource_method_params:
connection.httpConfig.serviceDirectoryConfig.service: '{__relative_name__}'
required: true
- arg_name: http-config-ssl-ca-certificate
api_field: connection.httpConfig.sslCaCertificate
required: false
repeated: false
help_text: |-
The SSL certificate to use for requests to the HTTP service provider.
- help_text: |-
Identifier. The resource name of the connection, in the format
`projects/{project}/locations/{location}/connections/{connection_id}`.
is_positional: true
is_primary_resource: true
request_id_field: connectionId
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_connections
required: true
- arg_name: labels
api_field: connection.labels
required: false
repeated: true
help_text: |-
Labels as key value pairs
spec:
- api_field: key
- api_field: value
- arg_name: disabled
api_field: connection.disabled
action: store_true
required: false
type: bool
help_text: |-
If disabled is set to true, functionality is disabled for this connection.
Repository based API methods and webhooks processing for repositories in
this connection will be disabled.
default: null
- arg_name: annotations
api_field: connection.annotations
required: false
repeated: true
help_text: |-
Allows clients to store small amounts of arbitrary data.
spec:
- api_field: key
- api_field: value
- arg_name: etag
api_field: connection.etag
required: false
repeated: false
help_text: |-
This checksum is computed by the server based on the value of other
fields, and may be sent on update and delete requests to ensure the
client has an up-to-date value before proceeding.
- group:
api_field: connection.cryptoKeyConfig
required: false
help_text: |-
The crypto key configuration. This field is used by the Customer-managed
encryption keys (CMEK) feature.
params:
- arg_name: crypto-key-config-reference
help_text: |-
The name of the key which is used to encrypt/decrypt customer data. For key
in Cloud KMS, the key should be in the format of
`projects/*/locations/*/keyRings/*/cryptoKeys/*`.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_key_rings_crypto_keys
resource_method_params:
connection.cryptoKeyConfig.keyReference: '{__relative_name__}'
required: true
- group:
api_field: connection.gitProxyConfig
required: false
help_text: |-
The git proxy configuration.
params:
- arg_name: git-proxy-config-enabled
api_field: connection.gitProxyConfig.enabled
action: store_true
required: false
type: bool
help_text: |-
Setting this to true allows the git proxy to be used for performing git
operations on the repositories linked in the connection.
default: null
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and the
request times out. If you make the request again with the same request
ID, the server can check if original operation with the same request ID
was received, and if so, will ignore the second request. This prevents
clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
- arg_name: validate-only
api_field: validateOnly
action: store_true
required: false
type: bool
help_text: |-
If set, validate the request, but do not actually post it.
default: null
request:
api_version: v1
collection:
- developerconnect.projects.locations.connections
async:
collection:
- developerconnect.projects.locations.operations
output:
format: csv[no-heading,separator="\\n"](installationState.stage,installationState.message,installationState.actionUri)

View File

@@ -0,0 +1,77 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- ALPHA
auto_generated: true
help_text:
brief: Delete a single connection
description: |
Delete a single connection.
examples: |-
To delete a connection `my-comection` in location `us-central1` run:
$ {command} my-connection --location=us-central1
arguments:
params:
- help_text: |-
Name of the resource
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_connections
required: true
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes after the first request.
For example, consider a situation where you make an initial request and the
request times out. If you make the request again with the same request
ID, the server can check if original operation with the same request ID
was received, and if so, will ignore the second request. This prevents
clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
- arg_name: validate-only
api_field: validateOnly
action: store_true
required: false
type: bool
help_text: |-
If set, validate the request, but do not actually post it.
default: null
- arg_name: etag
api_field: etag
required: false
repeated: false
help_text: |-
The current etag of the Connection.
If an etag is provided and does not match the current etag of the
Connection, deletion will be blocked and an ABORTED error will be returned.
request:
api_version: v1
collection:
- developerconnect.projects.locations.connections
async:
collection:
- developerconnect.projects.locations.operations

View File

@@ -0,0 +1,77 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- BETA
auto_generated: true
help_text:
brief: Delete a single connection
description: |
Delete a single connection.
examples: |-
To delete a connection `my-comection` in location `us-central1` run:
$ {command} my-connection --location=us-central1
arguments:
params:
- help_text: |-
Name of the resource
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_connections
required: true
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes after the first request.
For example, consider a situation where you make an initial request and the
request times out. If you make the request again with the same request
ID, the server can check if original operation with the same request ID
was received, and if so, will ignore the second request. This prevents
clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
- arg_name: validate-only
api_field: validateOnly
action: store_true
required: false
type: bool
help_text: |-
If set, validate the request, but do not actually post it.
default: null
- arg_name: etag
api_field: etag
required: false
repeated: false
help_text: |-
The current etag of the Connection.
If an etag is provided and does not match the current etag of the
Connection, deletion will be blocked and an ABORTED error will be returned.
request:
api_version: v1
collection:
- developerconnect.projects.locations.connections
async:
collection:
- developerconnect.projects.locations.operations

View File

@@ -0,0 +1,77 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- GA
auto_generated: true
help_text:
brief: Delete a single connection
description: |
Delete a single connection.
examples: |-
To delete a connection `my-comection` in location `us-central1` run:
$ {command} my-connection --location=us-central1
arguments:
params:
- help_text: |-
Name of the resource
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_connections
required: true
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes after the first request.
For example, consider a situation where you make an initial request and the
request times out. If you make the request again with the same request
ID, the server can check if original operation with the same request ID
was received, and if so, will ignore the second request. This prevents
clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
- arg_name: validate-only
api_field: validateOnly
action: store_true
required: false
type: bool
help_text: |-
If set, validate the request, but do not actually post it.
default: null
- arg_name: etag
api_field: etag
required: false
repeated: false
help_text: |-
The current etag of the Connection.
If an etag is provided and does not match the current etag of the
Connection, deletion will be blocked and an ABORTED error will be returned.
request:
api_version: v1
collection:
- developerconnect.projects.locations.connections
async:
collection:
- developerconnect.projects.locations.operations

View File

@@ -0,0 +1,40 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- ALPHA
auto_generated: true
help_text:
brief: Get details of a single connection resource
description: |
Get details of a single connection resource.
examples: |-
To get the details of a single conenction `my-connection` in location `us-central1` run:
$ {command} my-connection --location=us-central1
arguments:
params:
- help_text: |-
Name of the resource
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_connections
required: true
request:
api_version: v1
collection:
- developerconnect.projects.locations.connections

View File

@@ -0,0 +1,40 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- BETA
auto_generated: true
help_text:
brief: Get details of a single connection resource
description: |
Get details of a single connection resource.
examples: |-
To get the details of a single conenction `my-connection` in location `us-central1` run:
$ {command} my-connection --location=us-central1
arguments:
params:
- help_text: |-
Name of the resource
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_connections
required: true
request:
api_version: v1
collection:
- developerconnect.projects.locations.connections

View File

@@ -0,0 +1,40 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- GA
auto_generated: true
help_text:
brief: Get details of a single connection resource
description: |
Get details of a single connection resource.
examples: |-
To get the details of a single conenction `my-connection` in location `us-central1` run:
$ {command} my-connection --location=us-central1
arguments:
params:
- help_text: |-
Name of the resource
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_connections
required: true
request:
api_version: v1
collection:
- developerconnect.projects.locations.connections

View File

@@ -0,0 +1,42 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- ALPHA
auto_generated: true
help_text:
brief: List connections
description: |
List connections.
examples: |-
To list all connections in location `us-central1` run:
$ {command} --location=us-central1
arguments:
params:
- help_text: |-
Parent value for ListConnectionsRequest
is_positional: false
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations
required: true
request:
api_version: v1
collection:
- developerconnect.projects.locations.connections
response:
id_field: name

View File

@@ -0,0 +1,42 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- BETA
auto_generated: true
help_text:
brief: List connections
description: |
List connections.
examples: |-
To list all connections in location `us-central1` run:
$ {command} --location=us-central1
arguments:
params:
- help_text: |-
Parent value for ListConnectionsRequest
is_positional: false
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations
required: true
request:
api_version: v1
collection:
- developerconnect.projects.locations.connections
response:
id_field: name

View File

@@ -0,0 +1,42 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- GA
auto_generated: true
help_text:
brief: List connections
description: |
List connections.
examples: |-
To list all connections in location `us-central1` run:
$ {command} --location=us-central1
arguments:
params:
- help_text: |-
Parent value for ListConnectionsRequest
is_positional: false
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations
required: true
request:
api_version: v1
collection:
- developerconnect.projects.locations.connections
response:
id_field: name

View File

@@ -0,0 +1,621 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- ALPHA
auto_generated: true
help_text:
brief: Update the parameters of a single connection
description: |
Update a connection.
examples: |-
To update the labels of a connection `my-connection` in location `us-central1` run:
$ {command} my-connection --labels=key1=value1 --location=us-central1
arguments:
params:
- group:
mutex: true
help_text: |-
Arguments for the connection config.
params:
- group:
api_field: connection.githubConfig
arg_name: github-config
clearable: true
required: false
help_text: |-
Configuration for connections to github.com.
params:
- group:
api_field: connection.githubConfig.authorizerCredential
required: false
help_text: |-
Represents an OAuth token of the account that authorized the Connection,
and associated metadata.
params:
- arg_name: github-config-authorizer-credential-oauth-token-secret-version
help_text: |-
A SecretManager resource containing the OAuth token that authorizes
the connection. Format: `projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.githubConfig.authorizerCredential.oauthTokenSecretVersion: '{__relative_name__}'
required: false
- arg_name: github-config-app-installation-id
api_field: connection.githubConfig.appInstallationId
required: false
repeated: false
type: long
help_text: |-
GitHub App installation id.
- group:
api_field: connection.githubEnterpriseConfig
arg_name: github-enterprise-config
clearable: true
required: false
help_text: |-
Configuration for connections to an instance of GitHub Enterprise.
params:
- arg_name: github-enterprise-config-host-uri
api_field: connection.githubEnterpriseConfig.hostUri
required: false
repeated: false
help_text: |-
The URI of the GitHub Enterprise host this connection is for.
- arg_name: github-enterprise-config-app-id
api_field: connection.githubEnterpriseConfig.appId
required: false
repeated: false
type: long
help_text: |-
ID of the GitHub App created from the manifest.
- arg_name: github-enterprise-config-private-key-secret-version
help_text: |-
SecretManager resource containing the private key of the GitHub App,
formatted as `projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.githubEnterpriseConfig.privateKeySecretVersion: '{__relative_name__}'
required: false
clearable: true
- arg_name: github-enterprise-config-webhook-secret-version
help_text: |-
SecretManager resource containing the webhook secret of the GitHub App,
formatted as `projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.githubEnterpriseConfig.webhookSecretSecretVersion: '{__relative_name__}'
required: false
clearable: true
- arg_name: github-enterprise-config-app-installation-id
api_field: connection.githubEnterpriseConfig.appInstallationId
required: false
repeated: false
type: long
help_text: |-
ID of the installation of the GitHub App.
- group:
api_field: connection.githubEnterpriseConfig.serviceDirectoryConfig
required: false
help_text: |-
ServiceDirectoryConfig represents Service Directory configuration for a
connection.
params:
- arg_name: github-enterprise-config-service-directory
help_text: |-
The Service Directory service name.
Format:
projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_namespaces_services
resource_method_params:
connection.githubEnterpriseConfig.serviceDirectoryConfig.service: '{__relative_name__}'
required: false
- arg_name: github-enterprise-config-ssl-ca-certificate
api_field: connection.githubEnterpriseConfig.sslCaCertificate
required: false
repeated: false
help_text: |-
SSL certificate to use for requests to GitHub Enterprise.
- group:
api_field: connection.gitlabConfig
arg_name: gitlab-config
clearable: true
required: false
help_text: |-
Configuration for connections to gitlab.com.
params:
- group:
api_field: connection.gitlabConfig.readAuthorizerCredential
required: false
help_text: |-
Represents a personal access token that authorized the Connection,
and associated metadata.
params:
- arg_name: gitlab-config-read-authorizer-credential-user-token-secret-version
help_text: |-
A SecretManager resource containing the user token that authorizes
the Developer Connect connection. Format:
`projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.gitlabConfig.readAuthorizerCredential.userTokenSecretVersion: '{__relative_name__}'
required: false
- group:
api_field: connection.gitlabConfig.authorizerCredential
required: false
help_text: |-
Represents a personal access token that authorized the Connection,
and associated metadata.
params:
- arg_name: gitlab-config-authorizer-credential-user-token-secret-version
help_text: |-
A SecretManager resource containing the user token that authorizes
the Developer Connect connection. Format:
`projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.gitlabConfig.authorizerCredential.userTokenSecretVersion: '{__relative_name__}'
required: false
- group:
api_field: connection.gitlabEnterpriseConfig
arg_name: gitlab-enterprise-config
clearable: true
required: false
help_text: |-
Configuration for connections to an instance of GitLab Enterprise.
params:
- arg_name: gitlab-enterprise-config-host-uri
api_field: connection.gitlabEnterpriseConfig.hostUri
required: false
repeated: false
help_text: |-
The URI of the GitLab Enterprise host this connection is for.
- group:
api_field: connection.gitlabEnterpriseConfig.readAuthorizerCredential
required: false
help_text: |-
Represents a personal access token that authorized the Connection,
and associated metadata.
params:
- arg_name: gitlab-enterprise-config-read-authorizer-credential-user-token-secret-version
help_text: |-
A SecretManager resource containing the user token that authorizes
the Developer Connect connection. Format:
`projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.gitlabEnterpriseConfig.readAuthorizerCredential.userTokenSecretVersion: '{__relative_name__}'
required: false
- group:
api_field: connection.gitlabEnterpriseConfig.authorizerCredential
required: false
help_text: |-
Represents a personal access token that authorized the Connection,
and associated metadata.
params:
- arg_name: gitlab-enterprise-config-authorizer-credential-user-token-secret-version
help_text: |-
A SecretManager resource containing the user token that authorizes
the Developer Connect connection. Format:
`projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.gitlabEnterpriseConfig.authorizerCredential.userTokenSecretVersion: '{__relative_name__}'
required: false
- group:
api_field: connection.gitlabEnterpriseConfig.serviceDirectoryConfig
required: false
help_text: |-
ServiceDirectoryConfig represents Service Directory configuration for a
connection.
params:
- arg_name: gitlab-enterprise-config-service-directory
help_text: |-
The Service Directory service name.
Format:
projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_namespaces_services
resource_method_params:
connection.gitlabEnterpriseConfig.serviceDirectoryConfig.service: '{__relative_name__}'
required: false
- arg_name: gitlab-enterprise-config-ssl-ca-certificate
api_field: connection.gitlabEnterpriseConfig.sslCaCertificate
required: false
repeated: false
help_text: |-
SSL Certificate Authority certificate to use for requests to GitLab
Enterprise instance.
- group:
api_field: connection.bitbucketDataCenterConfig
arg_name: bitbucket-data-center-config
clearable: true
required: false
help_text: |-
Configuration for connections to an instance of Bitbucket Data Center.
params:
- arg_name: bitbucket-data-center-config-host-uri
api_field: connection.bitbucketDataCenterConfig.hostUri
required: false
repeated: false
help_text: |-
The URI of the Bitbucket Data Center host this connection is for.
- group:
api_field: connection.bitbucketDataCenterConfig.readAuthorizerCredential
required: false
help_text: |-
Represents a personal access token that authorized the Connection,
and associated metadata.
params:
- arg_name: bitbucket-data-center-config-read-authorizer-credential-user-token-secret-version
help_text: |-
A SecretManager resource containing the user token that authorizes
the Developer Connect connection. Format:
`projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.bitbucketDataCenterConfig.readAuthorizerCredential.userTokenSecretVersion: '{__relative_name__}'
required: false
- group:
api_field: connection.bitbucketDataCenterConfig.authorizerCredential
required: false
help_text: |-
Represents a personal access token that authorized the Connection,
and associated metadata.
params:
- arg_name: bitbucket-data-center-config-authorizer-credential-user-token-secret-version
help_text: |-
A SecretManager resource containing the user token that authorizes
the Developer Connect connection. Format:
`projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.bitbucketDataCenterConfig.authorizerCredential.userTokenSecretVersion: '{__relative_name__}'
required: false
- group:
api_field: connection.bitbucketDataCenterConfig.serviceDirectoryConfig
required: false
help_text: |-
ServiceDirectoryConfig represents Service Directory configuration for a
connection.
params:
- arg_name: bitbucket-data-center-config-service-directory
help_text: |-
The Service Directory service name.
Format:
projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_namespaces_services
resource_method_params:
connection.bitbucketDataCenterConfig.serviceDirectoryConfig.service: '{__relative_name__}'
required: false
- arg_name: bitbucket-data-center-config-ssl-ca-certificate
api_field: connection.bitbucketDataCenterConfig.sslCaCertificate
required: false
repeated: false
help_text: |-
SSL certificate authority to trust when making requests to Bitbucket Data
Center.
- group:
api_field: connection.bitbucketCloudConfig
arg_name: bitbucket-cloud-config
clearable: true
required: false
help_text: |-
Configuration for connections to an instance of Bitbucket Cloud.
params:
- arg_name: bitbucket-cloud-config-workspace
api_field: connection.bitbucketCloudConfig.workspace
required: false
repeated: false
help_text: |-
The Bitbucket Cloud Workspace ID to be connected to Google Cloud Platform.
- group:
api_field: connection.bitbucketCloudConfig.readAuthorizerCredential
required: false
help_text: |-
Represents a personal access token that authorized the Connection,
and associated metadata.
params:
- arg_name: bitbucket-cloud-config-read-authorizer-credential-user-token-secret-version
help_text: |-
A SecretManager resource containing the user token that authorizes
the Developer Connect connection. Format:
`projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.bitbucketCloudConfig.readAuthorizerCredential.userTokenSecretVersion: '{__relative_name__}'
required: false
- group:
api_field: connection.bitbucketCloudConfig.authorizerCredential
required: false
help_text: |-
Represents a personal access token that authorized the Connection,
and associated metadata.
params:
- arg_name: bitbucket-cloud-config-authorizer-credential-user-token-secret-version
help_text: |-
A SecretManager resource containing the user token that authorizes
the Developer Connect connection. Format:
`projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.bitbucketCloudConfig.authorizerCredential.userTokenSecretVersion: '{__relative_name__}'
required: false
- group:
api_field: connection.httpConfig
arg_name: http-config
clearable: true
required: false
hidden: true
help_text: |-
Configuration for connections to an HTTP service provider.
params:
- group:
mutex: true
help_text: |-
Arguments for the authentication.
params:
- group:
api_field: connection.httpConfig.basicAuthentication
required: false
help_text: |-
Basic authentication with username and password.
params:
- group:
mutex: true
help_text: |-
Arguments for the password.
params:
- arg_name: http-config-basic-authentication-password-secret-version
help_text: |-
The password SecretManager secret version to authenticate as.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.httpConfig.basicAuthentication.passwordSecretVersion: '{__relative_name__}'
required: false
clearable: true
- arg_name: http-config-basic-authentication-username
api_field: connection.httpConfig.basicAuthentication.username
required: false
repeated: false
help_text: |-
The username to authenticate as.
- group:
api_field: connection.httpConfig.bearerTokenAuthentication
required: false
help_text: |-
Bearer token authentication with a token.
params:
- group:
mutex: true
help_text: |-
Arguments for the token.
params:
- arg_name: http-config-bearer-token-authentication-secret-version
help_text: |-
The token SecretManager secret version to authenticate as.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.httpConfig.bearerTokenAuthentication.tokenSecretVersion: '{__relative_name__}'
required: false
clearable: true
- group:
api_field: connection.httpConfig.serviceDirectoryConfig
required: false
help_text: |-
ServiceDirectoryConfig represents Service Directory configuration for a
connection.
params:
- arg_name: http-config-service-directory
help_text: |-
The Service Directory service name.
Format:
projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_namespaces_services
resource_method_params:
connection.httpConfig.serviceDirectoryConfig.service: '{__relative_name__}'
required: false
- arg_name: http-config-ssl-ca-certificate
api_field: connection.httpConfig.sslCaCertificate
required: false
repeated: false
help_text: |-
The SSL certificate to use for requests to the HTTP service provider.
- help_text: |-
Identifier. The resource name of the connection, in the format
`projects/{project}/locations/{location}/connections/{connection_id}`.
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_connections
required: true
- arg_name: labels
api_field: connection.labels
required: false
repeated: true
help_text: |-
Labels as key value pairs
clearable: true
spec:
- api_field: key
- api_field: value
- arg_name: disabled
api_field: connection.disabled
action: store_true_false
required: false
type: bool
help_text: |-
If disabled is set to true, functionality is disabled for this connection.
Repository based API methods and webhooks processing for repositories in
this connection will be disabled.
- arg_name: annotations
api_field: connection.annotations
required: false
repeated: true
help_text: |-
Allows clients to store small amounts of arbitrary data.
clearable: true
spec:
- api_field: key
- api_field: value
- arg_name: etag
api_field: connection.etag
required: false
repeated: false
help_text: |-
This checksum is computed by the server based on the value of other
fields, and may be sent on update and delete requests to ensure the
client has an up-to-date value before proceeding.
- group:
api_field: connection.cryptoKeyConfig
arg_name: crypto-key-config
clearable: true
required: false
help_text: |-
The crypto key configuration. This field is used by the Customer-managed
encryption keys (CMEK) feature.
params:
- arg_name: crypto-key-config-reference
help_text: |-
The name of the key which is used to encrypt/decrypt customer data. For key
in Cloud KMS, the key should be in the format of
`projects/*/locations/*/keyRings/*/cryptoKeys/*`.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_key_rings_crypto_keys
resource_method_params:
connection.cryptoKeyConfig.keyReference: '{__relative_name__}'
required: false
- group:
api_field: connection.gitProxyConfig
arg_name: git-proxy-config
clearable: true
required: false
help_text: |-
The git proxy configuration.
params:
- arg_name: git-proxy-config-enabled
api_field: connection.gitProxyConfig.enabled
action: store_true_false
required: false
type: bool
help_text: |-
Setting this to true allows the git proxy to be used for performing git
operations on the repositories linked in the connection.
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and the
request times out. If you make the request again with the same request
ID, the server can check if original operation with the same request ID
was received, and if so, will ignore the second request. This prevents
clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
- arg_name: allow-missing
api_field: allowMissing
action: store_true_false
required: false
type: bool
help_text: |-
If set to true, and the connection is not found a new connection
will be created. In this situation `update_mask` is ignored.
The creation will succeed only if the input connection has all the
necessary information (e.g a github_config with both user_oauth_token and
installation_id properties).
- arg_name: validate-only
api_field: validateOnly
action: store_true_false
required: false
type: bool
help_text: |-
If set, validate the request, but do not actually post it.
request:
api_version: v1
collection:
- developerconnect.projects.locations.connections
static_fields:
updateMask: '*'
async:
collection:
- developerconnect.projects.locations.operations
update:
read_modify_update: true
disable_auto_field_mask: true

View File

@@ -0,0 +1,621 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- BETA
auto_generated: true
help_text:
brief: Update the parameters of a single connection
description: |
Update a connection.
examples: |-
To update the labels of a connection `my-connection` in location `us-central1` run:
$ {command} my-connection --labels=key1=value1 --location=us-central1
arguments:
params:
- group:
mutex: true
help_text: |-
Arguments for the connection config.
params:
- group:
api_field: connection.githubConfig
arg_name: github-config
clearable: true
required: false
help_text: |-
Configuration for connections to github.com.
params:
- group:
api_field: connection.githubConfig.authorizerCredential
required: false
help_text: |-
Represents an OAuth token of the account that authorized the Connection,
and associated metadata.
params:
- arg_name: github-config-authorizer-credential-oauth-token-secret-version
help_text: |-
A SecretManager resource containing the OAuth token that authorizes
the connection. Format: `projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.githubConfig.authorizerCredential.oauthTokenSecretVersion: '{__relative_name__}'
required: false
- arg_name: github-config-app-installation-id
api_field: connection.githubConfig.appInstallationId
required: false
repeated: false
type: long
help_text: |-
GitHub App installation id.
- group:
api_field: connection.githubEnterpriseConfig
arg_name: github-enterprise-config
clearable: true
required: false
help_text: |-
Configuration for connections to an instance of GitHub Enterprise.
params:
- arg_name: github-enterprise-config-host-uri
api_field: connection.githubEnterpriseConfig.hostUri
required: false
repeated: false
help_text: |-
The URI of the GitHub Enterprise host this connection is for.
- arg_name: github-enterprise-config-app-id
api_field: connection.githubEnterpriseConfig.appId
required: false
repeated: false
type: long
help_text: |-
ID of the GitHub App created from the manifest.
- arg_name: github-enterprise-config-private-key-secret-version
help_text: |-
SecretManager resource containing the private key of the GitHub App,
formatted as `projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.githubEnterpriseConfig.privateKeySecretVersion: '{__relative_name__}'
required: false
clearable: true
- arg_name: github-enterprise-config-webhook-secret-version
help_text: |-
SecretManager resource containing the webhook secret of the GitHub App,
formatted as `projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.githubEnterpriseConfig.webhookSecretSecretVersion: '{__relative_name__}'
required: false
clearable: true
- arg_name: github-enterprise-config-app-installation-id
api_field: connection.githubEnterpriseConfig.appInstallationId
required: false
repeated: false
type: long
help_text: |-
ID of the installation of the GitHub App.
- group:
api_field: connection.githubEnterpriseConfig.serviceDirectoryConfig
required: false
help_text: |-
ServiceDirectoryConfig represents Service Directory configuration for a
connection.
params:
- arg_name: github-enterprise-config-service-directory
help_text: |-
The Service Directory service name.
Format:
projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_namespaces_services
resource_method_params:
connection.githubEnterpriseConfig.serviceDirectoryConfig.service: '{__relative_name__}'
required: false
- arg_name: github-enterprise-config-ssl-ca-certificate
api_field: connection.githubEnterpriseConfig.sslCaCertificate
required: false
repeated: false
help_text: |-
SSL certificate to use for requests to GitHub Enterprise.
- group:
api_field: connection.gitlabConfig
arg_name: gitlab-config
clearable: true
required: false
help_text: |-
Configuration for connections to gitlab.com.
params:
- group:
api_field: connection.gitlabConfig.readAuthorizerCredential
required: false
help_text: |-
Represents a personal access token that authorized the Connection,
and associated metadata.
params:
- arg_name: gitlab-config-read-authorizer-credential-user-token-secret-version
help_text: |-
A SecretManager resource containing the user token that authorizes
the Developer Connect connection. Format:
`projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.gitlabConfig.readAuthorizerCredential.userTokenSecretVersion: '{__relative_name__}'
required: false
- group:
api_field: connection.gitlabConfig.authorizerCredential
required: false
help_text: |-
Represents a personal access token that authorized the Connection,
and associated metadata.
params:
- arg_name: gitlab-config-authorizer-credential-user-token-secret-version
help_text: |-
A SecretManager resource containing the user token that authorizes
the Developer Connect connection. Format:
`projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.gitlabConfig.authorizerCredential.userTokenSecretVersion: '{__relative_name__}'
required: false
- group:
api_field: connection.gitlabEnterpriseConfig
arg_name: gitlab-enterprise-config
clearable: true
required: false
help_text: |-
Configuration for connections to an instance of GitLab Enterprise.
params:
- arg_name: gitlab-enterprise-config-host-uri
api_field: connection.gitlabEnterpriseConfig.hostUri
required: false
repeated: false
help_text: |-
The URI of the GitLab Enterprise host this connection is for.
- group:
api_field: connection.gitlabEnterpriseConfig.readAuthorizerCredential
required: false
help_text: |-
Represents a personal access token that authorized the Connection,
and associated metadata.
params:
- arg_name: gitlab-enterprise-config-read-authorizer-credential-user-token-secret-version
help_text: |-
A SecretManager resource containing the user token that authorizes
the Developer Connect connection. Format:
`projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.gitlabEnterpriseConfig.readAuthorizerCredential.userTokenSecretVersion: '{__relative_name__}'
required: false
- group:
api_field: connection.gitlabEnterpriseConfig.authorizerCredential
required: false
help_text: |-
Represents a personal access token that authorized the Connection,
and associated metadata.
params:
- arg_name: gitlab-enterprise-config-authorizer-credential-user-token-secret-version
help_text: |-
A SecretManager resource containing the user token that authorizes
the Developer Connect connection. Format:
`projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.gitlabEnterpriseConfig.authorizerCredential.userTokenSecretVersion: '{__relative_name__}'
required: false
- group:
api_field: connection.gitlabEnterpriseConfig.serviceDirectoryConfig
required: false
help_text: |-
ServiceDirectoryConfig represents Service Directory configuration for a
connection.
params:
- arg_name: gitlab-enterprise-config-service-directory
help_text: |-
The Service Directory service name.
Format:
projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_namespaces_services
resource_method_params:
connection.gitlabEnterpriseConfig.serviceDirectoryConfig.service: '{__relative_name__}'
required: false
- arg_name: gitlab-enterprise-config-ssl-ca-certificate
api_field: connection.gitlabEnterpriseConfig.sslCaCertificate
required: false
repeated: false
help_text: |-
SSL Certificate Authority certificate to use for requests to GitLab
Enterprise instance.
- group:
api_field: connection.bitbucketDataCenterConfig
arg_name: bitbucket-data-center-config
clearable: true
required: false
help_text: |-
Configuration for connections to an instance of Bitbucket Data Center.
params:
- arg_name: bitbucket-data-center-config-host-uri
api_field: connection.bitbucketDataCenterConfig.hostUri
required: false
repeated: false
help_text: |-
The URI of the Bitbucket Data Center host this connection is for.
- group:
api_field: connection.bitbucketDataCenterConfig.readAuthorizerCredential
required: false
help_text: |-
Represents a personal access token that authorized the Connection,
and associated metadata.
params:
- arg_name: bitbucket-data-center-config-read-authorizer-credential-user-token-secret-version
help_text: |-
A SecretManager resource containing the user token that authorizes
the Developer Connect connection. Format:
`projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.bitbucketDataCenterConfig.readAuthorizerCredential.userTokenSecretVersion: '{__relative_name__}'
required: false
- group:
api_field: connection.bitbucketDataCenterConfig.authorizerCredential
required: false
help_text: |-
Represents a personal access token that authorized the Connection,
and associated metadata.
params:
- arg_name: bitbucket-data-center-config-authorizer-credential-user-token-secret-version
help_text: |-
A SecretManager resource containing the user token that authorizes
the Developer Connect connection. Format:
`projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.bitbucketDataCenterConfig.authorizerCredential.userTokenSecretVersion: '{__relative_name__}'
required: false
- group:
api_field: connection.bitbucketDataCenterConfig.serviceDirectoryConfig
required: false
help_text: |-
ServiceDirectoryConfig represents Service Directory configuration for a
connection.
params:
- arg_name: bitbucket-data-center-config-service-directory
help_text: |-
The Service Directory service name.
Format:
projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_namespaces_services
resource_method_params:
connection.bitbucketDataCenterConfig.serviceDirectoryConfig.service: '{__relative_name__}'
required: false
- arg_name: bitbucket-data-center-config-ssl-ca-certificate
api_field: connection.bitbucketDataCenterConfig.sslCaCertificate
required: false
repeated: false
help_text: |-
SSL certificate authority to trust when making requests to Bitbucket Data
Center.
- group:
api_field: connection.bitbucketCloudConfig
arg_name: bitbucket-cloud-config
clearable: true
required: false
help_text: |-
Configuration for connections to an instance of Bitbucket Cloud.
params:
- arg_name: bitbucket-cloud-config-workspace
api_field: connection.bitbucketCloudConfig.workspace
required: false
repeated: false
help_text: |-
The Bitbucket Cloud Workspace ID to be connected to Google Cloud Platform.
- group:
api_field: connection.bitbucketCloudConfig.readAuthorizerCredential
required: false
help_text: |-
Represents a personal access token that authorized the Connection,
and associated metadata.
params:
- arg_name: bitbucket-cloud-config-read-authorizer-credential-user-token-secret-version
help_text: |-
A SecretManager resource containing the user token that authorizes
the Developer Connect connection. Format:
`projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.bitbucketCloudConfig.readAuthorizerCredential.userTokenSecretVersion: '{__relative_name__}'
required: false
- group:
api_field: connection.bitbucketCloudConfig.authorizerCredential
required: false
help_text: |-
Represents a personal access token that authorized the Connection,
and associated metadata.
params:
- arg_name: bitbucket-cloud-config-authorizer-credential-user-token-secret-version
help_text: |-
A SecretManager resource containing the user token that authorizes
the Developer Connect connection. Format:
`projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.bitbucketCloudConfig.authorizerCredential.userTokenSecretVersion: '{__relative_name__}'
required: false
- group:
api_field: connection.httpConfig
arg_name: http-config
clearable: true
required: false
hidden: true
help_text: |-
Configuration for connections to an HTTP service provider.
params:
- group:
mutex: true
help_text: |-
Arguments for the authentication.
params:
- group:
api_field: connection.httpConfig.basicAuthentication
required: false
help_text: |-
Basic authentication with username and password.
params:
- group:
mutex: true
help_text: |-
Arguments for the password.
params:
- arg_name: http-config-basic-authentication-password-secret-version
help_text: |-
The password SecretManager secret version to authenticate as.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.httpConfig.basicAuthentication.passwordSecretVersion: '{__relative_name__}'
required: false
clearable: true
- arg_name: http-config-basic-authentication-username
api_field: connection.httpConfig.basicAuthentication.username
required: false
repeated: false
help_text: |-
The username to authenticate as.
- group:
api_field: connection.httpConfig.bearerTokenAuthentication
required: false
help_text: |-
Bearer token authentication with a token.
params:
- group:
mutex: true
help_text: |-
Arguments for the token.
params:
- arg_name: http-config-bearer-token-authentication-secret-version
help_text: |-
The token SecretManager secret version to authenticate as.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.httpConfig.bearerTokenAuthentication.tokenSecretVersion: '{__relative_name__}'
required: false
clearable: true
- group:
api_field: connection.httpConfig.serviceDirectoryConfig
required: false
help_text: |-
ServiceDirectoryConfig represents Service Directory configuration for a
connection.
params:
- arg_name: http-config-service-directory
help_text: |-
The Service Directory service name.
Format:
projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_namespaces_services
resource_method_params:
connection.httpConfig.serviceDirectoryConfig.service: '{__relative_name__}'
required: false
- arg_name: http-config-ssl-ca-certificate
api_field: connection.httpConfig.sslCaCertificate
required: false
repeated: false
help_text: |-
The SSL certificate to use for requests to the HTTP service provider.
- help_text: |-
Identifier. The resource name of the connection, in the format
`projects/{project}/locations/{location}/connections/{connection_id}`.
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_connections
required: true
- arg_name: labels
api_field: connection.labels
required: false
repeated: true
help_text: |-
Labels as key value pairs
clearable: true
spec:
- api_field: key
- api_field: value
- arg_name: disabled
api_field: connection.disabled
action: store_true_false
required: false
type: bool
help_text: |-
If disabled is set to true, functionality is disabled for this connection.
Repository based API methods and webhooks processing for repositories in
this connection will be disabled.
- arg_name: annotations
api_field: connection.annotations
required: false
repeated: true
help_text: |-
Allows clients to store small amounts of arbitrary data.
clearable: true
spec:
- api_field: key
- api_field: value
- arg_name: etag
api_field: connection.etag
required: false
repeated: false
help_text: |-
This checksum is computed by the server based on the value of other
fields, and may be sent on update and delete requests to ensure the
client has an up-to-date value before proceeding.
- group:
api_field: connection.cryptoKeyConfig
arg_name: crypto-key-config
clearable: true
required: false
help_text: |-
The crypto key configuration. This field is used by the Customer-managed
encryption keys (CMEK) feature.
params:
- arg_name: crypto-key-config-reference
help_text: |-
The name of the key which is used to encrypt/decrypt customer data. For key
in Cloud KMS, the key should be in the format of
`projects/*/locations/*/keyRings/*/cryptoKeys/*`.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_key_rings_crypto_keys
resource_method_params:
connection.cryptoKeyConfig.keyReference: '{__relative_name__}'
required: false
- group:
api_field: connection.gitProxyConfig
arg_name: git-proxy-config
clearable: true
required: false
help_text: |-
The git proxy configuration.
params:
- arg_name: git-proxy-config-enabled
api_field: connection.gitProxyConfig.enabled
action: store_true_false
required: false
type: bool
help_text: |-
Setting this to true allows the git proxy to be used for performing git
operations on the repositories linked in the connection.
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and the
request times out. If you make the request again with the same request
ID, the server can check if original operation with the same request ID
was received, and if so, will ignore the second request. This prevents
clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
- arg_name: allow-missing
api_field: allowMissing
action: store_true_false
required: false
type: bool
help_text: |-
If set to true, and the connection is not found a new connection
will be created. In this situation `update_mask` is ignored.
The creation will succeed only if the input connection has all the
necessary information (e.g a github_config with both user_oauth_token and
installation_id properties).
- arg_name: validate-only
api_field: validateOnly
action: store_true_false
required: false
type: bool
help_text: |-
If set, validate the request, but do not actually post it.
request:
api_version: v1
collection:
- developerconnect.projects.locations.connections
static_fields:
updateMask: '*'
async:
collection:
- developerconnect.projects.locations.operations
update:
read_modify_update: true
disable_auto_field_mask: true

View File

@@ -0,0 +1,621 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- GA
auto_generated: true
help_text:
brief: Update the parameters of a single connection
description: |
Update a connection.
examples: |-
To update the labels of a connection `my-connection` in location `us-central1` run:
$ {command} my-connection --labels=key1=value1 --location=us-central1
arguments:
params:
- group:
mutex: true
help_text: |-
Arguments for the connection config.
params:
- group:
api_field: connection.githubConfig
arg_name: github-config
clearable: true
required: false
help_text: |-
Configuration for connections to github.com.
params:
- group:
api_field: connection.githubConfig.authorizerCredential
required: false
help_text: |-
Represents an OAuth token of the account that authorized the Connection,
and associated metadata.
params:
- arg_name: github-config-authorizer-credential-oauth-token-secret-version
help_text: |-
A SecretManager resource containing the OAuth token that authorizes
the connection. Format: `projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.githubConfig.authorizerCredential.oauthTokenSecretVersion: '{__relative_name__}'
required: false
- arg_name: github-config-app-installation-id
api_field: connection.githubConfig.appInstallationId
required: false
repeated: false
type: long
help_text: |-
GitHub App installation id.
- group:
api_field: connection.githubEnterpriseConfig
arg_name: github-enterprise-config
clearable: true
required: false
help_text: |-
Configuration for connections to an instance of GitHub Enterprise.
params:
- arg_name: github-enterprise-config-host-uri
api_field: connection.githubEnterpriseConfig.hostUri
required: false
repeated: false
help_text: |-
The URI of the GitHub Enterprise host this connection is for.
- arg_name: github-enterprise-config-app-id
api_field: connection.githubEnterpriseConfig.appId
required: false
repeated: false
type: long
help_text: |-
ID of the GitHub App created from the manifest.
- arg_name: github-enterprise-config-private-key-secret-version
help_text: |-
SecretManager resource containing the private key of the GitHub App,
formatted as `projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.githubEnterpriseConfig.privateKeySecretVersion: '{__relative_name__}'
required: false
clearable: true
- arg_name: github-enterprise-config-webhook-secret-version
help_text: |-
SecretManager resource containing the webhook secret of the GitHub App,
formatted as `projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.githubEnterpriseConfig.webhookSecretSecretVersion: '{__relative_name__}'
required: false
clearable: true
- arg_name: github-enterprise-config-app-installation-id
api_field: connection.githubEnterpriseConfig.appInstallationId
required: false
repeated: false
type: long
help_text: |-
ID of the installation of the GitHub App.
- group:
api_field: connection.githubEnterpriseConfig.serviceDirectoryConfig
required: false
help_text: |-
ServiceDirectoryConfig represents Service Directory configuration for a
connection.
params:
- arg_name: github-enterprise-config-service-directory
help_text: |-
The Service Directory service name.
Format:
projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_namespaces_services
resource_method_params:
connection.githubEnterpriseConfig.serviceDirectoryConfig.service: '{__relative_name__}'
required: false
- arg_name: github-enterprise-config-ssl-ca-certificate
api_field: connection.githubEnterpriseConfig.sslCaCertificate
required: false
repeated: false
help_text: |-
SSL certificate to use for requests to GitHub Enterprise.
- group:
api_field: connection.gitlabConfig
arg_name: gitlab-config
clearable: true
required: false
help_text: |-
Configuration for connections to gitlab.com.
params:
- group:
api_field: connection.gitlabConfig.readAuthorizerCredential
required: false
help_text: |-
Represents a personal access token that authorized the Connection,
and associated metadata.
params:
- arg_name: gitlab-config-read-authorizer-credential-user-token-secret-version
help_text: |-
A SecretManager resource containing the user token that authorizes
the Developer Connect connection. Format:
`projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.gitlabConfig.readAuthorizerCredential.userTokenSecretVersion: '{__relative_name__}'
required: false
- group:
api_field: connection.gitlabConfig.authorizerCredential
required: false
help_text: |-
Represents a personal access token that authorized the Connection,
and associated metadata.
params:
- arg_name: gitlab-config-authorizer-credential-user-token-secret-version
help_text: |-
A SecretManager resource containing the user token that authorizes
the Developer Connect connection. Format:
`projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.gitlabConfig.authorizerCredential.userTokenSecretVersion: '{__relative_name__}'
required: false
- group:
api_field: connection.gitlabEnterpriseConfig
arg_name: gitlab-enterprise-config
clearable: true
required: false
help_text: |-
Configuration for connections to an instance of GitLab Enterprise.
params:
- arg_name: gitlab-enterprise-config-host-uri
api_field: connection.gitlabEnterpriseConfig.hostUri
required: false
repeated: false
help_text: |-
The URI of the GitLab Enterprise host this connection is for.
- group:
api_field: connection.gitlabEnterpriseConfig.readAuthorizerCredential
required: false
help_text: |-
Represents a personal access token that authorized the Connection,
and associated metadata.
params:
- arg_name: gitlab-enterprise-config-read-authorizer-credential-user-token-secret-version
help_text: |-
A SecretManager resource containing the user token that authorizes
the Developer Connect connection. Format:
`projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.gitlabEnterpriseConfig.readAuthorizerCredential.userTokenSecretVersion: '{__relative_name__}'
required: false
- group:
api_field: connection.gitlabEnterpriseConfig.authorizerCredential
required: false
help_text: |-
Represents a personal access token that authorized the Connection,
and associated metadata.
params:
- arg_name: gitlab-enterprise-config-authorizer-credential-user-token-secret-version
help_text: |-
A SecretManager resource containing the user token that authorizes
the Developer Connect connection. Format:
`projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.gitlabEnterpriseConfig.authorizerCredential.userTokenSecretVersion: '{__relative_name__}'
required: false
- group:
api_field: connection.gitlabEnterpriseConfig.serviceDirectoryConfig
required: false
help_text: |-
ServiceDirectoryConfig represents Service Directory configuration for a
connection.
params:
- arg_name: gitlab-enterprise-config-service-directory
help_text: |-
The Service Directory service name.
Format:
projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_namespaces_services
resource_method_params:
connection.gitlabEnterpriseConfig.serviceDirectoryConfig.service: '{__relative_name__}'
required: false
- arg_name: gitlab-enterprise-config-ssl-ca-certificate
api_field: connection.gitlabEnterpriseConfig.sslCaCertificate
required: false
repeated: false
help_text: |-
SSL Certificate Authority certificate to use for requests to GitLab
Enterprise instance.
- group:
api_field: connection.bitbucketDataCenterConfig
arg_name: bitbucket-data-center-config
clearable: true
required: false
help_text: |-
Configuration for connections to an instance of Bitbucket Data Center.
params:
- arg_name: bitbucket-data-center-config-host-uri
api_field: connection.bitbucketDataCenterConfig.hostUri
required: false
repeated: false
help_text: |-
The URI of the Bitbucket Data Center host this connection is for.
- group:
api_field: connection.bitbucketDataCenterConfig.readAuthorizerCredential
required: false
help_text: |-
Represents a personal access token that authorized the Connection,
and associated metadata.
params:
- arg_name: bitbucket-data-center-config-read-authorizer-credential-user-token-secret-version
help_text: |-
A SecretManager resource containing the user token that authorizes
the Developer Connect connection. Format:
`projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.bitbucketDataCenterConfig.readAuthorizerCredential.userTokenSecretVersion: '{__relative_name__}'
required: false
- group:
api_field: connection.bitbucketDataCenterConfig.authorizerCredential
required: false
help_text: |-
Represents a personal access token that authorized the Connection,
and associated metadata.
params:
- arg_name: bitbucket-data-center-config-authorizer-credential-user-token-secret-version
help_text: |-
A SecretManager resource containing the user token that authorizes
the Developer Connect connection. Format:
`projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.bitbucketDataCenterConfig.authorizerCredential.userTokenSecretVersion: '{__relative_name__}'
required: false
- group:
api_field: connection.bitbucketDataCenterConfig.serviceDirectoryConfig
required: false
help_text: |-
ServiceDirectoryConfig represents Service Directory configuration for a
connection.
params:
- arg_name: bitbucket-data-center-config-service-directory
help_text: |-
The Service Directory service name.
Format:
projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_namespaces_services
resource_method_params:
connection.bitbucketDataCenterConfig.serviceDirectoryConfig.service: '{__relative_name__}'
required: false
- arg_name: bitbucket-data-center-config-ssl-ca-certificate
api_field: connection.bitbucketDataCenterConfig.sslCaCertificate
required: false
repeated: false
help_text: |-
SSL certificate authority to trust when making requests to Bitbucket Data
Center.
- group:
api_field: connection.bitbucketCloudConfig
arg_name: bitbucket-cloud-config
clearable: true
required: false
help_text: |-
Configuration for connections to an instance of Bitbucket Cloud.
params:
- arg_name: bitbucket-cloud-config-workspace
api_field: connection.bitbucketCloudConfig.workspace
required: false
repeated: false
help_text: |-
The Bitbucket Cloud Workspace ID to be connected to Google Cloud Platform.
- group:
api_field: connection.bitbucketCloudConfig.readAuthorizerCredential
required: false
help_text: |-
Represents a personal access token that authorized the Connection,
and associated metadata.
params:
- arg_name: bitbucket-cloud-config-read-authorizer-credential-user-token-secret-version
help_text: |-
A SecretManager resource containing the user token that authorizes
the Developer Connect connection. Format:
`projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.bitbucketCloudConfig.readAuthorizerCredential.userTokenSecretVersion: '{__relative_name__}'
required: false
- group:
api_field: connection.bitbucketCloudConfig.authorizerCredential
required: false
help_text: |-
Represents a personal access token that authorized the Connection,
and associated metadata.
params:
- arg_name: bitbucket-cloud-config-authorizer-credential-user-token-secret-version
help_text: |-
A SecretManager resource containing the user token that authorizes
the Developer Connect connection. Format:
`projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.bitbucketCloudConfig.authorizerCredential.userTokenSecretVersion: '{__relative_name__}'
required: false
- group:
api_field: connection.httpConfig
arg_name: http-config
clearable: true
required: false
hidden: true
help_text: |-
Configuration for connections to an HTTP service provider.
params:
- group:
mutex: true
help_text: |-
Arguments for the authentication.
params:
- group:
api_field: connection.httpConfig.basicAuthentication
required: false
help_text: |-
Basic authentication with username and password.
params:
- group:
mutex: true
help_text: |-
Arguments for the password.
params:
- arg_name: http-config-basic-authentication-password-secret-version
help_text: |-
The password SecretManager secret version to authenticate as.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.httpConfig.basicAuthentication.passwordSecretVersion: '{__relative_name__}'
required: false
clearable: true
- arg_name: http-config-basic-authentication-username
api_field: connection.httpConfig.basicAuthentication.username
required: false
repeated: false
help_text: |-
The username to authenticate as.
- group:
api_field: connection.httpConfig.bearerTokenAuthentication
required: false
help_text: |-
Bearer token authentication with a token.
params:
- group:
mutex: true
help_text: |-
Arguments for the token.
params:
- arg_name: http-config-bearer-token-authentication-secret-version
help_text: |-
The token SecretManager secret version to authenticate as.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_or_projects_secrets_versions
resource_method_params:
connection.httpConfig.bearerTokenAuthentication.tokenSecretVersion: '{__relative_name__}'
required: false
clearable: true
- group:
api_field: connection.httpConfig.serviceDirectoryConfig
required: false
help_text: |-
ServiceDirectoryConfig represents Service Directory configuration for a
connection.
params:
- arg_name: http-config-service-directory
help_text: |-
The Service Directory service name.
Format:
projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_namespaces_services
resource_method_params:
connection.httpConfig.serviceDirectoryConfig.service: '{__relative_name__}'
required: false
- arg_name: http-config-ssl-ca-certificate
api_field: connection.httpConfig.sslCaCertificate
required: false
repeated: false
help_text: |-
The SSL certificate to use for requests to the HTTP service provider.
- help_text: |-
Identifier. The resource name of the connection, in the format
`projects/{project}/locations/{location}/connections/{connection_id}`.
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_connections
required: true
- arg_name: labels
api_field: connection.labels
required: false
repeated: true
help_text: |-
Labels as key value pairs
clearable: true
spec:
- api_field: key
- api_field: value
- arg_name: disabled
api_field: connection.disabled
action: store_true_false
required: false
type: bool
help_text: |-
If disabled is set to true, functionality is disabled for this connection.
Repository based API methods and webhooks processing for repositories in
this connection will be disabled.
- arg_name: annotations
api_field: connection.annotations
required: false
repeated: true
help_text: |-
Allows clients to store small amounts of arbitrary data.
clearable: true
spec:
- api_field: key
- api_field: value
- arg_name: etag
api_field: connection.etag
required: false
repeated: false
help_text: |-
This checksum is computed by the server based on the value of other
fields, and may be sent on update and delete requests to ensure the
client has an up-to-date value before proceeding.
- group:
api_field: connection.cryptoKeyConfig
arg_name: crypto-key-config
clearable: true
required: false
help_text: |-
The crypto key configuration. This field is used by the Customer-managed
encryption keys (CMEK) feature.
params:
- arg_name: crypto-key-config-reference
help_text: |-
The name of the key which is used to encrypt/decrypt customer data. For key
in Cloud KMS, the key should be in the format of
`projects/*/locations/*/keyRings/*/cryptoKeys/*`.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_key_rings_crypto_keys
resource_method_params:
connection.cryptoKeyConfig.keyReference: '{__relative_name__}'
required: false
- group:
api_field: connection.gitProxyConfig
arg_name: git-proxy-config
clearable: true
required: false
help_text: |-
The git proxy configuration.
params:
- arg_name: git-proxy-config-enabled
api_field: connection.gitProxyConfig.enabled
action: store_true_false
required: false
type: bool
help_text: |-
Setting this to true allows the git proxy to be used for performing git
operations on the repositories linked in the connection.
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and the
request times out. If you make the request again with the same request
ID, the server can check if original operation with the same request ID
was received, and if so, will ignore the second request. This prevents
clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
- arg_name: allow-missing
api_field: allowMissing
action: store_true_false
required: false
type: bool
help_text: |-
If set to true, and the connection is not found a new connection
will be created. In this situation `update_mask` is ignored.
The creation will succeed only if the input connection has all the
necessary information (e.g a github_config with both user_oauth_token and
installation_id properties).
- arg_name: validate-only
api_field: validateOnly
action: store_true_false
required: false
type: bool
help_text: |-
If set, validate the request, but do not actually post it.
request:
api_version: v1
collection:
- developerconnect.projects.locations.connections
static_fields:
updateMask: '*'
async:
collection:
- developerconnect.projects.locations.operations
update:
read_modify_update: true
disable_auto_field_mask: true

View File

@@ -0,0 +1,18 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
_PARTIALS_: true

View File

@@ -0,0 +1,18 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
_PARTIALS_: true

View File

@@ -0,0 +1,18 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
_PARTIALS_: true

View File

@@ -0,0 +1,39 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
"""Manage git repository link resources."""
from googlecloudsdk.calliope import base
from surface.developer_connect.connections.git_repository_links import _init_extensions as extensions
@base.ReleaseTracks(base.ReleaseTrack.ALPHA)
@base.Autogenerated
class GitRepositoryLinksAlpha(extensions.GitRepositoryLinksAlpha):
"""Manage git repository link resources."""
@base.ReleaseTracks(base.ReleaseTrack.BETA)
@base.Autogenerated
class GitRepositoryLinksBeta(extensions.GitRepositoryLinksBeta):
"""Manage git repository link resources."""
@base.ReleaseTracks(base.ReleaseTrack.GA)
@base.Autogenerated
class GitRepositoryLinksGa(extensions.GitRepositoryLinksGa):
"""Manage git repository link resources."""

View File

@@ -0,0 +1,31 @@
# -*- coding: utf-8 -*- #
# Copyright 2024 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
"""File to add optional custom code to extend __init__.py."""
from googlecloudsdk.calliope import base
class GitRepositoryLinksAlpha(base.Group):
"""Optional no-auto-generated code for ALPHA."""
class GitRepositoryLinksBeta(base.Group):
"""Optional no-auto-generated code for BETA."""
class GitRepositoryLinksGa(base.Group):
"""Optional no-auto-generated code for GA."""

View File

@@ -0,0 +1,107 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- ALPHA
auto_generated: true
help_text:
brief: Create a git repository link
description: |
Create a git repository link.
examples: |-
To create a git repository link 'my-git-repository-link' in a connection `my-connection` in `us-central1` run:
$ {command} my-git-repository-link --clone-uri=https://github.com/my-org/my-repo.git --connection=my-connection --location=us-central1
Or run:
$ {command} projects/my-project/locations/us-central1/connections/my-connection/gitRepositoryLinks/my-git-repository-link --clone-uri=https://github.com/my-org/my-repo.git --location=us-central1
arguments:
params:
- help_text: |-
Identifier. Resource name of the repository, in the format
`projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
is_positional: true
is_primary_resource: true
request_id_field: gitRepositoryLinkId
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_connections_git_repository_links
required: true
- arg_name: clone-uri
api_field: gitRepositoryLink.cloneUri
required: true
repeated: false
help_text: |-
Git Clone URI.
- arg_name: labels
api_field: gitRepositoryLink.labels
required: false
repeated: true
help_text: |-
Labels as key value pairs
spec:
- api_field: key
- api_field: value
- arg_name: etag
api_field: gitRepositoryLink.etag
required: false
repeated: false
help_text: |-
This checksum is computed by the server based on the value of other
fields, and may be sent on update and delete requests to ensure the
client has an up-to-date value before proceeding.
- arg_name: annotations
api_field: gitRepositoryLink.annotations
required: false
repeated: true
help_text: |-
Allows clients to store small amounts of arbitrary data.
spec:
- api_field: key
- api_field: value
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and the
request times out. If you make the request again with the same request
ID, the server can check if original operation with the same request ID
was received, and if so, will ignore the second request. This prevents
clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
- arg_name: validate-only
api_field: validateOnly
action: store_true
required: false
type: bool
help_text: |-
If set, validate the request, but do not actually post it.
default: null
request:
api_version: v1
collection:
- developerconnect.projects.locations.connections.gitRepositoryLinks
async:
collection:
- developerconnect.projects.locations.operations

View File

@@ -0,0 +1,107 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- BETA
auto_generated: true
help_text:
brief: Create a git repository link
description: |
Create a git repository link.
examples: |-
To create a git repository link 'my-git-repository-link' in a connection `my-connection` in `us-central1` run:
$ {command} my-git-repository-link --clone-uri=https://github.com/my-org/my-repo.git --connection=my-connection --location=us-central1
Or run:
$ {command} projects/my-project/locations/us-central1/connections/my-connection/gitRepositoryLinks/my-git-repository-link --clone-uri=https://github.com/my-org/my-repo.git --location=us-central1
arguments:
params:
- help_text: |-
Identifier. Resource name of the repository, in the format
`projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
is_positional: true
is_primary_resource: true
request_id_field: gitRepositoryLinkId
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_connections_git_repository_links
required: true
- arg_name: clone-uri
api_field: gitRepositoryLink.cloneUri
required: true
repeated: false
help_text: |-
Git Clone URI.
- arg_name: labels
api_field: gitRepositoryLink.labels
required: false
repeated: true
help_text: |-
Labels as key value pairs
spec:
- api_field: key
- api_field: value
- arg_name: etag
api_field: gitRepositoryLink.etag
required: false
repeated: false
help_text: |-
This checksum is computed by the server based on the value of other
fields, and may be sent on update and delete requests to ensure the
client has an up-to-date value before proceeding.
- arg_name: annotations
api_field: gitRepositoryLink.annotations
required: false
repeated: true
help_text: |-
Allows clients to store small amounts of arbitrary data.
spec:
- api_field: key
- api_field: value
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and the
request times out. If you make the request again with the same request
ID, the server can check if original operation with the same request ID
was received, and if so, will ignore the second request. This prevents
clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
- arg_name: validate-only
api_field: validateOnly
action: store_true
required: false
type: bool
help_text: |-
If set, validate the request, but do not actually post it.
default: null
request:
api_version: v1
collection:
- developerconnect.projects.locations.connections.gitRepositoryLinks
async:
collection:
- developerconnect.projects.locations.operations

View File

@@ -0,0 +1,107 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- GA
auto_generated: true
help_text:
brief: Create a git repository link
description: |
Create a git repository link.
examples: |-
To create a git repository link 'my-git-repository-link' in a connection `my-connection` in `us-central1` run:
$ {command} my-git-repository-link --clone-uri=https://github.com/my-org/my-repo.git --connection=my-connection --location=us-central1
Or run:
$ {command} projects/my-project/locations/us-central1/connections/my-connection/gitRepositoryLinks/my-git-repository-link --clone-uri=https://github.com/my-org/my-repo.git --location=us-central1
arguments:
params:
- help_text: |-
Identifier. Resource name of the repository, in the format
`projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
is_positional: true
is_primary_resource: true
request_id_field: gitRepositoryLinkId
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_connections_git_repository_links
required: true
- arg_name: clone-uri
api_field: gitRepositoryLink.cloneUri
required: true
repeated: false
help_text: |-
Git Clone URI.
- arg_name: labels
api_field: gitRepositoryLink.labels
required: false
repeated: true
help_text: |-
Labels as key value pairs
spec:
- api_field: key
- api_field: value
- arg_name: etag
api_field: gitRepositoryLink.etag
required: false
repeated: false
help_text: |-
This checksum is computed by the server based on the value of other
fields, and may be sent on update and delete requests to ensure the
client has an up-to-date value before proceeding.
- arg_name: annotations
api_field: gitRepositoryLink.annotations
required: false
repeated: true
help_text: |-
Allows clients to store small amounts of arbitrary data.
spec:
- api_field: key
- api_field: value
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and the
request times out. If you make the request again with the same request
ID, the server can check if original operation with the same request ID
was received, and if so, will ignore the second request. This prevents
clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
- arg_name: validate-only
api_field: validateOnly
action: store_true
required: false
type: bool
help_text: |-
If set, validate the request, but do not actually post it.
default: null
request:
api_version: v1
collection:
- developerconnect.projects.locations.connections.gitRepositoryLinks
async:
collection:
- developerconnect.projects.locations.operations

View File

@@ -0,0 +1,77 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- ALPHA
auto_generated: true
help_text:
brief: Delete a single git repository link
description: |
Delete a single git repository link.
examples: |-
To delete a git repository link `my-git-repository-link` in a connection `my-connection` in location `us-central1` run:
$ {command} my-git-repository-link --connection=my-connection --location=us-central1
arguments:
params:
- help_text: |-
Name of the resource
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_connections_git_repository_links
required: true
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes after the first request.
For example, consider a situation where you make an initial request and the
request times out. If you make the request again with the same request
ID, the server can check if original operation with the same request ID
was received, and if so, will ignore the second request. This prevents
clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
- arg_name: validate-only
api_field: validateOnly
action: store_true
required: false
type: bool
help_text: |-
If set, validate the request, but do not actually post it.
default: null
- arg_name: etag
api_field: etag
required: false
repeated: false
help_text: |-
This checksum is computed by the server based on the value of other
fields, and may be sent on update and delete requests to ensure the
client has an up-to-date value before proceeding.
request:
api_version: v1
collection:
- developerconnect.projects.locations.connections.gitRepositoryLinks
async:
collection:
- developerconnect.projects.locations.operations

View File

@@ -0,0 +1,77 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- BETA
auto_generated: true
help_text:
brief: Delete a single git repository link
description: |
Delete a single git repository link.
examples: |-
To delete a git repository link `my-git-repository-link` in a connection `my-connection` in location `us-central1` run:
$ {command} my-git-repository-link --connection=my-connection --location=us-central1
arguments:
params:
- help_text: |-
Name of the resource
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_connections_git_repository_links
required: true
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes after the first request.
For example, consider a situation where you make an initial request and the
request times out. If you make the request again with the same request
ID, the server can check if original operation with the same request ID
was received, and if so, will ignore the second request. This prevents
clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
- arg_name: validate-only
api_field: validateOnly
action: store_true
required: false
type: bool
help_text: |-
If set, validate the request, but do not actually post it.
default: null
- arg_name: etag
api_field: etag
required: false
repeated: false
help_text: |-
This checksum is computed by the server based on the value of other
fields, and may be sent on update and delete requests to ensure the
client has an up-to-date value before proceeding.
request:
api_version: v1
collection:
- developerconnect.projects.locations.connections.gitRepositoryLinks
async:
collection:
- developerconnect.projects.locations.operations

View File

@@ -0,0 +1,77 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- GA
auto_generated: true
help_text:
brief: Delete a single git repository link
description: |
Delete a single git repository link.
examples: |-
To delete a git repository link `my-git-repository-link` in a connection `my-connection` in location `us-central1` run:
$ {command} my-git-repository-link --connection=my-connection --location=us-central1
arguments:
params:
- help_text: |-
Name of the resource
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_connections_git_repository_links
required: true
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes after the first request.
For example, consider a situation where you make an initial request and the
request times out. If you make the request again with the same request
ID, the server can check if original operation with the same request ID
was received, and if so, will ignore the second request. This prevents
clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
- arg_name: validate-only
api_field: validateOnly
action: store_true
required: false
type: bool
help_text: |-
If set, validate the request, but do not actually post it.
default: null
- arg_name: etag
api_field: etag
required: false
repeated: false
help_text: |-
This checksum is computed by the server based on the value of other
fields, and may be sent on update and delete requests to ensure the
client has an up-to-date value before proceeding.
request:
api_version: v1
collection:
- developerconnect.projects.locations.connections.gitRepositoryLinks
async:
collection:
- developerconnect.projects.locations.operations

View File

@@ -0,0 +1,40 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- ALPHA
auto_generated: true
help_text:
brief: Get details of a single git repository link
description: |
Get details of a single git repository link.
examples: |-
To get the details of a single git repository link `my-git-repository-link` in a conenction `my-connection` in location `us-central1` run:
$ {command} my-git-repository-link --connection=my-connection --location=us-central1-a
arguments:
params:
- help_text: |-
Name of the resource
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_connections_git_repository_links
required: true
request:
api_version: v1
collection:
- developerconnect.projects.locations.connections.gitRepositoryLinks

View File

@@ -0,0 +1,40 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- BETA
auto_generated: true
help_text:
brief: Get details of a single git repository link
description: |
Get details of a single git repository link.
examples: |-
To get the details of a single git repository link `my-git-repository-link` in a conenction `my-connection` in location `us-central1` run:
$ {command} my-git-repository-link --connection=my-connection --location=us-central1-a
arguments:
params:
- help_text: |-
Name of the resource
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_connections_git_repository_links
required: true
request:
api_version: v1
collection:
- developerconnect.projects.locations.connections.gitRepositoryLinks

View File

@@ -0,0 +1,40 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- GA
auto_generated: true
help_text:
brief: Get details of a single git repository link
description: |
Get details of a single git repository link.
examples: |-
To get the details of a single git repository link `my-git-repository-link` in a conenction `my-connection` in location `us-central1` run:
$ {command} my-git-repository-link --connection=my-connection --location=us-central1-a
arguments:
params:
- help_text: |-
Name of the resource
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_connections_git_repository_links
required: true
request:
api_version: v1
collection:
- developerconnect.projects.locations.connections.gitRepositoryLinks

View File

@@ -0,0 +1,42 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- ALPHA
auto_generated: true
help_text:
brief: List all git repository links in a connection
description: |
List all git repository links in a connection.
examples: |-
To list all git repository links in a connection `my-connection` in location `us-central1` run:
$ {command} --connection=my-connection --location=us-central1
arguments:
params:
- help_text: |-
Parent value for ListGitRepositoryLinksRequest
is_positional: false
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_connections
required: true
request:
api_version: v1
collection:
- developerconnect.projects.locations.connections.gitRepositoryLinks
response:
id_field: name

View File

@@ -0,0 +1,42 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- BETA
auto_generated: true
help_text:
brief: List all git repository links in a connection
description: |
List all git repository links in a connection.
examples: |-
To list all git repository links in a connection `my-connection` in location `us-central1` run:
$ {command} --connection=my-connection --location=us-central1
arguments:
params:
- help_text: |-
Parent value for ListGitRepositoryLinksRequest
is_positional: false
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_connections
required: true
request:
api_version: v1
collection:
- developerconnect.projects.locations.connections.gitRepositoryLinks
response:
id_field: name

View File

@@ -0,0 +1,42 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- GA
auto_generated: true
help_text:
brief: List all git repository links in a connection
description: |
List all git repository links in a connection.
examples: |-
To list all git repository links in a connection `my-connection` in location `us-central1` run:
$ {command} --connection=my-connection --location=us-central1
arguments:
params:
- help_text: |-
Parent value for ListGitRepositoryLinksRequest
is_positional: false
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_connections
required: true
request:
api_version: v1
collection:
- developerconnect.projects.locations.connections.gitRepositoryLinks
response:
id_field: name

View File

@@ -0,0 +1,18 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
_PARTIALS_: true

View File

@@ -0,0 +1,18 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
_PARTIALS_: true

View File

@@ -0,0 +1,18 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
_PARTIALS_: true

View File

@@ -0,0 +1,18 @@
- help_text:
brief: Fetch the read token of a given gitRepositoryLink.
description: |
Fetch the read token of a given gitRepositoryLink.
examples: |
To get the read token of a GitRepositoryLink named "my-git-repository-link" in a Connection named "my-connection" in location "us-central1":
$ {command} fetch-read-token my-git-repository-link --connection=my-connection --location=us-central1 --project=my-project
request:
collection: developerconnect.projects.locations.connections.gitRepositoryLinks
api_version: v1
method: fetchReadToken
arguments:
resource:
help_text: Developer Connect GitRepositoryLink from which to fetch the read token.
spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_connections_git_repository_links

View File

@@ -0,0 +1,18 @@
- help_text:
brief: Fetch the read/write token of a given gitRepositoryLink.
description: |
Fetch the read/write token of a given gitRepositoryLink.
examples: |
To get the read/write token of a GitRepositoryLink named "my-git-repository-link" in a Connection named "my-connection":
$ {command} fetch-read-write-token my-git-repository-link --connection=my-connection --location=us-central1 --project=my-project
request:
collection: developerconnect.projects.locations.connections.gitRepositoryLinks
api_version: v1
method: fetchReadWriteToken
arguments:
resource:
help_text: Developer Connect GitRepositoryLink from which to fetch the read/write token.
spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_connections_git_repository_links

View File

@@ -0,0 +1,18 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
_PARTIALS_: true

View File

@@ -0,0 +1,18 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
_PARTIALS_: true

View File

@@ -0,0 +1,18 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
_PARTIALS_: true

View File

@@ -0,0 +1,39 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
"""Manage Insights Config resources."""
from googlecloudsdk.calliope import base
from surface.developer_connect.insights_configs import _init_extensions as extensions
@base.ReleaseTracks(base.ReleaseTrack.ALPHA)
@base.Autogenerated
class InsightsConfigsAlpha(extensions.InsightsConfigsAlpha):
"""Manage Insights Config resources."""
@base.ReleaseTracks(base.ReleaseTrack.BETA)
@base.Autogenerated
class InsightsConfigsBeta(extensions.InsightsConfigsBeta):
"""Manage Insights Config resources."""
@base.ReleaseTracks(base.ReleaseTrack.GA)
@base.Autogenerated
class InsightsConfigsGa(extensions.InsightsConfigsGa):
"""Manage Insights Config resources."""

View File

@@ -0,0 +1,31 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
"""File to add optional custom code to extend __init__.py."""
from googlecloudsdk.calliope import base
class InsightsConfigsAlpha(base.Group):
"""Optional no-auto-generated code for ALPHA."""
class InsightsConfigsBeta(base.Group):
"""Optional no-auto-generated code for BETA."""
class InsightsConfigsGa(base.Group):
"""Optional no-auto-generated code for GA."""

View File

@@ -0,0 +1,76 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- ALPHA
auto_generated: true
help_text:
brief: Delete insightsConfigs
description: Delete an insightsConfig
examples: |-
To delete the insightsConfig, run:
$ {command}
arguments:
params:
- help_text: |-
Value for parent.
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_insights_configs
required: true
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes after the first request.
For example, consider a situation where you make an initial request and the
request times out. If you make the request again with the same request
ID, the server can check if original operation with the same request ID
was received, and if so, will ignore the second request. This prevents
clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
- arg_name: validate-only
api_field: validateOnly
action: store_true
required: false
type: bool
help_text: |-
If set, validate the request, but do not actually post it.
default: null
- arg_name: etag
api_field: etag
required: false
repeated: false
help_text: |-
This checksum is computed by the server based on the value of other
fields, and may be sent on update and delete requests to ensure the
client has an up-to-date value before proceeding.
request:
api_version: v1
collection:
- developerconnect.projects.locations.insightsConfigs
async:
collection:
- developerconnect.projects.locations.operations

View File

@@ -0,0 +1,76 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- BETA
auto_generated: true
help_text:
brief: Delete insightsConfigs
description: Delete an insightsConfig
examples: |-
To delete the insightsConfig, run:
$ {command}
arguments:
params:
- help_text: |-
Value for parent.
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_insights_configs
required: true
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes after the first request.
For example, consider a situation where you make an initial request and the
request times out. If you make the request again with the same request
ID, the server can check if original operation with the same request ID
was received, and if so, will ignore the second request. This prevents
clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
- arg_name: validate-only
api_field: validateOnly
action: store_true
required: false
type: bool
help_text: |-
If set, validate the request, but do not actually post it.
default: null
- arg_name: etag
api_field: etag
required: false
repeated: false
help_text: |-
This checksum is computed by the server based on the value of other
fields, and may be sent on update and delete requests to ensure the
client has an up-to-date value before proceeding.
request:
api_version: v1
collection:
- developerconnect.projects.locations.insightsConfigs
async:
collection:
- developerconnect.projects.locations.operations

View File

@@ -0,0 +1,76 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- GA
auto_generated: true
help_text:
brief: Delete insightsConfigs
description: Delete an insightsConfig
examples: |-
To delete the insightsConfig, run:
$ {command}
arguments:
params:
- help_text: |-
Value for parent.
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_insights_configs
required: true
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes after the first request.
For example, consider a situation where you make an initial request and the
request times out. If you make the request again with the same request
ID, the server can check if original operation with the same request ID
was received, and if so, will ignore the second request. This prevents
clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
- arg_name: validate-only
api_field: validateOnly
action: store_true
required: false
type: bool
help_text: |-
If set, validate the request, but do not actually post it.
default: null
- arg_name: etag
api_field: etag
required: false
repeated: false
help_text: |-
This checksum is computed by the server based on the value of other
fields, and may be sent on update and delete requests to ensure the
client has an up-to-date value before proceeding.
request:
api_version: v1
collection:
- developerconnect.projects.locations.insightsConfigs
async:
collection:
- developerconnect.projects.locations.operations

View File

@@ -0,0 +1,39 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- ALPHA
auto_generated: true
help_text:
brief: Describe insightsConfigs
description: Describe an insightsConfig
examples: |-
To describe the insightsConfig, run:
$ {command}
arguments:
params:
- help_text: |-
Name of the resource.
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_insights_configs
required: true
request:
api_version: v1
collection:
- developerconnect.projects.locations.insightsConfigs

View File

@@ -0,0 +1,39 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- BETA
auto_generated: true
help_text:
brief: Describe insightsConfigs
description: Describe an insightsConfig
examples: |-
To describe the insightsConfig, run:
$ {command}
arguments:
params:
- help_text: |-
Name of the resource.
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_insights_configs
required: true
request:
api_version: v1
collection:
- developerconnect.projects.locations.insightsConfigs

View File

@@ -0,0 +1,39 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- GA
auto_generated: true
help_text:
brief: Describe insightsConfigs
description: Describe an insightsConfig
examples: |-
To describe the insightsConfig, run:
$ {command}
arguments:
params:
- help_text: |-
Name of the resource.
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_insights_configs
required: true
request:
api_version: v1
collection:
- developerconnect.projects.locations.insightsConfigs

View File

@@ -0,0 +1,41 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- ALPHA
auto_generated: true
help_text:
brief: List insightsConfigs
description: List insightsConfigs
examples: |-
To list all insightsConfigs, run:
$ {command}
arguments:
params:
- help_text: |-
Parent value for ListInsightsConfigsRequest.
is_positional: false
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations
required: true
request:
api_version: v1
collection:
- developerconnect.projects.locations.insightsConfigs
response:
id_field: name

View File

@@ -0,0 +1,41 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- BETA
auto_generated: true
help_text:
brief: List insightsConfigs
description: List insightsConfigs
examples: |-
To list all insightsConfigs, run:
$ {command}
arguments:
params:
- help_text: |-
Parent value for ListInsightsConfigsRequest.
is_positional: false
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations
required: true
request:
api_version: v1
collection:
- developerconnect.projects.locations.insightsConfigs
response:
id_field: name

View File

@@ -0,0 +1,41 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- GA
auto_generated: true
help_text:
brief: List insightsConfigs
description: List insightsConfigs
examples: |-
To list all insightsConfigs, run:
$ {command}
arguments:
params:
- help_text: |-
Parent value for ListInsightsConfigsRequest.
is_positional: false
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations
required: true
request:
api_version: v1
collection:
- developerconnect.projects.locations.insightsConfigs
response:
id_field: name

View File

@@ -0,0 +1,93 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Update the configuration of an insight config."""
import datetime
from googlecloudsdk.api_lib.developer_connect.insights_configs import insights_config
from googlecloudsdk.api_lib.util import exceptions
from googlecloudsdk.calliope import base
from googlecloudsdk.command_lib.developer_connect import flags
from googlecloudsdk.command_lib.developer_connect import resource_args
from googlecloudsdk.core import log
DETAILED_HELP = {
'DESCRIPTION': """
Create an insights config.
""",
'EXAMPLES': """
To create an insights config with an apphub application, run:
$ {command} insights-config-name --app-hub-application=projects/my-project/locations/us-central1/applications/my-app-hub-application
To create an insights config with projects, run:
$ {command} insights-config-name --target-projects=project1,project2
""",
}
@base.ReleaseTracks(
base.ReleaseTrack.ALPHA, base.ReleaseTrack.BETA, base.ReleaseTrack.GA
)
@base.DefaultUniverseOnly
class Create(base.CreateCommand):
"""Create an insight config."""
@staticmethod
def Args(parser):
"""Adds arguments for this command."""
try:
resource_args.AddInsightConfigResourceArg(parser, verb='create')
except exceptions.HttpException as e:
log.status.Print('Failed to add insight config resource argument.')
raise e
# Relevant argument.
source_group = parser.add_mutually_exclusive_group(required=True)
flags.AddAppHubApplicationArgument(source_group)
flags.AddTargetProjectsArgument(source_group)
flags.AddArtifactConfigsArgument(parser)
def Run(self, args):
max_wait = datetime.timedelta(seconds=30)
client = insights_config.InsightsConfigClient(base.ReleaseTrack.ALPHA)
insights_config_ref = args.CONCEPTS.insights_config.Parse()
try:
operation = client.create(
insight_config_ref=insights_config_ref,
app_hub=args.app_hub_application,
target_projects=args.target_projects,
user_artifact_configs=args.artifact_configs,
)
except exceptions.HttpException as e:
log.status.Print('Failed to create the insight config {}.'.format(
insights_config_ref.RelativeName()
))
raise e
log.status.Print('Creating the insight config {}.'.format(
insights_config_ref.RelativeName()
))
return client.wait_for_operation(
operation_ref=client.get_operation_ref(operation),
message='Waiting for operation [{}] to be completed...'
.format(
client.get_operation_ref(operation).RelativeName()),
has_result=True,
max_wait=max_wait,
)
Create.detailed_help = DETAILED_HELP

View File

@@ -0,0 +1,18 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
_PARTIALS_: true

View File

@@ -0,0 +1,27 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
"""Manage Deployment Event resources."""
from googlecloudsdk.calliope import base
from surface.developer_connect.insights_configs.deployment_events import _init_extensions as extensions
@base.ReleaseTracks(base.ReleaseTrack.ALPHA)
@base.Autogenerated
class DeploymentEventsAlpha(extensions.DeploymentEventsAlpha):
"""Manage Deployment Event resources."""

View File

@@ -0,0 +1,31 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
"""File to add optional custom code to extend __init__.py."""
from googlecloudsdk.calliope import base
class DeploymentEventsAlpha(base.Group):
"""Optional no-auto-generated code for ALPHA."""
class DeploymentEventsBeta(base.Group):
"""Optional no-auto-generated code for BETA."""
class DeploymentEventsGa(base.Group):
"""Optional no-auto-generated code for GA."""

View File

@@ -0,0 +1,32 @@
- release_tracks: [ALPHA]
help_text:
brief: Describe a deploymentEvent
description: Describe a deploymentEvent
examples: |-
To describe a deploymentEvent, run:
$ {command} projects/PROJECT/locations/LOCATION/insightsConfigs/INSIGHTS_CONFIG/deploymentEvents/DEPLOYMENT_EVENT
arguments:
params:
- help_text: |-
The deployment event to describe.
Format:
projects/{project}/locations/{location}/insightsConfigs/{insights_config}/deploymentEvents/{deployment_event}
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_insights_configs_deployment_events
required: true
- arg_name: show-previous-diff
help_text: |-
If true, shows the diff between this deployment and the previous one.
action: store_true
hidden: true
request:
api_version: v1
collection: developerconnect.projects.locations.insightsConfigs.deploymentEvents
response:
id_field: name
modify_response_hooks:
- googlecloudsdk.command_lib.developer_connect.insights_configs.deploymentevent_describe:AddArtifactDetailsToResponse
- googlecloudsdk.command_lib.developer_connect.insights_configs.deploymentevent_describe:AddPreviousDiffToResponse

View File

@@ -0,0 +1,23 @@
- release_tracks: [ALPHA]
help_text:
brief: List deploymentEvents
description: List deploymentEvents
examples: |-
To list all deploymentEvents, run:
$ {command}
arguments:
params:
- help_text: |-
The parent insights config that owns this collection of deployment events.
Format:
projects/{project}/locations/{location}/insightsConfigs/{insights_config}
is_positional: false
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.v1_resources:projects_locations_insights_configs
required: true
request:
api_version: v1
collection:
- developerconnect.projects.locations.insightsConfigs.deploymentEvents

View File

@@ -0,0 +1,18 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
_PARTIALS_: true

View File

@@ -0,0 +1,18 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
_PARTIALS_: true

View File

@@ -0,0 +1,96 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Update the configuration of an insight config."""
import datetime
from googlecloudsdk.api_lib.developer_connect.insights_configs import insights_config
from googlecloudsdk.api_lib.util import exceptions
from googlecloudsdk.calliope import base
from googlecloudsdk.command_lib.developer_connect import flags
from googlecloudsdk.command_lib.developer_connect import resource_args
from googlecloudsdk.core import log
DETAILED_HELP = {
'DESCRIPTION': """
Update the configuration of an insights config.
""",
'EXAMPLES': """
To update the state of an insights config, run:
$ {command} insights-config-name --run-discovery
To update the Artifact Analysis project for an artifact in an insights config, run:
$ {command} insights-config-name --artifact-uri=us-{location}-docker.pkg.dev/my-project/my-artifact-repo/my-image --build-project={build_project}
""",
}
@base.ReleaseTracks(
base.ReleaseTrack.ALPHA, base.ReleaseTrack.BETA, base.ReleaseTrack.GA
)
@base.DefaultUniverseOnly
class Update(base.UpdateCommand):
"""Update the configuration of an insight config."""
@staticmethod
def Args(parser):
"""Adds arguments for this command."""
try:
resource_args.AddInsightConfigResourceArg(parser, verb='update')
except exceptions.HttpException as e:
log.status.Print('Failed to add insight config resource argument.')
raise e
# Relevant arguments and groups.
update_group = parser.add_group(
required=True, help='Update the insight config.'
)
artifact_group = update_group.add_group()
flags.AddDiscoveryArgument(update_group)
flags.AddArtifactArgument(artifact_group)
flags.AddBuildProjectArgument(artifact_group)
def Run(self, args):
max_wait = datetime.timedelta(seconds=30)
client = insights_config.InsightsConfigClient(base.ReleaseTrack.ALPHA)
insights_config_ref = args.CONCEPTS.insights_config.Parse()
try:
operation = client.update(
insight_config_ref=insights_config_ref,
discovery=args.run_discovery,
build_project=args.build_project,
artifact_uri=args.artifact_uri,
)
except exceptions.HttpException as e:
log.status.Print('Failed to update the insight config {}.'.format(
insights_config_ref.RelativeName()
))
raise e
log.status.Print('Updating the insight config {}.'.format(
insights_config_ref.RelativeName()
))
return client.wait_for_operation(
operation_ref=client.get_operation_ref(operation),
message='Waiting for operation [{}] to be completed...'
.format(
client.get_operation_ref(operation).RelativeName()),
has_result=True,
max_wait=max_wait,
)
Update.detailed_help = DETAILED_HELP

View File

@@ -0,0 +1,39 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
"""Manage Operation resources."""
from googlecloudsdk.calliope import base
from surface.developer_connect.operations import _init_extensions as extensions
@base.ReleaseTracks(base.ReleaseTrack.ALPHA)
@base.Autogenerated
class OperationsAlpha(extensions.OperationsAlpha):
"""Manage Operation resources."""
@base.ReleaseTracks(base.ReleaseTrack.BETA)
@base.Autogenerated
class OperationsBeta(extensions.OperationsBeta):
"""Manage Operation resources."""
@base.ReleaseTracks(base.ReleaseTrack.GA)
@base.Autogenerated
class OperationsGa(extensions.OperationsGa):
"""Manage Operation resources."""

View File

@@ -0,0 +1,31 @@
# -*- coding: utf-8 -*- #
# Copyright 2024 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
"""File to add optional custom code to extend __init__.py."""
from googlecloudsdk.calliope import base
class OperationsAlpha(base.Group):
"""Optional no-auto-generated code for ALPHA."""
class OperationsBeta(base.Group):
"""Optional no-auto-generated code for BETA."""
class OperationsGa(base.Group):
"""Optional no-auto-generated code for GA."""

View File

@@ -0,0 +1,39 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- ALPHA
auto_generated: true
help_text:
brief: Cancel operations
description: Cancel an operation
examples: |-
To cancel the operation, run:
$ {command}
arguments:
params:
- help_text: |-
The name of the operation resource to be cancelled.
is_positional: true
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.default_resources:projects_locations_operations
required: true
request:
api_version: v1
collection:
- developerconnect.projects.locations.operations
method: cancel

View File

@@ -0,0 +1,39 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- BETA
auto_generated: true
help_text:
brief: Cancel operations
description: Cancel an operation
examples: |-
To cancel the operation, run:
$ {command}
arguments:
params:
- help_text: |-
The name of the operation resource to be cancelled.
is_positional: true
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.default_resources:projects_locations_operations
required: true
request:
api_version: v1
collection:
- developerconnect.projects.locations.operations
method: cancel

View File

@@ -0,0 +1,39 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- GA
auto_generated: true
help_text:
brief: Cancel operations
description: Cancel an operation
examples: |-
To cancel the operation, run:
$ {command}
arguments:
params:
- help_text: |-
The name of the operation resource to be cancelled.
is_positional: true
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.default_resources:projects_locations_operations
required: true
request:
api_version: v1
collection:
- developerconnect.projects.locations.operations
method: cancel

View File

@@ -0,0 +1,38 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- ALPHA
auto_generated: true
help_text:
brief: Delete operations
description: Delete an operation
examples: |-
To delete the operation, run:
$ {command}
arguments:
params:
- help_text: |-
The name of the operation resource to be deleted.
is_positional: true
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.default_resources:projects_locations_operations
required: true
request:
api_version: v1
collection:
- developerconnect.projects.locations.operations

View File

@@ -0,0 +1,38 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- BETA
auto_generated: true
help_text:
brief: Delete operations
description: Delete an operation
examples: |-
To delete the operation, run:
$ {command}
arguments:
params:
- help_text: |-
The name of the operation resource to be deleted.
is_positional: true
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.default_resources:projects_locations_operations
required: true
request:
api_version: v1
collection:
- developerconnect.projects.locations.operations

View File

@@ -0,0 +1,38 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- GA
auto_generated: true
help_text:
brief: Delete operations
description: Delete an operation
examples: |-
To delete the operation, run:
$ {command}
arguments:
params:
- help_text: |-
The name of the operation resource to be deleted.
is_positional: true
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.default_resources:projects_locations_operations
required: true
request:
api_version: v1
collection:
- developerconnect.projects.locations.operations

View File

@@ -0,0 +1,38 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- ALPHA
auto_generated: true
help_text:
brief: Describe operations
description: Describe an operation
examples: |-
To describe the operation, run:
$ {command}
arguments:
params:
- help_text: |-
The name of the operation resource.
is_positional: true
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.default_resources:projects_locations_operations
required: true
request:
api_version: v1
collection:
- developerconnect.projects.locations.operations

View File

@@ -0,0 +1,38 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- BETA
auto_generated: true
help_text:
brief: Describe operations
description: Describe an operation
examples: |-
To describe the operation, run:
$ {command}
arguments:
params:
- help_text: |-
The name of the operation resource.
is_positional: true
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.default_resources:projects_locations_operations
required: true
request:
api_version: v1
collection:
- developerconnect.projects.locations.operations

View File

@@ -0,0 +1,38 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- GA
auto_generated: true
help_text:
brief: Describe operations
description: Describe an operation
examples: |-
To describe the operation, run:
$ {command}
arguments:
params:
- help_text: |-
The name of the operation resource.
is_positional: true
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.default_resources:projects_locations_operations
required: true
request:
api_version: v1
collection:
- developerconnect.projects.locations.operations

View File

@@ -0,0 +1,40 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- ALPHA
auto_generated: true
help_text:
brief: List operations
description: List operations
examples: |-
To list all operations, run:
$ {command}
arguments:
params:
- help_text: |-
The name of the operation's parent resource.
is_positional: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.default_resources:projects_locations
required: true
request:
api_version: v1
collection:
- developerconnect.projects.locations.operations
response:
id_field: name

View File

@@ -0,0 +1,40 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- BETA
auto_generated: true
help_text:
brief: List operations
description: List operations
examples: |-
To list all operations, run:
$ {command}
arguments:
params:
- help_text: |-
The name of the operation's parent resource.
is_positional: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.default_resources:projects_locations
required: true
request:
api_version: v1
collection:
- developerconnect.projects.locations.operations
response:
id_field: name

View File

@@ -0,0 +1,40 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- GA
auto_generated: true
help_text:
brief: List operations
description: List operations
examples: |-
To list all operations, run:
$ {command}
arguments:
params:
- help_text: |-
The name of the operation's parent resource.
is_positional: false
resource_spec: !REF googlecloudsdk.command_lib.developer_connect.default_resources:projects_locations
required: true
request:
api_version: v1
collection:
- developerconnect.projects.locations.operations
response:
id_field: name

Some files were not shown because too many files have changed in this diff Show More