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 Assets 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 Assets(base.Group):
"""Manage Cloud Media Asset's Assets."""

View File

@@ -0,0 +1,38 @@
- release_tracks: [ALPHA]
help_text:
brief: Create a new Cloud Media Asset asset.
description: Create a new Media Asset asset.
examples: |
To create a new asset with id my-asset with in the default project and 'us-central1' location, run:
$ {command} my-asset --asset_type my-at --create-asset-config-file asset.json
, where assetType.json can be:
{
"metadata": {
"file": {"url": "gs://some-url"}
},
}
request:
collection: mediaasset.projects.locations.assetTypes.assets
method: create
modify_request_hooks:
- googlecloudsdk.command_lib.media.asset.assets.hooks:AddParentInfoToAssetRequests
- googlecloudsdk.command_lib.media.asset.assets.hooks:ParseAssetConfigFile
ALPHA:
api_version: v1alpha
arguments:
resource:
help_text: The Cloud Media Asset asset to create.
spec: !REF googlecloudsdk.command_lib.media.asset.resources:asset
params:
- _REF_: googlecloudsdk.command_lib.media.asset.flags:asset-config-file
labels:
api_field: asset.labels
response:
modify_response_hooks:
- googlecloudsdk.command_lib.media.asset.assets.hooks:ProcessOutput

View File

@@ -0,0 +1,29 @@
- release_tracks: [ALPHA]
help_text:
brief: Delete a Cloud Media Asset asset.
description: Delete a new Media Asset asset.
examples: |
To delete a new asset type with id my-asset under asset type my-at, run:
$ {command} my-at --asset_type my-at
request:
collection: mediaasset.projects.locations.assetTypes.assets
method: delete
ALPHA:
api_version: v1alpha
arguments:
resource:
help_text: The Cloud Media Asset asset to delete.
spec: !REF googlecloudsdk.command_lib.media.asset.resources:asset
params:
- arg_name: etag
api_field: etag
required: false
help_text: |
The current etag of the asset. If an etag is provided and does not match the current etag of the asset, deletion will be blocked and a FAILED_PRECONDITION error will be returned.
response:
modify_response_hooks:
- googlecloudsdk.command_lib.media.asset.assets.hooks:ProcessOutput

View File

@@ -0,0 +1,25 @@
- release_tracks: [ALPHA]
help_text:
brief: Delete a new Cloud Media Asset asset.
description: Delete a new Media Asset asset.
examples: |
To get a new asset type with id my-asset under asset type my-at, run:
$ {command} my-at --asset_type my-at
request:
collection: mediaasset.projects.locations.assetTypes.assets
method: get
ALPHA:
api_version: v1alpha
arguments:
resource:
help_text: The Cloud Media Asset asset to get.
spec: !REF googlecloudsdk.command_lib.media.asset.resources:asset
params:
- arg_name: read-mask
api_field: readMask
required: false
help_text: |
Extra fields to be poplulated as part of the asset resource in the response.

View File

@@ -0,0 +1,26 @@
- release_tracks: [ALPHA]
help_text:
brief: Delete a new Cloud Media Asset asset.
description: Delete a new Media Asset asset.
examples: |
To list all assets type under asset type my-at, run:
$ {command} --asset_type my-at
request:
collection: mediaasset.projects.locations.assetTypes.assets
modify_request_hooks:
- googlecloudsdk.command_lib.media.asset.assets.hooks:AddParentInfoToAssetRequests
ALPHA:
api_version: v1alpha
arguments:
resource:
help_text: The Cloud Media Asset asset types to list all assets.
spec: !REF googlecloudsdk.command_lib.media.asset.resources:asset_type
params:
- arg_name: read-mask
api_field: readMask
required: false
help_text: |
Extra fields to be poplulated as part of the asset resource in the response.

View File

@@ -0,0 +1,42 @@
- release_tracks: [ALPHA]
help_text:
brief: Update a new Cloud Media Asset asset.
description: Update a Media Asset asset.
examples: |
To update an asset with id my-asset with in the default project and 'us-central1' location and under asset type my-at, run:
$ {command} my-asset --asset_type my-at --asset-config-file asset.json
, where asset.json can be:
{
"metadata": {
"file": {"url": "gs://some-other-url"}
},
}
request:
collection: mediaasset.projects.locations.assetTypes.assets
method: patch
modify_request_hooks:
- googlecloudsdk.command_lib.media.asset.assets.hooks:ParseAssetConfigFile
ALPHA:
api_version: v1alpha
arguments:
resource:
help_text: The Cloud Media Asset asset to create.
spec: !REF googlecloudsdk.command_lib.media.asset.resources:asset
params:
- _REF_: googlecloudsdk.command_lib.media.asset.flags:asset-config-file
- arg_name: update-mask
api_field: updateMask
required: true
help_text: |
List of annotations's attributes to update.
labels:
api_field: asset.labels
response:
modify_response_hooks:
- googlecloudsdk.command_lib.media.asset.assets.hooks:ProcessOutput