1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. dataform
  5. Repository
Google Cloud Classic v7.16.0 published on Wednesday, Mar 27, 2024 by Pulumi

gcp.dataform.Repository

Explore with Pulumi AI

gcp logo
Google Cloud Classic v7.16.0 published on Wednesday, Mar 27, 2024 by Pulumi

    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 dataformRepository = new gcp.dataform.Repository("dataform_repository", {
        name: "dataform_repository",
        displayName: "dataform_repository",
        npmrcEnvironmentVariablesSecretVersion: secretVersion.id,
        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_",
        },
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    secret = gcp.secretmanager.Secret("secret",
        secret_id="my-secret",
        replication=gcp.secretmanager.SecretReplicationArgs(
            auto=gcp.secretmanager.SecretReplicationAutoArgs(),
        ))
    secret_version = gcp.secretmanager.SecretVersion("secret_version",
        secret=secret.id,
        secret_data="secret-data")
    dataform_repository = gcp.dataform.Repository("dataform_repository",
        name="dataform_repository",
        display_name="dataform_repository",
        npmrc_environment_variables_secret_version=secret_version.id,
        labels={
            "label_foo1": "label-bar1",
        },
        git_remote_settings=gcp.dataform.RepositoryGitRemoteSettingsArgs(
            url="https://github.com/OWNER/REPOSITORY.git",
            default_branch="main",
            authentication_token_secret_version=secret_version.id,
        ),
        workspace_compilation_overrides=gcp.dataform.RepositoryWorkspaceCompilationOverridesArgs(
            default_database="database",
            schema_suffix="_suffix",
            table_prefix="prefix_",
        ))
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/dataform"
    	"github.com/pulumi/pulumi-gcp/sdk/v7/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: nil,
    			},
    		})
    		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
    		}
    		_, err = dataform.NewRepository(ctx, "dataform_repository", &dataform.RepositoryArgs{
    			Name:                                   pulumi.String("dataform_repository"),
    			DisplayName:                            pulumi.String("dataform_repository"),
    			NpmrcEnvironmentVariablesSecretVersion: secretVersion.ID(),
    			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_"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    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 dataformRepository = new Gcp.Dataform.Repository("dataform_repository", new()
        {
            Name = "dataform_repository",
            DisplayName = "dataform_repository",
            NpmrcEnvironmentVariablesSecretVersion = secretVersion.Id,
            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_",
            },
        });
    
    });
    
    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.dataform.Repository;
    import com.pulumi.gcp.dataform.RepositoryArgs;
    import com.pulumi.gcp.dataform.inputs.RepositoryGitRemoteSettingsArgs;
    import com.pulumi.gcp.dataform.inputs.RepositoryWorkspaceCompilationOverridesArgs;
    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 dataformRepository = new Repository("dataformRepository", RepositoryArgs.builder()        
                .name("dataform_repository")
                .displayName("dataform_repository")
                .npmrcEnvironmentVariablesSecretVersion(secretVersion.id())
                .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());
    
        }
    }
    
    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
      dataformRepository:
        type: gcp:dataform:Repository
        name: dataform_repository
        properties:
          name: dataform_repository
          displayName: dataform_repository
          npmrcEnvironmentVariablesSecretVersion: ${secretVersion.id}
          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_
    

    Create Repository Resource

    new Repository(name: string, args?: RepositoryArgs, opts?: CustomResourceOptions);
    @overload
    def Repository(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   display_name: Optional[str] = None,
                   git_remote_settings: Optional[RepositoryGitRemoteSettingsArgs] = 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)
    @overload
    def Repository(resource_name: str,
                   args: Optional[RepositoryArgs] = None,
                   opts: Optional[ResourceOptions] = 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.
    
    
    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:

    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.
    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 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 string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    Region 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.
    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.
    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 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 string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    Region 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.
    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.
    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 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 String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    region 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.
    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.
    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 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 string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    region 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.
    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.
    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 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 str
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    region 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.
    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.
    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 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 String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    region 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,
            display_name: Optional[str] = None,
            effective_labels: Optional[Mapping[str, str]] = None,
            git_remote_settings: Optional[RepositoryGitRemoteSettingsArgs] = 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)
    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:
    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.
    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 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 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 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.
    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.
    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 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 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 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.
    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.
    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 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 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 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.
    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.
    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 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 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 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.
    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.
    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 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 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 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.
    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.
    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 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 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 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 string
    The Git remote's default branch name.
    Url 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 string
    The Git remote's default branch name.
    Url 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 String
    The Git remote's default branch name.
    url 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 string
    The Git remote's default branch name.
    url 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 str
    The Git remote's default branch name.
    url 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 String
    The Git remote's default branch name.
    url 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 string
    Content of a public SSH key to verify an identity of a remote Git host.
    UserPrivateKeySecretVersion 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 string
    Content of a public SSH key to verify an identity of a remote Git host.
    UserPrivateKeySecretVersion 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 String
    Content of a public SSH key to verify an identity of a remote Git host.
    userPrivateKeySecretVersion 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 string
    Content of a public SSH key to verify an identity of a remote Git host.
    userPrivateKeySecretVersion 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 str
    Content of a public SSH key to verify an identity of a remote Git host.
    user_private_key_secret_version 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 String
    Content of a public SSH key to verify an identity of a remote Git host.
    userPrivateKeySecretVersion 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}}
    
    $ pulumi import gcp:dataform/repository:Repository default {{project}}/{{region}}/{{name}}
    
    $ pulumi import gcp:dataform/repository:Repository default {{region}}/{{name}}
    
    $ pulumi import gcp:dataform/repository:Repository default {{name}}
    

    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.
    gcp logo
    Google Cloud Classic v7.16.0 published on Wednesday, Mar 27, 2024 by Pulumi