Google Cloud (GCP) Classic

v6.44.0 published on Tuesday, Nov 29, 2022 by Pulumi

Repository

A repository for storing artifacts

To get more information about Repository, see:

Example Usage

Artifact Registry Repository Basic

using System.Collections.Generic;
using Pulumi;
using Gcp = Pulumi.Gcp;

return await Deployment.RunAsync(() => 
{
    var my_repo = new Gcp.ArtifactRegistry.Repository("my-repo", new()
    {
        Description = "example docker repository",
        Format = "DOCKER",
        Location = "us-central1",
        RepositoryId = "my-repository",
    });

});
package main

import (
	"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/artifactregistry"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := artifactregistry.NewRepository(ctx, "my-repo", &artifactregistry.RepositoryArgs{
			Description:  pulumi.String("example docker repository"),
			Format:       pulumi.String("DOCKER"),
			Location:     pulumi.String("us-central1"),
			RepositoryId: pulumi.String("my-repository"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.artifactregistry.Repository;
import com.pulumi.gcp.artifactregistry.RepositoryArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var my_repo = new Repository("my-repo", RepositoryArgs.builder()        
            .description("example docker repository")
            .format("DOCKER")
            .location("us-central1")
            .repositoryId("my-repository")
            .build());

    }
}
import pulumi
import pulumi_gcp as gcp

my_repo = gcp.artifactregistry.Repository("my-repo",
    description="example docker repository",
    format="DOCKER",
    location="us-central1",
    repository_id="my-repository")
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

const my_repo = new gcp.artifactregistry.Repository("my-repo", {
    description: "example docker repository",
    format: "DOCKER",
    location: "us-central1",
    repositoryId: "my-repository",
});
resources:
  my-repo:
    type: gcp:artifactregistry:Repository
    properties:
      description: example docker repository
      format: DOCKER
      location: us-central1
      repositoryId: my-repository

Artifact Registry Repository Cmek

using System.Collections.Generic;
using Pulumi;
using Gcp = Pulumi.Gcp;

return await Deployment.RunAsync(() => 
{
    var my_repo = new Gcp.ArtifactRegistry.Repository("my-repo", new()
    {
        Description = "example docker repository with cmek",
        Format = "DOCKER",
        KmsKeyName = "kms-key",
        Location = "us-central1",
        RepositoryId = "my-repository",
    });

});
package main

import (
	"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/artifactregistry"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := artifactregistry.NewRepository(ctx, "my-repo", &artifactregistry.RepositoryArgs{
			Description:  pulumi.String("example docker repository with cmek"),
			Format:       pulumi.String("DOCKER"),
			KmsKeyName:   pulumi.String("kms-key"),
			Location:     pulumi.String("us-central1"),
			RepositoryId: pulumi.String("my-repository"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.artifactregistry.Repository;
import com.pulumi.gcp.artifactregistry.RepositoryArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var my_repo = new Repository("my-repo", RepositoryArgs.builder()        
            .description("example docker repository with cmek")
            .format("DOCKER")
            .kmsKeyName("kms-key")
            .location("us-central1")
            .repositoryId("my-repository")
            .build());

    }
}
import pulumi
import pulumi_gcp as gcp

my_repo = gcp.artifactregistry.Repository("my-repo",
    description="example docker repository with cmek",
    format="DOCKER",
    kms_key_name="kms-key",
    location="us-central1",
    repository_id="my-repository")
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

const my_repo = new gcp.artifactregistry.Repository("my-repo", {
    description: "example docker repository with cmek",
    format: "DOCKER",
    kmsKeyName: "kms-key",
    location: "us-central1",
    repositoryId: "my-repository",
});
resources:
  my-repo:
    type: gcp:artifactregistry:Repository
    properties:
      description: example docker repository with cmek
      format: DOCKER
      kmsKeyName: kms-key
      location: us-central1
      repositoryId: my-repository

Create Repository Resource

new Repository(name: string, args: RepositoryArgs, opts?: CustomResourceOptions);
@overload
def Repository(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               description: Optional[str] = None,
               format: Optional[str] = None,
               kms_key_name: Optional[str] = None,
               labels: Optional[Mapping[str, str]] = None,
               location: Optional[str] = None,
               maven_config: Optional[RepositoryMavenConfigArgs] = None,
               project: Optional[str] = None,
               repository_id: Optional[str] = None)
@overload
def Repository(resource_name: str,
               args: RepositoryArgs,
               opts: Optional[ResourceOptions] = 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: gcp:artifactregistry:Repository
properties: # The arguments to resource properties.
options: # 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.
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.

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

The Repository resource accepts the following input properties:

Format string

The format of packages that are stored in the repository. Supported formats can be found here. You can only create alpha formats if you are a member of the alpha user group.

RepositoryId string

The last part of the repository name, for example: "repo1"

Description string

The user-provided description of the repository.

KmsKeyName string

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

The name of the location this repository is located in.

MavenConfig RepositoryMavenConfigArgs

MavenRepositoryConfig is maven related repository details. Provides additional configuration details for repositories of the maven format type. Structure is documented below.

Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Format string

The format of packages that are stored in the repository. Supported formats can be found here. You can only create alpha formats if you are a member of the alpha user group.

RepositoryId string

The last part of the repository name, for example: "repo1"

Description string

The user-provided description of the repository.

KmsKeyName string

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

The name of the location this repository is located in.

MavenConfig RepositoryMavenConfigArgs

MavenRepositoryConfig is maven related repository details. Provides additional configuration details for repositories of the maven format type. Structure is documented below.

Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

format String

The format of packages that are stored in the repository. Supported formats can be found here. You can only create alpha formats if you are a member of the alpha user group.

repositoryId String

The last part of the repository name, for example: "repo1"

description String

The user-provided description of the repository.

kmsKeyName String

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

The name of the location this repository is located in.

mavenConfig RepositoryMavenConfigArgs

MavenRepositoryConfig is maven related repository details. Provides additional configuration details for repositories of the maven format type. Structure is documented below.

project String

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

format string

The format of packages that are stored in the repository. Supported formats can be found here. You can only create alpha formats if you are a member of the alpha user group.

repositoryId string

The last part of the repository name, for example: "repo1"

description string

The user-provided description of the repository.

kmsKeyName string

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

The name of the location this repository is located in.

mavenConfig RepositoryMavenConfigArgs

MavenRepositoryConfig is maven related repository details. Provides additional configuration details for repositories of the maven format type. Structure is documented below.

project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

format str

The format of packages that are stored in the repository. Supported formats can be found here. You can only create alpha formats if you are a member of the alpha user group.

repository_id str

The last part of the repository name, for example: "repo1"

description str

The user-provided description of the repository.

kms_key_name str

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

The name of the location this repository is located in.

maven_config RepositoryMavenConfigArgs

MavenRepositoryConfig is maven related repository details. Provides additional configuration details for repositories of the maven format type. Structure is documented below.

project str

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

format String

The format of packages that are stored in the repository. Supported formats can be found here. You can only create alpha formats if you are a member of the alpha user group.

repositoryId String

The last part of the repository name, for example: "repo1"

description String

The user-provided description of the repository.

kmsKeyName String

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

The name of the location this repository is located in.

mavenConfig Property Map

MavenRepositoryConfig is maven related repository details. Provides additional configuration details for repositories of the maven format type. Structure is documented below.

project String

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Outputs

All input properties are implicitly available as output properties. Additionally, the Repository resource produces the following output properties:

CreateTime string

The time when the repository was created.

Id string

The provider-assigned unique ID for this managed resource.

Name string

The name of the repository, for example: "projects/p1/locations/us-central1/repositories/repo1"

UpdateTime string

The time when the repository was last updated.

CreateTime string

The time when the repository was created.

Id string

The provider-assigned unique ID for this managed resource.

Name string

The name of the repository, for example: "projects/p1/locations/us-central1/repositories/repo1"

UpdateTime string

The time when the repository was last updated.

createTime String

The time when the repository was created.

id String

The provider-assigned unique ID for this managed resource.

name String

The name of the repository, for example: "projects/p1/locations/us-central1/repositories/repo1"

updateTime String

The time when the repository was last updated.

createTime string

The time when the repository was created.

id string

The provider-assigned unique ID for this managed resource.

name string

The name of the repository, for example: "projects/p1/locations/us-central1/repositories/repo1"

updateTime 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.

name str

The name of the repository, for example: "projects/p1/locations/us-central1/repositories/repo1"

update_time str

The time when the repository was last updated.

createTime String

The time when the repository was created.

id String

The provider-assigned unique ID for this managed resource.

name String

The name of the repository, for example: "projects/p1/locations/us-central1/repositories/repo1"

updateTime 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>, state?: RepositoryState, opts?: CustomResourceOptions): Repository
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        create_time: Optional[str] = None,
        description: Optional[str] = None,
        format: Optional[str] = None,
        kms_key_name: Optional[str] = None,
        labels: Optional[Mapping[str, str]] = None,
        location: Optional[str] = None,
        maven_config: Optional[RepositoryMavenConfigArgs] = None,
        name: Optional[str] = None,
        project: Optional[str] = None,
        repository_id: Optional[str] = None,
        update_time: Optional[str] = None) -> Repository
func GetRepository(ctx *Context, name string, id IDInput, state *RepositoryState, opts ...ResourceOption) (*Repository, error)
public static Repository Get(string name, Input<string> id, RepositoryState? state, CustomResourceOptions? opts = null)
public static Repository get(String name, Output<String> id, RepositoryState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
CreateTime string

The time when the repository was created.

Description string

The user-provided description of the repository.

Format string

The format of packages that are stored in the repository. Supported formats can be found here. You can only create alpha formats if you are a member of the alpha user group.

KmsKeyName string

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

The name of the location this repository is located in.

MavenConfig RepositoryMavenConfigArgs

MavenRepositoryConfig is maven related repository details. Provides additional configuration details for repositories of the maven format type. Structure is documented below.

Name string

The name of the repository, for example: "projects/p1/locations/us-central1/repositories/repo1"

Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

RepositoryId string

The last part of the repository name, for example: "repo1"

UpdateTime string

The time when the repository was last updated.

CreateTime string

The time when the repository was created.

Description string

The user-provided description of the repository.

Format string

The format of packages that are stored in the repository. Supported formats can be found here. You can only create alpha formats if you are a member of the alpha user group.

KmsKeyName string

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

The name of the location this repository is located in.

MavenConfig RepositoryMavenConfigArgs

MavenRepositoryConfig is maven related repository details. Provides additional configuration details for repositories of the maven format type. Structure is documented below.

Name string

The name of the repository, for example: "projects/p1/locations/us-central1/repositories/repo1"

Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

RepositoryId string

The last part of the repository name, for example: "repo1"

UpdateTime string

The time when the repository was last updated.

createTime String

The time when the repository was created.

description String

The user-provided description of the repository.

format String

The format of packages that are stored in the repository. Supported formats can be found here. You can only create alpha formats if you are a member of the alpha user group.

kmsKeyName String

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

The name of the location this repository is located in.

mavenConfig RepositoryMavenConfigArgs

MavenRepositoryConfig is maven related repository details. Provides additional configuration details for repositories of the maven format type. Structure is documented below.

name String

The name of the repository, for example: "projects/p1/locations/us-central1/repositories/repo1"

project String

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

repositoryId String

The last part of the repository name, for example: "repo1"

updateTime String

The time when the repository was last updated.

createTime string

The time when the repository was created.

description string

The user-provided description of the repository.

format string

The format of packages that are stored in the repository. Supported formats can be found here. You can only create alpha formats if you are a member of the alpha user group.

kmsKeyName string

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

The name of the location this repository is located in.

mavenConfig RepositoryMavenConfigArgs

MavenRepositoryConfig is maven related repository details. Provides additional configuration details for repositories of the maven format type. Structure is documented below.

name string

The name of the repository, for example: "projects/p1/locations/us-central1/repositories/repo1"

project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

repositoryId string

The last part of the repository name, for example: "repo1"

updateTime 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

The format of packages that are stored in the repository. Supported formats can be found here. You can only create alpha formats if you are a member of the alpha user group.

kms_key_name str

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

The name of the location this repository is located in.

maven_config RepositoryMavenConfigArgs

MavenRepositoryConfig is maven related repository details. Provides additional configuration details for repositories of the maven format type. Structure is documented below.

name str

The name of the repository, for example: "projects/p1/locations/us-central1/repositories/repo1"

project str

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

repository_id str

The last part of the repository name, for example: "repo1"

update_time str

The time when the repository was last updated.

createTime String

The time when the repository was created.

description String

The user-provided description of the repository.

format String

The format of packages that are stored in the repository. Supported formats can be found here. You can only create alpha formats if you are a member of the alpha user group.

kmsKeyName String

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

The name of the location this repository is located in.

mavenConfig Property Map

MavenRepositoryConfig is maven related repository details. Provides additional configuration details for repositories of the maven format type. Structure is documented below.

name String

The name of the repository, for example: "projects/p1/locations/us-central1/repositories/repo1"

project String

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

repositoryId String

The last part of the repository name, for example: "repo1"

updateTime String

The time when the repository was last updated.

Supporting Types

RepositoryMavenConfig

AllowSnapshotOverwrites bool

The repository with this flag will allow publishing the same snapshot versions.

VersionPolicy string

Version policy defines the versions that the registry will accept. Default value is VERSION_POLICY_UNSPECIFIED. Possible values are VERSION_POLICY_UNSPECIFIED, RELEASE, and SNAPSHOT.

AllowSnapshotOverwrites bool

The repository with this flag will allow publishing the same snapshot versions.

VersionPolicy string

Version policy defines the versions that the registry will accept. Default value is VERSION_POLICY_UNSPECIFIED. Possible values are VERSION_POLICY_UNSPECIFIED, RELEASE, and SNAPSHOT.

allowSnapshotOverwrites Boolean

The repository with this flag will allow publishing the same snapshot versions.

versionPolicy String

Version policy defines the versions that the registry will accept. Default value is VERSION_POLICY_UNSPECIFIED. Possible values are VERSION_POLICY_UNSPECIFIED, RELEASE, and SNAPSHOT.

allowSnapshotOverwrites boolean

The repository with this flag will allow publishing the same snapshot versions.

versionPolicy string

Version policy defines the versions that the registry will accept. Default value is VERSION_POLICY_UNSPECIFIED. Possible values are VERSION_POLICY_UNSPECIFIED, RELEASE, and SNAPSHOT.

allow_snapshot_overwrites bool

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. Default value is VERSION_POLICY_UNSPECIFIED. Possible values are VERSION_POLICY_UNSPECIFIED, RELEASE, and SNAPSHOT.

allowSnapshotOverwrites Boolean

The repository with this flag will allow publishing the same snapshot versions.

versionPolicy String

Version policy defines the versions that the registry will accept. Default value is VERSION_POLICY_UNSPECIFIED. Possible values are VERSION_POLICY_UNSPECIFIED, RELEASE, and SNAPSHOT.

Import

Repository can be imported using any of these accepted formats

 $ pulumi import gcp:artifactregistry/repository:Repository default projects/{{project}}/locations/{{location}}/repositories/{{repository_id}}
 $ pulumi import gcp:artifactregistry/repository:Repository default {{project}}/{{location}}/{{repository_id}}
 $ pulumi import gcp:artifactregistry/repository:Repository default {{location}}/{{repository_id}}
 $ pulumi import gcp:artifactregistry/repository:Repository default {{repository_id}}

Package Details

Repository
https://github.com/pulumi/pulumi-gcp
License
Apache-2.0
Notes

This Pulumi package is based on the google-beta Terraform Provider.