1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. securesourcemanager
  5. Repository
Google Cloud Classic v8.9.3 published on Monday, Nov 18, 2024 by Pulumi

gcp.securesourcemanager.Repository

Explore with Pulumi AI

gcp logo
Google Cloud Classic v8.9.3 published on Monday, Nov 18, 2024 by Pulumi

    Repositories store source code. It supports all Git SCM client commands and has built-in pull requests and issue tracking. Both HTTPS and SSH authentication are supported.

    To get more information about Repository, see:

    Example Usage

    Secure Source Manager Repository Basic

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const instance = new gcp.securesourcemanager.Instance("instance", {
        location: "us-central1",
        instanceId: "my-instance",
    });
    const _default = new gcp.securesourcemanager.Repository("default", {
        location: "us-central1",
        repositoryId: "my-repository",
        instance: instance.name,
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    instance = gcp.securesourcemanager.Instance("instance",
        location="us-central1",
        instance_id="my-instance")
    default = gcp.securesourcemanager.Repository("default",
        location="us-central1",
        repository_id="my-repository",
        instance=instance.name)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/securesourcemanager"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		instance, err := securesourcemanager.NewInstance(ctx, "instance", &securesourcemanager.InstanceArgs{
    			Location:   pulumi.String("us-central1"),
    			InstanceId: pulumi.String("my-instance"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = securesourcemanager.NewRepository(ctx, "default", &securesourcemanager.RepositoryArgs{
    			Location:     pulumi.String("us-central1"),
    			RepositoryId: pulumi.String("my-repository"),
    			Instance:     instance.Name,
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    
    return await Deployment.RunAsync(() => 
    {
        var instance = new Gcp.SecureSourceManager.Instance("instance", new()
        {
            Location = "us-central1",
            InstanceId = "my-instance",
        });
    
        var @default = new Gcp.SecureSourceManager.Repository("default", new()
        {
            Location = "us-central1",
            RepositoryId = "my-repository",
            Instance = instance.Name,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.securesourcemanager.Instance;
    import com.pulumi.gcp.securesourcemanager.InstanceArgs;
    import com.pulumi.gcp.securesourcemanager.Repository;
    import com.pulumi.gcp.securesourcemanager.RepositoryArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var instance = new Instance("instance", InstanceArgs.builder()
                .location("us-central1")
                .instanceId("my-instance")
                .build());
    
            var default_ = new Repository("default", RepositoryArgs.builder()
                .location("us-central1")
                .repositoryId("my-repository")
                .instance(instance.name())
                .build());
    
        }
    }
    
    resources:
      instance:
        type: gcp:securesourcemanager:Instance
        properties:
          location: us-central1
          instanceId: my-instance
      default:
        type: gcp:securesourcemanager:Repository
        properties:
          location: us-central1
          repositoryId: my-repository
          instance: ${instance.name}
    

    Secure Source Manager Repository Initial Config

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const instance = new gcp.securesourcemanager.Instance("instance", {
        location: "us-central1",
        instanceId: "my-instance",
    });
    const _default = new gcp.securesourcemanager.Repository("default", {
        location: "us-central1",
        repositoryId: "my-repository",
        instance: instance.name,
        description: "This is a test repository",
        initialConfig: {
            defaultBranch: "main",
            gitignores: ["python"],
            license: "mit",
            readme: "default",
        },
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    instance = gcp.securesourcemanager.Instance("instance",
        location="us-central1",
        instance_id="my-instance")
    default = gcp.securesourcemanager.Repository("default",
        location="us-central1",
        repository_id="my-repository",
        instance=instance.name,
        description="This is a test repository",
        initial_config={
            "default_branch": "main",
            "gitignores": ["python"],
            "license": "mit",
            "readme": "default",
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/securesourcemanager"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		instance, err := securesourcemanager.NewInstance(ctx, "instance", &securesourcemanager.InstanceArgs{
    			Location:   pulumi.String("us-central1"),
    			InstanceId: pulumi.String("my-instance"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = securesourcemanager.NewRepository(ctx, "default", &securesourcemanager.RepositoryArgs{
    			Location:     pulumi.String("us-central1"),
    			RepositoryId: pulumi.String("my-repository"),
    			Instance:     instance.Name,
    			Description:  pulumi.String("This is a test repository"),
    			InitialConfig: &securesourcemanager.RepositoryInitialConfigArgs{
    				DefaultBranch: pulumi.String("main"),
    				Gitignores: pulumi.StringArray{
    					pulumi.String("python"),
    				},
    				License: pulumi.String("mit"),
    				Readme:  pulumi.String("default"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    
    return await Deployment.RunAsync(() => 
    {
        var instance = new Gcp.SecureSourceManager.Instance("instance", new()
        {
            Location = "us-central1",
            InstanceId = "my-instance",
        });
    
        var @default = new Gcp.SecureSourceManager.Repository("default", new()
        {
            Location = "us-central1",
            RepositoryId = "my-repository",
            Instance = instance.Name,
            Description = "This is a test repository",
            InitialConfig = new Gcp.SecureSourceManager.Inputs.RepositoryInitialConfigArgs
            {
                DefaultBranch = "main",
                Gitignores = new[]
                {
                    "python",
                },
                License = "mit",
                Readme = "default",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.securesourcemanager.Instance;
    import com.pulumi.gcp.securesourcemanager.InstanceArgs;
    import com.pulumi.gcp.securesourcemanager.Repository;
    import com.pulumi.gcp.securesourcemanager.RepositoryArgs;
    import com.pulumi.gcp.securesourcemanager.inputs.RepositoryInitialConfigArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var instance = new Instance("instance", InstanceArgs.builder()
                .location("us-central1")
                .instanceId("my-instance")
                .build());
    
            var default_ = new Repository("default", RepositoryArgs.builder()
                .location("us-central1")
                .repositoryId("my-repository")
                .instance(instance.name())
                .description("This is a test repository")
                .initialConfig(RepositoryInitialConfigArgs.builder()
                    .defaultBranch("main")
                    .gitignores("python")
                    .license("mit")
                    .readme("default")
                    .build())
                .build());
    
        }
    }
    
    resources:
      instance:
        type: gcp:securesourcemanager:Instance
        properties:
          location: us-central1
          instanceId: my-instance
      default:
        type: gcp:securesourcemanager:Repository
        properties:
          location: us-central1
          repositoryId: my-repository
          instance: ${instance.name}
          description: This is a test repository
          initialConfig:
            defaultBranch: main
            gitignores:
              - python
            license: mit
            readme: default
    

    Create Repository Resource

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

    Constructor syntax

    new Repository(name: string, args: RepositoryArgs, opts?: CustomResourceOptions);
    @overload
    def Repository(resource_name: str,
                   args: RepositoryArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def Repository(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   instance: Optional[str] = None,
                   location: Optional[str] = None,
                   repository_id: Optional[str] = None,
                   description: Optional[str] = None,
                   initial_config: Optional[RepositoryInitialConfigArgs] = None,
                   project: Optional[str] = None)
    func NewRepository(ctx *Context, name string, args RepositoryArgs, opts ...ResourceOption) (*Repository, error)
    public Repository(string name, RepositoryArgs args, CustomResourceOptions? opts = null)
    public Repository(String name, RepositoryArgs args)
    public Repository(String name, RepositoryArgs args, CustomResourceOptions options)
    
    type: gcp:securesourcemanager:Repository
    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 RepositoryArgs
    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 RepositoryArgs
    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 RepositoryArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RepositoryArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RepositoryArgs
    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 examplerepositoryResourceResourceFromSecuresourcemanagerrepository = new Gcp.SecureSourceManager.Repository("examplerepositoryResourceResourceFromSecuresourcemanagerrepository", new()
    {
        Instance = "string",
        Location = "string",
        RepositoryId = "string",
        Description = "string",
        InitialConfig = new Gcp.SecureSourceManager.Inputs.RepositoryInitialConfigArgs
        {
            DefaultBranch = "string",
            Gitignores = new[]
            {
                "string",
            },
            License = "string",
            Readme = "string",
        },
        Project = "string",
    });
    
    example, err := securesourcemanager.NewRepository(ctx, "examplerepositoryResourceResourceFromSecuresourcemanagerrepository", &securesourcemanager.RepositoryArgs{
    	Instance:     pulumi.String("string"),
    	Location:     pulumi.String("string"),
    	RepositoryId: pulumi.String("string"),
    	Description:  pulumi.String("string"),
    	InitialConfig: &securesourcemanager.RepositoryInitialConfigArgs{
    		DefaultBranch: pulumi.String("string"),
    		Gitignores: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		License: pulumi.String("string"),
    		Readme:  pulumi.String("string"),
    	},
    	Project: pulumi.String("string"),
    })
    
    var examplerepositoryResourceResourceFromSecuresourcemanagerrepository = new Repository("examplerepositoryResourceResourceFromSecuresourcemanagerrepository", RepositoryArgs.builder()
        .instance("string")
        .location("string")
        .repositoryId("string")
        .description("string")
        .initialConfig(RepositoryInitialConfigArgs.builder()
            .defaultBranch("string")
            .gitignores("string")
            .license("string")
            .readme("string")
            .build())
        .project("string")
        .build());
    
    examplerepository_resource_resource_from_securesourcemanagerrepository = gcp.securesourcemanager.Repository("examplerepositoryResourceResourceFromSecuresourcemanagerrepository",
        instance="string",
        location="string",
        repository_id="string",
        description="string",
        initial_config={
            "default_branch": "string",
            "gitignores": ["string"],
            "license": "string",
            "readme": "string",
        },
        project="string")
    
    const examplerepositoryResourceResourceFromSecuresourcemanagerrepository = new gcp.securesourcemanager.Repository("examplerepositoryResourceResourceFromSecuresourcemanagerrepository", {
        instance: "string",
        location: "string",
        repositoryId: "string",
        description: "string",
        initialConfig: {
            defaultBranch: "string",
            gitignores: ["string"],
            license: "string",
            readme: "string",
        },
        project: "string",
    });
    
    type: gcp:securesourcemanager:Repository
    properties:
        description: string
        initialConfig:
            defaultBranch: string
            gitignores:
                - string
            license: string
            readme: string
        instance: string
        location: string
        project: string
        repositoryId: string
    

    Repository 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 Repository resource accepts the following input properties:

    Instance string
    The name of the instance in which the repository is hosted.
    Location string
    The location for the Repository.
    RepositoryId string
    The ID for the Repository.


    Description string
    Description of the repository, which cannot exceed 500 characters.
    InitialConfig RepositoryInitialConfig
    Initial configurations for the repository. Structure is documented below.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    Instance string
    The name of the instance in which the repository is hosted.
    Location string
    The location for the Repository.
    RepositoryId string
    The ID for the Repository.


    Description string
    Description of the repository, which cannot exceed 500 characters.
    InitialConfig RepositoryInitialConfigArgs
    Initial configurations for the repository. Structure is documented below.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    instance String
    The name of the instance in which the repository is hosted.
    location String
    The location for the Repository.
    repositoryId String
    The ID for the Repository.


    description String
    Description of the repository, which cannot exceed 500 characters.
    initialConfig RepositoryInitialConfig
    Initial configurations for the repository. Structure is documented below.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    instance string
    The name of the instance in which the repository is hosted.
    location string
    The location for the Repository.
    repositoryId string
    The ID for the Repository.


    description string
    Description of the repository, which cannot exceed 500 characters.
    initialConfig RepositoryInitialConfig
    Initial configurations for the repository. Structure is documented below.
    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    instance str
    The name of the instance in which the repository is hosted.
    location str
    The location for the Repository.
    repository_id str
    The ID for the Repository.


    description str
    Description of the repository, which cannot exceed 500 characters.
    initial_config RepositoryInitialConfigArgs
    Initial configurations for the repository. Structure is documented below.
    project str
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    instance String
    The name of the instance in which the repository is hosted.
    location String
    The location for the Repository.
    repositoryId String
    The ID for the Repository.


    description String
    Description of the repository, which cannot exceed 500 characters.
    initialConfig Property Map
    Initial configurations for the repository. Structure is documented below.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    Outputs

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

    CreateTime string
    Time the repository was created in UTC.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The resource name for the Repository.
    Uid string
    Unique identifier of the repository.
    UpdateTime string
    Time the repository was updated in UTC.
    Uris List<RepositoryUri>
    URIs for the repository. Structure is documented below.
    CreateTime string
    Time the repository was created in UTC.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The resource name for the Repository.
    Uid string
    Unique identifier of the repository.
    UpdateTime string
    Time the repository was updated in UTC.
    Uris []RepositoryUri
    URIs for the repository. Structure is documented below.
    createTime String
    Time the repository was created in UTC.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The resource name for the Repository.
    uid String
    Unique identifier of the repository.
    updateTime String
    Time the repository was updated in UTC.
    uris List<RepositoryUri>
    URIs for the repository. Structure is documented below.
    createTime string
    Time the repository was created in UTC.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The resource name for the Repository.
    uid string
    Unique identifier of the repository.
    updateTime string
    Time the repository was updated in UTC.
    uris RepositoryUri[]
    URIs for the repository. Structure is documented below.
    create_time str
    Time the repository was created in UTC.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The resource name for the Repository.
    uid str
    Unique identifier of the repository.
    update_time str
    Time the repository was updated in UTC.
    uris Sequence[RepositoryUri]
    URIs for the repository. Structure is documented below.
    createTime String
    Time the repository was created in UTC.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The resource name for the Repository.
    uid String
    Unique identifier of the repository.
    updateTime String
    Time the repository was updated in UTC.
    uris List<Property Map>
    URIs for the repository. Structure is documented below.

    Look up Existing Repository Resource

    Get an existing Repository 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?: RepositoryState, opts?: CustomResourceOptions): Repository
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            create_time: Optional[str] = None,
            description: Optional[str] = None,
            initial_config: Optional[RepositoryInitialConfigArgs] = None,
            instance: Optional[str] = None,
            location: Optional[str] = None,
            name: Optional[str] = None,
            project: Optional[str] = None,
            repository_id: Optional[str] = None,
            uid: Optional[str] = None,
            update_time: Optional[str] = None,
            uris: Optional[Sequence[RepositoryUriArgs]] = None) -> Repository
    func GetRepository(ctx *Context, name string, id IDInput, state *RepositoryState, opts ...ResourceOption) (*Repository, error)
    public static Repository Get(string name, Input<string> id, RepositoryState? state, CustomResourceOptions? opts = null)
    public static Repository get(String name, Output<String> id, RepositoryState 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:
    CreateTime string
    Time the repository was created in UTC.
    Description string
    Description of the repository, which cannot exceed 500 characters.
    InitialConfig RepositoryInitialConfig
    Initial configurations for the repository. Structure is documented below.
    Instance string
    The name of the instance in which the repository is hosted.
    Location string
    The location for the Repository.
    Name string
    The resource name for the Repository.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    RepositoryId string
    The ID for the Repository.


    Uid string
    Unique identifier of the repository.
    UpdateTime string
    Time the repository was updated in UTC.
    Uris List<RepositoryUri>
    URIs for the repository. Structure is documented below.
    CreateTime string
    Time the repository was created in UTC.
    Description string
    Description of the repository, which cannot exceed 500 characters.
    InitialConfig RepositoryInitialConfigArgs
    Initial configurations for the repository. Structure is documented below.
    Instance string
    The name of the instance in which the repository is hosted.
    Location string
    The location for the Repository.
    Name string
    The resource name for the Repository.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    RepositoryId string
    The ID for the Repository.


    Uid string
    Unique identifier of the repository.
    UpdateTime string
    Time the repository was updated in UTC.
    Uris []RepositoryUriArgs
    URIs for the repository. Structure is documented below.
    createTime String
    Time the repository was created in UTC.
    description String
    Description of the repository, which cannot exceed 500 characters.
    initialConfig RepositoryInitialConfig
    Initial configurations for the repository. Structure is documented below.
    instance String
    The name of the instance in which the repository is hosted.
    location String
    The location for the Repository.
    name String
    The resource name for the Repository.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    repositoryId String
    The ID for the Repository.


    uid String
    Unique identifier of the repository.
    updateTime String
    Time the repository was updated in UTC.
    uris List<RepositoryUri>
    URIs for the repository. Structure is documented below.
    createTime string
    Time the repository was created in UTC.
    description string
    Description of the repository, which cannot exceed 500 characters.
    initialConfig RepositoryInitialConfig
    Initial configurations for the repository. Structure is documented below.
    instance string
    The name of the instance in which the repository is hosted.
    location string
    The location for the Repository.
    name string
    The resource name for the Repository.
    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    repositoryId string
    The ID for the Repository.


    uid string
    Unique identifier of the repository.
    updateTime string
    Time the repository was updated in UTC.
    uris RepositoryUri[]
    URIs for the repository. Structure is documented below.
    create_time str
    Time the repository was created in UTC.
    description str
    Description of the repository, which cannot exceed 500 characters.
    initial_config RepositoryInitialConfigArgs
    Initial configurations for the repository. Structure is documented below.
    instance str
    The name of the instance in which the repository is hosted.
    location str
    The location for the Repository.
    name str
    The resource name for the Repository.
    project str
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    repository_id str
    The ID for the Repository.


    uid str
    Unique identifier of the repository.
    update_time str
    Time the repository was updated in UTC.
    uris Sequence[RepositoryUriArgs]
    URIs for the repository. Structure is documented below.
    createTime String
    Time the repository was created in UTC.
    description String
    Description of the repository, which cannot exceed 500 characters.
    initialConfig Property Map
    Initial configurations for the repository. Structure is documented below.
    instance String
    The name of the instance in which the repository is hosted.
    location String
    The location for the Repository.
    name String
    The resource name for the Repository.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    repositoryId String
    The ID for the Repository.


    uid String
    Unique identifier of the repository.
    updateTime String
    Time the repository was updated in UTC.
    uris List<Property Map>
    URIs for the repository. Structure is documented below.

    Supporting Types

    RepositoryInitialConfig, RepositoryInitialConfigArgs

    DefaultBranch string
    Default branch name of the repository.
    Gitignores List<string>
    List of gitignore template names user can choose from. Valid values can be viewed at https://cloud.google.com/secure-source-manager/docs/reference/rest/v1/projects.locations.repositories#initialconfig.
    License string
    License template name user can choose from. Valid values can be viewed at https://cloud.google.com/secure-source-manager/docs/reference/rest/v1/projects.locations.repositories#initialconfig.
    Readme string
    README template name. Valid values can be viewed at https://cloud.google.com/secure-source-manager/docs/reference/rest/v1/projects.locations.repositories#initialconfig.
    DefaultBranch string
    Default branch name of the repository.
    Gitignores []string
    List of gitignore template names user can choose from. Valid values can be viewed at https://cloud.google.com/secure-source-manager/docs/reference/rest/v1/projects.locations.repositories#initialconfig.
    License string
    License template name user can choose from. Valid values can be viewed at https://cloud.google.com/secure-source-manager/docs/reference/rest/v1/projects.locations.repositories#initialconfig.
    Readme string
    README template name. Valid values can be viewed at https://cloud.google.com/secure-source-manager/docs/reference/rest/v1/projects.locations.repositories#initialconfig.
    defaultBranch String
    Default branch name of the repository.
    gitignores List<String>
    List of gitignore template names user can choose from. Valid values can be viewed at https://cloud.google.com/secure-source-manager/docs/reference/rest/v1/projects.locations.repositories#initialconfig.
    license String
    License template name user can choose from. Valid values can be viewed at https://cloud.google.com/secure-source-manager/docs/reference/rest/v1/projects.locations.repositories#initialconfig.
    readme String
    README template name. Valid values can be viewed at https://cloud.google.com/secure-source-manager/docs/reference/rest/v1/projects.locations.repositories#initialconfig.
    defaultBranch string
    Default branch name of the repository.
    gitignores string[]
    List of gitignore template names user can choose from. Valid values can be viewed at https://cloud.google.com/secure-source-manager/docs/reference/rest/v1/projects.locations.repositories#initialconfig.
    license string
    License template name user can choose from. Valid values can be viewed at https://cloud.google.com/secure-source-manager/docs/reference/rest/v1/projects.locations.repositories#initialconfig.
    readme string
    README template name. Valid values can be viewed at https://cloud.google.com/secure-source-manager/docs/reference/rest/v1/projects.locations.repositories#initialconfig.
    default_branch str
    Default branch name of the repository.
    gitignores Sequence[str]
    List of gitignore template names user can choose from. Valid values can be viewed at https://cloud.google.com/secure-source-manager/docs/reference/rest/v1/projects.locations.repositories#initialconfig.
    license str
    License template name user can choose from. Valid values can be viewed at https://cloud.google.com/secure-source-manager/docs/reference/rest/v1/projects.locations.repositories#initialconfig.
    readme str
    README template name. Valid values can be viewed at https://cloud.google.com/secure-source-manager/docs/reference/rest/v1/projects.locations.repositories#initialconfig.
    defaultBranch String
    Default branch name of the repository.
    gitignores List<String>
    List of gitignore template names user can choose from. Valid values can be viewed at https://cloud.google.com/secure-source-manager/docs/reference/rest/v1/projects.locations.repositories#initialconfig.
    license String
    License template name user can choose from. Valid values can be viewed at https://cloud.google.com/secure-source-manager/docs/reference/rest/v1/projects.locations.repositories#initialconfig.
    readme String
    README template name. Valid values can be viewed at https://cloud.google.com/secure-source-manager/docs/reference/rest/v1/projects.locations.repositories#initialconfig.

    RepositoryUri, RepositoryUriArgs

    Api string
    (Output) API is the URI for API access.
    GitHttps string
    (Output) git_https is the git HTTPS URI for git operations.
    Html string
    (Output) HTML is the URI for the user to view the repository in a browser.
    Api string
    (Output) API is the URI for API access.
    GitHttps string
    (Output) git_https is the git HTTPS URI for git operations.
    Html string
    (Output) HTML is the URI for the user to view the repository in a browser.
    api String
    (Output) API is the URI for API access.
    gitHttps String
    (Output) git_https is the git HTTPS URI for git operations.
    html String
    (Output) HTML is the URI for the user to view the repository in a browser.
    api string
    (Output) API is the URI for API access.
    gitHttps string
    (Output) git_https is the git HTTPS URI for git operations.
    html string
    (Output) HTML is the URI for the user to view the repository in a browser.
    api str
    (Output) API is the URI for API access.
    git_https str
    (Output) git_https is the git HTTPS URI for git operations.
    html str
    (Output) HTML is the URI for the user to view the repository in a browser.
    api String
    (Output) API is the URI for API access.
    gitHttps String
    (Output) git_https is the git HTTPS URI for git operations.
    html String
    (Output) HTML is the URI for the user to view the repository in a browser.

    Import

    Repository can be imported using any of these accepted formats:

    • projects/{{project}}/locations/{{location}}/repositories/{{repository_id}}

    • {{project}}/{{location}}/{{repository_id}}

    • {{location}}/{{repository_id}}

    • {{repository_id}}

    When using the pulumi import command, Repository can be imported using one of the formats above. For example:

    $ pulumi import gcp:securesourcemanager/repository:Repository default projects/{{project}}/locations/{{location}}/repositories/{{repository_id}}
    
    $ pulumi import gcp:securesourcemanager/repository:Repository default {{project}}/{{location}}/{{repository_id}}
    
    $ pulumi import gcp:securesourcemanager/repository:Repository default {{location}}/{{repository_id}}
    
    $ pulumi import gcp:securesourcemanager/repository:Repository default {{repository_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 Classic v8.9.3 published on Monday, Nov 18, 2024 by Pulumi