1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. securesourcemanager
  5. Repository
Google Cloud v8.25.0 published on Thursday, Apr 3, 2025 by Pulumi

gcp.securesourcemanager.Repository

Explore with Pulumi AI

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,
});
Copy
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)
Copy
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
	})
}
Copy
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,
    });

});
Copy
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());

    }
}
Copy
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}
Copy

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",
    },
});
Copy
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",
    })
Copy
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
	})
}
Copy
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",
        },
    });

});
Copy
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());

    }
}
Copy
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
Copy

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 This property is required. string
The unique name of the resource.
args This property is required. RepositoryArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. RepositoryArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. RepositoryArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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",
});
Copy
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"),
})
Copy
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());
Copy
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")
Copy
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",
});
Copy
type: gcp:securesourcemanager:Repository
properties:
    description: string
    initialConfig:
        defaultBranch: string
        gitignores:
            - string
        license: string
        readme: string
    instance: string
    location: string
    project: string
    repositoryId: string
Copy

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
This property is required.
Changes to this property will trigger replacement.
string
The name of the instance in which the repository is hosted.
Location
This property is required.
Changes to this property will trigger replacement.
string
The location for the Repository.
RepositoryId
This property is required.
Changes to this property will trigger replacement.
string
The ID for the Repository.


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


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


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


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


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


description Changes to this property will trigger replacement. String
Description of the repository, which cannot exceed 500 characters.
initialConfig Changes to this property will trigger replacement. Property Map
Initial configurations for the repository. Structure is documented below.
project Changes to this property will trigger replacement. 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)
resources:  _:    type: gcp:securesourcemanager:Repository    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 Changes to this property will trigger replacement. string
Description of the repository, which cannot exceed 500 characters.
InitialConfig Changes to this property will trigger replacement. RepositoryInitialConfig
Initial configurations for the repository. Structure is documented below.
Instance Changes to this property will trigger replacement. string
The name of the instance in which the repository is hosted.
Location Changes to this property will trigger replacement. string
The location for the Repository.
Name string
The resource name for the Repository.
Project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
RepositoryId Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
Description of the repository, which cannot exceed 500 characters.
InitialConfig Changes to this property will trigger replacement. RepositoryInitialConfigArgs
Initial configurations for the repository. Structure is documented below.
Instance Changes to this property will trigger replacement. string
The name of the instance in which the repository is hosted.
Location Changes to this property will trigger replacement. string
The location for the Repository.
Name string
The resource name for the Repository.
Project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
RepositoryId Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. String
Description of the repository, which cannot exceed 500 characters.
initialConfig Changes to this property will trigger replacement. RepositoryInitialConfig
Initial configurations for the repository. Structure is documented below.
instance Changes to this property will trigger replacement. String
The name of the instance in which the repository is hosted.
location Changes to this property will trigger replacement. String
The location for the Repository.
name String
The resource name for the Repository.
project Changes to this property will trigger replacement. String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
repositoryId Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
Description of the repository, which cannot exceed 500 characters.
initialConfig Changes to this property will trigger replacement. RepositoryInitialConfig
Initial configurations for the repository. Structure is documented below.
instance Changes to this property will trigger replacement. string
The name of the instance in which the repository is hosted.
location Changes to this property will trigger replacement. string
The location for the Repository.
name string
The resource name for the Repository.
project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
repositoryId Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. str
Description of the repository, which cannot exceed 500 characters.
initial_config Changes to this property will trigger replacement. RepositoryInitialConfigArgs
Initial configurations for the repository. Structure is documented below.
instance Changes to this property will trigger replacement. str
The name of the instance in which the repository is hosted.
location Changes to this property will trigger replacement. str
The location for the Repository.
name str
The resource name for the Repository.
project Changes to this property will trigger replacement. str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
repository_id Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. String
Description of the repository, which cannot exceed 500 characters.
initialConfig Changes to this property will trigger replacement. Property Map
Initial configurations for the repository. Structure is documented below.
instance Changes to this property will trigger replacement. String
The name of the instance in which the repository is hosted.
location Changes to this property will trigger replacement. String
The location for the Repository.
name String
The resource name for the Repository.
project Changes to this property will trigger replacement. String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
repositoryId Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
Default branch name of the repository.
Gitignores Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
Default branch name of the repository.
Gitignores Changes to this property will trigger replacement. []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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. String
Default branch name of the repository.
gitignores Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
Default branch name of the repository.
gitignores Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. str
Default branch name of the repository.
gitignores Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. String
Default branch name of the repository.
gitignores Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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}}
Copy
$ pulumi import gcp:securesourcemanager/repository:Repository default {{project}}/{{location}}/{{repository_id}}
Copy
$ pulumi import gcp:securesourcemanager/repository:Repository default {{location}}/{{repository_id}}
Copy
$ pulumi import gcp:securesourcemanager/repository:Repository default {{repository_id}}
Copy

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.