uaccount

package
v0.0.0-...-4e6c764 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetProjectArgs

type GetProjectArgs struct {
	// To identify if the current account is granted with financial permission.
	IsFinance *bool `pulumi:"isFinance"`
	// A regex string to filter resulting projects by name.
	NameRegex  *string `pulumi:"nameRegex"`
	OutputFile *string `pulumi:"outputFile"`
}

A collection of arguments for invoking getProject.

type GetProjectProject

type GetProjectProject struct {
	// The time of creation for instance, formatted in RFC3339 time string.
	CreateTime string `pulumi:"createTime"`
	// The ID of project defined.
	Id string `pulumi:"id"`
	// The number of members belongs to the defined project.
	MemberCount int `pulumi:"memberCount"`
	// The name of the defined project.
	Name string `pulumi:"name"`
	// The ID of the parent project where the sub project belongs to.
	ParentId string `pulumi:"parentId"`
	// The name of the parent project where the sub project belongs to.
	ParentName string `pulumi:"parentName"`
	// The number of the resounce instance belong/s to the defined project.
	ResourceCount int `pulumi:"resourceCount"`
}

type GetProjectProjectArgs

type GetProjectProjectArgs struct {
	// The time of creation for instance, formatted in RFC3339 time string.
	CreateTime pulumi.StringInput `pulumi:"createTime"`
	// The ID of project defined.
	Id pulumi.StringInput `pulumi:"id"`
	// The number of members belongs to the defined project.
	MemberCount pulumi.IntInput `pulumi:"memberCount"`
	// The name of the defined project.
	Name pulumi.StringInput `pulumi:"name"`
	// The ID of the parent project where the sub project belongs to.
	ParentId pulumi.StringInput `pulumi:"parentId"`
	// The name of the parent project where the sub project belongs to.
	ParentName pulumi.StringInput `pulumi:"parentName"`
	// The number of the resounce instance belong/s to the defined project.
	ResourceCount pulumi.IntInput `pulumi:"resourceCount"`
}

func (GetProjectProjectArgs) ElementType

func (GetProjectProjectArgs) ElementType() reflect.Type

func (GetProjectProjectArgs) ToGetProjectProjectOutput

func (i GetProjectProjectArgs) ToGetProjectProjectOutput() GetProjectProjectOutput

func (GetProjectProjectArgs) ToGetProjectProjectOutputWithContext

func (i GetProjectProjectArgs) ToGetProjectProjectOutputWithContext(ctx context.Context) GetProjectProjectOutput

type GetProjectProjectArray

type GetProjectProjectArray []GetProjectProjectInput

func (GetProjectProjectArray) ElementType

func (GetProjectProjectArray) ElementType() reflect.Type

func (GetProjectProjectArray) ToGetProjectProjectArrayOutput

func (i GetProjectProjectArray) ToGetProjectProjectArrayOutput() GetProjectProjectArrayOutput

func (GetProjectProjectArray) ToGetProjectProjectArrayOutputWithContext

func (i GetProjectProjectArray) ToGetProjectProjectArrayOutputWithContext(ctx context.Context) GetProjectProjectArrayOutput

type GetProjectProjectArrayInput

type GetProjectProjectArrayInput interface {
	pulumi.Input

	ToGetProjectProjectArrayOutput() GetProjectProjectArrayOutput
	ToGetProjectProjectArrayOutputWithContext(context.Context) GetProjectProjectArrayOutput
}

GetProjectProjectArrayInput is an input type that accepts GetProjectProjectArray and GetProjectProjectArrayOutput values. You can construct a concrete instance of `GetProjectProjectArrayInput` via:

GetProjectProjectArray{ GetProjectProjectArgs{...} }

type GetProjectProjectArrayOutput

type GetProjectProjectArrayOutput struct{ *pulumi.OutputState }

func (GetProjectProjectArrayOutput) ElementType

func (GetProjectProjectArrayOutput) Index

func (GetProjectProjectArrayOutput) ToGetProjectProjectArrayOutput

func (o GetProjectProjectArrayOutput) ToGetProjectProjectArrayOutput() GetProjectProjectArrayOutput

func (GetProjectProjectArrayOutput) ToGetProjectProjectArrayOutputWithContext

func (o GetProjectProjectArrayOutput) ToGetProjectProjectArrayOutputWithContext(ctx context.Context) GetProjectProjectArrayOutput

type GetProjectProjectInput

type GetProjectProjectInput interface {
	pulumi.Input

	ToGetProjectProjectOutput() GetProjectProjectOutput
	ToGetProjectProjectOutputWithContext(context.Context) GetProjectProjectOutput
}

GetProjectProjectInput is an input type that accepts GetProjectProjectArgs and GetProjectProjectOutput values. You can construct a concrete instance of `GetProjectProjectInput` via:

GetProjectProjectArgs{...}

type GetProjectProjectOutput

type GetProjectProjectOutput struct{ *pulumi.OutputState }

func (GetProjectProjectOutput) CreateTime

The time of creation for instance, formatted in RFC3339 time string.

func (GetProjectProjectOutput) ElementType

func (GetProjectProjectOutput) ElementType() reflect.Type

func (GetProjectProjectOutput) Id

The ID of project defined.

func (GetProjectProjectOutput) MemberCount

func (o GetProjectProjectOutput) MemberCount() pulumi.IntOutput

The number of members belongs to the defined project.

func (GetProjectProjectOutput) Name

The name of the defined project.

func (GetProjectProjectOutput) ParentId

The ID of the parent project where the sub project belongs to.

func (GetProjectProjectOutput) ParentName

The name of the parent project where the sub project belongs to.

func (GetProjectProjectOutput) ResourceCount

func (o GetProjectProjectOutput) ResourceCount() pulumi.IntOutput

The number of the resounce instance belong/s to the defined project.

func (GetProjectProjectOutput) ToGetProjectProjectOutput

func (o GetProjectProjectOutput) ToGetProjectProjectOutput() GetProjectProjectOutput

func (GetProjectProjectOutput) ToGetProjectProjectOutputWithContext

func (o GetProjectProjectOutput) ToGetProjectProjectOutputWithContext(ctx context.Context) GetProjectProjectOutput

type GetProjectResult

type GetProjectResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id         string  `pulumi:"id"`
	IsFinance  *bool   `pulumi:"isFinance"`
	NameRegex  *string `pulumi:"nameRegex"`
	OutputFile *string `pulumi:"outputFile"`
	// It is a nested type which documented below.
	Projects []GetProjectProject `pulumi:"projects"`
	// Total number of projects that satisfy the condition.
	TotalCount int `pulumi:"totalCount"`
}

A collection of values returned by getProject.

func GetProject

func GetProject(ctx *pulumi.Context, args *GetProjectArgs, opts ...pulumi.InvokeOption) (*GetProjectResult, error)

This data source providers a list of projects owned by user according to finance permission and name.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-ucloud/sdk/go/ucloud/uaccount"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		opt0 := false
		example, err := uaccount.GetProject(ctx, &uaccount.GetProjectArgs{
			IsFinance: &opt0,
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("first", example.Projects[0].Id)
		return nil
	})
}

```

type GetZoneArgs

type GetZoneArgs struct {
	OutputFile *string `pulumi:"outputFile"`
}

A collection of arguments for invoking getZone.

type GetZoneResult

type GetZoneResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id         string  `pulumi:"id"`
	OutputFile *string `pulumi:"outputFile"`
	// Total number of zones that satisfy the condition.
	TotalCount int `pulumi:"totalCount"`
	// It is a nested type which documented below.
	Zones []GetZoneZone `pulumi:"zones"`
}

A collection of values returned by getZone.

func GetZone

func GetZone(ctx *pulumi.Context, args *GetZoneArgs, opts ...pulumi.InvokeOption) (*GetZoneResult, error)

This data source provides a list of available zones in the current region.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-ucloud/sdk/go/ucloud/uaccount"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := uaccount.GetZone(ctx, nil, nil)
		if err != nil {
			return err
		}
		ctx.Export("first", example.Zones[0].Id)
		return nil
	})
}

```

type GetZoneZone

type GetZoneZone struct {
	// The ID of availability zone.
	Id string `pulumi:"id"`
}

type GetZoneZoneArgs

type GetZoneZoneArgs struct {
	// The ID of availability zone.
	Id pulumi.StringInput `pulumi:"id"`
}

func (GetZoneZoneArgs) ElementType

func (GetZoneZoneArgs) ElementType() reflect.Type

func (GetZoneZoneArgs) ToGetZoneZoneOutput

func (i GetZoneZoneArgs) ToGetZoneZoneOutput() GetZoneZoneOutput

func (GetZoneZoneArgs) ToGetZoneZoneOutputWithContext

func (i GetZoneZoneArgs) ToGetZoneZoneOutputWithContext(ctx context.Context) GetZoneZoneOutput

type GetZoneZoneArray

type GetZoneZoneArray []GetZoneZoneInput

func (GetZoneZoneArray) ElementType

func (GetZoneZoneArray) ElementType() reflect.Type

func (GetZoneZoneArray) ToGetZoneZoneArrayOutput

func (i GetZoneZoneArray) ToGetZoneZoneArrayOutput() GetZoneZoneArrayOutput

func (GetZoneZoneArray) ToGetZoneZoneArrayOutputWithContext

func (i GetZoneZoneArray) ToGetZoneZoneArrayOutputWithContext(ctx context.Context) GetZoneZoneArrayOutput

type GetZoneZoneArrayInput

type GetZoneZoneArrayInput interface {
	pulumi.Input

	ToGetZoneZoneArrayOutput() GetZoneZoneArrayOutput
	ToGetZoneZoneArrayOutputWithContext(context.Context) GetZoneZoneArrayOutput
}

GetZoneZoneArrayInput is an input type that accepts GetZoneZoneArray and GetZoneZoneArrayOutput values. You can construct a concrete instance of `GetZoneZoneArrayInput` via:

GetZoneZoneArray{ GetZoneZoneArgs{...} }

type GetZoneZoneArrayOutput

type GetZoneZoneArrayOutput struct{ *pulumi.OutputState }

func (GetZoneZoneArrayOutput) ElementType

func (GetZoneZoneArrayOutput) ElementType() reflect.Type

func (GetZoneZoneArrayOutput) Index

func (GetZoneZoneArrayOutput) ToGetZoneZoneArrayOutput

func (o GetZoneZoneArrayOutput) ToGetZoneZoneArrayOutput() GetZoneZoneArrayOutput

func (GetZoneZoneArrayOutput) ToGetZoneZoneArrayOutputWithContext

func (o GetZoneZoneArrayOutput) ToGetZoneZoneArrayOutputWithContext(ctx context.Context) GetZoneZoneArrayOutput

type GetZoneZoneInput

type GetZoneZoneInput interface {
	pulumi.Input

	ToGetZoneZoneOutput() GetZoneZoneOutput
	ToGetZoneZoneOutputWithContext(context.Context) GetZoneZoneOutput
}

GetZoneZoneInput is an input type that accepts GetZoneZoneArgs and GetZoneZoneOutput values. You can construct a concrete instance of `GetZoneZoneInput` via:

GetZoneZoneArgs{...}

type GetZoneZoneOutput

type GetZoneZoneOutput struct{ *pulumi.OutputState }

func (GetZoneZoneOutput) ElementType

func (GetZoneZoneOutput) ElementType() reflect.Type

func (GetZoneZoneOutput) Id

The ID of availability zone.

func (GetZoneZoneOutput) ToGetZoneZoneOutput

func (o GetZoneZoneOutput) ToGetZoneZoneOutput() GetZoneZoneOutput

func (GetZoneZoneOutput) ToGetZoneZoneOutputWithContext

func (o GetZoneZoneOutput) ToGetZoneZoneOutputWithContext(ctx context.Context) GetZoneZoneOutput

Jump to

Keyboard shortcuts

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