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 2018 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 gcloud dlp jobs command group."""
from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from googlecloudsdk.calliope import base
@base.ReleaseTracks(base.ReleaseTrack.ALPHA)
class Jobs(base.Group):
"""Manage asynchronous, long-running Cloud DLP jobs."""

View File

@@ -0,0 +1,37 @@
# Copyright 2018 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 applqicable 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.
- release_tracks: [ALPHA]
help_text:
brief: Start the asynchronous cancellation of a Cloud DLP job.
description: |
Start the asynchronous cancellation of a Cloud DLP job. The server makes a
best effort to cancel the job, but success is not guaranteed.
request:
collection: dlp.projects.dlpJobs
method: cancel
api_version: v2
modify_request_hooks:
- googlecloudsdk.command_lib.util.hooks.request_modifiers:SetFieldFromRelativeName:api_field=name
- googlecloudsdk.command_lib.dlp.hooks:SetCancelRequestHook
input:
confirmation_prompt: |
You are about to cancel dlp job [{__name__}].
arguments:
resource:
help_text: |
The Cloud DLP job to cancel.
spec: !REF googlecloudsdk.command_lib.dlp.resources:job

View File

@@ -0,0 +1,28 @@
# Copyright 2018 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.
- release_tracks: [ALPHA]
help_text:
brief: Delete a Cloud DLP job.
description: |
Deletes a Cloud DLP job. The job will be canceled if possible.
request:
collection: dlp.projects.dlpJobs
api_version: v2
arguments:
resource:
help_text: |
The Cloud DLP job to delete.
spec: !REF googlecloudsdk.command_lib.dlp.resources:job

View File

@@ -0,0 +1,31 @@
# Copyright 2018 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.
- release_tracks: [ALPHA]
help_text:
brief: Get the latest status of a Cloud DLP job.
description: |
Get the latest status of a Cloud DLP job.
request:
collection: dlp.projects.dlpJobs
api_version: v2
response:
id_field: name
arguments:
resource:
help_text: |
The Cloud DLP job to fetch.
spec: !REF googlecloudsdk.command_lib.dlp.resources:job

View File

@@ -0,0 +1,56 @@
# Copyright 2018 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.
- release_tracks: [ALPHA]
help_text:
brief: List Cloud DLP jobs.
description: |
List Cloud DLP jobs.
request:
collection: dlp.projects.locations.dlpJobs
api_version: v2
response:
id_field: name
arguments:
params:
- arg_name: job-type
api_field: type
is_positional: false
required: false
help_text: |
The type of Cloud DLP jobs to list.
default: inspect
choices:
- arg_value: inspect
enum_value: INSPECT_JOB
- arg_value: risk-analysis
enum_value: RISK_ANALYSIS_JOB
resource:
help_text: The location to list jobs for.
spec: !REF googlecloudsdk.command_lib.dlp.resources:location
output:
format: |
table(
name.basename(),
createTime:label=CREATED,
inspectDetails.requestedOptions.jobConfig.inspectConfig.minLikelihood:label=MIN_LIKELIHOOD,
inspectDetails.requestedOptions.jobConfig.inspectConfig.infoTypes.map().extract(name).map().list().join(','):label=INFO_TYPES,
type:label=JOB_TYPE,
state:label=STATUS
)