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,30 @@
# -*- coding: utf-8 -*- #
# Copyright 2022 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 Cloud Build's Repositories."""
from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from googlecloudsdk.calliope import base
@base.ReleaseTracks(
base.ReleaseTrack.ALPHA, base.ReleaseTrack.BETA, base.ReleaseTrack.GA
)
class Repositories(base.Group):
"""Manage repositories for Cloud Build."""
category = base.CI_CD_CATEGORY

View File

@@ -0,0 +1,26 @@
- help_text:
brief: Create a Cloud Build repository
description: Create a Cloud Build repository in a connection.
examples: |
To Create a repository with name ``my-repo'' in the connection ``my-conn'',
run the following command:
$ {command} my-repo --remote-uri=https://github.com/octocat/Hello-World.git \
--connection=my-conn --region=us-central1
request:
collection: cloudbuild.projects.locations.connections.repositories
api_version: v2
arguments:
resource:
help_text: Repository to create.
spec: !REF googlecloudsdk.command_lib.cloudbuild.resources_v2:repository
params:
- api_field: repository.remoteUri
arg_name: remote-uri
help_text: The remote git clone URL of the repository.
required: true
async:
collection: cloudbuild.projects.locations.operations

View File

@@ -0,0 +1,20 @@
- help_text:
brief: Delete a Cloud Build Repository
description: Delete a Cloud Build Repository in a Connection.
examples: |
To delete Cloud Build repository ``my-repo'' in connection ``my-conn'',
run the following command:
$ {command} my-repo --connection=my-conn --region=us-central1
request:
collection: cloudbuild.projects.locations.connections.repositories
api_version: v2
arguments:
resource:
help_text: Cloud Build repository to delete.
spec: !REF googlecloudsdk.command_lib.cloudbuild.resources_v2:repository
async:
collection: cloudbuild.projects.locations.operations

View File

@@ -0,0 +1,17 @@
- help_text:
brief: Describe a Cloud Build Repository
description: Describe a Cloud Build Repository.
examples: |
To list all the Cloud Build connections in region ``us-central1'',
run the following command:
$ {command} --region=us-central1
request:
collection: cloudbuild.projects.locations.connections.repositories
api_version: v2
arguments:
resource:
help_text: Cloud Build Repository to describe.
spec: !REF googlecloudsdk.command_lib.cloudbuild.resources_v2:repository

View File

@@ -0,0 +1,23 @@
- help_text:
brief: List all Cloud Build repositories in a connection.
description: List all Cloud Build repositories in a connection.
examples: |
To list all the repositories in the Cloud Build connection ``my-conn'',
run the following command:
$ {command} --connection=my-conn --region=us-central1
request:
collection: cloudbuild.projects.locations.connections.repositories
api_version: v2
arguments:
resource:
help_text: Cloud Build connection to list all contained repositories.
spec: !REF googlecloudsdk.command_lib.cloudbuild.resources_v2:connection
response:
id_field: name
output:
format: table(name.segment(-1):label=NAME, remote_uri)