Class Repository
A repository (or repo) is a Git repository storing versioned source content.
To get more information about Repository, see:
- API documentation
- How-to Guides
- Official Documentation
Example Usage - Sourcerepo Repository Basic
using Pulumi;
using Gcp = Pulumi.Gcp;
class MyStack : Stack
{
public MyStack()
{
var my_repo = new Gcp.SourceRepo.Repository("my-repo", new Gcp.SourceRepo.RepositoryArgs
{
});
}
}
Inherited Members
Namespace: Pulumi.Gcp.SourceRepo
Assembly: Pulumi.Gcp.dll
Syntax
public class Repository : CustomResource
Constructors
View SourceRepository(String, RepositoryArgs, CustomResourceOptions)
Create a Repository resource with the given unique name, arguments, and options.
Declaration
public Repository(string name, RepositoryArgs args = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| RepositoryArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceName
Resource name of the repository, of the form {{repo}}.
The repo name may contain slashes. eg, name/with/slash
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Project
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
Declaration
public Output<string> Project { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
PubsubConfigs
How this repository publishes a change in the repository through Cloud Pub/Sub. Keyed by the topic names. Structure is documented below.
Declaration
public Output<ImmutableArray<RepositoryPubsubConfig>> PubsubConfigs { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<RepositoryPubsubConfig>> |
Size
The disk usage of the repo, in bytes.
Declaration
public Output<int> Size { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Int32> |
Url
URL to clone the repository from Google Cloud Source Repositories.
Declaration
public Output<string> Url { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, RepositoryState, CustomResourceOptions)
Get an existing Repository resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static Repository Get(string name, Input<string> id, RepositoryState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| RepositoryState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| Repository |