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,26 @@
# -*- coding: utf-8 -*- #
# Copyright 2020 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.
"""The services command group for Media CDN."""
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.ReleaseTrack.GA)
class Services(base.Group):
"""Interact with and manage EdgeCacheService resources."""

View File

@@ -0,0 +1,24 @@
- release_tracks: [ALPHA, GA]
help_text:
brief: Delete an EdgeCacheService resource.
description: |
Delete an EdgeCacheService resource.
examples: |
To delete an EdgeCacheService resource named 'my-service', run:
$ {command} my-service
request:
collection: networkservices.projects.locations.edgeCacheServices
ALPHA:
api_version: v1alpha1
GA:
api_version: v1
async:
collection: networkservices.projects.locations.operations
arguments:
resource:
help_text: The EdgeCacheService resource to delete.
spec: !REF googlecloudsdk.command_lib.edge_cache.resources:edgeCacheService

View File

@@ -0,0 +1,21 @@
- release_tracks: [ALPHA, GA]
help_text:
brief: Show details about an EdgeCacheService resource.
description: Show details about an EdgeCacheService resource.
examples: |
To show details about an EdgeCacheService resource named
'my-service', run:
$ {command} my-service
request:
collection: networkservices.projects.locations.edgeCacheServices
ALPHA:
api_version: v1alpha1
GA:
api_version: v1
arguments:
resource:
help_text: The EdgeCacheService resource you want to describe.
spec: !REF googlecloudsdk.command_lib.edge_cache.resources:edgeCacheService

View File

@@ -0,0 +1,21 @@
- release_tracks: [ALPHA, GA]
help_text:
brief: Export an EdgeCacheService resource.
description: Export an EdgeCacheService resource to YAML.
examples: |
To export an existing EdgeCacheService resource named
'my-service', run:
$ {command} my-service --destination=my-service.yaml
request:
collection: networkservices.projects.locations.edgeCacheServices
ALPHA:
api_version: v1alpha1
GA:
api_version: v1
arguments:
resource:
help_text: The EdgeCacheService resource you want to export.
spec: !REF googlecloudsdk.command_lib.edge_cache.resources:edgeCacheService

View File

@@ -0,0 +1,42 @@
- release_tracks: [ALPHA, GA]
help_text:
brief: Import an EdgeCacheService resource.
description: |
Import an EdgeCacheService resource. If the named
EdgeCacheService resource already exists, the resource will be
updated to match the imported resource configuration.
If the named EdgeCacheService resource does not already exist, a
new EdgeCacheService resource will be created with that name.
examples: |
To import an EdgeCacheService resource named 'my-service' from a
YAML file, run:
$ {command} my-service --source=my-service.yaml
request:
collection: networkservices.projects.locations.edgeCacheServices
ALPHA:
api_version: v1alpha1
GA:
api_version: v1
async:
collection: networkservices.projects.locations.operations
arguments:
resource:
help_text: The EdgeCacheService resource you want to import.
spec: !REF googlecloudsdk.command_lib.edge_cache.resources:edgeCacheService
import:
abort_if_equivalent: true
create_if_not_exists: true
create_request:
collection: networkservices.projects.locations.edgeCacheServices
ALPHA:
api_version: v1alpha1
GA:
api_version: v1
method: create

View File

@@ -0,0 +1,44 @@
- release_tracks: [ALPHA, GA]
help_text:
brief: Invalidate the cache for an EdgeCacheService resource.
description: |
Invalidate the cache entries associated with an EdgeCacheService
resource.
examples: |
To invalidate content via a tag, or tags for a given host for
an EdgeCacheService named 'my-service':
$ {command} my-service --tags="status=404" --host="media.example.com"
To invalidate all content under a specific path, specify an
exact path, or a prefix. Prefixes are denoted with a trailing
`*` character.
$ {command} my-service --path="/static/*"
You can optionally combine this with a status code. For example,
to invalidate all cached HTTP 404s:
$ {command} my-service --tags="status=404" --path="/static/*"
request:
collection: networkservices.projects.locations.edgeCacheServices
ALPHA:
api_version: v1alpha1
GA:
api_version: v1
method: invalidateCache
arguments:
resource:
help_text: The EdgeCacheService resource you want to invalidate
the cache for.
spec: !REF googlecloudsdk.command_lib.edge_cache.resources:edgeCacheService
params:
- group:
required: true
params:
- _REF_: googlecloudsdk.command_lib.edge_cache.flags:invalidateCacheRequest.host
- _REF_: googlecloudsdk.command_lib.edge_cache.flags:invalidateCacheRequest.path
- _REF_: googlecloudsdk.command_lib.edge_cache.flags:invalidateCacheRequest.tags

View File

@@ -0,0 +1,37 @@
- release_tracks: [ALPHA, GA]
help_text:
brief: List all EdgeCacheService resources in a project.
description: |
List EdgeCacheService resources.
examples: |
To list existing EdgeCacheService resources, run:
$ {command}
request:
collection: networkservices.projects.locations.edgeCacheServices
ALPHA:
api_version: v1alpha1
GA:
api_version: v1
response:
id_field: name
arguments:
resource:
help_text: The location (defaults to global) of the resources.
spec: !REF googlecloudsdk.command_lib.edge_cache.resources:location
removed_flags: [location]
output:
format: |
table(
name.basename():label=NAME,
ipv4Addresses.list():label=IPV4_ADDRESSES,
ipv6Addresses.list():label=IPV6_ADDRESSES,
edgeSecurityPolicy:label=EDGE_SECURITY_POLICY,
edgeSslCertificates:label=EDGE_SSL_CERTIFICATES,
logConfig.enabled:label=LOGGING_ENABLED,
updateTime:label=UPDATETIME
)

View File

@@ -0,0 +1,34 @@
- release_tracks: [ALPHA, GA]
help_text:
brief: Update an EdgeCacheService resource.
description: |
Update an existing EdgeCacheService resource.
examples: |
To update an EdgeCacheService resource called 'my-service' run:
$ {command} my-service --description="new description"
request:
collection: networkservices.projects.locations.edgeCacheServices
ALPHA:
api_version: v1alpha1
GA:
api_version: v1
method: patch
async:
collection: networkservices.projects.locations.operations
arguments:
resource:
help_text: The name of the EdgeCacheService resource to create.
spec: !REF googlecloudsdk.command_lib.edge_cache.resources:edgeCacheService
params:
- _REF_: googlecloudsdk.command_lib.edge_cache.flags:service.description
- _REF_: googlecloudsdk.command_lib.edge_cache.flags:service.labels
- _REF_: googlecloudsdk.command_lib.edge_cache.flags:service.edge_security_policy
- _REF_: googlecloudsdk.command_lib.edge_cache.flags:service.edge_ssl_certificate
- _REF_: googlecloudsdk.command_lib.edge_cache.flags:service.enable_logging
- _REF_: googlecloudsdk.command_lib.edge_cache.flags:service.logging_sample_rate
- _REF_: googlecloudsdk.command_lib.edge_cache.flags:service.require_tls