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,26 @@
# -*- coding: utf-8 -*- #
# Copyright 2022 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.
"""Command group for databases under Dataproc Metastore services."""
from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from googlecloudsdk.calliope import base
@base.ReleaseTracks(base.ReleaseTrack.ALPHA, base.ReleaseTrack.BETA)
class Databases(base.Group):
"""Manage databases under Dataproc Metastore services."""

View File

@@ -0,0 +1,30 @@
release_tracks: [ALPHA, BETA]
help_text:
brief: Add an IAM policy binding to a database.
description: |
Add an IAM policy binding to a database.
examples: |
To add an IAM policy binding for the role of 'roles/metastore.metadataOwner' for the user
'test-user@gmail.com', run:
$ {command} my-database --member='user:test-user@gmail.com' --role='roles/metastore.metadataOwner'
See https://cloud.google.com/dataproc-metastore/docs/iam-and-access-control for details of
policy role and member types.
request:
collection: metastore.projects.locations.services.databases
ALPHA:
api_version: v1alpha
BETA:
api_version: v1beta
iam:
enable_condition: false
policy_version: 0
arguments:
resource:
help_text: Database for which to add the IAM policy to.
spec: !REF googlecloudsdk.command_lib.metastore.resources:database

View File

@@ -0,0 +1,32 @@
release_tracks: [ALPHA, BETA]
help_text:
brief: Get the IAM policy for the database.
description: |
`{command}` displays the IAM policy associated with the database.
If formatted as JSON, the output can be edited and used as a
policy file for set-iam-policy. The output includes an "etag" field
identifying the version emitted and allowing detection of
concurrent policy updates. The "etag" field should be removed to be
used as set-iam-policy input; see `{parent_command} set-iam-policy`
for additional details.
examples: |
To print the IAM policy for a given database, run:
$ {command} my-database
request:
collection: metastore.projects.locations.services.databases
ALPHA:
api_version: v1alpha
BETA:
api_version: v1beta
iam:
enable_condition: false
policy_version: 0
get_iam_policy_version_path: options_requestedPolicyVersion
arguments:
resource:
help_text: Database for which to display the IAM policy.
spec: !REF googlecloudsdk.command_lib.metastore.resources:database

View File

@@ -0,0 +1,30 @@
release_tracks: [ALPHA, BETA]
help_text:
brief: Remove an IAM policy binding from a database.
description: |
Remove an IAM policy binding from a database.
examples: |
To remove an IAM policy binding for the role of 'roles/metastore.metadataOwner' for the user
'test-user@gmail.com', run:
$ {command} my-database --member='user:test-user@gmail.com' --role='roles/metastore.metadataOwner'
See https://cloud.google.com/iam/docs/managing-policies for details of
policy role and member types.
request:
collection: metastore.projects.locations.services.databases
ALPHA:
api_version: v1alpha
BETA:
api_version: v1beta
iam:
enable_condition: false
policy_version: 0
arguments:
resource:
help_text: Database for which to remove the IAM policy from.
spec: !REF googlecloudsdk.command_lib.metastore.resources:database

View File

@@ -0,0 +1,31 @@
release_tracks: [ALPHA, BETA]
help_text:
brief: Set the IAM policy for a database.
description: |
Sets the IAM policy for the given database as defined in a JSON or YAML file.
See https://cloud.google.com/iam/docs/managing-policies for details of
the policy file format and contents.
examples: |
The following command will read an IAM policy defined in a JSON file
'policy.json' and set it for the database 'my-database':
$ {command} my-database policy.json
request:
collection: metastore.projects.locations.services.databases
ALPHA:
api_version: v1alpha
BETA:
api_version: v1beta
iam:
enable_condition: false
policy_version: 0
get_iam_policy_version_path: options.requestedPolicyVersion
arguments:
resource:
help_text: Database for which to display the IAM policy.
spec: !REF googlecloudsdk.command_lib.metastore.resources:database

View File

@@ -0,0 +1,26 @@
# -*- coding: utf-8 -*- #
# Copyright 2022 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.
"""Command group for tables under databases."""
from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from googlecloudsdk.calliope import base
@base.ReleaseTracks(base.ReleaseTrack.ALPHA, base.ReleaseTrack.BETA)
class Backups(base.Group):
"""Manage tables under databases."""

View File

@@ -0,0 +1,30 @@
release_tracks: [ALPHA, BETA]
help_text:
brief: Add an IAM policy binding to a table.
description: |
Add an IAM policy binding to a table.
examples: |
To add an IAM policy binding for the role of 'roles/metastore.metadataOwner' for the user
'test-user@gmail.com', run:
$ {command} my-table --member='user:test-user@gmail.com' --role='roles/metastore.metadataOwner'
See https://cloud.google.com/dataproc-metastore/docs/iam-and-access-control for details of
policy role and member types.
request:
collection: metastore.projects.locations.services.databases.tables
ALPHA:
api_version: v1alpha
BETA:
api_version: v1beta
iam:
enable_condition: false
policy_version: 0
arguments:
resource:
help_text: Table for which to add the IAM policy to.
spec: !REF googlecloudsdk.command_lib.metastore.resources:table

View File

@@ -0,0 +1,32 @@
release_tracks: [ALPHA, BETA]
help_text:
brief: Get the IAM policy for the table.
description: |
`{command}` displays the IAM policy associated with the table.
If formatted as JSON, the output can be edited and used as a
policy file for set-iam-policy. The output includes an "etag" field
identifying the version emitted and allowing detection of
concurrent policy updates. The "etag" field should be removed to be
used as set-iam-policy input; see `{parent_command} set-iam-policy`
for additional details.
examples: |
To print the IAM policy for a given table, run:
$ {command} my-table
request:
collection: metastore.projects.locations.services.databases.tables
ALPHA:
api_version: v1alpha
BETA:
api_version: v1beta
iam:
enable_condition: false
policy_version: 0
get_iam_policy_version_path: options_requestedPolicyVersion
arguments:
resource:
help_text: Table for which to display the IAM policy.
spec: !REF googlecloudsdk.command_lib.metastore.resources:table

View File

@@ -0,0 +1,30 @@
release_tracks: [ALPHA, BETA]
help_text:
brief: Remove an IAM policy binding from a table.
description: |
Remove an IAM policy binding from a table.
examples: |
To remove an IAM policy binding for the role of 'roles/metastore.metadataOwner' for the user
'test-user@gmail.com', run:
$ {command} my-table --member='user:test-user@gmail.com' --role='roles/metastore.metadataOwner'
See https://cloud.google.com/iam/docs/managing-policies for details of
policy role and member types.
request:
collection: metastore.projects.locations.services.databases.tables
ALPHA:
api_version: v1alpha
BETA:
api_version: v1beta
iam:
enable_condition: false
policy_version: 0
arguments:
resource:
help_text: Table for which to remove the IAM policy from.
spec: !REF googlecloudsdk.command_lib.metastore.resources:table

View File

@@ -0,0 +1,31 @@
release_tracks: [ALPHA, BETA]
help_text:
brief: Set the IAM policy for a table.
description: |
Sets the IAM policy for the given table as defined in a JSON or YAML file.
See https://cloud.google.com/iam/docs/managing-policies for details of
the policy file format and contents.
examples: |
The following command will read an IAM policy defined in a JSON file
'policy.json' and set it for the table 'my-table':
$ {command} my-table policy.json
request:
collection: metastore.projects.locations.services.databases.tables
ALPHA:
api_version: v1alpha
BETA:
api_version: v1beta
iam:
enable_condition: false
policy_version: 0
get_iam_policy_version_path: options.requestedPolicyVersion
arguments:
resource:
help_text: Table for which to display the IAM policy.
spec: !REF googlecloudsdk.command_lib.metastore.resources:table