1. Packages
  2. Google Cloud Native
  3. API Docs
  4. cloudbuild
  5. cloudbuild/v2
  6. Repository

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

google-native.cloudbuild/v2.Repository

Explore with Pulumi AI

google-native logo

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

    Creates a Repository.

    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,
                   connection_id: Optional[str] = None,
                   remote_uri: Optional[str] = None,
                   repository_id: Optional[str] = None,
                   annotations: Optional[Mapping[str, str]] = None,
                   etag: Optional[str] = None,
                   location: Optional[str] = None,
                   name: Optional[str] = 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: google-native:cloudbuild/v2: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 examplerepositoryResourceResourceFromCloudbuildv2 = new GoogleNative.CloudBuild.V2.Repository("examplerepositoryResourceResourceFromCloudbuildv2", new()
    {
        ConnectionId = "string",
        RemoteUri = "string",
        RepositoryId = "string",
        Annotations = 
        {
            { "string", "string" },
        },
        Etag = "string",
        Location = "string",
        Name = "string",
        Project = "string",
    });
    
    example, err := cloudbuildv2.NewRepository(ctx, "examplerepositoryResourceResourceFromCloudbuildv2", &cloudbuildv2.RepositoryArgs{
    	ConnectionId: pulumi.String("string"),
    	RemoteUri:    pulumi.String("string"),
    	RepositoryId: pulumi.String("string"),
    	Annotations: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Etag:     pulumi.String("string"),
    	Location: pulumi.String("string"),
    	Name:     pulumi.String("string"),
    	Project:  pulumi.String("string"),
    })
    
    var examplerepositoryResourceResourceFromCloudbuildv2 = new Repository("examplerepositoryResourceResourceFromCloudbuildv2", RepositoryArgs.builder()
        .connectionId("string")
        .remoteUri("string")
        .repositoryId("string")
        .annotations(Map.of("string", "string"))
        .etag("string")
        .location("string")
        .name("string")
        .project("string")
        .build());
    
    examplerepository_resource_resource_from_cloudbuildv2 = google_native.cloudbuild.v2.Repository("examplerepositoryResourceResourceFromCloudbuildv2",
        connection_id="string",
        remote_uri="string",
        repository_id="string",
        annotations={
            "string": "string",
        },
        etag="string",
        location="string",
        name="string",
        project="string")
    
    const examplerepositoryResourceResourceFromCloudbuildv2 = new google_native.cloudbuild.v2.Repository("examplerepositoryResourceResourceFromCloudbuildv2", {
        connectionId: "string",
        remoteUri: "string",
        repositoryId: "string",
        annotations: {
            string: "string",
        },
        etag: "string",
        location: "string",
        name: "string",
        project: "string",
    });
    
    type: google-native:cloudbuild/v2:Repository
    properties:
        annotations:
            string: string
        connectionId: string
        etag: string
        location: string
        name: string
        project: string
        remoteUri: 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:

    ConnectionId string
    RemoteUri string
    Git Clone HTTPS URI.
    RepositoryId string
    Required. The ID to use for the repository, which will become the final component of the repository's resource name. This ID should be unique in the connection. Allows alphanumeric characters and any of -._~%!$&'()*+,;=@.
    Annotations Dictionary<string, string>
    Allows clients to store small amounts of arbitrary data.
    Etag string
    This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
    Location string
    Name string
    Immutable. Resource name of the repository, in the format projects/*/locations/*/connections/*/repositories/*.
    Project string
    ConnectionId string
    RemoteUri string
    Git Clone HTTPS URI.
    RepositoryId string
    Required. The ID to use for the repository, which will become the final component of the repository's resource name. This ID should be unique in the connection. Allows alphanumeric characters and any of -._~%!$&'()*+,;=@.
    Annotations map[string]string
    Allows clients to store small amounts of arbitrary data.
    Etag string
    This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
    Location string
    Name string
    Immutable. Resource name of the repository, in the format projects/*/locations/*/connections/*/repositories/*.
    Project string
    connectionId String
    remoteUri String
    Git Clone HTTPS URI.
    repositoryId String
    Required. The ID to use for the repository, which will become the final component of the repository's resource name. This ID should be unique in the connection. Allows alphanumeric characters and any of -._~%!$&'()*+,;=@.
    annotations Map<String,String>
    Allows clients to store small amounts of arbitrary data.
    etag String
    This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
    location String
    name String
    Immutable. Resource name of the repository, in the format projects/*/locations/*/connections/*/repositories/*.
    project String
    connectionId string
    remoteUri string
    Git Clone HTTPS URI.
    repositoryId string
    Required. The ID to use for the repository, which will become the final component of the repository's resource name. This ID should be unique in the connection. Allows alphanumeric characters and any of -._~%!$&'()*+,;=@.
    annotations {[key: string]: string}
    Allows clients to store small amounts of arbitrary data.
    etag string
    This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
    location string
    name string
    Immutable. Resource name of the repository, in the format projects/*/locations/*/connections/*/repositories/*.
    project string
    connection_id str
    remote_uri str
    Git Clone HTTPS URI.
    repository_id str
    Required. The ID to use for the repository, which will become the final component of the repository's resource name. This ID should be unique in the connection. Allows alphanumeric characters and any of -._~%!$&'()*+,;=@.
    annotations Mapping[str, str]
    Allows clients to store small amounts of arbitrary data.
    etag str
    This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
    location str
    name str
    Immutable. Resource name of the repository, in the format projects/*/locations/*/connections/*/repositories/*.
    project str
    connectionId String
    remoteUri String
    Git Clone HTTPS URI.
    repositoryId String
    Required. The ID to use for the repository, which will become the final component of the repository's resource name. This ID should be unique in the connection. Allows alphanumeric characters and any of -._~%!$&'()*+,;=@.
    annotations Map<String>
    Allows clients to store small amounts of arbitrary data.
    etag String
    This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
    location String
    name String
    Immutable. Resource name of the repository, in the format projects/*/locations/*/connections/*/repositories/*.
    project String

    Outputs

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

    CreateTime string
    Server assigned timestamp for when the connection was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdateTime string
    Server assigned timestamp for when the connection was updated.
    WebhookId string
    External ID of the webhook created for the repository.
    CreateTime string
    Server assigned timestamp for when the connection was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdateTime string
    Server assigned timestamp for when the connection was updated.
    WebhookId string
    External ID of the webhook created for the repository.
    createTime String
    Server assigned timestamp for when the connection was created.
    id String
    The provider-assigned unique ID for this managed resource.
    updateTime String
    Server assigned timestamp for when the connection was updated.
    webhookId String
    External ID of the webhook created for the repository.
    createTime string
    Server assigned timestamp for when the connection was created.
    id string
    The provider-assigned unique ID for this managed resource.
    updateTime string
    Server assigned timestamp for when the connection was updated.
    webhookId string
    External ID of the webhook created for the repository.
    create_time str
    Server assigned timestamp for when the connection was created.
    id str
    The provider-assigned unique ID for this managed resource.
    update_time str
    Server assigned timestamp for when the connection was updated.
    webhook_id str
    External ID of the webhook created for the repository.
    createTime String
    Server assigned timestamp for when the connection was created.
    id String
    The provider-assigned unique ID for this managed resource.
    updateTime String
    Server assigned timestamp for when the connection was updated.
    webhookId String
    External ID of the webhook created for the repository.

    Package Details

    Repository
    Google Cloud Native pulumi/pulumi-google-native
    License
    Apache-2.0
    google-native logo

    Google Cloud Native is in preview. Google Cloud Classic is fully supported.

    Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi