get_user_groups

package
v7.23.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

查询子账号所属用户分组列表

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	Count int64            // IAM 子账号分组数量
	List  GetIamUserGroups // IAM 子账号分组列表
}

IAM 子账号分组信息

func (*Data) MarshalJSON

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

func (*Data) UnmarshalJSON

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

type GetIamUserGroups

type GetIamUserGroups = []IamUserGroup

返回的 IAM 子账号分组列表

type GetIamUserGroupsData

type GetIamUserGroupsData = Data

返回的 IAM 子账号分组列表信息

type GetIamUserGroupsResp

type GetIamUserGroupsResp = Response

返回的 IAM 子账号分组列表响应

type IamUserGroup

type IamUserGroup struct {
	Id          string // 记录 ID
	RootUid     int64  // 根用户 uid
	Alias       string // 用户分组别名
	Description string // 用户分组描述
	Enabled     bool   // 用户分组是否启用
	CreatedAt   string // 用户分组创建时间
	UpdatedAt   string // 用户分组上次更新时间
}

返回的 IAM 子账号分组

func (*IamUserGroup) MarshalJSON

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

func (*IamUserGroup) UnmarshalJSON

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

type Request

type Request struct {
	Alias       string                          // 子账号别名
	Page        int64                           // 分页页号,从 1 开始,默认 1
	PageSize    int64                           // 分页大小,默认 20,最大 2000
	Credentials credentials.CredentialsProvider // 鉴权参数,用于生成鉴权凭证,如果为空,则使用 HTTPClientOptions 中的 CredentialsProvider
}

调用 API 所用的请求

type Response

type Response struct {
	Data GetIamUserGroupsData // 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