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 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 Distributed Cloud Edge Network routes resource."""
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)
class Routes(base.Group):
"""Manage Distributed Cloud Edge Network routes."""

View File

@@ -0,0 +1,55 @@
- release_tracks: [ALPHA]
help_text:
brief: Create a Distributed Cloud Edge Network route.
description: |
Create a new Distributed Cloud Edge Network route.
examples: |
To create a route called `AMF_OAM_VRF_1_macVlan` in zone `us-east1-den3`,
with destination range `10.145.201.1/32`, and next hop of `10.140.65.2`,
use the command
$ {command} AMF_OAM_VRF_1_macVlan \
--network=AMF_OAM \
--destination-range=10.145.201.1/32 \
--zone=us-east1-den3 \
--next-hop-address=10.140.64.2
request:
collection: edgenetwork.projects.locations.zones.routes
api_version: v1alpha1
modify_request_hooks:
- googlecloudsdk.command_lib.edge_cloud.networking.resources:SetResourcesPathForRoute
arguments:
resource:
help_text: Distributed Cloud Edge Network route to create.
# The following should point to the resource argument definition under
# your surface's command_lib directory.:
spec: !REF googlecloudsdk.command_lib.edge_cloud.networking.resources:route
params:
- arg_name: network
api_field: route.network
required: true
help_text: |
Network that this route belongs to.
- arg_name: destination-range
api_field: route.destinationCidr
required: true
help_text: |
Destination subnet of this route (in CIDR format).
- arg_name: next-hop-address
api_field: route.nextHopAddress
required: true
help_text: |
IP address of the next hop along this route.
- arg_name: description
api_field: route.description
help_text: |
An optional, textual description for the route.
labels:
api_field: route.labels
async:
collection: edgenetwork.projects.locations.operations

View File

@@ -0,0 +1,26 @@
- release_tracks: [ALPHA]
help_text:
brief: Delete a Distributed Cloud Edge Network route.
description: |
Delete a Distributed Cloud Edge Network route.
examples: |
To delete a route called `AMF_OAM_VRF_1_macVlan` in edge zone `us-central1-edge-den1`, run:
$ {command} 'AMF_OAM_VRF_1_macVlan' \
--location=us-central1 \
--zone=us-central1-edge-den1
request:
collection: edgenetwork.projects.locations.zones.routes
api_version: v1alpha1
arguments:
resource:
help_text: Distributed Cloud Edge Network route to delete.
# The following should point to the resource argument definition under your
# surface's command_lib directory.:
spec: !REF googlecloudsdk.command_lib.edge_cloud.networking.resources:route
async:
collection: edgenetwork.projects.locations.operations

View File

@@ -0,0 +1,21 @@
release_tracks: [ALPHA]
help_text:
brief: Show details about the Distributed Cloud Edge Network route.
description: |
Show details about the Distributed Cloud Edge Network route.
examples: |
To show details about a route named `my-route` in edge zone `us-central1-edge-den1`, run:
$ {command} my-route --location=us-central1 --zone=us-central1-edge-den1
request:
collection: edgenetwork.projects.locations.zones.routes
api_version: v1alpha1
arguments:
resource:
help_text: The route you want to describe.
# The following should point to the resource argument definition under your
# surface's command_lib directory.:
spec: !REF googlecloudsdk.command_lib.edge_cloud.networking.resources:route

View File

@@ -0,0 +1,34 @@
- release_tracks: [ALPHA]
help_text:
brief: List Distributed Cloud Edge Network routes.
description: |
List Distributed Cloud Edge Network routes.
examples: |
To list the routes in edge zone `us-central1-edge-den1`, run:
$ {command} --location=us-central1 --zone=us-central1-edge-den1
request:
collection: edgenetwork.projects.locations.zones.routes
api_version: v1alpha1
response:
id_field: name
arguments:
resource:
help_text: Parent Distributed Cloud Edge Network zone to list all contained Distributed Cloud Edge Network routes.
# The following should point to the parent resource argument definition
# under your surface's command_lib directory.:
spec: !REF googlecloudsdk.command_lib.edge_cloud.networking.resources:zone
output:
format: |
table(
name.basename():label=NAME,
network.basename():label=NETWORK,
nextHopAddress:label=NEXT_HOP,
destinationCidr:label=DESTINATION_CIDR,
state:label=STATE
)