create_user_keypairs

package
v7.25.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2024 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 CreatedIamUserKeyPairData

type CreatedIamUserKeyPairData = Data

返回的 IAM 子账号密钥信息

type CreatedIamUserKeyPairResp

type CreatedIamUserKeyPairResp = Response

返回的 IAM 子账号密钥响应

type Data

type Data struct {
	Id        string // 记录 ID
	AccessKey string // IAM 子账号 Access Key
	SecretKey string // IAM 子账号 Secret Key
	UserId    string // 关联用户的记录 ID
	CreatedAt 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 {
	Alias       string                          // 子账号别名
	Credentials credentials.CredentialsProvider // 鉴权参数,用于生成鉴权凭证,如果为空,则使用 HTTPClientOptions 中的 CredentialsProvider
}

调用 API 所用的请求

type Response

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