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,29 @@
# -*- coding: utf-8 -*- #
# Copyright 2024 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 Network Security Authz Policies."""
from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from googlecloudsdk.calliope import base
@base.ReleaseTracks(base.ReleaseTrack.BETA, base.ReleaseTrack.GA)
@base.DefaultUniverseOnly
class AuthzPolicies(base.Group):
"""Manage Network Security `AuthzPolicy` resources."""
category = base.NETWORK_SECURITY_CATEGORY

View File

@@ -0,0 +1,29 @@
release_tracks: [BETA, GA]
help_text:
brief: |
Delete an `AuthzPolicy` resource.
description: |
Delete the specified `AuthzPolicy` resource.
examples: |
To delete an `AuthzPolicy` resource named
`my-authz-policy` in `us-central1`, run:
$ {command} my-authz-policy --location=us-central1
arguments:
resource:
spec: !REF googlecloudsdk.command_lib.network_security.resources:authzPolicy
help_text: |
The ID of the deleted `AuthzPolicy` resource.
async:
collection: networksecurity.projects.locations.operations
request: &request
BETA:
api_version: v1beta1
GA:
api_version: v1
collection: networksecurity.projects.locations.authzPolicies

View File

@@ -0,0 +1,25 @@
release_tracks: [BETA, GA]
help_text:
brief: |
Describe an `AuthzPolicy` resource.
description: |
Show details about an `AuthzPolicy` resource.
examples: |
To show details about the `AuthzPolicy` resource named
`my-authz-policy` located in `us-central1`.
$ {command} my-authz-policy --location=us-central1
arguments:
resource:
spec: !REF googlecloudsdk.command_lib.network_security.resources:authzPolicy
help_text: The ID of the `AuthzPolicy` resource.
request: &request
BETA:
api_version: v1beta1
GA:
api_version: v1
collection: networksecurity.projects.locations.authzPolicies

View File

@@ -0,0 +1,38 @@
release_tracks: [BETA, GA]
help_text:
brief: |
Import an `AuthzPolicy` resource.
description: |
Import an `AuthzPolicy` resource defined in a YAML file.
examples: |
To import an `AuthzPolicy` resource named
`my-authz-poilcy` from a YAML file in `us-central1`, run:
$ {command} my-authz-policy --source=my-authz-policy.yaml --location=us-central1
request:
collection: networksecurity.projects.locations.authzPolicies
BETA:
api_version: v1beta1
GA:
api_version: v1
arguments:
resource:
spec: !REF googlecloudsdk.command_lib.network_security.resources:authzPolicy
help_text: |
The ID of the new or updated `AuthzPolicy` resource.
async:
collection: networksecurity.projects.locations.operations
import:
abort_if_equivalent: true
create_if_not_exists: true
create_request:
collection: networksecurity.projects.locations.authzPolicies
BETA:
api_version: v1beta1
GA:
api_version: v1
method: create

View File

@@ -0,0 +1,38 @@
release_tracks: [BETA, GA]
help_text:
brief: |
List `AuthzPolicy` resources.
description: |
List all `AuthzPolicy` resources in the specified location of the
current project.
examples: |
To list all `AuthzPolicy` resources in the current project located
in `us-central1` region run:
$ {command} --location=us-central1
request: &request
BETA:
api_version: v1beta1
GA:
api_version: v1
collection: networksecurity.projects.locations.authzPolicies
arguments:
resource:
spec: !REF googlecloudsdk.command_lib.network_security.resources:location
help_text: |
The parent location.
response:
id_field: name
output:
format: |
table(
name.basename():label=NAME,
target.loadBalancingScheme,
updateTime.date(unit=1000, tz_default=UTC):label=LAST_MODIFIED
)