model

package
v0.0.99 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionResources

type ActionResources struct {

	// 资源ID。
	ResourceId *string `json:"resource_id,omitempty"`

	ResourceDetail *KeyDetails `json:"resource_detail,omitempty"`

	// 资源名称,默认为空字符串。
	ResourceName *string `json:"resource_name,omitempty"`

	// 标签列表,没有标签,数组默认为空。
	Tags *[]TagItem `json:"tags,omitempty"`
}

func (ActionResources) String

func (o ActionResources) String() string
type ApiLink struct {

	// API的URL地址。
	Href *string `json:"href,omitempty"`

	// 默认值self。
	Rel *string `json:"rel,omitempty"`
}

func (ApiLink) String

func (o ApiLink) String() string

type ApiVersionDetail

type ApiVersionDetail struct {

	// 版本ID(版本号),如“v1.0”。
	Id *string `json:"id,omitempty"`

	// JSON对象,详情请参见links字段数据结构说明。
	Links *[]ApiLink `json:"links,omitempty"`

	// 若该版本API支持微版本,则填支持的最大微版本号,如果不支持微版本,则返回空字符串。
	Version *string `json:"version,omitempty"`

	// 版本状态,包含如下3种:  - CURRENT:表示该版本为主推版本。  - SUPPORTED:表示为老版本,但是现在还继续支持。  - DEPRECATED:表示为废弃版本,存在后续删除的可能。
	Status *string `json:"status,omitempty"`

	// 版本发布时间,要求用UTC时间表示。如v1.发布的时间2014-06-28T12:20:21Z。
	Updated *string `json:"updated,omitempty"`

	// 若该版本API 支持微版本,则填支持的最小微版本号,如果不支持微版本,则返回空字符串。
	MinVersion *string `json:"min_version,omitempty"`
}

func (ApiVersionDetail) String

func (o ApiVersionDetail) String() string

type BatchCreateKmsTagsRequest

type BatchCreateKmsTagsRequest struct {

	// 密钥ID
	KeyId string `json:"key_id"`

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

Request Object

func (BatchCreateKmsTagsRequest) String

func (o BatchCreateKmsTagsRequest) String() string

type BatchCreateKmsTagsRequestBody

type BatchCreateKmsTagsRequestBody struct {

	// 标签列表,key和value键值对的集合。
	Tags *[]TagItem `json:"tags,omitempty"`

	// 操作标识: 仅限于“create”和“delete”。
	Action *string `json:"action,omitempty"`

	// 请求消息序列号,36字节序列号。 例如:919c82d4-8046-4722-9094-35c3c6524cff
	Sequence *string `json:"sequence,omitempty"`
}

func (BatchCreateKmsTagsRequestBody) String

type BatchCreateKmsTagsResponse

type BatchCreateKmsTagsResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (BatchCreateKmsTagsResponse) String

type CancelGrantRequest

type CancelGrantRequest struct {
	Body *RevokeGrantRequestBody `json:"body,omitempty"`
}

Request Object

func (CancelGrantRequest) String

func (o CancelGrantRequest) String() string

type CancelGrantResponse

type CancelGrantResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (CancelGrantResponse) String

func (o CancelGrantResponse) String() string

type CancelKeyDeletionRequest

type CancelKeyDeletionRequest struct {
	Body *OperateKeyRequestBody `json:"body,omitempty"`
}

Request Object

func (CancelKeyDeletionRequest) String

func (o CancelKeyDeletionRequest) String() string

type CancelKeyDeletionResponse

type CancelKeyDeletionResponse struct {

	// 密钥ID
	KeyId *string `json:"key_id,omitempty"`

	// 密钥状态: - 2为启用状态 - 3为禁用状态 - 4为计划删除状态 - 5为等待导入状态 - 7为冻结状态
	KeyState       *string `json:"key_state,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CancelKeyDeletionResponse) String

func (o CancelKeyDeletionResponse) String() string

type CancelSelfGrantRequest

type CancelSelfGrantRequest struct {
	Body *RevokeGrantRequestBody `json:"body,omitempty"`
}

Request Object

func (CancelSelfGrantRequest) String

func (o CancelSelfGrantRequest) String() string

type CancelSelfGrantResponse

type CancelSelfGrantResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (CancelSelfGrantResponse) String

func (o CancelSelfGrantResponse) String() string

type CreateDatakeyRequest

type CreateDatakeyRequest struct {
	Body *CreateDatakeyRequestBody `json:"body,omitempty"`
}

Request Object

func (CreateDatakeyRequest) String

func (o CreateDatakeyRequest) String() string

type CreateDatakeyRequestBody

type CreateDatakeyRequestBody struct {

	// 密钥ID,36字节,满足正则匹配“^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$”。 例如:0d0466b0-e727-4d9c-b35d-f84bb474a37f。
	KeyId string `json:"key_id"`

	// 指定生成的密钥bit位长度。有效值:AES_256、AES_128。  - AES_256:表示256比特的对称密钥。  - AES_128:表示128比特的对称密钥。 说明:  datakey_length和key_spec二选一。   - 若datakey_length和key_spec都为空,默认生成256bit的密钥。   - 若datakey_length和key_spec都指定了值,仅datakey_length生效。
	KeySpec *CreateDatakeyRequestBodyKeySpec `json:"key_spec,omitempty"`

	// 密钥bit位长度。取值为8的倍数,取值范围为8~8192。 说明:  datakey_length和key_spec二选一。   - 若datakey_length和key_spec都为空,默认生成256bit的密钥。   - 若datakey_length和key_spec都指定了值,仅datakey_length生效。
	DatakeyLength *string `json:"datakey_length,omitempty"`

	// 请求消息序列号,36字节序列号。 例如:919c82d4-8046-4722-9094-35c3c6524cff
	Sequence *string `json:"sequence,omitempty"`
}

func (CreateDatakeyRequestBody) String

func (o CreateDatakeyRequestBody) String() string

type CreateDatakeyRequestBodyKeySpec

type CreateDatakeyRequestBodyKeySpec struct {
	// contains filtered or unexported fields
}

func (CreateDatakeyRequestBodyKeySpec) MarshalJSON

func (c CreateDatakeyRequestBodyKeySpec) MarshalJSON() ([]byte, error)

func (*CreateDatakeyRequestBodyKeySpec) UnmarshalJSON

func (c *CreateDatakeyRequestBodyKeySpec) UnmarshalJSON(b []byte) error

func (CreateDatakeyRequestBodyKeySpec) Value added in v0.0.90

type CreateDatakeyRequestBodyKeySpecEnum

type CreateDatakeyRequestBodyKeySpecEnum struct {
	AES_256 CreateDatakeyRequestBodyKeySpec
	AES_128 CreateDatakeyRequestBodyKeySpec
}

func GetCreateDatakeyRequestBodyKeySpecEnum

func GetCreateDatakeyRequestBodyKeySpecEnum() CreateDatakeyRequestBodyKeySpecEnum

type CreateDatakeyResponse

type CreateDatakeyResponse struct {

	// 密钥ID。
	KeyId *string `json:"key_id,omitempty"`

	// DEK明文16进制,两位表示1byte。
	PlainText *string `json:"plain_text,omitempty"`

	// DEK密文16进制,两位表示1byte。
	CipherText     *string `json:"cipher_text,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateDatakeyResponse) String

func (o CreateDatakeyResponse) String() string

type CreateDatakeyWithoutPlaintextRequest

type CreateDatakeyWithoutPlaintextRequest struct {
	Body *CreateDatakeyRequestBody `json:"body,omitempty"`
}

Request Object

func (CreateDatakeyWithoutPlaintextRequest) String

type CreateDatakeyWithoutPlaintextResponse

type CreateDatakeyWithoutPlaintextResponse struct {

	// 密钥ID。
	KeyId *string `json:"key_id,omitempty"`

	// DEK密文16进制,两位表示1byte。
	CipherText     *string `json:"cipher_text,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateDatakeyWithoutPlaintextResponse) String

type CreateGrantRequest

type CreateGrantRequest struct {
	Body *CreateGrantRequestBody `json:"body,omitempty"`
}

Request Object

func (CreateGrantRequest) String

func (o CreateGrantRequest) String() string

type CreateGrantRequestBody

type CreateGrantRequestBody struct {

	// 密钥ID,36字节,满足正则匹配“^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$”。 例如:0d0466b0-e727-4d9c-b35d-f84bb474a37f。
	KeyId string `json:"key_id"`

	// 被授权用户ID,1~64字节,满足正则匹配“^[a-zA-Z0-9]{1,64}$”。 例如:0d0466b00d0466b00d0466b00d0466b0
	GranteePrincipal string `json:"grantee_principal"`

	// 授权允许的操作列表。 有效的值:“create-datakey”,“create-datakey-without-plaintext”,“encrypt-datakey”,“decrypt-datakey”,“describe-key”,“create-grant”,“retire-grant”,“encrypt-data”,“decrypt-data”。 有效值不能仅为“create-grant”。
	Operations []string `json:"operations"`

	// 授权名称,取值1到255字符,满足正则匹配“^[a-zA-Z0-9:/_-]{1,255}$”。
	Name *string `json:"name,omitempty"`

	// 可退役授权的用户ID,1~64字节,满足正则匹配“^[a-zA-Z0-9]{1,64}$”。 例如:0d0466b00d0466b00d0466b00d0466b0
	RetiringPrincipal *string `json:"retiring_principal,omitempty"`

	// 授权类型。有效值:“user”,“domain”。默认值为“user”。
	GranteePrincipalType *CreateGrantRequestBodyGranteePrincipalType `json:"grantee_principal_type,omitempty"`

	// 请求消息序列号,36字节序列号。 例如:919c82d4-8046-4722-9094-35c3c6524cff
	Sequence *string `json:"sequence,omitempty"`
}

func (CreateGrantRequestBody) String

func (o CreateGrantRequestBody) String() string

type CreateGrantRequestBodyGranteePrincipalType

type CreateGrantRequestBodyGranteePrincipalType struct {
	// contains filtered or unexported fields
}

func (CreateGrantRequestBodyGranteePrincipalType) MarshalJSON

func (*CreateGrantRequestBodyGranteePrincipalType) UnmarshalJSON

func (CreateGrantRequestBodyGranteePrincipalType) Value added in v0.0.90

type CreateGrantResponse

type CreateGrantResponse struct {

	// 授权ID,64字节。
	GrantId        *string `json:"grant_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateGrantResponse) String

func (o CreateGrantResponse) String() string

type CreateKeyRequest

type CreateKeyRequest struct {
	Body *CreateKeyRequestBody `json:"body,omitempty"`
}

Request Object

func (CreateKeyRequest) String

func (o CreateKeyRequest) String() string

type CreateKeyRequestBody

type CreateKeyRequestBody struct {

	// 非默认主密钥别名,取值范围为1到255个字符,满足正则匹配“^[a-zA-Z0-9:/_-]{1,255}$”,且不与系统服务创建的默认主密钥别名重名。
	KeyAlias string `json:"key_alias"`

	// 密钥生成算法,默认为“AES_256”,枚举如下: - AES_256 - SM4 - RSA_2048 - RSA_3072 - RSA_4096 - EC_P256 - EC_P384 - SM2
	KeySpec *CreateKeyRequestBodyKeySpec `json:"key_spec,omitempty"`

	// 密钥用途,对称密钥默认为“ENCRYPT_DECRYPT”,非对称密钥默认为“SIGN_VERIFY”,枚举如下: - ENCRYPT_DECRYPT - SIGN_VERIFY
	KeyUsage *CreateKeyRequestBodyKeyUsage `json:"key_usage,omitempty"`

	// 密钥描述,取值0到255字符。
	KeyDescription *string `json:"key_description,omitempty"`

	// 密钥来源,默认为“kms”,枚举如下: - kms:表示密钥材料由kms生成。 - external:表示密钥材料由外部导入。
	Origin *CreateKeyRequestBodyOrigin `json:"origin,omitempty"`

	// 企业多项目ID。 - 用户未开通企业多项目时,不需要输入该字段。 - 用户开通企业多项目时,创建资源可以输入该字段。若用户户不输入该字段,默认创建属于默认企业多项目ID(ID为“0”)的资源。 注意:若用户没有默认企业多项目ID(ID为“0”)下的创建权限,则接口报错。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 请求消息序列号,36字节序列号。 例如:919c82d4-8046-4722-9094-35c3c6524cff
	Sequence *string `json:"sequence,omitempty"`
}

func (CreateKeyRequestBody) String

func (o CreateKeyRequestBody) String() string

type CreateKeyRequestBodyKeySpec

type CreateKeyRequestBodyKeySpec struct {
	// contains filtered or unexported fields
}

func (CreateKeyRequestBodyKeySpec) MarshalJSON

func (c CreateKeyRequestBodyKeySpec) MarshalJSON() ([]byte, error)

func (*CreateKeyRequestBodyKeySpec) UnmarshalJSON

func (c *CreateKeyRequestBodyKeySpec) UnmarshalJSON(b []byte) error

func (CreateKeyRequestBodyKeySpec) Value added in v0.0.90

type CreateKeyRequestBodyKeyUsage

type CreateKeyRequestBodyKeyUsage struct {
	// contains filtered or unexported fields
}

func (CreateKeyRequestBodyKeyUsage) MarshalJSON

func (c CreateKeyRequestBodyKeyUsage) MarshalJSON() ([]byte, error)

func (*CreateKeyRequestBodyKeyUsage) UnmarshalJSON

func (c *CreateKeyRequestBodyKeyUsage) UnmarshalJSON(b []byte) error

func (CreateKeyRequestBodyKeyUsage) Value added in v0.0.90

type CreateKeyRequestBodyKeyUsageEnum

type CreateKeyRequestBodyKeyUsageEnum struct {
	ENCRYPT_DECRYPT CreateKeyRequestBodyKeyUsage
	SIGN_VERIFY     CreateKeyRequestBodyKeyUsage
}

func GetCreateKeyRequestBodyKeyUsageEnum

func GetCreateKeyRequestBodyKeyUsageEnum() CreateKeyRequestBodyKeyUsageEnum

type CreateKeyRequestBodyOrigin

type CreateKeyRequestBodyOrigin struct {
	// contains filtered or unexported fields
}

func (CreateKeyRequestBodyOrigin) MarshalJSON

func (c CreateKeyRequestBodyOrigin) MarshalJSON() ([]byte, error)

func (*CreateKeyRequestBodyOrigin) UnmarshalJSON

func (c *CreateKeyRequestBodyOrigin) UnmarshalJSON(b []byte) error

func (CreateKeyRequestBodyOrigin) Value added in v0.0.90

type CreateKeyRequestBodyOriginEnum

type CreateKeyRequestBodyOriginEnum struct {
	KMS      CreateKeyRequestBodyOrigin
	EXTERNAL CreateKeyRequestBodyOrigin
}

func GetCreateKeyRequestBodyOriginEnum

func GetCreateKeyRequestBodyOriginEnum() CreateKeyRequestBodyOriginEnum

type CreateKeyResponse

type CreateKeyResponse struct {
	KeyInfo        *KeKInfo `json:"key_info,omitempty"`
	HttpStatusCode int      `json:"-"`
}

Response Object

func (CreateKeyResponse) String

func (o CreateKeyResponse) String() string

type CreateKmsTagRequest

type CreateKmsTagRequest struct {

	// 密钥ID
	KeyId string `json:"key_id"`

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

Request Object

func (CreateKmsTagRequest) String

func (o CreateKmsTagRequest) String() string

type CreateKmsTagRequestBody

type CreateKmsTagRequestBody struct {
	Tag *TagItem `json:"tag,omitempty"`

	// 请求消息序列号,36字节序列号。 例如:919c82d4-8046-4722-9094-35c3c6524cff
	Sequence *string `json:"sequence,omitempty"`
}

创建KMS资源标签请求体。

func (CreateKmsTagRequestBody) String

func (o CreateKmsTagRequestBody) String() string

type CreateKmsTagResponse

type CreateKmsTagResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (CreateKmsTagResponse) String

func (o CreateKmsTagResponse) String() string

type CreateParametersForImportRequest

type CreateParametersForImportRequest struct {
	Body *GetParametersForImportRequestBody `json:"body,omitempty"`
}

Request Object

func (CreateParametersForImportRequest) String

type CreateParametersForImportResponse

type CreateParametersForImportResponse struct {

	// 密钥ID。
	KeyId *string `json:"key_id,omitempty"`

	// 密钥导入令牌。
	ImportToken *string `json:"import_token,omitempty"`

	// 导入参数到期时间,时间戳,即从1970年1月1日至该时间的总秒数。
	ExpirationTime *int64 `json:"expiration_time,omitempty"`

	// 加密密钥材料的公钥,base64格式。
	PublicKey      *string `json:"public_key,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateParametersForImportResponse) String

type CreateRandomRequest

type CreateRandomRequest struct {
	Body *GenRandomRequestBody `json:"body,omitempty"`
}

Request Object

func (CreateRandomRequest) String

func (o CreateRandomRequest) String() string

type CreateRandomResponse

type CreateRandomResponse struct {

	// 随机数16进制表示,两位表示1byte。随机数的长度与用户传入的参数 “random_data_length”的长度保持一致。
	RandomData     *string `json:"random_data,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateRandomResponse) String

func (o CreateRandomResponse) String() string

type DecryptDataRequest

type DecryptDataRequest struct {
	Body *DecryptDataRequestBody `json:"body,omitempty"`
}

Request Object

func (DecryptDataRequest) String

func (o DecryptDataRequest) String() string

type DecryptDataRequestBody

type DecryptDataRequestBody struct {

	// 被加密数据密文。取值为加密数据结果中的cipher_text的值,满足正则匹配“^[0-9a-zA-Z+/=]{128,5648}$”。
	CipherText string `json:"cipher_text"`

	// 数据加密算法,仅使用非对称密钥需要指定该参数,默认值为“SYMMETRIC_DEFAULT”,合法枚举值如下:  - SYMMETRIC_DEFAULT  - RSAES_OAEP_SHA_256  - SM2_ENCRYPT
	EncryptionAlgorithm *DecryptDataRequestBodyEncryptionAlgorithm `json:"encryption_algorithm,omitempty"`

	// 密钥ID,36字节,满足正则匹配“^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$”。仅当密文使用非对称密钥加密时才需要此参数。 例如:0d0466b0-e727-4d9c-b35d-f84bb474a37f。
	KeyId *string `json:"key_id,omitempty"`

	// 请求消息序列号,36字节序列号。 例如:919c82d4-8046-4722-9094-35c3c6524cff
	Sequence *string `json:"sequence,omitempty"`
}

func (DecryptDataRequestBody) String

func (o DecryptDataRequestBody) String() string

type DecryptDataRequestBodyEncryptionAlgorithm

type DecryptDataRequestBodyEncryptionAlgorithm struct {
	// contains filtered or unexported fields
}

func (DecryptDataRequestBodyEncryptionAlgorithm) MarshalJSON

func (*DecryptDataRequestBodyEncryptionAlgorithm) UnmarshalJSON

func (DecryptDataRequestBodyEncryptionAlgorithm) Value added in v0.0.90

type DecryptDataRequestBodyEncryptionAlgorithmEnum

type DecryptDataRequestBodyEncryptionAlgorithmEnum struct {
	SYMMETRIC_DEFAULT  DecryptDataRequestBodyEncryptionAlgorithm
	RSAES_OAEP_SHA_256 DecryptDataRequestBodyEncryptionAlgorithm
	SM2_ENCRYPT        DecryptDataRequestBodyEncryptionAlgorithm
}

func GetDecryptDataRequestBodyEncryptionAlgorithmEnum

func GetDecryptDataRequestBodyEncryptionAlgorithmEnum() DecryptDataRequestBodyEncryptionAlgorithmEnum

type DecryptDataResponse

type DecryptDataResponse struct {

	// 密钥ID。
	KeyId *string `json:"key_id,omitempty"`

	// 明文。
	PlainText *string `json:"plain_text,omitempty"`

	// 明文的Base64值,在非对称加密场景下,若加密的明文中含有不可见字符,则解密结果以该值为准。
	PlainTextBase64 *string `json:"plain_text_base64,omitempty"`
	HttpStatusCode  int     `json:"-"`
}

Response Object

func (DecryptDataResponse) String

func (o DecryptDataResponse) String() string

type DecryptDatakeyRequest

type DecryptDatakeyRequest struct {
	Body *DecryptDatakeyRequestBody `json:"body,omitempty"`
}

Request Object

func (DecryptDatakeyRequest) String

func (o DecryptDatakeyRequest) String() string

type DecryptDatakeyRequestBody

type DecryptDatakeyRequestBody struct {

	// 密钥ID,36字节,满足正则匹配“^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$”。 例如:0d0466b0-e727-4d9c-b35d-f84bb474a37f。
	KeyId string `json:"key_id"`

	// DEK密文及元数据的16进制字符串。取值为加密数据密钥结果中的cipher_text的值。
	CipherText string `json:"cipher_text"`

	// 密钥字节长度,取值范围为1~1024。 密钥字节长度,取值为“64”。
	DatakeyCipherLength string `json:"datakey_cipher_length"`

	// 请求消息序列号,36字节序列号。 例如:919c82d4-8046-4722-9094-35c3c6524cff
	Sequence *string `json:"sequence,omitempty"`
}

func (DecryptDatakeyRequestBody) String

func (o DecryptDatakeyRequestBody) String() string

type DecryptDatakeyResponse

type DecryptDatakeyResponse struct {

	// DEK明文的16进制字符串。
	DataKey *string `json:"data_key,omitempty"`

	// DEK明文字节长度。
	DatakeyLength *string `json:"datakey_length,omitempty"`

	// DEK明文的SHA256值对应的16进制字符串。
	DatakeyDgst    *string `json:"datakey_dgst,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (DecryptDatakeyResponse) String

func (o DecryptDatakeyResponse) String() string

type DeleteImportedKeyMaterialRequest

type DeleteImportedKeyMaterialRequest struct {
	Body *OperateKeyRequestBody `json:"body,omitempty"`
}

Request Object

func (DeleteImportedKeyMaterialRequest) String

type DeleteImportedKeyMaterialResponse

type DeleteImportedKeyMaterialResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeleteImportedKeyMaterialResponse) String

type DeleteKeyRequest

type DeleteKeyRequest struct {
	Body *ScheduleKeyDeletionRequestBody `json:"body,omitempty"`
}

Request Object

func (DeleteKeyRequest) String

func (o DeleteKeyRequest) String() string

type DeleteKeyResponse

type DeleteKeyResponse struct {

	// 密钥ID
	KeyId *string `json:"key_id,omitempty"`

	// 密钥状态: - 2为启用状态 - 3为禁用状态 - 4为计划删除状态 - 5为等待导入状态 - 7为冻结状态
	KeyState       *string `json:"key_state,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (DeleteKeyResponse) String

func (o DeleteKeyResponse) String() string

type DeleteTagRequest

type DeleteTagRequest struct {

	// 密钥ID
	KeyId string `json:"key_id"`

	// 标签键的值
	Key string `json:"key"`
}

Request Object

func (DeleteTagRequest) String

func (o DeleteTagRequest) String() string

type DeleteTagResponse

type DeleteTagResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeleteTagResponse) String

func (o DeleteTagResponse) String() string

type DisableKeyRequest

type DisableKeyRequest struct {
	Body *OperateKeyRequestBody `json:"body,omitempty"`
}

Request Object

func (DisableKeyRequest) String

func (o DisableKeyRequest) String() string

type DisableKeyResponse

type DisableKeyResponse struct {
	KeyInfo        *KeyStatusInfo `json:"key_info,omitempty"`
	HttpStatusCode int            `json:"-"`
}

Response Object

func (DisableKeyResponse) String

func (o DisableKeyResponse) String() string

type DisableKeyRotationRequest

type DisableKeyRotationRequest struct {
	Body *OperateKeyRequestBody `json:"body,omitempty"`
}

Request Object

func (DisableKeyRotationRequest) String

func (o DisableKeyRotationRequest) String() string

type DisableKeyRotationResponse

type DisableKeyRotationResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DisableKeyRotationResponse) String

type EnableKeyRequest

type EnableKeyRequest struct {
	Body *OperateKeyRequestBody `json:"body,omitempty"`
}

Request Object

func (EnableKeyRequest) String

func (o EnableKeyRequest) String() string

type EnableKeyResponse

type EnableKeyResponse struct {
	KeyInfo        *KeyStatusInfo `json:"key_info,omitempty"`
	HttpStatusCode int            `json:"-"`
}

Response Object

func (EnableKeyResponse) String

func (o EnableKeyResponse) String() string

type EnableKeyRotationRequest

type EnableKeyRotationRequest struct {
	Body *OperateKeyRequestBody `json:"body,omitempty"`
}

Request Object

func (EnableKeyRotationRequest) String

func (o EnableKeyRotationRequest) String() string

type EnableKeyRotationResponse

type EnableKeyRotationResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (EnableKeyRotationResponse) String

func (o EnableKeyRotationResponse) String() string

type EncryptDataRequest

type EncryptDataRequest struct {
	Body *EncryptDataRequestBody `json:"body,omitempty"`
}

Request Object

func (EncryptDataRequest) String

func (o EncryptDataRequest) String() string

type EncryptDataRequestBody

type EncryptDataRequestBody struct {

	// 密钥ID,36字节,满足正则匹配“^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$”。 例如:0d0466b0-e727-4d9c-b35d-f84bb474a37f。
	KeyId string `json:"key_id"`

	// 明文数据,1~4096字节,满足正则匹配“^.{1,4096}$”,且转化为byte数组后长度取值范围为1~4096字节。
	PlainText string `json:"plain_text"`

	// 数据加密算法,仅使用非对称密钥需要指定该参数,默认值为“SYMMETRIC_DEFAULT”,合法枚举值如下:  - SYMMETRIC_DEFAULT  - RSAES_OAEP_SHA_256  - SM2_ENCRYPT
	EncryptionAlgorithm *EncryptDataRequestBodyEncryptionAlgorithm `json:"encryption_algorithm,omitempty"`

	// 请求消息序列号,36字节序列号。 例如:919c82d4-8046-4722-9094-35c3c6524cff
	Sequence *string `json:"sequence,omitempty"`
}

func (EncryptDataRequestBody) String

func (o EncryptDataRequestBody) String() string

type EncryptDataRequestBodyEncryptionAlgorithm

type EncryptDataRequestBodyEncryptionAlgorithm struct {
	// contains filtered or unexported fields
}

func (EncryptDataRequestBodyEncryptionAlgorithm) MarshalJSON

func (*EncryptDataRequestBodyEncryptionAlgorithm) UnmarshalJSON

func (EncryptDataRequestBodyEncryptionAlgorithm) Value added in v0.0.90

type EncryptDataRequestBodyEncryptionAlgorithmEnum

type EncryptDataRequestBodyEncryptionAlgorithmEnum struct {
	SYMMETRIC_DEFAULT  EncryptDataRequestBodyEncryptionAlgorithm
	RSAES_OAEP_SHA_256 EncryptDataRequestBodyEncryptionAlgorithm
	SM2_ENCRYPT        EncryptDataRequestBodyEncryptionAlgorithm
}

func GetEncryptDataRequestBodyEncryptionAlgorithmEnum

func GetEncryptDataRequestBodyEncryptionAlgorithmEnum() EncryptDataRequestBodyEncryptionAlgorithmEnum

type EncryptDataResponse

type EncryptDataResponse struct {

	// 密钥ID。
	KeyId *string `json:"key_id,omitempty"`

	// DEK密文16进制,两位表示1byte。
	CipherText     *string `json:"cipher_text,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (EncryptDataResponse) String

func (o EncryptDataResponse) String() string

type EncryptDatakeyRequest

type EncryptDatakeyRequest struct {
	Body *EncryptDatakeyRequestBody `json:"body,omitempty"`
}

Request Object

func (EncryptDatakeyRequest) String

func (o EncryptDatakeyRequest) String() string

type EncryptDatakeyRequestBody

type EncryptDatakeyRequestBody struct {

	// 密钥ID,36字节,满足正则匹配“^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$”。 例如:0d0466b0-e727-4d9c-b35d-f84bb474a37f。
	KeyId string `json:"key_id"`

	// CMK为AES时,DEK明文和DEK明文的SHA256(32字节);CMK为SM4时,DEK明文和DEK明文的SM3(32字节),均为16进制字符串表示。
	PlainText string `json:"plain_text"`

	// DEK明文字节长度,取值范围为1~1024。 DEK明文字节长度,取值为“64”。
	DatakeyPlainLength string `json:"datakey_plain_length"`

	// 请求消息序列号,36字节序列号。 例如:919c82d4-8046-4722-9094-35c3c6524cff
	Sequence *string `json:"sequence,omitempty"`
}

func (EncryptDatakeyRequestBody) String

func (o EncryptDatakeyRequestBody) String() string

type EncryptDatakeyResponse

type EncryptDatakeyResponse struct {

	// 密钥ID
	KeyId *string `json:"key_id,omitempty"`

	// DEK密文16进制,两位表示1byte。
	CipherText *string `json:"cipher_text,omitempty"`

	// DEK字节长度。
	DatakeyLength  *string `json:"datakey_length,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (EncryptDatakeyResponse) String

func (o EncryptDatakeyResponse) String() string

type GenRandomRequestBody

type GenRandomRequestBody struct {

	// 随机数的bit位长度。 取值为8的倍数,取值范围为8~8192。 随机数的bit位长度,取值为“512”。
	RandomDataLength string `json:"random_data_length"`

	// 请求消息序列号,36字节序列号。 例如:919c82d4-8046-4722-9094-35c3c6524cff
	Sequence *string `json:"sequence,omitempty"`
}

func (GenRandomRequestBody) String

func (o GenRandomRequestBody) String() string

type GetParametersForImportRequestBody

type GetParametersForImportRequestBody struct {

	// 密钥ID,36字节,满足正则匹配“^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$”。 例如:0d0466b0-e727-4d9c-b35d-f84bb474a37f。
	KeyId string `json:"key_id"`

	// 密钥材料加密算法,枚举如下:  - RSAES_OAEP_SHA_256  - SM2_ENCRYPT,部分局点不支持该导入类型
	WrappingAlgorithm GetParametersForImportRequestBodyWrappingAlgorithm `json:"wrapping_algorithm"`

	// 请求消息序列号,36字节序列号。 例如:919c82d4-8046-4722-9094-35c3c6524cff
	Sequence *string `json:"sequence,omitempty"`
}

func (GetParametersForImportRequestBody) String

type GetParametersForImportRequestBodyWrappingAlgorithm

type GetParametersForImportRequestBodyWrappingAlgorithm struct {
	// contains filtered or unexported fields
}

func (GetParametersForImportRequestBodyWrappingAlgorithm) MarshalJSON

func (*GetParametersForImportRequestBodyWrappingAlgorithm) UnmarshalJSON

func (GetParametersForImportRequestBodyWrappingAlgorithm) Value added in v0.0.90

type GetParametersForImportRequestBodyWrappingAlgorithmEnum

type GetParametersForImportRequestBodyWrappingAlgorithmEnum struct {
	RSAES_OAEP_SHA_256 GetParametersForImportRequestBodyWrappingAlgorithm
	SM2_ENCRYPT        GetParametersForImportRequestBodyWrappingAlgorithm
}

type Grants

type Grants struct {

	// 密钥ID。
	KeyId *string `json:"key_id,omitempty"`

	// 授权ID,64字节。
	GrantId *string `json:"grant_id,omitempty"`

	// 被授权用户ID,1~64字节,满足正则匹配“^[a-zA-Z0-9]{1,64}$”。 例如:0d0466b00d0466b00d0466b00d0466b0
	GranteePrincipal *string `json:"grantee_principal,omitempty"`

	// 授权类型。 有效值:“user”,“domain”。
	GranteePrincipalType *GrantsGranteePrincipalType `json:"grantee_principal_type,omitempty"`

	// 授权允许的操作列表。 有效的值:“create-datakey”,“create-datakey-without-plaintext”,“encrypt-datakey”,“decrypt-datakey”,“describe-key”,“create-grant”,“retire-grant”,“encrypt-data”,“decrypt-data”。 有效值不能仅为“create-grant”。
	Operations *[]string `json:"operations,omitempty"`

	// 创建授权用户ID,1~64字节,满足正则匹配“^[a-zA-Z0-9]{1,64}$”。 例如:0d0466b00d0466b00d0466b00d0466b0
	IssuingPrincipal *string `json:"issuing_principal,omitempty"`

	// 创建时间,时间戳,即从1970年1月1日至该时间的总秒数。 例如:1497341531000
	CreationDate *string `json:"creation_date,omitempty"`

	// 授权名字,取值1到255字符,满足正则匹配“^[a-zA-Z0-9:/_-]{1,255}$”。
	Name *string `json:"name,omitempty"`

	// 可退役授权的用户ID,1~64字节,满足正则匹配“^[a-zA-Z0-9]{1,64}$”。 例如:0d0466b00d0466b00d0466b00d0466b0
	RetiringPrincipal *string `json:"retiring_principal,omitempty"`
}

func (Grants) String

func (o Grants) String() string

type GrantsGranteePrincipalType

type GrantsGranteePrincipalType struct {
	// contains filtered or unexported fields
}

func (GrantsGranteePrincipalType) MarshalJSON

func (c GrantsGranteePrincipalType) MarshalJSON() ([]byte, error)

func (*GrantsGranteePrincipalType) UnmarshalJSON

func (c *GrantsGranteePrincipalType) UnmarshalJSON(b []byte) error

func (GrantsGranteePrincipalType) Value added in v0.0.90

type GrantsGranteePrincipalTypeEnum

type GrantsGranteePrincipalTypeEnum struct {
	USER   GrantsGranteePrincipalType
	DOMAIN GrantsGranteePrincipalType
}

func GetGrantsGranteePrincipalTypeEnum

func GetGrantsGranteePrincipalTypeEnum() GrantsGranteePrincipalTypeEnum

type ImportKeyMaterialRequest

type ImportKeyMaterialRequest struct {
	Body *ImportKeyMaterialRequestBody `json:"body,omitempty"`
}

Request Object

func (ImportKeyMaterialRequest) String

func (o ImportKeyMaterialRequest) String() string

type ImportKeyMaterialRequestBody

type ImportKeyMaterialRequestBody struct {

	// 密钥ID,36字节,满足正则匹配“^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$”。 例如:0d0466b0-e727-4d9c-b35d-f84bb474a37f。
	KeyId string `json:"key_id"`

	// 密钥导入令牌,base64格式,满足正则匹配“^[0-9a-zA-Z+/=]{200,6144}$”。
	ImportToken string `json:"import_token"`

	// 加密后的对称密钥材料,base64格式,满足正则匹配“^[0-9a-zA-Z+/=]{344,360}$”。若导入非对称密钥,则该参数为用于加密私钥的临时中间密钥。
	EncryptedKeyMaterial string `json:"encrypted_key_material"`

	// 使用临时中间密钥加密后的私钥,导入非对称密钥需要该参数,base64格式,满足正则匹配“^[0-9a-zA-Z+/=]{200,6144}$”。
	EncryptedPrivatekey *string `json:"encrypted_privatekey,omitempty"`

	// 密钥材料到期时间,时间戳,即从1970年1月1日至该时间的总秒数,KMS会在该时间的24小时内删除密钥材料。 例如:1550291833
	ExpirationTime *int64 `json:"expiration_time,omitempty"`

	// 请求消息序列号,36字节序列号。 例如:919c82d4-8046-4722-9094-35c3c6524cff
	Sequence *string `json:"sequence,omitempty"`
}

func (ImportKeyMaterialRequestBody) String

type ImportKeyMaterialResponse

type ImportKeyMaterialResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (ImportKeyMaterialResponse) String

func (o ImportKeyMaterialResponse) String() string

type KeKInfo

type KeKInfo struct {

	// 密钥ID。
	KeyId *string `json:"key_id,omitempty"`

	// 用户域ID。
	DomainId *string `json:"domain_id,omitempty"`
}

密钥详细信息。

func (KeKInfo) String

func (o KeKInfo) String() string

type KeyAliasInfo

type KeyAliasInfo struct {

	// 密钥ID。
	KeyId *string `json:"key_id,omitempty"`

	// 密钥别名。
	KeyAlias *string `json:"key_alias,omitempty"`
}

密钥别名信息。

func (KeyAliasInfo) String

func (o KeyAliasInfo) String() string

type KeyDescriptionInfo

type KeyDescriptionInfo struct {

	// 密钥ID。
	KeyId *string `json:"key_id,omitempty"`

	// 密钥描述。
	KeyDescription *string `json:"key_description,omitempty"`
}

密钥描述信息。

func (KeyDescriptionInfo) String

func (o KeyDescriptionInfo) String() string

type KeyDetails

type KeyDetails struct {

	// 密钥ID。
	KeyId *string `json:"key_id,omitempty"`

	// 用户域ID。
	DomainId *string `json:"domain_id,omitempty"`

	// 密钥别名。
	KeyAlias *string `json:"key_alias,omitempty"`

	// 密钥区域。
	Realm *string `json:"realm,omitempty"`

	// 密钥生成算法。  - AES_256  - SM4  - RSA_2048  - RSA_3072  - RSA_4096  - EC_P256  - EC_P384  - SM2
	KeySpec *KeyDetailsKeySpec `json:"key_spec,omitempty"`

	// 密钥用途。 - ENCRYPT_DECRYPT - SIGN_VERIFY
	KeyUsage *KeyDetailsKeyUsage `json:"key_usage,omitempty"`

	// 密钥描述。
	KeyDescription *string `json:"key_description,omitempty"`

	// 密钥创建时间,时间戳,即从1970年1月1日至该时间的总秒数。
	CreationDate *string `json:"creation_date,omitempty"`

	// 密钥计划删除时间,时间戳,即从1970年1月1日至该时间的总秒数。
	ScheduledDeletionDate *string `json:"scheduled_deletion_date,omitempty"`

	// 密钥状态,满足正则匹配“^[1-5]{1}$”,枚举如下:  - “1”表示待激活状态  - “2”表示启用状态  - “3”表示禁用状态  - “4”表示计划删除状态  - “5”表示等待导入状态
	KeyState *string `json:"key_state,omitempty"`

	// 默认主密钥标识,默认主密钥标识为1,非默认标识为0。
	DefaultKeyFlag *string `json:"default_key_flag,omitempty"`

	// 密钥类型。
	KeyType *string `json:"key_type,omitempty"`

	// 密钥材料失效时间,时间戳,即从1970年1月1日至该时间的总秒数。
	ExpirationTime *string `json:"expiration_time,omitempty"`

	// 密钥来源,默认为“kms”,枚举如下:  - kms表示密钥材料由kms生成kms表示密钥材料由kms生成  - external表示密钥材料由外部导入
	Origin *KeyDetailsOrigin `json:"origin,omitempty"`

	// 密钥轮换状态,默认为“false”,表示关闭密钥轮换功能。
	KeyRotationEnabled *string `json:"key_rotation_enabled,omitempty"`

	// 企业项目ID,默认为“0”。  - 对于开通企业项目的用户,表示资源处于默认企业项目下。  - 对于未开通企业项目的用户,表示资源未处于企业项目下。
	SysEnterpriseProjectId *string `json:"sys_enterprise_project_id,omitempty"`
}

密钥详情。

func (KeyDetails) String

func (o KeyDetails) String() string

type KeyDetailsKeySpec

type KeyDetailsKeySpec struct {
	// contains filtered or unexported fields
}

func (KeyDetailsKeySpec) MarshalJSON

func (c KeyDetailsKeySpec) MarshalJSON() ([]byte, error)

func (*KeyDetailsKeySpec) UnmarshalJSON

func (c *KeyDetailsKeySpec) UnmarshalJSON(b []byte) error

func (KeyDetailsKeySpec) Value added in v0.0.90

func (c KeyDetailsKeySpec) Value() string

type KeyDetailsKeySpecEnum

type KeyDetailsKeySpecEnum struct {
	AES_256  KeyDetailsKeySpec
	SM4      KeyDetailsKeySpec
	RSA_2048 KeyDetailsKeySpec
	RSA_3072 KeyDetailsKeySpec
	RSA_4096 KeyDetailsKeySpec
	EC_P256  KeyDetailsKeySpec
	EC_P384  KeyDetailsKeySpec
	SM2      KeyDetailsKeySpec
}

func GetKeyDetailsKeySpecEnum

func GetKeyDetailsKeySpecEnum() KeyDetailsKeySpecEnum

type KeyDetailsKeyUsage

type KeyDetailsKeyUsage struct {
	// contains filtered or unexported fields
}

func (KeyDetailsKeyUsage) MarshalJSON

func (c KeyDetailsKeyUsage) MarshalJSON() ([]byte, error)

func (*KeyDetailsKeyUsage) UnmarshalJSON

func (c *KeyDetailsKeyUsage) UnmarshalJSON(b []byte) error

func (KeyDetailsKeyUsage) Value added in v0.0.90

func (c KeyDetailsKeyUsage) Value() string

type KeyDetailsKeyUsageEnum

type KeyDetailsKeyUsageEnum struct {
	ENCRYPT_DECRYPT KeyDetailsKeyUsage
	SIGN_VERIFY     KeyDetailsKeyUsage
}

func GetKeyDetailsKeyUsageEnum

func GetKeyDetailsKeyUsageEnum() KeyDetailsKeyUsageEnum

type KeyDetailsOrigin

type KeyDetailsOrigin struct {
	// contains filtered or unexported fields
}

func (KeyDetailsOrigin) MarshalJSON

func (c KeyDetailsOrigin) MarshalJSON() ([]byte, error)

func (*KeyDetailsOrigin) UnmarshalJSON

func (c *KeyDetailsOrigin) UnmarshalJSON(b []byte) error

func (KeyDetailsOrigin) Value added in v0.0.90

func (c KeyDetailsOrigin) Value() string

type KeyDetailsOriginEnum

type KeyDetailsOriginEnum struct {
	KMS      KeyDetailsOrigin
	EXTERNAL KeyDetailsOrigin
}

func GetKeyDetailsOriginEnum

func GetKeyDetailsOriginEnum() KeyDetailsOriginEnum

type KeyStatusInfo

type KeyStatusInfo struct {

	// 密钥ID
	KeyId *string `json:"key_id,omitempty"`

	// 密钥状态: - 2为启用状态 - 3为禁用状态 - 4为计划删除状态 - 5为等待导入状态 - 7为冻结状态
	KeyState *string `json:"key_state,omitempty"`
}

密钥状态信息。

func (KeyStatusInfo) String

func (o KeyStatusInfo) String() string

type ListGrantsRequest

type ListGrantsRequest struct {
	Body *ListGrantsRequestBody `json:"body,omitempty"`
}

Request Object

func (ListGrantsRequest) String

func (o ListGrantsRequest) String() string

type ListGrantsRequestBody

type ListGrantsRequestBody struct {

	// 密钥ID,36字节,满足正则匹配“^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$”。 例如:0d0466b0-e727-4d9c-b35d-f84bb474a37f。
	KeyId string `json:"key_id"`

	// 指定查询授权列表返回记录条数,如果查询记录条数小于存在的条数,响应参数“truncated”将返回“true”,表示存在分页。 取值在授权最大个数范围以内。例如:100
	Limit *string `json:"limit,omitempty"`

	// 分页查询起始位置标识。 分页查询收到的响应参数“truncated”为“true”时,可以发送连续的请求获取更多的记录条数,“marker”设置为响应的“next_marker”的值。例如:10。
	Marker *string `json:"marker,omitempty"`

	// 请求消息序列号,36字节序列号。 例如:919c82d4-8046-4722-9094-35c3c6524cff
	Sequence *string `json:"sequence,omitempty"`
}

func (ListGrantsRequestBody) String

func (o ListGrantsRequestBody) String() string

type ListGrantsResponse

type ListGrantsResponse struct {

	// grant列表,详情请参见grants字段数据结构说明。
	Grants *[]Grants `json:"grants,omitempty"`

	// 获取下一页所需要传递的marker值。 当“truncated”为“false”时,“next_marker”为空。
	NextMarker *string `json:"next_marker,omitempty"`

	// 是否还有下一页:  - “true”表示还有数据。  - “false”表示已经是最后一页。
	Truncated *ListGrantsResponseTruncated `json:"truncated,omitempty"`

	// grant总条数。
	Total          *int32 `json:"total,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListGrantsResponse) String

func (o ListGrantsResponse) String() string

type ListGrantsResponseTruncated

type ListGrantsResponseTruncated struct {
	// contains filtered or unexported fields
}

func (ListGrantsResponseTruncated) MarshalJSON

func (c ListGrantsResponseTruncated) MarshalJSON() ([]byte, error)

func (*ListGrantsResponseTruncated) UnmarshalJSON

func (c *ListGrantsResponseTruncated) UnmarshalJSON(b []byte) error

func (ListGrantsResponseTruncated) Value added in v0.0.90

type ListGrantsResponseTruncatedEnum

type ListGrantsResponseTruncatedEnum struct {
	TRUE  ListGrantsResponseTruncated
	FALSE ListGrantsResponseTruncated
}

func GetListGrantsResponseTruncatedEnum

func GetListGrantsResponseTruncatedEnum() ListGrantsResponseTruncatedEnum

type ListKeyDetailRequest

type ListKeyDetailRequest struct {
	Body *OperateKeyRequestBody `json:"body,omitempty"`
}

Request Object

func (ListKeyDetailRequest) String

func (o ListKeyDetailRequest) String() string

type ListKeyDetailResponse

type ListKeyDetailResponse struct {
	KeyInfo        *KeyDetails `json:"key_info,omitempty"`
	HttpStatusCode int         `json:"-"`
}

Response Object

func (ListKeyDetailResponse) String

func (o ListKeyDetailResponse) String() string

type ListKeysRequest

type ListKeysRequest struct {
	Body *ListKeysRequestBody `json:"body,omitempty"`
}

Request Object

func (ListKeysRequest) String

func (o ListKeysRequest) String() string

type ListKeysRequestBody

type ListKeysRequestBody struct {

	// 指定查询返回记录条数,如果指定查询记录条数小于存在的条数,响应参数“truncated”将返回“true”,表示存在分页。取值在密钥最大个数范围以内。例如:100
	Limit *string `json:"limit,omitempty"`

	// 分页查询起始位置标识。分页查询收到的响应参数“truncated”为“true”时,可以发送连续的请求获取更多的记录条数,“marker”设置为响应的next_marker的值。例如:10
	Marker *string `json:"marker,omitempty"`

	// 密钥状态,满足正则匹配“^[1-5]{1}$”,枚举如下:  - “1”表示待激活状态  - “2”表示启用状态  - “3”表示禁用状态  - “4”表示计划删除状态  - “5”表示等待导入状态
	KeyState *string `json:"key_state,omitempty"`

	// 密钥生成算法,默认为“AES_256”。查询所有(包含非对称)密钥需要指定参数“ALL”。  - AES_256  - SM4  - RSA_2048  - RSA_3072  - RSA_4096  - EC_P256  - EC_P384  - SM2  - ALL
	KeySpec *ListKeysRequestBodyKeySpec `json:"key_spec,omitempty"`

	// 企业多项目ID。用户未开通企业多项目时,不需要输入该字段。 用户开通企业多项目时,查询资源可以输入该字段。 若用户不输入该字段,默认查询租户所有有权限的企业多项目下的资源。 此时“enterprise_project_id”取值为“all”。 若用户输入该字段,取值满足以下任一条件. - 取值为“all” - 取值为“0” - 满足正则匹配:“^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$”
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 请求消息序列号,36字节序列号。 例如:919c82d4-8046-4722-9094-35c3c6524cff
	Sequence *string `json:"sequence,omitempty"`
}

func (ListKeysRequestBody) String

func (o ListKeysRequestBody) String() string

type ListKeysRequestBodyKeySpec

type ListKeysRequestBodyKeySpec struct {
	// contains filtered or unexported fields
}

func (ListKeysRequestBodyKeySpec) MarshalJSON

func (c ListKeysRequestBodyKeySpec) MarshalJSON() ([]byte, error)

func (*ListKeysRequestBodyKeySpec) UnmarshalJSON

func (c *ListKeysRequestBodyKeySpec) UnmarshalJSON(b []byte) error

func (ListKeysRequestBodyKeySpec) Value added in v0.0.90

type ListKeysResponse

type ListKeysResponse struct {

	// key_id列表。
	Keys *[]string `json:"keys,omitempty"`

	// 密钥详情列表。详情参见KeyDetails
	KeyDetails *[]KeyDetails `json:"key_details,omitempty"`

	// 获取下一页所需要传递的“marker”值。当“truncated”为“false”时,“next_marker”为空。
	NextMarker *string `json:"next_marker,omitempty"`

	// 是否还有下一页: - “true”表示还有数据。 - “false”表示已经是最后一页。
	Truncated *ListKeysResponseTruncated `json:"truncated,omitempty"`

	// 密钥总条数。
	Total          *int32 `json:"total,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListKeysResponse) String

func (o ListKeysResponse) String() string

type ListKeysResponseTruncated

type ListKeysResponseTruncated struct {
	// contains filtered or unexported fields
}

func (ListKeysResponseTruncated) MarshalJSON

func (c ListKeysResponseTruncated) MarshalJSON() ([]byte, error)

func (*ListKeysResponseTruncated) UnmarshalJSON

func (c *ListKeysResponseTruncated) UnmarshalJSON(b []byte) error

func (ListKeysResponseTruncated) Value added in v0.0.90

type ListKeysResponseTruncatedEnum

type ListKeysResponseTruncatedEnum struct {
	TRUE  ListKeysResponseTruncated
	FALSE ListKeysResponseTruncated
}

func GetListKeysResponseTruncatedEnum

func GetListKeysResponseTruncatedEnum() ListKeysResponseTruncatedEnum

type ListKmsByTagsRequest

type ListKmsByTagsRequest struct {

	// 资源实例,固定值为resource_instances
	ResourceInstances string `json:"resource_instances"`

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

Request Object

func (ListKmsByTagsRequest) String

func (o ListKmsByTagsRequest) String() string

type ListKmsByTagsRequestBody

type ListKmsByTagsRequestBody struct {

	// 查询记录数(“action”为“count”时,无需设置此参数),如果“action”为“filter”,默认为“10”。 limit的取值范围为“1-1000”。
	Limit *string `json:"limit,omitempty"`

	// 索引位置。从offset指定的下一条数据开始查询。查询第一页数据时,将查询前一页数据时响应体中的值带入此参数(“action”为“count”时,无需设置此参数)。如果“action”为“filter”,offset默认为“0”。 offset必须为数字,不能为负数。
	Offset *string `json:"offset,omitempty"`

	// 操作标识(可设置为“filter”或者“count”)。  - filter:表示过滤。  - count:表示查询总条数。
	Action *string `json:"action,omitempty"`

	// 标签列表,key和value键值对的集合。  - key:表示标签键,一个密钥下最多包含10个key,key不能为空,不能重复,同一个key中value不能重复。key最大长度为36个字符。  - value:表示标签值。每个值最大长度43个字符,value之间为“与”的关系。
	Tags *[]Tag `json:"tags,omitempty"`

	// 搜索字段。  - key为要匹配的字段,例如:resource_name等。  - value为匹配的值,最大长度为255个字符,不能为空。
	Matches *[]TagItem `json:"matches,omitempty"`

	// 请求消息序列号,36字节序列号。 例如:919c82d4-8046-4722-9094-35c3c6524cff
	Sequence *string `json:"sequence,omitempty"`
}

func (ListKmsByTagsRequestBody) String

func (o ListKmsByTagsRequestBody) String() string

type ListKmsByTagsResponse

type ListKmsByTagsResponse struct {

	// 资源实例列表,详情请参见resource字段数据结构说明。
	Resources *[]ActionResources `json:"resources,omitempty"`

	// 总记录数。
	TotalCount     *int32 `json:"total_count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListKmsByTagsResponse) String

func (o ListKmsByTagsResponse) String() string

type ListKmsTagsRequest

type ListKmsTagsRequest struct {
}

Request Object

func (ListKmsTagsRequest) String

func (o ListKmsTagsRequest) String() string

type ListKmsTagsResponse

type ListKmsTagsResponse struct {

	// 标签列表,key和value键值对的集合。  - key:表示标签键,一个密钥下最多包含10个key,key不能为空,不能重复,同一个key中value不能重复。key最大长度为36个字符。  - value:表示标签值。每个值最大长度43个字符,value之间为“与”的关系。
	Tags           *[]Tag `json:"tags,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListKmsTagsResponse) String

func (o ListKmsTagsResponse) String() string

type ListRetirableGrantsRequest

type ListRetirableGrantsRequest struct {
	Body *ListRetirableGrantsRequestBody `json:"body,omitempty"`
}

Request Object

func (ListRetirableGrantsRequest) String

type ListRetirableGrantsRequestBody

type ListRetirableGrantsRequestBody struct {

	// 指定查询可退役授权返回记录条数,如果查询记录条数小于存在的条数,响应参数“truncated”将返回“true”,表示存在分页。 取值在授权最大个数范围以内。例如:100
	Limit *string `json:"limit,omitempty"`

	// 分页查询起始位置标识。 分页查询收到的响应参数“truncated”为“true”时,可以发送连续的请求获取更多的记录条数,“marker”设置为响应的“next_marker”的值。例如:10。
	Marker *string `json:"marker,omitempty"`

	// 请求消息序列号,36字节序列号。 例如:919c82d4-8046-4722-9094-35c3c6524cff
	Sequence *string `json:"sequence,omitempty"`
}

func (ListRetirableGrantsRequestBody) String

type ListRetirableGrantsResponse

type ListRetirableGrantsResponse struct {

	// grant列表,详情请参见grants字段数据结构说明。
	Grants *[]Grants `json:"grants,omitempty"`

	// 获取下一页所需要传递的marker值。 当“truncated”为“false”时,“next_marker”为空。
	NextMarker *string `json:"next_marker,omitempty"`

	// 是否还有下一页:  - “true”表示还有数据。  - “false”表示已经是最后一页。
	Truncated      *ListRetirableGrantsResponseTruncated `json:"truncated,omitempty"`
	HttpStatusCode int                                   `json:"-"`
}

Response Object

func (ListRetirableGrantsResponse) String

type ListRetirableGrantsResponseTruncated

type ListRetirableGrantsResponseTruncated struct {
	// contains filtered or unexported fields
}

func (ListRetirableGrantsResponseTruncated) MarshalJSON

func (c ListRetirableGrantsResponseTruncated) MarshalJSON() ([]byte, error)

func (*ListRetirableGrantsResponseTruncated) UnmarshalJSON

func (c *ListRetirableGrantsResponseTruncated) UnmarshalJSON(b []byte) error

func (ListRetirableGrantsResponseTruncated) Value added in v0.0.90

type ListRetirableGrantsResponseTruncatedEnum

type ListRetirableGrantsResponseTruncatedEnum struct {
	TRUE  ListRetirableGrantsResponseTruncated
	FALSE ListRetirableGrantsResponseTruncated
}

func GetListRetirableGrantsResponseTruncatedEnum

func GetListRetirableGrantsResponseTruncatedEnum() ListRetirableGrantsResponseTruncatedEnum

type OperateKeyRequestBody

type OperateKeyRequestBody struct {

	// 密钥ID,36字节,满足正则匹配“^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$”。 例如:0d0466b0-e727-4d9c-b35d-f84bb474a37f。
	KeyId string `json:"key_id"`

	// 请求消息序列号,36字节序列号。 例如:919c82d4-8046-4722-9094-35c3c6524cff
	Sequence *string `json:"sequence,omitempty"`
}

func (OperateKeyRequestBody) String

func (o OperateKeyRequestBody) String() string

type Quotas

type Quotas struct {

	// 资源配额列表,详情请参见Resources
	Resources *[]Resources `json:"resources,omitempty"`
}

配额详情。

func (Quotas) String

func (o Quotas) String() string

type Resources

type Resources struct {

	// 配额类型。枚举值说明:  - CMK,用户主密钥  - grant_per_CMK,单个用户主密钥可创建授权数
	Type *ResourcesType `json:"type,omitempty"`

	// 已使用配额数。
	Used *int32 `json:"used,omitempty"`

	// 配额总数。
	Quota *int32 `json:"quota,omitempty"`
}

func (Resources) String

func (o Resources) String() string

type ResourcesType

type ResourcesType struct {
	// contains filtered or unexported fields
}

func (ResourcesType) MarshalJSON

func (c ResourcesType) MarshalJSON() ([]byte, error)

func (*ResourcesType) UnmarshalJSON

func (c *ResourcesType) UnmarshalJSON(b []byte) error

func (ResourcesType) Value added in v0.0.90

func (c ResourcesType) Value() string

type ResourcesTypeEnum

type ResourcesTypeEnum struct {
	CMK           ResourcesType
	GRANT_PER_CMK ResourcesType
}

func GetResourcesTypeEnum

func GetResourcesTypeEnum() ResourcesTypeEnum

type RevokeGrantRequestBody

type RevokeGrantRequestBody struct {

	// 密钥ID,36字节,满足正则匹配“^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$”。 例如:0d0466b0-e727-4d9c-b35d-f84bb474a37f。
	KeyId string `json:"key_id"`

	// 授权ID,64字节,满足正则匹配“^[A-Fa-f0-9]{64}$”。 例如:7c9a3286af4fcca5f0a385ad13e1d21a50e27b6dbcab50f37f30f93b8939827d
	GrantId string `json:"grant_id"`

	// 请求消息序列号,36字节序列号。例如:919c82d4-8046-4722-9094-35c3c6524cff
	Sequence *string `json:"sequence,omitempty"`
}

func (RevokeGrantRequestBody) String

func (o RevokeGrantRequestBody) String() string

type ScheduleKeyDeletionRequestBody

type ScheduleKeyDeletionRequestBody struct {

	// 密钥ID,36字节,满足正则匹配“^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$”。 例如:0d0466b0-e727-4d9c-b35d-f84bb474a37f。
	KeyId string `json:"key_id"`

	// 计划多少天后删除密钥,取值为7到1096。
	PendingDays string `json:"pending_days"`

	// 请求消息序列号,36字节序列号。 例如:919c82d4-8046-4722-9094-35c3c6524cff
	Sequence *string `json:"sequence,omitempty"`
}

func (ScheduleKeyDeletionRequestBody) String

type ShowKeyRotationStatusRequest

type ShowKeyRotationStatusRequest struct {
	Body *OperateKeyRequestBody `json:"body,omitempty"`
}

Request Object

func (ShowKeyRotationStatusRequest) String

type ShowKeyRotationStatusResponse

type ShowKeyRotationStatusResponse struct {

	// 密钥轮换状态,默认为“false”,表示关闭密钥轮换功能。
	KeyRotationEnabled *bool `json:"key_rotation_enabled,omitempty"`

	// 轮换周期,取值范围为30~365的整数。 周期范围设置根据密钥使用频率进行,若密钥使用频率高,建议设置为短周期;反之,则设置为长周期。
	RotationInterval *int32 `json:"rotation_interval,omitempty"`

	// 上一次密钥轮换时间。时间戳,即从1970年1月1日至该时间的总秒数。
	LastRotationTime *string `json:"last_rotation_time,omitempty"`

	// 密钥轮换次数。
	NumberOfRotations *int32 `json:"number_of_rotations,omitempty"`
	HttpStatusCode    int    `json:"-"`
}

Response Object

func (ShowKeyRotationStatusResponse) String

type ShowKmsTagsRequest

type ShowKmsTagsRequest struct {

	// 密钥ID
	KeyId string `json:"key_id"`
}

Request Object

func (ShowKmsTagsRequest) String

func (o ShowKmsTagsRequest) String() string

type ShowKmsTagsResponse

type ShowKmsTagsResponse struct {

	// 标签列表,key和value键值对的集合。  - key:表示标签键,一个密钥下最多包含10个key,key不能为空,不能重复,同一个key中value不能重复。key最大长度为36个字符。  - value:表示标签值。每个值最大长度43个字符,value之间为“与”的关系。
	Tags *[]TagItem `json:"tags,omitempty"`

	// 密钥的标签个数。。
	ExistTagsNum   *int32 `json:"existTagsNum,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ShowKmsTagsResponse) String

func (o ShowKmsTagsResponse) String() string

type ShowPublicKeyRequest

type ShowPublicKeyRequest struct {
	Body *OperateKeyRequestBody `json:"body,omitempty"`
}

Request Object

func (ShowPublicKeyRequest) String

func (o ShowPublicKeyRequest) String() string

type ShowPublicKeyResponse

type ShowPublicKeyResponse struct {

	// 密钥ID。
	KeyId *string `json:"key_id,omitempty"`

	// 公钥信息。
	PublicKey      *string `json:"public_key,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowPublicKeyResponse) String

func (o ShowPublicKeyResponse) String() string

type ShowUserInstancesRequest

type ShowUserInstancesRequest struct {
}

Request Object

func (ShowUserInstancesRequest) String

func (o ShowUserInstancesRequest) String() string

type ShowUserInstancesResponse

type ShowUserInstancesResponse struct {

	// 非默认用户主密钥个数。
	InstanceNum    *int32 `json:"instance_num,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ShowUserInstancesResponse) String

func (o ShowUserInstancesResponse) String() string

type ShowUserQuotasRequest

type ShowUserQuotasRequest struct {
}

Request Object

func (ShowUserQuotasRequest) String

func (o ShowUserQuotasRequest) String() string

type ShowUserQuotasResponse

type ShowUserQuotasResponse struct {
	Quotas         *Quotas `json:"quotas,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowUserQuotasResponse) String

func (o ShowUserQuotasResponse) String() string

type ShowVersionRequest

type ShowVersionRequest struct {

	// API版本号
	VersionId string `json:"version_id"`
}

Request Object

func (ShowVersionRequest) String

func (o ShowVersionRequest) String() string

type ShowVersionResponse

type ShowVersionResponse struct {

	// 描述version 对象的列表,详情请参见 ApiVersionDetail字段数据结构说明。
	Version        *interface{} `json:"version,omitempty"`
	HttpStatusCode int          `json:"-"`
}

Response Object

func (ShowVersionResponse) String

func (o ShowVersionResponse) String() string

type ShowVersionsRequest

type ShowVersionsRequest struct {
}

Request Object

func (ShowVersionsRequest) String

func (o ShowVersionsRequest) String() string

type ShowVersionsResponse

type ShowVersionsResponse struct {

	// 描述version 相关对象的列表,详情请参见 versions字段数据结构说明。
	Versions       *[]ApiVersionDetail `json:"versions,omitempty"`
	HttpStatusCode int                 `json:"-"`
}

Response Object

func (ShowVersionsResponse) String

func (o ShowVersionsResponse) String() string

type SignRequest

type SignRequest struct {
	Body *SignRequestBody `json:"body,omitempty"`
}

Request Object

func (SignRequest) String

func (o SignRequest) String() string

type SignRequestBody

type SignRequestBody struct {

	// 密钥ID,36字节,满足正则匹配“^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$”。 例如:0d0466b0-e727-4d9c-b35d-f84bb474a37f。
	KeyId string `json:"key_id"`

	// 待签名的消息摘要或者消息,消息长度要求小于4096字节,使用Base64编码。
	Message string `json:"message"`

	// 签名算法,枚举如下:  - RSASSA_PSS_SHA_256  - RSASSA_PSS_SHA_384  - RSASSA_PSS_SHA_512  - RSASSA_PKCS1_V1_5_SHA_256  - RSASSA_PKCS1_V1_5_SHA_384  - RSASSA_PKCS1_V1_5_SHA_512  - ECDSA_SHA_256  - ECDSA_SHA_384  - ECDSA_SHA_512  - SM2DSA_SM3
	SigningAlgorithm SignRequestBodySigningAlgorithm `json:"signing_algorithm"`

	// 消息类型,默认为“DIGEST”,枚举如下:  - DIGEST 表示消息摘要  - RAW 表示消息原文
	MessageType *SignRequestBodyMessageType `json:"message_type,omitempty"`

	// 请求消息序列号,36字节序列号。 例如:919c82d4-8046-4722-9094-35c3c6524cff。
	Sequence *string `json:"sequence,omitempty"`
}

func (SignRequestBody) String

func (o SignRequestBody) String() string

type SignRequestBodyMessageType

type SignRequestBodyMessageType struct {
	// contains filtered or unexported fields
}

func (SignRequestBodyMessageType) MarshalJSON

func (c SignRequestBodyMessageType) MarshalJSON() ([]byte, error)

func (*SignRequestBodyMessageType) UnmarshalJSON

func (c *SignRequestBodyMessageType) UnmarshalJSON(b []byte) error

func (SignRequestBodyMessageType) Value added in v0.0.90

type SignRequestBodyMessageTypeEnum

type SignRequestBodyMessageTypeEnum struct {
	DIGEST SignRequestBodyMessageType
	RAW    SignRequestBodyMessageType
}

func GetSignRequestBodyMessageTypeEnum

func GetSignRequestBodyMessageTypeEnum() SignRequestBodyMessageTypeEnum

type SignRequestBodySigningAlgorithm

type SignRequestBodySigningAlgorithm struct {
	// contains filtered or unexported fields
}

func (SignRequestBodySigningAlgorithm) MarshalJSON

func (c SignRequestBodySigningAlgorithm) MarshalJSON() ([]byte, error)

func (*SignRequestBodySigningAlgorithm) UnmarshalJSON

func (c *SignRequestBodySigningAlgorithm) UnmarshalJSON(b []byte) error

func (SignRequestBodySigningAlgorithm) Value added in v0.0.90

type SignRequestBodySigningAlgorithmEnum

type SignRequestBodySigningAlgorithmEnum struct {
	RSASSA_PSS_SHA_256        SignRequestBodySigningAlgorithm
	RSASSA_PSS_SHA_384        SignRequestBodySigningAlgorithm
	RSASSA_PSS_SHA_512        SignRequestBodySigningAlgorithm
	RSASSA_PKCS1_V1_5_SHA_256 SignRequestBodySigningAlgorithm
	RSASSA_PKCS1_V1_5_SHA_384 SignRequestBodySigningAlgorithm
	RSASSA_PKCS1_V1_5_SHA_512 SignRequestBodySigningAlgorithm
	ECDSA_SHA_256             SignRequestBodySigningAlgorithm
	ECDSA_SHA_384             SignRequestBodySigningAlgorithm
	ECDSA_SHA_512             SignRequestBodySigningAlgorithm
	SM2_DSA_SM3               SignRequestBodySigningAlgorithm
}

func GetSignRequestBodySigningAlgorithmEnum

func GetSignRequestBodySigningAlgorithmEnum() SignRequestBodySigningAlgorithmEnum

type SignResponse

type SignResponse struct {

	// 密钥ID。
	KeyId *string `json:"key_id,omitempty"`

	// 签名值,使用base64编码。
	Signature      *string `json:"signature,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (SignResponse) String

func (o SignResponse) String() string

type Tag

type Tag struct {

	// 键。 最大长度36个unicode字符。 key不能为空。不能包含非打印字符“ASCII(0-31)”、“*”、“<”、“>”、“\\”、“=”。
	Key *string `json:"key,omitempty"`

	// 标签值集合
	Values *[]string `json:"values,omitempty"`
}

func (Tag) String

func (o Tag) String() string

type TagItem

type TagItem struct {

	// 键。 最大长度36个unicode字符。 key不能为空。不能包含非打印字符“ASCII(0-31)”、“*”、“<”、“>”、“\\”、“=”。
	Key *string `json:"key,omitempty"`

	// 值。 每个值最大长度43个unicode字符,可以为空字符串。 不能包含非打印字符“ASCII(0-31)”、“*”、“<”、“>”、“\\”、“=”。
	Value *string `json:"value,omitempty"`
}

标签。

func (TagItem) String

func (o TagItem) String() string

type UpdateKeyAliasRequest

type UpdateKeyAliasRequest struct {
	Body *UpdateKeyAliasRequestBody `json:"body,omitempty"`
}

Request Object

func (UpdateKeyAliasRequest) String

func (o UpdateKeyAliasRequest) String() string

type UpdateKeyAliasRequestBody

type UpdateKeyAliasRequestBody struct {

	// 密钥ID,36字节,满足正则匹配“^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$”。 例如:0d0466b0-e727-4d9c-b35d-f84bb474a37f。
	KeyId string `json:"key_id"`

	// 非默认主密钥别名,取值1到255字符,满足正则匹配“^[a-zA-Z0-9:/_-]{1,255}$”且 后缀不可以为“/default”。
	KeyAlias string `json:"key_alias"`

	// 请求消息序列号,36字节序列号。 例如:919c82d4-8046-4722-9094-35c3c6524cff
	Sequence *string `json:"sequence,omitempty"`
}

func (UpdateKeyAliasRequestBody) String

func (o UpdateKeyAliasRequestBody) String() string

type UpdateKeyAliasResponse

type UpdateKeyAliasResponse struct {
	KeyInfo        *KeyAliasInfo `json:"key_info,omitempty"`
	HttpStatusCode int           `json:"-"`
}

Response Object

func (UpdateKeyAliasResponse) String

func (o UpdateKeyAliasResponse) String() string

type UpdateKeyDescriptionRequest

type UpdateKeyDescriptionRequest struct {
	Body *UpdateKeyDescriptionRequestBody `json:"body,omitempty"`
}

Request Object

func (UpdateKeyDescriptionRequest) String

type UpdateKeyDescriptionRequestBody

type UpdateKeyDescriptionRequestBody struct {

	// 密钥ID,36字节,满足正则匹配“^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$”。 例如:0d0466b0-e727-4d9c-b35d-f84bb474a37f。
	KeyId string `json:"key_id"`

	// 密钥描述,取值0到255字符。
	KeyDescription string `json:"key_description"`

	// 请求消息序列号,36字节序列号。 例如:919c82d4-8046-4722-9094-35c3c6524cff
	Sequence *string `json:"sequence,omitempty"`
}

func (UpdateKeyDescriptionRequestBody) String

type UpdateKeyDescriptionResponse

type UpdateKeyDescriptionResponse struct {
	KeyInfo        *KeyDescriptionInfo `json:"key_info,omitempty"`
	HttpStatusCode int                 `json:"-"`
}

Response Object

func (UpdateKeyDescriptionResponse) String

type UpdateKeyRotationIntervalRequest

type UpdateKeyRotationIntervalRequest struct {
	Body *UpdateKeyRotationIntervalRequestBody `json:"body,omitempty"`
}

Request Object

func (UpdateKeyRotationIntervalRequest) String

type UpdateKeyRotationIntervalRequestBody

type UpdateKeyRotationIntervalRequestBody struct {

	// 密钥ID,36字节,满足正则匹配“^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$”。 例如:0d0466b0-e727-4d9c-b35d-f84bb474a37f。
	KeyId string `json:"key_id"`

	// 轮换周期,取值范围为30~365的整数。 周期范围设置根据密钥使用频率进行,若密钥使用频率高,建议设置为短周期;反之,则设置为长周期。
	RotationInterval int32 `json:"rotation_interval"`

	// 请求消息序列号,36字节序列号。 例如:919c82d4-8046-4722-9094-35c3c6524cff
	Sequence *string `json:"sequence,omitempty"`
}

func (UpdateKeyRotationIntervalRequestBody) String

type UpdateKeyRotationIntervalResponse

type UpdateKeyRotationIntervalResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (UpdateKeyRotationIntervalResponse) String

type ValidateSignatureRequest

type ValidateSignatureRequest struct {
	Body *VerifyRequestBody `json:"body,omitempty"`
}

Request Object

func (ValidateSignatureRequest) String

func (o ValidateSignatureRequest) String() string

type ValidateSignatureResponse

type ValidateSignatureResponse struct {

	// 密钥ID。
	KeyId *string `json:"key_id,omitempty"`

	// 签名验证合法性,“true”表示验证签名合法,“false”表示验证签名非法。
	SignatureValid *string `json:"signature_valid,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ValidateSignatureResponse) String

func (o ValidateSignatureResponse) String() string

type VerifyRequestBody

type VerifyRequestBody struct {

	// 密钥ID,36字节,满足正则匹配“^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$”。 例如:0d0466b0-e727-4d9c-b35d-f84bb474a37f。
	KeyId string `json:"key_id"`

	// 待签名的消息摘要或者消息,消息长度要求小于4096字节,使用Base64编码。
	Message string `json:"message"`

	// 待验证的签名值,使用Base64编码。
	Signature string `json:"signature"`

	// 签名算法,枚举如下:  - RSASSA_PSS_SHA_256  - RSASSA_PSS_SHA_384  - RSASSA_PSS_SHA_512  - RSASSA_PKCS1_V1_5_SHA_256  - RSASSA_PKCS1_V1_5_SHA_384  - RSASSA_PKCS1_V1_5_SHA_512  - ECDSA_SHA_256  - ECDSA_SHA_384  - ECDSA_SHA_512  - SM2DSA_SM3
	SigningAlgorithm VerifyRequestBodySigningAlgorithm `json:"signing_algorithm"`

	// 消息类型,默认为“DIGEST”,枚举如下:  - DIGEST 表示消息摘要  - RAW 表示消息原文
	MessageType *VerifyRequestBodyMessageType `json:"message_type,omitempty"`

	// 请求消息序列号,36字节序列号。 例如:919c82d4-8046-4722-9094-35c3c6524cff。
	Sequence *string `json:"sequence,omitempty"`
}

func (VerifyRequestBody) String

func (o VerifyRequestBody) String() string

type VerifyRequestBodyMessageType

type VerifyRequestBodyMessageType struct {
	// contains filtered or unexported fields
}

func (VerifyRequestBodyMessageType) MarshalJSON

func (c VerifyRequestBodyMessageType) MarshalJSON() ([]byte, error)

func (*VerifyRequestBodyMessageType) UnmarshalJSON

func (c *VerifyRequestBodyMessageType) UnmarshalJSON(b []byte) error

func (VerifyRequestBodyMessageType) Value added in v0.0.90

type VerifyRequestBodyMessageTypeEnum

type VerifyRequestBodyMessageTypeEnum struct {
	DIGEST VerifyRequestBodyMessageType
	RAW    VerifyRequestBodyMessageType
}

func GetVerifyRequestBodyMessageTypeEnum

func GetVerifyRequestBodyMessageTypeEnum() VerifyRequestBodyMessageTypeEnum

type VerifyRequestBodySigningAlgorithm

type VerifyRequestBodySigningAlgorithm struct {
	// contains filtered or unexported fields
}

func (VerifyRequestBodySigningAlgorithm) MarshalJSON

func (c VerifyRequestBodySigningAlgorithm) MarshalJSON() ([]byte, error)

func (*VerifyRequestBodySigningAlgorithm) UnmarshalJSON

func (c *VerifyRequestBodySigningAlgorithm) UnmarshalJSON(b []byte) error

func (VerifyRequestBodySigningAlgorithm) Value added in v0.0.90

type VerifyRequestBodySigningAlgorithmEnum

type VerifyRequestBodySigningAlgorithmEnum struct {
	RSASSA_PSS_SHA_256        VerifyRequestBodySigningAlgorithm
	RSASSA_PSS_SHA_384        VerifyRequestBodySigningAlgorithm
	RSASSA_PSS_SHA_512        VerifyRequestBodySigningAlgorithm
	RSASSA_PKCS1_V1_5_SHA_256 VerifyRequestBodySigningAlgorithm
	RSASSA_PKCS1_V1_5_SHA_384 VerifyRequestBodySigningAlgorithm
	RSASSA_PKCS1_V1_5_SHA_512 VerifyRequestBodySigningAlgorithm
	ECDSA_SHA_256             VerifyRequestBodySigningAlgorithm
	ECDSA_SHA_384             VerifyRequestBodySigningAlgorithm
	ECDSA_SHA_512             VerifyRequestBodySigningAlgorithm
	SM2_DSA_SM3               VerifyRequestBodySigningAlgorithm
}

func GetVerifyRequestBodySigningAlgorithmEnum

func GetVerifyRequestBodySigningAlgorithmEnum() VerifyRequestBodySigningAlgorithmEnum

Source Files

Jump to

Keyboard shortcuts

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