core

package
v2.15.1 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 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 GetClientConfigResult

type GetClientConfigResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id              string `pulumi:"id"`
	OrganizationUrl string `pulumi:"organizationUrl"`
}

A collection of values returned by getClientConfig.

func GetClientConfig deprecated

func GetClientConfig(ctx *pulumi.Context, opts ...pulumi.InvokeOption) (*GetClientConfigResult, error)

Use this data source to access information about the Azure DevOps organization configured for the provider.

## Example Usage

<!--Start PulumiCodeChooser --> ```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := azuredevops.GetClientConfig(ctx, nil, nil)
		if err != nil {
			return err
		}
		ctx.Export("orgUrl", example.OrganizationUrl)
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

Deprecated: azuredevops.core.getClientConfig has been deprecated in favor of azuredevops.getClientConfig

type GetClientConfigResultOutput added in v2.14.0

type GetClientConfigResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getClientConfig.

func GetClientConfigOutput added in v2.14.0

func GetClientConfigOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetClientConfigResultOutput

func (GetClientConfigResultOutput) ElementType added in v2.14.0

func (GetClientConfigResultOutput) Id added in v2.14.0

The provider-assigned unique ID for this managed resource.

func (GetClientConfigResultOutput) OrganizationUrl added in v2.14.0

func (o GetClientConfigResultOutput) OrganizationUrl() pulumi.StringOutput

func (GetClientConfigResultOutput) ToGetClientConfigResultOutput added in v2.14.0

func (o GetClientConfigResultOutput) ToGetClientConfigResultOutput() GetClientConfigResultOutput

func (GetClientConfigResultOutput) ToGetClientConfigResultOutputWithContext added in v2.14.0

func (o GetClientConfigResultOutput) ToGetClientConfigResultOutputWithContext(ctx context.Context) GetClientConfigResultOutput

type GetProjectsArgs

type GetProjectsArgs struct {
	// Name of the Project, if not specified all projects will be returned.
	Name *string `pulumi:"name"`
	// State of the Project, if not specified all projects will be returned. Valid values are `all`, `deleting`, `new`, `wellFormed`, `createPending`, `unchanged`,`deleted`.
	//
	// DataSource without specifying any arguments will return all projects.
	State *string `pulumi:"state"`
}

A collection of arguments for invoking getProjects.

type GetProjectsOutputArgs added in v2.3.0

type GetProjectsOutputArgs struct {
	// Name of the Project, if not specified all projects will be returned.
	Name pulumi.StringPtrInput `pulumi:"name"`
	// State of the Project, if not specified all projects will be returned. Valid values are `all`, `deleting`, `new`, `wellFormed`, `createPending`, `unchanged`,`deleted`.
	//
	// DataSource without specifying any arguments will return all projects.
	State pulumi.StringPtrInput `pulumi:"state"`
}

A collection of arguments for invoking getProjects.

func (GetProjectsOutputArgs) ElementType added in v2.3.0

func (GetProjectsOutputArgs) ElementType() reflect.Type

type GetProjectsProject

type GetProjectsProject struct {
	// Name of the Project, if not specified all projects will be returned.
	Name string `pulumi:"name"`
	// The ID of the Project.
	ProjectId string `pulumi:"projectId"`
	// Url to the full version of the object.
	ProjectUrl string `pulumi:"projectUrl"`
	// State of the Project, if not specified all projects will be returned. Valid values are `all`, `deleting`, `new`, `wellFormed`, `createPending`, `unchanged`,`deleted`.
	//
	// DataSource without specifying any arguments will return all projects.
	State string `pulumi:"state"`
}

type GetProjectsProjectArgs

type GetProjectsProjectArgs struct {
	// Name of the Project, if not specified all projects will be returned.
	Name pulumi.StringInput `pulumi:"name"`
	// The ID of the Project.
	ProjectId pulumi.StringInput `pulumi:"projectId"`
	// Url to the full version of the object.
	ProjectUrl pulumi.StringInput `pulumi:"projectUrl"`
	// State of the Project, if not specified all projects will be returned. Valid values are `all`, `deleting`, `new`, `wellFormed`, `createPending`, `unchanged`,`deleted`.
	//
	// DataSource without specifying any arguments will return all projects.
	State pulumi.StringInput `pulumi:"state"`
}

func (GetProjectsProjectArgs) ElementType

func (GetProjectsProjectArgs) ElementType() reflect.Type

func (GetProjectsProjectArgs) ToGetProjectsProjectOutput

func (i GetProjectsProjectArgs) ToGetProjectsProjectOutput() GetProjectsProjectOutput

func (GetProjectsProjectArgs) ToGetProjectsProjectOutputWithContext

func (i GetProjectsProjectArgs) ToGetProjectsProjectOutputWithContext(ctx context.Context) GetProjectsProjectOutput

type GetProjectsProjectArray

type GetProjectsProjectArray []GetProjectsProjectInput

func (GetProjectsProjectArray) ElementType

func (GetProjectsProjectArray) ElementType() reflect.Type

func (GetProjectsProjectArray) ToGetProjectsProjectArrayOutput

func (i GetProjectsProjectArray) ToGetProjectsProjectArrayOutput() GetProjectsProjectArrayOutput

func (GetProjectsProjectArray) ToGetProjectsProjectArrayOutputWithContext

func (i GetProjectsProjectArray) ToGetProjectsProjectArrayOutputWithContext(ctx context.Context) GetProjectsProjectArrayOutput

type GetProjectsProjectArrayInput

type GetProjectsProjectArrayInput interface {
	pulumi.Input

	ToGetProjectsProjectArrayOutput() GetProjectsProjectArrayOutput
	ToGetProjectsProjectArrayOutputWithContext(context.Context) GetProjectsProjectArrayOutput
}

GetProjectsProjectArrayInput is an input type that accepts GetProjectsProjectArray and GetProjectsProjectArrayOutput values. You can construct a concrete instance of `GetProjectsProjectArrayInput` via:

GetProjectsProjectArray{ GetProjectsProjectArgs{...} }

type GetProjectsProjectArrayOutput

type GetProjectsProjectArrayOutput struct{ *pulumi.OutputState }

func (GetProjectsProjectArrayOutput) ElementType

func (GetProjectsProjectArrayOutput) Index

func (GetProjectsProjectArrayOutput) ToGetProjectsProjectArrayOutput

func (o GetProjectsProjectArrayOutput) ToGetProjectsProjectArrayOutput() GetProjectsProjectArrayOutput

func (GetProjectsProjectArrayOutput) ToGetProjectsProjectArrayOutputWithContext

func (o GetProjectsProjectArrayOutput) ToGetProjectsProjectArrayOutputWithContext(ctx context.Context) GetProjectsProjectArrayOutput

type GetProjectsProjectInput

type GetProjectsProjectInput interface {
	pulumi.Input

	ToGetProjectsProjectOutput() GetProjectsProjectOutput
	ToGetProjectsProjectOutputWithContext(context.Context) GetProjectsProjectOutput
}

GetProjectsProjectInput is an input type that accepts GetProjectsProjectArgs and GetProjectsProjectOutput values. You can construct a concrete instance of `GetProjectsProjectInput` via:

GetProjectsProjectArgs{...}

type GetProjectsProjectOutput

type GetProjectsProjectOutput struct{ *pulumi.OutputState }

func (GetProjectsProjectOutput) ElementType

func (GetProjectsProjectOutput) ElementType() reflect.Type

func (GetProjectsProjectOutput) Name

Name of the Project, if not specified all projects will be returned.

func (GetProjectsProjectOutput) ProjectId

The ID of the Project.

func (GetProjectsProjectOutput) ProjectUrl

Url to the full version of the object.

func (GetProjectsProjectOutput) State

State of the Project, if not specified all projects will be returned. Valid values are `all`, `deleting`, `new`, `wellFormed`, `createPending`, `unchanged`,`deleted`.

DataSource without specifying any arguments will return all projects.

func (GetProjectsProjectOutput) ToGetProjectsProjectOutput

func (o GetProjectsProjectOutput) ToGetProjectsProjectOutput() GetProjectsProjectOutput

func (GetProjectsProjectOutput) ToGetProjectsProjectOutputWithContext

func (o GetProjectsProjectOutput) ToGetProjectsProjectOutputWithContext(ctx context.Context) GetProjectsProjectOutput

type GetProjectsResult

type GetProjectsResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The name of the Project.
	Name *string `pulumi:"name"`
	// A list of existing projects in your Azure DevOps Organization with details about every project which includes:
	Projects []GetProjectsProject `pulumi:"projects"`
	// Project state.
	State *string `pulumi:"state"`
}

A collection of values returned by getProjects.

func GetProjects deprecated

func GetProjects(ctx *pulumi.Context, args *GetProjectsArgs, opts ...pulumi.InvokeOption) (*GetProjectsResult, error)

Use this data source to access information about existing Projects within Azure DevOps.

## Example Usage

<!--Start PulumiCodeChooser --> ```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := azuredevops.GetProjects(ctx, &azuredevops.GetProjectsArgs{
			Name:  pulumi.StringRef("Example Project"),
			State: pulumi.StringRef("wellFormed"),
		}, nil)
		if err != nil {
			return err
		}
		var splat0 []*string
		for _, val0 := range example.Projects {
			splat0 = append(splat0, val0.ProjectId)
		}
		ctx.Export("projectId", splat0)
		var splat1 []*string
		for _, val0 := range example.Projects {
			splat1 = append(splat1, val0.Name)
		}
		ctx.Export("name", splat1)
		var splat2 []*string
		for _, val0 := range example.Projects {
			splat2 = append(splat2, val0.ProjectUrl)
		}
		ctx.Export("projectUrl", splat2)
		var splat3 []*string
		for _, val0 := range example.Projects {
			splat3 = append(splat3, val0.State)
		}
		ctx.Export("state", splat3)
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

## Relevant Links

- [Azure DevOps Service REST API 7.0 - Projects - Get](https://docs.microsoft.com/en-us/rest/api/azure/devops/core/projects/get?view=azure-devops-rest-7.0)

Deprecated: azuredevops.core.getProjects has been deprecated in favor of azuredevops.getProjects

type GetProjectsResultOutput added in v2.3.0

type GetProjectsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getProjects.

func GetProjectsOutput added in v2.3.0

func GetProjectsOutput(ctx *pulumi.Context, args GetProjectsOutputArgs, opts ...pulumi.InvokeOption) GetProjectsResultOutput

func (GetProjectsResultOutput) ElementType added in v2.3.0

func (GetProjectsResultOutput) ElementType() reflect.Type

func (GetProjectsResultOutput) Id added in v2.3.0

The provider-assigned unique ID for this managed resource.

func (GetProjectsResultOutput) Name added in v2.3.0

The name of the Project.

func (GetProjectsResultOutput) Projects added in v2.3.0

A list of existing projects in your Azure DevOps Organization with details about every project which includes:

func (GetProjectsResultOutput) State added in v2.3.0

Project state.

func (GetProjectsResultOutput) ToGetProjectsResultOutput added in v2.3.0

func (o GetProjectsResultOutput) ToGetProjectsResultOutput() GetProjectsResultOutput

func (GetProjectsResultOutput) ToGetProjectsResultOutputWithContext added in v2.3.0

func (o GetProjectsResultOutput) ToGetProjectsResultOutputWithContext(ctx context.Context) GetProjectsResultOutput

type LookupProjectArgs

type LookupProjectArgs struct {
	// Name of the Project.
	Name *string `pulumi:"name"`
	// ID of the Project.
	ProjectId *string `pulumi:"projectId"`
}

A collection of arguments for invoking getProject.

type LookupProjectOutputArgs added in v2.3.0

type LookupProjectOutputArgs struct {
	// Name of the Project.
	Name pulumi.StringPtrInput `pulumi:"name"`
	// ID of the Project.
	ProjectId pulumi.StringPtrInput `pulumi:"projectId"`
}

A collection of arguments for invoking getProject.

func (LookupProjectOutputArgs) ElementType added in v2.3.0

func (LookupProjectOutputArgs) ElementType() reflect.Type

type LookupProjectResult

type LookupProjectResult struct {
	Description string                 `pulumi:"description"`
	Features    map[string]interface{} `pulumi:"features"`
	// The provider-assigned unique ID for this managed resource.
	Id                string  `pulumi:"id"`
	Name              *string `pulumi:"name"`
	ProcessTemplateId string  `pulumi:"processTemplateId"`
	ProjectId         *string `pulumi:"projectId"`
	VersionControl    string  `pulumi:"versionControl"`
	Visibility        string  `pulumi:"visibility"`
	WorkItemTemplate  string  `pulumi:"workItemTemplate"`
}

A collection of values returned by getProject.

func LookupProject deprecated

func LookupProject(ctx *pulumi.Context, args *LookupProjectArgs, opts ...pulumi.InvokeOption) (*LookupProjectResult, error)

Use this data source to access information about an existing Project within Azure DevOps.

## Example Usage

<!--Start PulumiCodeChooser --> ```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := azuredevops.LookupProject(ctx, &azuredevops.LookupProjectArgs{
			Name: pulumi.StringRef("Example Project"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("project", example)
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

## Relevant Links

- [Azure DevOps Service REST API 7.0 - Projects - Get](https://docs.microsoft.com/en-us/rest/api/azure/devops/core/projects/get?view=azure-devops-rest-7.0)

Deprecated: azuredevops.core.getProject has been deprecated in favor of azuredevops.getProject

type LookupProjectResultOutput added in v2.3.0

type LookupProjectResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getProject.

func LookupProjectOutput added in v2.3.0

func LookupProjectOutput(ctx *pulumi.Context, args LookupProjectOutputArgs, opts ...pulumi.InvokeOption) LookupProjectResultOutput

func (LookupProjectResultOutput) Description added in v2.3.0

func (LookupProjectResultOutput) ElementType added in v2.3.0

func (LookupProjectResultOutput) ElementType() reflect.Type

func (LookupProjectResultOutput) Features added in v2.3.0

func (LookupProjectResultOutput) Id added in v2.3.0

The provider-assigned unique ID for this managed resource.

func (LookupProjectResultOutput) Name added in v2.3.0

func (LookupProjectResultOutput) ProcessTemplateId added in v2.3.0

func (o LookupProjectResultOutput) ProcessTemplateId() pulumi.StringOutput

func (LookupProjectResultOutput) ProjectId added in v2.3.0

func (LookupProjectResultOutput) ToLookupProjectResultOutput added in v2.3.0

func (o LookupProjectResultOutput) ToLookupProjectResultOutput() LookupProjectResultOutput

func (LookupProjectResultOutput) ToLookupProjectResultOutputWithContext added in v2.3.0

func (o LookupProjectResultOutput) ToLookupProjectResultOutputWithContext(ctx context.Context) LookupProjectResultOutput

func (LookupProjectResultOutput) VersionControl added in v2.3.0

func (o LookupProjectResultOutput) VersionControl() pulumi.StringOutput

func (LookupProjectResultOutput) Visibility added in v2.3.0

func (LookupProjectResultOutput) WorkItemTemplate added in v2.3.0

func (o LookupProjectResultOutput) WorkItemTemplate() pulumi.StringOutput

type Project deprecated

type Project struct {
	pulumi.CustomResourceState

	// The Description of the Project.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// Defines the status (`enabled`, `disabled`) of the project features.
	// Valid features are `boards`, `repositories`, `pipelines`, `testplans`, `artifacts`
	//
	// > **NOTE:**
	// It's possible to define project features both within the `ProjectFeatures` resource and
	// via the `features` block by using the `Project` resource.
	// However it's not possible to use both methods to manage features, since there'll be conflicts.
	Features pulumi.StringMapOutput `pulumi:"features"`
	// The Project Name.
	Name pulumi.StringOutput `pulumi:"name"`
	// The Process Template ID used by the Project.
	ProcessTemplateId pulumi.StringOutput `pulumi:"processTemplateId"`
	// Specifies the version control system. Valid values: `Git` or `Tfvc`. Defaults to `Git`.
	VersionControl pulumi.StringPtrOutput `pulumi:"versionControl"`
	// Specifies the visibility of the Project. Valid values: `private` or `public`. Defaults to `private`.
	Visibility pulumi.StringPtrOutput `pulumi:"visibility"`
	// Specifies the work item template. Valid values: `Agile`, `Basic`, `CMMI`, `Scrum` or a custom, pre-existing one. Defaults to `Agile`. An empty string will use the parent organization default.
	WorkItemTemplate pulumi.StringPtrOutput `pulumi:"workItemTemplate"`
}

Manages a project within Azure DevOps.

## Example Usage

<!--Start PulumiCodeChooser --> ```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := azuredevops.NewProject(ctx, "example", &azuredevops.ProjectArgs{
			Description: pulumi.String("Managed by Terraform"),
			Features: pulumi.StringMap{
				"artifacts": pulumi.String("disabled"),
				"testplans": pulumi.String("disabled"),
			},
			VersionControl:   pulumi.String("Git"),
			Visibility:       pulumi.String("private"),
			WorkItemTemplate: pulumi.String("Agile"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

## Relevant Links

- [Azure DevOps Service REST API 7.0 - Projects](https://docs.microsoft.com/en-us/rest/api/azure/devops/core/projects?view=azure-devops-rest-7.0)

## PAT Permissions Required

- **Project & Team**: Read, Write, & Manage

## Import

Azure DevOps Projects can be imported using the project name or by the project Guid, e.g.

```sh $ pulumi import azuredevops:Core/project:Project example "Example Project" ```

or

```sh $ pulumi import azuredevops:Core/project:Project example 00000000-0000-0000-0000-000000000000 ```

Deprecated: azuredevops.core.Project has been deprecated in favor of azuredevops.Project

func GetProject

func GetProject(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ProjectState, opts ...pulumi.ResourceOption) (*Project, error)

GetProject gets an existing Project 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 NewProject

func NewProject(ctx *pulumi.Context,
	name string, args *ProjectArgs, opts ...pulumi.ResourceOption) (*Project, error)

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

func (*Project) ElementType

func (*Project) ElementType() reflect.Type

func (*Project) ToProjectOutput

func (i *Project) ToProjectOutput() ProjectOutput

func (*Project) ToProjectOutputWithContext

func (i *Project) ToProjectOutputWithContext(ctx context.Context) ProjectOutput

type ProjectArgs

type ProjectArgs struct {
	// The Description of the Project.
	Description pulumi.StringPtrInput
	// Defines the status (`enabled`, `disabled`) of the project features.
	// Valid features are `boards`, `repositories`, `pipelines`, `testplans`, `artifacts`
	//
	// > **NOTE:**
	// It's possible to define project features both within the `ProjectFeatures` resource and
	// via the `features` block by using the `Project` resource.
	// However it's not possible to use both methods to manage features, since there'll be conflicts.
	Features pulumi.StringMapInput
	// The Project Name.
	Name pulumi.StringPtrInput
	// Specifies the version control system. Valid values: `Git` or `Tfvc`. Defaults to `Git`.
	VersionControl pulumi.StringPtrInput
	// Specifies the visibility of the Project. Valid values: `private` or `public`. Defaults to `private`.
	Visibility pulumi.StringPtrInput
	// Specifies the work item template. Valid values: `Agile`, `Basic`, `CMMI`, `Scrum` or a custom, pre-existing one. Defaults to `Agile`. An empty string will use the parent organization default.
	WorkItemTemplate pulumi.StringPtrInput
}

The set of arguments for constructing a Project resource.

func (ProjectArgs) ElementType

func (ProjectArgs) ElementType() reflect.Type

type ProjectArray

type ProjectArray []ProjectInput

func (ProjectArray) ElementType

func (ProjectArray) ElementType() reflect.Type

func (ProjectArray) ToProjectArrayOutput

func (i ProjectArray) ToProjectArrayOutput() ProjectArrayOutput

func (ProjectArray) ToProjectArrayOutputWithContext

func (i ProjectArray) ToProjectArrayOutputWithContext(ctx context.Context) ProjectArrayOutput

type ProjectArrayInput

type ProjectArrayInput interface {
	pulumi.Input

	ToProjectArrayOutput() ProjectArrayOutput
	ToProjectArrayOutputWithContext(context.Context) ProjectArrayOutput
}

ProjectArrayInput is an input type that accepts ProjectArray and ProjectArrayOutput values. You can construct a concrete instance of `ProjectArrayInput` via:

ProjectArray{ ProjectArgs{...} }

type ProjectArrayOutput

type ProjectArrayOutput struct{ *pulumi.OutputState }

func (ProjectArrayOutput) ElementType

func (ProjectArrayOutput) ElementType() reflect.Type

func (ProjectArrayOutput) Index

func (ProjectArrayOutput) ToProjectArrayOutput

func (o ProjectArrayOutput) ToProjectArrayOutput() ProjectArrayOutput

func (ProjectArrayOutput) ToProjectArrayOutputWithContext

func (o ProjectArrayOutput) ToProjectArrayOutputWithContext(ctx context.Context) ProjectArrayOutput

type ProjectFeatures deprecated

type ProjectFeatures struct {
	pulumi.CustomResourceState

	// Defines the status (`enabled`, `disabled`) of the project features.\
	// Valid features `boards`, `repositories`, `pipelines`, `testplans`, `artifacts`
	//
	// > **NOTE:**
	// It's possible to define project features both within the `ProjectFeatures` resource and
	// via the `features` block by using the `Project` resource.
	// However it's not possible to use both methods to manage features, since there'll be conflicts.
	Features  pulumi.StringMapOutput `pulumi:"features"`
	ProjectId pulumi.StringOutput    `pulumi:"projectId"`
}

Manages features for Azure DevOps projects

## Example Usage

<!--Start PulumiCodeChooser --> ```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := azuredevops.NewProject(ctx, "example", &azuredevops.ProjectArgs{
			Visibility:       pulumi.String("private"),
			VersionControl:   pulumi.String("Git"),
			WorkItemTemplate: pulumi.String("Agile"),
			Description:      pulumi.String("Managed by Terraform"),
		})
		if err != nil {
			return err
		}
		_, err = azuredevops.NewProjectFeatures(ctx, "example-features", &azuredevops.ProjectFeaturesArgs{
			ProjectId: example.ID(),
			Features: pulumi.StringMap{
				"testplans": pulumi.String("disabled"),
				"artifacts": pulumi.String("enabled"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

## Relevant Links

No official documentation available

## PAT Permissions Required

- **Project & Team**: Read, Write, & Manage

## Import

Azure DevOps feature settings can be imported using the project id, e.g.

```sh $ pulumi import azuredevops:Core/projectFeatures:ProjectFeatures example 00000000-0000-0000-0000-000000000000 ```

Deprecated: azuredevops.core.ProjectFeatures has been deprecated in favor of azuredevops.ProjectFeatures

func GetProjectFeatures

func GetProjectFeatures(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ProjectFeaturesState, opts ...pulumi.ResourceOption) (*ProjectFeatures, error)

GetProjectFeatures gets an existing ProjectFeatures 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 NewProjectFeatures

func NewProjectFeatures(ctx *pulumi.Context,
	name string, args *ProjectFeaturesArgs, opts ...pulumi.ResourceOption) (*ProjectFeatures, error)

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

func (*ProjectFeatures) ElementType

func (*ProjectFeatures) ElementType() reflect.Type

func (*ProjectFeatures) ToProjectFeaturesOutput

func (i *ProjectFeatures) ToProjectFeaturesOutput() ProjectFeaturesOutput

func (*ProjectFeatures) ToProjectFeaturesOutputWithContext

func (i *ProjectFeatures) ToProjectFeaturesOutputWithContext(ctx context.Context) ProjectFeaturesOutput

type ProjectFeaturesArgs

type ProjectFeaturesArgs struct {
	// Defines the status (`enabled`, `disabled`) of the project features.\
	// Valid features `boards`, `repositories`, `pipelines`, `testplans`, `artifacts`
	//
	// > **NOTE:**
	// It's possible to define project features both within the `ProjectFeatures` resource and
	// via the `features` block by using the `Project` resource.
	// However it's not possible to use both methods to manage features, since there'll be conflicts.
	Features  pulumi.StringMapInput
	ProjectId pulumi.StringInput
}

The set of arguments for constructing a ProjectFeatures resource.

func (ProjectFeaturesArgs) ElementType

func (ProjectFeaturesArgs) ElementType() reflect.Type

type ProjectFeaturesArray

type ProjectFeaturesArray []ProjectFeaturesInput

func (ProjectFeaturesArray) ElementType

func (ProjectFeaturesArray) ElementType() reflect.Type

func (ProjectFeaturesArray) ToProjectFeaturesArrayOutput

func (i ProjectFeaturesArray) ToProjectFeaturesArrayOutput() ProjectFeaturesArrayOutput

func (ProjectFeaturesArray) ToProjectFeaturesArrayOutputWithContext

func (i ProjectFeaturesArray) ToProjectFeaturesArrayOutputWithContext(ctx context.Context) ProjectFeaturesArrayOutput

type ProjectFeaturesArrayInput

type ProjectFeaturesArrayInput interface {
	pulumi.Input

	ToProjectFeaturesArrayOutput() ProjectFeaturesArrayOutput
	ToProjectFeaturesArrayOutputWithContext(context.Context) ProjectFeaturesArrayOutput
}

ProjectFeaturesArrayInput is an input type that accepts ProjectFeaturesArray and ProjectFeaturesArrayOutput values. You can construct a concrete instance of `ProjectFeaturesArrayInput` via:

ProjectFeaturesArray{ ProjectFeaturesArgs{...} }

type ProjectFeaturesArrayOutput

type ProjectFeaturesArrayOutput struct{ *pulumi.OutputState }

func (ProjectFeaturesArrayOutput) ElementType

func (ProjectFeaturesArrayOutput) ElementType() reflect.Type

func (ProjectFeaturesArrayOutput) Index

func (ProjectFeaturesArrayOutput) ToProjectFeaturesArrayOutput

func (o ProjectFeaturesArrayOutput) ToProjectFeaturesArrayOutput() ProjectFeaturesArrayOutput

func (ProjectFeaturesArrayOutput) ToProjectFeaturesArrayOutputWithContext

func (o ProjectFeaturesArrayOutput) ToProjectFeaturesArrayOutputWithContext(ctx context.Context) ProjectFeaturesArrayOutput

type ProjectFeaturesInput

type ProjectFeaturesInput interface {
	pulumi.Input

	ToProjectFeaturesOutput() ProjectFeaturesOutput
	ToProjectFeaturesOutputWithContext(ctx context.Context) ProjectFeaturesOutput
}

type ProjectFeaturesMap

type ProjectFeaturesMap map[string]ProjectFeaturesInput

func (ProjectFeaturesMap) ElementType

func (ProjectFeaturesMap) ElementType() reflect.Type

func (ProjectFeaturesMap) ToProjectFeaturesMapOutput

func (i ProjectFeaturesMap) ToProjectFeaturesMapOutput() ProjectFeaturesMapOutput

func (ProjectFeaturesMap) ToProjectFeaturesMapOutputWithContext

func (i ProjectFeaturesMap) ToProjectFeaturesMapOutputWithContext(ctx context.Context) ProjectFeaturesMapOutput

type ProjectFeaturesMapInput

type ProjectFeaturesMapInput interface {
	pulumi.Input

	ToProjectFeaturesMapOutput() ProjectFeaturesMapOutput
	ToProjectFeaturesMapOutputWithContext(context.Context) ProjectFeaturesMapOutput
}

ProjectFeaturesMapInput is an input type that accepts ProjectFeaturesMap and ProjectFeaturesMapOutput values. You can construct a concrete instance of `ProjectFeaturesMapInput` via:

ProjectFeaturesMap{ "key": ProjectFeaturesArgs{...} }

type ProjectFeaturesMapOutput

type ProjectFeaturesMapOutput struct{ *pulumi.OutputState }

func (ProjectFeaturesMapOutput) ElementType

func (ProjectFeaturesMapOutput) ElementType() reflect.Type

func (ProjectFeaturesMapOutput) MapIndex

func (ProjectFeaturesMapOutput) ToProjectFeaturesMapOutput

func (o ProjectFeaturesMapOutput) ToProjectFeaturesMapOutput() ProjectFeaturesMapOutput

func (ProjectFeaturesMapOutput) ToProjectFeaturesMapOutputWithContext

func (o ProjectFeaturesMapOutput) ToProjectFeaturesMapOutputWithContext(ctx context.Context) ProjectFeaturesMapOutput

type ProjectFeaturesOutput

type ProjectFeaturesOutput struct{ *pulumi.OutputState }

func (ProjectFeaturesOutput) ElementType

func (ProjectFeaturesOutput) ElementType() reflect.Type

func (ProjectFeaturesOutput) Features added in v2.5.0

Defines the status (`enabled`, `disabled`) of the project features.\ Valid features `boards`, `repositories`, `pipelines`, `testplans`, `artifacts`

> **NOTE:** It's possible to define project features both within the `ProjectFeatures` resource and via the `features` block by using the `Project` resource. However it's not possible to use both methods to manage features, since there'll be conflicts.

func (ProjectFeaturesOutput) ProjectId added in v2.5.0

func (ProjectFeaturesOutput) ToProjectFeaturesOutput

func (o ProjectFeaturesOutput) ToProjectFeaturesOutput() ProjectFeaturesOutput

func (ProjectFeaturesOutput) ToProjectFeaturesOutputWithContext

func (o ProjectFeaturesOutput) ToProjectFeaturesOutputWithContext(ctx context.Context) ProjectFeaturesOutput

type ProjectFeaturesState

type ProjectFeaturesState struct {
	// Defines the status (`enabled`, `disabled`) of the project features.\
	// Valid features `boards`, `repositories`, `pipelines`, `testplans`, `artifacts`
	//
	// > **NOTE:**
	// It's possible to define project features both within the `ProjectFeatures` resource and
	// via the `features` block by using the `Project` resource.
	// However it's not possible to use both methods to manage features, since there'll be conflicts.
	Features  pulumi.StringMapInput
	ProjectId pulumi.StringPtrInput
}

func (ProjectFeaturesState) ElementType

func (ProjectFeaturesState) ElementType() reflect.Type

type ProjectInput

type ProjectInput interface {
	pulumi.Input

	ToProjectOutput() ProjectOutput
	ToProjectOutputWithContext(ctx context.Context) ProjectOutput
}

type ProjectMap

type ProjectMap map[string]ProjectInput

func (ProjectMap) ElementType

func (ProjectMap) ElementType() reflect.Type

func (ProjectMap) ToProjectMapOutput

func (i ProjectMap) ToProjectMapOutput() ProjectMapOutput

func (ProjectMap) ToProjectMapOutputWithContext

func (i ProjectMap) ToProjectMapOutputWithContext(ctx context.Context) ProjectMapOutput

type ProjectMapInput

type ProjectMapInput interface {
	pulumi.Input

	ToProjectMapOutput() ProjectMapOutput
	ToProjectMapOutputWithContext(context.Context) ProjectMapOutput
}

ProjectMapInput is an input type that accepts ProjectMap and ProjectMapOutput values. You can construct a concrete instance of `ProjectMapInput` via:

ProjectMap{ "key": ProjectArgs{...} }

type ProjectMapOutput

type ProjectMapOutput struct{ *pulumi.OutputState }

func (ProjectMapOutput) ElementType

func (ProjectMapOutput) ElementType() reflect.Type

func (ProjectMapOutput) MapIndex

func (ProjectMapOutput) ToProjectMapOutput

func (o ProjectMapOutput) ToProjectMapOutput() ProjectMapOutput

func (ProjectMapOutput) ToProjectMapOutputWithContext

func (o ProjectMapOutput) ToProjectMapOutputWithContext(ctx context.Context) ProjectMapOutput

type ProjectOutput

type ProjectOutput struct{ *pulumi.OutputState }

func (ProjectOutput) Description added in v2.5.0

func (o ProjectOutput) Description() pulumi.StringPtrOutput

The Description of the Project.

func (ProjectOutput) ElementType

func (ProjectOutput) ElementType() reflect.Type

func (ProjectOutput) Features added in v2.5.0

func (o ProjectOutput) Features() pulumi.StringMapOutput

Defines the status (`enabled`, `disabled`) of the project features. Valid features are `boards`, `repositories`, `pipelines`, `testplans`, `artifacts`

> **NOTE:** It's possible to define project features both within the `ProjectFeatures` resource and via the `features` block by using the `Project` resource. However it's not possible to use both methods to manage features, since there'll be conflicts.

func (ProjectOutput) Name added in v2.5.0

The Project Name.

func (ProjectOutput) ProcessTemplateId added in v2.5.0

func (o ProjectOutput) ProcessTemplateId() pulumi.StringOutput

The Process Template ID used by the Project.

func (ProjectOutput) ToProjectOutput

func (o ProjectOutput) ToProjectOutput() ProjectOutput

func (ProjectOutput) ToProjectOutputWithContext

func (o ProjectOutput) ToProjectOutputWithContext(ctx context.Context) ProjectOutput

func (ProjectOutput) VersionControl added in v2.5.0

func (o ProjectOutput) VersionControl() pulumi.StringPtrOutput

Specifies the version control system. Valid values: `Git` or `Tfvc`. Defaults to `Git`.

func (ProjectOutput) Visibility added in v2.5.0

func (o ProjectOutput) Visibility() pulumi.StringPtrOutput

Specifies the visibility of the Project. Valid values: `private` or `public`. Defaults to `private`.

func (ProjectOutput) WorkItemTemplate added in v2.5.0

func (o ProjectOutput) WorkItemTemplate() pulumi.StringPtrOutput

Specifies the work item template. Valid values: `Agile`, `Basic`, `CMMI`, `Scrum` or a custom, pre-existing one. Defaults to `Agile`. An empty string will use the parent organization default.

type ProjectState

type ProjectState struct {
	// The Description of the Project.
	Description pulumi.StringPtrInput
	// Defines the status (`enabled`, `disabled`) of the project features.
	// Valid features are `boards`, `repositories`, `pipelines`, `testplans`, `artifacts`
	//
	// > **NOTE:**
	// It's possible to define project features both within the `ProjectFeatures` resource and
	// via the `features` block by using the `Project` resource.
	// However it's not possible to use both methods to manage features, since there'll be conflicts.
	Features pulumi.StringMapInput
	// The Project Name.
	Name pulumi.StringPtrInput
	// The Process Template ID used by the Project.
	ProcessTemplateId pulumi.StringPtrInput
	// Specifies the version control system. Valid values: `Git` or `Tfvc`. Defaults to `Git`.
	VersionControl pulumi.StringPtrInput
	// Specifies the visibility of the Project. Valid values: `private` or `public`. Defaults to `private`.
	Visibility pulumi.StringPtrInput
	// Specifies the work item template. Valid values: `Agile`, `Basic`, `CMMI`, `Scrum` or a custom, pre-existing one. Defaults to `Agile`. An empty string will use the parent organization default.
	WorkItemTemplate pulumi.StringPtrInput
}

func (ProjectState) ElementType

func (ProjectState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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