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 2023 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 Authorization Toolkit Policies."""
from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from googlecloudsdk.calliope import base
@base.Hidden
@base.ReleaseTracks(base.ReleaseTrack.ALPHA, base.ReleaseTrack.GA)
class Policies(base.Group):
"""Manage Authorization Toolkit Policies."""
category = base.MANAGEMENT_TOOLS_CATEGORY

View File

@@ -0,0 +1,28 @@
release_tracks: [ALPHA, GA]
hidden: true
help_text:
brief: |
Delete a policy.
description: |
Delete the specified policy.
examples: |
To delete a policy called `my-policy`, run:
$ {command} my-policy --location=us-central1
arguments:
resource:
spec: !REF googlecloudsdk.command_lib.authz_toolkit.resources:policy
help_text: |
Name of the policy you want to delete.
async:
collection: authztoolkit.projects.locations.operations
request:
ALPHA:
api_version: v1alpha
GA:
api_version: v1
collection: authztoolkit.projects.locations.policies

View File

@@ -0,0 +1,25 @@
release_tracks: [ALPHA, GA]
hidden: true
help_text:
brief: |
Describe a policy.
description: |
Show details of the specified policy.
examples: |
To show details about a policy named `my-policy`, run:
$ {command} my-policy --location=us-central1
arguments:
resource:
spec: !REF googlecloudsdk.command_lib.authz_toolkit.resources:policy
help_text: |
Name of the policy to be described.
request:
ALPHA:
api_version: v1alpha
GA:
api_version: v1
collection: authztoolkit.projects.locations.policies

View File

@@ -0,0 +1,25 @@
release_tracks: [ALPHA, GA]
hidden: true
help_text:
brief: |
Export a policy.
description: |
Export the specified policy.
examples: |
To export a policy named `my-policy`, run:
$ {command} my-policy --destination=my-policy.yaml --location=us-central1
arguments:
resource:
spec: !REF googlecloudsdk.command_lib.authz_toolkit.resources:policy
help_text: |
Name of the policy to be exported.
request:
ALPHA:
api_version: v1alpha
GA:
api_version: v1
collection: authztoolkit.projects.locations.policies

View File

@@ -0,0 +1,41 @@
release_tracks: [ALPHA, GA]
hidden: true
help_text:
brief: |
Import a policy.
description: |
Import the specified policy.
examples: |
To import a policy called `my-policy`, run:
$ {command} my-policy --source=my-policy.yaml --location=us-central1
arguments:
resource:
spec: !REF googlecloudsdk.command_lib.authz_toolkit.resources:policy
help_text: |
Name of the policy you want to import.
async:
collection: authztoolkit.projects.locations.operations
request:
ALPHA:
api_version: v1alpha
GA:
api_version: v1
collection: authztoolkit.projects.locations.policies
modify_request_hooks:
- googlecloudsdk.command_lib.authz_toolkit.hooks:SetUpdateMask
import:
abort_if_equivalent: true
create_if_not_exists: true
create_request:
collection: authztoolkit.projects.locations.policies
ALPHA:
api_version: v1alpha
GA:
api_version: v1
method: create

View File

@@ -0,0 +1,34 @@
release_tracks: [ALPHA, GA]
hidden: true
help_text:
brief: |
List policies.
description: |
List all policies in the specified location of the current project.
examples: |
To list policies in the current project, run:
$ {command} --location=us-central1
request:
ALPHA:
api_version: v1alpha
GA:
api_version: v1
collection: authztoolkit.projects.locations.policies
arguments:
resource:
spec: !REF googlecloudsdk.command_lib.authz_toolkit.resources:location
help_text: |
The location of the policies to display.
response:
id_field: name
output:
format: |
table(
name.basename():label=NAME
)