Show / Hide Table of Contents

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
    {
    });
}

}
Inheritance
System.Object
Resource
CustomResource
Repository
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Gcp.SourceRepo
Assembly: Pulumi.Gcp.dll
Syntax
public class Repository : CustomResource

Constructors

View Source

Repository(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 Source

Name

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>
View Source

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>
View Source

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>>
View Source

Size

The disk usage of the repo, in bytes.

Declaration
public Output<int> Size { get; }
Property Value
Type Description
Output<System.Int32>
View Source

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 Source

Get(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
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.