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 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.
"""Managed Service for Apache Kafka consumer groups 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.GA, base.ReleaseTrack.ALPHA, base.ReleaseTrack.BETA
)
class ConsumerGroups(base.Group):
"""Administer Managed Service for Apache Kafka consumer groups."""
category = base.DATA_ANALYTICS_CATEGORY

View File

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

View File

@@ -0,0 +1,23 @@
release_tracks: [GA, ALPHA, BETA]
help_text:
brief: |
Describe a Managed Service for Apache Kafka consumer group.
description: |
Describe a Managed Service for Apache Kafka consumer group.
examples: |
To describe a consumer group in a cluster named mycluster located in us-central1,
run the following:
$ {command} myconsumergroup \
--cluster=mycluster \
--location=us-central1
request:
collection: managedkafka.projects.locations.clusters.consumerGroups
arguments:
resource:
help_text: Identifies the consumer group for details to be displayed.
spec: !REF googlecloudsdk.command_lib.managed_kafka.resources:consumer_group

View File

@@ -0,0 +1,25 @@
release_tracks: [GA, ALPHA, BETA]
help_text:
brief: |
List all Managed Service for Apache Kafka consumer groups in a given cluster and location.
description: |
List all Managed Service for Apache Kafka consumer groups in a given cluster and location.
To specify the maximum number of consumer groups to list, use the --limit flag.
examples: |
To list all consumer groups in a cluster named mycluster located in us-central1,
run the following:
$ {command} mycluster
--location=us-central1
request:
collection: managedkafka.projects.locations.clusters.consumerGroups
arguments:
resource:
is_positional: true
help_text: Identifies the cluster which contains all the consumer groups to be listed.
spec: !REF googlecloudsdk.command_lib.managed_kafka.resources:cluster

View File

@@ -0,0 +1,37 @@
release_tracks: [GA, ALPHA, BETA]
help_text:
brief: |
Update a Managed Service for Apache Kafka consumer group.
description: |
Update a Managed Service for Apache Kafka consumer group.
examples: |
To specify a file for updating the topics of a consumer group,
run the following:
${command} myconsumergroup |
--cluster=mycluster \
--location=us-central1 \
--topics-file=topics.json
To update the topics of a consumer group with inline JSON,
run the following:
${command} myconsumergroup |
--cluster=mycluster \
--location=us-central1 \
--topics-file='{"topic":{"partitions":{"0":{"offset":1,"metadata":"metadata"}}}}'
request:
collection: managedkafka.projects.locations.clusters.consumerGroups
modify_request_hooks:
- googlecloudsdk.command_lib.managed_kafka.util:UpdateTopics
arguments:
resource:
help_text: Identifies the consumer group to be updated.
spec: !REF googlecloudsdk.command_lib.managed_kafka.resources:consumer_group
params:
- _REF_: googlecloudsdk.command_lib.managed_kafka.flags:topics-file
required: true