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,28 @@
# -*- coding: utf-8 -*- #
# Copyright 2021 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.
"""Manage Pub/Sub Lite reservations."""
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 LiteReservations(base.Group):
"""Manage Pub/Sub Lite reservations."""

View File

@@ -0,0 +1,28 @@
release_tracks: [ALPHA, BETA, GA]
help_text:
brief: Create a Pub/Sub Lite reservation.
description: Create a Pub/Sub Lite reservation.
examples: |
To create a Pub/Sub lite-reservation, run:
$ {command} myreservation \
--location=us-central1 \
--throughput-capacity=2
request:
collection: pubsublite.admin.projects.locations.reservations
method: create
modify_request_hooks:
- googlecloudsdk.command_lib.pubsub.lite_util:UpdateAdminRequest
arguments:
resource:
help_text: Identifies the Cloud location this command will be executed on.
spec: !REF googlecloudsdk.command_lib.pubsub.resources:location
is_parent_resource: true
is_positional: false
params:
- _REF_: googlecloudsdk.command_lib.pubsub.flags:reservation-name
- _REF_: googlecloudsdk.command_lib.pubsub.flags:throughput-capacity
required: true

View File

@@ -0,0 +1,20 @@
release_tracks: [ALPHA, BETA, GA]
help_text:
brief: Delete a Pub/Sub Lite reservation.
description: Delete a Pub/Sub Lite reservation.
examples: |
To delete a Pub/Sub Lite reservation, run:
$ {command} myreservation \
--location=us-central1
request:
collection: pubsublite.admin.projects.locations.reservations
method: delete
modify_request_hooks:
- googlecloudsdk.command_lib.pubsub.lite_util:UpdateAdminRequest
arguments:
resource:
help_text: Reservation to delete.
spec: !REF googlecloudsdk.command_lib.pubsub.resources:lite_reservation

View File

@@ -0,0 +1,20 @@
release_tracks: [ALPHA, BETA, GA]
help_text:
brief: Describe a Pub/Sub Lite reservation.
description: Describe a Pub/Sub Lite reservation.
examples: |
To describe a Pub/Sub Lite reservation, run:
$ {command} myreservation \
--location=us-central1
request:
collection: pubsublite.admin.projects.locations.reservations
method: get
modify_request_hooks:
- googlecloudsdk.command_lib.pubsub.lite_util:UpdateAdminRequest
arguments:
resource:
help_text: Reservation to describe.
spec: !REF googlecloudsdk.command_lib.pubsub.resources:lite_reservation

View File

@@ -0,0 +1,20 @@
release_tracks: [ALPHA, BETA, GA]
help_text:
brief: List Pub/Sub Lite reservations.
description: List Pub/Sub Lite reservations.
examples: |
To list Pub/Sub Lite reservations, run:
$ {command} --location=us-central1 \
--limit=5
request:
collection: pubsublite.admin.projects.locations.reservations
method: list
modify_request_hooks:
- googlecloudsdk.command_lib.pubsub.lite_util:UpdateAdminRequest
arguments:
resource:
help_text: Location to list reservations for.
spec: !REF googlecloudsdk.command_lib.pubsub.resources:location

View File

@@ -0,0 +1,26 @@
release_tracks: [ALPHA, BETA, GA]
command_type: LIST
help_text:
brief: List Pub/Sub Lite topics for a given Lite reservation.
description: List Pub/Sub Lite topics for a given Lite reservation.
examples: |
To list Pub/Sub Lite topics for a given Lite reservation, run:
$ {command} myreservation \
--location=us-central1
request:
collection: pubsublite.admin.projects.locations.reservations.topics
method: list
modify_request_hooks:
- googlecloudsdk.command_lib.pubsub.lite_util:UpdateAdminRequest
arguments:
resource:
help_text: Reservation to list topics for.
spec: !REF googlecloudsdk.command_lib.pubsub.resources:lite_reservation
is_parent_resource: true
is_positional: true
response:
result_attribute: topics

View File

@@ -0,0 +1,27 @@
release_tracks: [ALPHA, BETA, GA]
help_text:
brief: Update a Pub/Sub Lite reservation.
description: Update a Pub/Sub Lite reservation.
examples: |
To update a Pub/Sub Lite reservation, run:
$ {command} myreservation \
--location=us-central1 \
--throughput-capacity=2
request:
collection: pubsublite.admin.projects.locations.reservations
method: patch
modify_request_hooks:
- googlecloudsdk.command_lib.pubsub.lite_util:UpdateAdminRequest
arguments:
resource:
help_text: Reservation to update.
spec: !REF googlecloudsdk.command_lib.pubsub.resources:lite_reservation
params:
- group:
required: true
params:
- _REF_: googlecloudsdk.command_lib.pubsub.flags:throughput-capacity