graph

package
v5.74.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 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 Account

type Account struct {
	pulumi.CustomResourceState

	// Customer owned application ID. Changing this forces a new Account to be created.
	ApplicationId pulumi.StringOutput `pulumi:"applicationId"`
	// Billing Plan Id.
	BillingPlanId pulumi.StringOutput `pulumi:"billingPlanId"`
	// Specifies the name of this Account. Changing this forces a new Account to be created.
	Name pulumi.StringOutput `pulumi:"name"`
	// Specifies the name of the Resource Group within which this Account should exist. Changing this forces a new Account to be created.
	ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"`
	// A mapping of tags which should be assigned to the Account.
	Tags pulumi.StringMapOutput `pulumi:"tags"`
}

Manages a Microsoft Graph Services Account.

!> **NOTE:** This resource has been deprecated in version 3.0 of the AzureRM provider and will be removed in version 4.0. Please use `graph.ServicesAccount` resource instead.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/graph"
"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := azuread.NewApplication(ctx, "example", &azuread.ApplicationArgs{
			DisplayName: pulumi.String("example-app"),
		})
		if err != nil {
			return err
		}
		exampleResourceGroup, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
			Name:     pulumi.String("example-resources"),
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		_, err = graph.NewAccount(ctx, "example", &graph.AccountArgs{
			Name:              pulumi.String("example"),
			ResourceGroupName: exampleResourceGroup.Name,
			ApplicationId:     example.ApplicationId,
			Tags: pulumi.StringMap{
				"environment": pulumi.String("Production"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

An existing Account can be imported into Terraform using the `resource id`, e.g.

```sh $ pulumi import azure:graph/account:Account example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/example-resource-group/providers/Microsoft.GraphServices/accounts/account1 ```

func GetAccount

func GetAccount(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *AccountState, opts ...pulumi.ResourceOption) (*Account, error)

GetAccount gets an existing Account 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 NewAccount

func NewAccount(ctx *pulumi.Context,
	name string, args *AccountArgs, opts ...pulumi.ResourceOption) (*Account, error)

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

func (*Account) ElementType

func (*Account) ElementType() reflect.Type

func (*Account) ToAccountOutput

func (i *Account) ToAccountOutput() AccountOutput

func (*Account) ToAccountOutputWithContext

func (i *Account) ToAccountOutputWithContext(ctx context.Context) AccountOutput

type AccountArgs

type AccountArgs struct {
	// Customer owned application ID. Changing this forces a new Account to be created.
	ApplicationId pulumi.StringInput
	// Specifies the name of this Account. Changing this forces a new Account to be created.
	Name pulumi.StringPtrInput
	// Specifies the name of the Resource Group within which this Account should exist. Changing this forces a new Account to be created.
	ResourceGroupName pulumi.StringInput
	// A mapping of tags which should be assigned to the Account.
	Tags pulumi.StringMapInput
}

The set of arguments for constructing a Account resource.

func (AccountArgs) ElementType

func (AccountArgs) ElementType() reflect.Type

type AccountArray

type AccountArray []AccountInput

func (AccountArray) ElementType

func (AccountArray) ElementType() reflect.Type

func (AccountArray) ToAccountArrayOutput

func (i AccountArray) ToAccountArrayOutput() AccountArrayOutput

func (AccountArray) ToAccountArrayOutputWithContext

func (i AccountArray) ToAccountArrayOutputWithContext(ctx context.Context) AccountArrayOutput

type AccountArrayInput

type AccountArrayInput interface {
	pulumi.Input

	ToAccountArrayOutput() AccountArrayOutput
	ToAccountArrayOutputWithContext(context.Context) AccountArrayOutput
}

AccountArrayInput is an input type that accepts AccountArray and AccountArrayOutput values. You can construct a concrete instance of `AccountArrayInput` via:

AccountArray{ AccountArgs{...} }

type AccountArrayOutput

type AccountArrayOutput struct{ *pulumi.OutputState }

func (AccountArrayOutput) ElementType

func (AccountArrayOutput) ElementType() reflect.Type

func (AccountArrayOutput) Index

func (AccountArrayOutput) ToAccountArrayOutput

func (o AccountArrayOutput) ToAccountArrayOutput() AccountArrayOutput

func (AccountArrayOutput) ToAccountArrayOutputWithContext

func (o AccountArrayOutput) ToAccountArrayOutputWithContext(ctx context.Context) AccountArrayOutput

type AccountInput

type AccountInput interface {
	pulumi.Input

	ToAccountOutput() AccountOutput
	ToAccountOutputWithContext(ctx context.Context) AccountOutput
}

type AccountMap

type AccountMap map[string]AccountInput

func (AccountMap) ElementType

func (AccountMap) ElementType() reflect.Type

func (AccountMap) ToAccountMapOutput

func (i AccountMap) ToAccountMapOutput() AccountMapOutput

func (AccountMap) ToAccountMapOutputWithContext

func (i AccountMap) ToAccountMapOutputWithContext(ctx context.Context) AccountMapOutput

type AccountMapInput

type AccountMapInput interface {
	pulumi.Input

	ToAccountMapOutput() AccountMapOutput
	ToAccountMapOutputWithContext(context.Context) AccountMapOutput
}

AccountMapInput is an input type that accepts AccountMap and AccountMapOutput values. You can construct a concrete instance of `AccountMapInput` via:

AccountMap{ "key": AccountArgs{...} }

type AccountMapOutput

type AccountMapOutput struct{ *pulumi.OutputState }

func (AccountMapOutput) ElementType

func (AccountMapOutput) ElementType() reflect.Type

func (AccountMapOutput) MapIndex

func (AccountMapOutput) ToAccountMapOutput

func (o AccountMapOutput) ToAccountMapOutput() AccountMapOutput

func (AccountMapOutput) ToAccountMapOutputWithContext

func (o AccountMapOutput) ToAccountMapOutputWithContext(ctx context.Context) AccountMapOutput

type AccountOutput

type AccountOutput struct{ *pulumi.OutputState }

func (AccountOutput) ApplicationId

func (o AccountOutput) ApplicationId() pulumi.StringOutput

Customer owned application ID. Changing this forces a new Account to be created.

func (AccountOutput) BillingPlanId

func (o AccountOutput) BillingPlanId() pulumi.StringOutput

Billing Plan Id.

func (AccountOutput) ElementType

func (AccountOutput) ElementType() reflect.Type

func (AccountOutput) Name

Specifies the name of this Account. Changing this forces a new Account to be created.

func (AccountOutput) ResourceGroupName

func (o AccountOutput) ResourceGroupName() pulumi.StringOutput

Specifies the name of the Resource Group within which this Account should exist. Changing this forces a new Account to be created.

func (AccountOutput) Tags

A mapping of tags which should be assigned to the Account.

func (AccountOutput) ToAccountOutput

func (o AccountOutput) ToAccountOutput() AccountOutput

func (AccountOutput) ToAccountOutputWithContext

func (o AccountOutput) ToAccountOutputWithContext(ctx context.Context) AccountOutput

type AccountState

type AccountState struct {
	// Customer owned application ID. Changing this forces a new Account to be created.
	ApplicationId pulumi.StringPtrInput
	// Billing Plan Id.
	BillingPlanId pulumi.StringPtrInput
	// Specifies the name of this Account. Changing this forces a new Account to be created.
	Name pulumi.StringPtrInput
	// Specifies the name of the Resource Group within which this Account should exist. Changing this forces a new Account to be created.
	ResourceGroupName pulumi.StringPtrInput
	// A mapping of tags which should be assigned to the Account.
	Tags pulumi.StringMapInput
}

func (AccountState) ElementType

func (AccountState) ElementType() reflect.Type

type ServicesAccount added in v5.49.0

type ServicesAccount struct {
	pulumi.CustomResourceState

	// Customer owned application ID. Changing this forces a new Account to be created.
	ApplicationId pulumi.StringOutput `pulumi:"applicationId"`
	// Billing Plan Id.
	BillingPlanId pulumi.StringOutput `pulumi:"billingPlanId"`
	// Specifies the name of this Account. Changing this forces a new Account to be created.
	Name pulumi.StringOutput `pulumi:"name"`
	// Specifies the name of the Resource Group within which this Account should exist. Changing this forces a new Account to be created.
	ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"`
	// A mapping of tags which should be assigned to the Account.
	Tags pulumi.StringMapOutput `pulumi:"tags"`
}

Manages a Microsoft Graph Services Account.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/graph"
"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := azuread.NewApplication(ctx, "example", &azuread.ApplicationArgs{
			DisplayName: pulumi.String("example-app"),
		})
		if err != nil {
			return err
		}
		exampleResourceGroup, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
			Name:     pulumi.String("example-resources"),
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		_, err = graph.NewServicesAccount(ctx, "example", &graph.ServicesAccountArgs{
			Name:              pulumi.String("example"),
			ResourceGroupName: exampleResourceGroup.Name,
			ApplicationId:     example.ApplicationId,
			Tags: pulumi.StringMap{
				"environment": pulumi.String("Production"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

An existing Account can be imported into Terraform using the `resource id`, e.g.

```sh $ pulumi import azure:graph/servicesAccount:ServicesAccount example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/example-resource-group/providers/Microsoft.GraphServices/accounts/account1 ```

func GetServicesAccount added in v5.49.0

func GetServicesAccount(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ServicesAccountState, opts ...pulumi.ResourceOption) (*ServicesAccount, error)

GetServicesAccount gets an existing ServicesAccount 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 NewServicesAccount added in v5.49.0

func NewServicesAccount(ctx *pulumi.Context,
	name string, args *ServicesAccountArgs, opts ...pulumi.ResourceOption) (*ServicesAccount, error)

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

func (*ServicesAccount) ElementType added in v5.49.0

func (*ServicesAccount) ElementType() reflect.Type

func (*ServicesAccount) ToServicesAccountOutput added in v5.49.0

func (i *ServicesAccount) ToServicesAccountOutput() ServicesAccountOutput

func (*ServicesAccount) ToServicesAccountOutputWithContext added in v5.49.0

func (i *ServicesAccount) ToServicesAccountOutputWithContext(ctx context.Context) ServicesAccountOutput

type ServicesAccountArgs added in v5.49.0

type ServicesAccountArgs struct {
	// Customer owned application ID. Changing this forces a new Account to be created.
	ApplicationId pulumi.StringInput
	// Specifies the name of this Account. Changing this forces a new Account to be created.
	Name pulumi.StringPtrInput
	// Specifies the name of the Resource Group within which this Account should exist. Changing this forces a new Account to be created.
	ResourceGroupName pulumi.StringInput
	// A mapping of tags which should be assigned to the Account.
	Tags pulumi.StringMapInput
}

The set of arguments for constructing a ServicesAccount resource.

func (ServicesAccountArgs) ElementType added in v5.49.0

func (ServicesAccountArgs) ElementType() reflect.Type

type ServicesAccountArray added in v5.49.0

type ServicesAccountArray []ServicesAccountInput

func (ServicesAccountArray) ElementType added in v5.49.0

func (ServicesAccountArray) ElementType() reflect.Type

func (ServicesAccountArray) ToServicesAccountArrayOutput added in v5.49.0

func (i ServicesAccountArray) ToServicesAccountArrayOutput() ServicesAccountArrayOutput

func (ServicesAccountArray) ToServicesAccountArrayOutputWithContext added in v5.49.0

func (i ServicesAccountArray) ToServicesAccountArrayOutputWithContext(ctx context.Context) ServicesAccountArrayOutput

type ServicesAccountArrayInput added in v5.49.0

type ServicesAccountArrayInput interface {
	pulumi.Input

	ToServicesAccountArrayOutput() ServicesAccountArrayOutput
	ToServicesAccountArrayOutputWithContext(context.Context) ServicesAccountArrayOutput
}

ServicesAccountArrayInput is an input type that accepts ServicesAccountArray and ServicesAccountArrayOutput values. You can construct a concrete instance of `ServicesAccountArrayInput` via:

ServicesAccountArray{ ServicesAccountArgs{...} }

type ServicesAccountArrayOutput added in v5.49.0

type ServicesAccountArrayOutput struct{ *pulumi.OutputState }

func (ServicesAccountArrayOutput) ElementType added in v5.49.0

func (ServicesAccountArrayOutput) ElementType() reflect.Type

func (ServicesAccountArrayOutput) Index added in v5.49.0

func (ServicesAccountArrayOutput) ToServicesAccountArrayOutput added in v5.49.0

func (o ServicesAccountArrayOutput) ToServicesAccountArrayOutput() ServicesAccountArrayOutput

func (ServicesAccountArrayOutput) ToServicesAccountArrayOutputWithContext added in v5.49.0

func (o ServicesAccountArrayOutput) ToServicesAccountArrayOutputWithContext(ctx context.Context) ServicesAccountArrayOutput

type ServicesAccountInput added in v5.49.0

type ServicesAccountInput interface {
	pulumi.Input

	ToServicesAccountOutput() ServicesAccountOutput
	ToServicesAccountOutputWithContext(ctx context.Context) ServicesAccountOutput
}

type ServicesAccountMap added in v5.49.0

type ServicesAccountMap map[string]ServicesAccountInput

func (ServicesAccountMap) ElementType added in v5.49.0

func (ServicesAccountMap) ElementType() reflect.Type

func (ServicesAccountMap) ToServicesAccountMapOutput added in v5.49.0

func (i ServicesAccountMap) ToServicesAccountMapOutput() ServicesAccountMapOutput

func (ServicesAccountMap) ToServicesAccountMapOutputWithContext added in v5.49.0

func (i ServicesAccountMap) ToServicesAccountMapOutputWithContext(ctx context.Context) ServicesAccountMapOutput

type ServicesAccountMapInput added in v5.49.0

type ServicesAccountMapInput interface {
	pulumi.Input

	ToServicesAccountMapOutput() ServicesAccountMapOutput
	ToServicesAccountMapOutputWithContext(context.Context) ServicesAccountMapOutput
}

ServicesAccountMapInput is an input type that accepts ServicesAccountMap and ServicesAccountMapOutput values. You can construct a concrete instance of `ServicesAccountMapInput` via:

ServicesAccountMap{ "key": ServicesAccountArgs{...} }

type ServicesAccountMapOutput added in v5.49.0

type ServicesAccountMapOutput struct{ *pulumi.OutputState }

func (ServicesAccountMapOutput) ElementType added in v5.49.0

func (ServicesAccountMapOutput) ElementType() reflect.Type

func (ServicesAccountMapOutput) MapIndex added in v5.49.0

func (ServicesAccountMapOutput) ToServicesAccountMapOutput added in v5.49.0

func (o ServicesAccountMapOutput) ToServicesAccountMapOutput() ServicesAccountMapOutput

func (ServicesAccountMapOutput) ToServicesAccountMapOutputWithContext added in v5.49.0

func (o ServicesAccountMapOutput) ToServicesAccountMapOutputWithContext(ctx context.Context) ServicesAccountMapOutput

type ServicesAccountOutput added in v5.49.0

type ServicesAccountOutput struct{ *pulumi.OutputState }

func (ServicesAccountOutput) ApplicationId added in v5.49.0

func (o ServicesAccountOutput) ApplicationId() pulumi.StringOutput

Customer owned application ID. Changing this forces a new Account to be created.

func (ServicesAccountOutput) BillingPlanId added in v5.49.0

func (o ServicesAccountOutput) BillingPlanId() pulumi.StringOutput

Billing Plan Id.

func (ServicesAccountOutput) ElementType added in v5.49.0

func (ServicesAccountOutput) ElementType() reflect.Type

func (ServicesAccountOutput) Name added in v5.49.0

Specifies the name of this Account. Changing this forces a new Account to be created.

func (ServicesAccountOutput) ResourceGroupName added in v5.49.0

func (o ServicesAccountOutput) ResourceGroupName() pulumi.StringOutput

Specifies the name of the Resource Group within which this Account should exist. Changing this forces a new Account to be created.

func (ServicesAccountOutput) Tags added in v5.49.0

A mapping of tags which should be assigned to the Account.

func (ServicesAccountOutput) ToServicesAccountOutput added in v5.49.0

func (o ServicesAccountOutput) ToServicesAccountOutput() ServicesAccountOutput

func (ServicesAccountOutput) ToServicesAccountOutputWithContext added in v5.49.0

func (o ServicesAccountOutput) ToServicesAccountOutputWithContext(ctx context.Context) ServicesAccountOutput

type ServicesAccountState added in v5.49.0

type ServicesAccountState struct {
	// Customer owned application ID. Changing this forces a new Account to be created.
	ApplicationId pulumi.StringPtrInput
	// Billing Plan Id.
	BillingPlanId pulumi.StringPtrInput
	// Specifies the name of this Account. Changing this forces a new Account to be created.
	Name pulumi.StringPtrInput
	// Specifies the name of the Resource Group within which this Account should exist. Changing this forces a new Account to be created.
	ResourceGroupName pulumi.StringPtrInput
	// A mapping of tags which should be assigned to the Account.
	Tags pulumi.StringMapInput
}

func (ServicesAccountState) ElementType added in v5.49.0

func (ServicesAccountState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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