1. Packages
  2. Google Cloud Native
  3. API Docs
  4. cloudbuild
  5. cloudbuild/v2
  6. getRepository

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.cloudbuild/v2.getRepository

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

    Gets details of a single repository.

    Using getRepository

    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 getRepository(args: GetRepositoryArgs, opts?: InvokeOptions): Promise<GetRepositoryResult>
    function getRepositoryOutput(args: GetRepositoryOutputArgs, opts?: InvokeOptions): Output<GetRepositoryResult>
    def get_repository(connection_id: Optional[str] = None,
                       location: Optional[str] = None,
                       project: Optional[str] = None,
                       repository_id: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetRepositoryResult
    def get_repository_output(connection_id: Optional[pulumi.Input[str]] = None,
                       location: Optional[pulumi.Input[str]] = None,
                       project: Optional[pulumi.Input[str]] = None,
                       repository_id: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetRepositoryResult]
    func LookupRepository(ctx *Context, args *LookupRepositoryArgs, opts ...InvokeOption) (*LookupRepositoryResult, error)
    func LookupRepositoryOutput(ctx *Context, args *LookupRepositoryOutputArgs, opts ...InvokeOption) LookupRepositoryResultOutput

    > Note: This function is named LookupRepository in the Go SDK.

    public static class GetRepository 
    {
        public static Task<GetRepositoryResult> InvokeAsync(GetRepositoryArgs args, InvokeOptions? opts = null)
        public static Output<GetRepositoryResult> Invoke(GetRepositoryInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetRepositoryResult> getRepository(GetRepositoryArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: google-native:cloudbuild/v2:getRepository
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ConnectionId string
    Location string
    RepositoryId string
    Project string
    ConnectionId string
    Location string
    RepositoryId string
    Project string
    connectionId String
    location String
    repositoryId String
    project String
    connectionId string
    location string
    repositoryId string
    project string
    connectionId String
    location String
    repositoryId String
    project String

    getRepository Result

    The following output properties are available:

    Annotations Dictionary<string, string>
    Allows clients to store small amounts of arbitrary data.
    CreateTime string
    Server assigned timestamp for when the connection was created.
    Etag string
    This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
    Name string
    Immutable. Resource name of the repository, in the format projects/*/locations/*/connections/*/repositories/*.
    RemoteUri string
    Git Clone HTTPS URI.
    UpdateTime string
    Server assigned timestamp for when the connection was updated.
    WebhookId string
    External ID of the webhook created for the repository.
    Annotations map[string]string
    Allows clients to store small amounts of arbitrary data.
    CreateTime string
    Server assigned timestamp for when the connection was created.
    Etag string
    This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
    Name string
    Immutable. Resource name of the repository, in the format projects/*/locations/*/connections/*/repositories/*.
    RemoteUri string
    Git Clone HTTPS URI.
    UpdateTime string
    Server assigned timestamp for when the connection was updated.
    WebhookId string
    External ID of the webhook created for the repository.
    annotations Map<String,String>
    Allows clients to store small amounts of arbitrary data.
    createTime String
    Server assigned timestamp for when the connection was created.
    etag String
    This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
    name String
    Immutable. Resource name of the repository, in the format projects/*/locations/*/connections/*/repositories/*.
    remoteUri String
    Git Clone HTTPS URI.
    updateTime String
    Server assigned timestamp for when the connection was updated.
    webhookId String
    External ID of the webhook created for the repository.
    annotations {[key: string]: string}
    Allows clients to store small amounts of arbitrary data.
    createTime string
    Server assigned timestamp for when the connection was created.
    etag string
    This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
    name string
    Immutable. Resource name of the repository, in the format projects/*/locations/*/connections/*/repositories/*.
    remoteUri string
    Git Clone HTTPS URI.
    updateTime string
    Server assigned timestamp for when the connection was updated.
    webhookId string
    External ID of the webhook created for the repository.
    annotations Mapping[str, str]
    Allows clients to store small amounts of arbitrary data.
    create_time str
    Server assigned timestamp for when the connection was created.
    etag str
    This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
    name str
    Immutable. Resource name of the repository, in the format projects/*/locations/*/connections/*/repositories/*.
    remote_uri str
    Git Clone HTTPS URI.
    update_time str
    Server assigned timestamp for when the connection was updated.
    webhook_id str
    External ID of the webhook created for the repository.
    annotations Map<String>
    Allows clients to store small amounts of arbitrary data.
    createTime String
    Server assigned timestamp for when the connection was created.
    etag String
    This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
    name String
    Immutable. Resource name of the repository, in the format projects/*/locations/*/connections/*/repositories/*.
    remoteUri String
    Git Clone HTTPS URI.
    updateTime String
    Server assigned timestamp for when the connection was updated.
    webhookId String
    External ID of the webhook created for the repository.

    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