1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. gemini
  5. RepositoryGroup
Google Cloud v8.14.0 published on Wednesday, Jan 15, 2025 by Pulumi

gcp.gemini.RepositoryGroup

Explore with Pulumi AI

gcp logo
Google Cloud v8.14.0 published on Wednesday, Jan 15, 2025 by Pulumi

    Example Usage

    Create RepositoryGroup Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new RepositoryGroup(name: string, args: RepositoryGroupArgs, opts?: CustomResourceOptions);
    @overload
    def RepositoryGroup(resource_name: str,
                        args: RepositoryGroupArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def RepositoryGroup(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        code_repository_index: Optional[str] = None,
                        location: Optional[str] = None,
                        repositories: Optional[Sequence[RepositoryGroupRepositoryArgs]] = None,
                        repository_group_id: Optional[str] = None,
                        labels: Optional[Mapping[str, str]] = None,
                        project: Optional[str] = None)
    func NewRepositoryGroup(ctx *Context, name string, args RepositoryGroupArgs, opts ...ResourceOption) (*RepositoryGroup, error)
    public RepositoryGroup(string name, RepositoryGroupArgs args, CustomResourceOptions? opts = null)
    public RepositoryGroup(String name, RepositoryGroupArgs args)
    public RepositoryGroup(String name, RepositoryGroupArgs args, CustomResourceOptions options)
    
    type: gcp:gemini:RepositoryGroup
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args RepositoryGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args RepositoryGroupArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args RepositoryGroupArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RepositoryGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RepositoryGroupArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var repositoryGroupResource = new Gcp.Gemini.RepositoryGroup("repositoryGroupResource", new()
    {
        CodeRepositoryIndex = "string",
        Location = "string",
        Repositories = new[]
        {
            new Gcp.Gemini.Inputs.RepositoryGroupRepositoryArgs
            {
                BranchPattern = "string",
                Resource = "string",
            },
        },
        RepositoryGroupId = "string",
        Labels = 
        {
            { "string", "string" },
        },
        Project = "string",
    });
    
    example, err := gemini.NewRepositoryGroup(ctx, "repositoryGroupResource", &gemini.RepositoryGroupArgs{
    	CodeRepositoryIndex: pulumi.String("string"),
    	Location:            pulumi.String("string"),
    	Repositories: gemini.RepositoryGroupRepositoryArray{
    		&gemini.RepositoryGroupRepositoryArgs{
    			BranchPattern: pulumi.String("string"),
    			Resource:      pulumi.String("string"),
    		},
    	},
    	RepositoryGroupId: pulumi.String("string"),
    	Labels: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Project: pulumi.String("string"),
    })
    
    var repositoryGroupResource = new RepositoryGroup("repositoryGroupResource", RepositoryGroupArgs.builder()
        .codeRepositoryIndex("string")
        .location("string")
        .repositories(RepositoryGroupRepositoryArgs.builder()
            .branchPattern("string")
            .resource("string")
            .build())
        .repositoryGroupId("string")
        .labels(Map.of("string", "string"))
        .project("string")
        .build());
    
    repository_group_resource = gcp.gemini.RepositoryGroup("repositoryGroupResource",
        code_repository_index="string",
        location="string",
        repositories=[{
            "branch_pattern": "string",
            "resource": "string",
        }],
        repository_group_id="string",
        labels={
            "string": "string",
        },
        project="string")
    
    const repositoryGroupResource = new gcp.gemini.RepositoryGroup("repositoryGroupResource", {
        codeRepositoryIndex: "string",
        location: "string",
        repositories: [{
            branchPattern: "string",
            resource: "string",
        }],
        repositoryGroupId: "string",
        labels: {
            string: "string",
        },
        project: "string",
    });
    
    type: gcp:gemini:RepositoryGroup
    properties:
        codeRepositoryIndex: string
        labels:
            string: string
        location: string
        project: string
        repositories:
            - branchPattern: string
              resource: string
        repositoryGroupId: string
    

    RepositoryGroup Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The RepositoryGroup resource accepts the following input properties:

    CodeRepositoryIndex string
    Required. Id of the Code Repository Index.
    Location string
    The location of the Code Repository Index, for example us-central1.
    Repositories List<RepositoryGroupRepository>
    Required. List of repositories to group Structure is documented below.
    RepositoryGroupId string
    Required. Id of the Repository Group.
    Labels Dictionary<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 'effective_labels' for all of the labels present on the resource.
    Project string
    CodeRepositoryIndex string
    Required. Id of the Code Repository Index.
    Location string
    The location of the Code Repository Index, for example us-central1.
    Repositories []RepositoryGroupRepositoryArgs
    Required. List of repositories to group Structure is documented below.
    RepositoryGroupId string
    Required. Id of the Repository Group.
    Labels map[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 'effective_labels' for all of the labels present on the resource.
    Project string
    codeRepositoryIndex String
    Required. Id of the Code Repository Index.
    location String
    The location of the Code Repository Index, for example us-central1.
    repositories List<RepositoryGroupRepository>
    Required. List of repositories to group Structure is documented below.
    repositoryGroupId String
    Required. Id of the Repository Group.
    labels Map<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 'effective_labels' for all of the labels present on the resource.
    project String
    codeRepositoryIndex string
    Required. Id of the Code Repository Index.
    location string
    The location of the Code Repository Index, for example us-central1.
    repositories RepositoryGroupRepository[]
    Required. List of repositories to group Structure is documented below.
    repositoryGroupId string
    Required. Id of the Repository Group.
    labels {[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 'effective_labels' for all of the labels present on the resource.
    project string
    code_repository_index str
    Required. Id of the Code Repository Index.
    location str
    The location of the Code Repository Index, for example us-central1.
    repositories Sequence[RepositoryGroupRepositoryArgs]
    Required. List of repositories to group Structure is documented below.
    repository_group_id str
    Required. Id of the Repository Group.
    labels Mapping[str, str]
    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 'effective_labels' for all of the labels present on the resource.
    project str
    codeRepositoryIndex String
    Required. Id of the Code Repository Index.
    location String
    The location of the Code Repository Index, for example us-central1.
    repositories List<Property Map>
    Required. List of repositories to group Structure is documented below.
    repositoryGroupId String
    Required. Id of the Repository Group.
    labels Map<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 'effective_labels' for all of the labels present on the resource.
    project String

    Outputs

    All input properties are implicitly available as output properties. Additionally, the RepositoryGroup resource produces the following output properties:

    CreateTime string
    Output only. Create time stamp
    EffectiveLabels Dictionary<string, string>
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Immutable. Identifier. name of resource
    PulumiLabels Dictionary<string, string>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    UpdateTime string
    Output only. Update time stamp
    CreateTime string
    Output only. Create time stamp
    EffectiveLabels map[string]string
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Immutable. Identifier. name of resource
    PulumiLabels map[string]string
    The combination of labels configured directly on the resource and default labels configured on the provider.
    UpdateTime string
    Output only. Update time stamp
    createTime String
    Output only. Create time stamp
    effectiveLabels Map<String,String>
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Immutable. Identifier. name of resource
    pulumiLabels Map<String,String>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    updateTime String
    Output only. Update time stamp
    createTime string
    Output only. Create time stamp
    effectiveLabels {[key: string]: string}
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Immutable. Identifier. name of resource
    pulumiLabels {[key: string]: string}
    The combination of labels configured directly on the resource and default labels configured on the provider.
    updateTime string
    Output only. Update time stamp
    create_time str
    Output only. Create time stamp
    effective_labels Mapping[str, str]
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    Immutable. Identifier. name of resource
    pulumi_labels Mapping[str, str]
    The combination of labels configured directly on the resource and default labels configured on the provider.
    update_time str
    Output only. Update time stamp
    createTime String
    Output only. Create time stamp
    effectiveLabels Map<String>
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Immutable. Identifier. name of resource
    pulumiLabels Map<String>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    updateTime String
    Output only. Update time stamp

    Look up Existing RepositoryGroup Resource

    Get an existing RepositoryGroup resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: RepositoryGroupState, opts?: CustomResourceOptions): RepositoryGroup
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            code_repository_index: Optional[str] = None,
            create_time: Optional[str] = None,
            effective_labels: Optional[Mapping[str, str]] = None,
            labels: Optional[Mapping[str, str]] = None,
            location: Optional[str] = None,
            name: Optional[str] = None,
            project: Optional[str] = None,
            pulumi_labels: Optional[Mapping[str, str]] = None,
            repositories: Optional[Sequence[RepositoryGroupRepositoryArgs]] = None,
            repository_group_id: Optional[str] = None,
            update_time: Optional[str] = None) -> RepositoryGroup
    func GetRepositoryGroup(ctx *Context, name string, id IDInput, state *RepositoryGroupState, opts ...ResourceOption) (*RepositoryGroup, error)
    public static RepositoryGroup Get(string name, Input<string> id, RepositoryGroupState? state, CustomResourceOptions? opts = null)
    public static RepositoryGroup get(String name, Output<String> id, RepositoryGroupState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    CodeRepositoryIndex string
    Required. Id of the Code Repository Index.
    CreateTime string
    Output only. Create time stamp
    EffectiveLabels Dictionary<string, string>
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    Labels Dictionary<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 'effective_labels' for all of the labels present on the resource.
    Location string
    The location of the Code Repository Index, for example us-central1.
    Name string
    Immutable. Identifier. name of resource
    Project string
    PulumiLabels Dictionary<string, string>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    Repositories List<RepositoryGroupRepository>
    Required. List of repositories to group Structure is documented below.
    RepositoryGroupId string
    Required. Id of the Repository Group.
    UpdateTime string
    Output only. Update time stamp
    CodeRepositoryIndex string
    Required. Id of the Code Repository Index.
    CreateTime string
    Output only. Create time stamp
    EffectiveLabels map[string]string
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    Labels map[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 'effective_labels' for all of the labels present on the resource.
    Location string
    The location of the Code Repository Index, for example us-central1.
    Name string
    Immutable. Identifier. name of resource
    Project string
    PulumiLabels map[string]string
    The combination of labels configured directly on the resource and default labels configured on the provider.
    Repositories []RepositoryGroupRepositoryArgs
    Required. List of repositories to group Structure is documented below.
    RepositoryGroupId string
    Required. Id of the Repository Group.
    UpdateTime string
    Output only. Update time stamp
    codeRepositoryIndex String
    Required. Id of the Code Repository Index.
    createTime String
    Output only. Create time stamp
    effectiveLabels Map<String,String>
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    labels Map<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 'effective_labels' for all of the labels present on the resource.
    location String
    The location of the Code Repository Index, for example us-central1.
    name String
    Immutable. Identifier. name of resource
    project String
    pulumiLabels Map<String,String>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    repositories List<RepositoryGroupRepository>
    Required. List of repositories to group Structure is documented below.
    repositoryGroupId String
    Required. Id of the Repository Group.
    updateTime String
    Output only. Update time stamp
    codeRepositoryIndex string
    Required. Id of the Code Repository Index.
    createTime string
    Output only. Create time stamp
    effectiveLabels {[key: string]: string}
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    labels {[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 'effective_labels' for all of the labels present on the resource.
    location string
    The location of the Code Repository Index, for example us-central1.
    name string
    Immutable. Identifier. name of resource
    project string
    pulumiLabels {[key: string]: string}
    The combination of labels configured directly on the resource and default labels configured on the provider.
    repositories RepositoryGroupRepository[]
    Required. List of repositories to group Structure is documented below.
    repositoryGroupId string
    Required. Id of the Repository Group.
    updateTime string
    Output only. Update time stamp
    code_repository_index str
    Required. Id of the Code Repository Index.
    create_time str
    Output only. Create time stamp
    effective_labels Mapping[str, str]
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    labels Mapping[str, str]
    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 'effective_labels' for all of the labels present on the resource.
    location str
    The location of the Code Repository Index, for example us-central1.
    name str
    Immutable. Identifier. name of resource
    project str
    pulumi_labels Mapping[str, str]
    The combination of labels configured directly on the resource and default labels configured on the provider.
    repositories Sequence[RepositoryGroupRepositoryArgs]
    Required. List of repositories to group Structure is documented below.
    repository_group_id str
    Required. Id of the Repository Group.
    update_time str
    Output only. Update time stamp
    codeRepositoryIndex String
    Required. Id of the Code Repository Index.
    createTime String
    Output only. Create time stamp
    effectiveLabels Map<String>
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    labels Map<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 'effective_labels' for all of the labels present on the resource.
    location String
    The location of the Code Repository Index, for example us-central1.
    name String
    Immutable. Identifier. name of resource
    project String
    pulumiLabels Map<String>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    repositories List<Property Map>
    Required. List of repositories to group Structure is documented below.
    repositoryGroupId String
    Required. Id of the Repository Group.
    updateTime String
    Output only. Update time stamp

    Supporting Types

    RepositoryGroupRepository, RepositoryGroupRepositoryArgs

    BranchPattern string
    Required. The Git branch pattern used for indexing in RE2 syntax. See https://github.com/google/re2/wiki/syntax for syntax.


    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.


    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.


    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.


    resource string
    Required. The DeveloperConnect repository full resource name, relative resource name or resource URL to be indexed.
    branch_pattern str
    Required. The Git branch pattern used for indexing in RE2 syntax. See https://github.com/google/re2/wiki/syntax for syntax.


    resource str
    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.


    resource String
    Required. The DeveloperConnect repository full resource name, relative resource name or resource URL to be indexed.

    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:

    $ pulumi import gcp:gemini/repositoryGroup:RepositoryGroup default projects/{{project}}/locations/{{location}}/codeRepositoryIndexes/{{code_repository_index}}/repositoryGroups/{{repository_group_id}}
    
    $ pulumi import gcp:gemini/repositoryGroup:RepositoryGroup default {{project}}/{{location}}/{{code_repository_index}}/{{repository_group_id}}
    
    $ pulumi import gcp:gemini/repositoryGroup:RepositoryGroup default {{location}}/{{code_repository_index}}/{{repository_group_id}}
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Google Cloud (GCP) Classic pulumi/pulumi-gcp
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the google-beta Terraform Provider.
    gcp logo
    Google Cloud v8.14.0 published on Wednesday, Jan 15, 2025 by Pulumi