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,29 @@
# -*- 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.
"""Managed Service for Apache Kafka connect-clusters operations."""
from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from googlecloudsdk.calliope import base
@base.DefaultUniverseOnly
@base.ReleaseTracks(base.ReleaseTrack.ALPHA, base.ReleaseTrack.BETA,
base.ReleaseTrack.GA)
class ConnectClusters(base.Group):
"""Administer Managed Service for Apache Kafka connect-clusters."""
category = base.DATA_ANALYTICS_CATEGORY

View File

@@ -0,0 +1,49 @@
release_tracks: [ALPHA, BETA, GA]
help_text:
brief: |
Create a Managed Service for Apache Kafka connect cluster.
description: |
Create a Managed Service for Apache Kafka connect cluster.
examples: |
To create a connector cluster, run the following:
$ {command} myconnectorCluster \
--location=us-central1 \
--cpu=3 \
--memory=3GiB \
--primary-subnet=projects/PROJECT_ID/regions/us-central1/subnetworks/default
--kafka-cluster=my-kafka-cluster OR --kafka-cluster=projects/PROJECT_ID/locations/us-central1/clusters/my-kafka-cluster
request:
collection: managedkafka.projects.locations.connectClusters
modify_request_hooks:
- googlecloudsdk.command_lib.managed_kafka.util:PrepareConnectClusterCreate
- googlecloudsdk.command_lib.managed_kafka.util:MapConnectParamsToNetworkConfig
async:
collection: managedkafka.projects.locations.operations
arguments:
resource:
help_text: Identifies the connect cluster that is created.
spec: !REF googlecloudsdk.command_lib.managed_kafka.resources:connect_cluster
params:
- _REF_: googlecloudsdk.command_lib.managed_kafka.flags:kafka-cluster
required: true
- group:
mutex: true
params:
- _REF_: googlecloudsdk.command_lib.managed_kafka.flags:connectCluster-configs
- _REF_: googlecloudsdk.command_lib.managed_kafka.flags:connectCluster-config-file
- _REF_: googlecloudsdk.command_lib.managed_kafka.flags:connect-cpu
required: true
- _REF_: googlecloudsdk.command_lib.managed_kafka.flags:connect-memory
required: true
- _REF_: googlecloudsdk.command_lib.managed_kafka.flags:connect-primary-subnet
required: true
- _REF_: googlecloudsdk.command_lib.managed_kafka.flags:connect-additional-subnet
- _REF_: googlecloudsdk.command_lib.managed_kafka.flags:dns-name
- _REF_: googlecloudsdk.command_lib.managed_kafka.flags:secret
- _REF_: googlecloudsdk.command_lib.managed_kafka.flags:connect-labels

View File

@@ -0,0 +1,25 @@
release_tracks: [ALPHA, BETA, GA]
help_text:
brief: |
Delete a Managed Service for Apache Kafka connect cluster.
description: |
Delete a Managed Service for Apache Kafka connect cluster.
examples: |
To delete a connect cluster named myconnectcluster located in us-central1,
run the following:
$ {command} myconnectcluster \
--location=us-central1
request:
collection: managedkafka.projects.locations.connectClusters
arguments:
resource:
help_text: Identifies the connect cluster for deletion.
spec: !REF googlecloudsdk.command_lib.managed_kafka.resources:connect_cluster
async:
collection: managedkafka.projects.locations.operations

View File

@@ -0,0 +1,22 @@
release_tracks: [ALPHA, BETA, GA]
help_text:
brief: |
Describe a Managed Service for Apache Kafka connect cluster.
description: |
Describe a Managed Service for Apache Kafka for BigQuery connect cluster.
examples: |
To describe a connect cluster named myconnectcluster located in us-central1,
run the following:
$ {command} myconnectcluster \
--location=us-central1
request:
collection: managedkafka.projects.locations.connectClusters
arguments:
resource:
help_text: Identifies the connect cluster.
spec: !REF googlecloudsdk.command_lib.managed_kafka.resources:connect_cluster

View File

@@ -0,0 +1,31 @@
release_tracks: [ALPHA, BETA, GA]
help_text:
brief: |
List all Managed Service for Apache Kafka connect clusters in a given location.
description: |
List all Managed Service for Apache Kafka connect clusters in a given location.
To specify the maximum number of clusters to list, use the --limit flag.
examples: |
To list all connect clusters in a given location, such as us-central1, run the following:
$ {command} --location=us-central1
request:
collection: managedkafka.projects.locations.connectClusters
arguments:
resource:
help_text: Identifies the region which contains all the connector clusters to be listed.
spec: !REF googlecloudsdk.command_lib.managed_kafka.resources:location
output:
format: |
table[box](
name.segment(5):label=NAME,
capacityConfig.vcpuCount:label=VCPU,
capacityConfig.memoryBytes:label=MEMORY_BYTES,
state:label=STATE,
gcpConfig.accessConfig.networkConfigs.primarySubnet:label=PRIMARY_SUBNET
)

View File

@@ -0,0 +1,71 @@
release_tracks: [ALPHA, BETA, GA]
help_text:
brief: |
Update a Managed Service for Apache Kafka for BigQuery connect cluster.
description: |
Update an Managed Service for Apache Kafka for BigQuery connect cluster.
examples: |
To update a connect cluster, run the following:
$ {command} myconnectorCluster \
--location=us-central1 \
--configs=KEY1=VALUE1,KEY2=VALUE2... OR --config-file=my-config-file.yaml \
--cpu=3 \
--memory=3GiB \
--primary-subnet=projects/my-project/regions/us-central1/subnetworks/default/1 \
--dns-name=bootstrap.myconnectorCluster.us-central1.managedkafka.my-project.cloud.goog:9092 \
--secret=projects/my-project/secrets/my-secret/versions/1 \
--labels=KEY1=VALUE1,KEY2=VALUE2...
request:
collection: managedkafka.projects.locations.connectClusters
modify_request_hooks:
- googlecloudsdk.command_lib.managed_kafka.util:PrepareConnectClusterUpdate
- googlecloudsdk.command_lib.managed_kafka.util:MapConnectParamsToNetworkConfig
async:
collection: managedkafka.projects.locations.operations
arguments:
resource:
help_text: Identifies the connect cluster for which the command runs.
spec: !REF googlecloudsdk.command_lib.managed_kafka.resources:connect_cluster
params:
- group:
required: true
params:
- group:
mutex: true
params:
- _REF_: googlecloudsdk.command_lib.managed_kafka.flags:connectCluster-configs
- _REF_: googlecloudsdk.command_lib.managed_kafka.flags:connectCluster-config-file
- _REF_: googlecloudsdk.command_lib.managed_kafka.flags:clear-configs
- _REF_: googlecloudsdk.command_lib.managed_kafka.flags:connect-cpu
- _REF_: googlecloudsdk.command_lib.managed_kafka.flags:connect-memory
# Require primary subnet to be provided iff additional subnet is provided.
- group:
mutex: true
required: false
params:
- group:
params:
- _REF_: googlecloudsdk.command_lib.managed_kafka.flags:connect-primary-subnet
required: true
- _REF_: googlecloudsdk.command_lib.managed_kafka.flags:connect-additional-subnet
- group:
mutex: true
params:
- _REF_: googlecloudsdk.command_lib.managed_kafka.flags:dns-name
- _REF_: googlecloudsdk.command_lib.managed_kafka.flags:clear-dns-names
- group:
mutex: true
params:
- _REF_: googlecloudsdk.command_lib.managed_kafka.flags:secret
- _REF_: googlecloudsdk.command_lib.managed_kafka.flags:clear-secrets
- group:
mutex: true
params:
- _REF_: googlecloudsdk.command_lib.managed_kafka.flags:connect-labels
- _REF_: googlecloudsdk.command_lib.managed_kafka.flags:clear-connect-labels