1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. dataform
  5. Repository
Google Cloud v8.23.0 published on Monday, Mar 24, 2025 by Pulumi

gcp.dataform.Repository

Explore with Pulumi AI

Example Usage

Dataform Repository

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

const secret = new gcp.secretmanager.Secret("secret", {
    secretId: "my-secret",
    replication: {
        auto: {},
    },
});
const secretVersion = new gcp.secretmanager.SecretVersion("secret_version", {
    secret: secret.id,
    secretData: "secret-data",
});
const keyring = new gcp.kms.KeyRing("keyring", {
    name: "example-key-ring",
    location: "us-central1",
});
const exampleKey = new gcp.kms.CryptoKey("example_key", {
    name: "example-crypto-key-name",
    keyRing: keyring.id,
});
const cryptoKeyBinding = new gcp.kms.CryptoKeyIAMBinding("crypto_key_binding", {
    cryptoKeyId: exampleKey.id,
    role: "roles/cloudkms.cryptoKeyEncrypterDecrypter",
    members: [`serviceAccount:service-${project.number}@gcp-sa-dataform.iam.gserviceaccount.com`],
});
const dataformRepository = new gcp.dataform.Repository("dataform_repository", {
    name: "dataform_repository",
    displayName: "dataform_repository",
    npmrcEnvironmentVariablesSecretVersion: secretVersion.id,
    kmsKeyName: exampleKey.id,
    deletionPolicy: "FORCE",
    labels: {
        label_foo1: "label-bar1",
    },
    gitRemoteSettings: {
        url: "https://github.com/OWNER/REPOSITORY.git",
        defaultBranch: "main",
        authenticationTokenSecretVersion: secretVersion.id,
    },
    workspaceCompilationOverrides: {
        defaultDatabase: "database",
        schemaSuffix: "_suffix",
        tablePrefix: "prefix_",
    },
}, {
    dependsOn: [cryptoKeyBinding],
});
Copy
import pulumi
import pulumi_gcp as gcp

secret = gcp.secretmanager.Secret("secret",
    secret_id="my-secret",
    replication={
        "auto": {},
    })
secret_version = gcp.secretmanager.SecretVersion("secret_version",
    secret=secret.id,
    secret_data="secret-data")
keyring = gcp.kms.KeyRing("keyring",
    name="example-key-ring",
    location="us-central1")
example_key = gcp.kms.CryptoKey("example_key",
    name="example-crypto-key-name",
    key_ring=keyring.id)
crypto_key_binding = gcp.kms.CryptoKeyIAMBinding("crypto_key_binding",
    crypto_key_id=example_key.id,
    role="roles/cloudkms.cryptoKeyEncrypterDecrypter",
    members=[f"serviceAccount:service-{project['number']}@gcp-sa-dataform.iam.gserviceaccount.com"])
dataform_repository = gcp.dataform.Repository("dataform_repository",
    name="dataform_repository",
    display_name="dataform_repository",
    npmrc_environment_variables_secret_version=secret_version.id,
    kms_key_name=example_key.id,
    deletion_policy="FORCE",
    labels={
        "label_foo1": "label-bar1",
    },
    git_remote_settings={
        "url": "https://github.com/OWNER/REPOSITORY.git",
        "default_branch": "main",
        "authentication_token_secret_version": secret_version.id,
    },
    workspace_compilation_overrides={
        "default_database": "database",
        "schema_suffix": "_suffix",
        "table_prefix": "prefix_",
    },
    opts = pulumi.ResourceOptions(depends_on=[crypto_key_binding]))
Copy
package main

import (
	"fmt"

	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/dataform"
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/kms"
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/secretmanager"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		secret, err := secretmanager.NewSecret(ctx, "secret", &secretmanager.SecretArgs{
			SecretId: pulumi.String("my-secret"),
			Replication: &secretmanager.SecretReplicationArgs{
				Auto: &secretmanager.SecretReplicationAutoArgs{},
			},
		})
		if err != nil {
			return err
		}
		secretVersion, err := secretmanager.NewSecretVersion(ctx, "secret_version", &secretmanager.SecretVersionArgs{
			Secret:     secret.ID(),
			SecretData: pulumi.String("secret-data"),
		})
		if err != nil {
			return err
		}
		keyring, err := kms.NewKeyRing(ctx, "keyring", &kms.KeyRingArgs{
			Name:     pulumi.String("example-key-ring"),
			Location: pulumi.String("us-central1"),
		})
		if err != nil {
			return err
		}
		exampleKey, err := kms.NewCryptoKey(ctx, "example_key", &kms.CryptoKeyArgs{
			Name:    pulumi.String("example-crypto-key-name"),
			KeyRing: keyring.ID(),
		})
		if err != nil {
			return err
		}
		cryptoKeyBinding, err := kms.NewCryptoKeyIAMBinding(ctx, "crypto_key_binding", &kms.CryptoKeyIAMBindingArgs{
			CryptoKeyId: exampleKey.ID(),
			Role:        pulumi.String("roles/cloudkms.cryptoKeyEncrypterDecrypter"),
			Members: pulumi.StringArray{
				pulumi.Sprintf("serviceAccount:service-%v@gcp-sa-dataform.iam.gserviceaccount.com", project.Number),
			},
		})
		if err != nil {
			return err
		}
		_, err = dataform.NewRepository(ctx, "dataform_repository", &dataform.RepositoryArgs{
			Name:                                   pulumi.String("dataform_repository"),
			DisplayName:                            pulumi.String("dataform_repository"),
			NpmrcEnvironmentVariablesSecretVersion: secretVersion.ID(),
			KmsKeyName:                             exampleKey.ID(),
			DeletionPolicy:                         pulumi.String("FORCE"),
			Labels: pulumi.StringMap{
				"label_foo1": pulumi.String("label-bar1"),
			},
			GitRemoteSettings: &dataform.RepositoryGitRemoteSettingsArgs{
				Url:                              pulumi.String("https://github.com/OWNER/REPOSITORY.git"),
				DefaultBranch:                    pulumi.String("main"),
				AuthenticationTokenSecretVersion: secretVersion.ID(),
			},
			WorkspaceCompilationOverrides: &dataform.RepositoryWorkspaceCompilationOverridesArgs{
				DefaultDatabase: pulumi.String("database"),
				SchemaSuffix:    pulumi.String("_suffix"),
				TablePrefix:     pulumi.String("prefix_"),
			},
		}, pulumi.DependsOn([]pulumi.Resource{
			cryptoKeyBinding,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;

return await Deployment.RunAsync(() => 
{
    var secret = new Gcp.SecretManager.Secret("secret", new()
    {
        SecretId = "my-secret",
        Replication = new Gcp.SecretManager.Inputs.SecretReplicationArgs
        {
            Auto = null,
        },
    });

    var secretVersion = new Gcp.SecretManager.SecretVersion("secret_version", new()
    {
        Secret = secret.Id,
        SecretData = "secret-data",
    });

    var keyring = new Gcp.Kms.KeyRing("keyring", new()
    {
        Name = "example-key-ring",
        Location = "us-central1",
    });

    var exampleKey = new Gcp.Kms.CryptoKey("example_key", new()
    {
        Name = "example-crypto-key-name",
        KeyRing = keyring.Id,
    });

    var cryptoKeyBinding = new Gcp.Kms.CryptoKeyIAMBinding("crypto_key_binding", new()
    {
        CryptoKeyId = exampleKey.Id,
        Role = "roles/cloudkms.cryptoKeyEncrypterDecrypter",
        Members = new[]
        {
            $"serviceAccount:service-{project.Number}@gcp-sa-dataform.iam.gserviceaccount.com",
        },
    });

    var dataformRepository = new Gcp.Dataform.Repository("dataform_repository", new()
    {
        Name = "dataform_repository",
        DisplayName = "dataform_repository",
        NpmrcEnvironmentVariablesSecretVersion = secretVersion.Id,
        KmsKeyName = exampleKey.Id,
        DeletionPolicy = "FORCE",
        Labels = 
        {
            { "label_foo1", "label-bar1" },
        },
        GitRemoteSettings = new Gcp.Dataform.Inputs.RepositoryGitRemoteSettingsArgs
        {
            Url = "https://github.com/OWNER/REPOSITORY.git",
            DefaultBranch = "main",
            AuthenticationTokenSecretVersion = secretVersion.Id,
        },
        WorkspaceCompilationOverrides = new Gcp.Dataform.Inputs.RepositoryWorkspaceCompilationOverridesArgs
        {
            DefaultDatabase = "database",
            SchemaSuffix = "_suffix",
            TablePrefix = "prefix_",
        },
    }, new CustomResourceOptions
    {
        DependsOn =
        {
            cryptoKeyBinding,
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.secretmanager.Secret;
import com.pulumi.gcp.secretmanager.SecretArgs;
import com.pulumi.gcp.secretmanager.inputs.SecretReplicationArgs;
import com.pulumi.gcp.secretmanager.inputs.SecretReplicationAutoArgs;
import com.pulumi.gcp.secretmanager.SecretVersion;
import com.pulumi.gcp.secretmanager.SecretVersionArgs;
import com.pulumi.gcp.kms.KeyRing;
import com.pulumi.gcp.kms.KeyRingArgs;
import com.pulumi.gcp.kms.CryptoKey;
import com.pulumi.gcp.kms.CryptoKeyArgs;
import com.pulumi.gcp.kms.CryptoKeyIAMBinding;
import com.pulumi.gcp.kms.CryptoKeyIAMBindingArgs;
import com.pulumi.gcp.dataform.Repository;
import com.pulumi.gcp.dataform.RepositoryArgs;
import com.pulumi.gcp.dataform.inputs.RepositoryGitRemoteSettingsArgs;
import com.pulumi.gcp.dataform.inputs.RepositoryWorkspaceCompilationOverridesArgs;
import com.pulumi.resources.CustomResourceOptions;
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 secret = new Secret("secret", SecretArgs.builder()
            .secretId("my-secret")
            .replication(SecretReplicationArgs.builder()
                .auto()
                .build())
            .build());

        var secretVersion = new SecretVersion("secretVersion", SecretVersionArgs.builder()
            .secret(secret.id())
            .secretData("secret-data")
            .build());

        var keyring = new KeyRing("keyring", KeyRingArgs.builder()
            .name("example-key-ring")
            .location("us-central1")
            .build());

        var exampleKey = new CryptoKey("exampleKey", CryptoKeyArgs.builder()
            .name("example-crypto-key-name")
            .keyRing(keyring.id())
            .build());

        var cryptoKeyBinding = new CryptoKeyIAMBinding("cryptoKeyBinding", CryptoKeyIAMBindingArgs.builder()
            .cryptoKeyId(exampleKey.id())
            .role("roles/cloudkms.cryptoKeyEncrypterDecrypter")
            .members(String.format("serviceAccount:service-%s@gcp-sa-dataform.iam.gserviceaccount.com", project.number()))
            .build());

        var dataformRepository = new Repository("dataformRepository", RepositoryArgs.builder()
            .name("dataform_repository")
            .displayName("dataform_repository")
            .npmrcEnvironmentVariablesSecretVersion(secretVersion.id())
            .kmsKeyName(exampleKey.id())
            .deletionPolicy("FORCE")
            .labels(Map.of("label_foo1", "label-bar1"))
            .gitRemoteSettings(RepositoryGitRemoteSettingsArgs.builder()
                .url("https://github.com/OWNER/REPOSITORY.git")
                .defaultBranch("main")
                .authenticationTokenSecretVersion(secretVersion.id())
                .build())
            .workspaceCompilationOverrides(RepositoryWorkspaceCompilationOverridesArgs.builder()
                .defaultDatabase("database")
                .schemaSuffix("_suffix")
                .tablePrefix("prefix_")
                .build())
            .build(), CustomResourceOptions.builder()
                .dependsOn(cryptoKeyBinding)
                .build());

    }
}
Copy
resources:
  secret:
    type: gcp:secretmanager:Secret
    properties:
      secretId: my-secret
      replication:
        auto: {}
  secretVersion:
    type: gcp:secretmanager:SecretVersion
    name: secret_version
    properties:
      secret: ${secret.id}
      secretData: secret-data
  keyring:
    type: gcp:kms:KeyRing
    properties:
      name: example-key-ring
      location: us-central1
  exampleKey:
    type: gcp:kms:CryptoKey
    name: example_key
    properties:
      name: example-crypto-key-name
      keyRing: ${keyring.id}
  cryptoKeyBinding:
    type: gcp:kms:CryptoKeyIAMBinding
    name: crypto_key_binding
    properties:
      cryptoKeyId: ${exampleKey.id}
      role: roles/cloudkms.cryptoKeyEncrypterDecrypter
      members:
        - serviceAccount:service-${project.number}@gcp-sa-dataform.iam.gserviceaccount.com
  dataformRepository:
    type: gcp:dataform:Repository
    name: dataform_repository
    properties:
      name: dataform_repository
      displayName: dataform_repository
      npmrcEnvironmentVariablesSecretVersion: ${secretVersion.id}
      kmsKeyName: ${exampleKey.id}
      deletionPolicy: FORCE
      labels:
        label_foo1: label-bar1
      gitRemoteSettings:
        url: https://github.com/OWNER/REPOSITORY.git
        defaultBranch: main
        authenticationTokenSecretVersion: ${secretVersion.id}
      workspaceCompilationOverrides:
        defaultDatabase: database
        schemaSuffix: _suffix
        tablePrefix: prefix_
    options:
      dependsOn:
        - ${cryptoKeyBinding}
Copy

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: Optional[RepositoryArgs] = None,
               opts: Optional[ResourceOptions] = None)

@overload
def Repository(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               deletion_policy: Optional[str] = None,
               display_name: Optional[str] = None,
               git_remote_settings: Optional[RepositoryGitRemoteSettingsArgs] = None,
               kms_key_name: Optional[str] = None,
               labels: Optional[Mapping[str, str]] = None,
               name: Optional[str] = None,
               npmrc_environment_variables_secret_version: Optional[str] = None,
               project: Optional[str] = None,
               region: Optional[str] = None,
               service_account: Optional[str] = None,
               workspace_compilation_overrides: Optional[RepositoryWorkspaceCompilationOverridesArgs] = None)
func NewRepository(ctx *Context, name string, args *RepositoryArgs, opts ...ResourceOption) (*Repository, error)
public Repository(string name, RepositoryArgs? args = null, CustomResourceOptions? opts = null)
public Repository(String name, RepositoryArgs args)
public Repository(String name, RepositoryArgs args, CustomResourceOptions options)
type: gcp:dataform:Repository
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. String
The unique name of the resource.
args This property is required. 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 examplerepositoryResourceResourceFromDataformrepository = new Gcp.Dataform.Repository("examplerepositoryResourceResourceFromDataformrepository", new()
{
    DeletionPolicy = "string",
    DisplayName = "string",
    GitRemoteSettings = new Gcp.Dataform.Inputs.RepositoryGitRemoteSettingsArgs
    {
        DefaultBranch = "string",
        Url = "string",
        AuthenticationTokenSecretVersion = "string",
        SshAuthenticationConfig = new Gcp.Dataform.Inputs.RepositoryGitRemoteSettingsSshAuthenticationConfigArgs
        {
            HostPublicKey = "string",
            UserPrivateKeySecretVersion = "string",
        },
        TokenStatus = "string",
    },
    KmsKeyName = "string",
    Labels = 
    {
        { "string", "string" },
    },
    Name = "string",
    NpmrcEnvironmentVariablesSecretVersion = "string",
    Project = "string",
    Region = "string",
    ServiceAccount = "string",
    WorkspaceCompilationOverrides = new Gcp.Dataform.Inputs.RepositoryWorkspaceCompilationOverridesArgs
    {
        DefaultDatabase = "string",
        SchemaSuffix = "string",
        TablePrefix = "string",
    },
});
Copy
example, err := dataform.NewRepository(ctx, "examplerepositoryResourceResourceFromDataformrepository", &dataform.RepositoryArgs{
	DeletionPolicy: pulumi.String("string"),
	DisplayName:    pulumi.String("string"),
	GitRemoteSettings: &dataform.RepositoryGitRemoteSettingsArgs{
		DefaultBranch:                    pulumi.String("string"),
		Url:                              pulumi.String("string"),
		AuthenticationTokenSecretVersion: pulumi.String("string"),
		SshAuthenticationConfig: &dataform.RepositoryGitRemoteSettingsSshAuthenticationConfigArgs{
			HostPublicKey:               pulumi.String("string"),
			UserPrivateKeySecretVersion: pulumi.String("string"),
		},
		TokenStatus: pulumi.String("string"),
	},
	KmsKeyName: pulumi.String("string"),
	Labels: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	Name:                                   pulumi.String("string"),
	NpmrcEnvironmentVariablesSecretVersion: pulumi.String("string"),
	Project:                                pulumi.String("string"),
	Region:                                 pulumi.String("string"),
	ServiceAccount:                         pulumi.String("string"),
	WorkspaceCompilationOverrides: &dataform.RepositoryWorkspaceCompilationOverridesArgs{
		DefaultDatabase: pulumi.String("string"),
		SchemaSuffix:    pulumi.String("string"),
		TablePrefix:     pulumi.String("string"),
	},
})
Copy
var examplerepositoryResourceResourceFromDataformrepository = new Repository("examplerepositoryResourceResourceFromDataformrepository", RepositoryArgs.builder()
    .deletionPolicy("string")
    .displayName("string")
    .gitRemoteSettings(RepositoryGitRemoteSettingsArgs.builder()
        .defaultBranch("string")
        .url("string")
        .authenticationTokenSecretVersion("string")
        .sshAuthenticationConfig(RepositoryGitRemoteSettingsSshAuthenticationConfigArgs.builder()
            .hostPublicKey("string")
            .userPrivateKeySecretVersion("string")
            .build())
        .tokenStatus("string")
        .build())
    .kmsKeyName("string")
    .labels(Map.of("string", "string"))
    .name("string")
    .npmrcEnvironmentVariablesSecretVersion("string")
    .project("string")
    .region("string")
    .serviceAccount("string")
    .workspaceCompilationOverrides(RepositoryWorkspaceCompilationOverridesArgs.builder()
        .defaultDatabase("string")
        .schemaSuffix("string")
        .tablePrefix("string")
        .build())
    .build());
Copy
examplerepository_resource_resource_from_dataformrepository = gcp.dataform.Repository("examplerepositoryResourceResourceFromDataformrepository",
    deletion_policy="string",
    display_name="string",
    git_remote_settings={
        "default_branch": "string",
        "url": "string",
        "authentication_token_secret_version": "string",
        "ssh_authentication_config": {
            "host_public_key": "string",
            "user_private_key_secret_version": "string",
        },
        "token_status": "string",
    },
    kms_key_name="string",
    labels={
        "string": "string",
    },
    name="string",
    npmrc_environment_variables_secret_version="string",
    project="string",
    region="string",
    service_account="string",
    workspace_compilation_overrides={
        "default_database": "string",
        "schema_suffix": "string",
        "table_prefix": "string",
    })
Copy
const examplerepositoryResourceResourceFromDataformrepository = new gcp.dataform.Repository("examplerepositoryResourceResourceFromDataformrepository", {
    deletionPolicy: "string",
    displayName: "string",
    gitRemoteSettings: {
        defaultBranch: "string",
        url: "string",
        authenticationTokenSecretVersion: "string",
        sshAuthenticationConfig: {
            hostPublicKey: "string",
            userPrivateKeySecretVersion: "string",
        },
        tokenStatus: "string",
    },
    kmsKeyName: "string",
    labels: {
        string: "string",
    },
    name: "string",
    npmrcEnvironmentVariablesSecretVersion: "string",
    project: "string",
    region: "string",
    serviceAccount: "string",
    workspaceCompilationOverrides: {
        defaultDatabase: "string",
        schemaSuffix: "string",
        tablePrefix: "string",
    },
});
Copy
type: gcp:dataform:Repository
properties:
    deletionPolicy: string
    displayName: string
    gitRemoteSettings:
        authenticationTokenSecretVersion: string
        defaultBranch: string
        sshAuthenticationConfig:
            hostPublicKey: string
            userPrivateKeySecretVersion: string
        tokenStatus: string
        url: string
    kmsKeyName: string
    labels:
        string: string
    name: string
    npmrcEnvironmentVariablesSecretVersion: string
    project: string
    region: string
    serviceAccount: string
    workspaceCompilationOverrides:
        defaultDatabase: string
        schemaSuffix: string
        tablePrefix: string
Copy

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:

DeletionPolicy string
Policy to control how the repository and its child resources are deleted. When set to FORCE, any child resources of this repository will also be deleted. Possible values: DELETE, FORCE. Defaults to DELETE.
DisplayName string
Optional. The repository's user-friendly name.
GitRemoteSettings RepositoryGitRemoteSettings
Optional. If set, configures this repository to be linked to a Git remote. Structure is documented below.
KmsKeyName string
Optional. The reference to a KMS encryption key. If provided, it will be used to encrypt user data in the repository and all child resources. It is not possible to add or update the encryption key after the repository is created. Example projects/[kms_project_id]/locations/[region]/keyRings/[key_region]/cryptoKeys/[key]
Labels Dictionary<string, string>

Optional. Repository user labels. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

Name Changes to this property will trigger replacement. string
The repository's name.


NpmrcEnvironmentVariablesSecretVersion string
Optional. The name of the Secret Manager secret version to be used to interpolate variables into the .npmrc file for package installation operations. Must be in the format projects//secrets//versions/*. The file itself must be in a JSON format.
Project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
Region Changes to this property will trigger replacement. string
A reference to the region
ServiceAccount string
The service account to run workflow invocations under.
WorkspaceCompilationOverrides RepositoryWorkspaceCompilationOverrides
If set, fields of workspaceCompilationOverrides override the default compilation settings that are specified in dataform.json when creating workspace-scoped compilation results. Structure is documented below.
DeletionPolicy string
Policy to control how the repository and its child resources are deleted. When set to FORCE, any child resources of this repository will also be deleted. Possible values: DELETE, FORCE. Defaults to DELETE.
DisplayName string
Optional. The repository's user-friendly name.
GitRemoteSettings RepositoryGitRemoteSettingsArgs
Optional. If set, configures this repository to be linked to a Git remote. Structure is documented below.
KmsKeyName string
Optional. The reference to a KMS encryption key. If provided, it will be used to encrypt user data in the repository and all child resources. It is not possible to add or update the encryption key after the repository is created. Example projects/[kms_project_id]/locations/[region]/keyRings/[key_region]/cryptoKeys/[key]
Labels map[string]string

Optional. Repository user labels. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

Name Changes to this property will trigger replacement. string
The repository's name.


NpmrcEnvironmentVariablesSecretVersion string
Optional. The name of the Secret Manager secret version to be used to interpolate variables into the .npmrc file for package installation operations. Must be in the format projects//secrets//versions/*. The file itself must be in a JSON format.
Project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
Region Changes to this property will trigger replacement. string
A reference to the region
ServiceAccount string
The service account to run workflow invocations under.
WorkspaceCompilationOverrides RepositoryWorkspaceCompilationOverridesArgs
If set, fields of workspaceCompilationOverrides override the default compilation settings that are specified in dataform.json when creating workspace-scoped compilation results. Structure is documented below.
deletionPolicy String
Policy to control how the repository and its child resources are deleted. When set to FORCE, any child resources of this repository will also be deleted. Possible values: DELETE, FORCE. Defaults to DELETE.
displayName String
Optional. The repository's user-friendly name.
gitRemoteSettings RepositoryGitRemoteSettings
Optional. If set, configures this repository to be linked to a Git remote. Structure is documented below.
kmsKeyName String
Optional. The reference to a KMS encryption key. If provided, it will be used to encrypt user data in the repository and all child resources. It is not possible to add or update the encryption key after the repository is created. Example projects/[kms_project_id]/locations/[region]/keyRings/[key_region]/cryptoKeys/[key]
labels Map<String,String>

Optional. Repository user labels. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

name Changes to this property will trigger replacement. String
The repository's name.


npmrcEnvironmentVariablesSecretVersion String
Optional. The name of the Secret Manager secret version to be used to interpolate variables into the .npmrc file for package installation operations. Must be in the format projects//secrets//versions/*. The file itself must be in a JSON format.
project Changes to this property will trigger replacement. String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
region Changes to this property will trigger replacement. String
A reference to the region
serviceAccount String
The service account to run workflow invocations under.
workspaceCompilationOverrides RepositoryWorkspaceCompilationOverrides
If set, fields of workspaceCompilationOverrides override the default compilation settings that are specified in dataform.json when creating workspace-scoped compilation results. Structure is documented below.
deletionPolicy string
Policy to control how the repository and its child resources are deleted. When set to FORCE, any child resources of this repository will also be deleted. Possible values: DELETE, FORCE. Defaults to DELETE.
displayName string
Optional. The repository's user-friendly name.
gitRemoteSettings RepositoryGitRemoteSettings
Optional. If set, configures this repository to be linked to a Git remote. Structure is documented below.
kmsKeyName string
Optional. The reference to a KMS encryption key. If provided, it will be used to encrypt user data in the repository and all child resources. It is not possible to add or update the encryption key after the repository is created. Example projects/[kms_project_id]/locations/[region]/keyRings/[key_region]/cryptoKeys/[key]
labels {[key: string]: string}

Optional. Repository user labels. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

name Changes to this property will trigger replacement. string
The repository's name.


npmrcEnvironmentVariablesSecretVersion string
Optional. The name of the Secret Manager secret version to be used to interpolate variables into the .npmrc file for package installation operations. Must be in the format projects//secrets//versions/*. The file itself must be in a JSON format.
project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
region Changes to this property will trigger replacement. string
A reference to the region
serviceAccount string
The service account to run workflow invocations under.
workspaceCompilationOverrides RepositoryWorkspaceCompilationOverrides
If set, fields of workspaceCompilationOverrides override the default compilation settings that are specified in dataform.json when creating workspace-scoped compilation results. Structure is documented below.
deletion_policy str
Policy to control how the repository and its child resources are deleted. When set to FORCE, any child resources of this repository will also be deleted. Possible values: DELETE, FORCE. Defaults to DELETE.
display_name str
Optional. The repository's user-friendly name.
git_remote_settings RepositoryGitRemoteSettingsArgs
Optional. If set, configures this repository to be linked to a Git remote. Structure is documented below.
kms_key_name str
Optional. The reference to a KMS encryption key. If provided, it will be used to encrypt user data in the repository and all child resources. It is not possible to add or update the encryption key after the repository is created. Example projects/[kms_project_id]/locations/[region]/keyRings/[key_region]/cryptoKeys/[key]
labels Mapping[str, str]

Optional. Repository user labels. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

name Changes to this property will trigger replacement. str
The repository's name.


npmrc_environment_variables_secret_version str
Optional. The name of the Secret Manager secret version to be used to interpolate variables into the .npmrc file for package installation operations. Must be in the format projects//secrets//versions/*. The file itself must be in a JSON format.
project Changes to this property will trigger replacement. str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
region Changes to this property will trigger replacement. str
A reference to the region
service_account str
The service account to run workflow invocations under.
workspace_compilation_overrides RepositoryWorkspaceCompilationOverridesArgs
If set, fields of workspaceCompilationOverrides override the default compilation settings that are specified in dataform.json when creating workspace-scoped compilation results. Structure is documented below.
deletionPolicy String
Policy to control how the repository and its child resources are deleted. When set to FORCE, any child resources of this repository will also be deleted. Possible values: DELETE, FORCE. Defaults to DELETE.
displayName String
Optional. The repository's user-friendly name.
gitRemoteSettings Property Map
Optional. If set, configures this repository to be linked to a Git remote. Structure is documented below.
kmsKeyName String
Optional. The reference to a KMS encryption key. If provided, it will be used to encrypt user data in the repository and all child resources. It is not possible to add or update the encryption key after the repository is created. Example projects/[kms_project_id]/locations/[region]/keyRings/[key_region]/cryptoKeys/[key]
labels Map<String>

Optional. Repository user labels. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

name Changes to this property will trigger replacement. String
The repository's name.


npmrcEnvironmentVariablesSecretVersion String
Optional. The name of the Secret Manager secret version to be used to interpolate variables into the .npmrc file for package installation operations. Must be in the format projects//secrets//versions/*. The file itself must be in a JSON format.
project Changes to this property will trigger replacement. String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
region Changes to this property will trigger replacement. String
A reference to the region
serviceAccount String
The service account to run workflow invocations under.
workspaceCompilationOverrides Property Map
If set, fields of workspaceCompilationOverrides override the default compilation settings that are specified in dataform.json when creating workspace-scoped compilation results. Structure is documented below.

Outputs

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

EffectiveLabels Dictionary<string, string>
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
Id string
The provider-assigned unique ID for this managed resource.
PulumiLabels Dictionary<string, string>
The combination of labels configured directly on the resource and default labels configured on the provider.
EffectiveLabels map[string]string
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
Id string
The provider-assigned unique ID for this managed resource.
PulumiLabels map[string]string
The combination of labels configured directly on the resource and default labels configured on the provider.
effectiveLabels Map<String,String>
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
id String
The provider-assigned unique ID for this managed resource.
pulumiLabels Map<String,String>
The combination of labels configured directly on the resource and default labels configured on the provider.
effectiveLabels {[key: string]: string}
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
id string
The provider-assigned unique ID for this managed resource.
pulumiLabels {[key: string]: string}
The combination of labels configured directly on the resource and default labels configured on the provider.
effective_labels Mapping[str, str]
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
id str
The provider-assigned unique ID for this managed resource.
pulumi_labels Mapping[str, str]
The combination of labels configured directly on the resource and default labels configured on the provider.
effectiveLabels Map<String>
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
id String
The provider-assigned unique ID for this managed resource.
pulumiLabels Map<String>
The combination of labels configured directly on the resource and default labels configured on the provider.

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,
        deletion_policy: Optional[str] = None,
        display_name: Optional[str] = None,
        effective_labels: Optional[Mapping[str, str]] = None,
        git_remote_settings: Optional[RepositoryGitRemoteSettingsArgs] = None,
        kms_key_name: Optional[str] = None,
        labels: Optional[Mapping[str, str]] = None,
        name: Optional[str] = None,
        npmrc_environment_variables_secret_version: Optional[str] = None,
        project: Optional[str] = None,
        pulumi_labels: Optional[Mapping[str, str]] = None,
        region: Optional[str] = None,
        service_account: Optional[str] = None,
        workspace_compilation_overrides: Optional[RepositoryWorkspaceCompilationOverridesArgs] = 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)
resources:  _:    type: gcp:dataform:Repository    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
DeletionPolicy string
Policy to control how the repository and its child resources are deleted. When set to FORCE, any child resources of this repository will also be deleted. Possible values: DELETE, FORCE. Defaults to DELETE.
DisplayName string
Optional. The repository's user-friendly name.
EffectiveLabels Dictionary<string, string>
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
GitRemoteSettings RepositoryGitRemoteSettings
Optional. If set, configures this repository to be linked to a Git remote. Structure is documented below.
KmsKeyName string
Optional. The reference to a KMS encryption key. If provided, it will be used to encrypt user data in the repository and all child resources. It is not possible to add or update the encryption key after the repository is created. Example projects/[kms_project_id]/locations/[region]/keyRings/[key_region]/cryptoKeys/[key]
Labels Dictionary<string, string>

Optional. Repository user labels. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

Name Changes to this property will trigger replacement. string
The repository's name.


NpmrcEnvironmentVariablesSecretVersion string
Optional. The name of the Secret Manager secret version to be used to interpolate variables into the .npmrc file for package installation operations. Must be in the format projects//secrets//versions/*. The file itself must be in a JSON format.
Project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
PulumiLabels Dictionary<string, string>
The combination of labels configured directly on the resource and default labels configured on the provider.
Region Changes to this property will trigger replacement. string
A reference to the region
ServiceAccount string
The service account to run workflow invocations under.
WorkspaceCompilationOverrides RepositoryWorkspaceCompilationOverrides
If set, fields of workspaceCompilationOverrides override the default compilation settings that are specified in dataform.json when creating workspace-scoped compilation results. Structure is documented below.
DeletionPolicy string
Policy to control how the repository and its child resources are deleted. When set to FORCE, any child resources of this repository will also be deleted. Possible values: DELETE, FORCE. Defaults to DELETE.
DisplayName string
Optional. The repository's user-friendly name.
EffectiveLabels map[string]string
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
GitRemoteSettings RepositoryGitRemoteSettingsArgs
Optional. If set, configures this repository to be linked to a Git remote. Structure is documented below.
KmsKeyName string
Optional. The reference to a KMS encryption key. If provided, it will be used to encrypt user data in the repository and all child resources. It is not possible to add or update the encryption key after the repository is created. Example projects/[kms_project_id]/locations/[region]/keyRings/[key_region]/cryptoKeys/[key]
Labels map[string]string

Optional. Repository user labels. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

Name Changes to this property will trigger replacement. string
The repository's name.


NpmrcEnvironmentVariablesSecretVersion string
Optional. The name of the Secret Manager secret version to be used to interpolate variables into the .npmrc file for package installation operations. Must be in the format projects//secrets//versions/*. The file itself must be in a JSON format.
Project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
PulumiLabels map[string]string
The combination of labels configured directly on the resource and default labels configured on the provider.
Region Changes to this property will trigger replacement. string
A reference to the region
ServiceAccount string
The service account to run workflow invocations under.
WorkspaceCompilationOverrides RepositoryWorkspaceCompilationOverridesArgs
If set, fields of workspaceCompilationOverrides override the default compilation settings that are specified in dataform.json when creating workspace-scoped compilation results. Structure is documented below.
deletionPolicy String
Policy to control how the repository and its child resources are deleted. When set to FORCE, any child resources of this repository will also be deleted. Possible values: DELETE, FORCE. Defaults to DELETE.
displayName String
Optional. The repository's user-friendly name.
effectiveLabels Map<String,String>
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
gitRemoteSettings RepositoryGitRemoteSettings
Optional. If set, configures this repository to be linked to a Git remote. Structure is documented below.
kmsKeyName String
Optional. The reference to a KMS encryption key. If provided, it will be used to encrypt user data in the repository and all child resources. It is not possible to add or update the encryption key after the repository is created. Example projects/[kms_project_id]/locations/[region]/keyRings/[key_region]/cryptoKeys/[key]
labels Map<String,String>

Optional. Repository user labels. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

name Changes to this property will trigger replacement. String
The repository's name.


npmrcEnvironmentVariablesSecretVersion String
Optional. The name of the Secret Manager secret version to be used to interpolate variables into the .npmrc file for package installation operations. Must be in the format projects//secrets//versions/*. The file itself must be in a JSON format.
project Changes to this property will trigger replacement. String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
pulumiLabels Map<String,String>
The combination of labels configured directly on the resource and default labels configured on the provider.
region Changes to this property will trigger replacement. String
A reference to the region
serviceAccount String
The service account to run workflow invocations under.
workspaceCompilationOverrides RepositoryWorkspaceCompilationOverrides
If set, fields of workspaceCompilationOverrides override the default compilation settings that are specified in dataform.json when creating workspace-scoped compilation results. Structure is documented below.
deletionPolicy string
Policy to control how the repository and its child resources are deleted. When set to FORCE, any child resources of this repository will also be deleted. Possible values: DELETE, FORCE. Defaults to DELETE.
displayName string
Optional. The repository's user-friendly name.
effectiveLabels {[key: string]: string}
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
gitRemoteSettings RepositoryGitRemoteSettings
Optional. If set, configures this repository to be linked to a Git remote. Structure is documented below.
kmsKeyName string
Optional. The reference to a KMS encryption key. If provided, it will be used to encrypt user data in the repository and all child resources. It is not possible to add or update the encryption key after the repository is created. Example projects/[kms_project_id]/locations/[region]/keyRings/[key_region]/cryptoKeys/[key]
labels {[key: string]: string}

Optional. Repository user labels. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

name Changes to this property will trigger replacement. string
The repository's name.


npmrcEnvironmentVariablesSecretVersion string
Optional. The name of the Secret Manager secret version to be used to interpolate variables into the .npmrc file for package installation operations. Must be in the format projects//secrets//versions/*. The file itself must be in a JSON format.
project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
pulumiLabels {[key: string]: string}
The combination of labels configured directly on the resource and default labels configured on the provider.
region Changes to this property will trigger replacement. string
A reference to the region
serviceAccount string
The service account to run workflow invocations under.
workspaceCompilationOverrides RepositoryWorkspaceCompilationOverrides
If set, fields of workspaceCompilationOverrides override the default compilation settings that are specified in dataform.json when creating workspace-scoped compilation results. Structure is documented below.
deletion_policy str
Policy to control how the repository and its child resources are deleted. When set to FORCE, any child resources of this repository will also be deleted. Possible values: DELETE, FORCE. Defaults to DELETE.
display_name str
Optional. The repository's user-friendly name.
effective_labels Mapping[str, str]
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
git_remote_settings RepositoryGitRemoteSettingsArgs
Optional. If set, configures this repository to be linked to a Git remote. Structure is documented below.
kms_key_name str
Optional. The reference to a KMS encryption key. If provided, it will be used to encrypt user data in the repository and all child resources. It is not possible to add or update the encryption key after the repository is created. Example projects/[kms_project_id]/locations/[region]/keyRings/[key_region]/cryptoKeys/[key]
labels Mapping[str, str]

Optional. Repository user labels. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

name Changes to this property will trigger replacement. str
The repository's name.


npmrc_environment_variables_secret_version str
Optional. The name of the Secret Manager secret version to be used to interpolate variables into the .npmrc file for package installation operations. Must be in the format projects//secrets//versions/*. The file itself must be in a JSON format.
project Changes to this property will trigger replacement. str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
pulumi_labels Mapping[str, str]
The combination of labels configured directly on the resource and default labels configured on the provider.
region Changes to this property will trigger replacement. str
A reference to the region
service_account str
The service account to run workflow invocations under.
workspace_compilation_overrides RepositoryWorkspaceCompilationOverridesArgs
If set, fields of workspaceCompilationOverrides override the default compilation settings that are specified in dataform.json when creating workspace-scoped compilation results. Structure is documented below.
deletionPolicy String
Policy to control how the repository and its child resources are deleted. When set to FORCE, any child resources of this repository will also be deleted. Possible values: DELETE, FORCE. Defaults to DELETE.
displayName String
Optional. The repository's user-friendly name.
effectiveLabels Map<String>
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
gitRemoteSettings Property Map
Optional. If set, configures this repository to be linked to a Git remote. Structure is documented below.
kmsKeyName String
Optional. The reference to a KMS encryption key. If provided, it will be used to encrypt user data in the repository and all child resources. It is not possible to add or update the encryption key after the repository is created. Example projects/[kms_project_id]/locations/[region]/keyRings/[key_region]/cryptoKeys/[key]
labels Map<String>

Optional. Repository user labels. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

name Changes to this property will trigger replacement. String
The repository's name.


npmrcEnvironmentVariablesSecretVersion String
Optional. The name of the Secret Manager secret version to be used to interpolate variables into the .npmrc file for package installation operations. Must be in the format projects//secrets//versions/*. The file itself must be in a JSON format.
project Changes to this property will trigger replacement. String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
pulumiLabels Map<String>
The combination of labels configured directly on the resource and default labels configured on the provider.
region Changes to this property will trigger replacement. String
A reference to the region
serviceAccount String
The service account to run workflow invocations under.
workspaceCompilationOverrides Property Map
If set, fields of workspaceCompilationOverrides override the default compilation settings that are specified in dataform.json when creating workspace-scoped compilation results. Structure is documented below.

Supporting Types

RepositoryGitRemoteSettings
, RepositoryGitRemoteSettingsArgs

DefaultBranch This property is required. string
The Git remote's default branch name.
Url This property is required. string
The Git remote's URL.
AuthenticationTokenSecretVersion string
The name of the Secret Manager secret version to use as an authentication token for Git operations. This secret is for assigning with HTTPS only(for SSH use ssh_authentication_config). Must be in the format projects//secrets//versions/*.
SshAuthenticationConfig RepositoryGitRemoteSettingsSshAuthenticationConfig
Authentication fields for remote uris using SSH protocol. Structure is documented below.
TokenStatus string
(Output) Indicates the status of the Git access token. https://cloud.google.com/dataform/reference/rest/v1beta1/projects.locations.repositories#TokenStatus
DefaultBranch This property is required. string
The Git remote's default branch name.
Url This property is required. string
The Git remote's URL.
AuthenticationTokenSecretVersion string
The name of the Secret Manager secret version to use as an authentication token for Git operations. This secret is for assigning with HTTPS only(for SSH use ssh_authentication_config). Must be in the format projects//secrets//versions/*.
SshAuthenticationConfig RepositoryGitRemoteSettingsSshAuthenticationConfig
Authentication fields for remote uris using SSH protocol. Structure is documented below.
TokenStatus string
(Output) Indicates the status of the Git access token. https://cloud.google.com/dataform/reference/rest/v1beta1/projects.locations.repositories#TokenStatus
defaultBranch This property is required. String
The Git remote's default branch name.
url This property is required. String
The Git remote's URL.
authenticationTokenSecretVersion String
The name of the Secret Manager secret version to use as an authentication token for Git operations. This secret is for assigning with HTTPS only(for SSH use ssh_authentication_config). Must be in the format projects//secrets//versions/*.
sshAuthenticationConfig RepositoryGitRemoteSettingsSshAuthenticationConfig
Authentication fields for remote uris using SSH protocol. Structure is documented below.
tokenStatus String
(Output) Indicates the status of the Git access token. https://cloud.google.com/dataform/reference/rest/v1beta1/projects.locations.repositories#TokenStatus
defaultBranch This property is required. string
The Git remote's default branch name.
url This property is required. string
The Git remote's URL.
authenticationTokenSecretVersion string
The name of the Secret Manager secret version to use as an authentication token for Git operations. This secret is for assigning with HTTPS only(for SSH use ssh_authentication_config). Must be in the format projects//secrets//versions/*.
sshAuthenticationConfig RepositoryGitRemoteSettingsSshAuthenticationConfig
Authentication fields for remote uris using SSH protocol. Structure is documented below.
tokenStatus string
(Output) Indicates the status of the Git access token. https://cloud.google.com/dataform/reference/rest/v1beta1/projects.locations.repositories#TokenStatus
default_branch This property is required. str
The Git remote's default branch name.
url This property is required. str
The Git remote's URL.
authentication_token_secret_version str
The name of the Secret Manager secret version to use as an authentication token for Git operations. This secret is for assigning with HTTPS only(for SSH use ssh_authentication_config). Must be in the format projects//secrets//versions/*.
ssh_authentication_config RepositoryGitRemoteSettingsSshAuthenticationConfig
Authentication fields for remote uris using SSH protocol. Structure is documented below.
token_status str
(Output) Indicates the status of the Git access token. https://cloud.google.com/dataform/reference/rest/v1beta1/projects.locations.repositories#TokenStatus
defaultBranch This property is required. String
The Git remote's default branch name.
url This property is required. String
The Git remote's URL.
authenticationTokenSecretVersion String
The name of the Secret Manager secret version to use as an authentication token for Git operations. This secret is for assigning with HTTPS only(for SSH use ssh_authentication_config). Must be in the format projects//secrets//versions/*.
sshAuthenticationConfig Property Map
Authentication fields for remote uris using SSH protocol. Structure is documented below.
tokenStatus String
(Output) Indicates the status of the Git access token. https://cloud.google.com/dataform/reference/rest/v1beta1/projects.locations.repositories#TokenStatus

RepositoryGitRemoteSettingsSshAuthenticationConfig
, RepositoryGitRemoteSettingsSshAuthenticationConfigArgs

HostPublicKey This property is required. string
Content of a public SSH key to verify an identity of a remote Git host.
UserPrivateKeySecretVersion This property is required. string
The name of the Secret Manager secret version to use as a ssh private key for Git operations. Must be in the format projects//secrets//versions/*.
HostPublicKey This property is required. string
Content of a public SSH key to verify an identity of a remote Git host.
UserPrivateKeySecretVersion This property is required. string
The name of the Secret Manager secret version to use as a ssh private key for Git operations. Must be in the format projects//secrets//versions/*.
hostPublicKey This property is required. String
Content of a public SSH key to verify an identity of a remote Git host.
userPrivateKeySecretVersion This property is required. String
The name of the Secret Manager secret version to use as a ssh private key for Git operations. Must be in the format projects//secrets//versions/*.
hostPublicKey This property is required. string
Content of a public SSH key to verify an identity of a remote Git host.
userPrivateKeySecretVersion This property is required. string
The name of the Secret Manager secret version to use as a ssh private key for Git operations. Must be in the format projects//secrets//versions/*.
host_public_key This property is required. str
Content of a public SSH key to verify an identity of a remote Git host.
user_private_key_secret_version This property is required. str
The name of the Secret Manager secret version to use as a ssh private key for Git operations. Must be in the format projects//secrets//versions/*.
hostPublicKey This property is required. String
Content of a public SSH key to verify an identity of a remote Git host.
userPrivateKeySecretVersion This property is required. String
The name of the Secret Manager secret version to use as a ssh private key for Git operations. Must be in the format projects//secrets//versions/*.

RepositoryWorkspaceCompilationOverrides
, RepositoryWorkspaceCompilationOverridesArgs

DefaultDatabase string
The default database (Google Cloud project ID).
SchemaSuffix string
The suffix that should be appended to all schema (BigQuery dataset ID) names.
TablePrefix string
The prefix that should be prepended to all table names.
DefaultDatabase string
The default database (Google Cloud project ID).
SchemaSuffix string
The suffix that should be appended to all schema (BigQuery dataset ID) names.
TablePrefix string
The prefix that should be prepended to all table names.
defaultDatabase String
The default database (Google Cloud project ID).
schemaSuffix String
The suffix that should be appended to all schema (BigQuery dataset ID) names.
tablePrefix String
The prefix that should be prepended to all table names.
defaultDatabase string
The default database (Google Cloud project ID).
schemaSuffix string
The suffix that should be appended to all schema (BigQuery dataset ID) names.
tablePrefix string
The prefix that should be prepended to all table names.
default_database str
The default database (Google Cloud project ID).
schema_suffix str
The suffix that should be appended to all schema (BigQuery dataset ID) names.
table_prefix str
The prefix that should be prepended to all table names.
defaultDatabase String
The default database (Google Cloud project ID).
schemaSuffix String
The suffix that should be appended to all schema (BigQuery dataset ID) names.
tablePrefix String
The prefix that should be prepended to all table names.

Import

Repository can be imported using any of these accepted formats:

  • projects/{{project}}/locations/{{region}}/repositories/{{name}}

  • {{project}}/{{region}}/{{name}}

  • {{region}}/{{name}}

  • {{name}}

When using the pulumi import command, Repository can be imported using one of the formats above. For example:

$ pulumi import gcp:dataform/repository:Repository default projects/{{project}}/locations/{{region}}/repositories/{{name}}
Copy
$ pulumi import gcp:dataform/repository:Repository default {{project}}/{{region}}/{{name}}
Copy
$ pulumi import gcp:dataform/repository:Repository default {{region}}/{{name}}
Copy
$ pulumi import gcp:dataform/repository:Repository default {{name}}
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Google Cloud (GCP) Classic pulumi/pulumi-gcp
License
Apache-2.0
Notes
This Pulumi package is based on the google-beta Terraform Provider.