1. Packages
  2. Google Cloud Native
  3. API Docs
  4. sourcerepo
  5. sourcerepo/v1
  6. getRepo

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-native logo

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:

    RepoId string
    Project string
    RepoId string
    Project string
    repoId String
    project String
    repoId string
    project string
    repoId String
    project String

    getRepo Result

    The following output properties are available:

    MirrorConfig Pulumi.GoogleNative.SourceRepo.V1.Outputs.MirrorConfigResponse
    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 MirrorConfigResponse
    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 MirrorConfigResponse
    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 MirrorConfigResponse
    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 MirrorConfigResponse
    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

    DeployKeyId string
    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.
    DeployKeyId string
    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.
    deployKeyId String
    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.
    deployKeyId string
    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_id str
    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.
    deployKeyId String
    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-native logo

    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