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,14 @@
# -*- coding: utf-8 -*- #
# Copyright 2016 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.

View File

@@ -0,0 +1,30 @@
# -*- coding: utf-8 -*- #
# Copyright 2018 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.
"""Provides helper methods for dealing with JSON files for Bigtable IAM."""
from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from googlecloudsdk.api_lib.bigtable import instances
from googlecloudsdk.api_lib.bigtable import util
from googlecloudsdk.command_lib.iam import iam_util
def SetInstanceIamPolicy(instance_ref, policy):
"""Sets the IAM policy on an instance."""
msgs = util.GetAdminMessages()
policy = iam_util.ParsePolicyFile(policy, msgs.Policy)
return instances.SetIamPolicy(instance_ref, policy)

View File

@@ -0,0 +1,130 @@
project:
name: project
collection: bigtableadmin.projects
attributes:
- &project
parameter_name: projectsId
attribute_name: project
help: Project name.
instance:
name: instance
collection: bigtableadmin.projects.instances
attributes:
- *project
- &instance
parameter_name: instancesId
attribute_name: instance
help: Name of the Bigtable instance.
disable_auto_completers: false
cluster:
name: cluster
collection: bigtableadmin.projects.instances.clusters
attributes:
- *project
- *instance
- &cluster
parameter_name: clustersId
attribute_name: cluster
help: Name of the Bigtable cluster.
disable_auto_completers: false
table:
name: table
collection: bigtableadmin.projects.instances.tables
attributes:
- *project
- *instance
- &table
parameter_name: tablesId
attribute_name: table
help: Name of the Bigtable table.
disable_auto_completers: false
backup:
name: backup
collection: bigtableadmin.projects.instances.clusters.backups
attributes:
- *project
- *instance
- *cluster
- &backup
parameter_name: backupsId
attribute_name: backup
help: Name of the Bigtable backup.
disable_auto_completers: false
operation:
name: operation
collection: bigtableadmin.operations
attributes:
- &operation
parameter_name: operationsId
attribute_name: operation
help: Name of the Bigtable operation.
disable_auto_completers: false
app_profile:
name: app-profile
collection: bigtableadmin.projects.instances.appProfiles
attributes:
- *project
- *instance
- &appProfile
parameter_name: appProfilesId
attribute_name: app_profile
help: Name of the Bigtable app profile.
authorized_view:
name: authorized-view
collection: bigtableadmin.projects.instances.tables.authorizedViews
request_id_field: authorizedViewId
attributes:
- *project
- *instance
- *table
- &authorizedView
parameter_name: authorizedViewsId
attribute_name: authorized_view
help: Name of the Bigtable authorized view.
disable_auto_completers: false
schema_bundle:
name: schema-bundle
collection: bigtableadmin.projects.instances.tables.schemaBundles
request_id_field: schemaBundleId
attributes:
- *project
- *instance
- *table
- &schemaBundle
parameter_name: schemaBundlesId
attribute_name: schema_bundle
help: Name of the Bigtable schema bundle.
disable_auto_completers: false
logical_view:
name: logical-view
collection: bigtableadmin.projects.instances.logicalViews
request_id_field: logicalViewId
attributes:
- *project
- *instance
- &logicalView
parameter_name: logicalViewsId
attribute_name: logical_view
help: Name of the Bigtable logical view.
disable_auto_completers: false
materialized_view:
name: materialized-view
collection: bigtableadmin.projects.instances.materializedViews
attributes:
- *project
- *instance
- &materializedView
parameter_name: materializedViewsId
attribute_name: materialized_view
help: Name of the Bigtable materialized view.
disable_auto_completers: false