model

package
v0.0.5-beta Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2020 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 4 Imported by: 0

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 {
	KeyId     string                         `json:"key_id"`
	VersionId string                         `json:"version_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 {
}

Response Object

func (BatchCreateKmsTagsResponse) String

type CancelGrantRequest

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

Request Object

func (CancelGrantRequest) String

func (o CancelGrantRequest) String() string

type CancelGrantResponse

type CancelGrantResponse struct {
}

Response Object

func (CancelGrantResponse) String

func (o CancelGrantResponse) String() string

type CancelKeyDeletionRequest

type CancelKeyDeletionRequest struct {
	VersionId string                 `json:"version_id"`
	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"`
}

Response Object

func (CancelKeyDeletionResponse) String

func (o CancelKeyDeletionResponse) String() string

type CancelSelfGrantRequest

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

Request Object

func (CancelSelfGrantRequest) String

func (o CancelSelfGrantRequest) String() string

type CancelSelfGrantResponse

type CancelSelfGrantResponse struct {
}

Response Object

func (CancelSelfGrantResponse) String

func (o CancelSelfGrantResponse) String() string

type CreateDatakeyRequest

type CreateDatakeyRequest struct {
	VersionId string                    `json:"version_id"`
	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,omitempty"`
	// 一系列key-value键值对,用于记录资源上下文信息,用于保护数据的完整性,不应包含敏感信息,最大长度为8192。 当在加密时指定了该参数时,解密密文时,需要传入相同的参数,才能正确的解密。 例如:{\"Key1\":\"Value1\",\"Key2\":\"Value2\"}
	EncryptionContext *interface{} `json:"encryption_context,omitempty"`
	// 指定生成的密钥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

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"`
}

Response Object

func (CreateDatakeyResponse) String

func (o CreateDatakeyResponse) String() string

type CreateDatakeyWithoutPlaintextRequest

type CreateDatakeyWithoutPlaintextRequest struct {
	VersionId string                    `json:"version_id"`
	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"`
}

Response Object

func (CreateDatakeyWithoutPlaintextResponse) String

type CreateGrantRequest

type CreateGrantRequest struct {
	VersionId string                  `json:"version_id"`
	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,omitempty"`
	// 被授权用户ID,1~64字节,满足正则匹配“^[a-zA-Z0-9]{1,64}$”。 例如:0d0466b00d0466b00d0466b00d0466b0
	GranteePrincipal *string `json:"grantee_principal,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"`
	// 授权名称,取值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

type CreateGrantResponse

type CreateGrantResponse struct {
	// 授权ID,64字节。
	GrantId *string `json:"grant_id,omitempty"`
}

Response Object

func (CreateGrantResponse) String

func (o CreateGrantResponse) String() string

type CreateKeyRequest

type CreateKeyRequest struct {
	VersionId string                `json:"version_id"`
	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,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 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

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"`
}

Response Object

func (CreateKeyResponse) String

func (o CreateKeyResponse) String() string

type CreateKmsTagRequest

type CreateKmsTagRequest struct {
	VersionId string                   `json:"version_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"`
}

func (CreateKmsTagRequestBody) String

func (o CreateKmsTagRequestBody) String() string

type CreateKmsTagResponse

type CreateKmsTagResponse struct {
}

Response Object

func (CreateKmsTagResponse) String

func (o CreateKmsTagResponse) String() string

type CreateParametersForImportRequest

type CreateParametersForImportRequest struct {
	VersionId string                             `json:"version_id"`
	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 *string `json:"expiration_time,omitempty"`
	// 加密密钥材料的公钥,base64格式。
	PublicKey *string `json:"public_key,omitempty"`
}

Response Object

func (CreateParametersForImportResponse) String

type CreateRandomRequest

type CreateRandomRequest struct {
	VersionId string                `json:"version_id"`
	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"`
}

Response Object

func (CreateRandomResponse) String

func (o CreateRandomResponse) String() string

type DecryptDataRequest

type DecryptDataRequest struct {
	VersionId string                  `json:"version_id"`
	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+/=]{188,5648}$”。
	CipherText *string `json:"cipher_text,omitempty"`
	// 一系列key-value键值对,用于记录资源上下文信息,用于保护数据的完整性,不应包含敏感信息,最大长度为8192。 当在加密时指定了该参数时,解密密文时,需要传入相同的参数,才能正确的解密。 例如:{\"Key1\":\"Value1\",\"Key2\":\"Value2\"}
	EncryptionContext *interface{} `json:"encryption_context,omitempty"`
	// 请求消息序列号,36字节序列号。 例如:919c82d4-8046-4722-9094-35c3c6524cff
	Sequence *string `json:"sequence,omitempty"`
}

func (DecryptDataRequestBody) String

func (o DecryptDataRequestBody) String() string

type DecryptDataResponse

type DecryptDataResponse struct {
	// 密钥ID。
	KeyId *string `json:"key_id,omitempty"`
	// 明文。
	PlainText *string `json:"plain_text,omitempty"`
}

Response Object

func (DecryptDataResponse) String

func (o DecryptDataResponse) String() string

type DecryptDatakeyRequest

type DecryptDatakeyRequest struct {
	VersionId string                     `json:"version_id"`
	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,omitempty"`
	// 一系列key-value键值对,用于记录资源上下文信息,用于保护数据的完整性,不应包含敏感信息,最大长度为8192。 当在加密时指定了该参数时,解密密文时,需要传入相同的参数,才能正确的解密。 例如:{\"Key1\":\"Value1\",\"Key2\":\"Value2\"}
	EncryptionContext *interface{} `json:"encryption_context,omitempty"`
	// DEK密文及元数据的16进制字符串。取值为加密数据密钥结果中的cipher_text的值。
	CipherText *string `json:"cipher_text,omitempty"`
	// 密钥字节长度,取值范围为1~1024。 密钥字节长度,取值为“64”。
	DatakeyCipherLength *string `json:"datakey_cipher_length,omitempty"`
	// 请求消息序列号,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"`
}

Response Object

func (DecryptDatakeyResponse) String

func (o DecryptDatakeyResponse) String() string

type DeleteImportedKeyMaterialRequest

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

Request Object

func (DeleteImportedKeyMaterialRequest) String

type DeleteImportedKeyMaterialResponse

type DeleteImportedKeyMaterialResponse struct {
}

Response Object

func (DeleteImportedKeyMaterialResponse) String

type DeleteKeyRequest

type DeleteKeyRequest struct {
	VersionId string                          `json:"version_id"`
	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"`
}

Response Object

func (DeleteKeyResponse) String

func (o DeleteKeyResponse) String() string

type DeleteTagRequest

type DeleteTagRequest struct {
	KeyId     string `json:"key_id"`
	Key       string `json:"key"`
	VersionId string `json:"version_id"`
}

Request Object

func (DeleteTagRequest) String

func (o DeleteTagRequest) String() string

type DeleteTagResponse

type DeleteTagResponse struct {
}

Response Object

func (DeleteTagResponse) String

func (o DeleteTagResponse) String() string

type DisableKeyRequest

type DisableKeyRequest struct {
	VersionId string                 `json:"version_id"`
	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"`
}

Response Object

func (DisableKeyResponse) String

func (o DisableKeyResponse) String() string

type DisableKeyRotationRequest

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

Request Object

func (DisableKeyRotationRequest) String

func (o DisableKeyRotationRequest) String() string

type DisableKeyRotationResponse

type DisableKeyRotationResponse struct {
}

Response Object

func (DisableKeyRotationResponse) String

type EnableKeyRequest

type EnableKeyRequest struct {
	VersionId string                 `json:"version_id"`
	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"`
}

Response Object

func (EnableKeyResponse) String

func (o EnableKeyResponse) String() string

type EnableKeyRotationRequest

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

Request Object

func (EnableKeyRotationRequest) String

func (o EnableKeyRotationRequest) String() string

type EnableKeyRotationResponse

type EnableKeyRotationResponse struct {
}

Response Object

func (EnableKeyRotationResponse) String

func (o EnableKeyRotationResponse) String() string

type EncryptDataRequest

type EncryptDataRequest struct {
	VersionId string                  `json:"version_id"`
	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,omitempty"`
	// 一系列key-value键值对,用于记录资源上下文信息,用于保护数据的完整性,不应包含敏感信息,最大长度为8192。 当在加密时指定了该参数时,解密密文时,需要传入相同的参数,才能正确的解密。 例如:{\"Key1\":\"Value1\",\"Key2\":\"Value2\"}
	EncryptionContext *interface{} `json:"encryption_context,omitempty"`
	// 明文数据,1~4096字节,满足正则匹配“^.{1,4096}$”,且转化为byte数组后长度取值范围为1~4096字节。
	PlainText *string `json:"plain_text,omitempty"`
	// 请求消息序列号,36字节序列号。 例如:919c82d4-8046-4722-9094-35c3c6524cff
	Sequence *string `json:"sequence,omitempty"`
}

func (EncryptDataRequestBody) String

func (o EncryptDataRequestBody) String() string

type EncryptDataResponse

type EncryptDataResponse struct {
	// 密钥ID。
	KeyId *string `json:"key_id,omitempty"`
	// DEK密文16进制,两位表示1byte。
	CipherText *string `json:"cipher_text,omitempty"`
}

Response Object

func (EncryptDataResponse) String

func (o EncryptDataResponse) String() string

type EncryptDatakeyRequest

type EncryptDatakeyRequest struct {
	VersionId string                     `json:"version_id"`
	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,omitempty"`
	// 一系列key-value键值对,用于记录资源上下文信息,用于保护数据的完整性,不应包含敏感信息,最大长度为8192。 当在加密时指定了该参数时,解密密文时,需要传入相同的参数,才能正确的解密。 例如:{\"Key1\":\"Value1\",\"Key2\":\"Value2\"}
	EncryptionContext *interface{} `json:"encryption_context,omitempty"`
	// DEK明文和DEK明文的SHA256(32字节),均为16进制字符串表示。 DEK明文(64字节)和DEK明文的SHA256(32字节),均为16进制字符串表示
	PlainText *string `json:"plain_text,omitempty"`
	// DEK明文字节长度,取值范围为1~1024。 DEK明文字节长度,取值为“64”。
	DatakeyPlainLength *string `json:"datakey_plain_length,omitempty"`
	// 请求消息序列号,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"`
}

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,omitempty"`
	// 请求消息序列号,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,omitempty"`
	// 密钥材料加密算法,枚举如下:  - RSAES_PKCS1_V1_5  - RSAES_OAEP_SHA_1  - RSAES_OAEP_SHA_256
	WrappingAlgorithm GetParametersForImportRequestBodyWrappingAlgorithm `json:"wrapping_algorithm,omitempty"`
	// 请求消息序列号,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

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

type GrantsGranteePrincipalTypeEnum

type GrantsGranteePrincipalTypeEnum struct {
	USER   GrantsGranteePrincipalType
	DOMAIN GrantsGranteePrincipalType
}

func GetGrantsGranteePrincipalTypeEnum

func GetGrantsGranteePrincipalTypeEnum() GrantsGranteePrincipalTypeEnum

type ImportKeyMaterialRequest

type ImportKeyMaterialRequest struct {
	VersionId string                        `json:"version_id"`
	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,omitempty"`
	// 密钥导入令牌,base64格式,满足正则匹配“^[0-9a-zA-Z+/=]{200,6144}$”。
	ImportToken *string `json:"import_token,omitempty"`
	// 加密后的密钥材料,base64格式,满足正则匹配“^[0-9a-zA-Z+/=]{344,360}$”。
	EncryptedKeyMaterial *string `json:"encrypted_key_material,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 {
}

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"`
	// 密钥描述。
	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 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

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 {
	VersionId string                 `json:"version_id"`
	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,omitempty"`
	// 指定查询授权列表返回记录条数,如果查询记录条数小于存在的条数,响应参数“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"`
}

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

type ListGrantsResponseTruncatedEnum

type ListGrantsResponseTruncatedEnum struct {
	TRUE  ListGrantsResponseTruncated
	FALSE ListGrantsResponseTruncated
}

func GetListGrantsResponseTruncatedEnum

func GetListGrantsResponseTruncatedEnum() ListGrantsResponseTruncatedEnum

type ListKeyDetailRequest

type ListKeyDetailRequest struct {
	VersionId string                 `json:"version_id"`
	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"`
}

Response Object

func (ListKeyDetailResponse) String

func (o ListKeyDetailResponse) String() string

type ListKeysRequest

type ListKeysRequest struct {
	VersionId string               `json:"version_id"`
	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"`
	// 请求消息序列号,36字节序列号。 例如:919c82d4-8046-4722-9094-35c3c6524cff
	Sequence *string `json:"sequence,omitempty"`
}

func (ListKeysRequestBody) String

func (o ListKeysRequestBody) String() string

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"`
}

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

type ListKeysResponseTruncatedEnum

type ListKeysResponseTruncatedEnum struct {
	TRUE  ListKeysResponseTruncated
	FALSE ListKeysResponseTruncated
}

func GetListKeysResponseTruncatedEnum

func GetListKeysResponseTruncatedEnum() ListKeysResponseTruncatedEnum

type ListKmsByTagsRequest

type ListKmsByTagsRequest struct {
	ResourceInstances string                    `json:"resource_instances"`
	VersionId         string                    `json:"version_id"`
	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"`
}

Response Object

func (ListKmsByTagsResponse) String

func (o ListKmsByTagsResponse) String() string

type ListKmsTagsRequest

type ListKmsTagsRequest struct {
	VersionId string `json:"version_id"`
}

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"`
}

Response Object

func (ListKmsTagsResponse) String

func (o ListKmsTagsResponse) String() string

type ListRetirableGrantsRequest

type ListRetirableGrantsRequest struct {
	VersionId string                          `json:"version_id"`
	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"`
}

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

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,omitempty"`
	// 请求消息序列号,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

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,omitempty"`
	// 授权ID,64字节,满足正则匹配“^[A-Fa-f0-9]{64}$”。 例如:7c9a3286af4fcca5f0a385ad13e1d21a50e27b6dbcab50f37f30f93b8939827d
	GrantId *string `json:"grant_id,omitempty"`
	// 请求消息序列号,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,omitempty"`
	// 计划多少天后删除密钥,取值为7到1096。
	PendingDays *string `json:"pending_days,omitempty"`
	// 请求消息序列号,36字节序列号。 例如:919c82d4-8046-4722-9094-35c3c6524cff
	Sequence *string `json:"sequence,omitempty"`
}

func (ScheduleKeyDeletionRequestBody) String

type ShowKeyRotationStatusRequest

type ShowKeyRotationStatusRequest struct {
	VersionId string                 `json:"version_id"`
	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"`
}

Response Object

func (ShowKeyRotationStatusResponse) String

type ShowKmsTagsRequest

type ShowKmsTagsRequest struct {
	VersionId string `json:"version_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"`
}

Response Object

func (ShowKmsTagsResponse) String

func (o ShowKmsTagsResponse) String() string

type ShowUserInstancesRequest

type ShowUserInstancesRequest struct {
	VersionId string `json:"version_id"`
}

Request Object

func (ShowUserInstancesRequest) String

func (o ShowUserInstancesRequest) String() string

type ShowUserInstancesResponse

type ShowUserInstancesResponse struct {
	// 非默认用户主密钥个数。
	InstanceNum *string `json:"instance_num,omitempty"`
}

Response Object

func (ShowUserInstancesResponse) String

func (o ShowUserInstancesResponse) String() string

type ShowUserQuotasRequest

type ShowUserQuotasRequest struct {
	VersionId string `json:"version_id"`
}

Request Object

func (ShowUserQuotasRequest) String

func (o ShowUserQuotasRequest) String() string

type ShowUserQuotasResponse

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

Response Object

func (ShowUserQuotasResponse) String

func (o ShowUserQuotasResponse) String() string

type ShowVersionRequest

type ShowVersionRequest struct {
	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"`
}

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"`
}

Response Object

func (ShowVersionsResponse) String

func (o ShowVersionsResponse) 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 {
	VersionId string                     `json:"version_id"`
	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,omitempty"`
	// 非默认主密钥别名,取值1到255字符,满足正则匹配“^[a-zA-Z0-9:/_-]{1,255}$”且 后缀不可以为“/default”。
	KeyAlias *string `json:"key_alias,omitempty"`
	// 请求消息序列号,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"`
}

Response Object

func (UpdateKeyAliasResponse) String

func (o UpdateKeyAliasResponse) String() string

type UpdateKeyDescriptionRequest

type UpdateKeyDescriptionRequest struct {
	VersionId string                           `json:"version_id"`
	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,omitempty"`
	// 密钥描述,取值0到255字符。
	KeyDescription *string `json:"key_description,omitempty"`
	// 请求消息序列号,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"`
}

Response Object

func (UpdateKeyDescriptionResponse) String

type UpdateKeyRotationIntervalRequest

type UpdateKeyRotationIntervalRequest struct {
	VersionId string                                `json:"version_id"`
	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,omitempty"`
	// 轮换周期,取值范围为30~365的整数。 周期范围设置根据密钥使用频率进行,若密钥使用频率高,建议设置为短周期;反之,则设置为长周期。
	RotationInterval *int32 `json:"rotation_interval,omitempty"`
	// 请求消息序列号,36字节序列号。 例如:919c82d4-8046-4722-9094-35c3c6524cff
	Sequence *string `json:"sequence,omitempty"`
}

func (UpdateKeyRotationIntervalRequestBody) String

type UpdateKeyRotationIntervalResponse

type UpdateKeyRotationIntervalResponse struct {
}

Response Object

func (UpdateKeyRotationIntervalResponse) String

Source Files

Jump to

Keyboard shortcuts

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