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,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