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 command group for Google BigQuery Jobs."""
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):
"""Interact with and manage jobs in Google BigQuery."""

View File

@@ -0,0 +1,33 @@
# 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: Cancel a BigQuery job.
description: Cancel a BigQuery job.
examples: |
The following command cancels a job named `my-query-job` and returns the final
state of the job:
$ {command} my-query-job
request:
collection: bigquery.jobs
method: cancel
response:
result_attribute: job
arguments:
resource:
help_text: The BigQuery job to cancel.
spec: !REF googlecloudsdk.command_lib.bq.resources:job

View File

@@ -0,0 +1,26 @@
# -*- coding: utf-8 -*- #
# Copyright 2021 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 managing Google BigQuery job configurations."""
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 Config(base.Group):
"""Manage Google BigQuery job configurations."""

View File

@@ -0,0 +1,38 @@
release_tracks: [ALPHA]
command_type: CONFIG_EXPORT
help_text:
brief: Export the configuration for a Google BigQuery job.
description: |
*{command}* exports the configuration for a Google BigQuery job.
Job configurations can be exported in
Kubernetes Resource Model (krm) or Terraform HCL formats. The
default format is `krm`.
Specifying `--all` allows you to export the configurations for all
jobs within the project.
Specifying `--path` allows you to export the configuration(s) to
a local directory.
examples: |
To export the configuration for a job, run:
$ {command} my-job
To export the configuration for a job to a file, run:
$ {command} my-job --path=/path/to/dir/
To export the configuration for a job in Terraform
HCL format, run:
$ {command} my-job --resource-format=terraform
To export the configurations for all jobs within a
project, run:
$ {command} --all
arguments:
resource:
help_text: Job to export the configuration for.
spec: !REF googlecloudsdk.command_lib.bq.resources:job

View File

@@ -0,0 +1,29 @@
# 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: Describe a BigQuery job.
description: Describe a BigQuery job.
examples: |
The following command displays details for job named `my-query-job`
$ {command} my-query-job
request:
collection: bigquery.jobs
arguments:
resource:
help_text: The BigQuery job to display details for.
spec: !REF googlecloudsdk.command_lib.bq.resources:job

View File

@@ -0,0 +1,53 @@
# 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 all BigQuery jobs in a project.
description: List all BigQuery jobs in a project.
examples: |
The following command list all jobs in current project (for all users)
$ {command} --show-all-users
request:
collection: bigquery.jobs
arguments:
resource:
help_text: The BigQuery project you want to list jobs for.
spec: !REF googlecloudsdk.command_lib.bq.resources:project
params:
- api_field: allUsers
arg_name: show-all-users
required: false
help_text: List jobs from all users.
- api_field: projection
arg_name: show-config
action: store_true
processor: googlecloudsdk.command_lib.bq.hooks:JobListProjectionProcessor
required: false
default: false
help_text: Include job configuration in listing. Default is False.
output:
format: |
table(
jobReference.jobId,
jobReference.projectId,
statistics.creationTime.date(unit=1000, tz_default=UTC),
statistics.endTime.date(unit=1000, tz_default=UTC),
jobReference.location,
configuration.jobType:optional:label=JOB_TYPE
)