Repository
A repository for storing artifacts
To get more information about Repository, see:
- API documentation
- How-to Guides
Create a Repository Resource
new Repository(name: string, args: RepositoryArgs, opts?: CustomResourceOptions);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.
- Repository
Id 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.
- Repository
Id 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.
- repository
Id 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:
- Create
Time 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”
- Update
Time string The time when the repository was last updated.
- Create
Time 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”
- Update
Time string The time when the repository was last updated.
- create
Time 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”
- update
Time 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): Repositorystatic 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:
- Create
Time 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.
- Repository
Id string The last part of the repository name, for example: “repo1”
- Update
Time string The time when the repository was last updated.
- Create
Time 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.
- Repository
Id string The last part of the repository name, for example: “repo1”
- Update
Time string The time when the repository was last updated.
- create
Time 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.
- repository
Id string The last part of the repository name, for example: “repo1”
- update
Time 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-betaTerraform Provider.