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
Create a Repository Resource
new Repository(name: string, args?: RepositoryArgs, opts?: CustomResourceOptions);def Repository(resource_name, opts=None, name=None, project=None, pubsub_configs=None, __props__=None);func NewRepository(ctx *Context, name string, args *RepositoryArgs, opts ...ResourceOption) (*Repository, error)public Repository(string name, RepositoryArgs? args = null, 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:
- Name string
Resource name of the repository, of the form
{{repo}}. The repo name may contain slashes. eg,name/with/slash- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Pubsub
Configs List<RepositoryPubsub Config Args> How this repository publishes a change in the repository through Cloud Pub/Sub. Keyed by the topic names. Structure is documented below.
- Name string
Resource name of the repository, of the form
{{repo}}. The repo name may contain slashes. eg,name/with/slash- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Pubsub
Configs []RepositoryPubsub Config How this repository publishes a change in the repository through Cloud Pub/Sub. Keyed by the topic names. Structure is documented below.
- name string
Resource name of the repository, of the form
{{repo}}. The repo name may contain slashes. eg,name/with/slash- project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pubsub
Configs RepositoryPubsub Config[] How this repository publishes a change in the repository through Cloud Pub/Sub. Keyed by the topic names. Structure is documented below.
- name str
Resource name of the repository, of the form
{{repo}}. The repo name may contain slashes. eg,name/with/slash- project str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pubsub_
configs List[RepositoryPubsub Config] How this repository publishes a change in the repository through Cloud Pub/Sub. Keyed by the topic names. Structure is documented below.
Outputs
All input properties are implicitly available as output properties. Additionally, the Repository resource produces the following output properties:
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, name=None, project=None, pubsub_configs=None, size=None, url=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:
- Name string
Resource name of the repository, of the form
{{repo}}. The repo name may contain slashes. eg,name/with/slash- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Pubsub
Configs List<RepositoryPubsub Config Args> How this repository publishes a change in the repository through Cloud Pub/Sub. Keyed by the topic names. Structure is documented below.
- Size int
The disk usage of the repo, in bytes.
- Url string
URL to clone the repository from Google Cloud Source Repositories.
- Name string
Resource name of the repository, of the form
{{repo}}. The repo name may contain slashes. eg,name/with/slash- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Pubsub
Configs []RepositoryPubsub Config How this repository publishes a change in the repository through Cloud Pub/Sub. Keyed by the topic names. Structure is documented below.
- Size int
The disk usage of the repo, in bytes.
- Url string
URL to clone the repository from Google Cloud Source Repositories.
- name string
Resource name of the repository, of the form
{{repo}}. The repo name may contain slashes. eg,name/with/slash- project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pubsub
Configs RepositoryPubsub Config[] How this repository publishes a change in the repository through Cloud Pub/Sub. Keyed by the topic names. Structure is documented below.
- size number
The disk usage of the repo, in bytes.
- url string
URL to clone the repository from Google Cloud Source Repositories.
- name str
Resource name of the repository, of the form
{{repo}}. The repo name may contain slashes. eg,name/with/slash- project str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pubsub_
configs List[RepositoryPubsub Config] How this repository publishes a change in the repository through Cloud Pub/Sub. Keyed by the topic names. Structure is documented below.
- size float
The disk usage of the repo, in bytes.
- url str
URL to clone the repository from Google Cloud Source Repositories.
Supporting Types
RepositoryPubsubConfig
- Message
Format string The format of the Cloud Pub/Sub messages. - PROTOBUF: The message payload is a serialized protocol buffer of SourceRepoEvent. - JSON: The message payload is a JSON string of SourceRepoEvent.
- Topic string
The identifier for this object. Format specified above.
- Service
Account stringEmail Email address of the service account used for publishing Cloud Pub/Sub messages. This service account needs to be in the same project as the PubsubConfig. When added, the caller needs to have iam.serviceAccounts.actAs permission on this service account. If unspecified, it defaults to the compute engine default service account.
- Message
Format string The format of the Cloud Pub/Sub messages. - PROTOBUF: The message payload is a serialized protocol buffer of SourceRepoEvent. - JSON: The message payload is a JSON string of SourceRepoEvent.
- Topic string
The identifier for this object. Format specified above.
- Service
Account stringEmail Email address of the service account used for publishing Cloud Pub/Sub messages. This service account needs to be in the same project as the PubsubConfig. When added, the caller needs to have iam.serviceAccounts.actAs permission on this service account. If unspecified, it defaults to the compute engine default service account.
- message
Format string The format of the Cloud Pub/Sub messages. - PROTOBUF: The message payload is a serialized protocol buffer of SourceRepoEvent. - JSON: The message payload is a JSON string of SourceRepoEvent.
- topic string
The identifier for this object. Format specified above.
- service
Account stringEmail Email address of the service account used for publishing Cloud Pub/Sub messages. This service account needs to be in the same project as the PubsubConfig. When added, the caller needs to have iam.serviceAccounts.actAs permission on this service account. If unspecified, it defaults to the compute engine default service account.
- message
Format str The format of the Cloud Pub/Sub messages. - PROTOBUF: The message payload is a serialized protocol buffer of SourceRepoEvent. - JSON: The message payload is a JSON string of SourceRepoEvent.
- topic str
The identifier for this object. Format specified above.
- service_
account_ stremail Email address of the service account used for publishing Cloud Pub/Sub messages. This service account needs to be in the same project as the PubsubConfig. When added, the caller needs to have iam.serviceAccounts.actAs permission on this service account. If unspecified, it defaults to the compute engine default service account.
Package Details
- Repository
- https://github.com/pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-betaTerraform Provider.