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.sourcerepo/v1.getRepo
Explore with Pulumi AI
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
Returns information about a repo.
Using getRepo
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getRepo(args: GetRepoArgs, opts?: InvokeOptions): Promise<GetRepoResult>
function getRepoOutput(args: GetRepoOutputArgs, opts?: InvokeOptions): Output<GetRepoResult>
def get_repo(project: Optional[str] = None,
repo_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetRepoResult
def get_repo_output(project: Optional[pulumi.Input[str]] = None,
repo_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetRepoResult]
func LookupRepo(ctx *Context, args *LookupRepoArgs, opts ...InvokeOption) (*LookupRepoResult, error)
func LookupRepoOutput(ctx *Context, args *LookupRepoOutputArgs, opts ...InvokeOption) LookupRepoResultOutput
> Note: This function is named LookupRepo
in the Go SDK.
public static class GetRepo
{
public static Task<GetRepoResult> InvokeAsync(GetRepoArgs args, InvokeOptions? opts = null)
public static Output<GetRepoResult> Invoke(GetRepoInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetRepoResult> getRepo(GetRepoArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: google-native:sourcerepo/v1:getRepo
arguments:
# arguments dictionary
The following arguments are supported:
getRepo Result
The following output properties are available:
- Mirror
Config Pulumi.Google Native. Source Repo. V1. Outputs. Mirror Config Response - How this repository mirrors a repository managed by another service. Read-only field.
- Name string
- Resource name of the repository, of the form
projects//repos/
. The repo name may contain slashes. eg,projects/myproject/repos/name/with/slash
- Pubsub
Configs Dictionary<string, string> - How this repository publishes a change in the repository through Cloud Pub/Sub. Keyed by the topic names.
- Size string
- The disk usage of the repo, in bytes. Read-only field. Size is only returned by GetRepo.
- Url string
- URL to clone the repository from Google Cloud Source Repositories. Read-only field.
- Mirror
Config MirrorConfig Response - How this repository mirrors a repository managed by another service. Read-only field.
- Name string
- Resource name of the repository, of the form
projects//repos/
. The repo name may contain slashes. eg,projects/myproject/repos/name/with/slash
- Pubsub
Configs map[string]string - How this repository publishes a change in the repository through Cloud Pub/Sub. Keyed by the topic names.
- Size string
- The disk usage of the repo, in bytes. Read-only field. Size is only returned by GetRepo.
- Url string
- URL to clone the repository from Google Cloud Source Repositories. Read-only field.
- mirror
Config MirrorConfig Response - How this repository mirrors a repository managed by another service. Read-only field.
- name String
- Resource name of the repository, of the form
projects//repos/
. The repo name may contain slashes. eg,projects/myproject/repos/name/with/slash
- pubsub
Configs Map<String,String> - How this repository publishes a change in the repository through Cloud Pub/Sub. Keyed by the topic names.
- size String
- The disk usage of the repo, in bytes. Read-only field. Size is only returned by GetRepo.
- url String
- URL to clone the repository from Google Cloud Source Repositories. Read-only field.
- mirror
Config MirrorConfig Response - How this repository mirrors a repository managed by another service. Read-only field.
- name string
- Resource name of the repository, of the form
projects//repos/
. The repo name may contain slashes. eg,projects/myproject/repos/name/with/slash
- pubsub
Configs {[key: string]: string} - How this repository publishes a change in the repository through Cloud Pub/Sub. Keyed by the topic names.
- size string
- The disk usage of the repo, in bytes. Read-only field. Size is only returned by GetRepo.
- url string
- URL to clone the repository from Google Cloud Source Repositories. Read-only field.
- mirror_
config MirrorConfig Response - How this repository mirrors a repository managed by another service. Read-only field.
- name str
- Resource name of the repository, of the form
projects//repos/
. The repo name may contain slashes. eg,projects/myproject/repos/name/with/slash
- pubsub_
configs Mapping[str, str] - How this repository publishes a change in the repository through Cloud Pub/Sub. Keyed by the topic names.
- size str
- The disk usage of the repo, in bytes. Read-only field. Size is only returned by GetRepo.
- url str
- URL to clone the repository from Google Cloud Source Repositories. Read-only field.
- mirror
Config Property Map - How this repository mirrors a repository managed by another service. Read-only field.
- name String
- Resource name of the repository, of the form
projects//repos/
. The repo name may contain slashes. eg,projects/myproject/repos/name/with/slash
- pubsub
Configs Map<String> - How this repository publishes a change in the repository through Cloud Pub/Sub. Keyed by the topic names.
- size String
- The disk usage of the repo, in bytes. Read-only field. Size is only returned by GetRepo.
- url String
- URL to clone the repository from Google Cloud Source Repositories. Read-only field.
Supporting Types
MirrorConfigResponse
- Deploy
Key stringId - ID of the SSH deploy key at the other hosting service. Removing this key from the other service would deauthorize Google Cloud Source Repositories from mirroring.
- Url string
- URL of the main repository at the other hosting service.
- Webhook
Id string - ID of the webhook listening to updates to trigger mirroring. Removing this webhook from the other hosting service will stop Google Cloud Source Repositories from receiving notifications, and thereby disabling mirroring.
- Deploy
Key stringId - ID of the SSH deploy key at the other hosting service. Removing this key from the other service would deauthorize Google Cloud Source Repositories from mirroring.
- Url string
- URL of the main repository at the other hosting service.
- Webhook
Id string - ID of the webhook listening to updates to trigger mirroring. Removing this webhook from the other hosting service will stop Google Cloud Source Repositories from receiving notifications, and thereby disabling mirroring.
- deploy
Key StringId - ID of the SSH deploy key at the other hosting service. Removing this key from the other service would deauthorize Google Cloud Source Repositories from mirroring.
- url String
- URL of the main repository at the other hosting service.
- webhook
Id String - ID of the webhook listening to updates to trigger mirroring. Removing this webhook from the other hosting service will stop Google Cloud Source Repositories from receiving notifications, and thereby disabling mirroring.
- deploy
Key stringId - ID of the SSH deploy key at the other hosting service. Removing this key from the other service would deauthorize Google Cloud Source Repositories from mirroring.
- url string
- URL of the main repository at the other hosting service.
- webhook
Id string - ID of the webhook listening to updates to trigger mirroring. Removing this webhook from the other hosting service will stop Google Cloud Source Repositories from receiving notifications, and thereby disabling mirroring.
- deploy_
key_ strid - ID of the SSH deploy key at the other hosting service. Removing this key from the other service would deauthorize Google Cloud Source Repositories from mirroring.
- url str
- URL of the main repository at the other hosting service.
- webhook_
id str - ID of the webhook listening to updates to trigger mirroring. Removing this webhook from the other hosting service will stop Google Cloud Source Repositories from receiving notifications, and thereby disabling mirroring.
- deploy
Key StringId - ID of the SSH deploy key at the other hosting service. Removing this key from the other service would deauthorize Google Cloud Source Repositories from mirroring.
- url String
- URL of the main repository at the other hosting service.
- webhook
Id String - ID of the webhook listening to updates to trigger mirroring. Removing this webhook from the other hosting service will stop Google Cloud Source Repositories from receiving notifications, and thereby disabling mirroring.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
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