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.artifactregistry/v1beta2.getRepository
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
Gets a 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(location: Optional[str] = None,
project: Optional[str] = None,
repository_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetRepositoryResult
def get_repository_output(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:artifactregistry/v1beta2:getRepository
arguments:
# arguments dictionary
The following arguments are supported:
- Location string
- Repository
Id string - Project string
- Location string
- Repository
Id string - Project string
- location String
- repository
Id String - project String
- location string
- repository
Id string - project string
- location str
- repository_
id str - project str
- location String
- repository
Id String - project String
getRepository Result
The following output properties are available:
- Create
Time string - The time when the repository was created.
- Description string
- The user-provided description of the repository.
- Format string
- Optional. The format of packages that are stored in the repository.
- Kms
Key stringName - The Cloud KMS resource name of the customer managed encryption key that's used to encrypt the contents of the Repository. Has the form:
projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key
. This value may not be changed after the Repository has been created. - Labels Dictionary<string, string>
- Labels with user-defined metadata. This field may contain up to 64 entries. Label keys and values may be no longer than 63 characters. Label keys must begin with a lowercase letter and may only contain lowercase letters, numeric characters, underscores, and dashes.
- Maven
Config Pulumi.Google Native. Artifact Registry. V1Beta2. Outputs. Maven Repository Config Response - Maven repository config contains repository level configuration for the repositories of maven type.
- Name string
- The name of the repository, for example:
projects/p1/locations/us-central1/repositories/repo1
. - Satisfies
Pzs bool - If set, the repository satisfies physical zone separation.
- Size
Bytes string - The size, in bytes, of all artifact storage in this repository. Repositories that are generally available or in public preview use this to calculate storage costs.
- Update
Time string - The time when the repository was last updated.
- Create
Time string - The time when the repository was created.
- Description string
- The user-provided description of the repository.
- Format string
- Optional. The format of packages that are stored in the repository.
- Kms
Key stringName - The Cloud KMS resource name of the customer managed encryption key that's used to encrypt the contents of the Repository. Has the form:
projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key
. This value may not be changed after the Repository has been created. - Labels map[string]string
- Labels with user-defined metadata. This field may contain up to 64 entries. Label keys and values may be no longer than 63 characters. Label keys must begin with a lowercase letter and may only contain lowercase letters, numeric characters, underscores, and dashes.
- Maven
Config MavenRepository Config Response - Maven repository config contains repository level configuration for the repositories of maven type.
- Name string
- The name of the repository, for example:
projects/p1/locations/us-central1/repositories/repo1
. - Satisfies
Pzs bool - If set, the repository satisfies physical zone separation.
- Size
Bytes string - The size, in bytes, of all artifact storage in this repository. Repositories that are generally available or in public preview use this to calculate storage costs.
- Update
Time string - The time when the repository was last updated.
- create
Time String - The time when the repository was created.
- description String
- The user-provided description of the repository.
- format String
- Optional. The format of packages that are stored in the repository.
- kms
Key StringName - The Cloud KMS resource name of the customer managed encryption key that's used to encrypt the contents of the Repository. Has the form:
projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key
. This value may not be changed after the Repository has been created. - labels Map<String,String>
- Labels with user-defined metadata. This field may contain up to 64 entries. Label keys and values may be no longer than 63 characters. Label keys must begin with a lowercase letter and may only contain lowercase letters, numeric characters, underscores, and dashes.
- maven
Config MavenRepository Config Response - Maven repository config contains repository level configuration for the repositories of maven type.
- name String
- The name of the repository, for example:
projects/p1/locations/us-central1/repositories/repo1
. - satisfies
Pzs Boolean - If set, the repository satisfies physical zone separation.
- size
Bytes String - The size, in bytes, of all artifact storage in this repository. Repositories that are generally available or in public preview use this to calculate storage costs.
- update
Time String - The time when the repository was last updated.
- create
Time string - The time when the repository was created.
- description string
- The user-provided description of the repository.
- format string
- Optional. The format of packages that are stored in the repository.
- kms
Key stringName - The Cloud KMS resource name of the customer managed encryption key that's used to encrypt the contents of the Repository. Has the form:
projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key
. This value may not be changed after the Repository has been created. - labels {[key: string]: string}
- Labels with user-defined metadata. This field may contain up to 64 entries. Label keys and values may be no longer than 63 characters. Label keys must begin with a lowercase letter and may only contain lowercase letters, numeric characters, underscores, and dashes.
- maven
Config MavenRepository Config Response - Maven repository config contains repository level configuration for the repositories of maven type.
- name string
- The name of the repository, for example:
projects/p1/locations/us-central1/repositories/repo1
. - satisfies
Pzs boolean - If set, the repository satisfies physical zone separation.
- size
Bytes string - The size, in bytes, of all artifact storage in this repository. Repositories that are generally available or in public preview use this to calculate storage costs.
- update
Time string - The time when the repository was last updated.
- create_
time str - The time when the repository was created.
- description str
- The user-provided description of the repository.
- format str
- Optional. The format of packages that are stored in the repository.
- kms_
key_ strname - The Cloud KMS resource name of the customer managed encryption key that's used to encrypt the contents of the Repository. Has the form:
projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key
. This value may not be changed after the Repository has been created. - labels Mapping[str, str]
- Labels with user-defined metadata. This field may contain up to 64 entries. Label keys and values may be no longer than 63 characters. Label keys must begin with a lowercase letter and may only contain lowercase letters, numeric characters, underscores, and dashes.
- maven_
config MavenRepository Config Response - Maven repository config contains repository level configuration for the repositories of maven type.
- name str
- The name of the repository, for example:
projects/p1/locations/us-central1/repositories/repo1
. - satisfies_
pzs bool - If set, the repository satisfies physical zone separation.
- size_
bytes str - The size, in bytes, of all artifact storage in this repository. Repositories that are generally available or in public preview use this to calculate storage costs.
- update_
time str - The time when the repository was last updated.
- create
Time String - The time when the repository was created.
- description String
- The user-provided description of the repository.
- format String
- Optional. The format of packages that are stored in the repository.
- kms
Key StringName - The Cloud KMS resource name of the customer managed encryption key that's used to encrypt the contents of the Repository. Has the form:
projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key
. This value may not be changed after the Repository has been created. - labels Map<String>
- Labels with user-defined metadata. This field may contain up to 64 entries. Label keys and values may be no longer than 63 characters. Label keys must begin with a lowercase letter and may only contain lowercase letters, numeric characters, underscores, and dashes.
- maven
Config Property Map - Maven repository config contains repository level configuration for the repositories of maven type.
- name String
- The name of the repository, for example:
projects/p1/locations/us-central1/repositories/repo1
. - satisfies
Pzs Boolean - If set, the repository satisfies physical zone separation.
- size
Bytes String - The size, in bytes, of all artifact storage in this repository. Repositories that are generally available or in public preview use this to calculate storage costs.
- update
Time String - The time when the repository was last updated.
Supporting Types
MavenRepositoryConfigResponse
- Allow
Snapshot boolOverwrites - The repository with this flag will allow publishing the same snapshot versions.
- Version
Policy string - Version policy defines the versions that the registry will accept.
- Allow
Snapshot boolOverwrites - The repository with this flag will allow publishing the same snapshot versions.
- Version
Policy string - Version policy defines the versions that the registry will accept.
- allow
Snapshot BooleanOverwrites - The repository with this flag will allow publishing the same snapshot versions.
- version
Policy String - Version policy defines the versions that the registry will accept.
- allow
Snapshot booleanOverwrites - The repository with this flag will allow publishing the same snapshot versions.
- version
Policy string - Version policy defines the versions that the registry will accept.
- allow_
snapshot_ booloverwrites - The repository with this flag will allow publishing the same snapshot versions.
- version_
policy str - Version policy defines the versions that the registry will accept.
- allow
Snapshot BooleanOverwrites - The repository with this flag will allow publishing the same snapshot versions.
- version
Policy String - Version policy defines the versions that the registry will accept.
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