Repository

A repository for storing artifacts

To get more information about Repository, see:

Create a Repository Resource

def Repository(resource_name, opts=None, description=None, format=None, labels=None, location=None, project=None, repository_id=None, __props__=None);
func NewRepository(ctx *Context, name string, args RepositoryArgs, opts ...ResourceOption) (*Repository, error)
public Repository(string name, RepositoryArgs args, CustomResourceOptions? opts = null)
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.
opts ResourceOptions
A bag of options that control this 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.

Repository Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The Repository resource accepts the following input properties:

Format string

The format of packages that are stored in the repoitory.

RepositoryId string

The last part of the repository name, for example: “repo1”

Description string

The user-provided description of the repository.

Labels Dictionary<string, string>

Labels with user-defined metadata. This field may contain up to 64 entries. Label keys and values may be no longer than 63 characters. Label keys must begin with a lowercase letter and may only contain lowercase letters, numeric characters, underscores, and dashes.

Location string

The name of the location this repository is located in.

Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Format string

The format of packages that are stored in the repoitory.

RepositoryId string

The last part of the repository name, for example: “repo1”

Description string

The user-provided description of the repository.

Labels map[string]string

Labels with user-defined metadata. This field may contain up to 64 entries. Label keys and values may be no longer than 63 characters. Label keys must begin with a lowercase letter and may only contain lowercase letters, numeric characters, underscores, and dashes.

Location string

The name of the location this repository is located in.

Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

format string

The format of packages that are stored in the repoitory.

repositoryId string

The last part of the repository name, for example: “repo1”

description string

The user-provided description of the repository.

labels {[key: string]: string}

Labels with user-defined metadata. This field may contain up to 64 entries. Label keys and values may be no longer than 63 characters. Label keys must begin with a lowercase letter and may only contain lowercase letters, numeric characters, underscores, and dashes.

location string

The name of the location this repository is located in.

project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

format str

The format of packages that are stored in the repoitory.

repository_id str

The last part of the repository name, for example: “repo1”

description str

The user-provided description of the repository.

labels Dict[str, str]

Labels with user-defined metadata. This field may contain up to 64 entries. Label keys and values may be no longer than 63 characters. Label keys must begin with a lowercase letter and may only contain lowercase letters, numeric characters, underscores, and dashes.

location str

The name of the location this repository is located in.

project str

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

The time when the repository was created.

Id string
The provider-assigned unique ID for this managed resource.
Name string

The name of the repository, for example: “projects/p1/locations/us-central1/repositories/repo1”

UpdateTime string

The time when the repository was last updated.

CreateTime string

The time when the repository was created.

Id string
The provider-assigned unique ID for this managed resource.
Name string

The name of the repository, for example: “projects/p1/locations/us-central1/repositories/repo1”

UpdateTime string

The time when the repository was last updated.

createTime string

The time when the repository was created.

id string
The provider-assigned unique ID for this managed resource.
name string

The name of the repository, for example: “projects/p1/locations/us-central1/repositories/repo1”

updateTime string

The time when the repository was last updated.

create_time str

The time when the repository was created.

id str
The provider-assigned unique ID for this managed resource.
name str

The name of the repository, for example: “projects/p1/locations/us-central1/repositories/repo1”

update_time str

The time when the repository was last updated.

Look up an 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
static get(resource_name, id, opts=None, create_time=None, description=None, format=None, labels=None, location=None, name=None, project=None, repository_id=None, update_time=None, __props__=None);
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)
name
The unique name of the resulting resource.
id
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
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
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
The unique name of the resulting resource.
id
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

The time when the repository was created.

Description string

The user-provided description of the repository.

Format string

The format of packages that are stored in the repoitory.

Labels Dictionary<string, string>

Labels with user-defined metadata. This field may contain up to 64 entries. Label keys and values may be no longer than 63 characters. Label keys must begin with a lowercase letter and may only contain lowercase letters, numeric characters, underscores, and dashes.

Location string

The name of the location this repository is located in.

Name string

The name of the repository, for example: “projects/p1/locations/us-central1/repositories/repo1”

Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

RepositoryId string

The last part of the repository name, for example: “repo1”

UpdateTime string

The time when the repository was last updated.

CreateTime string

The time when the repository was created.

Description string

The user-provided description of the repository.

Format string

The format of packages that are stored in the repoitory.

Labels map[string]string

Labels with user-defined metadata. This field may contain up to 64 entries. Label keys and values may be no longer than 63 characters. Label keys must begin with a lowercase letter and may only contain lowercase letters, numeric characters, underscores, and dashes.

Location string

The name of the location this repository is located in.

Name string

The name of the repository, for example: “projects/p1/locations/us-central1/repositories/repo1”

Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

RepositoryId string

The last part of the repository name, for example: “repo1”

UpdateTime string

The time when the repository was last updated.

createTime string

The time when the repository was created.

description string

The user-provided description of the repository.

format string

The format of packages that are stored in the repoitory.

labels {[key: string]: string}

Labels with user-defined metadata. This field may contain up to 64 entries. Label keys and values may be no longer than 63 characters. Label keys must begin with a lowercase letter and may only contain lowercase letters, numeric characters, underscores, and dashes.

location string

The name of the location this repository is located in.

name string

The name of the repository, for example: “projects/p1/locations/us-central1/repositories/repo1”

project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

repositoryId string

The last part of the repository name, for example: “repo1”

updateTime string

The time when the repository was last updated.

create_time str

The time when the repository was created.

description str

The user-provided description of the repository.

format str

The format of packages that are stored in the repoitory.

labels Dict[str, str]

Labels with user-defined metadata. This field may contain up to 64 entries. Label keys and values may be no longer than 63 characters. Label keys must begin with a lowercase letter and may only contain lowercase letters, numeric characters, underscores, and dashes.

location str

The name of the location this repository is located in.

name str

The name of the repository, for example: “projects/p1/locations/us-central1/repositories/repo1”

project str

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

repository_id str

The last part of the repository name, for example: “repo1”

update_time str

The time when the repository was last updated.

Package Details

Repository
https://github.com/pulumi/pulumi-gcp
License
Apache-2.0
Notes
This Pulumi package is based on the google-beta Terraform Provider.