graph

package
v6.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 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 ServicesAccount

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/v6/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v6/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 Pulumi 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

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

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

func (*ServicesAccount) ElementType() reflect.Type

func (*ServicesAccount) ToServicesAccountOutput

func (i *ServicesAccount) ToServicesAccountOutput() ServicesAccountOutput

func (*ServicesAccount) ToServicesAccountOutputWithContext

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

type ServicesAccountArgs

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

func (ServicesAccountArgs) ElementType() reflect.Type

type ServicesAccountArray

type ServicesAccountArray []ServicesAccountInput

func (ServicesAccountArray) ElementType

func (ServicesAccountArray) ElementType() reflect.Type

func (ServicesAccountArray) ToServicesAccountArrayOutput

func (i ServicesAccountArray) ToServicesAccountArrayOutput() ServicesAccountArrayOutput

func (ServicesAccountArray) ToServicesAccountArrayOutputWithContext

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

type ServicesAccountArrayInput

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

type ServicesAccountArrayOutput struct{ *pulumi.OutputState }

func (ServicesAccountArrayOutput) ElementType

func (ServicesAccountArrayOutput) ElementType() reflect.Type

func (ServicesAccountArrayOutput) Index

func (ServicesAccountArrayOutput) ToServicesAccountArrayOutput

func (o ServicesAccountArrayOutput) ToServicesAccountArrayOutput() ServicesAccountArrayOutput

func (ServicesAccountArrayOutput) ToServicesAccountArrayOutputWithContext

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

type ServicesAccountInput

type ServicesAccountInput interface {
	pulumi.Input

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

type ServicesAccountMap

type ServicesAccountMap map[string]ServicesAccountInput

func (ServicesAccountMap) ElementType

func (ServicesAccountMap) ElementType() reflect.Type

func (ServicesAccountMap) ToServicesAccountMapOutput

func (i ServicesAccountMap) ToServicesAccountMapOutput() ServicesAccountMapOutput

func (ServicesAccountMap) ToServicesAccountMapOutputWithContext

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

type ServicesAccountMapInput

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

type ServicesAccountMapOutput struct{ *pulumi.OutputState }

func (ServicesAccountMapOutput) ElementType

func (ServicesAccountMapOutput) ElementType() reflect.Type

func (ServicesAccountMapOutput) MapIndex

func (ServicesAccountMapOutput) ToServicesAccountMapOutput

func (o ServicesAccountMapOutput) ToServicesAccountMapOutput() ServicesAccountMapOutput

func (ServicesAccountMapOutput) ToServicesAccountMapOutputWithContext

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

type ServicesAccountOutput

type ServicesAccountOutput struct{ *pulumi.OutputState }

func (ServicesAccountOutput) ApplicationId

func (o ServicesAccountOutput) ApplicationId() pulumi.StringOutput

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

func (ServicesAccountOutput) BillingPlanId

func (o ServicesAccountOutput) BillingPlanId() pulumi.StringOutput

Billing Plan Id.

func (ServicesAccountOutput) ElementType

func (ServicesAccountOutput) ElementType() reflect.Type

func (ServicesAccountOutput) Name

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

func (ServicesAccountOutput) ResourceGroupName

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

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

func (ServicesAccountOutput) ToServicesAccountOutput

func (o ServicesAccountOutput) ToServicesAccountOutput() ServicesAccountOutput

func (ServicesAccountOutput) ToServicesAccountOutputWithContext

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

type ServicesAccountState

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

func (ServicesAccountState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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