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)
public static Output<GetRepoResult> getRepo(GetRepoArgs args, InvokeOptions options)
fn::invoke:
  function: google-native:sourcerepo/v1:getRepo
  arguments:
    # arguments dictionaryThe following arguments are supported:
getRepo Result
The following output properties are available:
- MirrorConfig 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
- PubsubConfigs 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.
- MirrorConfig 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
- PubsubConfigs 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.
- mirrorConfig 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
- pubsubConfigs 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.
- mirrorConfig 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
- pubsubConfigs {[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.
- mirrorConfig 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
- pubsubConfigs 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  
- DeployKey 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.
- WebhookId 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.
- DeployKey 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.
- WebhookId 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.
- deployKey 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.
- webhookId 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.
- deployKey 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.
- webhookId 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.
- deployKey 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.
- webhookId 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