# REST Resource: projects.locations.codeRepositoryIndexes.repositoryGroups

- [Resource: RepositoryGroup](https://docs.cloud.google.com/gemini/docs/api/reference/rest/v1/projects.locations.codeRepositoryIndexes.repositoryGroups#RepositoryGroup)
  - [JSON representation](https://docs.cloud.google.com/gemini/docs/api/reference/rest/v1/projects.locations.codeRepositoryIndexes.repositoryGroups#RepositoryGroup.SCHEMA_REPRESENTATION)
- [Repository](https://docs.cloud.google.com/gemini/docs/api/reference/rest/v1/projects.locations.codeRepositoryIndexes.repositoryGroups#Repository)
  - [JSON representation](https://docs.cloud.google.com/gemini/docs/api/reference/rest/v1/projects.locations.codeRepositoryIndexes.repositoryGroups#Repository.SCHEMA_REPRESENTATION)
- [Methods](https://docs.cloud.google.com/gemini/docs/api/reference/rest/v1/projects.locations.codeRepositoryIndexes.repositoryGroups#METHODS_SUMMARY)

## Resource: RepositoryGroup

Message describing RepositoryGroup object

| JSON representation |
|---|
| ``` { "name": string, "createTime": string, "updateTime": string, "labels": { string: string, ... }, "repositories": [ { object (`https://docs.cloud.google.com/gemini/docs/api/reference/rest/v1/projects.locations.codeRepositoryIndexes.repositoryGroups#Repository`) } ] } ``` |

| Fields ||
|---|---|
| `name` | `string` Immutable. Identifier. name of resource |
| `createTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. Create time stamp Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `updateTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. Update time stamp Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `labels` | `map (key: string, value: string)` Optional. Labels as key value pairs An object containing a list of `"key": value` pairs. Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`. |
| `repositories[]` | ``object (`https://docs.cloud.google.com/gemini/docs/api/reference/rest/v1/projects.locations.codeRepositoryIndexes.repositoryGroups#Repository`)`` Required. List of repositories to group |

## Repository

Repository contains RAG indexing settings for the provided Git repository

| JSON representation |
|---|
| ``` { "resource": string, "branchPattern": string } ``` |

| Fields ||
|---|---|
| `resource` | `string` Required. The DeveloperConnect repository full resource name, relative resource name or resource URL to be indexed. |
| `branchPattern` | `string` Required. The Git branch pattern used for indexing in RE2 syntax. See <https://github.com/google/re2/wiki/syntax> for syntax. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/gemini/docs/api/reference/rest/v1/projects.locations.codeRepositoryIndexes.repositoryGroups/create` | Creates a new RepositoryGroup in a given project and location. |
| ### `https://docs.cloud.google.com/gemini/docs/api/reference/rest/v1/projects.locations.codeRepositoryIndexes.repositoryGroups/delete` | Deletes a single RepositoryGroup. |
| ### `https://docs.cloud.google.com/gemini/docs/api/reference/rest/v1/projects.locations.codeRepositoryIndexes.repositoryGroups/get` | Gets details of a single RepositoryGroup. |
| ### `https://docs.cloud.google.com/gemini/docs/api/reference/rest/v1/projects.locations.codeRepositoryIndexes.repositoryGroups/getIamPolicy` | Gets the access control policy for a resource. |
| ### `https://docs.cloud.google.com/gemini/docs/api/reference/rest/v1/projects.locations.codeRepositoryIndexes.repositoryGroups/list` | Lists RepositoryGroups in a given project and location. |
| ### `https://docs.cloud.google.com/gemini/docs/api/reference/rest/v1/projects.locations.codeRepositoryIndexes.repositoryGroups/patch` | Updates the parameters of a single RepositoryGroup. |
| ### `https://docs.cloud.google.com/gemini/docs/api/reference/rest/v1/projects.locations.codeRepositoryIndexes.repositoryGroups/setIamPolicy` | Sets the access control policy on the specified resource. |
| ### `https://docs.cloud.google.com/gemini/docs/api/reference/rest/v1/projects.locations.codeRepositoryIndexes.repositoryGroups/testIamPermissions` | Returns permissions that a caller has on the specified resource. |