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,29 @@
# -*- coding: utf-8 -*- #
# Copyright 2024 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 Cloud Security Command Center (SCC) postures."""
from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from googlecloudsdk.calliope import base
@base.DefaultUniverseOnly
@base.Hidden
@base.ReleaseTracks(base.ReleaseTrack.ALPHA)
class PosturePredictions(base.Group):
"""Manage Cloud Security Command Center (SCC) posture predictions."""
category = base.SECURITY_CATEGORY

View File

@@ -0,0 +1,59 @@
- release_tracks: [ALPHA]
hidden: true
help_text:
brief: Create a Cloud Security Command Center (SCC) posture prediction resource using AI.
description: |
Create a Cloud Security Command Center (SCC) posture prediction using AI.
Created posture prediction is returned as the response of the command.
examples: |
Create a BASIC posture prediction within parent `organizations/123/locations/global`(i.e. in organization `123`, location `global`):
$ {command} --parent=organizations/123/locations/global --prediction-type=basic-posture
Create a BASIC posture prediction within parent `organizations/123/locations/global`(i.e. in organization `123`, location `global`),
considering the user environment options:
$ {command} --parent=organizations/123/locations/global --prediction-type=basic-posture --environment-options=path/to/env_options_file.yaml
request:
collection: securityposture.organizations.locations.predictions
disable_resource_check: true
api_version: v1alpha
method: createPrediction
arguments:
params:
- arg_name: parent
api_field: parent
required: true
help_text: |
Name of the parent for which posture prediction is to be created. Format:
organizations/<organizationID>/locations/<location>
- arg_name: prediction-type
api_field: createPredictionRequest.predictionType
required: true
help_text: |
The type of posture prediction to be created, one of [basic-posture]
- arg_name: environment-options
api_field: createPredictionRequest.environmentOptions
required: false
type: "googlecloudsdk.calliope.arg_parsers:FileContents:"
processor: googlecloudsdk.core.yaml:load
help_text: |
Path to the YAML file containing the environment options for the prediction
- arg_name: intent
api_field: createPredictionRequest.intent
required: false
help_text: |
Custom USER query string to create the prediction
async:
collection: securityposture.organizations.locations.operations
output:
format: yaml

View File

@@ -0,0 +1,31 @@
- release_tracks: [ALPHA]
hidden: true
help_text:
brief: Describes a Cloud Security Command Center (SCC) posture prediction resource.
description: |
Describes a Cloud Security Command Center (SCC) posture prediction.
Posture prediction resource is returned as the response of the command.
examples: |
Desribe a posture prediction named `organizations/123/locations/global/predictions/abcd-ef`:
$ {command} organizations/123/locations/global/predictions/abcd-ef
or, run:
$ {command} abcd-ef --organization=123 --location=global
request:
collection: securityposture.organizations.locations.predictions
disable_resource_check: true
api_version: v1alpha
method: get
arguments:
resource:
spec: !REF googlecloudsdk.command_lib.scc.resources:prediction
help_text: |
Posture prediction resource to be described. For example `organizations/123/locations/global/predictions/abcd-ef`.
output:
format: yaml