Thanks to visit codestin.com
Credit goes to pkg.go.dev

create_user

package
v7.25.4 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

创建 IAM 子账号

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateIamUserParam

type CreateIamUserParam = Request

创建 IAM 子账号参数

type CreatedIamUserData

type CreatedIamUserData = Data

返回的 IAM 子账号信息

type CreatedIamUserResp

type CreatedIamUserResp = Response

返回的 IAM 子账号响应

type Data

type Data struct {
	Id            string // 记录 ID
	RootUid       int64  // 根用户 uid
	Iuid          int64  // 子账号 uid
	Alias         string // 子账号别名
	CreatedAt     string // 子账号创建时间
	UpdatedAt     string // 子账号上次更新时间
	LastLoginTime string // 子账号上次更新时间
	Enabled       bool   // 子账号是否启用
}

IAM 子账号信息

func (*Data) MarshalJSON

func (j *Data) MarshalJSON() ([]byte, error)

func (*Data) UnmarshalJSON

func (j *Data) UnmarshalJSON(data []byte) error

type Request

type Request struct {
	Credentials credentials.CredentialsProvider // 鉴权参数,用于生成鉴权凭证,如果为空,则使用 HTTPClientOptions 中的 CredentialsProvider
	Alias       string                          // 子账号别名
	Password    string                          // 子账号密码
}

调用 API 所用的请求

func (*Request) MarshalJSON

func (j *Request) MarshalJSON() ([]byte, error)

func (*Request) UnmarshalJSON

func (j *Request) UnmarshalJSON(data []byte) error

type Response

type Response struct {
	Data CreatedIamUserData // IAM 子账号信息
}

获取 API 所用的响应

func (*Response) MarshalJSON

func (j *Response) MarshalJSON() ([]byte, error)

func (*Response) UnmarshalJSON

func (j *Response) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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