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,25 @@
# -*- 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.
"""The command group for Media Asset's Annotations CLI."""
from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from googlecloudsdk.calliope import base
@base.ReleaseTracks(base.ReleaseTrack.ALPHA)
class Annotations(base.Group):
"""Manage Cloud Media Asset's Annotations."""

View File

@@ -0,0 +1,26 @@
- release_tracks: [ALPHA]
help_text:
brief: Create a new Cloud Media Annotation.
description: Create a new Media Annotation.
examples: |
To create a new annotation with id my-ann with in the default project and 'us-central1' location, under annotation set my-annSet run:
$ {command} my-at --asset_type my-at --asset my-asset --annotation_set my-annSet --annotation-data-file ann-data.json --labels a=x,b=y
request:
collection: mediaasset.projects.locations.assetTypes.assets.annotationSets.annotations
method: create
modify_request_hooks:
- googlecloudsdk.command_lib.media.asset.annotations.hooks:AddParentInfoToAnnotationRequests
- googlecloudsdk.command_lib.media.asset.annotations.hooks:ParseAnnotationRequest
ALPHA:
api_version: v1alpha
arguments:
resource:
help_text: The Cloud Media Asset annotation to create.
spec: !REF googlecloudsdk.command_lib.media.asset.resources:annotation
params:
- _REF_: googlecloudsdk.command_lib.media.asset.flags:annotation-data-file
labels:
api_field: annotation.labels

View File

@@ -0,0 +1,18 @@
- release_tracks: [ALPHA]
help_text:
brief: Delete a Cloud Media Asset annotation.
description: Delete a new Media Asset annotation.
examples: |
To get a specific annotation with id my-ann under asset type 'my-at', asset 'my-asset', annotation set 'my-annSet', run:
$ {command} my-ann --asset_type my-at --asset my-asset --annotation_set my-annSet
request:
collection: mediaasset.projects.locations.assetTypes.assets.annotationSets.annotations
method: delete
ALPHA:
api_version: v1alpha
arguments:
resource:
help_text: The Cloud Media Asset annotation to delete.
spec: !REF googlecloudsdk.command_lib.media.asset.resources:annotation

View File

@@ -0,0 +1,18 @@
- release_tracks: [ALPHA]
help_text:
brief: Get a Cloud Media Asset annotation.
description: Get a new Media Asset annotation.
examples: |
To get a specific annotation with id my-ann under asset type 'my-at', asset 'my-asset', annotation set 'my-annSet', run:
$ {command} my-ann --asset_type my-at --asset my-asset --annotation_set my-annSet
request:
collection: mediaasset.projects.locations.assetTypes.assets.annotationSets.annotations
method: get
ALPHA:
api_version: v1alpha
arguments:
resource:
help_text: The Cloud Media Asset annotation to get.
spec: !REF googlecloudsdk.command_lib.media.asset.resources:annotation

View File

@@ -0,0 +1,25 @@
- release_tracks: [ALPHA]
help_text:
brief: List Cloud Media Asset annotations.
description: List Media Asset annotations.
examples: |
To list all annotations under 'us-west1' location, asset type 'my-at', asset 'my-asset', annotation set 'my-annSet', run:
$ {command} --location us-west1 --asset_type my-at --asset my-asset --annotation_set my-annSet
request:
collection: mediaasset.projects.locations.assetTypes.assets.annotationSets.annotations
modify_request_hooks:
- googlecloudsdk.command_lib.media.asset.annotations.hooks:AddParentInfoToAnnotationRequests
ALPHA:
api_version: v1alpha
arguments:
resource:
help_text: The Cloud Media Asset annotation set to list annotations.
spec: !REF googlecloudsdk.command_lib.media.asset.resources:annotation_set
params:
- arg_name: page-token
api_field: pageToken
help_text: |
The next page token value returned from a previous List request, if any.

View File

@@ -0,0 +1,30 @@
- release_tracks: [ALPHA]
help_text:
brief: Update a new Cloud Media Annotation.
description: Update a new Media Annotation.
examples: |
To Update a new annotation with id my-ann with in the default project and 'us-central1' location, under annotation set my-annSet run:
$ {command} my-ann --asset_type my-at --asset my-asset --annotation_set my-annSet --annotation-data-file annotation_data.json --labels a=x,b=y
request:
collection: mediaasset.projects.locations.assetTypes.assets.annotationSets.annotations
method: patch
modify_request_hooks:
- googlecloudsdk.command_lib.media.asset.annotations.hooks:ParseAnnotationRequest
ALPHA:
api_version: v1alpha
arguments:
resource:
help_text: The Cloud Media Asset annotation to create.
spec: !REF googlecloudsdk.command_lib.media.asset.resources:annotation
params:
- _REF_: googlecloudsdk.command_lib.media.asset.flags:annotation-data-file
- arg_name: update-mask
api_field: updateMask
required: true
help_text: |
List of annotations's attributes to update.
labels:
api_field: annotation.labels