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 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 LiteOperations(base.Group):
"""Manage Pub/Sub Lite operations."""

View File

@@ -0,0 +1,23 @@
release_tracks: [ALPHA, BETA, GA]
help_text:
brief: Describe a Pub/Sub Lite operation.
description: Describe a Pub/Sub Lite operation.
examples: |
To describe a Pub/Sub Lite operation, run:
$ {command} operation-id --location=us-central1-a
Alternatively, specify the full operation name:
$ {command} projects/my-project/locations/us-central1-a/operations/operation-id
request:
collection: pubsublite.admin.projects.locations.operations
method: get
modify_request_hooks:
- googlecloudsdk.command_lib.pubsub.lite_util:UpdateAdminRequest
arguments:
resource:
help_text: The Pub/Sub Lite operation to describe.
spec: !REF googlecloudsdk.command_lib.pubsub.resources:lite_operation

View File

@@ -0,0 +1,55 @@
release_tracks: [ALPHA, BETA, GA]
help_text:
brief: List Pub/Sub Lite operations.
description: |
List Pub/Sub Lite operations.
The optional `--subscription` flag can be used to filter operations for a Pub/Sub Lite
subscription. The optional `--done` flag can be used to filter by operation completion status.
These flags are ignored if `--filter` is set.
To describe a listed operation, run:
$ {command} operation-id --location=us-central1-a
examples: |
To list Pub/Sub Lite operations, run:
$ {command} --location=us-central1-a --limit=50
To list incomplete Pub/Sub Lite operations, run:
$ {command} --location=us-central1-a --done=false
To list Pub/Sub Lite operations for a subscription, run:
$ {command} --location=us-central1-a --subscription=my-subscription --limit=50
To list incomplete Pub/Sub Lite operations for a subscription, run:
$ {command} --location=us-central1-a --subscription=my-subscription --done=false
request:
collection: pubsublite.admin.projects.locations.operations
method: list
modify_request_hooks:
- googlecloudsdk.command_lib.pubsub.lite_util:UpdateAdminRequest
- googlecloudsdk.command_lib.pubsub.lite_util:UpdateListOperationsFilter
arguments:
resource:
help_text: Location to list operations for.
spec: !REF googlecloudsdk.command_lib.pubsub.resources:location
params:
- _REF_: googlecloudsdk.command_lib.pubsub.flags:operation-done
- _REF_: googlecloudsdk.command_lib.pubsub.flags:operation-subscription
output:
format: |
table(
name.scope("operations"):label=OPERATION_ID,
metadata.target:label=TARGET,
metadata.createTime:label=CREATE_TIME,
done:label=DONE,
error.code:label=ERROR_CODE,
error.message:label=MESSAGE
)