model

package
v0.0.72 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2021 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 {
	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 {
	Href *string `json:"href,omitempty"`

	Rel *string `json:"rel,omitempty"`
}

func (ApiLink) String

func (o ApiLink) String() string

type ApiVersionDetail

type ApiVersionDetail struct {
	Id *string `json:"id,omitempty"`

	Links *[]ApiLink `json:"links,omitempty"`

	Version *string `json:"version,omitempty"`

	Status *string `json:"status,omitempty"`

	Updated *string `json:"updated,omitempty"`

	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 {
	Tags *[]TagItem `json:"tags,omitempty"`

	Action *string `json:"action,omitempty"`

	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 {
	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 {
	HttpStatusCode int `json:"-"`
}

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 {
	KeyId *string `json:"key_id,omitempty"`

	KeyState       *string `json:"key_state,omitempty"`
	HttpStatusCode int     `json:"-"`
}

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 {
	HttpStatusCode int `json:"-"`
}

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 {
	KeyId *string `json:"key_id,omitempty"`

	EncryptionContext *interface{} `json:"encryption_context,omitempty"`

	KeySpec *CreateDatakeyRequestBodyKeySpec `json:"key_spec,omitempty"`

	DatakeyLength *string `json:"datakey_length,omitempty"`

	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 {
	KeyId *string `json:"key_id,omitempty"`

	PlainText *string `json:"plain_text,omitempty"`

	CipherText     *string `json:"cipher_text,omitempty"`
	HttpStatusCode int     `json:"-"`
}

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 {
	KeyId *string `json:"key_id,omitempty"`

	CipherText     *string `json:"cipher_text,omitempty"`
	HttpStatusCode int     `json:"-"`
}

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 {
	KeyId *string `json:"key_id,omitempty"`

	GranteePrincipal *string `json:"grantee_principal,omitempty"`

	Operations *[]string `json:"operations,omitempty"`

	Name *string `json:"name,omitempty"`

	RetiringPrincipal *string `json:"retiring_principal,omitempty"`

	GranteePrincipalType *CreateGrantRequestBodyGranteePrincipalType `json:"grantee_principal_type,omitempty"`

	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 {
	GrantId        *string `json:"grant_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

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 {
	KeyAlias *string `json:"key_alias,omitempty"`

	KeySpec *CreateKeyRequestBodyKeySpec `json:"key_spec,omitempty"`

	KeyUsage *CreateKeyRequestBodyKeyUsage `json:"key_usage,omitempty"`

	KeyDescription *string `json:"key_description,omitempty"`

	Origin *CreateKeyRequestBodyOrigin `json:"origin,omitempty"`

	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	Sequence *string `json:"sequence,omitempty"`
}

func (CreateKeyRequestBody) String

func (o CreateKeyRequestBody) String() string

type CreateKeyRequestBodyKeySpec added in v0.0.60

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

func (CreateKeyRequestBodyKeySpec) MarshalJSON added in v0.0.60

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

func (*CreateKeyRequestBodyKeySpec) UnmarshalJSON added in v0.0.60

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

type CreateKeyRequestBodyKeyUsage added in v0.0.60

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

func (CreateKeyRequestBodyKeyUsage) MarshalJSON added in v0.0.60

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

func (*CreateKeyRequestBodyKeyUsage) UnmarshalJSON added in v0.0.60

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

type CreateKeyRequestBodyKeyUsageEnum added in v0.0.60

type CreateKeyRequestBodyKeyUsageEnum struct {
	ENCRYPT_DECRYPT CreateKeyRequestBodyKeyUsage
	SIGN_VERIFY     CreateKeyRequestBodyKeyUsage
}

func GetCreateKeyRequestBodyKeyUsageEnum added in v0.0.60

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

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 {
	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 {
	HttpStatusCode int `json:"-"`
}

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 {
	KeyId *string `json:"key_id,omitempty"`

	ImportToken *string `json:"import_token,omitempty"`

	ExpirationTime *int64 `json:"expiration_time,omitempty"`

	PublicKey      *string `json:"public_key,omitempty"`
	HttpStatusCode int     `json:"-"`
}

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 {
	RandomData     *string `json:"random_data,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateRandomResponse) String

func (o CreateRandomResponse) String() string

type CreateSecretRequest

type CreateSecretRequest struct {
	Body *CreateSecretRequestBody `json:"body,omitempty"`
}

Request Object

func (CreateSecretRequest) String

func (o CreateSecretRequest) String() string

type CreateSecretRequestBody

type CreateSecretRequestBody struct {
	Name string `json:"name"`

	KmsKeyId *string `json:"kms_key_id,omitempty"`

	Description *string `json:"description,omitempty"`

	SecretBinary *string `json:"secret_binary,omitempty"`

	SecretString *string `json:"secret_string,omitempty"`
}

创建凭据请求消息体。

func (CreateSecretRequestBody) String

func (o CreateSecretRequestBody) String() string

type CreateSecretResponse

type CreateSecretResponse struct {
	Secret         *Secret `json:"secret,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateSecretResponse) String

func (o CreateSecretResponse) String() string

type CreateSecretVersionRequest

type CreateSecretVersionRequest struct {
	SecretId string `json:"secret_id"`

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

Request Object

func (CreateSecretVersionRequest) String

type CreateSecretVersionRequestBody

type CreateSecretVersionRequestBody struct {
	SecretBinary *string `json:"secret_binary,omitempty"`

	SecretString *string `json:"secret_string,omitempty"`

	VersionStages *[]string `json:"version_stages,omitempty"`
}

创建凭据版本请求体。

func (CreateSecretVersionRequestBody) String

type CreateSecretVersionResponse

type CreateSecretVersionResponse struct {
	VersionMetadata *VersionMetadata `json:"version_metadata,omitempty"`
	HttpStatusCode  int              `json:"-"`
}

Response Object

func (CreateSecretVersionResponse) 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 {
	CipherText *string `json:"cipher_text,omitempty"`

	EncryptionContext *interface{} `json:"encryption_context,omitempty"`

	EncryptionAlgorithm *DecryptDataRequestBodyEncryptionAlgorithm `json:"encryption_algorithm,omitempty"`

	KeyId *string `json:"key_id,omitempty"`

	Sequence *string `json:"sequence,omitempty"`
}

func (DecryptDataRequestBody) String

func (o DecryptDataRequestBody) String() string

type DecryptDataRequestBodyEncryptionAlgorithm added in v0.0.60

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

func (DecryptDataRequestBodyEncryptionAlgorithm) MarshalJSON added in v0.0.60

func (*DecryptDataRequestBodyEncryptionAlgorithm) UnmarshalJSON added in v0.0.60

type DecryptDataRequestBodyEncryptionAlgorithmEnum added in v0.0.60

type DecryptDataRequestBodyEncryptionAlgorithmEnum struct {
	SYMMETRIC_DEFAULT  DecryptDataRequestBodyEncryptionAlgorithm
	RSAES_OAEP_SHA_256 DecryptDataRequestBodyEncryptionAlgorithm
	RSAES_OAEP_SHA_1   DecryptDataRequestBodyEncryptionAlgorithm
	SM2_ENCRYPT        DecryptDataRequestBodyEncryptionAlgorithm
}

func GetDecryptDataRequestBodyEncryptionAlgorithmEnum added in v0.0.60

func GetDecryptDataRequestBodyEncryptionAlgorithmEnum() DecryptDataRequestBodyEncryptionAlgorithmEnum

type DecryptDataResponse

type DecryptDataResponse struct {
	KeyId *string `json:"key_id,omitempty"`

	PlainText      *string `json:"plain_text,omitempty"`
	HttpStatusCode int     `json:"-"`
}

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 {
	KeyId *string `json:"key_id,omitempty"`

	EncryptionContext *interface{} `json:"encryption_context,omitempty"`

	CipherText *string `json:"cipher_text,omitempty"`

	DatakeyCipherLength *string `json:"datakey_cipher_length,omitempty"`

	Sequence *string `json:"sequence,omitempty"`
}

func (DecryptDatakeyRequestBody) String

func (o DecryptDatakeyRequestBody) String() string

type DecryptDatakeyResponse

type DecryptDatakeyResponse struct {
	DataKey *string `json:"data_key,omitempty"`

	DatakeyLength *string `json:"datakey_length,omitempty"`

	DatakeyDgst    *string `json:"datakey_dgst,omitempty"`
	HttpStatusCode int     `json:"-"`
}

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 {
	HttpStatusCode int `json:"-"`
}

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 {
	KeyId *string `json:"key_id,omitempty"`

	KeyState       *string `json:"key_state,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (DeleteKeyResponse) String

func (o DeleteKeyResponse) String() string

type DeleteSecretForScheduleRequest

type DeleteSecretForScheduleRequest struct {
	SecretId string `json:"secret_id"`

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

Request Object

func (DeleteSecretForScheduleRequest) String

type DeleteSecretForScheduleRequestBody

type DeleteSecretForScheduleRequestBody struct {
	RecoveryWindowInDays int32 `json:"recovery_window_in_days"`
}

func (DeleteSecretForScheduleRequestBody) String

type DeleteSecretForScheduleResponse

type DeleteSecretForScheduleResponse struct {
	Secret         *Secret `json:"secret,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (DeleteSecretForScheduleResponse) String

type DeleteSecretRequest

type DeleteSecretRequest struct {
	SecretId string `json:"secret_id"`
}

Request Object

func (DeleteSecretRequest) String

func (o DeleteSecretRequest) String() string

type DeleteSecretResponse

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

Response Object

func (DeleteSecretResponse) String

func (o DeleteSecretResponse) String() string

type DeleteSecretStageRequest

type DeleteSecretStageRequest struct {
	SecretId string `json:"secret_id"`

	StageName string `json:"stage_name"`
}

Request Object

func (DeleteSecretStageRequest) String

func (o DeleteSecretStageRequest) String() string

type DeleteSecretStageResponse

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

Response Object

func (DeleteSecretStageResponse) String

func (o DeleteSecretStageResponse) 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 {
	HttpStatusCode int `json:"-"`
}

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"`
	HttpStatusCode int            `json:"-"`
}

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 {
	HttpStatusCode int `json:"-"`
}

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"`
	HttpStatusCode int            `json:"-"`
}

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 {
	HttpStatusCode int `json:"-"`
}

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 {
	KeyId *string `json:"key_id,omitempty"`

	EncryptionContext *interface{} `json:"encryption_context,omitempty"`

	PlainText *string `json:"plain_text,omitempty"`

	EncryptionAlgorithm *EncryptDataRequestBodyEncryptionAlgorithm `json:"encryption_algorithm,omitempty"`

	Sequence *string `json:"sequence,omitempty"`
}

func (EncryptDataRequestBody) String

func (o EncryptDataRequestBody) String() string

type EncryptDataRequestBodyEncryptionAlgorithm added in v0.0.60

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

func (EncryptDataRequestBodyEncryptionAlgorithm) MarshalJSON added in v0.0.60

func (*EncryptDataRequestBodyEncryptionAlgorithm) UnmarshalJSON added in v0.0.60

type EncryptDataRequestBodyEncryptionAlgorithmEnum added in v0.0.60

type EncryptDataRequestBodyEncryptionAlgorithmEnum struct {
	SYMMETRIC_DEFAULT  EncryptDataRequestBodyEncryptionAlgorithm
	RSAES_OAEP_SHA_256 EncryptDataRequestBodyEncryptionAlgorithm
	RSAES_OAEP_SHA_1   EncryptDataRequestBodyEncryptionAlgorithm
	SM2_ENCRYPT        EncryptDataRequestBodyEncryptionAlgorithm
}

func GetEncryptDataRequestBodyEncryptionAlgorithmEnum added in v0.0.60

func GetEncryptDataRequestBodyEncryptionAlgorithmEnum() EncryptDataRequestBodyEncryptionAlgorithmEnum

type EncryptDataResponse

type EncryptDataResponse struct {
	KeyId *string `json:"key_id,omitempty"`

	CipherText     *string `json:"cipher_text,omitempty"`
	HttpStatusCode int     `json:"-"`
}

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 {
	KeyId *string `json:"key_id,omitempty"`

	EncryptionContext *interface{} `json:"encryption_context,omitempty"`

	PlainText *string `json:"plain_text,omitempty"`

	DatakeyPlainLength *string `json:"datakey_plain_length,omitempty"`

	Sequence *string `json:"sequence,omitempty"`
}

func (EncryptDatakeyRequestBody) String

func (o EncryptDatakeyRequestBody) String() string

type EncryptDatakeyResponse

type EncryptDatakeyResponse struct {
	KeyId *string `json:"key_id,omitempty"`

	CipherText *string `json:"cipher_text,omitempty"`

	DatakeyLength  *string `json:"datakey_length,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (EncryptDatakeyResponse) String

func (o EncryptDatakeyResponse) String() string

type GenRandomRequestBody

type GenRandomRequestBody struct {
	RandomDataLength *string `json:"random_data_length,omitempty"`

	Sequence *string `json:"sequence,omitempty"`
}

func (GenRandomRequestBody) String

func (o GenRandomRequestBody) String() string

type GetParametersForImportRequestBody

type GetParametersForImportRequestBody struct {
	KeyId *string `json:"key_id,omitempty"`

	WrappingAlgorithm *GetParametersForImportRequestBodyWrappingAlgorithm `json:"wrapping_algorithm,omitempty"`

	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 {
	KeyId *string `json:"key_id,omitempty"`

	GrantId *string `json:"grant_id,omitempty"`

	GranteePrincipal *string `json:"grantee_principal,omitempty"`

	GranteePrincipalType *GrantsGranteePrincipalType `json:"grantee_principal_type,omitempty"`

	Operations *[]string `json:"operations,omitempty"`

	IssuingPrincipal *string `json:"issuing_principal,omitempty"`

	CreationDate *string `json:"creation_date,omitempty"`

	Name *string `json:"name,omitempty"`

	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 {
	KeyId *string `json:"key_id,omitempty"`

	ImportToken *string `json:"import_token,omitempty"`

	EncryptedKeyMaterial *string `json:"encrypted_key_material,omitempty"`

	ExpirationTime *int64 `json:"expiration_time,omitempty"`

	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 {
	KeyId *string `json:"key_id,omitempty"`

	DomainId *string `json:"domain_id,omitempty"`
}

func (KeKInfo) String

func (o KeKInfo) String() string

type KeyAliasInfo

type KeyAliasInfo struct {
	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 {
	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 {
	KeyId *string `json:"key_id,omitempty"`

	DomainId *string `json:"domain_id,omitempty"`

	KeyAlias *string `json:"key_alias,omitempty"`

	Realm *string `json:"realm,omitempty"`

	KeySpec *KeyDetailsKeySpec `json:"key_spec,omitempty"`

	KeyUsage *KeyDetailsKeyUsage `json:"key_usage,omitempty"`

	KeyDescription *string `json:"key_description,omitempty"`

	CreationDate *string `json:"creation_date,omitempty"`

	ScheduledDeletionDate *string `json:"scheduled_deletion_date,omitempty"`

	KeyState *string `json:"key_state,omitempty"`

	DefaultKeyFlag *string `json:"default_key_flag,omitempty"`

	KeyType *string `json:"key_type,omitempty"`

	ExpirationTime *string `json:"expiration_time,omitempty"`

	Origin *KeyDetailsOrigin `json:"origin,omitempty"`

	KeyRotationEnabled *string `json:"key_rotation_enabled,omitempty"`

	SysEnterpriseProjectId *string `json:"sys_enterprise_project_id,omitempty"`
}

func (KeyDetails) String

func (o KeyDetails) String() string

type KeyDetailsKeySpec added in v0.0.60

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

func (KeyDetailsKeySpec) MarshalJSON added in v0.0.60

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

func (*KeyDetailsKeySpec) UnmarshalJSON added in v0.0.60

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

type KeyDetailsKeySpecEnum added in v0.0.60

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 added in v0.0.60

func GetKeyDetailsKeySpecEnum() KeyDetailsKeySpecEnum

type KeyDetailsKeyUsage added in v0.0.60

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

func (KeyDetailsKeyUsage) MarshalJSON added in v0.0.60

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

func (*KeyDetailsKeyUsage) UnmarshalJSON added in v0.0.60

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

type KeyDetailsKeyUsageEnum added in v0.0.60

type KeyDetailsKeyUsageEnum struct {
	ENCRYPT_DECRYPT KeyDetailsKeyUsage
	SIGN_VERIFY     KeyDetailsKeyUsage
}

func GetKeyDetailsKeyUsageEnum added in v0.0.60

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

type KeyDetailsOriginEnum

type KeyDetailsOriginEnum struct {
	KMS      KeyDetailsOrigin
	EXTERNAL KeyDetailsOrigin
}

func GetKeyDetailsOriginEnum

func GetKeyDetailsOriginEnum() KeyDetailsOriginEnum

type KeyStatusInfo

type KeyStatusInfo struct {
	KeyId *string `json:"key_id,omitempty"`

	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 {
	KeyId *string `json:"key_id,omitempty"`

	Limit *string `json:"limit,omitempty"`

	Marker *string `json:"marker,omitempty"`

	Sequence *string `json:"sequence,omitempty"`
}

func (ListGrantsRequestBody) String

func (o ListGrantsRequestBody) String() string

type ListGrantsResponse

type ListGrantsResponse struct {
	Grants *[]Grants `json:"grants,omitempty"`

	NextMarker *string `json:"next_marker,omitempty"`

	Truncated *ListGrantsResponseTruncated `json:"truncated,omitempty"`

	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

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"`
	HttpStatusCode int         `json:"-"`
}

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 {
	Limit *string `json:"limit,omitempty"`

	Marker *string `json:"marker,omitempty"`

	KeyState *string `json:"key_state,omitempty"`

	KeySpec *ListKeysRequestBodyKeySpec `json:"key_spec,omitempty"`

	Sequence *string `json:"sequence,omitempty"`
}

func (ListKeysRequestBody) String

func (o ListKeysRequestBody) String() string

type ListKeysRequestBodyKeySpec added in v0.0.60

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

func (ListKeysRequestBodyKeySpec) MarshalJSON added in v0.0.60

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

func (*ListKeysRequestBodyKeySpec) UnmarshalJSON added in v0.0.60

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

type ListKeysResponse

type ListKeysResponse struct {
	Keys *[]string `json:"keys,omitempty"`

	KeyDetails *[]KeyDetails `json:"key_details,omitempty"`

	NextMarker *string `json:"next_marker,omitempty"`

	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

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 {
	Limit *string `json:"limit,omitempty"`

	Offset *string `json:"offset,omitempty"`

	Action *string `json:"action,omitempty"`

	Tags *[]Tag `json:"tags,omitempty"`

	Matches *[]TagItem `json:"matches,omitempty"`

	Sequence *string `json:"sequence,omitempty"`
}

func (ListKmsByTagsRequestBody) String

func (o ListKmsByTagsRequestBody) String() string

type ListKmsByTagsResponse

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

Request Object

func (ListKmsTagsRequest) String

func (o ListKmsTagsRequest) String() string

type ListKmsTagsResponse

type ListKmsTagsResponse struct {
	Tags           *[]Tag `json:"tags,omitempty"`
	HttpStatusCode int    `json:"-"`
}

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 {
	Limit *string `json:"limit,omitempty"`

	Marker *string `json:"marker,omitempty"`

	Sequence *string `json:"sequence,omitempty"`
}

func (ListRetirableGrantsRequestBody) String

type ListRetirableGrantsResponse

type ListRetirableGrantsResponse struct {
	Grants *[]Grants `json:"grants,omitempty"`

	NextMarker *string `json:"next_marker,omitempty"`

	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

type ListRetirableGrantsResponseTruncatedEnum

type ListRetirableGrantsResponseTruncatedEnum struct {
	TRUE  ListRetirableGrantsResponseTruncated
	FALSE ListRetirableGrantsResponseTruncated
}

func GetListRetirableGrantsResponseTruncatedEnum

func GetListRetirableGrantsResponseTruncatedEnum() ListRetirableGrantsResponseTruncatedEnum

type ListSecretStageRequest

type ListSecretStageRequest struct {
	SecretId string `json:"secret_id"`

	StageName string `json:"stage_name"`
}

Request Object

func (ListSecretStageRequest) String

func (o ListSecretStageRequest) String() string

type ListSecretStageResponse

type ListSecretStageResponse struct {
	Stage          *Stage `json:"stage,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListSecretStageResponse) String

func (o ListSecretStageResponse) String() string

type ListSecretVersionsRequest

type ListSecretVersionsRequest struct {
	SecretId string `json:"secret_id"`
}

Request Object

func (ListSecretVersionsRequest) String

func (o ListSecretVersionsRequest) String() string

type ListSecretVersionsResponse

type ListSecretVersionsResponse struct {
	VersionMetadatas *[]VersionMetadata `json:"version_metadatas,omitempty"`
	HttpStatusCode   int                `json:"-"`
}

Response Object

func (ListSecretVersionsResponse) String

type ListSecretsRequest

type ListSecretsRequest struct {
	Limit *string `json:"limit,omitempty"`

	Marker *string `json:"marker,omitempty"`
}

Request Object

func (ListSecretsRequest) String

func (o ListSecretsRequest) String() string

type ListSecretsResponse

type ListSecretsResponse struct {
	Secrets *[]Secret `json:"secrets,omitempty"`

	PageInfo       *PageInfo `json:"page_info,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (ListSecretsResponse) String

func (o ListSecretsResponse) String() string

type OperateKeyRequestBody

type OperateKeyRequestBody struct {
	KeyId *string `json:"key_id,omitempty"`

	Sequence *string `json:"sequence,omitempty"`
}

func (OperateKeyRequestBody) String

func (o OperateKeyRequestBody) String() string

type PageInfo

type PageInfo struct {
	NextMarker *string `json:"next_marker,omitempty"`

	PreviousMarker *string `json:"previous_marker,omitempty"`

	CurrentCount *int32 `json:"current_count,omitempty"`
}

分页信息。

func (PageInfo) String

func (o PageInfo) String() string

type Quotas

type Quotas struct {
	Resources *[]Resources `json:"resources,omitempty"`
}

func (Quotas) String

func (o Quotas) String() string

type Resources

type Resources struct {
	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 RestoreSecretRequest

type RestoreSecretRequest struct {
	SecretId string `json:"secret_id"`
}

Request Object

func (RestoreSecretRequest) String

func (o RestoreSecretRequest) String() string

type RestoreSecretResponse

type RestoreSecretResponse struct {
	Secret         *Secret `json:"secret,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (RestoreSecretResponse) String

func (o RestoreSecretResponse) String() string

type RevokeGrantRequestBody

type RevokeGrantRequestBody struct {
	KeyId *string `json:"key_id,omitempty"`

	GrantId *string `json:"grant_id,omitempty"`

	Sequence *string `json:"sequence,omitempty"`
}

func (RevokeGrantRequestBody) String

func (o RevokeGrantRequestBody) String() string

type ScheduleKeyDeletionRequestBody

type ScheduleKeyDeletionRequestBody struct {
	KeyId *string `json:"key_id,omitempty"`

	PendingDays *string `json:"pending_days,omitempty"`

	Sequence *string `json:"sequence,omitempty"`
}

func (ScheduleKeyDeletionRequestBody) String

type Secret

type Secret struct {
	Id *string `json:"id,omitempty"`

	Name *string `json:"name,omitempty"`

	State *string `json:"state,omitempty"`

	KmsKeyId *string `json:"kms_key_id,omitempty"`

	Description *string `json:"description,omitempty"`

	CreateTime *int64 `json:"create_time,omitempty"`

	UpdateTime *int64 `json:"update_time,omitempty"`

	ScheduledDeleteTime *int64 `json:"scheduled_delete_time,omitempty"`
}

凭据对象。

func (Secret) String

func (o Secret) String() 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 {
	KeyRotationEnabled *bool `json:"key_rotation_enabled,omitempty"`

	RotationInterval *int32 `json:"rotation_interval,omitempty"`

	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 {
	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 {
	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 added in v0.0.60

type ShowPublicKeyRequest struct {
	VersionId string `json:"version_id"`

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

Request Object

func (ShowPublicKeyRequest) String added in v0.0.60

func (o ShowPublicKeyRequest) String() string

type ShowPublicKeyResponse added in v0.0.60

type ShowPublicKeyResponse struct {
	KeyId *string `json:"key_id,omitempty"`

	PublicKey      *string `json:"public_key,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowPublicKeyResponse) String added in v0.0.60

func (o ShowPublicKeyResponse) String() string

type ShowSecretRequest

type ShowSecretRequest struct {
	SecretId string `json:"secret_id"`
}

Request Object

func (ShowSecretRequest) String

func (o ShowSecretRequest) String() string

type ShowSecretResponse

type ShowSecretResponse struct {
	Secret         *Secret `json:"secret,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowSecretResponse) String

func (o ShowSecretResponse) String() string

type ShowSecretVersionRequest

type ShowSecretVersionRequest struct {
	SecretId string `json:"secret_id"`

	VersionId string `json:"version_id"`
}

Request Object

func (ShowSecretVersionRequest) String

func (o ShowSecretVersionRequest) String() string

type ShowSecretVersionResponse

type ShowSecretVersionResponse struct {
	Version        *Version `json:"version,omitempty"`
	HttpStatusCode int      `json:"-"`
}

Response Object

func (ShowSecretVersionResponse) String

func (o ShowSecretVersionResponse) 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    *int32 `json:"instance_num,omitempty"`
	HttpStatusCode int    `json:"-"`
}

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"`
	HttpStatusCode int     `json:"-"`
}

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        *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 {
	Versions       *[]ApiVersionDetail `json:"versions,omitempty"`
	HttpStatusCode int                 `json:"-"`
}

Response Object

func (ShowVersionsResponse) String

func (o ShowVersionsResponse) String() string

type SignRequest added in v0.0.60

type SignRequest struct {
	VersionId string `json:"version_id"`

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

Request Object

func (SignRequest) String added in v0.0.60

func (o SignRequest) String() string

type SignRequestBody added in v0.0.60

type SignRequestBody struct {
	KeyId string `json:"key_id"`

	Message string `json:"message"`

	SigningAlgorithm SignRequestBodySigningAlgorithm `json:"signing_algorithm"`

	MessageType *SignRequestBodyMessageType `json:"message_type,omitempty"`

	Sequence *string `json:"sequence,omitempty"`
}

func (SignRequestBody) String added in v0.0.60

func (o SignRequestBody) String() string

type SignRequestBodyMessageType added in v0.0.60

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

func (SignRequestBodyMessageType) MarshalJSON added in v0.0.60

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

func (*SignRequestBodyMessageType) UnmarshalJSON added in v0.0.60

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

type SignRequestBodyMessageTypeEnum added in v0.0.60

type SignRequestBodyMessageTypeEnum struct {
	DIGEST SignRequestBodyMessageType
	RAW    SignRequestBodyMessageType
}

func GetSignRequestBodyMessageTypeEnum added in v0.0.60

func GetSignRequestBodyMessageTypeEnum() SignRequestBodyMessageTypeEnum

type SignRequestBodySigningAlgorithm added in v0.0.60

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

func (SignRequestBodySigningAlgorithm) MarshalJSON added in v0.0.60

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

func (*SignRequestBodySigningAlgorithm) UnmarshalJSON added in v0.0.60

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

type SignRequestBodySigningAlgorithmEnum added in v0.0.60

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 added in v0.0.60

func GetSignRequestBodySigningAlgorithmEnum() SignRequestBodySigningAlgorithmEnum

type SignResponse added in v0.0.60

type SignResponse struct {
	KeyId *string `json:"key_id,omitempty"`

	Signature      *string `json:"signature,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (SignResponse) String added in v0.0.60

func (o SignResponse) String() string

type Stage

type Stage struct {
	Name *string `json:"name,omitempty"`

	UpdateTime *int64 `json:"update_time,omitempty"`

	SecretId *string `json:"secret_id,omitempty"`

	VersionId *string `json:"version_id,omitempty"`
}

凭据状态。

func (Stage) String

func (o Stage) String() string

type Tag

type Tag struct {
	Key *string `json:"key,omitempty"`

	Values *[]string `json:"values,omitempty"`
}

func (Tag) String

func (o Tag) String() string

type TagItem

type TagItem struct {
	Key *string `json:"key,omitempty"`

	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 {
	KeyId *string `json:"key_id,omitempty"`

	KeyAlias *string `json:"key_alias,omitempty"`

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

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

Request Object

func (UpdateKeyDescriptionRequest) String

type UpdateKeyDescriptionRequestBody

type UpdateKeyDescriptionRequestBody struct {
	KeyId *string `json:"key_id,omitempty"`

	KeyDescription *string `json:"key_description,omitempty"`

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

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

Request Object

func (UpdateKeyRotationIntervalRequest) String

type UpdateKeyRotationIntervalRequestBody

type UpdateKeyRotationIntervalRequestBody struct {
	KeyId *string `json:"key_id,omitempty"`

	RotationInterval *int32 `json:"rotation_interval,omitempty"`

	Sequence *string `json:"sequence,omitempty"`
}

func (UpdateKeyRotationIntervalRequestBody) String

type UpdateKeyRotationIntervalResponse

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

Response Object

func (UpdateKeyRotationIntervalResponse) String

type UpdateSecretRequest

type UpdateSecretRequest struct {
	SecretId string `json:"secret_id"`

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

Request Object

func (UpdateSecretRequest) String

func (o UpdateSecretRequest) String() string

type UpdateSecretRequestBody

type UpdateSecretRequestBody struct {
	Name *string `json:"name,omitempty"`

	KmsKeyId *string `json:"kms_key_id,omitempty"`

	Description *string `json:"description,omitempty"`
}

更新凭据对象的元数据信息请求体

func (UpdateSecretRequestBody) String

func (o UpdateSecretRequestBody) String() string

type UpdateSecretResponse

type UpdateSecretResponse struct {
	Secret         *Secret `json:"secret,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (UpdateSecretResponse) String

func (o UpdateSecretResponse) String() string

type UpdateSecretStageRequest

type UpdateSecretStageRequest struct {
	SecretId string `json:"secret_id"`

	StageName string `json:"stage_name"`

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

Request Object

func (UpdateSecretStageRequest) String

func (o UpdateSecretStageRequest) String() string

type UpdateSecretStageRequestBody

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

func (UpdateSecretStageRequestBody) String

type UpdateSecretStageResponse

type UpdateSecretStageResponse struct {
	Stage          *Stage `json:"stage,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (UpdateSecretStageResponse) String

func (o UpdateSecretStageResponse) String() string

type ValidateSignatureRequest added in v0.0.60

type ValidateSignatureRequest struct {
	VersionId string `json:"version_id"`

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

Request Object

func (ValidateSignatureRequest) String added in v0.0.60

func (o ValidateSignatureRequest) String() string

type ValidateSignatureResponse added in v0.0.60

type ValidateSignatureResponse struct {
	KeyId *string `json:"key_id,omitempty"`

	SignatureVaild *bool `json:"signature_vaild,omitempty"`
	HttpStatusCode int   `json:"-"`
}

Response Object

func (ValidateSignatureResponse) String added in v0.0.60

func (o ValidateSignatureResponse) String() string

type VerifyRequestBody added in v0.0.60

type VerifyRequestBody struct {
	KeyId string `json:"key_id"`

	Message string `json:"message"`

	Signature string `json:"signature"`

	SigningAlgorithm VerifyRequestBodySigningAlgorithm `json:"signing_algorithm"`

	MessageType *VerifyRequestBodyMessageType `json:"message_type,omitempty"`

	Sequence *string `json:"sequence,omitempty"`
}

func (VerifyRequestBody) String added in v0.0.60

func (o VerifyRequestBody) String() string

type VerifyRequestBodyMessageType added in v0.0.60

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

func (VerifyRequestBodyMessageType) MarshalJSON added in v0.0.60

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

func (*VerifyRequestBodyMessageType) UnmarshalJSON added in v0.0.60

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

type VerifyRequestBodyMessageTypeEnum added in v0.0.60

type VerifyRequestBodyMessageTypeEnum struct {
	DIGEST VerifyRequestBodyMessageType
	RAW    VerifyRequestBodyMessageType
}

func GetVerifyRequestBodyMessageTypeEnum added in v0.0.60

func GetVerifyRequestBodyMessageTypeEnum() VerifyRequestBodyMessageTypeEnum

type VerifyRequestBodySigningAlgorithm added in v0.0.60

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

func (VerifyRequestBodySigningAlgorithm) MarshalJSON added in v0.0.60

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

func (*VerifyRequestBodySigningAlgorithm) UnmarshalJSON added in v0.0.60

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

type VerifyRequestBodySigningAlgorithmEnum added in v0.0.60

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 added in v0.0.60

func GetVerifyRequestBodySigningAlgorithmEnum() VerifyRequestBodySigningAlgorithmEnum

type Version

type Version struct {
	VersionMetadata *VersionMetadata `json:"version_metadata,omitempty"`

	SecretBinary *string `json:"secret_binary,omitempty"`

	SecretString *string `json:"secret_string,omitempty"`
}

凭据版本。

func (Version) String

func (o Version) String() string

type VersionMetadata

type VersionMetadata struct {
	Id *string `json:"id,omitempty"`

	CreateTime *int64 `json:"create_time,omitempty"`

	KmsKeyId *string `json:"kms_key_id,omitempty"`

	SecretId *string `json:"secret_id,omitempty"`

	VersionStages *[]string `json:"version_stages,omitempty"`
}

凭据版本被标记的状态。

func (VersionMetadata) String

func (o VersionMetadata) String() string

Source Files

Jump to

Keyboard shortcuts

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