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,32 @@
# -*- coding: utf-8 -*- #
# Copyright 2023 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.
"""The oauth-clients credentials command group for the IAM CLI."""
from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from googlecloudsdk.calliope import base
# TODO: b/369204602 - revisit this annotation
@base.DefaultUniverseOnly
@base.ReleaseTracks(base.ReleaseTrack.ALPHA, base.ReleaseTrack.GA)
class OauthClientCredentials(base.Group):
"""Create and manage OAuth client credentials.
The {command} group lets you create and manage OAuth client credentials for
projects on the Google Cloud Platform.
"""

View File

@@ -0,0 +1,41 @@
# -*- coding: utf-8 -*- #
# Copyright 2023 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.
- release_tracks: [ALPHA, GA]
help_text:
brief: Create an OAuth client credential.
description: |
Create a new OAuth client credential.
examples: |
To create a disabled OAuth client credential with ID ``my-oauth-client-credential''
in the default project, run:
$ {command} my-oauth-client-credential \
--location="global" \
--oauth-client="my-oauth-client" \
--display-name="My OAuth client credential" \
--disabled
request:
collection: iam.projects.locations.oauthClients.credentials
arguments:
resource:
help_text: The OAuth client credential to create.
spec: !REF googlecloudsdk.command_lib.iam.resources:oauth_client_credential
is_positional: true
params:
- _REF_: googlecloudsdk.command_lib.iam.flags:oauth_client_credential.display_name
- _REF_: googlecloudsdk.command_lib.iam.flags:oauth_client_credential.disabled

View File

@@ -0,0 +1,34 @@
# -*- coding: utf-8 -*- #
# Copyright 2023 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.
- release_tracks: [ALPHA, GA]
help_text:
brief: Delete an OAuth client credential.
description: Delete an OAuth client credential.
examples: |
To delete the OAuth client credential with ID ``my-oauth-client-credential''
in the default project, run:
$ {command} my-oauth-client-credential \
--location="global" \
--oauth-client="my-oauth-client"
request:
collection: iam.projects.locations.oauthClients.credentials
arguments:
resource:
help_text: The OAuth client credential to delete.
spec: !REF googlecloudsdk.command_lib.iam.resources:oauth_client_credential
is_positional: true

View File

@@ -0,0 +1,34 @@
# -*- coding: utf-8 -*- #
# Copyright 2023 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.
- release_tracks: [ALPHA, GA]
help_text:
brief: Describe an OAuth client credential.
description: Describe an OAuth client credential.
examples: |
To describe the OAuth client credential with ID ``my-oauth-client-credential''
in the default project, run:
$ {command} my-oauth-client-credential \
--location="global" \
--oauth-client="my-oauth-client"
request:
collection: iam.projects.locations.oauthClients.credentials
arguments:
resource:
help_text: The OAuth client credential you want to describe.
spec: !REF googlecloudsdk.command_lib.iam.resources:oauth_client_credential
is_positional: true

View File

@@ -0,0 +1,35 @@
# -*- coding: utf-8 -*- #
# Copyright 2023 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.
- release_tracks: [ALPHA, GA]
help_text:
brief: List OAuth client credentials.
description: |
List OAuth client credentials.
examples: |
To list all OAuth client credentials in the default project, run:
$ {command} --location="global" --oauth-client="my-oauth-client"
request:
collection: iam.projects.locations.oauthClients.credentials
arguments:
resource:
help_text: The OAuth client you want to list credentials for.
spec: !REF googlecloudsdk.command_lib.iam.resources:oauth_client
is_positional: false
# the backend list api doesn't support pagination
exclude: ['page-size']

View File

@@ -0,0 +1,42 @@
# -*- coding: utf-8 -*- #
# Copyright 2023 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.
- release_tracks: [ALPHA, GA]
help_text:
brief: Update an OAuth client credential.
description: |
Update an OAuth client credential.
examples: |
To update the OAuth client credential with ID ``my-oauth-client-credential''
in the default project, run:
$ {command} my-oauth-client-credential \
--location="global" \
--oauth-client="my-oauth-client" \
--display-name="My OAuth client credential" \
--disabled
request:
collection: iam.projects.locations.oauthClients.credentials
method: patch
arguments:
resource:
help_text: The OAuth client credential to update.
spec: !REF googlecloudsdk.command_lib.iam.resources:oauth_client_credential
is_positional: true
params:
- _REF_: googlecloudsdk.command_lib.iam.flags:oauth_client_credential.display_name
- _REF_: googlecloudsdk.command_lib.iam.flags:oauth_client_credential.disabled