pipeline

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VariableGroup deprecated

type VariableGroup struct {
	pulumi.CustomResourceState

	// Boolean that indicate if this variable group is shared by all pipelines of this project.
	AllowAccess pulumi.BoolPtrOutput `pulumi:"allowAccess"`
	// The description of the Variable Group.
	Description pulumi.StringPtrOutput         `pulumi:"description"`
	KeyVault    VariableGroupKeyVaultPtrOutput `pulumi:"keyVault"`
	// The name of the Variable Group.
	Name pulumi.StringOutput `pulumi:"name"`
	// The project ID or project name.
	ProjectId pulumi.StringOutput `pulumi:"projectId"`
	// One or more `variable` blocks as documented below.
	Variables VariableGroupVariableArrayOutput `pulumi:"variables"`
}

Manages variable groups within Azure DevOps.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azuredevops/sdk/go/azuredevops"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		project, err := azuredevops.NewProject(ctx, "project", nil)
		if err != nil {
			return err
		}
		_, err = azuredevops.NewVariableGroup(ctx, "variablegroup", &azuredevops.VariableGroupArgs{
			ProjectId:   project.ID(),
			Description: pulumi.String("Test Variable Group Description"),
			AllowAccess: pulumi.Bool(true),
			Variables: azuredevops.VariableGroupVariableArray{
				&azuredevops.VariableGroupVariableArgs{
					Name:  pulumi.String("key"),
					Value: pulumi.String("value"),
				},
				&azuredevops.VariableGroupVariableArgs{
					Name:        pulumi.String("Account Password"),
					SecretValue: pulumi.String("p@ssword123"),
					IsSecret:    pulumi.Bool(true),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ## Relevant Links

- [Azure DevOps Service REST API 5.1 - Variable Groups](https://docs.microsoft.com/en-us/rest/api/azure/devops/distributedtask/variablegroups?view=azure-devops-rest-5.1) - [Azure DevOps Service REST API 5.1 - Authorized Resources](https://docs.microsoft.com/en-us/rest/api/azure/devops/build/authorizedresources?view=azure-devops-rest-5.1)

## PAT Permissions Required

- **Variable Groups**: Read, Create, & Manage

## Import

**Variable groups containing secret values cannot be imported.** Azure DevOps Variable groups can be imported using the project name/variable group ID or by the project Guid/variable group ID, e.g.

```sh

$ pulumi import azuredevops:Pipeline/variableGroup:VariableGroup variablegroup "Test Project/10"

```

or

```sh

$ pulumi import azuredevops:Pipeline/variableGroup:VariableGroup variablegroup 00000000-0000-0000-0000-000000000000/0

```

_Note that for secret variables, the import command retrieve blank value in the tfstate._

Deprecated: azuredevops.pipeline.VariableGroup has been deprecated in favor of azuredevops.VariableGroup

func GetVariableGroup

func GetVariableGroup(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *VariableGroupState, opts ...pulumi.ResourceOption) (*VariableGroup, error)

GetVariableGroup gets an existing VariableGroup 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 NewVariableGroup

func NewVariableGroup(ctx *pulumi.Context,
	name string, args *VariableGroupArgs, opts ...pulumi.ResourceOption) (*VariableGroup, error)

NewVariableGroup registers a new resource with the given unique name, arguments, and options.

func (*VariableGroup) ElementType

func (*VariableGroup) ElementType() reflect.Type

func (*VariableGroup) ToVariableGroupOutput

func (i *VariableGroup) ToVariableGroupOutput() VariableGroupOutput

func (*VariableGroup) ToVariableGroupOutputWithContext

func (i *VariableGroup) ToVariableGroupOutputWithContext(ctx context.Context) VariableGroupOutput

func (*VariableGroup) ToVariableGroupPtrOutput added in v1.2.2

func (i *VariableGroup) ToVariableGroupPtrOutput() VariableGroupPtrOutput

func (*VariableGroup) ToVariableGroupPtrOutputWithContext added in v1.2.2

func (i *VariableGroup) ToVariableGroupPtrOutputWithContext(ctx context.Context) VariableGroupPtrOutput

type VariableGroupArgs

type VariableGroupArgs struct {
	// Boolean that indicate if this variable group is shared by all pipelines of this project.
	AllowAccess pulumi.BoolPtrInput
	// The description of the Variable Group.
	Description pulumi.StringPtrInput
	KeyVault    VariableGroupKeyVaultPtrInput
	// The name of the Variable Group.
	Name pulumi.StringPtrInput
	// The project ID or project name.
	ProjectId pulumi.StringInput
	// One or more `variable` blocks as documented below.
	Variables VariableGroupVariableArrayInput
}

The set of arguments for constructing a VariableGroup resource.

func (VariableGroupArgs) ElementType

func (VariableGroupArgs) ElementType() reflect.Type

type VariableGroupArray added in v1.2.2

type VariableGroupArray []VariableGroupInput

func (VariableGroupArray) ElementType added in v1.2.2

func (VariableGroupArray) ElementType() reflect.Type

func (VariableGroupArray) ToVariableGroupArrayOutput added in v1.2.2

func (i VariableGroupArray) ToVariableGroupArrayOutput() VariableGroupArrayOutput

func (VariableGroupArray) ToVariableGroupArrayOutputWithContext added in v1.2.2

func (i VariableGroupArray) ToVariableGroupArrayOutputWithContext(ctx context.Context) VariableGroupArrayOutput

type VariableGroupArrayInput added in v1.2.2

type VariableGroupArrayInput interface {
	pulumi.Input

	ToVariableGroupArrayOutput() VariableGroupArrayOutput
	ToVariableGroupArrayOutputWithContext(context.Context) VariableGroupArrayOutput
}

VariableGroupArrayInput is an input type that accepts VariableGroupArray and VariableGroupArrayOutput values. You can construct a concrete instance of `VariableGroupArrayInput` via:

VariableGroupArray{ VariableGroupArgs{...} }

type VariableGroupArrayOutput added in v1.2.2

type VariableGroupArrayOutput struct{ *pulumi.OutputState }

func (VariableGroupArrayOutput) ElementType added in v1.2.2

func (VariableGroupArrayOutput) ElementType() reflect.Type

func (VariableGroupArrayOutput) Index added in v1.2.2

func (VariableGroupArrayOutput) ToVariableGroupArrayOutput added in v1.2.2

func (o VariableGroupArrayOutput) ToVariableGroupArrayOutput() VariableGroupArrayOutput

func (VariableGroupArrayOutput) ToVariableGroupArrayOutputWithContext added in v1.2.2

func (o VariableGroupArrayOutput) ToVariableGroupArrayOutputWithContext(ctx context.Context) VariableGroupArrayOutput

type VariableGroupInput

type VariableGroupInput interface {
	pulumi.Input

	ToVariableGroupOutput() VariableGroupOutput
	ToVariableGroupOutputWithContext(ctx context.Context) VariableGroupOutput
}

type VariableGroupKeyVault

type VariableGroupKeyVault struct {
	// The name of the Variable Group.
	Name              string `pulumi:"name"`
	ServiceEndpointId string `pulumi:"serviceEndpointId"`
}

type VariableGroupKeyVaultArgs

type VariableGroupKeyVaultArgs struct {
	// The name of the Variable Group.
	Name              pulumi.StringInput `pulumi:"name"`
	ServiceEndpointId pulumi.StringInput `pulumi:"serviceEndpointId"`
}

func (VariableGroupKeyVaultArgs) ElementType

func (VariableGroupKeyVaultArgs) ElementType() reflect.Type

func (VariableGroupKeyVaultArgs) ToVariableGroupKeyVaultOutput

func (i VariableGroupKeyVaultArgs) ToVariableGroupKeyVaultOutput() VariableGroupKeyVaultOutput

func (VariableGroupKeyVaultArgs) ToVariableGroupKeyVaultOutputWithContext

func (i VariableGroupKeyVaultArgs) ToVariableGroupKeyVaultOutputWithContext(ctx context.Context) VariableGroupKeyVaultOutput

func (VariableGroupKeyVaultArgs) ToVariableGroupKeyVaultPtrOutput

func (i VariableGroupKeyVaultArgs) ToVariableGroupKeyVaultPtrOutput() VariableGroupKeyVaultPtrOutput

func (VariableGroupKeyVaultArgs) ToVariableGroupKeyVaultPtrOutputWithContext

func (i VariableGroupKeyVaultArgs) ToVariableGroupKeyVaultPtrOutputWithContext(ctx context.Context) VariableGroupKeyVaultPtrOutput

type VariableGroupKeyVaultInput

type VariableGroupKeyVaultInput interface {
	pulumi.Input

	ToVariableGroupKeyVaultOutput() VariableGroupKeyVaultOutput
	ToVariableGroupKeyVaultOutputWithContext(context.Context) VariableGroupKeyVaultOutput
}

VariableGroupKeyVaultInput is an input type that accepts VariableGroupKeyVaultArgs and VariableGroupKeyVaultOutput values. You can construct a concrete instance of `VariableGroupKeyVaultInput` via:

VariableGroupKeyVaultArgs{...}

type VariableGroupKeyVaultOutput

type VariableGroupKeyVaultOutput struct{ *pulumi.OutputState }

func (VariableGroupKeyVaultOutput) ElementType

func (VariableGroupKeyVaultOutput) Name

The name of the Variable Group.

func (VariableGroupKeyVaultOutput) ServiceEndpointId

func (o VariableGroupKeyVaultOutput) ServiceEndpointId() pulumi.StringOutput

func (VariableGroupKeyVaultOutput) ToVariableGroupKeyVaultOutput

func (o VariableGroupKeyVaultOutput) ToVariableGroupKeyVaultOutput() VariableGroupKeyVaultOutput

func (VariableGroupKeyVaultOutput) ToVariableGroupKeyVaultOutputWithContext

func (o VariableGroupKeyVaultOutput) ToVariableGroupKeyVaultOutputWithContext(ctx context.Context) VariableGroupKeyVaultOutput

func (VariableGroupKeyVaultOutput) ToVariableGroupKeyVaultPtrOutput

func (o VariableGroupKeyVaultOutput) ToVariableGroupKeyVaultPtrOutput() VariableGroupKeyVaultPtrOutput

func (VariableGroupKeyVaultOutput) ToVariableGroupKeyVaultPtrOutputWithContext

func (o VariableGroupKeyVaultOutput) ToVariableGroupKeyVaultPtrOutputWithContext(ctx context.Context) VariableGroupKeyVaultPtrOutput

type VariableGroupKeyVaultPtrInput

type VariableGroupKeyVaultPtrInput interface {
	pulumi.Input

	ToVariableGroupKeyVaultPtrOutput() VariableGroupKeyVaultPtrOutput
	ToVariableGroupKeyVaultPtrOutputWithContext(context.Context) VariableGroupKeyVaultPtrOutput
}

VariableGroupKeyVaultPtrInput is an input type that accepts VariableGroupKeyVaultArgs, VariableGroupKeyVaultPtr and VariableGroupKeyVaultPtrOutput values. You can construct a concrete instance of `VariableGroupKeyVaultPtrInput` via:

        VariableGroupKeyVaultArgs{...}

or:

        nil

type VariableGroupKeyVaultPtrOutput

type VariableGroupKeyVaultPtrOutput struct{ *pulumi.OutputState }

func (VariableGroupKeyVaultPtrOutput) Elem

func (VariableGroupKeyVaultPtrOutput) ElementType

func (VariableGroupKeyVaultPtrOutput) Name

The name of the Variable Group.

func (VariableGroupKeyVaultPtrOutput) ServiceEndpointId

func (VariableGroupKeyVaultPtrOutput) ToVariableGroupKeyVaultPtrOutput

func (o VariableGroupKeyVaultPtrOutput) ToVariableGroupKeyVaultPtrOutput() VariableGroupKeyVaultPtrOutput

func (VariableGroupKeyVaultPtrOutput) ToVariableGroupKeyVaultPtrOutputWithContext

func (o VariableGroupKeyVaultPtrOutput) ToVariableGroupKeyVaultPtrOutputWithContext(ctx context.Context) VariableGroupKeyVaultPtrOutput

type VariableGroupMap added in v1.2.2

type VariableGroupMap map[string]VariableGroupInput

func (VariableGroupMap) ElementType added in v1.2.2

func (VariableGroupMap) ElementType() reflect.Type

func (VariableGroupMap) ToVariableGroupMapOutput added in v1.2.2

func (i VariableGroupMap) ToVariableGroupMapOutput() VariableGroupMapOutput

func (VariableGroupMap) ToVariableGroupMapOutputWithContext added in v1.2.2

func (i VariableGroupMap) ToVariableGroupMapOutputWithContext(ctx context.Context) VariableGroupMapOutput

type VariableGroupMapInput added in v1.2.2

type VariableGroupMapInput interface {
	pulumi.Input

	ToVariableGroupMapOutput() VariableGroupMapOutput
	ToVariableGroupMapOutputWithContext(context.Context) VariableGroupMapOutput
}

VariableGroupMapInput is an input type that accepts VariableGroupMap and VariableGroupMapOutput values. You can construct a concrete instance of `VariableGroupMapInput` via:

VariableGroupMap{ "key": VariableGroupArgs{...} }

type VariableGroupMapOutput added in v1.2.2

type VariableGroupMapOutput struct{ *pulumi.OutputState }

func (VariableGroupMapOutput) ElementType added in v1.2.2

func (VariableGroupMapOutput) ElementType() reflect.Type

func (VariableGroupMapOutput) MapIndex added in v1.2.2

func (VariableGroupMapOutput) ToVariableGroupMapOutput added in v1.2.2

func (o VariableGroupMapOutput) ToVariableGroupMapOutput() VariableGroupMapOutput

func (VariableGroupMapOutput) ToVariableGroupMapOutputWithContext added in v1.2.2

func (o VariableGroupMapOutput) ToVariableGroupMapOutputWithContext(ctx context.Context) VariableGroupMapOutput

type VariableGroupOutput

type VariableGroupOutput struct {
	*pulumi.OutputState
}

func (VariableGroupOutput) ElementType

func (VariableGroupOutput) ElementType() reflect.Type

func (VariableGroupOutput) ToVariableGroupOutput

func (o VariableGroupOutput) ToVariableGroupOutput() VariableGroupOutput

func (VariableGroupOutput) ToVariableGroupOutputWithContext

func (o VariableGroupOutput) ToVariableGroupOutputWithContext(ctx context.Context) VariableGroupOutput

func (VariableGroupOutput) ToVariableGroupPtrOutput added in v1.2.2

func (o VariableGroupOutput) ToVariableGroupPtrOutput() VariableGroupPtrOutput

func (VariableGroupOutput) ToVariableGroupPtrOutputWithContext added in v1.2.2

func (o VariableGroupOutput) ToVariableGroupPtrOutputWithContext(ctx context.Context) VariableGroupPtrOutput

type VariableGroupPtrInput added in v1.2.2

type VariableGroupPtrInput interface {
	pulumi.Input

	ToVariableGroupPtrOutput() VariableGroupPtrOutput
	ToVariableGroupPtrOutputWithContext(ctx context.Context) VariableGroupPtrOutput
}

type VariableGroupPtrOutput added in v1.2.2

type VariableGroupPtrOutput struct {
	*pulumi.OutputState
}

func (VariableGroupPtrOutput) ElementType added in v1.2.2

func (VariableGroupPtrOutput) ElementType() reflect.Type

func (VariableGroupPtrOutput) ToVariableGroupPtrOutput added in v1.2.2

func (o VariableGroupPtrOutput) ToVariableGroupPtrOutput() VariableGroupPtrOutput

func (VariableGroupPtrOutput) ToVariableGroupPtrOutputWithContext added in v1.2.2

func (o VariableGroupPtrOutput) ToVariableGroupPtrOutputWithContext(ctx context.Context) VariableGroupPtrOutput

type VariableGroupState

type VariableGroupState struct {
	// Boolean that indicate if this variable group is shared by all pipelines of this project.
	AllowAccess pulumi.BoolPtrInput
	// The description of the Variable Group.
	Description pulumi.StringPtrInput
	KeyVault    VariableGroupKeyVaultPtrInput
	// The name of the Variable Group.
	Name pulumi.StringPtrInput
	// The project ID or project name.
	ProjectId pulumi.StringPtrInput
	// One or more `variable` blocks as documented below.
	Variables VariableGroupVariableArrayInput
}

func (VariableGroupState) ElementType

func (VariableGroupState) ElementType() reflect.Type

type VariableGroupVariable

type VariableGroupVariable struct {
	ContentType *string `pulumi:"contentType"`
	Enabled     *bool   `pulumi:"enabled"`
	Expires     *string `pulumi:"expires"`
	// A boolean flag describing if the variable value is sensitive. Defaults to `false`.
	IsSecret *bool `pulumi:"isSecret"`
	// The key value used for the variable. Must be unique within the Variable Group.
	Name string `pulumi:"name"`
	// The secret value of the variable. If omitted, it will default to empty string. Used when `isSecret` set to `true`.
	SecretValue *string `pulumi:"secretValue"`
	// The value of the variable. If omitted, it will default to empty string.
	Value *string `pulumi:"value"`
}

type VariableGroupVariableArgs

type VariableGroupVariableArgs struct {
	ContentType pulumi.StringPtrInput `pulumi:"contentType"`
	Enabled     pulumi.BoolPtrInput   `pulumi:"enabled"`
	Expires     pulumi.StringPtrInput `pulumi:"expires"`
	// A boolean flag describing if the variable value is sensitive. Defaults to `false`.
	IsSecret pulumi.BoolPtrInput `pulumi:"isSecret"`
	// The key value used for the variable. Must be unique within the Variable Group.
	Name pulumi.StringInput `pulumi:"name"`
	// The secret value of the variable. If omitted, it will default to empty string. Used when `isSecret` set to `true`.
	SecretValue pulumi.StringPtrInput `pulumi:"secretValue"`
	// The value of the variable. If omitted, it will default to empty string.
	Value pulumi.StringPtrInput `pulumi:"value"`
}

func (VariableGroupVariableArgs) ElementType

func (VariableGroupVariableArgs) ElementType() reflect.Type

func (VariableGroupVariableArgs) ToVariableGroupVariableOutput

func (i VariableGroupVariableArgs) ToVariableGroupVariableOutput() VariableGroupVariableOutput

func (VariableGroupVariableArgs) ToVariableGroupVariableOutputWithContext

func (i VariableGroupVariableArgs) ToVariableGroupVariableOutputWithContext(ctx context.Context) VariableGroupVariableOutput

type VariableGroupVariableArray

type VariableGroupVariableArray []VariableGroupVariableInput

func (VariableGroupVariableArray) ElementType

func (VariableGroupVariableArray) ElementType() reflect.Type

func (VariableGroupVariableArray) ToVariableGroupVariableArrayOutput

func (i VariableGroupVariableArray) ToVariableGroupVariableArrayOutput() VariableGroupVariableArrayOutput

func (VariableGroupVariableArray) ToVariableGroupVariableArrayOutputWithContext

func (i VariableGroupVariableArray) ToVariableGroupVariableArrayOutputWithContext(ctx context.Context) VariableGroupVariableArrayOutput

type VariableGroupVariableArrayInput

type VariableGroupVariableArrayInput interface {
	pulumi.Input

	ToVariableGroupVariableArrayOutput() VariableGroupVariableArrayOutput
	ToVariableGroupVariableArrayOutputWithContext(context.Context) VariableGroupVariableArrayOutput
}

VariableGroupVariableArrayInput is an input type that accepts VariableGroupVariableArray and VariableGroupVariableArrayOutput values. You can construct a concrete instance of `VariableGroupVariableArrayInput` via:

VariableGroupVariableArray{ VariableGroupVariableArgs{...} }

type VariableGroupVariableArrayOutput

type VariableGroupVariableArrayOutput struct{ *pulumi.OutputState }

func (VariableGroupVariableArrayOutput) ElementType

func (VariableGroupVariableArrayOutput) Index

func (VariableGroupVariableArrayOutput) ToVariableGroupVariableArrayOutput

func (o VariableGroupVariableArrayOutput) ToVariableGroupVariableArrayOutput() VariableGroupVariableArrayOutput

func (VariableGroupVariableArrayOutput) ToVariableGroupVariableArrayOutputWithContext

func (o VariableGroupVariableArrayOutput) ToVariableGroupVariableArrayOutputWithContext(ctx context.Context) VariableGroupVariableArrayOutput

type VariableGroupVariableInput

type VariableGroupVariableInput interface {
	pulumi.Input

	ToVariableGroupVariableOutput() VariableGroupVariableOutput
	ToVariableGroupVariableOutputWithContext(context.Context) VariableGroupVariableOutput
}

VariableGroupVariableInput is an input type that accepts VariableGroupVariableArgs and VariableGroupVariableOutput values. You can construct a concrete instance of `VariableGroupVariableInput` via:

VariableGroupVariableArgs{...}

type VariableGroupVariableOutput

type VariableGroupVariableOutput struct{ *pulumi.OutputState }

func (VariableGroupVariableOutput) ContentType

func (VariableGroupVariableOutput) ElementType

func (VariableGroupVariableOutput) Enabled

func (VariableGroupVariableOutput) Expires

func (VariableGroupVariableOutput) GetIsSecret added in v1.2.2

A boolean flag describing if the variable value is sensitive. Defaults to `false`.

func (VariableGroupVariableOutput) Name

The key value used for the variable. Must be unique within the Variable Group.

func (VariableGroupVariableOutput) SecretValue

The secret value of the variable. If omitted, it will default to empty string. Used when `isSecret` set to `true`.

func (VariableGroupVariableOutput) ToVariableGroupVariableOutput

func (o VariableGroupVariableOutput) ToVariableGroupVariableOutput() VariableGroupVariableOutput

func (VariableGroupVariableOutput) ToVariableGroupVariableOutputWithContext

func (o VariableGroupVariableOutput) ToVariableGroupVariableOutputWithContext(ctx context.Context) VariableGroupVariableOutput

func (VariableGroupVariableOutput) Value

The value of the variable. If omitted, it will default to empty string.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL