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,27 @@
# -*- coding: utf-8 -*- #
# Copyright 2019 Google Inc. 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 Managed Microsoft AD peerings."""
from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from googlecloudsdk.calliope import base
@base.ReleaseTracks(base.ReleaseTrack.GA,
base.ReleaseTrack.BETA,
base.ReleaseTrack.ALPHA)
class Peerings(base.Group):
"""Managed Microsoft AD peerings."""

View File

@@ -0,0 +1,51 @@
- release_tracks: [GA, BETA, ALPHA]
help_text:
brief: |
Create a Managed Microsoft Active Directory domain peering.
description: |
Create a new Managed Microsoft AD domain peering with the given name using Google Cloud's
Managed Service for Microsoft Active Directory.
This command can fail for the following reasons:
* A domain peering with the same name already exists.
* The active account does not have permission to create AD domains peerings.
* There is an overlap between the provided CIDR range and authorized network's CIDR.
examples: |
The following command creates an AD domain peering with the name
``my-peering'', network ``my-network'' and domain
``projects/domain-project/locations/global/domains/domain.com''
$ {command} my-peering --domain=projects/domain-project/locations/global/domains/domain.com --authorized-network=projects/network-project/global/networks/my-network
async:
collection: managedidentities.projects.locations.global.operations
request:
collection: managedidentities.projects.locations.global.peerings
method: create
modify_request_hooks:
- googlecloudsdk.command_lib.active_directory.util:AppendLocationsGlobalToParent
ALPHA:
api_version: v1alpha1
BETA:
api_version: v1beta1
GA:
api_version: v1
arguments:
resource:
spec: !REF googlecloudsdk.command_lib.active_directory.resources:peering
help_text: |
Name of the managed Managed Microsoft AD domain peering you want to create.
params:
- arg_name: domain
required: true
api_field: peering.domainResource
help_text: |
Name of the managed Managed Microsoft AD domain you want to peer to.
- arg_name: authorized-network
required: true
api_field: peering.authorizedNetwork
help_text: |
Name of the Network that is authorized to communicate with Managed Microsoft AD domain. This is usually the full path name of the network in the peer project.

View File

@@ -0,0 +1,35 @@
- release_tracks: [GA, BETA, ALPHA]
help_text:
brief: |
Delete a Managed Microsoft Active Directory domain peering.
description: |
Delete a Managed Microsoft Active Directory (AD) domain peering.
This command can fail for the following reasons:
* The active account does not have permission to access the given
AD domain.
* The domain peering is no longer existed.
examples: |
The following command deletes an AD domain peering with the name
``my-peering''.
$ {command} my-peering
async:
collection: managedidentities.projects.locations.global.operations
request: &request
collection: managedidentities.projects.locations.global.peerings
ALPHA:
api_version: v1alpha1
BETA:
api_version: v1beta1
GA:
api_version: v1
arguments:
resource:
spec: !REF googlecloudsdk.command_lib.active_directory.resources:peering
help_text: |
Name of the managed Managed Microsoft AD domain peering you want to delete.

View File

@@ -0,0 +1,35 @@
- release_tracks: [GA, BETA, ALPHA]
help_text:
brief: |
Describe a Managed Microsoft Active Directory domain peering.
description: |
Show metadata for a Managed Microsoft AD domain peering.
Displays all metadata associated with a Active Directory domain peering given a
valid domain peering name.
This command can fail for the following reasons:
* The specified domain peering does not exist.
* The active account does not have permission to access the given
domain.
examples: |
The following command gets metadata for an AD domain peering with the name
``my-peering''.
$ {command} my-peering
request: &request
collection: managedidentities.projects.locations.global.peerings
ALPHA:
api_version: v1alpha1
BETA:
api_version: v1beta1
GA:
api_version: v1
arguments:
resource:
spec: !REF googlecloudsdk.command_lib.active_directory.resources:peering
help_text: |
Name of the Managed Microsoft AD domain peering you want to describe.

View File

@@ -0,0 +1,47 @@
- release_tracks: [GA, BETA, ALPHA]
help_text:
brief: |
List all Managed Microsoft Active Directory domain peerings.
description: |
List all Managed Microsoft AD domain peerings in the given project.
Displays associated Active Directory domain peerings.
This command can fail for the following reasons:
* The active account does not have permission to access the given
domain.
examples: |
The following command lists five AD domain peerings in the project.
$ {command} --limit=5
request: &request
collection: managedidentities.projects.locations.global.peerings
modify_request_hooks:
- googlecloudsdk.command_lib.active_directory.util:AppendLocationsGlobalToParent
ALPHA:
api_version: v1alpha1
BETA:
api_version: v1beta1
GA:
api_version: v1
arguments:
resource:
spec: !REF googlecloudsdk.command_lib.active_directory.resources:project
help_text: |
Name of the project want to list all Managed Microsoft AD domain peerings.
response:
id_field: name
output:
format: |
table(
name.basename():label=PEERING_NAME,
domainResource:label=DOMAIN_NAME,
authorizedNetwork:label=AUTHORIZED_NETWORK,
state:label=PEERING_STATE,
createTime.date():sort=1
)

View File

@@ -0,0 +1,47 @@
- release_tracks: [GA, BETA, ALPHA]
help_text:
brief: |
Update a Managed Microsoft Active Directory domain peering.
description: |
Update a Managed Microsoft Active Directory (AD) domain peering.
This command can fail for the following reasons:
* The active account does not have permission to access the given
AD domain.
examples: |
The following command updates an AD domain peering ``my-peering'' with the label ``l1'' and ``l2''
$ {command} my-peering --update-labels=l1=1,l2=2
async:
collection: managedidentities.projects.locations.global.operations
request: &request
collection: managedidentities.projects.locations.global.peerings
ALPHA:
api_version: v1alpha1
modify_request_hooks:
- googlecloudsdk.command_lib.active_directory.peering_util:UpdatePatchRequest
- googlecloudsdk.command_lib.active_directory.peering_util:UpdateLabels
BETA:
api_version: v1beta1
modify_request_hooks:
- googlecloudsdk.command_lib.active_directory.peering_util:UpdatePatchRequest
- googlecloudsdk.command_lib.active_directory.peering_util:UpdateLabels
GA:
api_version: v1
modify_request_hooks:
- googlecloudsdk.command_lib.active_directory.peering_util:UpdatePatchRequest
- googlecloudsdk.command_lib.active_directory.peering_util:UpdateLabels
method: patch
arguments:
resource:
spec: !REF googlecloudsdk.command_lib.active_directory.resources:peering
help_text: |
Name of the managed Managed Microsoft AD domain you want to delete.
additional_arguments_hook: googlecloudsdk.command_lib.active_directory.flags:PeeringUpdateLabelsFlags