Documentation ¶
Index ¶
- type Repository
- type RepositoryArgs
- type RepositoryArray
- type RepositoryArrayInput
- type RepositoryArrayOutput
- func (RepositoryArrayOutput) ElementType() reflect.Type
- func (o RepositoryArrayOutput) Index(i pulumi.IntInput) RepositoryOutput
- func (o RepositoryArrayOutput) ToRepositoryArrayOutput() RepositoryArrayOutput
- func (o RepositoryArrayOutput) ToRepositoryArrayOutputWithContext(ctx context.Context) RepositoryArrayOutput
- type RepositoryGitRemoteSettings
- type RepositoryGitRemoteSettingsArgs
- func (RepositoryGitRemoteSettingsArgs) ElementType() reflect.Type
- func (i RepositoryGitRemoteSettingsArgs) ToRepositoryGitRemoteSettingsOutput() RepositoryGitRemoteSettingsOutput
- func (i RepositoryGitRemoteSettingsArgs) ToRepositoryGitRemoteSettingsOutputWithContext(ctx context.Context) RepositoryGitRemoteSettingsOutput
- func (i RepositoryGitRemoteSettingsArgs) ToRepositoryGitRemoteSettingsPtrOutput() RepositoryGitRemoteSettingsPtrOutput
- func (i RepositoryGitRemoteSettingsArgs) ToRepositoryGitRemoteSettingsPtrOutputWithContext(ctx context.Context) RepositoryGitRemoteSettingsPtrOutput
- type RepositoryGitRemoteSettingsInput
- type RepositoryGitRemoteSettingsOutput
- func (o RepositoryGitRemoteSettingsOutput) AuthenticationTokenSecretVersion() pulumi.StringOutput
- func (o RepositoryGitRemoteSettingsOutput) DefaultBranch() pulumi.StringOutput
- func (RepositoryGitRemoteSettingsOutput) ElementType() reflect.Type
- func (o RepositoryGitRemoteSettingsOutput) ToRepositoryGitRemoteSettingsOutput() RepositoryGitRemoteSettingsOutput
- func (o RepositoryGitRemoteSettingsOutput) ToRepositoryGitRemoteSettingsOutputWithContext(ctx context.Context) RepositoryGitRemoteSettingsOutput
- func (o RepositoryGitRemoteSettingsOutput) ToRepositoryGitRemoteSettingsPtrOutput() RepositoryGitRemoteSettingsPtrOutput
- func (o RepositoryGitRemoteSettingsOutput) ToRepositoryGitRemoteSettingsPtrOutputWithContext(ctx context.Context) RepositoryGitRemoteSettingsPtrOutput
- func (o RepositoryGitRemoteSettingsOutput) TokenStatus() pulumi.StringPtrOutput
- func (o RepositoryGitRemoteSettingsOutput) Url() pulumi.StringOutput
- type RepositoryGitRemoteSettingsPtrInput
- type RepositoryGitRemoteSettingsPtrOutput
- func (o RepositoryGitRemoteSettingsPtrOutput) AuthenticationTokenSecretVersion() pulumi.StringPtrOutput
- func (o RepositoryGitRemoteSettingsPtrOutput) DefaultBranch() pulumi.StringPtrOutput
- func (o RepositoryGitRemoteSettingsPtrOutput) Elem() RepositoryGitRemoteSettingsOutput
- func (RepositoryGitRemoteSettingsPtrOutput) ElementType() reflect.Type
- func (o RepositoryGitRemoteSettingsPtrOutput) ToRepositoryGitRemoteSettingsPtrOutput() RepositoryGitRemoteSettingsPtrOutput
- func (o RepositoryGitRemoteSettingsPtrOutput) ToRepositoryGitRemoteSettingsPtrOutputWithContext(ctx context.Context) RepositoryGitRemoteSettingsPtrOutput
- func (o RepositoryGitRemoteSettingsPtrOutput) TokenStatus() pulumi.StringPtrOutput
- func (o RepositoryGitRemoteSettingsPtrOutput) Url() pulumi.StringPtrOutput
- type RepositoryInput
- type RepositoryMap
- type RepositoryMapInput
- type RepositoryMapOutput
- func (RepositoryMapOutput) ElementType() reflect.Type
- func (o RepositoryMapOutput) MapIndex(k pulumi.StringInput) RepositoryOutput
- func (o RepositoryMapOutput) ToRepositoryMapOutput() RepositoryMapOutput
- func (o RepositoryMapOutput) ToRepositoryMapOutputWithContext(ctx context.Context) RepositoryMapOutput
- type RepositoryOutput
- func (RepositoryOutput) ElementType() reflect.Type
- func (o RepositoryOutput) GitRemoteSettings() RepositoryGitRemoteSettingsPtrOutput
- func (o RepositoryOutput) Name() pulumi.StringOutput
- func (o RepositoryOutput) Project() pulumi.StringOutput
- func (o RepositoryOutput) Region() pulumi.StringPtrOutput
- func (o RepositoryOutput) ToRepositoryOutput() RepositoryOutput
- func (o RepositoryOutput) ToRepositoryOutputWithContext(ctx context.Context) RepositoryOutput
- type RepositoryState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository struct { pulumi.CustomResourceState // Optional. If set, configures this repository to be linked to a Git remote. // Structure is documented below. GitRemoteSettings RepositoryGitRemoteSettingsPtrOutput `pulumi:"gitRemoteSettings"` // The repository's name. Name pulumi.StringOutput `pulumi:"name"` // The ID of the project in which the resource belongs. // If it is not provided, the provider project is used. Project pulumi.StringOutput `pulumi:"project"` // A reference to the region Region pulumi.StringPtrOutput `pulumi:"region"` }
## Example Usage ### Dataform Repository
```go package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/dataform" "github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/secretmanager" "github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/sourcerepo" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { gitRepository, err := sourcerepo.NewRepository(ctx, "gitRepository", nil, pulumi.Provider(google_beta)) if err != nil { return err } secret, err := secretmanager.NewSecret(ctx, "secret", &secretmanager.SecretArgs{ SecretId: pulumi.String("secret"), Replication: &secretmanager.SecretReplicationArgs{ Automatic: pulumi.Bool(true), }, }, pulumi.Provider(google_beta)) if err != nil { return err } secretVersion, err := secretmanager.NewSecretVersion(ctx, "secretVersion", &secretmanager.SecretVersionArgs{ Secret: secret.ID(), SecretData: pulumi.String("secret-data"), }, pulumi.Provider(google_beta)) if err != nil { return err } _, err = dataform.NewRepository(ctx, "dataformRespository", &dataform.RepositoryArgs{ GitRemoteSettings: &dataform.RepositoryGitRemoteSettingsArgs{ Url: gitRepository.Url, DefaultBranch: pulumi.String("main"), AuthenticationTokenSecretVersion: secretVersion.ID(), }, }, pulumi.Provider(google_beta)) if err != nil { return err } return nil }) }
```
## Import
Repository can be imported using any of these accepted formats ¶
```sh
$ pulumi import gcp:dataform/repository:Repository default projects/{{project}}/locations/{{region}}/repositories/{{name}}
```
```sh
$ pulumi import gcp:dataform/repository:Repository default {{project}}/{{region}}/{{name}}
```
```sh
$ pulumi import gcp:dataform/repository:Repository default {{region}}/{{name}}
```
```sh
$ pulumi import gcp:dataform/repository:Repository default {{name}}
```
func GetRepository ¶
func GetRepository(ctx *pulumi.Context, name string, id pulumi.IDInput, state *RepositoryState, opts ...pulumi.ResourceOption) (*Repository, error)
GetRepository gets an existing Repository resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewRepository ¶
func NewRepository(ctx *pulumi.Context, name string, args *RepositoryArgs, opts ...pulumi.ResourceOption) (*Repository, error)
NewRepository registers a new resource with the given unique name, arguments, and options.
func (*Repository) ElementType ¶
func (*Repository) ElementType() reflect.Type
func (*Repository) ToRepositoryOutput ¶
func (i *Repository) ToRepositoryOutput() RepositoryOutput
func (*Repository) ToRepositoryOutputWithContext ¶
func (i *Repository) ToRepositoryOutputWithContext(ctx context.Context) RepositoryOutput
type RepositoryArgs ¶
type RepositoryArgs struct { // Optional. If set, configures this repository to be linked to a Git remote. // Structure is documented below. GitRemoteSettings RepositoryGitRemoteSettingsPtrInput // The repository's name. Name pulumi.StringPtrInput // The ID of the project in which the resource belongs. // If it is not provided, the provider project is used. Project pulumi.StringPtrInput // A reference to the region Region pulumi.StringPtrInput }
The set of arguments for constructing a Repository resource.
func (RepositoryArgs) ElementType ¶
func (RepositoryArgs) ElementType() reflect.Type
type RepositoryArray ¶
type RepositoryArray []RepositoryInput
func (RepositoryArray) ElementType ¶
func (RepositoryArray) ElementType() reflect.Type
func (RepositoryArray) ToRepositoryArrayOutput ¶
func (i RepositoryArray) ToRepositoryArrayOutput() RepositoryArrayOutput
func (RepositoryArray) ToRepositoryArrayOutputWithContext ¶
func (i RepositoryArray) ToRepositoryArrayOutputWithContext(ctx context.Context) RepositoryArrayOutput
type RepositoryArrayInput ¶
type RepositoryArrayInput interface { pulumi.Input ToRepositoryArrayOutput() RepositoryArrayOutput ToRepositoryArrayOutputWithContext(context.Context) RepositoryArrayOutput }
RepositoryArrayInput is an input type that accepts RepositoryArray and RepositoryArrayOutput values. You can construct a concrete instance of `RepositoryArrayInput` via:
RepositoryArray{ RepositoryArgs{...} }
type RepositoryArrayOutput ¶
type RepositoryArrayOutput struct{ *pulumi.OutputState }
func (RepositoryArrayOutput) ElementType ¶
func (RepositoryArrayOutput) ElementType() reflect.Type
func (RepositoryArrayOutput) Index ¶
func (o RepositoryArrayOutput) Index(i pulumi.IntInput) RepositoryOutput
func (RepositoryArrayOutput) ToRepositoryArrayOutput ¶
func (o RepositoryArrayOutput) ToRepositoryArrayOutput() RepositoryArrayOutput
func (RepositoryArrayOutput) ToRepositoryArrayOutputWithContext ¶
func (o RepositoryArrayOutput) ToRepositoryArrayOutputWithContext(ctx context.Context) RepositoryArrayOutput
type RepositoryGitRemoteSettings ¶
type RepositoryGitRemoteSettings struct { // The name of the Secret Manager secret version to use as an authentication token for Git operations. Must be in the format projects/*/secrets/*/versions/*. AuthenticationTokenSecretVersion string `pulumi:"authenticationTokenSecretVersion"` // The Git remote's default branch name. DefaultBranch string `pulumi:"defaultBranch"` // - // Indicates the status of the Git access token. https://cloud.google.com/dataform/reference/rest/v1beta1/projects.locations.repositories#TokenStatus TokenStatus *string `pulumi:"tokenStatus"` // The Git remote's URL. Url string `pulumi:"url"` }
type RepositoryGitRemoteSettingsArgs ¶
type RepositoryGitRemoteSettingsArgs struct { // The name of the Secret Manager secret version to use as an authentication token for Git operations. Must be in the format projects/*/secrets/*/versions/*. AuthenticationTokenSecretVersion pulumi.StringInput `pulumi:"authenticationTokenSecretVersion"` // The Git remote's default branch name. DefaultBranch pulumi.StringInput `pulumi:"defaultBranch"` // - // Indicates the status of the Git access token. https://cloud.google.com/dataform/reference/rest/v1beta1/projects.locations.repositories#TokenStatus TokenStatus pulumi.StringPtrInput `pulumi:"tokenStatus"` // The Git remote's URL. Url pulumi.StringInput `pulumi:"url"` }
func (RepositoryGitRemoteSettingsArgs) ElementType ¶
func (RepositoryGitRemoteSettingsArgs) ElementType() reflect.Type
func (RepositoryGitRemoteSettingsArgs) ToRepositoryGitRemoteSettingsOutput ¶
func (i RepositoryGitRemoteSettingsArgs) ToRepositoryGitRemoteSettingsOutput() RepositoryGitRemoteSettingsOutput
func (RepositoryGitRemoteSettingsArgs) ToRepositoryGitRemoteSettingsOutputWithContext ¶
func (i RepositoryGitRemoteSettingsArgs) ToRepositoryGitRemoteSettingsOutputWithContext(ctx context.Context) RepositoryGitRemoteSettingsOutput
func (RepositoryGitRemoteSettingsArgs) ToRepositoryGitRemoteSettingsPtrOutput ¶
func (i RepositoryGitRemoteSettingsArgs) ToRepositoryGitRemoteSettingsPtrOutput() RepositoryGitRemoteSettingsPtrOutput
func (RepositoryGitRemoteSettingsArgs) ToRepositoryGitRemoteSettingsPtrOutputWithContext ¶
func (i RepositoryGitRemoteSettingsArgs) ToRepositoryGitRemoteSettingsPtrOutputWithContext(ctx context.Context) RepositoryGitRemoteSettingsPtrOutput
type RepositoryGitRemoteSettingsInput ¶
type RepositoryGitRemoteSettingsInput interface { pulumi.Input ToRepositoryGitRemoteSettingsOutput() RepositoryGitRemoteSettingsOutput ToRepositoryGitRemoteSettingsOutputWithContext(context.Context) RepositoryGitRemoteSettingsOutput }
RepositoryGitRemoteSettingsInput is an input type that accepts RepositoryGitRemoteSettingsArgs and RepositoryGitRemoteSettingsOutput values. You can construct a concrete instance of `RepositoryGitRemoteSettingsInput` via:
RepositoryGitRemoteSettingsArgs{...}
type RepositoryGitRemoteSettingsOutput ¶
type RepositoryGitRemoteSettingsOutput struct{ *pulumi.OutputState }
func (RepositoryGitRemoteSettingsOutput) AuthenticationTokenSecretVersion ¶
func (o RepositoryGitRemoteSettingsOutput) AuthenticationTokenSecretVersion() pulumi.StringOutput
The name of the Secret Manager secret version to use as an authentication token for Git operations. Must be in the format projects/*/secrets/*/versions/*.
func (RepositoryGitRemoteSettingsOutput) DefaultBranch ¶
func (o RepositoryGitRemoteSettingsOutput) DefaultBranch() pulumi.StringOutput
The Git remote's default branch name.
func (RepositoryGitRemoteSettingsOutput) ElementType ¶
func (RepositoryGitRemoteSettingsOutput) ElementType() reflect.Type
func (RepositoryGitRemoteSettingsOutput) ToRepositoryGitRemoteSettingsOutput ¶
func (o RepositoryGitRemoteSettingsOutput) ToRepositoryGitRemoteSettingsOutput() RepositoryGitRemoteSettingsOutput
func (RepositoryGitRemoteSettingsOutput) ToRepositoryGitRemoteSettingsOutputWithContext ¶
func (o RepositoryGitRemoteSettingsOutput) ToRepositoryGitRemoteSettingsOutputWithContext(ctx context.Context) RepositoryGitRemoteSettingsOutput
func (RepositoryGitRemoteSettingsOutput) ToRepositoryGitRemoteSettingsPtrOutput ¶
func (o RepositoryGitRemoteSettingsOutput) ToRepositoryGitRemoteSettingsPtrOutput() RepositoryGitRemoteSettingsPtrOutput
func (RepositoryGitRemoteSettingsOutput) ToRepositoryGitRemoteSettingsPtrOutputWithContext ¶
func (o RepositoryGitRemoteSettingsOutput) ToRepositoryGitRemoteSettingsPtrOutputWithContext(ctx context.Context) RepositoryGitRemoteSettingsPtrOutput
func (RepositoryGitRemoteSettingsOutput) TokenStatus ¶
func (o RepositoryGitRemoteSettingsOutput) TokenStatus() pulumi.StringPtrOutput
- Indicates the status of the Git access token. https://cloud.google.com/dataform/reference/rest/v1beta1/projects.locations.repositories#TokenStatus
func (RepositoryGitRemoteSettingsOutput) Url ¶
func (o RepositoryGitRemoteSettingsOutput) Url() pulumi.StringOutput
The Git remote's URL.
type RepositoryGitRemoteSettingsPtrInput ¶
type RepositoryGitRemoteSettingsPtrInput interface { pulumi.Input ToRepositoryGitRemoteSettingsPtrOutput() RepositoryGitRemoteSettingsPtrOutput ToRepositoryGitRemoteSettingsPtrOutputWithContext(context.Context) RepositoryGitRemoteSettingsPtrOutput }
RepositoryGitRemoteSettingsPtrInput is an input type that accepts RepositoryGitRemoteSettingsArgs, RepositoryGitRemoteSettingsPtr and RepositoryGitRemoteSettingsPtrOutput values. You can construct a concrete instance of `RepositoryGitRemoteSettingsPtrInput` via:
RepositoryGitRemoteSettingsArgs{...} or: nil
func RepositoryGitRemoteSettingsPtr ¶
func RepositoryGitRemoteSettingsPtr(v *RepositoryGitRemoteSettingsArgs) RepositoryGitRemoteSettingsPtrInput
type RepositoryGitRemoteSettingsPtrOutput ¶
type RepositoryGitRemoteSettingsPtrOutput struct{ *pulumi.OutputState }
func (RepositoryGitRemoteSettingsPtrOutput) AuthenticationTokenSecretVersion ¶
func (o RepositoryGitRemoteSettingsPtrOutput) AuthenticationTokenSecretVersion() pulumi.StringPtrOutput
The name of the Secret Manager secret version to use as an authentication token for Git operations. Must be in the format projects/*/secrets/*/versions/*.
func (RepositoryGitRemoteSettingsPtrOutput) DefaultBranch ¶
func (o RepositoryGitRemoteSettingsPtrOutput) DefaultBranch() pulumi.StringPtrOutput
The Git remote's default branch name.
func (RepositoryGitRemoteSettingsPtrOutput) ElementType ¶
func (RepositoryGitRemoteSettingsPtrOutput) ElementType() reflect.Type
func (RepositoryGitRemoteSettingsPtrOutput) ToRepositoryGitRemoteSettingsPtrOutput ¶
func (o RepositoryGitRemoteSettingsPtrOutput) ToRepositoryGitRemoteSettingsPtrOutput() RepositoryGitRemoteSettingsPtrOutput
func (RepositoryGitRemoteSettingsPtrOutput) ToRepositoryGitRemoteSettingsPtrOutputWithContext ¶
func (o RepositoryGitRemoteSettingsPtrOutput) ToRepositoryGitRemoteSettingsPtrOutputWithContext(ctx context.Context) RepositoryGitRemoteSettingsPtrOutput
func (RepositoryGitRemoteSettingsPtrOutput) TokenStatus ¶
func (o RepositoryGitRemoteSettingsPtrOutput) TokenStatus() pulumi.StringPtrOutput
- Indicates the status of the Git access token. https://cloud.google.com/dataform/reference/rest/v1beta1/projects.locations.repositories#TokenStatus
func (RepositoryGitRemoteSettingsPtrOutput) Url ¶
func (o RepositoryGitRemoteSettingsPtrOutput) Url() pulumi.StringPtrOutput
The Git remote's URL.
type RepositoryInput ¶
type RepositoryInput interface { pulumi.Input ToRepositoryOutput() RepositoryOutput ToRepositoryOutputWithContext(ctx context.Context) RepositoryOutput }
type RepositoryMap ¶
type RepositoryMap map[string]RepositoryInput
func (RepositoryMap) ElementType ¶
func (RepositoryMap) ElementType() reflect.Type
func (RepositoryMap) ToRepositoryMapOutput ¶
func (i RepositoryMap) ToRepositoryMapOutput() RepositoryMapOutput
func (RepositoryMap) ToRepositoryMapOutputWithContext ¶
func (i RepositoryMap) ToRepositoryMapOutputWithContext(ctx context.Context) RepositoryMapOutput
type RepositoryMapInput ¶
type RepositoryMapInput interface { pulumi.Input ToRepositoryMapOutput() RepositoryMapOutput ToRepositoryMapOutputWithContext(context.Context) RepositoryMapOutput }
RepositoryMapInput is an input type that accepts RepositoryMap and RepositoryMapOutput values. You can construct a concrete instance of `RepositoryMapInput` via:
RepositoryMap{ "key": RepositoryArgs{...} }
type RepositoryMapOutput ¶
type RepositoryMapOutput struct{ *pulumi.OutputState }
func (RepositoryMapOutput) ElementType ¶
func (RepositoryMapOutput) ElementType() reflect.Type
func (RepositoryMapOutput) MapIndex ¶
func (o RepositoryMapOutput) MapIndex(k pulumi.StringInput) RepositoryOutput
func (RepositoryMapOutput) ToRepositoryMapOutput ¶
func (o RepositoryMapOutput) ToRepositoryMapOutput() RepositoryMapOutput
func (RepositoryMapOutput) ToRepositoryMapOutputWithContext ¶
func (o RepositoryMapOutput) ToRepositoryMapOutputWithContext(ctx context.Context) RepositoryMapOutput
type RepositoryOutput ¶
type RepositoryOutput struct{ *pulumi.OutputState }
func (RepositoryOutput) ElementType ¶
func (RepositoryOutput) ElementType() reflect.Type
func (RepositoryOutput) GitRemoteSettings ¶
func (o RepositoryOutput) GitRemoteSettings() RepositoryGitRemoteSettingsPtrOutput
Optional. If set, configures this repository to be linked to a Git remote. Structure is documented below.
func (RepositoryOutput) Name ¶
func (o RepositoryOutput) Name() pulumi.StringOutput
The repository's name.
func (RepositoryOutput) Project ¶
func (o RepositoryOutput) Project() pulumi.StringOutput
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
func (RepositoryOutput) Region ¶
func (o RepositoryOutput) Region() pulumi.StringPtrOutput
A reference to the region
func (RepositoryOutput) ToRepositoryOutput ¶
func (o RepositoryOutput) ToRepositoryOutput() RepositoryOutput
func (RepositoryOutput) ToRepositoryOutputWithContext ¶
func (o RepositoryOutput) ToRepositoryOutputWithContext(ctx context.Context) RepositoryOutput
type RepositoryState ¶
type RepositoryState struct { // Optional. If set, configures this repository to be linked to a Git remote. // Structure is documented below. GitRemoteSettings RepositoryGitRemoteSettingsPtrInput // The repository's name. Name pulumi.StringPtrInput // The ID of the project in which the resource belongs. // If it is not provided, the provider project is used. Project pulumi.StringPtrInput // A reference to the region Region pulumi.StringPtrInput }
func (RepositoryState) ElementType ¶
func (RepositoryState) ElementType() reflect.Type