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,24 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 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 unit-kinds command group for the SaaS Runtime CLI."""
from googlecloudsdk.calliope import base
@base.UniverseCompatible
@base.ReleaseTracks(base.ReleaseTrack.ALPHA, base.ReleaseTrack.BETA)
class Saas(base.Group):
category = base.SAAS_CATEGORY
detailed_help = {'brief': 'Manage SaaS Runtime unit-kinds.'}

View File

@@ -0,0 +1,143 @@
- release_tracks: [ALPHA, BETA]
help_text:
brief: Create a Unit Kind
description: Create a Unit Kind
examples: |-
To create the Unit Kind, run:
$ {command}
arguments:
params:
- help_text: |-
Identifier. The resource name (full URI of the resource) following the standard naming
scheme:
"projects/{project}/locations/{location}/unitKinds/{unitKind}"
is_positional: true
request_id_field: unitKindId
resource_spec: !REF googlecloudsdk.command_lib.saas_runtime.resources:unit_kind
required: true
- arg_name: default-release
help_text: |-
A reference to the Release object to use as default for creating new units
of this Unit Kind (optional).
If not specified, a new unit must explicitly reference which release to use
for its creation.
is_positional: false
resource_spec: !REF googlecloudsdk.command_lib.saas_runtime.resources:release
resource_method_params:
unitKind.defaultRelease: '{__relative_name__}'
required: false
- arg_name: saas
help_text: |-
A reference to the Saas that defines the product (managed service) that
the producer wants to manage with Saas Runtime. Immutable once set.
is_positional: false
resource_spec: !REF googlecloudsdk.command_lib.saas_runtime.resources:saas
resource_method_params:
unitKind.saas: '{__relative_name__}'
required: true
- arg_name: dependencies
api_field: unitKind.dependencies
required: false
repeated: true
help_text: |-
List of other unit kinds that this release will depend on. Dependencies
will be automatically provisioned if not found. Maximum 10.
spec:
- api_field: unitKind
resource_pattern: projects/{project}/locations/{location}/unitKinds/{unitKind}
help_text: |-
The unit kind of the dependency.
- api_field: alias
help_text: |-
An alias for the dependency. Used for input variable mapping.
- arg_name: input-variable-mappings
api_field: unitKind.inputVariableMappings
required: false
repeated: true
help_text: |-
List of inputVariables for this release that will either be retrieved from
a dependency's outputVariables, or will be passed on to a dependency's
inputVariables. Maximum 100.
spec:
- api_field: variable
help_text: |-
name of the variable
- json_name: from
api_field: from_
help_text: |-
Output variables which will get their values from dependencies
spec:
- api_field: dependency
help_text: |-
Alias of the dependency that the outputVariable will pass its value to
- api_field: outputVariable
help_text: |-
Name of the outputVariable on the dependency
- api_field: to
help_text: |-
Input variables whose values will be passed on to dependencies.
spec:
- api_field: dependency
help_text: |-
Alias of the dependency that the inputVariable will pass its value to
- api_field: inputVariable
help_text: |-
Name of the inputVariable on the dependency
- api_field: ignoreForLookup
help_text: |-
Indicates if this mapping should be used during lookup or not
- arg_name: output-variable-mappings
api_field: unitKind.outputVariableMappings
required: false
repeated: true
help_text: |-
List of inputVariables for this release that will either be retrieved from
a dependency's outputVariables, or will be passed on to a dependency's
inputVariables. Maximum 100.
spec:
- api_field: variable
help_text: |-
name of the variable
- json_name: from
api_field: from_
help_text: |-
Output variables which will get their values from dependencies
spec:
- api_field: dependency
help_text: |-
Alias of the dependency that the outputVariable will pass its value to
- api_field: outputVariable
help_text: |-
Name of the outputVariable on the dependency
- api_field: to
help_text: |-
Input variables whose values will be passed on to dependencies.
spec:
- api_field: dependency
help_text: |-
Alias of the dependency that the inputVariable will pass its value to
- api_field: inputVariable
help_text: |-
Name of the inputVariable on the dependency
- api_field: ignoreForLookup
help_text: |-
Indicates if this mapping should be used during lookup or not
- arg_name: labels
api_field: unitKind.labels
required: false
repeated: true
help_text: |-
The labels on the resource, which can be used for categorization.
similar to Kubernetes resource labels.
spec:
- api_field: key
- api_field: value
request:
api_version: v1beta1
collection:
- saasservicemgmt.projects.locations.unitKinds
modify_request_hooks:
- googlecloudsdk.command_lib.saas_runtime.unit_kinds:AddParentToDependencies

View File

@@ -0,0 +1,19 @@
- release_tracks: [ALPHA, BETA]
help_text:
brief: Delete a Unit Kind
description: Delete a Unit Kind
examples: |-
To delete the Unit Kind, run:
$ {command}
arguments:
params:
- help_text: |-
Name of the resource
is_positional: true
resource_spec: !REF googlecloudsdk.command_lib.saas_runtime.resources:unit_kind
required: true
request:
api_version: v1beta1
collection:
- saasservicemgmt.projects.locations.unitKinds

View File

@@ -0,0 +1,19 @@
- release_tracks: [ALPHA, BETA]
help_text:
brief: Describe a Unit Kind
description: Describe a Unit Kind
examples: |-
To describe the Unit Kind, run:
$ {command}
arguments:
params:
- help_text: |-
Name of the resource
is_positional: true
resource_spec: !REF googlecloudsdk.command_lib.saas_runtime.resources:unit_kind
required: true
request:
api_version: v1beta1
collection:
- saasservicemgmt.projects.locations.unitKinds

View File

@@ -0,0 +1,19 @@
- release_tracks: [ALPHA, BETA]
help_text:
brief: List Unit Kinds
description: List Unit Kinds
examples: |-
To list all Unit Kinds, run:
$ {command}
arguments:
resource:
help_text: |-
Parent value for ListUnitKindsRequest
spec: !REF googlecloudsdk.command_lib.saas_runtime.resources:project_location_with_default
request:
api_version: v1beta1
collection:
- saasservicemgmt.projects.locations.unitKinds
response:
id_field: name

View File

@@ -0,0 +1,149 @@
- release_tracks: [ALPHA, BETA]
help_text:
brief: Update a Unit Kind
description: Update a Unit Kind
examples: |-
To update the Unit Kind, run:
$ {command}
arguments:
params:
- help_text: |-
Identifier. The resource name (full URI of the resource) following the standard naming
scheme:
"projects/{project}/locations/{location}/unitKinds/{unitKind}"
is_positional: true
resource_spec: !REF googlecloudsdk.command_lib.saas_runtime.resources:unit_kind
required: true
- arg_name: default-release
help_text: |-
A reference to the Release object to use as default for creating new units
of this Unit Kind.
If not specified, a new unit must explicitly reference which release to use
for its creation.
is_positional: false
resource_spec: !REF googlecloudsdk.command_lib.saas_runtime.resources:release
resource_method_params:
unitKind.defaultRelease: '{__relative_name__}'
required: false
clearable: true
- arg_name: saas
help_text: |-
A reference to the Saas that defines the product (managed service) that
the producer wants to manage with Saas Runtime. Immutable once set.
is_positional: false
resource_spec: !REF googlecloudsdk.command_lib.saas_runtime.resources:saas
resource_method_params:
unitKind.saas: '{__relative_name__}'
required: false
clearable: false
- arg_name: dependencies
api_field: unitKind.dependencies
required: false
repeated: true
help_text: |-
List of other unit kinds that this release will depend on. Dependencies
will be automatically provisioned if not found. Maximum 10.
clearable: true
spec:
- api_field: unitKind
resource_pattern: projects/{project}/locations/{location}/unitKinds/{unitKind}
help_text: |-
The unit kind of the dependency.
- api_field: alias
help_text: |-
An alias for the dependency. Used for input variable mapping.
- arg_name: input-variable-mappings
api_field: unitKind.inputVariableMappings
required: false
repeated: true
help_text: |-
List of inputVariables for this release that will either be retrieved from
a dependency's outputVariables, or will be passed on to a dependency's
inputVariables. Maximum 100.
clearable: true
spec:
- api_field: variable
help_text: |-
name of the variable
- json_name: from
api_field: from_
help_text: |-
Output variables which will get their values from dependencies
spec:
- api_field: dependency
help_text: |-
Alias of the dependency that the outputVariable will pass its value to
- api_field: outputVariable
help_text: |-
Name of the outputVariable on the dependency
- api_field: to
help_text: |-
Input variables whose values will be passed on to dependencies.
spec:
- api_field: dependency
help_text: |-
Alias of the dependency that the inputVariable will pass its value to
- api_field: inputVariable
help_text: |-
Name of the inputVariable on the dependency
- api_field: ignoreForLookup
help_text: |-
Tells SaaS Runtime if this mapping should be used during lookup or not
- arg_name: output-variable-mappings
api_field: unitKind.outputVariableMappings
required: false
repeated: true
help_text: |-
List of outputVariables for this unit kind will be passed to this unit's
outputVariables. Maximum 100.
clearable: true
spec:
- api_field: variable
help_text: |-
name of the variable
- json_name: from
api_field: from_
help_text: |-
Output variables which will get their values from dependencies
spec:
- api_field: dependency
help_text: |-
Alias of the dependency that the outputVariable will pass its value to
- api_field: outputVariable
help_text: |-
Name of the outputVariable on the dependency
- api_field: to
help_text: |-
Input variables whose values will be passed on to dependencies.
spec:
- api_field: dependency
help_text: |-
Alias of the dependency that the inputVariable will pass its value to
- api_field: inputVariable
help_text: |-
Name of the inputVariable on the dependency
- api_field: ignoreForLookup
help_text: |-
Tells SaaS Runtime if this mapping should be used during lookup or not
- arg_name: labels
api_field: unitKind.labels
required: false
repeated: true
help_text: |-
The labels on the resource, which can be used for categorization.
similar to Kubernetes resource labels.
clearable: true
spec:
- api_field: key
- api_field: value
request:
api_version: v1beta1
collection:
- saasservicemgmt.projects.locations.unitKinds
modify_request_hooks:
- googlecloudsdk.command_lib.saas_runtime.unit_kinds:AddParentToDependencies
update:
read_modify_update: true