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,37 @@
# -*- 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.
"""Command group for Hub Features."""
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.BETA,
base.ReleaseTrack.GA,
)
class Features(base.Group):
"""Manage Hub Feature resources.
These commands manage Features generically. Most Features offer specialized
commands under dedicated sub-groups that may be more effective for that
specific Feature.
"""
category = base.COMPUTE_CATEGORY

View File

@@ -0,0 +1,45 @@
# -*- 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.
"""Generic command to describe any fleet feature."""
from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from googlecloudsdk.calliope import base as calliope_base
from googlecloudsdk.command_lib.container.fleet.features import base
@calliope_base.Hidden
class Describe(base.DescribeCommand):
"""Describe a fleet feature.
## EXAMPLES
To describe the `servicemesh` feature, run:
$ {command} servicemesh
"""
@staticmethod
def Args(parser):
parser.add_argument(
'feature',
help='Short name of the feature to describe.',
)
def Run(self, args):
self.feature_name = args.feature
return self.GetFeature()

View File

@@ -0,0 +1,46 @@
# -*- 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.
"""Generic command to disable any fleet feature."""
from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from googlecloudsdk.calliope import base as calliope_base
from googlecloudsdk.command_lib.container.fleet.features import base
@calliope_base.Hidden
class Disable(base.DisableCommand):
"""Disable a fleet feature.
## EXAMPLES
To disable the `servicemesh` feature, run:
$ {command} servicemesh
"""
@staticmethod
def Args(parser):
base.DisableCommand.Args(parser)
parser.add_argument(
'feature',
help='Short name of the feature to disable.',
)
def Run(self, args):
self.feature_name = args.feature
self.Disable(args.force)

View File

@@ -0,0 +1,45 @@
# -*- 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.
"""Generic command to enable any fleet feature."""
from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from googlecloudsdk.calliope import base as calliope_base
from googlecloudsdk.command_lib.container.fleet.features import base
@calliope_base.Hidden
class Enable(base.EnableCommand):
"""Enable a fleet feature.
## EXAMPLES
To enable the `servicemesh` feature, run:
$ {command} servicemesh
"""
@staticmethod
def Args(parser):
parser.add_argument(
'feature',
help='Short name of the feature to enable.',
)
def Run(self, args):
self.feature_name = args.feature
self.Enable(self.messages.Feature())

View File

@@ -0,0 +1,33 @@
- help_text:
brief: List enabled features.
description: List enabled fleet features in a project.
examples: |
To list all enabled fleet features in a project, run:
$ {command}
request:
collection: gkehub.projects.locations.features
ALPHA:
api_version: v1alpha
BETA:
api_version: v1beta
arguments:
resource:
help_text: |
The location to list features under.
'global' is the only supported value.
spec: !REF googlecloudsdk.command_lib.container.fleet.resources:location
response:
id_field: name
output:
format: |
table(
name.basename():label=NAME:sort=1,
resourceState.state:label=STATE
)