This package is deprecated. Active development has stopped. We recommend using the Google Cloud package instead.
published on Wednesday, Nov 29, 2023 by Pulumi
This package is deprecated. Active development has stopped. We recommend using the Google Cloud package instead.
published on Wednesday, Nov 29, 2023 by Pulumi
Creates a repository. The returned Operation will finish once the repository has been created. Its response will be the created Repository.
Create Repository Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Repository(name: string, args: RepositoryArgs, opts?: CustomResourceOptions);@overload
def Repository(resource_name: str,
args: RepositoryArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Repository(resource_name: str,
opts: Optional[ResourceOptions] = None,
repository_id: Optional[str] = None,
description: Optional[str] = None,
format: Optional[RepositoryFormat] = None,
kms_key_name: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
location: Optional[str] = None,
name: Optional[str] = None,
project: Optional[str] = None)func NewRepository(ctx *Context, name string, args RepositoryArgs, opts ...ResourceOption) (*Repository, error)public Repository(string name, RepositoryArgs args, CustomResourceOptions? opts = null)
public Repository(String name, RepositoryArgs args)
public Repository(String name, RepositoryArgs args, CustomResourceOptions options)
type: google-native:artifactregistry/v1beta1:Repository
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "google-native_artifactregistry_v1beta1_repository" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args RepositoryArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args RepositoryArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args RepositoryArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RepositoryArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RepositoryArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var google_nativeRepositoryResource = new GoogleNative.ArtifactRegistry.V1Beta1.Repository("google-nativeRepositoryResource", new()
{
RepositoryId = "string",
Description = "string",
Format = GoogleNative.ArtifactRegistry.V1Beta1.RepositoryFormat.FormatUnspecified,
KmsKeyName = "string",
Labels =
{
{ "string", "string" },
},
Location = "string",
Name = "string",
Project = "string",
});
example, err := artifactregistryv1beta1.NewRepository(ctx, "google-nativeRepositoryResource", &artifactregistryv1beta1.RepositoryArgs{
RepositoryId: pulumi.String("string"),
Description: pulumi.String("string"),
Format: artifactregistryv1beta1.RepositoryFormatFormatUnspecified,
KmsKeyName: pulumi.String("string"),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
Location: pulumi.String("string"),
Name: pulumi.String("string"),
Project: pulumi.String("string"),
})
resource "google-native_artifactregistry_v1beta1_repository" "google-nativeRepositoryResource" {
lifecycle {
create_before_destroy = true
}
repository_id = "string"
description = "string"
format = "FORMAT_UNSPECIFIED"
kms_key_name = "string"
labels = {
"string" = "string"
}
location = "string"
name = "string"
project = "string"
}
var google_nativeRepositoryResource = new com.pulumi.googlenative.artifactregistry_v1beta1.Repository("google-nativeRepositoryResource", com.pulumi.googlenative.artifactregistry_v1beta1.RepositoryArgs.builder()
.repositoryId("string")
.description("string")
.format(com.pulumi.googlenative.artifactregistry_v1beta1.enums.RepositoryFormat.FormatUnspecified)
.kmsKeyName("string")
.labels(Map.of("string", "string"))
.location("string")
.name("string")
.project("string")
.build());
google_native_repository_resource = google_native.artifactregistry.v1beta1.Repository("google-nativeRepositoryResource",
repository_id="string",
description="string",
format=google_native.artifactregistry.v1beta1.RepositoryFormat.FORMAT_UNSPECIFIED,
kms_key_name="string",
labels={
"string": "string",
},
location="string",
name="string",
project="string")
const google_nativeRepositoryResource = new google_native.artifactregistry.v1beta1.Repository("google-nativeRepositoryResource", {
repositoryId: "string",
description: "string",
format: google_native.artifactregistry.v1beta1.RepositoryFormat.FormatUnspecified,
kmsKeyName: "string",
labels: {
string: "string",
},
location: "string",
name: "string",
project: "string",
});
type: google-native:artifactregistry/v1beta1:Repository
properties:
description: string
format: FORMAT_UNSPECIFIED
kmsKeyName: string
labels:
string: string
location: string
name: string
project: string
repositoryId: string
Repository Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Repository resource accepts the following input properties:
- Repository
Id string - Required. The repository id to use for this repository.
- Description string
- The user-provided description of the repository.
- Format
Pulumi.
Google Native. Artifact Registry. V1Beta1. Repository Format - 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.
- Location string
- Name string
- The name of the repository, for example:
projects/p1/locations/us-central1/repositories/repo1. - Project string
- Repository
Id string - Required. The repository id to use for this repository.
- Description string
- The user-provided description of the repository.
- Format
Repository
Format - 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.
- Location string
- Name string
- The name of the repository, for example:
projects/p1/locations/us-central1/repositories/repo1. - Project string
- repository_
id string - Required. The repository id to use for this repository.
- description string
- The user-provided description of the repository.
- format "FORMAT_UNSPECIFIED" | "DOCKER" | "MAVEN" | "NPM" | "APT" | "YUM" | "GOOGET" | "PYTHON"
- 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.
- location string
- name string
- The name of the repository, for example:
projects/p1/locations/us-central1/repositories/repo1. - project string
- repository
Id String - Required. The repository id to use for this repository.
- description String
- The user-provided description of the repository.
- format
Repository
Format - 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.
- location String
- name String
- The name of the repository, for example:
projects/p1/locations/us-central1/repositories/repo1. - project String
- repository
Id string - Required. The repository id to use for this repository.
- description string
- The user-provided description of the repository.
- format
Repository
Format - 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.
- location string
- name string
- The name of the repository, for example:
projects/p1/locations/us-central1/repositories/repo1. - project string
- repository_
id str - Required. The repository id to use for this repository.
- description str
- The user-provided description of the repository.
- format
Repository
Format - 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.
- location str
- name str
- The name of the repository, for example:
projects/p1/locations/us-central1/repositories/repo1. - project str
- repository
Id String - Required. The repository id to use for this repository.
- description String
- The user-provided description of the repository.
- format "FORMAT_UNSPECIFIED" | "DOCKER" | "MAVEN" | "NPM" | "APT" | "YUM" | "GOOGET" | "PYTHON"
- 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.
- location String
- name String
- The name of the repository, for example:
projects/p1/locations/us-central1/repositories/repo1. - project String
Outputs
All input properties are implicitly available as output properties. Additionally, the Repository resource produces the following output properties:
- Create
Time string - The time when the repository was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- 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.
- Id string
- The provider-assigned unique ID for this managed resource.
- 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.
- id string
- The provider-assigned unique ID for this managed resource.
- 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.
- id String
- The provider-assigned unique ID for this managed resource.
- 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.
- id string
- The provider-assigned unique ID for this managed resource.
- 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.
- id str
- The provider-assigned unique ID for this managed resource.
- 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.
- id String
- The provider-assigned unique ID for this managed resource.
- 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.
Look up Existing Repository Resource
Get an existing Repository resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, opts?: CustomResourceOptions): Repository@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None) -> Repositoryfunc GetRepository(ctx *Context, name string, id IDInput, state *RepositoryState, opts ...ResourceOption) (*Repository, error)public static Repository Get(string name, Input<string> id, CustomResourceOptions? opts = null)public static Repository get(String name, Output<String> id, CustomResourceOptions options)resources: existingRepository: type: google-native:artifactregistry/v1beta1:Repository get: id: ${id}import {
to = google-native_artifactregistry_v1beta1_repository.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state RepositoryState
- Pass nil. This resource has no state arguments.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Supporting Types
RepositoryFormat, RepositoryFormatArgs
Optional. The format of packages that are stored in the repository.| Name | Value | Description |
|---|---|---|
| Format | FORMAT_UNSPECIFIED | Unspecified package format. |
| Docker | DOCKER | Docker package format. |
| Maven | MAVEN | Maven package format. |
| Npm | NPM | NPM package format. |
| Apt | APT | APT package format. |
| Yum | YUM | YUM package format. |
| Googet | GOOGET | GooGet package format. |
| Python | PYTHON | Python package format. |
| Name | Value | Description |
|---|---|---|
| Repository | FORMAT_UNSPECIFIED | Unspecified package format. |
| Repository | DOCKER | Docker package format. |
| Repository | MAVEN | Maven package format. |
| Repository | NPM | NPM package format. |
| Repository | APT | APT package format. |
| Repository | YUM | YUM package format. |
| Repository | GOOGET | GooGet package format. |
| Repository | PYTHON | Python package format. |
| Value | Description |
|---|---|
FORMAT_UNSPECIFIED | Unspecified package format. |
DOCKER | Docker package format. |
MAVEN | Maven package format. |
NPM | NPM package format. |
APT | APT package format. |
YUM | YUM package format. |
GOOGET | GooGet package format. |
PYTHON | Python package format. |
| Name | Value | Description |
|---|---|---|
| Format | FORMAT_UNSPECIFIED | Unspecified package format. |
| Docker | DOCKER | Docker package format. |
| Maven | MAVEN | Maven package format. |
| Npm | NPM | NPM package format. |
| Apt | APT | APT package format. |
| Yum | YUM | YUM package format. |
| Googet | GOOGET | GooGet package format. |
| Python | PYTHON | Python package format. |
| Name | Value | Description |
|---|---|---|
| Format | FORMAT_UNSPECIFIED | Unspecified package format. |
| Docker | DOCKER | Docker package format. |
| Maven | MAVEN | Maven package format. |
| Npm | NPM | NPM package format. |
| Apt | APT | APT package format. |
| Yum | YUM | YUM package format. |
| Googet | GOOGET | GooGet package format. |
| Python | PYTHON | Python package format. |
| Name | Value | Description |
|---|---|---|
| FORMAT_UNSPECIFIED | FORMAT_UNSPECIFIED | Unspecified package format. |
| DOCKER | DOCKER | Docker package format. |
| MAVEN | MAVEN | Maven package format. |
| NPM | NPM | NPM package format. |
| APT | APT | APT package format. |
| YUM | YUM | YUM package format. |
| GOOGET | GOOGET | GooGet package format. |
| PYTHON | PYTHON | Python package format. |
| Value | Description |
|---|---|
FORMAT_UNSPECIFIED | Unspecified package format. |
DOCKER | Docker package format. |
MAVEN | Maven package format. |
NPM | NPM package format. |
APT | APT package format. |
YUM | YUM package format. |
GOOGET | GooGet package format. |
PYTHON | Python package format. |
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
This package is deprecated. Active development has stopped. We recommend using the Google Cloud package instead.
published on Wednesday, Nov 29, 2023 by Pulumi