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,32 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 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.
"""Command group for Cloud Security Command Center (SCC) artifact guard connectors."""
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.Hidden
@base.DefaultUniverseOnly
class Connectors(base.Group):
"""Manage Cloud Security Command Center (SCC) artifact guard connectors."""
category = base.SECURITY_CATEGORY

View File

@@ -0,0 +1,45 @@
release_tracks: [ALPHA]
hidden: true
help_text:
brief: Create a new artifact guard connector.
description: |
Create a new artifact guard connector. Connectors are tags for images. When passed from CI
pipeline to the Artifact Guard service, it is used to decide which policies need to be run
against the image being built in the CI pipeline.
examples: |
Create a connector with full name:
$ {command} organizations/123/locations/global/connectors/my-connector \
--pipeline-type=GOOGLE_CLOUD_BUILD --display-name="My Connector" \
--description="This is my connector."
Create a connector with connector ID:
$ {command} my-connector --location=global --organization=123 \
--pipeline-type=GOOGLE_CLOUD_BUILD --display-name="My Connector" \
--description="This is my connector."
request:
collection: artifactscanguard.organizations.locations.connectors
api_version: v1alpha
method: create
arguments:
resource:
spec: !REF googlecloudsdk.command_lib.scc.resources:connector
help_text: |
The full name of the connector to create. For example:
`organizations/123/locations/global/connectors/myConnector`
params:
- arg_name: pipeline-type
api_field: connector.pipelineType
required: true
help_text: |
The type of pipeline for which connector is being created.
- arg_name: display-name
api_field: connector.displayName
help_text: |
User-specified name of the connector.
- arg_name: description
api_field: connector.description
help_text: |
Description of the connector.

View File

@@ -0,0 +1,21 @@
release_tracks: [ALPHA]
hidden: true
help_text:
brief: Delete an artifact guard connector.
description: |
Delete an artifact guard connector for a given connector name.
examples: |
To delete a connector named `organizations/123/locations/global/connectors/myConnector`:
$ {command} organizations/123/locations/global/connectors/myConnector
OR
$ {command} myConnector --location=global --organization=123
request:
collection: artifactscanguard.organizations.locations.connectors
api_version: v1alpha
method: delete
arguments:
resource:
spec: !REF googlecloudsdk.command_lib.scc.resources:connector
help_text: |
The full name of the connector to delete. For example:
`organizations/123/locations/global/connectors/myConnector`

View File

@@ -0,0 +1,21 @@
release_tracks: [ALPHA]
hidden: true
help_text:
brief: Describe an artifact guard connector.
description: |
Describe an artifact guard connector for a given connector name.
examples: |
To describe a connector named `organizations/123/locations/global/connectors/myConnector`:
$ {command} organizations/123/locations/global/connectors/myConnector
OR
$ {command} myConnector --location=global --organization=123
request:
collection: artifactscanguard.organizations.locations.connectors
api_version: v1alpha
method: get
arguments:
resource:
spec: !REF googlecloudsdk.command_lib.scc.resources:connector
help_text: |
The full name of the connector to describe. For example:
organizations/123/locations/global/connectors/myConnector

View File

@@ -0,0 +1,22 @@
release_tracks: [ALPHA]
hidden: true
help_text:
brief: List artifact guard connectors.
description: |
List artifact guard connectors for a given parent.
examples: |
To list connectors for `organizations/123/locations/global`:
$ {command} organizations/123/locations/global
request:
collection: artifactscanguard.organizations.locations.connectors
disable_resource_check: true
api_version: v1alpha
method: list
arguments:
params:
- arg_name: parent
api_field: parent
is_positional: true
required: true
help_text: |
The parent, which owns this collection of connectors. Format: organizations/{organization}/locations/{location}