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,38 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
"""Manage resources associated with Gemini Code Assist and Gemini Cloud Assist."""
from googlecloudsdk.calliope import base
from surface.gemini import _init_extensions as extensions
@base.ReleaseTracks(base.ReleaseTrack.ALPHA)
@base.Autogenerated
@base.Hidden
class GeminiAlpha(extensions.GeminiAlpha):
"""Manage code repository index resources."""
@base.ReleaseTracks(base.ReleaseTrack.GA)
@base.Autogenerated
class GeminiGa(extensions.GeminiGa):
"""Manage resources associated with Gemini Code Assist and Gemini Cloud Assist.
gcloud gemini commands are not associated with
[Gemini CLI](https://github.com/google-gemini/gemini-cli).
"""

View File

@@ -0,0 +1,34 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
"""File to add optional custom code to extend __init__.py."""
from googlecloudsdk.calliope import base
class GeminiAlpha(base.Group):
"""Optional no-auto-generated code for ALPHA."""
category = base.AI_AND_MACHINE_LEARNING_CATEGORY
class GeminiBeta(base.Group):
"""Optional no-auto-generated code for BETA."""
category = base.AI_AND_MACHINE_LEARNING_CATEGORY
class GeminiGa(base.Group):
"""Optional no-auto-generated code for GA."""
category = base.AI_AND_MACHINE_LEARNING_CATEGORY

View File

@@ -0,0 +1,26 @@
# -*- 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 command group for the gemini cloud-assist CLI."""
from googlecloudsdk.calliope import base
@base.ReleaseTracks(base.ReleaseTrack.ALPHA)
@base.DefaultUniverseOnly
class GeminicloudassistAlpha(base.Group):
"""Manage Gemini Cloud Assist."""
category = base.UNCATEGORIZED_CATEGORY

View File

@@ -0,0 +1,38 @@
# -*- 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 command group for the investigations CLI."""
from googlecloudsdk.calliope import base
from googlecloudsdk.command_lib.gemini import cloud_assist
@base.DefaultUniverseOnly
@base.ReleaseTracks(base.ReleaseTrack.ALPHA)
class InvestigationsAlpha(base.Group):
"""Create and manage Gemini Cloud Assist investigations."""
category = base.UNCATEGORIZED_CATEGORY
@staticmethod
def Args(parser):
parser.display_info.AddTransforms({
"investigation_markdown_short": cloud_assist.InvestigationMarkdownShort,
"investigation_markdown_detailed": (
cloud_assist.InvestigationMarkdownDetailed
),
"reformat_investigation": cloud_assist.ReformatInvestigation,
})

View File

@@ -0,0 +1,67 @@
# -*- 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.
"""Command to add an IAM policy binding for an investigation."""
import textwrap
from googlecloudsdk.api_lib.gemini_cloud_assist import args as geminicloudassist_args
from googlecloudsdk.api_lib.gemini_cloud_assist import util as geminicloudassist_util
from googlecloudsdk.calliope import base
from googlecloudsdk.command_lib.iam import iam_util
@base.UniverseCompatible
class AddIamPolicyBinding(base.Command):
"""Adds an IAM policy binding for an investigation."""
detailed_help = {
'EXAMPLES': textwrap.dedent("""\
To add an IAM policy binding for the role of 'roles/geminicloudassist.investigationViewer'
for the user 'test-user@gmail.com' on the investigation
'project/my-project/locations/my-location/investigations/my-investigation', run:
$ {command} project/my-project/locations/my-location/investigations/my-investigation --member='user:test-user@gmail.com' --role='roles/geminicloudassist.investigationViewer'
See https://cloud.google.com/iam/docs/managing-policies for details of
policy role and member types.
"""),
}
@staticmethod
def Args(parser):
"""Registers flags for this command.
Args:
parser: The argparse parser.
"""
geminicloudassist_args.AddInvestigationResourceArg(
parser, 'to add IAM policy binding for'
)
iam_util.AddArgsForAddIamPolicyBinding(parser)
def Run(self, args):
"""Adds an IAM policy binding for an investigation.
Args:
args: An argparse namespace. All the arguments that were provided to this
command invocation.
Returns:
The updated IAM policy.
"""
return geminicloudassist_util.AddInvestigationIamPolicyBinding(
args.investigation, args.member, args.role
)

View File

@@ -0,0 +1,100 @@
# -*- 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.
"""Command to create a new investigation."""
from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from googlecloudsdk.api_lib.gemini_cloud_assist import args as gca_args
from googlecloudsdk.api_lib.gemini_cloud_assist import util as gca_util
from googlecloudsdk.calliope import arg_parsers
from googlecloudsdk.calliope import base
from googlecloudsdk.core.util import times
@base.DefaultUniverseOnly
class Create(base.Command):
"""Create a new investigation.
Shows metadata for the newly created investigation after creation.
This command can fail for the following reasons:
* The chosen investigation ID, if specified, already exists.
* The active account does not have permission to create investigations in the
project.
## EXAMPLES
The following command creates a new investigation with the ID and some basic
information
`example-foo-bar-1`:
$ {command} example-foo-bar-1 --title="Example Investigation" --issue="I
have a problem" --start-time=2025-07-10
"""
@staticmethod
def Args(parser):
gca_args.AddInvestigationResourceArg(
parser, verb="to create", required=False, allow_no_id=True
)
parser.display_info.AddFormat("value(investigation_markdown_detailed())")
parser.add_argument(
"--issue",
required=True,
help=(
"A description of the issue you are investigating, or an error log."
),
)
parser.add_argument(
"--start-time",
required=False,
type=times.ParseDateTime,
help="The estimated start time of the issue you are investigating.",
)
parser.add_argument(
"--end-time",
required=False,
type=times.ParseDateTime,
help="The estimated end time of the issue you are investigating.",
)
parser.add_argument(
"--title",
required=False,
help="The desired title of the resulting investigation.",
)
parser.add_argument(
"--resources",
required=False,
metavar="RESOURCE",
type=arg_parsers.ArgList(),
help="A list of resources relevant to the investigation",
)
def Run(self, args):
investigation_ref = args.CONCEPTS.investigation.Parse()
created_investigation = gca_util.CreateInvestigation(
investigation_ref,
args.title,
args.issue,
args.start_time,
args.end_time,
args.resources,
)
return gca_util.RunInvestigationRevisionBlocking(
created_investigation.revision
)

View File

@@ -0,0 +1,17 @@
release_tracks: [ALPHA]
help_text:
brief: Delete an Investigation.
description: Delete a Gemini Cloud Assist Investigation.
examples: |
The following command deletes an Investigation with ID `foo-bar-1`
$ {command} foo-bar-1
request:
collection: geminicloudassist.projects.locations.investigations
method: delete
arguments:
resource:
help_text: The investigation you want to delete.
spec: !REF googlecloudsdk.command_lib.gemini.cloud_assist.resources:investigation

View File

@@ -0,0 +1,80 @@
# -*- 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.
"""Command to show a specified investigation."""
from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from googlecloudsdk.api_lib.gemini_cloud_assist import args as gca_args
from googlecloudsdk.api_lib.gemini_cloud_assist import util as gca_util
from googlecloudsdk.calliope import base
from googlecloudsdk.command_lib.gemini import cloud_assist
@base.DefaultUniverseOnly
class Describe(base.DescribeCommand):
"""Show metadata for an investigation.
Shows metadata for an investigation given a valid investigation ID.
This command can fail for the following reasons:
* The investigation specified does not exist.
* The active account does not have permission to access the given
investigation.
## EXAMPLES
The following command prints metadata for an investigation with the ID
`example-foo-bar-1`:
$ {command} example-foo-bar-1
"""
@staticmethod
def Args(parser):
gca_args.AddInvestigationResourceArg(parser, verb="to describe")
parser.add_argument(
"--detail",
required=False,
action="store_true",
help="Include extra information in the default output.",
)
parser.add_argument(
"--raw",
required=False,
action="store_true",
help=(
"Return the full, unaltered API response instead of the version"
" formatted for human consumption."
),
)
def Run(self, args):
# Only handle --detail flag if no format or --raw were specified.
if not args.IsSpecified("format") and not args.raw:
if args.detail:
args.format = "value(investigation_markdown_detailed())"
else:
args.format = "value(investigation_markdown_short())"
investigation_ref = args.CONCEPTS.investigation.Parse()
if args.raw:
return gca_util.GetInvestigation(investigation_ref.RelativeName())
return cloud_assist.ReformatInvestigation(
gca_util.GetInvestigation(investigation_ref.RelativeName())
)

View File

@@ -0,0 +1,60 @@
# -*- 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.
"""Command to Get IAM policy for an investigation."""
from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from googlecloudsdk.api_lib.gemini_cloud_assist import args as geminicloudassist_args
from googlecloudsdk.api_lib.gemini_cloud_assist import util as geminicloudassist_util
from googlecloudsdk.calliope import base
@base.UniverseCompatible
class GetIamPolicy(base.Command):
"""Get IAM policy for an investigation."""
detailed_help = {
'EXAMPLES': """\
To get the IAM policy a the investigation 'project/my-project/locations/my-location/investigations/my-investigation', run:
$ {command} project/my-project/locations/my-location/investigations/my-investigation
""",
}
@staticmethod
def Args(parser):
"""Registers flags for this command.
Args:
parser: The argparse parser.
"""
geminicloudassist_args.AddInvestigationResourceArg(
parser, 'to get IAM policy for'
)
def Run(self, args):
""" Get IAM policy for an investigation.
Args:
args: An argparse namespace. All the arguments that were provided to this
command invocation.
Returns:
The IAM policy for the given investigation.
"""
return geminicloudassist_util.GetInvestigationIamPolicy(args.investigation)

View File

@@ -0,0 +1,23 @@
release_tracks: [ALPHA]
help_text:
brief: List Gemini Cloud Assist Investigations.
description: List Gemini Cloud Assist Investigations.
examples: |
To list Gemini Cloud Assist Investigations, run:
$ {command}
request:
collection: geminicloudassist.projects.locations.investigations
method: list
arguments:
resource:
help_text: Location to list investigations for.
spec: !REF googlecloudsdk.command_lib.gemini.cloud_assist.resources:location
output:
format: |
table(name,
title,
executionState)

View File

@@ -0,0 +1,69 @@
# -*- 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.
"""Command to remove an IAM policy binding from an investigation."""
from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from googlecloudsdk.api_lib.gemini_cloud_assist import args as geminicloudassist_args
from googlecloudsdk.api_lib.gemini_cloud_assist import util as geminicloudassist_util
from googlecloudsdk.calliope import base
from googlecloudsdk.command_lib.iam import iam_util
@base.UniverseCompatible
class RemoveIamPolicyBinding(base.Command):
"""Removes an IAM policy binding from an investigation."""
detailed_help = {
'EXAMPLES': """\
To remove an IAM policy binding for the role of 'roles/geminicloudassist.investigationUser'
for the user 'test-user@gmail.com' from the investigation
'project/my-project/locations/my-location/investigations/my-investigation', run:
$ {command} project/my-project/locations/my-location/investigations/my-investigation --member='user:test-user@gmail.com' --role='roles/geminicloudassist.investigations.user'
See https://cloud.google.com/iam/docs/managing-policies for details of
policy role and member types.
""",
}
@staticmethod
def Args(parser):
"""Registers flags for this command.
Args:
parser: The argparse parser.
"""
geminicloudassist_args.AddInvestigationResourceArg(
parser, 'to remove IAM policy binding from'
)
iam_util.AddArgsForAddIamPolicyBinding(parser)
def Run(self, args):
"""Removes an IAM policy binding from an investigation.
Args:
args: An argparse namespace. All the arguments that were provided to this
command invocation.
Returns:
The updated IAM policy.
"""
return geminicloudassist_util.RemoveInvestigationIamPolicyBinding(
args.investigation, args.member, args.role
)

View File

@@ -0,0 +1,55 @@
# -*- 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.
"""Command to set IAM policy for an investigation."""
from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from googlecloudsdk.api_lib.gemini_cloud_assist import args as geminicloudassist_args
from googlecloudsdk.api_lib.gemini_cloud_assist import util as geminicloudassist_util
from googlecloudsdk.calliope import base
@base.UniverseCompatible
class RemoveIamPolicyBinding(base.Command):
"""Sets IAM policy for an investigation."""
detailed_help = {
'EXAMPLES': """\
To set IAM policy for theinvestigation
project/my-project/locations/my-location/investigations/my-investigation defined in `POLICY-FILE-1`', run:
$ {command} project/my-project/locations/my-location/investigations/my-investigation POLICY-FILE-1
""",
}
@staticmethod
def Args(parser):
"""Registers flags for this command.
Args:
parser: The argparse parser.
"""
geminicloudassist_args.AddInvestigationResourceArg(
parser, 'to remove IAM policy binding from'
)
geminicloudassist_args.AddIAMPolicyFileArg(parser)
def Run(self, args):
return geminicloudassist_util.SetInvestigationIamPolicy(
args.investigation, args.policy_file
)

View File

@@ -0,0 +1,133 @@
# -*- 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.
"""Command to create a new investigation."""
from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
import datetime
from googlecloudsdk.api_lib.gemini_cloud_assist import args as gca_args
from googlecloudsdk.api_lib.gemini_cloud_assist import util as gca_util
from googlecloudsdk.calliope import arg_parsers
from googlecloudsdk.calliope import base
from googlecloudsdk.core.util import times
@base.DefaultUniverseOnly
class Create(base.Command):
r"""Update an existing investigation.
Shows metadata for the investigation after updating.
This command can fail for the following reasons:
* The investigation ID doesn't exist.
* The active account does not have permission to update the investigation.
* The investigation is currently running.
## EXAMPLES
The following command updates title, text description, resources, and start
time of the existing investigation with the name`example-foo-bar-1`:
$ {command} example-foo-bar-1 --title="Example Investigation" \
--issue="I have a problem" --start-time=2025-07-10
"""
@staticmethod
def Args(parser):
gca_args.AddInvestigationResourceArg(
parser, verb="to update", required=True, allow_no_id=False
)
parser.display_info.AddFormat("value(investigation_markdown_detailed())")
parser.add_argument(
"--issue",
required=False,
help=(
"A description of the issue you are investigating, or an error log."
),
)
start_time_group = parser.add_mutually_exclusive_group(sort_args=False)
start_time_group.add_argument(
"--start-time",
required=False,
type=times.ParseDateTime,
help="The estimated start time of the issue you are investigating.",
)
start_time_group.add_argument(
"--clear-start-time",
required=False,
action="store_true",
help="Clear the start time of the investigation.",
)
end_time_group = parser.add_mutually_exclusive_group(sort_args=False)
end_time_group.add_argument(
"--end-time",
required=False,
type=times.ParseDateTime,
help="The estimated end time of the issue you are investigating.",
)
end_time_group.add_argument(
"--clear-end-time",
required=False,
action="store_true",
help="Clear the end time of the investigation.",
)
title_group = parser.add_mutually_exclusive_group(sort_args=False)
title_group.add_argument(
"--title",
required=False,
help="The desired title of the resulting investigation.",
)
title_group.add_argument(
"--clear-title",
required=False,
action="store_true",
help="Clear the title of the investigation.",
)
resources_group = parser.add_mutually_exclusive_group(sort_args=False)
resources_group.add_argument(
"--resources",
required=False,
metavar="RESOURCE",
type=arg_parsers.ArgList(),
help="A list of resources relevant to the investigation",
)
resources_group.add_argument(
"--clear-resources",
required=False,
action="store_true",
help="Clear the resources of the investigation.",
)
def Run(self, args):
investigation_ref = args.CONCEPTS.investigation.Parse()
updated_investigation = gca_util.UpdateInvestigation(
investigation_ref,
"" if args.clear_title else args.title,
args.issue,
datetime.datetime.min if args.clear_start_time else args.start_time,
datetime.datetime.max if args.clear_end_time else args.end_time,
[] if args.clear_resources else args.resources,
)
return gca_util.RunInvestigationRevisionBlocking(
updated_investigation.revision
)

View File

@@ -0,0 +1,34 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
"""Manage Code Repository Index resources."""
from googlecloudsdk.calliope import base
from surface.gemini.code_repository_indexes import _init_extensions as extensions
@base.ReleaseTracks(base.ReleaseTrack.ALPHA)
@base.Autogenerated
@base.Hidden
class CodeRepositoryIndexesAlpha(extensions.CodeRepositoryIndexesAlpha):
"""Manage Code Repository Index resources."""
@base.ReleaseTracks(base.ReleaseTrack.GA)
@base.Autogenerated
class CodeRepositoryIndexesGa(extensions.CodeRepositoryIndexesGa):
"""Manage Code Repository Index resources."""

View File

@@ -0,0 +1,31 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
"""File to add optional custom code to extend __init__.py."""
from googlecloudsdk.calliope import base
class CodeRepositoryIndexesAlpha(base.Group):
"""Optional no-auto-generated code for ALPHA."""
class CodeRepositoryIndexesBeta(base.Group):
"""Optional no-auto-generated code for BETA."""
class CodeRepositoryIndexesGa(base.Group):
"""Optional no-auto-generated code for GA."""

View File

@@ -0,0 +1,84 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- ALPHA
auto_generated: true
hidden: true
help_text:
brief: Create a code repository index instance.
description: |
Create a code repository index instance.
The instance will be created in the specified project and location.
examples: |-
To create a code repository index instance `my-instance` in project `my-project` and
location `us-central1`, run:
$ {command} my-instance --project=my-project --location=us-central1
To create a code repository index instance `my-instance` in project `my-project`,
location `us-central1` with your managed encryption key run:
$ {command} my-instance --project=my-project --location=us-central1
--kms-key=projects/*/locations/*/keyRings/*/cryptoKeys/*
Note: --kms-key can be only passed during index creation and can not be used during update.
arguments:
params:
- help_text: |-
Identifier. name of resource
is_positional: true
is_primary_resource: true
request_id_field: codeRepositoryIndexId
resource_spec: !REF googlecloudsdk.command_lib.gemini.v1alpha_resources:projects_locations_code_repository_indexes
required: true
- arg_name: labels
api_field: codeRepositoryIndex.labels
required: false
repeated: true
help_text: |-
Labels as key value pairs
spec:
- api_field: key
- api_field: value
- arg_name: kms-key
api_field: codeRepositoryIndex.kmsKey
required: false
repeated: false
help_text: |-
Customer-managed encryption key name, in the format
projects/*/locations/*/keyRings/*/cryptoKeys/*.
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes since the first request.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
request:
api_version: v1alpha
collection:
- cloudaicompanion.projects.locations.codeRepositoryIndexes
async:
collection:
- cloudaicompanion.projects.locations.operations

View File

@@ -0,0 +1,83 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- GA
auto_generated: true
help_text:
brief: Create a code repository index instance.
description: |
Create a code repository index instance.
The instance will be created in the specified project and location.
examples: |-
To create a code repository index instance `my-instance` in project `my-project` and
location `us-central1`, run:
$ {command} my-instance --project=my-project --location=us-central1
To create a code repository index instance `my-instance` in project `my-project`,
location `us-central1` with your managed encryption key run:
$ {command} my-instance --project=my-project --location=us-central1
--kms-key=projects/*/locations/*/keyRings/*/cryptoKeys/*
Note: --kms-key can be only passed during index creation and can not be used during update.
arguments:
params:
- help_text: |-
Identifier. name of resource
is_positional: true
is_primary_resource: true
request_id_field: codeRepositoryIndexId
resource_spec: !REF googlecloudsdk.command_lib.gemini.v1_resources:projects_locations_code_repository_indexes
required: true
- arg_name: labels
api_field: codeRepositoryIndex.labels
required: false
repeated: true
help_text: |-
Labels as key value pairs
spec:
- api_field: key
- api_field: value
- arg_name: kms-key
api_field: codeRepositoryIndex.kmsKey
required: false
repeated: false
help_text: |-
Customer-managed encryption key name, in the format
projects/*/locations/*/keyRings/*/cryptoKeys/*.
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes since the first request.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
request:
api_version: v1
collection:
- cloudaicompanion.projects.locations.codeRepositoryIndexes
async:
collection:
- cloudaicompanion.projects.locations.operations

View File

@@ -0,0 +1,66 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- ALPHA
auto_generated: true
hidden: true
help_text:
brief: Delete a code repository index instance.
description: Delete a code repository index instance.
examples: |-
To delete code repository index instance `my-instance` in project `my-project` and location
`us-central1`, run:
$ {command} my-instance --project=my-project --location=us-central1
arguments:
params:
- help_text: |-
Name of the resource
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.gemini.v1alpha_resources:projects_locations_code_repository_indexes
required: true
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes after the first request.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
- arg_name: force
api_field: force
action: store_true
required: false
type: bool
help_text: |-
If set to true, any RepositoryGroups from this CodeRepositoryIndex will
also be deleted. (Otherwise, the request will only work if the
CodeRepositoryIndex has no RepositoryGroups.)
default: null
request:
api_version: v1alpha
collection:
- cloudaicompanion.projects.locations.codeRepositoryIndexes
async:
collection:
- cloudaicompanion.projects.locations.operations

View File

@@ -0,0 +1,65 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- GA
auto_generated: true
help_text:
brief: Delete a code repository index instance.
description: Delete a code repository index instance.
examples: |-
To delete code repository index instance `my-instance` in project `my-project` and location
`us-central1`, run:
$ {command} my-instance --project=my-project --location=us-central1
arguments:
params:
- help_text: |-
Name of the resource
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.gemini.v1_resources:projects_locations_code_repository_indexes
required: true
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes after the first request.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
- arg_name: force
api_field: force
action: store_true
required: false
type: bool
help_text: |-
If set to true, any RepositoryGroups from this CodeRepositoryIndex will
also be deleted. (Otherwise, the request will only work if the
CodeRepositoryIndex has no RepositoryGroups.)
default: null
request:
api_version: v1
collection:
- cloudaicompanion.projects.locations.codeRepositoryIndexes
async:
collection:
- cloudaicompanion.projects.locations.operations

View File

@@ -0,0 +1,41 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- ALPHA
auto_generated: true
hidden: true
help_text:
brief: Get details of a code repository index instance.
description: Get details of a code repository index instance.
examples: |-
To get the details of code repository index instance `my-instance` in project `my-project` and
location `us-central`, run:
$ {command} my-instance --project=my-project --location=us-central1
arguments:
params:
- help_text: |-
Name of the resource
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.gemini.v1alpha_resources:projects_locations_code_repository_indexes
required: true
request:
api_version: v1alpha
collection:
- cloudaicompanion.projects.locations.codeRepositoryIndexes

View File

@@ -0,0 +1,40 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- GA
auto_generated: true
help_text:
brief: Get details of a code repository index instance.
description: Get details of a code repository index instance.
examples: |-
To get the details of code repository index instance `my-instance` in project `my-project` and
location `us-central`, run:
$ {command} my-instance --project=my-project --location=us-central1
arguments:
params:
- help_text: |-
Name of the resource
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.gemini.v1_resources:projects_locations_code_repository_indexes
required: true
request:
api_version: v1
collection:
- cloudaicompanion.projects.locations.codeRepositoryIndexes

View File

@@ -0,0 +1,42 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- ALPHA
auto_generated: true
hidden: true
help_text:
brief: List all code repository index instances in a specified project and location.
description: List all code repository index instances in a specified project and location.
examples: |-
To list all code repository index instances in project `my-project` and location `us-central`, run:
$ {command} --project=my-project --location=us-central1
arguments:
params:
- help_text: |-
Parent value for ListCodeRepositoryIndexesRequest
is_positional: false
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.gemini.v1alpha_resources:projects_locations
required: true
request:
api_version: v1alpha
collection:
- cloudaicompanion.projects.locations.codeRepositoryIndexes
response:
id_field: name

View File

@@ -0,0 +1,41 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- GA
auto_generated: true
help_text:
brief: List all code repository index instances in a specified project and location.
description: List all code repository index instances in a specified project and location.
examples: |-
To list all code repository index instances in project `my-project` and location `us-central`, run:
$ {command} --project=my-project --location=us-central1
arguments:
params:
- help_text: |-
Parent value for ListCodeRepositoryIndexesRequest
is_positional: false
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.gemini.v1_resources:projects_locations
required: true
request:
api_version: v1
collection:
- cloudaicompanion.projects.locations.codeRepositoryIndexes
response:
id_field: name

View File

@@ -0,0 +1,68 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- ALPHA
auto_generated: true
hidden: true
help_text:
brief: Update the configuration of a code repository index instance.
description: Update the configuration of a code repository index instance.
examples: |-
To update code repository index instance `my-instance` in project `my-project` and location
`us-central1` with new labels, run:
$ {command} `my-instance` --project=my-project --location=us-central1 --labels='{"my_label": "my_value"}'
arguments:
params:
- help_text: |-
Identifier. name of resource
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.gemini.v1alpha_resources:projects_locations_code_repository_indexes
required: true
- arg_name: labels
api_field: codeRepositoryIndex.labels
required: false
repeated: true
help_text: |-
Labels as key value pairs
clearable: true
spec:
- api_field: key
- api_field: value
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes since the first request.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
request:
api_version: v1alpha
collection:
- cloudaicompanion.projects.locations.codeRepositoryIndexes
async:
collection:
- cloudaicompanion.projects.locations.operations
update:
read_modify_update: true

View File

@@ -0,0 +1,67 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- GA
auto_generated: true
help_text:
brief: Update the configuration of a code repository index instance.
description: Update the configuration of a code repository index instance.
examples: |-
To update code repository index instance `my-instance` in project `my-project` and location
`us-central1` with new labels, run:
$ {command} `my-instance` --project=my-project --location=us-central1 --labels='{"my_label": "my_value"}'
arguments:
params:
- help_text: |-
Identifier. name of resource
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.gemini.v1_resources:projects_locations_code_repository_indexes
required: true
- arg_name: labels
api_field: codeRepositoryIndex.labels
required: false
repeated: true
help_text: |-
Labels as key value pairs
clearable: true
spec:
- api_field: key
- api_field: value
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes since the first request.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
request:
api_version: v1
collection:
- cloudaicompanion.projects.locations.codeRepositoryIndexes
async:
collection:
- cloudaicompanion.projects.locations.operations
update:
read_modify_update: true

View File

@@ -0,0 +1,18 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
_PARTIALS_: true

View File

@@ -0,0 +1,18 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
_PARTIALS_: true

View File

@@ -0,0 +1,18 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
_PARTIALS_: true

View File

@@ -0,0 +1,18 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
_PARTIALS_: true

View File

@@ -0,0 +1,34 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
"""Manage Repository Group resources."""
from googlecloudsdk.calliope import base
from surface.gemini.code_repository_indexes.repository_groups import _init_extensions as extensions
@base.ReleaseTracks(base.ReleaseTrack.ALPHA)
@base.Autogenerated
@base.Hidden
class RepositoryGroupsAlpha(extensions.RepositoryGroupsAlpha):
"""Manage Repository Group resources."""
@base.ReleaseTracks(base.ReleaseTrack.GA)
@base.Autogenerated
class RepositoryGroupsGa(extensions.RepositoryGroupsGa):
"""Manage Repository Group resources."""

View File

@@ -0,0 +1,31 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
"""File to add optional custom code to extend __init__.py."""
from googlecloudsdk.calliope import base
class RepositoryGroupsAlpha(base.Group):
"""Optional no-auto-generated code for ALPHA."""
class RepositoryGroupsBeta(base.Group):
"""Optional no-auto-generated code for BETA."""
class RepositoryGroupsGa(base.Group):
"""Optional no-auto-generated code for GA."""

View File

@@ -0,0 +1,159 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- ALPHA
auto_generated: true
hidden: true
help_text:
brief: Create a repository group for a given code repository index instance.
description: |
Create a repository group for a given code repository index instance.
examples: |-
To create a repository group `my-repository-group` for a code repository index instance
`my-instance` in project `my-project` and location `us-central1` with one Developer
Connect repository and branch pattern `.*`, run:
$ {command} my-repository-group --code-repository-index=my-instance --project=my-project
--location=us-central1
--repositories=branchPattern=.*,resource=developerconnect.googleapis.com/projects/<PROJECT>/locations/<LOCATION>/connections/<CONNECTION>/gitRepositoryLinks/<REPOSITORY>
Developer Connect Git repository resource must already exist. Refer to
[Developer Connect documentation](http://cloud.google.com/developer-connect/docs/connect-repo)
for more details.
To create a repository group `my-repository-group` for a code repository index instance
`my-instance` in project `my-project` and location `us-central1` with a fully qualified
name, run:
$ {command} projects/my-project/locations/us-central1/codeRepositoryIndexes/my-instance/repositoryGroups/my-repository-group
--repositories=branchPattern=.*,resource=developerconnect.googleapis.com/projects/<PROJECT>/locations/<LOCATION>/connections/<CONNECTION>/gitRepositoryLinks/<REPOSITORY>
Developer Connect Git repository resource must already exist. Refer to
[Developer Connect documentation](http://cloud.google.com/developer-connect/docs/connect-repo)
for more details.
To create a repository group `my-repository-group` for a code repository index instance
`my-instance` in project `my-project` and location `us-central1` with Developer Connect
repositories defined in a separate file, run:
$ {command} my-repository-group --code-repository-index=my-instance --project=my-project
--location=us-central1 --repositories=@/path/to/repositories.json
Developer Connect Git repository resource must already exist. Refer to
[Developer Connect documentation](http://cloud.google.com/developer-connect/docs/connect-repo)
for more details.
arguments:
params:
- help_text: |-
Identifier. name of resource
is_positional: true
is_primary_resource: true
request_id_field: repositoryGroupId
resource_spec: !REF googlecloudsdk.command_lib.gemini.v1alpha_resources:projects_locations_code_repository_indexes_repository_groups
required: true
- arg_name: labels
api_field: repositoryGroup.labels
required: false
repeated: true
help_text: |-
Labels as key value pairs
spec:
- api_field: key
- api_field: value
- arg_name: repositories
api_field: repositoryGroup.repositories
required: false
repeated: true
help_text: |-
List of repositories to group
spec:
- api_field: resource
help_text: |-
The DeveloperConnect repository full resource name, relative resource name
or resource URL to be indexed.
- api_field: branchPattern
help_text: |-
The Git branch pattern used for indexing in RE2 syntax.
See https://github.com/google/re2/wiki/syntax for syntax.
- arg_name: resources
api_field: repositoryGroup.resources
required: false
repeated: true
help_text: |-
List of third party connection resources
spec:
- api_field: connection
help_text: |-
The DeveloperConnect connection full resource name, relative resource name
or resource URL to be indexed.
- api_field: type
help_text: |-
The type of the 3p resource.
- api_field: authConfig
help_text: |-
The authentication configuration for the resource.
spec:
- api_field: apiToken
one_of_index: 0
help_text: |-
API Token based authentication.
spec:
- api_field: username
help_text: |-
The username for the API token.
- api_field: tokenSecretResource
help_text: |-
The secret key for the API token. Example:
projects/<project>/secrets/<secret>/versions/<version>
- api_field: sourceConfig
help_text: |-
The source configuration for the resource.
spec:
- api_field: confluenceConfig
one_of_index: 0
help_text: |-
Confluence source configuration.
spec:
- api_field: uri
help_text: |-
The host address of the Confluence instance.
- api_field: spaceKey
help_text: |-
The space key of the Confluence space.
- api_field: pageId
help_text: |-
The optional page ID of the Confluence page.
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes since the first request.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
request:
api_version: v1alpha
collection:
- cloudaicompanion.projects.locations.codeRepositoryIndexes.repositoryGroups
async:
collection:
- cloudaicompanion.projects.locations.operations

View File

@@ -0,0 +1,158 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- GA
auto_generated: true
help_text:
brief: Create a repository group for a given code repository index instance.
description: |
Create a repository group for a given code repository index instance.
examples: |-
To create a repository group `my-repository-group` for a code repository index instance
`my-instance` in project `my-project` and location `us-central1` with one Developer
Connect repository and branch pattern `.*`, run:
$ {command} my-repository-group --code-repository-index=my-instance --project=my-project
--location=us-central1
--repositories=branchPattern=.*,resource=developerconnect.googleapis.com/projects/<PROJECT>/locations/<LOCATION>/connections/<CONNECTION>/gitRepositoryLinks/<REPOSITORY>
Developer Connect Git repository resource must already exist. Refer to
[Developer Connect documentation](http://cloud.google.com/developer-connect/docs/connect-repo)
for more details.
To create a repository group `my-repository-group` for a code repository index instance
`my-instance` in project `my-project` and location `us-central1` with a fully qualified
name, run:
$ {command} projects/my-project/locations/us-central1/codeRepositoryIndexes/my-instance/repositoryGroups/my-repository-group
--repositories=branchPattern=.*,resource=developerconnect.googleapis.com/projects/<PROJECT>/locations/<LOCATION>/connections/<CONNECTION>/gitRepositoryLinks/<REPOSITORY>
Developer Connect Git repository resource must already exist. Refer to
[Developer Connect documentation](http://cloud.google.com/developer-connect/docs/connect-repo)
for more details.
To create a repository group `my-repository-group` for a code repository index instance
`my-instance` in project `my-project` and location `us-central1` with Developer Connect
repositories defined in a separate file, run:
$ {command} my-repository-group --code-repository-index=my-instance --project=my-project
--location=us-central1 --repositories=@/path/to/repositories.json
Developer Connect Git repository resource must already exist. Refer to
[Developer Connect documentation](http://cloud.google.com/developer-connect/docs/connect-repo)
for more details.
arguments:
params:
- help_text: |-
Identifier. name of resource
is_positional: true
is_primary_resource: true
request_id_field: repositoryGroupId
resource_spec: !REF googlecloudsdk.command_lib.gemini.v1_resources:projects_locations_code_repository_indexes_repository_groups
required: true
- arg_name: labels
api_field: repositoryGroup.labels
required: false
repeated: true
help_text: |-
Labels as key value pairs
spec:
- api_field: key
- api_field: value
- arg_name: repositories
api_field: repositoryGroup.repositories
required: false
repeated: true
help_text: |-
List of repositories to group
spec:
- api_field: resource
help_text: |-
The DeveloperConnect repository full resource name, relative resource name
or resource URL to be indexed.
- api_field: branchPattern
help_text: |-
The Git branch pattern used for indexing in RE2 syntax.
See https://github.com/google/re2/wiki/syntax for syntax.
- arg_name: resources
api_field: repositoryGroup.resources
required: false
repeated: true
help_text: |-
List of third party connection resources
spec:
- api_field: connection
help_text: |-
The DeveloperConnect connection full resource name, relative resource name
or resource URL to be indexed.
- api_field: type
help_text: |-
The type of the 3p resource.
- api_field: authConfig
help_text: |-
The authentication configuration for the resource.
spec:
- api_field: apiToken
one_of_index: 0
help_text: |-
API Token based authentication.
spec:
- api_field: username
help_text: |-
The username for the API token.
- api_field: tokenSecretResource
help_text: |-
The secret key for the API token. Example:
projects/<project>/secrets/<secret>/versions/<version>
- api_field: sourceConfig
help_text: |-
The source configuration for the resource.
spec:
- api_field: confluenceConfig
one_of_index: 0
help_text: |-
Confluence source configuration.
spec:
- api_field: uri
help_text: |-
The host address of the Confluence instance.
- api_field: spaceKey
help_text: |-
The space key of the Confluence space.
- api_field: pageId
help_text: |-
The optional page ID of the Confluence page.
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes since the first request.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
request:
api_version: v1
collection:
- cloudaicompanion.projects.locations.codeRepositoryIndexes.repositoryGroups
async:
collection:
- cloudaicompanion.projects.locations.operations

View File

@@ -0,0 +1,57 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- ALPHA
auto_generated: true
hidden: true
help_text:
brief: Delete a repository group from a given code repository index instance.
description: Delete a repository group from a given code repository index instance.
examples: |-
To delete a repository group `my-repository-group` from a code repository index instance
`my-instance` in project `my-project` and location `us-central1` with a fully qualified
name, run:
$ {command} my-repository-group --code-repository-index=my-instance --project=my-project
arguments:
params:
- help_text: |-
Name of the resource
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.gemini.v1alpha_resources:projects_locations_code_repository_indexes_repository_groups
required: true
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes after the first request.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
request:
api_version: v1alpha
collection:
- cloudaicompanion.projects.locations.codeRepositoryIndexes.repositoryGroups
async:
collection:
- cloudaicompanion.projects.locations.operations

View File

@@ -0,0 +1,56 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- GA
auto_generated: true
help_text:
brief: Delete a repository group from a given code repository index instance.
description: Delete a repository group from a given code repository index instance.
examples: |-
To delete a repository group `my-repository-group` from a code repository index instance
`my-instance` in project `my-project` and location `us-central1` with a fully qualified
name, run:
$ {command} my-repository-group --code-repository-index=my-instance --project=my-project
arguments:
params:
- help_text: |-
Name of the resource
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.gemini.v1_resources:projects_locations_code_repository_indexes_repository_groups
required: true
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes after the first request.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
request:
api_version: v1
collection:
- cloudaicompanion.projects.locations.codeRepositoryIndexes.repositoryGroups
async:
collection:
- cloudaicompanion.projects.locations.operations

View File

@@ -0,0 +1,42 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- ALPHA
auto_generated: true
hidden: true
help_text:
brief: Get details of a code repository index instance.
description: Get details of a code repository index instance.
examples: |-
To get the details of repository group `my-repository-group` of a code repository index
instance `my-instance` in project `my-project` and location `us-central1`, run:
$ {command} my-repository-group --code-repository-index=my-instance --project=my-project
--location=us-central1
arguments:
params:
- help_text: |-
Name of the resource
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.gemini.v1alpha_resources:projects_locations_code_repository_indexes_repository_groups
required: true
request:
api_version: v1alpha
collection:
- cloudaicompanion.projects.locations.codeRepositoryIndexes.repositoryGroups

View File

@@ -0,0 +1,41 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- GA
auto_generated: true
help_text:
brief: Get details of a code repository index instance.
description: Get details of a code repository index instance.
examples: |-
To get the details of repository group `my-repository-group` of a code repository index
instance `my-instance` in project `my-project` and location `us-central1`, run:
$ {command} my-repository-group --code-repository-index=my-instance --project=my-project
--location=us-central1
arguments:
params:
- help_text: |-
Name of the resource
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.gemini.v1_resources:projects_locations_code_repository_indexes_repository_groups
required: true
request:
api_version: v1
collection:
- cloudaicompanion.projects.locations.codeRepositoryIndexes.repositoryGroups

View File

@@ -0,0 +1,44 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- ALPHA
auto_generated: true
hidden: true
help_text:
brief: List all repository group for a given code repository index instance.
description: List all repository group for a given code repository index instance.
examples: |-
To list all repository groups of a code repository index instance `my-instance` in project
`my-project` and location `us-central1`, run:
$ {command} --code-repository-index=my-instance --project=my-project
--location=us-central1
arguments:
params:
- help_text: |-
Parent value for ListRepositoryGroupsRequest
is_positional: false
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.gemini.v1alpha_resources:projects_locations_code_repository_indexes
required: true
request:
api_version: v1alpha
collection:
- cloudaicompanion.projects.locations.codeRepositoryIndexes.repositoryGroups
response:
id_field: name

View File

@@ -0,0 +1,43 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- GA
auto_generated: true
help_text:
brief: List all repository group for a given code repository index instance.
description: List all repository group for a given code repository index instance.
examples: |-
To list all repository groups of a code repository index instance `my-instance` in project
`my-project` and location `us-central1`, run:
$ {command} --code-repository-index=my-instance --project=my-project
--location=us-central1
arguments:
params:
- help_text: |-
Parent value for ListRepositoryGroupsRequest
is_positional: false
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.gemini.v1_resources:projects_locations_code_repository_indexes
required: true
request:
api_version: v1
collection:
- cloudaicompanion.projects.locations.codeRepositoryIndexes.repositoryGroups
response:
id_field: name

View File

@@ -0,0 +1,136 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- ALPHA
auto_generated: true
hidden: true
help_text:
brief: Update the configuration of a repository group.
description: Update the configuration of a repository group.
examples: |-
To update repository group `my-repository-group` of code repository index instance
`my-instance` in project `my-project` and location `us-central1` with a new branch pattern
for one of the Git repositories, run:
$ {command} my-repository-group --code-repository-index=my-instance --project=my-project
--location=us-central1
--repositories=branchPattern=new_branch,resource=developerconnect.googleapis.com/projects/<PROJECT>/locations/<LOCATION>/connections/<CONNECTION>/gitRepositoryLinks/<REPOSITORY>
arguments:
params:
- help_text: |-
Identifier. name of resource
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.gemini.v1alpha_resources:projects_locations_code_repository_indexes_repository_groups
required: true
- arg_name: labels
api_field: repositoryGroup.labels
required: false
repeated: true
help_text: |-
Labels as key value pairs
clearable: true
spec:
- api_field: key
- api_field: value
- arg_name: repositories
api_field: repositoryGroup.repositories
required: false
repeated: true
help_text: |-
List of repositories to group
clearable: true
spec:
- api_field: resource
help_text: |-
The DeveloperConnect repository full resource name, relative resource name
or resource URL to be indexed.
- api_field: branchPattern
help_text: |-
The Git branch pattern used for indexing in RE2 syntax.
See https://github.com/google/re2/wiki/syntax for syntax.
- arg_name: resources
api_field: repositoryGroup.resources
required: false
repeated: true
help_text: |-
List of third party connection resources
clearable: true
spec:
- api_field: connection
help_text: |-
The DeveloperConnect connection full resource name, relative resource name
or resource URL to be indexed.
- api_field: type
help_text: |-
The type of the 3p resource.
- api_field: authConfig
help_text: |-
The authentication configuration for the resource.
spec:
- api_field: apiToken
one_of_index: 0
help_text: |-
API Token based authentication.
spec:
- api_field: username
help_text: |-
The username for the API token.
- api_field: tokenSecretResource
help_text: |-
The secret key for the API token. Example:
projects/<project>/secrets/<secret>/versions/<version>
- api_field: sourceConfig
help_text: |-
The source configuration for the resource.
spec:
- api_field: confluenceConfig
one_of_index: 0
help_text: |-
Confluence source configuration.
spec:
- api_field: uri
help_text: |-
The host address of the Confluence instance.
- api_field: spaceKey
help_text: |-
The space key of the Confluence space.
- api_field: pageId
help_text: |-
The optional page ID of the Confluence page.
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes since the first request.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
request:
api_version: v1alpha
collection:
- cloudaicompanion.projects.locations.codeRepositoryIndexes.repositoryGroups
async:
collection:
- cloudaicompanion.projects.locations.operations
update:
read_modify_update: true

View File

@@ -0,0 +1,135 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- GA
auto_generated: true
help_text:
brief: Update the configuration of a repository group.
description: Update the configuration of a repository group.
examples: |-
To update repository group `my-repository-group` of code repository index instance
`my-instance` in project `my-project` and location `us-central1` with a new branch pattern
for one of the Git repositories, run:
$ {command} my-repository-group --code-repository-index=my-instance --project=my-project
--location=us-central1
--repositories=branchPattern=new_branch,resource=developerconnect.googleapis.com/projects/<PROJECT>/locations/<LOCATION>/connections/<CONNECTION>/gitRepositoryLinks/<REPOSITORY>
arguments:
params:
- help_text: |-
Identifier. name of resource
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.gemini.v1_resources:projects_locations_code_repository_indexes_repository_groups
required: true
- arg_name: labels
api_field: repositoryGroup.labels
required: false
repeated: true
help_text: |-
Labels as key value pairs
clearable: true
spec:
- api_field: key
- api_field: value
- arg_name: repositories
api_field: repositoryGroup.repositories
required: false
repeated: true
help_text: |-
List of repositories to group
clearable: true
spec:
- api_field: resource
help_text: |-
The DeveloperConnect repository full resource name, relative resource name
or resource URL to be indexed.
- api_field: branchPattern
help_text: |-
The Git branch pattern used for indexing in RE2 syntax.
See https://github.com/google/re2/wiki/syntax for syntax.
- arg_name: resources
api_field: repositoryGroup.resources
required: false
repeated: true
help_text: |-
List of third party connection resources
clearable: true
spec:
- api_field: connection
help_text: |-
The DeveloperConnect connection full resource name, relative resource name
or resource URL to be indexed.
- api_field: type
help_text: |-
The type of the 3p resource.
- api_field: authConfig
help_text: |-
The authentication configuration for the resource.
spec:
- api_field: apiToken
one_of_index: 0
help_text: |-
API Token based authentication.
spec:
- api_field: username
help_text: |-
The username for the API token.
- api_field: tokenSecretResource
help_text: |-
The secret key for the API token. Example:
projects/<project>/secrets/<secret>/versions/<version>
- api_field: sourceConfig
help_text: |-
The source configuration for the resource.
spec:
- api_field: confluenceConfig
one_of_index: 0
help_text: |-
Confluence source configuration.
spec:
- api_field: uri
help_text: |-
The host address of the Confluence instance.
- api_field: spaceKey
help_text: |-
The space key of the Confluence space.
- api_field: pageId
help_text: |-
The optional page ID of the Confluence page.
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes since the first request.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
request:
api_version: v1
collection:
- cloudaicompanion.projects.locations.codeRepositoryIndexes.repositoryGroups
async:
collection:
- cloudaicompanion.projects.locations.operations
update:
read_modify_update: true

View File

@@ -0,0 +1,18 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
_PARTIALS_: true

View File

@@ -0,0 +1,18 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
_PARTIALS_: true

View File

@@ -0,0 +1,18 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
_PARTIALS_: true

View File

@@ -0,0 +1,27 @@
- release_tracks: [ALPHA, GA]
help_text:
brief: Get the IAM policy for a code repository index repository group.
description: |
*{command}* displays the IAM policy associated with a code repository index repository group.
If formatted as JSON, the output can be edited
and used as a policy file for *set-iam-policy*. The output includes
an "etag" field identifying the version emitted and allowing detection
of concurrent policy updates; see $ {parent_command} set-iam-policy
for additional details.
examples: |
To print the IAM policy for a target ``my-repository-group'', run:
$ {command} my-repository-group --region=us-central1 --code-repository-index=my-index
request:
ALPHA:
api_version: v1alpha
GA:
api_version: v1
collection: cloudaicompanion.projects.locations.codeRepositoryIndexes.repositoryGroups
arguments:
resource:
help_text: The repository group for which to display the IAM policy.
spec: !REF googlecloudsdk.command_lib.gemini.resources:repository_group

View File

@@ -0,0 +1,18 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
_PARTIALS_: true

View File

@@ -0,0 +1,27 @@
- release_tracks: [ALPHA, GA]
help_text:
brief: Get the IAM policy for a code repository index repository group.
description: |
*{command}* sets the IAM policy for a code repository index repository group
as defined in a JSON or YAML file.
See https://cloud.google.com/iam/docs/managing-policies for details of
the policy file format and contents.
examples: |
The following command will read an IAM policy defined in a JSON file
'policy.json' and set it for the repository group named 'my-repository-group':
$ {command} my-repository-group policy.json --region=us-central1 --code-repository-index=my-index
request:
ALPHA:
api_version: v1alpha
GA:
api_version: v1
collection: cloudaicompanion.projects.locations.codeRepositoryIndexes.repositoryGroups
arguments:
resource:
help_text: The repository group for which to set the IAM policy.
spec: !REF googlecloudsdk.command_lib.gemini.resources:repository_group

View File

@@ -0,0 +1,18 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
_PARTIALS_: true

View File

@@ -0,0 +1,18 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
_PARTIALS_: true

View File

@@ -0,0 +1,27 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
"""Manage Code Tools Setting resources."""
from googlecloudsdk.calliope import base
from surface.gemini.code_tools_settings import _init_extensions as extensions
@base.ReleaseTracks(base.ReleaseTrack.GA)
@base.Autogenerated
class CodeToolsSettingsGa(extensions.CodeToolsSettingsGa):
"""Manage Code Tools Setting resources."""

View File

@@ -0,0 +1,31 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
"""File to add optional custom code to extend __init__.py."""
from googlecloudsdk.calliope import base
class CodeToolsSettingsAlpha(base.Group):
"""Optional no-auto-generated code for ALPHA."""
class CodeToolsSettingsBeta(base.Group):
"""Optional no-auto-generated code for BETA."""
class CodeToolsSettingsGa(base.Group):
"""Optional no-auto-generated code for GA."""

View File

@@ -0,0 +1,98 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- GA
auto_generated: true
help_text:
brief: Create codeToolsSettings
description: Create a codeToolsSetting
examples: |-
To create the codeToolsSetting, run:
$ {command}
arguments:
params:
- help_text: |-
Identifier. Name of the resource.
Format:projects/{project}/locations/{location}/codeToolsSettings/{codeToolsSetting}
is_positional: true
is_primary_resource: true
request_id_field: codeToolsSettingId
resource_spec: !REF googlecloudsdk.command_lib.gemini.v1_resources:projects_locations_code_tools_settings
required: true
- arg_name: labels
api_field: codeToolsSetting.labels
required: false
repeated: true
help_text: |-
Labels as key value pairs.
spec:
- api_field: key
- api_field: value
- arg_name: enabled-tool
api_field: codeToolsSetting.enabledTool
required: true
repeated: true
help_text: |-
Represents the full set of enabled tools.
spec:
- api_field: accountConnector
help_text: |-
Link to the Dev Connect Account Connector that holds the user credentials.
projects/{project}/locations/{location}/accountConnectors/{account_connector_id}
- api_field: handle
help_text: |-
Handle used to invoke the tool.
- api_field: tool
help_text: |-
Link to the Tool
- api_field: config
help_text: |-
Configuration parameters for the tool.
spec:
- api_field: key
help_text: |-
Key of the configuration item.
- api_field: value
help_text: |-
Value of the configuration item.
- api_field: uriOverride
help_text: |-
Overridden URI, if allowed by Tool.
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and the
request times out. If you make the request again with the same request
ID, the server can check if original operation with the same request ID
was received, and if so, will ignore the second request. This prevents
clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
request:
api_version: v1
collection:
- cloudaicompanion.projects.locations.codeToolsSettings

View File

@@ -0,0 +1,67 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- GA
auto_generated: true
help_text:
brief: Delete codeToolsSettings
description: Delete a codeToolsSetting
examples: |-
To delete the codeToolsSetting, run:
$ {command}
arguments:
params:
- help_text: |-
Name of the resource
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.gemini.v1_resources:projects_locations_code_tools_settings
required: true
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes after the first request.
For example, consider a situation where you make an initial request and the
request times out. If you make the request again with the same request
ID, the server can check if original operation with the same request ID
was received, and if so, will ignore the second request. This prevents
clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
- arg_name: force
api_field: force
action: store_true
required: false
type: bool
help_text: |-
If set to true, any code tools settings from this publisher will
also be deleted.
(Otherwise, the request will only work if the publisher has no books.)
default: null
request:
api_version: v1
collection:
- cloudaicompanion.projects.locations.codeToolsSettings

View File

@@ -0,0 +1,39 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- GA
auto_generated: true
help_text:
brief: Describe codeToolsSettings
description: Describe a codeToolsSetting
examples: |-
To describe the codeToolsSetting, run:
$ {command}
arguments:
params:
- help_text: |-
Name of the resource.
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.gemini.v1_resources:projects_locations_code_tools_settings
required: true
request:
api_version: v1
collection:
- cloudaicompanion.projects.locations.codeToolsSettings

View File

@@ -0,0 +1,41 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- GA
auto_generated: true
help_text:
brief: List codeToolsSettings
description: List codeToolsSettings
examples: |-
To list all codeToolsSettings, run:
$ {command}
arguments:
params:
- help_text: |-
Parent value for ListCodeToolsSettingsRequest
is_positional: false
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.gemini.v1_resources:projects_locations
required: true
request:
api_version: v1
collection:
- cloudaicompanion.projects.locations.codeToolsSettings
response:
id_field: name

View File

@@ -0,0 +1,101 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- GA
auto_generated: true
help_text:
brief: Update codeToolsSettings
description: Update a codeToolsSetting
examples: |-
To update the codeToolsSetting, run:
$ {command}
arguments:
params:
- help_text: |-
Identifier. Name of the resource.
Format:projects/{project}/locations/{location}/codeToolsSettings/{codeToolsSetting}
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.gemini.v1_resources:projects_locations_code_tools_settings
required: true
- arg_name: labels
api_field: codeToolsSetting.labels
required: false
repeated: true
help_text: |-
Labels as key value pairs.
clearable: true
spec:
- api_field: key
- api_field: value
- arg_name: enabled-tool
api_field: codeToolsSetting.enabledTool
required: false
repeated: true
help_text: |-
Represents the full set of enabled tools.
clearable: true
spec:
- api_field: accountConnector
help_text: |-
Link to the Dev Connect Account Connector that holds the user credentials.
projects/{project}/locations/{location}/accountConnectors/{account_connector_id}
- api_field: handle
help_text: |-
Handle used to invoke the tool.
- api_field: tool
help_text: |-
Link to the Tool
- api_field: config
help_text: |-
Configuration parameters for the tool.
spec:
- api_field: key
help_text: |-
Key of the configuration item.
- api_field: value
help_text: |-
Value of the configuration item.
- api_field: uriOverride
help_text: |-
Overridden URI, if allowed by Tool.
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and the
request times out. If you make the request again with the same request
ID, the server can check if original operation with the same request ID
was received, and if so, will ignore the second request. This prevents
clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
request:
api_version: v1
collection:
- cloudaicompanion.projects.locations.codeToolsSettings
update:
read_modify_update: true

View File

@@ -0,0 +1,18 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
_PARTIALS_: true

View File

@@ -0,0 +1,18 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
_PARTIALS_: true

View File

@@ -0,0 +1,18 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
_PARTIALS_: true

View File

@@ -0,0 +1,18 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
_PARTIALS_: true

View File

@@ -0,0 +1,27 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
"""Manage Setting Binding resources."""
from googlecloudsdk.calliope import base
from surface.gemini.code_tools_settings.setting_bindings import _init_extensions as extensions
@base.ReleaseTracks(base.ReleaseTrack.GA)
@base.Autogenerated
class SettingBindingsGa(extensions.SettingBindingsGa):
"""Manage Setting Binding resources."""

View File

@@ -0,0 +1,31 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
"""File to add optional custom code to extend __init__.py."""
from googlecloudsdk.calliope import base
class SettingBindingsAlpha(base.Group):
"""Optional no-auto-generated code for ALPHA."""
class SettingBindingsBeta(base.Group):
"""Optional no-auto-generated code for BETA."""
class SettingBindingsGa(base.Group):
"""Optional no-auto-generated code for GA."""

View File

@@ -0,0 +1,99 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- GA
auto_generated: true
help_text:
brief: Create settingBindings
description: Create a settingBinding
examples: |-
To create the settingBinding, run:
$ {command}
arguments:
params:
- help_text: |-
Identifier. Name of the resource.
Format:projects/{project}/locations/{location}/{settingType}/{setting}/settingBindings/{setting_binding}
is_positional: true
is_primary_resource: true
request_id_field: settingBindingId
resource_spec: !REF googlecloudsdk.command_lib.gemini.v1_resources:projects_locations_code_tools_settings_setting_bindings
required: true
- arg_name: labels
api_field: settingBinding.labels
required: false
repeated: true
help_text: |-
Labels as key value pairs.
spec:
- api_field: key
- api_field: value
- arg_name: target
api_field: settingBinding.target
required: true
repeated: false
help_text: |-
Target of the binding.
- arg_name: product
api_field: settingBinding.product
required: false
help_text: |-
Product type of the setting binding.
choices:
- arg_value: gemini-cloud-assist
enum_value: GEMINI_CLOUD_ASSIST
help_text: |-
Gemini Cloud Assist.
- arg_value: gemini-code-assist
enum_value: GEMINI_CODE_ASSIST
help_text: |-
Gemini Code Assist.
- arg_value: gemini-in-bigquery
enum_value: GEMINI_IN_BIGQUERY
help_text: |-
Gemini in BigQuery.
- arg_value: gemini-in-looker
enum_value: GEMINI_IN_LOOKER
help_text: |-
Gemini in Looker.
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and the
request times out. If you make the request again with the same request
ID, the server can check if original operation with the same request ID
was received, and if so, will ignore the second request. This prevents
clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
request:
api_version: v1
collection:
- cloudaicompanion.projects.locations.codeToolsSettings.settingBindings
async:
collection:
- cloudaicompanion.projects.locations.operations

View File

@@ -0,0 +1,60 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- GA
auto_generated: true
help_text:
brief: Delete settingBindings
description: Delete a settingBinding
examples: |-
To delete the settingBinding, run:
$ {command}
arguments:
params:
- help_text: |-
Name of the resource.
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.gemini.v1_resources:projects_locations_code_tools_settings_setting_bindings
required: true
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes after the first request.
For example, consider a situation where you make an initial request and the
request times out. If you make the request again with the same request
ID, the server can check if original operation with the same request ID
was received, and if so, will ignore the second request. This prevents
clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
request:
api_version: v1
collection:
- cloudaicompanion.projects.locations.codeToolsSettings.settingBindings
async:
collection:
- cloudaicompanion.projects.locations.operations

View File

@@ -0,0 +1,39 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- GA
auto_generated: true
help_text:
brief: Describe settingBindings
description: Describe a settingBinding
examples: |-
To describe the settingBinding, run:
$ {command}
arguments:
params:
- help_text: |-
Name of the resource.
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.gemini.v1_resources:projects_locations_code_tools_settings_setting_bindings
required: true
request:
api_version: v1
collection:
- cloudaicompanion.projects.locations.codeToolsSettings.settingBindings

View File

@@ -0,0 +1,41 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- GA
auto_generated: true
help_text:
brief: List settingBindings
description: List settingBindings
examples: |-
To list all settingBindings, run:
$ {command}
arguments:
params:
- help_text: |-
Parent value for ListSettingBindingsRequest.
is_positional: false
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.gemini.v1_resources:projects_locations_code_tools_settings
required: true
request:
api_version: v1
collection:
- cloudaicompanion.projects.locations.codeToolsSettings.settingBindings
response:
id_field: name

View File

@@ -0,0 +1,101 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- GA
auto_generated: true
help_text:
brief: Update settingBindings
description: Update a settingBinding
examples: |-
To update the settingBinding, run:
$ {command}
arguments:
params:
- help_text: |-
Identifier. Name of the resource.
Format:projects/{project}/locations/{location}/{settingType}/{setting}/settingBindings/{setting_binding}
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.gemini.v1_resources:projects_locations_code_tools_settings_setting_bindings
required: true
- arg_name: labels
api_field: settingBinding.labels
required: false
repeated: true
help_text: |-
Labels as key value pairs.
clearable: true
spec:
- api_field: key
- api_field: value
- arg_name: target
api_field: settingBinding.target
required: false
repeated: false
help_text: |-
Target of the binding.
- arg_name: product
api_field: settingBinding.product
required: false
help_text: |-
Product type of the setting binding.
choices:
- arg_value: gemini-cloud-assist
enum_value: GEMINI_CLOUD_ASSIST
help_text: |-
Gemini Cloud Assist.
- arg_value: gemini-code-assist
enum_value: GEMINI_CODE_ASSIST
help_text: |-
Gemini Code Assist.
- arg_value: gemini-in-bigquery
enum_value: GEMINI_IN_BIGQUERY
help_text: |-
Gemini in BigQuery.
- arg_value: gemini-in-looker
enum_value: GEMINI_IN_LOOKER
help_text: |-
Gemini in Looker.
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and the
request times out. If you make the request again with the same request
ID, the server can check if original operation with the same request ID
was received, and if so, will ignore the second request. This prevents
clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
request:
api_version: v1
collection:
- cloudaicompanion.projects.locations.codeToolsSettings.settingBindings
async:
collection:
- cloudaicompanion.projects.locations.operations
update:
read_modify_update: true

View File

@@ -0,0 +1,18 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
_PARTIALS_: true

View File

@@ -0,0 +1,18 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
_PARTIALS_: true

View File

@@ -0,0 +1,18 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
_PARTIALS_: true

View File

@@ -0,0 +1,18 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
_PARTIALS_: true

View File

@@ -0,0 +1,18 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
_PARTIALS_: true

View File

@@ -0,0 +1,18 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
_PARTIALS_: true

View File

@@ -0,0 +1,29 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
"""Manage Data Sharing With Google Setting resources."""
from googlecloudsdk.calliope import base
from surface.gemini.data_sharing_with_google_settings import _init_extensions as extensions
@base.ReleaseTracks(base.ReleaseTrack.GA)
@base.Autogenerated
class DataSharingWithGoogleSettingsGa(
extensions.DataSharingWithGoogleSettingsGa
):
"""Manage Data Sharing With Google Setting resources."""

View File

@@ -0,0 +1,31 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
"""File to add optional custom code to extend __init__.py."""
from googlecloudsdk.calliope import base
class DataSharingWithGoogleSettingsAlpha(base.Group):
"""Optional no-auto-generated code for ALPHA."""
class DataSharingWithGoogleSettingsBeta(base.Group):
"""Optional no-auto-generated code for BETA."""
class DataSharingWithGoogleSettingsGa(base.Group):
"""Optional no-auto-generated code for GA."""

View File

@@ -0,0 +1,84 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- GA
auto_generated: true
help_text:
brief: Create dataSharingWithGoogleSettings
description: Create a dataSharingWithGoogleSetting
examples: |-
To create the dataSharingWithGoogleSetting, run:
$ {command}
arguments:
params:
- help_text: |-
Identifier. Name of the resource.
Format:projects/{project}/locations/{location}/dataSharingWithGoogleSettings/{dataSharingWithGoogleSetting}
is_positional: true
is_primary_resource: true
request_id_field: dataSharingWithGoogleSettingId
resource_spec: !REF googlecloudsdk.command_lib.gemini.v1_resources:projects_locations_data_sharing_with_google_settings
required: true
- arg_name: labels
api_field: dataSharingWithGoogleSetting.labels
required: false
repeated: true
help_text: |-
Labels as key value pairs.
spec:
- api_field: key
- api_field: value
- arg_name: enable-preview-data-sharing
api_field: dataSharingWithGoogleSetting.enablePreviewDataSharing
action: store_true
required: false
type: bool
help_text: |-
Whether data sharing should be enabled in Preview products.
default: null
- arg_name: enable-data-sharing
api_field: dataSharingWithGoogleSetting.enableDataSharing
action: store_true
required: false
type: bool
help_text: |-
Whether data sharing should be enabled in GA products.
default: null
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and the
request times out. If you make the request again with the same request
ID, the server can check if original operation with the same request ID
was received, and if so, will ignore the second request. This prevents
clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
request:
api_version: v1
collection:
- cloudaicompanion.projects.locations.dataSharingWithGoogleSettings

View File

@@ -0,0 +1,57 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- GA
auto_generated: true
help_text:
brief: Delete dataSharingWithGoogleSettings
description: Delete a dataSharingWithGoogleSetting
examples: |-
To delete the dataSharingWithGoogleSetting, run:
$ {command}
arguments:
params:
- help_text: |-
Name of the resource
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.gemini.v1_resources:projects_locations_data_sharing_with_google_settings
required: true
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes after the first request.
For example, consider a situation where you make an initial request and the
request times out. If you make the request again with the same request
ID, the server can check if original operation with the same request ID
was received, and if so, will ignore the second request. This prevents
clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
request:
api_version: v1
collection:
- cloudaicompanion.projects.locations.dataSharingWithGoogleSettings

View File

@@ -0,0 +1,39 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- GA
auto_generated: true
help_text:
brief: Describe dataSharingWithGoogleSettings
description: Describe a dataSharingWithGoogleSetting
examples: |-
To describe the dataSharingWithGoogleSetting, run:
$ {command}
arguments:
params:
- help_text: |-
Name of the resource.
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.gemini.v1_resources:projects_locations_data_sharing_with_google_settings
required: true
request:
api_version: v1
collection:
- cloudaicompanion.projects.locations.dataSharingWithGoogleSettings

View File

@@ -0,0 +1,41 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- GA
auto_generated: true
help_text:
brief: List dataSharingWithGoogleSettings
description: List dataSharingWithGoogleSettings
examples: |-
To list all dataSharingWithGoogleSettings, run:
$ {command}
arguments:
params:
- help_text: |-
Parent value for ListDataSharingWithGoogleSettingsRequest
is_positional: false
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.gemini.v1_resources:projects_locations
required: true
request:
api_version: v1
collection:
- cloudaicompanion.projects.locations.dataSharingWithGoogleSettings
response:
id_field: name

View File

@@ -0,0 +1,84 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- GA
auto_generated: true
help_text:
brief: Update dataSharingWithGoogleSettings
description: Update a dataSharingWithGoogleSetting
examples: |-
To update the dataSharingWithGoogleSetting, run:
$ {command}
arguments:
params:
- help_text: |-
Identifier. Name of the resource.
Format:projects/{project}/locations/{location}/dataSharingWithGoogleSettings/{dataSharingWithGoogleSetting}
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.gemini.v1_resources:projects_locations_data_sharing_with_google_settings
required: true
- arg_name: labels
api_field: dataSharingWithGoogleSetting.labels
required: false
repeated: true
help_text: |-
Labels as key value pairs.
clearable: true
spec:
- api_field: key
- api_field: value
- arg_name: enable-preview-data-sharing
api_field: dataSharingWithGoogleSetting.enablePreviewDataSharing
action: store_true_false
required: false
type: bool
help_text: |-
Whether data sharing should be enabled in Preview products.
- arg_name: enable-data-sharing
api_field: dataSharingWithGoogleSetting.enableDataSharing
action: store_true_false
required: false
type: bool
help_text: |-
Whether data sharing should be enabled in GA products.
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and the
request times out. If you make the request again with the same request
ID, the server can check if original operation with the same request ID
was received, and if so, will ignore the second request. This prevents
clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
request:
api_version: v1
collection:
- cloudaicompanion.projects.locations.dataSharingWithGoogleSettings
update:
read_modify_update: true

View File

@@ -0,0 +1,18 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
_PARTIALS_: true

View File

@@ -0,0 +1,18 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
_PARTIALS_: true

View File

@@ -0,0 +1,18 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
_PARTIALS_: true

View File

@@ -0,0 +1,18 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
_PARTIALS_: true

View File

@@ -0,0 +1,27 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
"""Manage Setting Binding resources."""
from googlecloudsdk.calliope import base
from surface.gemini.data_sharing_with_google_settings.setting_bindings import _init_extensions as extensions
@base.ReleaseTracks(base.ReleaseTrack.GA)
@base.Autogenerated
class SettingBindingsGa(extensions.SettingBindingsGa):
"""Manage Setting Binding resources."""

View File

@@ -0,0 +1,31 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
"""File to add optional custom code to extend __init__.py."""
from googlecloudsdk.calliope import base
class SettingBindingsAlpha(base.Group):
"""Optional no-auto-generated code for ALPHA."""
class SettingBindingsBeta(base.Group):
"""Optional no-auto-generated code for BETA."""
class SettingBindingsGa(base.Group):
"""Optional no-auto-generated code for GA."""

View File

@@ -0,0 +1,99 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- GA
auto_generated: true
help_text:
brief: Create settingBindings
description: Create a settingBinding
examples: |-
To create the settingBinding, run:
$ {command}
arguments:
params:
- help_text: |-
Identifier. Name of the resource.
Format:projects/{project}/locations/{location}/{settingType}/{setting}/settingBindings/{setting_binding}
is_positional: true
is_primary_resource: true
request_id_field: settingBindingId
resource_spec: !REF googlecloudsdk.command_lib.gemini.v1_resources:projects_locations_data_sharing_with_google_settings_setting_bindings
required: true
- arg_name: labels
api_field: settingBinding.labels
required: false
repeated: true
help_text: |-
Labels as key value pairs.
spec:
- api_field: key
- api_field: value
- arg_name: target
api_field: settingBinding.target
required: true
repeated: false
help_text: |-
Target of the binding.
- arg_name: product
api_field: settingBinding.product
required: false
help_text: |-
Product type of the setting binding.
choices:
- arg_value: gemini-cloud-assist
enum_value: GEMINI_CLOUD_ASSIST
help_text: |-
Gemini Cloud Assist.
- arg_value: gemini-code-assist
enum_value: GEMINI_CODE_ASSIST
help_text: |-
Gemini Code Assist.
- arg_value: gemini-in-bigquery
enum_value: GEMINI_IN_BIGQUERY
help_text: |-
Gemini in BigQuery.
- arg_value: gemini-in-looker
enum_value: GEMINI_IN_LOOKER
help_text: |-
Gemini in Looker.
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and the
request times out. If you make the request again with the same request
ID, the server can check if original operation with the same request ID
was received, and if so, will ignore the second request. This prevents
clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
request:
api_version: v1
collection:
- cloudaicompanion.projects.locations.dataSharingWithGoogleSettings.settingBindings
async:
collection:
- cloudaicompanion.projects.locations.operations

View File

@@ -0,0 +1,60 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- GA
auto_generated: true
help_text:
brief: Delete settingBindings
description: Delete a settingBinding
examples: |-
To delete the settingBinding, run:
$ {command}
arguments:
params:
- help_text: |-
Name of the resource.
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.gemini.v1_resources:projects_locations_data_sharing_with_google_settings_setting_bindings
required: true
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes after the first request.
For example, consider a situation where you make an initial request and the
request times out. If you make the request again with the same request
ID, the server can check if original operation with the same request ID
was received, and if so, will ignore the second request. This prevents
clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
request:
api_version: v1
collection:
- cloudaicompanion.projects.locations.dataSharingWithGoogleSettings.settingBindings
async:
collection:
- cloudaicompanion.projects.locations.operations

View File

@@ -0,0 +1,39 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- GA
auto_generated: true
help_text:
brief: Describe settingBindings
description: Describe a settingBinding
examples: |-
To describe the settingBinding, run:
$ {command}
arguments:
params:
- help_text: |-
Name of the resource.
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.gemini.v1_resources:projects_locations_data_sharing_with_google_settings_setting_bindings
required: true
request:
api_version: v1
collection:
- cloudaicompanion.projects.locations.dataSharingWithGoogleSettings.settingBindings

View File

@@ -0,0 +1,41 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- GA
auto_generated: true
help_text:
brief: List settingBindings
description: List settingBindings
examples: |-
To list all settingBindings, run:
$ {command}
arguments:
params:
- help_text: |-
Parent value for ListSettingBindingsRequest.
is_positional: false
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.gemini.v1_resources:projects_locations_data_sharing_with_google_settings
required: true
request:
api_version: v1
collection:
- cloudaicompanion.projects.locations.dataSharingWithGoogleSettings.settingBindings
response:
id_field: name

View File

@@ -0,0 +1,101 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- GA
auto_generated: true
help_text:
brief: Update settingBindings
description: Update a settingBinding
examples: |-
To update the settingBinding, run:
$ {command}
arguments:
params:
- help_text: |-
Identifier. Name of the resource.
Format:projects/{project}/locations/{location}/{settingType}/{setting}/settingBindings/{setting_binding}
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.gemini.v1_resources:projects_locations_data_sharing_with_google_settings_setting_bindings
required: true
- arg_name: labels
api_field: settingBinding.labels
required: false
repeated: true
help_text: |-
Labels as key value pairs.
clearable: true
spec:
- api_field: key
- api_field: value
- arg_name: target
api_field: settingBinding.target
required: false
repeated: false
help_text: |-
Target of the binding.
- arg_name: product
api_field: settingBinding.product
required: false
help_text: |-
Product type of the setting binding.
choices:
- arg_value: gemini-cloud-assist
enum_value: GEMINI_CLOUD_ASSIST
help_text: |-
Gemini Cloud Assist.
- arg_value: gemini-code-assist
enum_value: GEMINI_CODE_ASSIST
help_text: |-
Gemini Code Assist.
- arg_value: gemini-in-bigquery
enum_value: GEMINI_IN_BIGQUERY
help_text: |-
Gemini in BigQuery.
- arg_value: gemini-in-looker
enum_value: GEMINI_IN_LOOKER
help_text: |-
Gemini in Looker.
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and the
request times out. If you make the request again with the same request
ID, the server can check if original operation with the same request ID
was received, and if so, will ignore the second request. This prevents
clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
request:
api_version: v1
collection:
- cloudaicompanion.projects.locations.dataSharingWithGoogleSettings.settingBindings
async:
collection:
- cloudaicompanion.projects.locations.operations
update:
read_modify_update: true

View File

@@ -0,0 +1,18 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
_PARTIALS_: true

View File

@@ -0,0 +1,18 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
_PARTIALS_: true

View File

@@ -0,0 +1,18 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
_PARTIALS_: true

View File

@@ -0,0 +1,18 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
_PARTIALS_: true

View File

@@ -0,0 +1,18 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
_PARTIALS_: true

View File

@@ -0,0 +1,18 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
_PARTIALS_: true

View File

@@ -0,0 +1,27 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
"""Manage Gemini Gcp Enablement Setting resources."""
from googlecloudsdk.calliope import base
from surface.gemini.gemini_gcp_enablement_settings import _init_extensions as extensions
@base.ReleaseTracks(base.ReleaseTrack.GA)
@base.Autogenerated
class GeminiGcpEnablementSettingsGa(extensions.GeminiGcpEnablementSettingsGa):
"""Manage Gemini Gcp Enablement Setting resources."""

View File

@@ -0,0 +1,31 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
"""File to add optional custom code to extend __init__.py."""
from googlecloudsdk.calliope import base
class GeminiGcpEnablementSettingsAlpha(base.Group):
"""Optional no-auto-generated code for ALPHA."""
class GeminiGcpEnablementSettingsBeta(base.Group):
"""Optional no-auto-generated code for BETA."""
class GeminiGcpEnablementSettingsGa(base.Group):
"""Optional no-auto-generated code for GA."""

View File

@@ -0,0 +1,99 @@
# -*- 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.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- GA
auto_generated: true
help_text:
brief: Create geminiGcpEnablementSettings
description: Create a geminiGcpEnablementSetting
examples: |-
To create the geminiGcpEnablementSetting, run:
$ {command}
arguments:
params:
- help_text: |-
Identifier. Name of the resource.
Format:projects/{project}/locations/{location}/geminiGcpEnablementSettings/{geminiGcpEnablementSetting}
is_positional: true
is_primary_resource: true
request_id_field: geminiGcpEnablementSettingId
resource_spec: !REF googlecloudsdk.command_lib.gemini.v1_resources:projects_locations_gemini_gcp_enablement_settings
required: true
- arg_name: labels
api_field: geminiGcpEnablementSetting.labels
required: false
repeated: true
help_text: |-
Labels as key value pairs.
spec:
- api_field: key
- api_field: value
- arg_name: enable-customer-data-sharing
api_field: geminiGcpEnablementSetting.enableCustomerDataSharing
action: store_true
required: false
type: bool
help_text: |-
Not implemented.
default: null
- arg_name: disable-web-grounding
api_field: geminiGcpEnablementSetting.disableWebGrounding
action: store_true
required: false
type: bool
help_text: |-
Whether web grounding should be disabled.
DEPRECATED: Use web_grounding_type instead.
default: null
- arg_name: web-grounding-type
api_field: geminiGcpEnablementSetting.webGroundingType
required: false
help_text: |-
Web grounding type.
choices:
- arg_value: grounding-with-google-search
enum_value: GROUNDING_WITH_GOOGLE_SEARCH
help_text: |-
Grounding with Google Search.
- arg_value: web-grounding-for-enterprise
enum_value: WEB_GROUNDING_FOR_ENTERPRISE
help_text: |-
Grounding with Google Search for Enterprise.
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and the
request times out. If you make the request again with the same request
ID, the server can check if original operation with the same request ID
was received, and if so, will ignore the second request. This prevents
clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
request:
api_version: v1
collection:
- cloudaicompanion.projects.locations.geminiGcpEnablementSettings

Some files were not shown because too many files have changed in this diff Show More