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:
- API documentation
- How-to Guides
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
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",
});
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
This property is required. Changes to this property will trigger replacement.
- The name of the instance in which the repository is hosted.
- Location
This property is required. Changes to this property will trigger replacement.
- The location for the Repository.
- Repository
Id This property is required. Changes to this property will trigger replacement.
- The ID for the Repository.
- Description
Changes to this property will trigger replacement.
- Description of the repository, which cannot exceed 500 characters.
- Initial
Config Changes to this property will trigger replacement.
Initial Config - Initial configurations for the repository. Structure is documented below.
- Project
Changes to this property will trigger replacement.
- 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.
- The name of the instance in which the repository is hosted.
- Location
This property is required. Changes to this property will trigger replacement.
- The location for the Repository.
- Repository
Id This property is required. Changes to this property will trigger replacement.
- The ID for the Repository.
- Description
Changes to this property will trigger replacement.
- Description of the repository, which cannot exceed 500 characters.
- Initial
Config Changes to this property will trigger replacement.
Initial Config Args - Initial configurations for the repository. Structure is documented below.
- Project
Changes to this property will trigger replacement.
- 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.
- The name of the instance in which the repository is hosted.
- location
This property is required. Changes to this property will trigger replacement.
- The location for the Repository.
- repository
Id This property is required. Changes to this property will trigger replacement.
- The ID for the Repository.
- description
Changes to this property will trigger replacement.
- Description of the repository, which cannot exceed 500 characters.
- initial
Config Changes to this property will trigger replacement.
Initial Config - Initial configurations for the repository. Structure is documented below.
- project
Changes to this property will trigger replacement.
- 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.
- The name of the instance in which the repository is hosted.
- location
This property is required. Changes to this property will trigger replacement.
- The location for the Repository.
- repository
Id This property is required. Changes to this property will trigger replacement.
- The ID for the Repository.
- description
Changes to this property will trigger replacement.
- Description of the repository, which cannot exceed 500 characters.
- initial
Config Changes to this property will trigger replacement.
Initial Config - Initial configurations for the repository. Structure is documented below.
- project
Changes to this property will trigger replacement.
- 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.
- The name of the instance in which the repository is hosted.
- location
This property is required. Changes to this property will trigger replacement.
- The location for the Repository.
- repository_
id This property is required. Changes to this property will trigger replacement.
- The ID for the Repository.
- description
Changes to this property will trigger replacement.
- Description of the repository, which cannot exceed 500 characters.
- initial_
config Changes to this property will trigger replacement.
Initial Config Args - Initial configurations for the repository. Structure is documented below.
- project
Changes to this property will trigger replacement.
- 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.
- The name of the instance in which the repository is hosted.
- location
This property is required. Changes to this property will trigger replacement.
- The location for the Repository.
- repository
Id This property is required. Changes to this property will trigger replacement.
- The ID for the Repository.
- description
Changes to this property will trigger replacement.
- Description of the repository, which cannot exceed 500 characters.
- initial
Config Changes to this property will trigger replacement.
- Initial configurations for the repository. Structure is documented below.
- project
Changes to this property will trigger replacement.
- 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:
- Create
Time 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.
- Update
Time string - Time the repository was updated in UTC.
- Uris
List<Repository
Uri> - URIs for the repository. Structure is documented below.
- Create
Time 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.
- Update
Time string - Time the repository was updated in UTC.
- Uris
[]Repository
Uri - URIs for the repository. Structure is documented below.
- create
Time 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.
- update
Time String - Time the repository was updated in UTC.
- uris
List<Repository
Uri> - URIs for the repository. Structure is documented below.
- create
Time 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.
- update
Time string - Time the repository was updated in UTC.
- uris
Repository
Uri[] - 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[Repository
Uri] - URIs for the repository. Structure is documented below.
- create
Time 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.
- update
Time 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.
- Create
Time string - Time the repository was created in UTC.
- Description
Changes to this property will trigger replacement.
- Description of the repository, which cannot exceed 500 characters.
- Initial
Config Changes to this property will trigger replacement.
Initial Config - Initial configurations for the repository. Structure is documented below.
- Instance
Changes to this property will trigger replacement.
- The name of the instance in which the repository is hosted.
- Location
Changes to this property will trigger replacement.
- The location for the Repository.
- Name string
- The resource name for the Repository.
- Project
Changes to this property will trigger replacement.
- 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.
- The ID for the Repository.
- Uid string
- Unique identifier of the repository.
- Update
Time string - Time the repository was updated in UTC.
- Uris
List<Repository
Uri> - URIs for the repository. Structure is documented below.
- Create
Time string - Time the repository was created in UTC.
- Description
Changes to this property will trigger replacement.
- Description of the repository, which cannot exceed 500 characters.
- Initial
Config Changes to this property will trigger replacement.
Initial Config Args - Initial configurations for the repository. Structure is documented below.
- Instance
Changes to this property will trigger replacement.
- The name of the instance in which the repository is hosted.
- Location
Changes to this property will trigger replacement.
- The location for the Repository.
- Name string
- The resource name for the Repository.
- Project
Changes to this property will trigger replacement.
- 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.
- The ID for the Repository.
- Uid string
- Unique identifier of the repository.
- Update
Time string - Time the repository was updated in UTC.
- Uris
[]Repository
Uri Args - URIs for the repository. Structure is documented below.
- create
Time String - Time the repository was created in UTC.
- description
Changes to this property will trigger replacement.
- Description of the repository, which cannot exceed 500 characters.
- initial
Config Changes to this property will trigger replacement.
Initial Config - Initial configurations for the repository. Structure is documented below.
- instance
Changes to this property will trigger replacement.
- The name of the instance in which the repository is hosted.
- location
Changes to this property will trigger replacement.
- The location for the Repository.
- name String
- The resource name for the Repository.
- project
Changes to this property will trigger replacement.
- 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.
- The ID for the Repository.
- uid String
- Unique identifier of the repository.
- update
Time String - Time the repository was updated in UTC.
- uris
List<Repository
Uri> - URIs for the repository. Structure is documented below.
- create
Time string - Time the repository was created in UTC.
- description
Changes to this property will trigger replacement.
- Description of the repository, which cannot exceed 500 characters.
- initial
Config Changes to this property will trigger replacement.
Initial Config - Initial configurations for the repository. Structure is documented below.
- instance
Changes to this property will trigger replacement.
- The name of the instance in which the repository is hosted.
- location
Changes to this property will trigger replacement.
- The location for the Repository.
- name string
- The resource name for the Repository.
- project
Changes to this property will trigger replacement.
- 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.
- The ID for the Repository.
- uid string
- Unique identifier of the repository.
- update
Time string - Time the repository was updated in UTC.
- uris
Repository
Uri[] - 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.
- Description of the repository, which cannot exceed 500 characters.
- initial_
config Changes to this property will trigger replacement.
Initial Config Args - Initial configurations for the repository. Structure is documented below.
- instance
Changes to this property will trigger replacement.
- The name of the instance in which the repository is hosted.
- location
Changes to this property will trigger replacement.
- The location for the Repository.
- name str
- The resource name for the Repository.
- project
Changes to this property will trigger replacement.
- 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.
- The ID for the Repository.
- uid str
- Unique identifier of the repository.
- update_
time str - Time the repository was updated in UTC.
- uris
Sequence[Repository
Uri Args] - URIs for the repository. Structure is documented below.
- create
Time String - Time the repository was created in UTC.
- description
Changes to this property will trigger replacement.
- Description of the repository, which cannot exceed 500 characters.
- initial
Config Changes to this property will trigger replacement.
- Initial configurations for the repository. Structure is documented below.
- instance
Changes to this property will trigger replacement.
- The name of the instance in which the repository is hosted.
- location
Changes to this property will trigger replacement.
- The location for the Repository.
- name String
- The resource name for the Repository.
- project
Changes to this property will trigger replacement.
- 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.
- The ID for the Repository.
- uid String
- Unique identifier of the repository.
- update
Time String - Time the repository was updated in UTC.
- uris List<Property Map>
- URIs for the repository. Structure is documented below.
Supporting Types
RepositoryInitialConfig, RepositoryInitialConfigArgs
- Default
Branch Changes to this property will trigger replacement.
- Default branch name of the repository.
- Gitignores
Changes to this property will trigger replacement.
- 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.
- 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.
- 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.
- Default branch name of the repository.
- Gitignores
Changes to this property will trigger replacement.
- 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.
- 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.
- 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.
- Default branch name of the repository.
- gitignores
Changes to this property will trigger replacement.
- 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.
- 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.
- 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.
- Default branch name of the repository.
- gitignores
Changes to this property will trigger replacement.
- 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.
- 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.
- 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.
- Default branch name of the repository.
- gitignores
Changes to this property will trigger replacement.
- 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.
- 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.
- 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.
- Default branch name of the repository.
- gitignores
Changes to this property will trigger replacement.
- 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.
- 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.
- 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
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.