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,36 @@
# -*- coding: utf-8 -*- #
# Copyright 2020 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 the Google Workspace Add-ons CLI."""
from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from googlecloudsdk.calliope import base
@base.ReleaseTracks(base.ReleaseTrack.GA)
class GSuiteAddOns(base.Group):
"""Manage Google Workspace Add-ons resources.
Commands for managing Google Workspace Add-ons resources.
"""
category = base.UNCATEGORIZED_CATEGORY
def Filter(self, context, args):
# TODO(b/190541887): Determine if command group works with project number
base.RequireProjectID(args)
del context, args

View File

@@ -0,0 +1,27 @@
# -*- 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.
"""Package for the api_keys CLI subcommands."""
from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from googlecloudsdk.calliope import base
@base.ReleaseTracks(base.ReleaseTrack.GA)
class Deployments(base.Group):
"""Manage Google Workspace Add-ons Deployments."""

View File

@@ -0,0 +1,32 @@
- release_tracks: [GA]
help_text:
brief: Create a Google Workspace Add-ons deployment
description: Create a Google Workspace Add-ons deployment
examples: |
To create an deployment called `my-deployment` with the deployment file, run:
$ {command} my-deployment --deployment-file=my-deployment.json
To create an deployment called `my-deployment` with the deployment object, run:
$ {command} my-deployment --deployment-object=my-deployment-string
request:
collection: gsuiteaddons.projects.deployments
api_version: v1
arguments:
resource:
help_text: Google Workspace Add-ons deployment to create
spec: !REF googlecloudsdk.command_lib.workspace_add_ons.resources:deployment
params:
- group:
mutex: true
required: true
params:
- api_field: googleCloudGsuiteaddonsV1Deployment
arg_name: deployment-object
help_text: json string of the deploymentObject
processor: googlecloudsdk.command_lib.workspace_add_ons.util:LoadJsonString
- api_field: googleCloudGsuiteaddonsV1Deployment
arg_name: deployment-file
help_text: path to the deployment file
processor: googlecloudsdk.command_lib.workspace_add_ons.util:ParseJsonFileToDeployment

View File

@@ -0,0 +1,25 @@
- release_tracks: [GA]
help_text:
brief: Delete a Google Workspace Add-ons deployment
description: Delete a Google Workspace Add-ons deployment
examples: |
To delete an deployment called `my-deployment`, run:
$ {command} my-deployment
request:
collection: gsuiteaddons.projects.deployments
api_version: v1
modify_request_hooks:
- googlecloudsdk.command_lib.workspace_add_ons.util:HandleEscapingInNamePath
arguments:
resource:
help_text: Google Workspace Add-ons deployment to delete
spec: !REF googlecloudsdk.command_lib.workspace_add_ons.resources:deployment
params:
- api_field: etag
arg_name: etag
help_text: etag of the deployment file
type: str
input:
confirmation_prompt: |
deployment [{__name__}] will be deleted.

View File

@@ -0,0 +1,19 @@
- release_tracks: [GA]
help_text:
brief: Describe a Google Workspace Add-ons deployment
description: Describe a Google Workspace Add-ons deployment
examples: |
To describe an deployment called `my-deployment`, run:
$ {command} my-deployment
request:
collection: gsuiteaddons.projects.deployments
api_version: v1
modify_request_hooks:
- googlecloudsdk.command_lib.workspace_add_ons.util:HandleEscapingInNamePath
arguments:
resource:
help_text: Google Workspace Add-ons deployment to describe
spec: !REF googlecloudsdk.command_lib.workspace_add_ons.resources:deployment
output:
format: json

View File

@@ -0,0 +1,18 @@
- release_tracks: [GA]
help_text:
brief: Install a Google Workspace Add-ons deployment
description: Install a Google Workspace Add-ons deployment
examples: |
To install a deployment called `my-deployment`, run:
$ {command} my-deployment
request:
collection: gsuiteaddons.projects.deployments
api_version: v1
method: install
modify_request_hooks:
- googlecloudsdk.command_lib.workspace_add_ons.util:HandleEscapingInNamePath
arguments:
resource:
help_text: Google Workspace Add-ons deployment to install
spec: !REF googlecloudsdk.command_lib.workspace_add_ons.resources:deployment

View File

@@ -0,0 +1,20 @@
- release_tracks: [GA]
help_text:
brief: Get the install status of a Google Workspace Add-ons deployment
description: Get the install status of a Google Workspace Add-ons deployment
examples: |
To get the install status of a deployment called `my-deployment`, run:
$ {command} my-deployment
request:
collection: gsuiteaddons.projects.deployments
api_version: v1
method: getInstallStatus
modify_request_hooks:
- googlecloudsdk.command_lib.workspace_add_ons.util:SetInstallStatusNamePath
arguments:
resource:
help_text: Google Workspace Add-ons deployment to get install status
spec: !REF googlecloudsdk.command_lib.workspace_add_ons.resources:deployment
output:
format: json

View File

@@ -0,0 +1,23 @@
- release_tracks: [GA]
help_text:
brief: List Google Workspace Add-ons deployments
description: List Google Workspace Add-ons deployments
examples: |
To list all deployments, run:
$ {command}
request:
collection: gsuiteaddons.projects.deployments
api_version: v1
response:
id_field: name
arguments:
resource:
help_text: Google Workspace Add-ons deployment to describe
spec: !REF googlecloudsdk.command_lib.workspace_add_ons.resources:project
output:
format: table(name, name.scope("deployments"):label=DEPLOYMENT_ID)

View File

@@ -0,0 +1,41 @@
- release_tracks: [GA]
help_text:
brief: Replace a Google Workspace Add-ons deployment
description: Replace a Google Workspace Add-ons deployment
examples: |
To replace an deployment called `my-deployment` with the deployment file, run:
$ {command} my-deployment --deployment-file=my-deployment.json
To replace an deployment called `my-deployment` with the deployment object, run:
$ {command} my-deployment --deployment-object=my-deployment-string
request:
collection: gsuiteaddons.projects.deployments
api_version: v1
method: replaceDeployment
modify_request_hooks:
- googlecloudsdk.command_lib.workspace_add_ons.util:HandleEscapingInNamePath
arguments:
resource:
help_text: Google Workspace Add-ons deployment to replace
spec: !REF googlecloudsdk.command_lib.workspace_add_ons.resources:deployment
params:
- api_field: googleCloudGsuiteaddonsV1Deployment.etag
arg_name: etag
help_text: etag of the deployment file
type: str
- group:
mutex: true
required: true
params:
- api_field: googleCloudGsuiteaddonsV1Deployment
arg_name: deployment-object
help_text: json string of the deploymentObject
processor: googlecloudsdk.command_lib.workspace_add_ons.util:LoadJsonString
- api_field: googleCloudGsuiteaddonsV1Deployment
arg_name: deployment-file
help_text: path to the deployment file
processor: googlecloudsdk.command_lib.workspace_add_ons.util:ParseJsonFileToDeployment
output:
format: json

View File

@@ -0,0 +1,21 @@
- release_tracks: [GA]
help_text:
brief: Uninstall a Google Workspace Add-ons deployment
description: Uninstall a Google Workspace Add-ons deployment
examples: |
To uninstall a deployment called `my-deployment`, run:
$ {command} my-deployment
request:
collection: gsuiteaddons.projects.deployments
api_version: v1
method: uninstall
modify_request_hooks:
- googlecloudsdk.command_lib.workspace_add_ons.util:HandleEscapingInNamePath
arguments:
resource:
help_text: Google Workspace Add-ons deployment to uninstall
spec: !REF googlecloudsdk.command_lib.workspace_add_ons.resources:deployment
input:
confirmation_prompt: |
deployment [{__name__}] will be uninstalled.

View File

@@ -0,0 +1,20 @@
- release_tracks: [GA]
help_text:
brief: Gets the authorization information for deployments in a given project
description: Gets the authorization information for deployments in a given project
examples: |
To get authorization information for deployments in a given project
$ {command}
request:
collection: gsuiteaddons.projects
api_version: v1
method: getAuthorization
modify_request_hooks:
- googlecloudsdk.command_lib.workspace_add_ons.util:SetAuthorizationNamePath
arguments:
resource:
help_text: A cloud project to get authorization information
spec: !REF googlecloudsdk.command_lib.workspace_add_ons.resources:project
output:
format: json