model

package
v0.1.118 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DecodeAuthorizationMessageReq

type DecodeAuthorizationMessageReq struct {

	// 加密的鉴权失败原因。
	EncodedMessage string `json:"encoded_message"`
}

DecodeAuthorizationMessageReq 接口/v5/decode-authorization-message的Http请求体。

func (DecodeAuthorizationMessageReq) String

type DecodeAuthorizationMessageRequest

type DecodeAuthorizationMessageRequest struct {

	// 通过临时访问密钥调用接口时,需要提供“X-Security-Token”Http头,取值为临时访问密钥的security_token字段。
	XSecurityToken *string `json:"X-Security-Token,omitempty"`

	Body *DecodeAuthorizationMessageReq `json:"body,omitempty"`
}

DecodeAuthorizationMessageRequest Request Object

func (DecodeAuthorizationMessageRequest) String

type DecodeAuthorizationMessageResponse

type DecodeAuthorizationMessageResponse struct {

	// 鉴权失败原因的明文。
	DecodedMessage *string `json:"decoded_message,omitempty"`
	HttpStatusCode int     `json:"-"`
}

DecodeAuthorizationMessageResponse Response Object

func (DecodeAuthorizationMessageResponse) String

type GetCallerIdentityRequest

type GetCallerIdentityRequest struct {

	// 通过临时访问密钥调用接口时,需要提供“X-Security-Token”Http头,取值为临时访问密钥的security_token字段。
	XSecurityToken *string `json:"X-Security-Token,omitempty"`
}

GetCallerIdentityRequest Request Object

func (GetCallerIdentityRequest) String

func (o GetCallerIdentityRequest) String() string

type GetCallerIdentityResponse

type GetCallerIdentityResponse struct {

	// 华为云账号ID。
	AccountId *string `json:"account_id,omitempty"`

	// 主体URN。
	PrincipalUrn *string `json:"principal_urn,omitempty"`

	// 主体ID。
	PrincipalId    *string `json:"principal_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

GetCallerIdentityResponse Response Object

func (GetCallerIdentityResponse) String

func (o GetCallerIdentityResponse) String() string

Jump to

Keyboard shortcuts

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