quickbi

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PkgVersion added in v0.0.1

func PkgVersion() (semver.Version, error)

PkgVersion uses reflection to determine the version of the current package. If a version cannot be determined, v1 will be assumed. The second return value is always nil.

Types

type GetUsersArgs

type GetUsersArgs struct {
	// Default to `false`. Set it to `true` can output more details about resource attributes.
	EnableDetails *bool `pulumi:"enableDetails"`
	// A list of User IDs.
	Ids []string `pulumi:"ids"`
	// The keywords of the nicknames or usernames of the members of the organization.
	Keyword    *string `pulumi:"keyword"`
	OutputFile *string `pulumi:"outputFile"`
}

A collection of arguments for invoking getUsers.

type GetUsersOutputArgs

type GetUsersOutputArgs struct {
	// Default to `false`. Set it to `true` can output more details about resource attributes.
	EnableDetails pulumi.BoolPtrInput `pulumi:"enableDetails"`
	// A list of User IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// The keywords of the nicknames or usernames of the members of the organization.
	Keyword    pulumi.StringPtrInput `pulumi:"keyword"`
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
}

A collection of arguments for invoking getUsers.

func (GetUsersOutputArgs) ElementType

func (GetUsersOutputArgs) ElementType() reflect.Type

type GetUsersResult

type GetUsersResult struct {
	EnableDetails *bool `pulumi:"enableDetails"`
	// The provider-assigned unique ID for this managed resource.
	Id         string         `pulumi:"id"`
	Ids        []string       `pulumi:"ids"`
	Keyword    *string        `pulumi:"keyword"`
	OutputFile *string        `pulumi:"outputFile"`
	Users      []GetUsersUser `pulumi:"users"`
}

A collection of values returned by getUsers.

func GetUsers

func GetUsers(ctx *pulumi.Context, args *GetUsersArgs, opts ...pulumi.InvokeOption) (*GetUsersResult, error)

This data source provides the Quick BI Users of the current Alibaba Cloud user.

> **NOTE:** Available in v1.136.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/quickbi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/quickbi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ids, err := quickbi.GetUsers(ctx, &quickbi.GetUsersArgs{
			Ids: []string{
				"example_id",
			},
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("quickBiUserId1", ids.Users[0].Id)
		return nil
	})
}

```

type GetUsersResultOutput

type GetUsersResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getUsers.

func (GetUsersResultOutput) ElementType

func (GetUsersResultOutput) ElementType() reflect.Type

func (GetUsersResultOutput) EnableDetails

func (o GetUsersResultOutput) EnableDetails() pulumi.BoolPtrOutput

func (GetUsersResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetUsersResultOutput) Ids

func (GetUsersResultOutput) Keyword

func (GetUsersResultOutput) OutputFile

func (GetUsersResultOutput) ToGetUsersResultOutput

func (o GetUsersResultOutput) ToGetUsersResultOutput() GetUsersResultOutput

func (GetUsersResultOutput) ToGetUsersResultOutputWithContext

func (o GetUsersResultOutput) ToGetUsersResultOutputWithContext(ctx context.Context) GetUsersResultOutput

func (GetUsersResultOutput) Users

type GetUsersUser

type GetUsersUser struct {
	// Alibaba Cloud account ID.
	AccountId string `pulumi:"accountId"`
	// An Alibaba Cloud account, Alibaba Cloud name.
	AccountName string `pulumi:"accountName"`
	// Whether it is the administrator. Valid values: `true` and `false`.
	AdminUser bool `pulumi:"adminUser"`
	// Whether this is a permissions administrator. Valid values: `true` and `false`.
	AuthAdminUser bool `pulumi:"authAdminUser"`
	// The email of the user.
	Email string `pulumi:"email"`
	// The ID of the User.
	Id string `pulumi:"id"`
	// The nickname of the user.
	NickName string `pulumi:"nickName"`
	// The phone number of the user.
	Phone string `pulumi:"phone"`
	// The ID of the User.
	UserId string `pulumi:"userId"`
	// The members of the organization of the type of role separately. Valid values: `Analyst`, `Developer` and `Visitor`.
	UserType string `pulumi:"userType"`
}

type GetUsersUserArgs

type GetUsersUserArgs struct {
	// Alibaba Cloud account ID.
	AccountId pulumi.StringInput `pulumi:"accountId"`
	// An Alibaba Cloud account, Alibaba Cloud name.
	AccountName pulumi.StringInput `pulumi:"accountName"`
	// Whether it is the administrator. Valid values: `true` and `false`.
	AdminUser pulumi.BoolInput `pulumi:"adminUser"`
	// Whether this is a permissions administrator. Valid values: `true` and `false`.
	AuthAdminUser pulumi.BoolInput `pulumi:"authAdminUser"`
	// The email of the user.
	Email pulumi.StringInput `pulumi:"email"`
	// The ID of the User.
	Id pulumi.StringInput `pulumi:"id"`
	// The nickname of the user.
	NickName pulumi.StringInput `pulumi:"nickName"`
	// The phone number of the user.
	Phone pulumi.StringInput `pulumi:"phone"`
	// The ID of the User.
	UserId pulumi.StringInput `pulumi:"userId"`
	// The members of the organization of the type of role separately. Valid values: `Analyst`, `Developer` and `Visitor`.
	UserType pulumi.StringInput `pulumi:"userType"`
}

func (GetUsersUserArgs) ElementType

func (GetUsersUserArgs) ElementType() reflect.Type

func (GetUsersUserArgs) ToGetUsersUserOutput

func (i GetUsersUserArgs) ToGetUsersUserOutput() GetUsersUserOutput

func (GetUsersUserArgs) ToGetUsersUserOutputWithContext

func (i GetUsersUserArgs) ToGetUsersUserOutputWithContext(ctx context.Context) GetUsersUserOutput

type GetUsersUserArray

type GetUsersUserArray []GetUsersUserInput

func (GetUsersUserArray) ElementType

func (GetUsersUserArray) ElementType() reflect.Type

func (GetUsersUserArray) ToGetUsersUserArrayOutput

func (i GetUsersUserArray) ToGetUsersUserArrayOutput() GetUsersUserArrayOutput

func (GetUsersUserArray) ToGetUsersUserArrayOutputWithContext

func (i GetUsersUserArray) ToGetUsersUserArrayOutputWithContext(ctx context.Context) GetUsersUserArrayOutput

type GetUsersUserArrayInput

type GetUsersUserArrayInput interface {
	pulumi.Input

	ToGetUsersUserArrayOutput() GetUsersUserArrayOutput
	ToGetUsersUserArrayOutputWithContext(context.Context) GetUsersUserArrayOutput
}

GetUsersUserArrayInput is an input type that accepts GetUsersUserArray and GetUsersUserArrayOutput values. You can construct a concrete instance of `GetUsersUserArrayInput` via:

GetUsersUserArray{ GetUsersUserArgs{...} }

type GetUsersUserArrayOutput

type GetUsersUserArrayOutput struct{ *pulumi.OutputState }

func (GetUsersUserArrayOutput) ElementType

func (GetUsersUserArrayOutput) ElementType() reflect.Type

func (GetUsersUserArrayOutput) Index

func (GetUsersUserArrayOutput) ToGetUsersUserArrayOutput

func (o GetUsersUserArrayOutput) ToGetUsersUserArrayOutput() GetUsersUserArrayOutput

func (GetUsersUserArrayOutput) ToGetUsersUserArrayOutputWithContext

func (o GetUsersUserArrayOutput) ToGetUsersUserArrayOutputWithContext(ctx context.Context) GetUsersUserArrayOutput

type GetUsersUserInput

type GetUsersUserInput interface {
	pulumi.Input

	ToGetUsersUserOutput() GetUsersUserOutput
	ToGetUsersUserOutputWithContext(context.Context) GetUsersUserOutput
}

GetUsersUserInput is an input type that accepts GetUsersUserArgs and GetUsersUserOutput values. You can construct a concrete instance of `GetUsersUserInput` via:

GetUsersUserArgs{...}

type GetUsersUserOutput

type GetUsersUserOutput struct{ *pulumi.OutputState }

func (GetUsersUserOutput) AccountId

func (o GetUsersUserOutput) AccountId() pulumi.StringOutput

Alibaba Cloud account ID.

func (GetUsersUserOutput) AccountName

func (o GetUsersUserOutput) AccountName() pulumi.StringOutput

An Alibaba Cloud account, Alibaba Cloud name.

func (GetUsersUserOutput) AdminUser

func (o GetUsersUserOutput) AdminUser() pulumi.BoolOutput

Whether it is the administrator. Valid values: `true` and `false`.

func (GetUsersUserOutput) AuthAdminUser

func (o GetUsersUserOutput) AuthAdminUser() pulumi.BoolOutput

Whether this is a permissions administrator. Valid values: `true` and `false`.

func (GetUsersUserOutput) ElementType

func (GetUsersUserOutput) ElementType() reflect.Type

func (GetUsersUserOutput) Email

The email of the user.

func (GetUsersUserOutput) Id

The ID of the User.

func (GetUsersUserOutput) NickName

func (o GetUsersUserOutput) NickName() pulumi.StringOutput

The nickname of the user.

func (GetUsersUserOutput) Phone

The phone number of the user.

func (GetUsersUserOutput) ToGetUsersUserOutput

func (o GetUsersUserOutput) ToGetUsersUserOutput() GetUsersUserOutput

func (GetUsersUserOutput) ToGetUsersUserOutputWithContext

func (o GetUsersUserOutput) ToGetUsersUserOutputWithContext(ctx context.Context) GetUsersUserOutput

func (GetUsersUserOutput) UserId

The ID of the User.

func (GetUsersUserOutput) UserType

func (o GetUsersUserOutput) UserType() pulumi.StringOutput

The members of the organization of the type of role separately. Valid values: `Analyst`, `Developer` and `Visitor`.

type User

type User struct {
	pulumi.CustomResourceState

	// Alibaba Cloud account ID.
	AccountId pulumi.StringPtrOutput `pulumi:"accountId"`
	// An Alibaba Cloud account, Alibaba Cloud name.
	AccountName pulumi.StringOutput `pulumi:"accountName"`
	// Whether it is the administrator. Valid values: `true` and `false`.
	AdminUser pulumi.BoolOutput `pulumi:"adminUser"`
	// Whether this is a permissions administrator. Valid values: `false`, `true`.
	AuthAdminUser pulumi.BoolOutput `pulumi:"authAdminUser"`
	// The nickname of the user.
	NickName pulumi.StringOutput `pulumi:"nickName"`
	// The members of the organization of the type of role separately. Valid values: `Analyst`, `Developer` and `Visitor`.
	UserType pulumi.StringOutput `pulumi:"userType"`
}

Provides a Quick BI User resource.

For information about Quick BI User and how to use it, see [What is User](https://www.alibabacloud.com/help/doc-detail/33813.htm).

> **NOTE:** Available in v1.136.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/quickbi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := quickbi.NewUser(ctx, "example", &quickbi.UserArgs{
			AccountName:   pulumi.String("example_value"),
			AdminUser:     pulumi.Bool(false),
			AuthAdminUser: pulumi.Bool(false),
			NickName:      pulumi.String("example_value"),
			UserType:      pulumi.String("Analyst"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Quick BI User can be imported using the id, e.g.

```sh

$ pulumi import alicloud:quickbi/user:User example <id>

```

func GetUser

func GetUser(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *UserState, opts ...pulumi.ResourceOption) (*User, error)

GetUser gets an existing User 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 NewUser

func NewUser(ctx *pulumi.Context,
	name string, args *UserArgs, opts ...pulumi.ResourceOption) (*User, error)

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

func (*User) ElementType

func (*User) ElementType() reflect.Type

func (*User) ToUserOutput

func (i *User) ToUserOutput() UserOutput

func (*User) ToUserOutputWithContext

func (i *User) ToUserOutputWithContext(ctx context.Context) UserOutput

type UserArgs

type UserArgs struct {
	// Alibaba Cloud account ID.
	AccountId pulumi.StringPtrInput
	// An Alibaba Cloud account, Alibaba Cloud name.
	AccountName pulumi.StringInput
	// Whether it is the administrator. Valid values: `true` and `false`.
	AdminUser pulumi.BoolInput
	// Whether this is a permissions administrator. Valid values: `false`, `true`.
	AuthAdminUser pulumi.BoolInput
	// The nickname of the user.
	NickName pulumi.StringInput
	// The members of the organization of the type of role separately. Valid values: `Analyst`, `Developer` and `Visitor`.
	UserType pulumi.StringInput
}

The set of arguments for constructing a User resource.

func (UserArgs) ElementType

func (UserArgs) ElementType() reflect.Type

type UserArray

type UserArray []UserInput

func (UserArray) ElementType

func (UserArray) ElementType() reflect.Type

func (UserArray) ToUserArrayOutput

func (i UserArray) ToUserArrayOutput() UserArrayOutput

func (UserArray) ToUserArrayOutputWithContext

func (i UserArray) ToUserArrayOutputWithContext(ctx context.Context) UserArrayOutput

type UserArrayInput

type UserArrayInput interface {
	pulumi.Input

	ToUserArrayOutput() UserArrayOutput
	ToUserArrayOutputWithContext(context.Context) UserArrayOutput
}

UserArrayInput is an input type that accepts UserArray and UserArrayOutput values. You can construct a concrete instance of `UserArrayInput` via:

UserArray{ UserArgs{...} }

type UserArrayOutput

type UserArrayOutput struct{ *pulumi.OutputState }

func (UserArrayOutput) ElementType

func (UserArrayOutput) ElementType() reflect.Type

func (UserArrayOutput) Index

func (UserArrayOutput) ToUserArrayOutput

func (o UserArrayOutput) ToUserArrayOutput() UserArrayOutput

func (UserArrayOutput) ToUserArrayOutputWithContext

func (o UserArrayOutput) ToUserArrayOutputWithContext(ctx context.Context) UserArrayOutput

type UserInput

type UserInput interface {
	pulumi.Input

	ToUserOutput() UserOutput
	ToUserOutputWithContext(ctx context.Context) UserOutput
}

type UserMap

type UserMap map[string]UserInput

func (UserMap) ElementType

func (UserMap) ElementType() reflect.Type

func (UserMap) ToUserMapOutput

func (i UserMap) ToUserMapOutput() UserMapOutput

func (UserMap) ToUserMapOutputWithContext

func (i UserMap) ToUserMapOutputWithContext(ctx context.Context) UserMapOutput

type UserMapInput

type UserMapInput interface {
	pulumi.Input

	ToUserMapOutput() UserMapOutput
	ToUserMapOutputWithContext(context.Context) UserMapOutput
}

UserMapInput is an input type that accepts UserMap and UserMapOutput values. You can construct a concrete instance of `UserMapInput` via:

UserMap{ "key": UserArgs{...} }

type UserMapOutput

type UserMapOutput struct{ *pulumi.OutputState }

func (UserMapOutput) ElementType

func (UserMapOutput) ElementType() reflect.Type

func (UserMapOutput) MapIndex

func (UserMapOutput) ToUserMapOutput

func (o UserMapOutput) ToUserMapOutput() UserMapOutput

func (UserMapOutput) ToUserMapOutputWithContext

func (o UserMapOutput) ToUserMapOutputWithContext(ctx context.Context) UserMapOutput

type UserOutput

type UserOutput struct{ *pulumi.OutputState }

func (UserOutput) AccountId

func (o UserOutput) AccountId() pulumi.StringPtrOutput

Alibaba Cloud account ID.

func (UserOutput) AccountName

func (o UserOutput) AccountName() pulumi.StringOutput

An Alibaba Cloud account, Alibaba Cloud name.

func (UserOutput) AdminUser

func (o UserOutput) AdminUser() pulumi.BoolOutput

Whether it is the administrator. Valid values: `true` and `false`.

func (UserOutput) AuthAdminUser

func (o UserOutput) AuthAdminUser() pulumi.BoolOutput

Whether this is a permissions administrator. Valid values: `false`, `true`.

func (UserOutput) ElementType

func (UserOutput) ElementType() reflect.Type

func (UserOutput) NickName

func (o UserOutput) NickName() pulumi.StringOutput

The nickname of the user.

func (UserOutput) ToUserOutput

func (o UserOutput) ToUserOutput() UserOutput

func (UserOutput) ToUserOutputWithContext

func (o UserOutput) ToUserOutputWithContext(ctx context.Context) UserOutput

func (UserOutput) UserType

func (o UserOutput) UserType() pulumi.StringOutput

The members of the organization of the type of role separately. Valid values: `Analyst`, `Developer` and `Visitor`.

type UserState

type UserState struct {
	// Alibaba Cloud account ID.
	AccountId pulumi.StringPtrInput
	// An Alibaba Cloud account, Alibaba Cloud name.
	AccountName pulumi.StringPtrInput
	// Whether it is the administrator. Valid values: `true` and `false`.
	AdminUser pulumi.BoolPtrInput
	// Whether this is a permissions administrator. Valid values: `false`, `true`.
	AuthAdminUser pulumi.BoolPtrInput
	// The nickname of the user.
	NickName pulumi.StringPtrInput
	// The members of the organization of the type of role separately. Valid values: `Analyst`, `Developer` and `Visitor`.
	UserType pulumi.StringPtrInput
}

func (UserState) ElementType

func (UserState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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