import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * The resource for managing Repository Group for Gemini Code Assist. * * To get more information about RepositoryGroup, see: * * * [API documentation](https://cloud.google.com/gemini/docs/api/reference/rest/v1/projects.locations.codeRepositoryIndexes.repositoryGroups) * * ## Example Usage * * ### Gemini Repository Group Basic * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const example = new gcp.gemini.RepositoryGroup("example", { * location: "us-central1", * codeRepositoryIndex: "example-cri", * repositoryGroupId: "example-repository-group", * repositories: [{ * resource: "projects/example-project/locations/us-central1/connections/example-connection/gitRepositoryLinks/example-repo", * branchPattern: "main", * }], * labels: { * label1: "value1", * }, * }); * ``` * * ## Import * * RepositoryGroup can be imported using any of these accepted formats: * * * `projects/{{project}}/locations/{{location}}/codeRepositoryIndexes/{{code_repository_index}}/repositoryGroups/{{repository_group_id}}` * * * `{{project}}/{{location}}/{{code_repository_index}}/{{repository_group_id}}` * * * `{{location}}/{{code_repository_index}}/{{repository_group_id}}` * * When using the `pulumi import` command, RepositoryGroup can be imported using one of the formats above. For example: * * ```sh * $ pulumi import gcp:gemini/repositoryGroup:RepositoryGroup default projects/{{project}}/locations/{{location}}/codeRepositoryIndexes/{{code_repository_index}}/repositoryGroups/{{repository_group_id}} * ``` * * ```sh * $ pulumi import gcp:gemini/repositoryGroup:RepositoryGroup default {{project}}/{{location}}/{{code_repository_index}}/{{repository_group_id}} * ``` * * ```sh * $ pulumi import gcp:gemini/repositoryGroup:RepositoryGroup default {{location}}/{{code_repository_index}}/{{repository_group_id}} * ``` */ export declare class RepositoryGroup extends pulumi.CustomResource { /** * Get an existing RepositoryGroup resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: RepositoryGroupState, opts?: pulumi.CustomResourceOptions): RepositoryGroup; /** * Returns true if the given object is an instance of RepositoryGroup. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is RepositoryGroup; /** * Required. Id of the Code Repository Index. */ readonly codeRepositoryIndex: pulumi.Output; /** * Output only. Create time stamp. */ readonly createTime: pulumi.Output; /** * All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services. */ readonly effectiveLabels: pulumi.Output<{ [key: string]: string; }>; /** * Optional. Labels as key value pairs. * **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. * Please refer to the field `effectiveLabels` for all of the labels present on the resource. */ readonly labels: pulumi.Output<{ [key: string]: string; } | undefined>; /** * The location of the Code Repository Index, for example `us-central1`. */ readonly location: pulumi.Output; /** * Immutable. Identifier. Name of Repository Group. */ readonly name: pulumi.Output; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ readonly project: pulumi.Output; /** * The combination of labels configured directly on the resource * and default labels configured on the provider. */ readonly pulumiLabels: pulumi.Output<{ [key: string]: string; }>; /** * Required. List of repositories to group. * Structure is documented below. */ readonly repositories: pulumi.Output; /** * Required. Id of the Repository Group. */ readonly repositoryGroupId: pulumi.Output; /** * Output only. Update time stamp. */ readonly updateTime: pulumi.Output; /** * Create a RepositoryGroup resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: RepositoryGroupArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering RepositoryGroup resources. */ export interface RepositoryGroupState { /** * Required. Id of the Code Repository Index. */ codeRepositoryIndex?: pulumi.Input; /** * Output only. Create time stamp. */ createTime?: pulumi.Input; /** * All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services. */ effectiveLabels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Optional. Labels as key value pairs. * **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. * Please refer to the field `effectiveLabels` for all of the labels present on the resource. */ labels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * The location of the Code Repository Index, for example `us-central1`. */ location?: pulumi.Input; /** * Immutable. Identifier. Name of Repository Group. */ name?: pulumi.Input; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ project?: pulumi.Input; /** * The combination of labels configured directly on the resource * and default labels configured on the provider. */ pulumiLabels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Required. List of repositories to group. * Structure is documented below. */ repositories?: pulumi.Input[]>; /** * Required. Id of the Repository Group. */ repositoryGroupId?: pulumi.Input; /** * Output only. Update time stamp. */ updateTime?: pulumi.Input; } /** * The set of arguments for constructing a RepositoryGroup resource. */ export interface RepositoryGroupArgs { /** * Required. Id of the Code Repository Index. */ codeRepositoryIndex: pulumi.Input; /** * Optional. Labels as key value pairs. * **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. * Please refer to the field `effectiveLabels` for all of the labels present on the resource. */ labels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * The location of the Code Repository Index, for example `us-central1`. */ location: pulumi.Input; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ project?: pulumi.Input; /** * Required. List of repositories to group. * Structure is documented below. */ repositories: pulumi.Input[]>; /** * Required. Id of the Repository Group. */ repositoryGroupId: pulumi.Input; }