apis

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2019 License: Apache-2.0 Imports: 2 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CancelKeyDeletionRequest

type CancelKeyDeletionRequest struct {
	core.JDCloudRequest

	/* 密钥ID  */
	KeyId string `json:"keyId"`
}

func NewCancelKeyDeletionRequest

func NewCancelKeyDeletionRequest(
	keyId string,
) *CancelKeyDeletionRequest

* param keyId: 密钥ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewCancelKeyDeletionRequestWithAllParams

func NewCancelKeyDeletionRequestWithAllParams(
	keyId string,
) *CancelKeyDeletionRequest

* param keyId: 密钥ID (Required)

func NewCancelKeyDeletionRequestWithoutParam

func NewCancelKeyDeletionRequestWithoutParam() *CancelKeyDeletionRequest

This constructor has better compatible ability when API parameters changed

func (CancelKeyDeletionRequest) GetRegionId

func (r CancelKeyDeletionRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*CancelKeyDeletionRequest) SetKeyId

func (r *CancelKeyDeletionRequest) SetKeyId(keyId string)

param keyId: 密钥ID(Required)

type CancelKeyDeletionResponse

type CancelKeyDeletionResponse struct {
	RequestID string                  `json:"requestId"`
	Error     core.ErrorResponse      `json:"error"`
	Result    CancelKeyDeletionResult `json:"result"`
}

type CancelKeyDeletionResult

type CancelKeyDeletionResult struct {
}

type CancelKeyVersionDeletionRequest

type CancelKeyVersionDeletionRequest struct {
	core.JDCloudRequest

	/* 密钥ID  */
	KeyId string `json:"keyId"`

	/* 密钥版本  */
	Version string `json:"version"`
}

func NewCancelKeyVersionDeletionRequest

func NewCancelKeyVersionDeletionRequest(
	keyId string,
	version string,
) *CancelKeyVersionDeletionRequest

* param keyId: 密钥ID (Required) * param version: 密钥版本 (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewCancelKeyVersionDeletionRequestWithAllParams

func NewCancelKeyVersionDeletionRequestWithAllParams(
	keyId string,
	version string,
) *CancelKeyVersionDeletionRequest

* param keyId: 密钥ID (Required) * param version: 密钥版本 (Required)

func NewCancelKeyVersionDeletionRequestWithoutParam

func NewCancelKeyVersionDeletionRequestWithoutParam() *CancelKeyVersionDeletionRequest

This constructor has better compatible ability when API parameters changed

func (CancelKeyVersionDeletionRequest) GetRegionId

func (r CancelKeyVersionDeletionRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*CancelKeyVersionDeletionRequest) SetKeyId

func (r *CancelKeyVersionDeletionRequest) SetKeyId(keyId string)

param keyId: 密钥ID(Required)

func (*CancelKeyVersionDeletionRequest) SetVersion

func (r *CancelKeyVersionDeletionRequest) SetVersion(version string)

param version: 密钥版本(Required)

type CancelKeyVersionDeletionResponse

type CancelKeyVersionDeletionResponse struct {
	RequestID string                         `json:"requestId"`
	Error     core.ErrorResponse             `json:"error"`
	Result    CancelKeyVersionDeletionResult `json:"result"`
}

type CancelKeyVersionDeletionResult

type CancelKeyVersionDeletionResult struct {
}

type CreateKeyRequest

type CreateKeyRequest struct {
	core.JDCloudRequest

	/*   */
	KeyCfg *kms.KeyCfg `json:"keyCfg"`
}

func NewCreateKeyRequest

func NewCreateKeyRequest(
	keyCfg *kms.KeyCfg,
) *CreateKeyRequest

* param keyCfg: (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewCreateKeyRequestWithAllParams

func NewCreateKeyRequestWithAllParams(
	keyCfg *kms.KeyCfg,
) *CreateKeyRequest

* param keyCfg: (Required)

func NewCreateKeyRequestWithoutParam

func NewCreateKeyRequestWithoutParam() *CreateKeyRequest

This constructor has better compatible ability when API parameters changed

func (CreateKeyRequest) GetRegionId

func (r CreateKeyRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*CreateKeyRequest) SetKeyCfg

func (r *CreateKeyRequest) SetKeyCfg(keyCfg *kms.KeyCfg)

param keyCfg: (Required)

type CreateKeyResponse

type CreateKeyResponse struct {
	RequestID string             `json:"requestId"`
	Error     core.ErrorResponse `json:"error"`
	Result    CreateKeyResult    `json:"result"`
}

type CreateKeyResult

type CreateKeyResult struct {
	KeyId string `json:"keyId"`
}

type CreateSecretRequest

type CreateSecretRequest struct {
	core.JDCloudRequest

	/*   */
	SecretCfg *kms.SecretCfg `json:"secretCfg"`
}

func NewCreateSecretRequest

func NewCreateSecretRequest(
	secretCfg *kms.SecretCfg,
) *CreateSecretRequest

* param secretCfg: (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewCreateSecretRequestWithAllParams

func NewCreateSecretRequestWithAllParams(
	secretCfg *kms.SecretCfg,
) *CreateSecretRequest

* param secretCfg: (Required)

func NewCreateSecretRequestWithoutParam

func NewCreateSecretRequestWithoutParam() *CreateSecretRequest

This constructor has better compatible ability when API parameters changed

func (CreateSecretRequest) GetRegionId

func (r CreateSecretRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*CreateSecretRequest) SetSecretCfg

func (r *CreateSecretRequest) SetSecretCfg(secretCfg *kms.SecretCfg)

param secretCfg: (Required)

type CreateSecretResponse

type CreateSecretResponse struct {
	RequestID string             `json:"requestId"`
	Error     core.ErrorResponse `json:"error"`
	Result    CreateSecretResult `json:"result"`
}

type CreateSecretResult

type CreateSecretResult struct {
	SecretId string `json:"secretId"`
}

type CreateSecretVersionRequest

type CreateSecretVersionRequest struct {
	core.JDCloudRequest

	/* 机密ID  */
	SecretId string `json:"secretId"`

	/*   */
	SecretVersionCfg *kms.SecretVersionCfg `json:"secretVersionCfg"`
}

func NewCreateSecretVersionRequest

func NewCreateSecretVersionRequest(
	secretId string,
	secretVersionCfg *kms.SecretVersionCfg,
) *CreateSecretVersionRequest

* param secretId: 机密ID (Required) * param secretVersionCfg: (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewCreateSecretVersionRequestWithAllParams

func NewCreateSecretVersionRequestWithAllParams(
	secretId string,
	secretVersionCfg *kms.SecretVersionCfg,
) *CreateSecretVersionRequest

* param secretId: 机密ID (Required) * param secretVersionCfg: (Required)

func NewCreateSecretVersionRequestWithoutParam

func NewCreateSecretVersionRequestWithoutParam() *CreateSecretVersionRequest

This constructor has better compatible ability when API parameters changed

func (CreateSecretVersionRequest) GetRegionId

func (r CreateSecretVersionRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*CreateSecretVersionRequest) SetSecretId

func (r *CreateSecretVersionRequest) SetSecretId(secretId string)

param secretId: 机密ID(Required)

func (*CreateSecretVersionRequest) SetSecretVersionCfg

func (r *CreateSecretVersionRequest) SetSecretVersionCfg(secretVersionCfg *kms.SecretVersionCfg)

param secretVersionCfg: (Required)

type CreateSecretVersionResponse

type CreateSecretVersionResponse struct {
	RequestID string                    `json:"requestId"`
	Error     core.ErrorResponse        `json:"error"`
	Result    CreateSecretVersionResult `json:"result"`
}

type CreateSecretVersionResult

type CreateSecretVersionResult struct {
}

type DecryptRequest

type DecryptRequest struct {
	core.JDCloudRequest

	/* 密钥ID  */
	KeyId string `json:"keyId"`

	/* 密文数据 Base64-encoded binary data object (Optional) */
	CiphertextBlob *string `json:"ciphertextBlob"`
}

func NewDecryptRequest

func NewDecryptRequest(
	keyId string,
) *DecryptRequest

* param keyId: 密钥ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDecryptRequestWithAllParams

func NewDecryptRequestWithAllParams(
	keyId string,
	ciphertextBlob *string,
) *DecryptRequest

* param keyId: 密钥ID (Required) * param ciphertextBlob: 密文数据 Base64-encoded binary data object (Optional)

func NewDecryptRequestWithoutParam

func NewDecryptRequestWithoutParam() *DecryptRequest

This constructor has better compatible ability when API parameters changed

func (DecryptRequest) GetRegionId

func (r DecryptRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DecryptRequest) SetCiphertextBlob

func (r *DecryptRequest) SetCiphertextBlob(ciphertextBlob string)

param ciphertextBlob: 密文数据 Base64-encoded binary data object(Optional)

func (*DecryptRequest) SetKeyId

func (r *DecryptRequest) SetKeyId(keyId string)

param keyId: 密钥ID(Required)

type DecryptResponse

type DecryptResponse struct {
	RequestID string             `json:"requestId"`
	Error     core.ErrorResponse `json:"error"`
	Result    DecryptResult      `json:"result"`
}

type DecryptResult

type DecryptResult struct {
	Plaintext string `json:"plaintext"`
}

type DeleteSecretRequest

type DeleteSecretRequest struct {
	core.JDCloudRequest

	/* 机密ID  */
	SecretId string `json:"secretId"`
}

func NewDeleteSecretRequest

func NewDeleteSecretRequest(
	secretId string,
) *DeleteSecretRequest

* param secretId: 机密ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDeleteSecretRequestWithAllParams

func NewDeleteSecretRequestWithAllParams(
	secretId string,
) *DeleteSecretRequest

* param secretId: 机密ID (Required)

func NewDeleteSecretRequestWithoutParam

func NewDeleteSecretRequestWithoutParam() *DeleteSecretRequest

This constructor has better compatible ability when API parameters changed

func (DeleteSecretRequest) GetRegionId

func (r DeleteSecretRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DeleteSecretRequest) SetSecretId

func (r *DeleteSecretRequest) SetSecretId(secretId string)

param secretId: 机密ID(Required)

type DeleteSecretResponse

type DeleteSecretResponse struct {
	RequestID string             `json:"requestId"`
	Error     core.ErrorResponse `json:"error"`
	Result    DeleteSecretResult `json:"result"`
}

type DeleteSecretResult

type DeleteSecretResult struct {
}

type DeleteSecretVersionRequest

type DeleteSecretVersionRequest struct {
	core.JDCloudRequest

	/* 机密ID  */
	SecretId string `json:"secretId"`

	/* 机密版本  */
	Version string `json:"version"`
}

func NewDeleteSecretVersionRequest

func NewDeleteSecretVersionRequest(
	secretId string,
	version string,
) *DeleteSecretVersionRequest

* param secretId: 机密ID (Required) * param version: 机密版本 (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDeleteSecretVersionRequestWithAllParams

func NewDeleteSecretVersionRequestWithAllParams(
	secretId string,
	version string,
) *DeleteSecretVersionRequest

* param secretId: 机密ID (Required) * param version: 机密版本 (Required)

func NewDeleteSecretVersionRequestWithoutParam

func NewDeleteSecretVersionRequestWithoutParam() *DeleteSecretVersionRequest

This constructor has better compatible ability when API parameters changed

func (DeleteSecretVersionRequest) GetRegionId

func (r DeleteSecretVersionRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DeleteSecretVersionRequest) SetSecretId

func (r *DeleteSecretVersionRequest) SetSecretId(secretId string)

param secretId: 机密ID(Required)

func (*DeleteSecretVersionRequest) SetVersion

func (r *DeleteSecretVersionRequest) SetVersion(version string)

param version: 机密版本(Required)

type DeleteSecretVersionResponse

type DeleteSecretVersionResponse struct {
	RequestID string                    `json:"requestId"`
	Error     core.ErrorResponse        `json:"error"`
	Result    DeleteSecretVersionResult `json:"result"`
}

type DeleteSecretVersionResult

type DeleteSecretVersionResult struct {
}

type DescribeKeyDetailRequest

type DescribeKeyDetailRequest struct {
	core.JDCloudRequest

	/* 密钥ID  */
	KeyId string `json:"keyId"`

	/* 页码;默认为1 (Optional) */
	PageNumber *int `json:"pageNumber"`

	/* 分页大小;默认为10;取值范围[10, 100] (Optional) */
	PageSize *int `json:"pageSize"`
}

func NewDescribeKeyDetailRequest

func NewDescribeKeyDetailRequest(
	keyId string,
) *DescribeKeyDetailRequest

* param keyId: 密钥ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDescribeKeyDetailRequestWithAllParams

func NewDescribeKeyDetailRequestWithAllParams(
	keyId string,
	pageNumber *int,
	pageSize *int,
) *DescribeKeyDetailRequest

* param keyId: 密钥ID (Required) * param pageNumber: 页码;默认为1 (Optional) * param pageSize: 分页大小;默认为10;取值范围[10, 100] (Optional)

func NewDescribeKeyDetailRequestWithoutParam

func NewDescribeKeyDetailRequestWithoutParam() *DescribeKeyDetailRequest

This constructor has better compatible ability when API parameters changed

func (DescribeKeyDetailRequest) GetRegionId

func (r DescribeKeyDetailRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DescribeKeyDetailRequest) SetKeyId

func (r *DescribeKeyDetailRequest) SetKeyId(keyId string)

param keyId: 密钥ID(Required)

func (*DescribeKeyDetailRequest) SetPageNumber

func (r *DescribeKeyDetailRequest) SetPageNumber(pageNumber int)

param pageNumber: 页码;默认为1(Optional)

func (*DescribeKeyDetailRequest) SetPageSize

func (r *DescribeKeyDetailRequest) SetPageSize(pageSize int)

param pageSize: 分页大小;默认为10;取值范围[10, 100](Optional)

type DescribeKeyDetailResponse

type DescribeKeyDetailResponse struct {
	RequestID string                  `json:"requestId"`
	Error     core.ErrorResponse      `json:"error"`
	Result    DescribeKeyDetailResult `json:"result"`
}

type DescribeKeyDetailResult

type DescribeKeyDetailResult struct {
	KeyDetail kms.KeyDetail `json:"keyDetail"`
}

type DescribeKeyListRequest

type DescribeKeyListRequest struct {
	core.JDCloudRequest

	/* 页码;默认为1 (Optional) */
	PageNumber *int `json:"pageNumber"`

	/* 分页大小;默认为10;取值范围[10, 100] (Optional) */
	PageSize *int `json:"pageSize"`
}

func NewDescribeKeyListRequest

func NewDescribeKeyListRequest() *DescribeKeyListRequest

* * @Deprecated, not compatible when mandatory parameters changed

func NewDescribeKeyListRequestWithAllParams

func NewDescribeKeyListRequestWithAllParams(
	pageNumber *int,
	pageSize *int,
) *DescribeKeyListRequest

* param pageNumber: 页码;默认为1 (Optional) * param pageSize: 分页大小;默认为10;取值范围[10, 100] (Optional)

func NewDescribeKeyListRequestWithoutParam

func NewDescribeKeyListRequestWithoutParam() *DescribeKeyListRequest

This constructor has better compatible ability when API parameters changed

func (DescribeKeyListRequest) GetRegionId

func (r DescribeKeyListRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DescribeKeyListRequest) SetPageNumber

func (r *DescribeKeyListRequest) SetPageNumber(pageNumber int)

param pageNumber: 页码;默认为1(Optional)

func (*DescribeKeyListRequest) SetPageSize

func (r *DescribeKeyListRequest) SetPageSize(pageSize int)

param pageSize: 分页大小;默认为10;取值范围[10, 100](Optional)

type DescribeKeyListResponse

type DescribeKeyListResponse struct {
	RequestID string                `json:"requestId"`
	Error     core.ErrorResponse    `json:"error"`
	Result    DescribeKeyListResult `json:"result"`
}

type DescribeKeyListResult

type DescribeKeyListResult struct {
	KeyList    []kms.KeyInfo `json:"keyList"`
	TotalCount int           `json:"totalCount"`
}

type DescribeKeyRequest

type DescribeKeyRequest struct {
	core.JDCloudRequest

	/* 密钥ID  */
	KeyId string `json:"keyId"`
}

func NewDescribeKeyRequest

func NewDescribeKeyRequest(
	keyId string,
) *DescribeKeyRequest

* param keyId: 密钥ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDescribeKeyRequestWithAllParams

func NewDescribeKeyRequestWithAllParams(
	keyId string,
) *DescribeKeyRequest

* param keyId: 密钥ID (Required)

func NewDescribeKeyRequestWithoutParam

func NewDescribeKeyRequestWithoutParam() *DescribeKeyRequest

This constructor has better compatible ability when API parameters changed

func (DescribeKeyRequest) GetRegionId

func (r DescribeKeyRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DescribeKeyRequest) SetKeyId

func (r *DescribeKeyRequest) SetKeyId(keyId string)

param keyId: 密钥ID(Required)

type DescribeKeyResponse

type DescribeKeyResponse struct {
	RequestID string             `json:"requestId"`
	Error     core.ErrorResponse `json:"error"`
	Result    DescribeKeyResult  `json:"result"`
}

type DescribeKeyResult

type DescribeKeyResult struct {
	KeyInfo kms.KeyInfo `json:"keyInfo"`
}

type DescribeSecretListRequest

type DescribeSecretListRequest struct {
	core.JDCloudRequest

	/* 页码;默认为1 (Optional) */
	PageNumber *int `json:"pageNumber"`

	/* 分页大小;默认为10;取值范围[10, 100] (Optional) */
	PageSize *int `json:"pageSize"`
}

func NewDescribeSecretListRequest

func NewDescribeSecretListRequest() *DescribeSecretListRequest

* * @Deprecated, not compatible when mandatory parameters changed

func NewDescribeSecretListRequestWithAllParams

func NewDescribeSecretListRequestWithAllParams(
	pageNumber *int,
	pageSize *int,
) *DescribeSecretListRequest

* param pageNumber: 页码;默认为1 (Optional) * param pageSize: 分页大小;默认为10;取值范围[10, 100] (Optional)

func NewDescribeSecretListRequestWithoutParam

func NewDescribeSecretListRequestWithoutParam() *DescribeSecretListRequest

This constructor has better compatible ability when API parameters changed

func (DescribeSecretListRequest) GetRegionId

func (r DescribeSecretListRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DescribeSecretListRequest) SetPageNumber

func (r *DescribeSecretListRequest) SetPageNumber(pageNumber int)

param pageNumber: 页码;默认为1(Optional)

func (*DescribeSecretListRequest) SetPageSize

func (r *DescribeSecretListRequest) SetPageSize(pageSize int)

param pageSize: 分页大小;默认为10;取值范围[10, 100](Optional)

type DescribeSecretListResponse

type DescribeSecretListResponse struct {
	RequestID string                   `json:"requestId"`
	Error     core.ErrorResponse       `json:"error"`
	Result    DescribeSecretListResult `json:"result"`
}

type DescribeSecretListResult

type DescribeSecretListResult struct {
	SecretList []kms.SecretInfo `json:"secretList"`
	TotalCount int              `json:"totalCount"`
}

type DescribeSecretVersionInfoRequest

type DescribeSecretVersionInfoRequest struct {
	core.JDCloudRequest

	/* 机密ID  */
	SecretId string `json:"secretId"`

	/* 机密版本  */
	Version string `json:"version"`
}

func NewDescribeSecretVersionInfoRequest

func NewDescribeSecretVersionInfoRequest(
	secretId string,
	version string,
) *DescribeSecretVersionInfoRequest

* param secretId: 机密ID (Required) * param version: 机密版本 (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDescribeSecretVersionInfoRequestWithAllParams

func NewDescribeSecretVersionInfoRequestWithAllParams(
	secretId string,
	version string,
) *DescribeSecretVersionInfoRequest

* param secretId: 机密ID (Required) * param version: 机密版本 (Required)

func NewDescribeSecretVersionInfoRequestWithoutParam

func NewDescribeSecretVersionInfoRequestWithoutParam() *DescribeSecretVersionInfoRequest

This constructor has better compatible ability when API parameters changed

func (DescribeSecretVersionInfoRequest) GetRegionId

func (r DescribeSecretVersionInfoRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DescribeSecretVersionInfoRequest) SetSecretId

func (r *DescribeSecretVersionInfoRequest) SetSecretId(secretId string)

param secretId: 机密ID(Required)

func (*DescribeSecretVersionInfoRequest) SetVersion

func (r *DescribeSecretVersionInfoRequest) SetVersion(version string)

param version: 机密版本(Required)

type DescribeSecretVersionInfoResponse

type DescribeSecretVersionInfoResponse struct {
	RequestID string                          `json:"requestId"`
	Error     core.ErrorResponse              `json:"error"`
	Result    DescribeSecretVersionInfoResult `json:"result"`
}

type DescribeSecretVersionInfoResult

type DescribeSecretVersionInfoResult struct {
	SecretVersionItem kms.SecretVersionItem `json:"secretVersionItem"`
}

type DescribeSecretVersionListRequest

type DescribeSecretVersionListRequest struct {
	core.JDCloudRequest

	/* 机密ID  */
	SecretId string `json:"secretId"`

	/* 页码;默认为1 (Optional) */
	PageNumber *int `json:"pageNumber"`

	/* 分页大小;默认为10;取值范围[10, 100] (Optional) */
	PageSize *int `json:"pageSize"`
}

func NewDescribeSecretVersionListRequest

func NewDescribeSecretVersionListRequest(
	secretId string,
) *DescribeSecretVersionListRequest

* param secretId: 机密ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDescribeSecretVersionListRequestWithAllParams

func NewDescribeSecretVersionListRequestWithAllParams(
	secretId string,
	pageNumber *int,
	pageSize *int,
) *DescribeSecretVersionListRequest

* param secretId: 机密ID (Required) * param pageNumber: 页码;默认为1 (Optional) * param pageSize: 分页大小;默认为10;取值范围[10, 100] (Optional)

func NewDescribeSecretVersionListRequestWithoutParam

func NewDescribeSecretVersionListRequestWithoutParam() *DescribeSecretVersionListRequest

This constructor has better compatible ability when API parameters changed

func (DescribeSecretVersionListRequest) GetRegionId

func (r DescribeSecretVersionListRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DescribeSecretVersionListRequest) SetPageNumber

func (r *DescribeSecretVersionListRequest) SetPageNumber(pageNumber int)

param pageNumber: 页码;默认为1(Optional)

func (*DescribeSecretVersionListRequest) SetPageSize

func (r *DescribeSecretVersionListRequest) SetPageSize(pageSize int)

param pageSize: 分页大小;默认为10;取值范围[10, 100](Optional)

func (*DescribeSecretVersionListRequest) SetSecretId

func (r *DescribeSecretVersionListRequest) SetSecretId(secretId string)

param secretId: 机密ID(Required)

type DescribeSecretVersionListResponse

type DescribeSecretVersionListResponse struct {
	RequestID string                          `json:"requestId"`
	Error     core.ErrorResponse              `json:"error"`
	Result    DescribeSecretVersionListResult `json:"result"`
}

type DescribeSecretVersionListResult

type DescribeSecretVersionListResult struct {
	SecretDetail kms.SecretDetail `json:"secretDetail"`
}

type DisableKeyRequest

type DisableKeyRequest struct {
	core.JDCloudRequest

	/* 密钥ID  */
	KeyId string `json:"keyId"`
}

func NewDisableKeyRequest

func NewDisableKeyRequest(
	keyId string,
) *DisableKeyRequest

* param keyId: 密钥ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDisableKeyRequestWithAllParams

func NewDisableKeyRequestWithAllParams(
	keyId string,
) *DisableKeyRequest

* param keyId: 密钥ID (Required)

func NewDisableKeyRequestWithoutParam

func NewDisableKeyRequestWithoutParam() *DisableKeyRequest

This constructor has better compatible ability when API parameters changed

func (DisableKeyRequest) GetRegionId

func (r DisableKeyRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DisableKeyRequest) SetKeyId

func (r *DisableKeyRequest) SetKeyId(keyId string)

param keyId: 密钥ID(Required)

type DisableKeyResponse

type DisableKeyResponse struct {
	RequestID string             `json:"requestId"`
	Error     core.ErrorResponse `json:"error"`
	Result    DisableKeyResult   `json:"result"`
}

type DisableKeyResult

type DisableKeyResult struct {
}

type DisableKeyVersionRequest

type DisableKeyVersionRequest struct {
	core.JDCloudRequest

	/* 密钥ID  */
	KeyId string `json:"keyId"`

	/* 密钥版本  */
	Version string `json:"version"`
}

func NewDisableKeyVersionRequest

func NewDisableKeyVersionRequest(
	keyId string,
	version string,
) *DisableKeyVersionRequest

* param keyId: 密钥ID (Required) * param version: 密钥版本 (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDisableKeyVersionRequestWithAllParams

func NewDisableKeyVersionRequestWithAllParams(
	keyId string,
	version string,
) *DisableKeyVersionRequest

* param keyId: 密钥ID (Required) * param version: 密钥版本 (Required)

func NewDisableKeyVersionRequestWithoutParam

func NewDisableKeyVersionRequestWithoutParam() *DisableKeyVersionRequest

This constructor has better compatible ability when API parameters changed

func (DisableKeyVersionRequest) GetRegionId

func (r DisableKeyVersionRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DisableKeyVersionRequest) SetKeyId

func (r *DisableKeyVersionRequest) SetKeyId(keyId string)

param keyId: 密钥ID(Required)

func (*DisableKeyVersionRequest) SetVersion

func (r *DisableKeyVersionRequest) SetVersion(version string)

param version: 密钥版本(Required)

type DisableKeyVersionResponse

type DisableKeyVersionResponse struct {
	RequestID string                  `json:"requestId"`
	Error     core.ErrorResponse      `json:"error"`
	Result    DisableKeyVersionResult `json:"result"`
}

type DisableKeyVersionResult

type DisableKeyVersionResult struct {
}

type DisableSecretRequest

type DisableSecretRequest struct {
	core.JDCloudRequest

	/* 机密ID  */
	SecretId string `json:"secretId"`
}

func NewDisableSecretRequest

func NewDisableSecretRequest(
	secretId string,
) *DisableSecretRequest

* param secretId: 机密ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDisableSecretRequestWithAllParams

func NewDisableSecretRequestWithAllParams(
	secretId string,
) *DisableSecretRequest

* param secretId: 机密ID (Required)

func NewDisableSecretRequestWithoutParam

func NewDisableSecretRequestWithoutParam() *DisableSecretRequest

This constructor has better compatible ability when API parameters changed

func (DisableSecretRequest) GetRegionId

func (r DisableSecretRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DisableSecretRequest) SetSecretId

func (r *DisableSecretRequest) SetSecretId(secretId string)

param secretId: 机密ID(Required)

type DisableSecretResponse

type DisableSecretResponse struct {
	RequestID string              `json:"requestId"`
	Error     core.ErrorResponse  `json:"error"`
	Result    DisableSecretResult `json:"result"`
}

type DisableSecretResult

type DisableSecretResult struct {
}

type DisableSecretVersionRequest

type DisableSecretVersionRequest struct {
	core.JDCloudRequest

	/* 机密ID  */
	SecretId string `json:"secretId"`

	/* 机密版本  */
	Version string `json:"version"`
}

func NewDisableSecretVersionRequest

func NewDisableSecretVersionRequest(
	secretId string,
	version string,
) *DisableSecretVersionRequest

* param secretId: 机密ID (Required) * param version: 机密版本 (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDisableSecretVersionRequestWithAllParams

func NewDisableSecretVersionRequestWithAllParams(
	secretId string,
	version string,
) *DisableSecretVersionRequest

* param secretId: 机密ID (Required) * param version: 机密版本 (Required)

func NewDisableSecretVersionRequestWithoutParam

func NewDisableSecretVersionRequestWithoutParam() *DisableSecretVersionRequest

This constructor has better compatible ability when API parameters changed

func (DisableSecretVersionRequest) GetRegionId

func (r DisableSecretVersionRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DisableSecretVersionRequest) SetSecretId

func (r *DisableSecretVersionRequest) SetSecretId(secretId string)

param secretId: 机密ID(Required)

func (*DisableSecretVersionRequest) SetVersion

func (r *DisableSecretVersionRequest) SetVersion(version string)

param version: 机密版本(Required)

type DisableSecretVersionResponse

type DisableSecretVersionResponse struct {
	RequestID string                     `json:"requestId"`
	Error     core.ErrorResponse         `json:"error"`
	Result    DisableSecretVersionResult `json:"result"`
}

type DisableSecretVersionResult

type DisableSecretVersionResult struct {
}

type EnableKeyRequest

type EnableKeyRequest struct {
	core.JDCloudRequest

	/* 密钥ID  */
	KeyId string `json:"keyId"`
}

func NewEnableKeyRequest

func NewEnableKeyRequest(
	keyId string,
) *EnableKeyRequest

* param keyId: 密钥ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewEnableKeyRequestWithAllParams

func NewEnableKeyRequestWithAllParams(
	keyId string,
) *EnableKeyRequest

* param keyId: 密钥ID (Required)

func NewEnableKeyRequestWithoutParam

func NewEnableKeyRequestWithoutParam() *EnableKeyRequest

This constructor has better compatible ability when API parameters changed

func (EnableKeyRequest) GetRegionId

func (r EnableKeyRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*EnableKeyRequest) SetKeyId

func (r *EnableKeyRequest) SetKeyId(keyId string)

param keyId: 密钥ID(Required)

type EnableKeyResponse

type EnableKeyResponse struct {
	RequestID string             `json:"requestId"`
	Error     core.ErrorResponse `json:"error"`
	Result    EnableKeyResult    `json:"result"`
}

type EnableKeyResult

type EnableKeyResult struct {
}

type EnableKeyVersionRequest

type EnableKeyVersionRequest struct {
	core.JDCloudRequest

	/* 密钥ID  */
	KeyId string `json:"keyId"`

	/* 密钥版本  */
	Version string `json:"version"`
}

func NewEnableKeyVersionRequest

func NewEnableKeyVersionRequest(
	keyId string,
	version string,
) *EnableKeyVersionRequest

* param keyId: 密钥ID (Required) * param version: 密钥版本 (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewEnableKeyVersionRequestWithAllParams

func NewEnableKeyVersionRequestWithAllParams(
	keyId string,
	version string,
) *EnableKeyVersionRequest

* param keyId: 密钥ID (Required) * param version: 密钥版本 (Required)

func NewEnableKeyVersionRequestWithoutParam

func NewEnableKeyVersionRequestWithoutParam() *EnableKeyVersionRequest

This constructor has better compatible ability when API parameters changed

func (EnableKeyVersionRequest) GetRegionId

func (r EnableKeyVersionRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*EnableKeyVersionRequest) SetKeyId

func (r *EnableKeyVersionRequest) SetKeyId(keyId string)

param keyId: 密钥ID(Required)

func (*EnableKeyVersionRequest) SetVersion

func (r *EnableKeyVersionRequest) SetVersion(version string)

param version: 密钥版本(Required)

type EnableKeyVersionResponse

type EnableKeyVersionResponse struct {
	RequestID string                 `json:"requestId"`
	Error     core.ErrorResponse     `json:"error"`
	Result    EnableKeyVersionResult `json:"result"`
}

type EnableKeyVersionResult

type EnableKeyVersionResult struct {
}

type EnableSecretRequest

type EnableSecretRequest struct {
	core.JDCloudRequest

	/* 机密ID  */
	SecretId string `json:"secretId"`
}

func NewEnableSecretRequest

func NewEnableSecretRequest(
	secretId string,
) *EnableSecretRequest

* param secretId: 机密ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewEnableSecretRequestWithAllParams

func NewEnableSecretRequestWithAllParams(
	secretId string,
) *EnableSecretRequest

* param secretId: 机密ID (Required)

func NewEnableSecretRequestWithoutParam

func NewEnableSecretRequestWithoutParam() *EnableSecretRequest

This constructor has better compatible ability when API parameters changed

func (EnableSecretRequest) GetRegionId

func (r EnableSecretRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*EnableSecretRequest) SetSecretId

func (r *EnableSecretRequest) SetSecretId(secretId string)

param secretId: 机密ID(Required)

type EnableSecretResponse

type EnableSecretResponse struct {
	RequestID string             `json:"requestId"`
	Error     core.ErrorResponse `json:"error"`
	Result    EnableSecretResult `json:"result"`
}

type EnableSecretResult

type EnableSecretResult struct {
}

type EnableSecretVersionRequest

type EnableSecretVersionRequest struct {
	core.JDCloudRequest

	/* 机密ID  */
	SecretId string `json:"secretId"`

	/* 机密版本  */
	Version string `json:"version"`
}

func NewEnableSecretVersionRequest

func NewEnableSecretVersionRequest(
	secretId string,
	version string,
) *EnableSecretVersionRequest

* param secretId: 机密ID (Required) * param version: 机密版本 (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewEnableSecretVersionRequestWithAllParams

func NewEnableSecretVersionRequestWithAllParams(
	secretId string,
	version string,
) *EnableSecretVersionRequest

* param secretId: 机密ID (Required) * param version: 机密版本 (Required)

func NewEnableSecretVersionRequestWithoutParam

func NewEnableSecretVersionRequestWithoutParam() *EnableSecretVersionRequest

This constructor has better compatible ability when API parameters changed

func (EnableSecretVersionRequest) GetRegionId

func (r EnableSecretVersionRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*EnableSecretVersionRequest) SetSecretId

func (r *EnableSecretVersionRequest) SetSecretId(secretId string)

param secretId: 机密ID(Required)

func (*EnableSecretVersionRequest) SetVersion

func (r *EnableSecretVersionRequest) SetVersion(version string)

param version: 机密版本(Required)

type EnableSecretVersionResponse

type EnableSecretVersionResponse struct {
	RequestID string                    `json:"requestId"`
	Error     core.ErrorResponse        `json:"error"`
	Result    EnableSecretVersionResult `json:"result"`
}

type EnableSecretVersionResult

type EnableSecretVersionResult struct {
}

type EncryptRequest

type EncryptRequest struct {
	core.JDCloudRequest

	/* 密钥ID  */
	KeyId string `json:"keyId"`

	/* 明文数据 Base64-encoded binary data object (Optional) */
	Plaintext *string `json:"plaintext"`
}

func NewEncryptRequest

func NewEncryptRequest(
	keyId string,
) *EncryptRequest

* param keyId: 密钥ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewEncryptRequestWithAllParams

func NewEncryptRequestWithAllParams(
	keyId string,
	plaintext *string,
) *EncryptRequest

* param keyId: 密钥ID (Required) * param plaintext: 明文数据 Base64-encoded binary data object (Optional)

func NewEncryptRequestWithoutParam

func NewEncryptRequestWithoutParam() *EncryptRequest

This constructor has better compatible ability when API parameters changed

func (EncryptRequest) GetRegionId

func (r EncryptRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*EncryptRequest) SetKeyId

func (r *EncryptRequest) SetKeyId(keyId string)

param keyId: 密钥ID(Required)

func (*EncryptRequest) SetPlaintext

func (r *EncryptRequest) SetPlaintext(plaintext string)

param plaintext: 明文数据 Base64-encoded binary data object(Optional)

type EncryptResponse

type EncryptResponse struct {
	RequestID string             `json:"requestId"`
	Error     core.ErrorResponse `json:"error"`
	Result    EncryptResult      `json:"result"`
}

type EncryptResult

type EncryptResult struct {
	CiphertextBlob string `json:"ciphertextBlob"`
}

type ExportSecretRequest

type ExportSecretRequest struct {
	core.JDCloudRequest

	/* 机密ID  */
	SecretId string `json:"secretId"`
}

func NewExportSecretRequest

func NewExportSecretRequest(
	secretId string,
) *ExportSecretRequest

* param secretId: 机密ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewExportSecretRequestWithAllParams

func NewExportSecretRequestWithAllParams(
	secretId string,
) *ExportSecretRequest

* param secretId: 机密ID (Required)

func NewExportSecretRequestWithoutParam

func NewExportSecretRequestWithoutParam() *ExportSecretRequest

This constructor has better compatible ability when API parameters changed

func (ExportSecretRequest) GetRegionId

func (r ExportSecretRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*ExportSecretRequest) SetSecretId

func (r *ExportSecretRequest) SetSecretId(secretId string)

param secretId: 机密ID(Required)

type ExportSecretResponse

type ExportSecretResponse struct {
	RequestID string             `json:"requestId"`
	Error     core.ErrorResponse `json:"error"`
	Result    ExportSecretResult `json:"result"`
}

type ExportSecretResult

type ExportSecretResult struct {
	SecretPackage string `json:"secretPackage"`
}

type GenerateDataKeyRequest

type GenerateDataKeyRequest struct {
	core.JDCloudRequest

	/* 密钥ID  */
	KeyId string `json:"keyId"`
}

func NewGenerateDataKeyRequest

func NewGenerateDataKeyRequest(
	keyId string,
) *GenerateDataKeyRequest

* param keyId: 密钥ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewGenerateDataKeyRequestWithAllParams

func NewGenerateDataKeyRequestWithAllParams(
	keyId string,
) *GenerateDataKeyRequest

* param keyId: 密钥ID (Required)

func NewGenerateDataKeyRequestWithoutParam

func NewGenerateDataKeyRequestWithoutParam() *GenerateDataKeyRequest

This constructor has better compatible ability when API parameters changed

func (GenerateDataKeyRequest) GetRegionId

func (r GenerateDataKeyRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*GenerateDataKeyRequest) SetKeyId

func (r *GenerateDataKeyRequest) SetKeyId(keyId string)

param keyId: 密钥ID(Required)

type GenerateDataKeyResponse

type GenerateDataKeyResponse struct {
	RequestID string                `json:"requestId"`
	Error     core.ErrorResponse    `json:"error"`
	Result    GenerateDataKeyResult `json:"result"`
}

type GenerateDataKeyResult

type GenerateDataKeyResult struct {
	Plaintext      string `json:"plaintext"`
	CiphertextBlob string `json:"ciphertextBlob"`
}

type GetPublicKeyRequest added in v1.13.0

type GetPublicKeyRequest struct {
	core.JDCloudRequest

	/* 密钥ID  */
	KeyId string `json:"keyId"`
}

func NewGetPublicKeyRequest added in v1.13.0

func NewGetPublicKeyRequest(
	keyId string,
) *GetPublicKeyRequest

* param keyId: 密钥ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewGetPublicKeyRequestWithAllParams added in v1.13.0

func NewGetPublicKeyRequestWithAllParams(
	keyId string,
) *GetPublicKeyRequest

* param keyId: 密钥ID (Required)

func NewGetPublicKeyRequestWithoutParam added in v1.13.0

func NewGetPublicKeyRequestWithoutParam() *GetPublicKeyRequest

This constructor has better compatible ability when API parameters changed

func (GetPublicKeyRequest) GetRegionId added in v1.13.0

func (r GetPublicKeyRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*GetPublicKeyRequest) SetKeyId added in v1.13.0

func (r *GetPublicKeyRequest) SetKeyId(keyId string)

param keyId: 密钥ID(Required)

type GetPublicKeyResponse added in v1.13.0

type GetPublicKeyResponse struct {
	RequestID string             `json:"requestId"`
	Error     core.ErrorResponse `json:"error"`
	Result    GetPublicKeyResult `json:"result"`
}

type GetPublicKeyResult added in v1.13.0

type GetPublicKeyResult struct {
	PublicKeyBlob string `json:"publicKeyBlob"`
}

type ImportSecretRequest

type ImportSecretRequest struct {
	core.JDCloudRequest

	/* 密钥包的内容 (Optional) */
	SecretPackage *string `json:"secretPackage"`
}

func NewImportSecretRequest

func NewImportSecretRequest() *ImportSecretRequest

* * @Deprecated, not compatible when mandatory parameters changed

func NewImportSecretRequestWithAllParams

func NewImportSecretRequestWithAllParams(
	secretPackage *string,
) *ImportSecretRequest

* param secretPackage: 密钥包的内容 (Optional)

func NewImportSecretRequestWithoutParam

func NewImportSecretRequestWithoutParam() *ImportSecretRequest

This constructor has better compatible ability when API parameters changed

func (ImportSecretRequest) GetRegionId

func (r ImportSecretRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*ImportSecretRequest) SetSecretPackage

func (r *ImportSecretRequest) SetSecretPackage(secretPackage string)

param secretPackage: 密钥包的内容(Optional)

type ImportSecretResponse

type ImportSecretResponse struct {
	RequestID string             `json:"requestId"`
	Error     core.ErrorResponse `json:"error"`
	Result    ImportSecretResult `json:"result"`
}

type ImportSecretResult

type ImportSecretResult struct {
}

type KeyRotationRequest

type KeyRotationRequest struct {
	core.JDCloudRequest

	/* 密钥ID  */
	KeyId string `json:"keyId"`
}

func NewKeyRotationRequest

func NewKeyRotationRequest(
	keyId string,
) *KeyRotationRequest

* param keyId: 密钥ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewKeyRotationRequestWithAllParams

func NewKeyRotationRequestWithAllParams(
	keyId string,
) *KeyRotationRequest

* param keyId: 密钥ID (Required)

func NewKeyRotationRequestWithoutParam

func NewKeyRotationRequestWithoutParam() *KeyRotationRequest

This constructor has better compatible ability when API parameters changed

func (KeyRotationRequest) GetRegionId

func (r KeyRotationRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*KeyRotationRequest) SetKeyId

func (r *KeyRotationRequest) SetKeyId(keyId string)

param keyId: 密钥ID(Required)

type KeyRotationResponse

type KeyRotationResponse struct {
	RequestID string             `json:"requestId"`
	Error     core.ErrorResponse `json:"error"`
	Result    KeyRotationResult  `json:"result"`
}

type KeyRotationResult

type KeyRotationResult struct {
}

type ScheduleKeyDeletionRequest

type ScheduleKeyDeletionRequest struct {
	core.JDCloudRequest

	/* 密钥ID  */
	KeyId string `json:"keyId"`

	/* 延迟删除时间,单位(天),默认为7天;支持时间范围:7~30天 (Optional) */
	DelayDays *int `json:"delayDays"`
}

func NewScheduleKeyDeletionRequest

func NewScheduleKeyDeletionRequest(
	keyId string,
) *ScheduleKeyDeletionRequest

* param keyId: 密钥ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewScheduleKeyDeletionRequestWithAllParams

func NewScheduleKeyDeletionRequestWithAllParams(
	keyId string,
	delayDays *int,
) *ScheduleKeyDeletionRequest

* param keyId: 密钥ID (Required) * param delayDays: 延迟删除时间,单位(天),默认为7天;支持时间范围:7~30天 (Optional)

func NewScheduleKeyDeletionRequestWithoutParam

func NewScheduleKeyDeletionRequestWithoutParam() *ScheduleKeyDeletionRequest

This constructor has better compatible ability when API parameters changed

func (ScheduleKeyDeletionRequest) GetRegionId

func (r ScheduleKeyDeletionRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*ScheduleKeyDeletionRequest) SetDelayDays

func (r *ScheduleKeyDeletionRequest) SetDelayDays(delayDays int)

param delayDays: 延迟删除时间,单位(天),默认为7天;支持时间范围:7~30天(Optional)

func (*ScheduleKeyDeletionRequest) SetKeyId

func (r *ScheduleKeyDeletionRequest) SetKeyId(keyId string)

param keyId: 密钥ID(Required)

type ScheduleKeyDeletionResponse

type ScheduleKeyDeletionResponse struct {
	RequestID string                    `json:"requestId"`
	Error     core.ErrorResponse        `json:"error"`
	Result    ScheduleKeyDeletionResult `json:"result"`
}

type ScheduleKeyDeletionResult

type ScheduleKeyDeletionResult struct {
}

type ScheduleKeyVersionDeletionRequest

type ScheduleKeyVersionDeletionRequest struct {
	core.JDCloudRequest

	/* 密钥ID  */
	KeyId string `json:"keyId"`

	/* 密钥版本  */
	Version string `json:"version"`

	/* 延迟删除时间,单位(天),默认为7天;支持时间范围:7~30天 (Optional) */
	DelayDays *int `json:"delayDays"`
}

func NewScheduleKeyVersionDeletionRequest

func NewScheduleKeyVersionDeletionRequest(
	keyId string,
	version string,
) *ScheduleKeyVersionDeletionRequest

* param keyId: 密钥ID (Required) * param version: 密钥版本 (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewScheduleKeyVersionDeletionRequestWithAllParams

func NewScheduleKeyVersionDeletionRequestWithAllParams(
	keyId string,
	version string,
	delayDays *int,
) *ScheduleKeyVersionDeletionRequest

* param keyId: 密钥ID (Required) * param version: 密钥版本 (Required) * param delayDays: 延迟删除时间,单位(天),默认为7天;支持时间范围:7~30天 (Optional)

func NewScheduleKeyVersionDeletionRequestWithoutParam

func NewScheduleKeyVersionDeletionRequestWithoutParam() *ScheduleKeyVersionDeletionRequest

This constructor has better compatible ability when API parameters changed

func (ScheduleKeyVersionDeletionRequest) GetRegionId

func (r ScheduleKeyVersionDeletionRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*ScheduleKeyVersionDeletionRequest) SetDelayDays

func (r *ScheduleKeyVersionDeletionRequest) SetDelayDays(delayDays int)

param delayDays: 延迟删除时间,单位(天),默认为7天;支持时间范围:7~30天(Optional)

func (*ScheduleKeyVersionDeletionRequest) SetKeyId

func (r *ScheduleKeyVersionDeletionRequest) SetKeyId(keyId string)

param keyId: 密钥ID(Required)

func (*ScheduleKeyVersionDeletionRequest) SetVersion

func (r *ScheduleKeyVersionDeletionRequest) SetVersion(version string)

param version: 密钥版本(Required)

type ScheduleKeyVersionDeletionResponse

type ScheduleKeyVersionDeletionResponse struct {
	RequestID string                           `json:"requestId"`
	Error     core.ErrorResponse               `json:"error"`
	Result    ScheduleKeyVersionDeletionResult `json:"result"`
}

type ScheduleKeyVersionDeletionResult

type ScheduleKeyVersionDeletionResult struct {
}

type SignRequest added in v1.13.0

type SignRequest struct {
	core.JDCloudRequest

	/* 密钥ID  */
	KeyId string `json:"keyId"`

	/* 需要签名的数据 Base64-encoded binary data object (Optional) */
	Plaintext *string `json:"plaintext"`
}

func NewSignRequest added in v1.13.0

func NewSignRequest(
	keyId string,
) *SignRequest

* param keyId: 密钥ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewSignRequestWithAllParams added in v1.13.0

func NewSignRequestWithAllParams(
	keyId string,
	plaintext *string,
) *SignRequest

* param keyId: 密钥ID (Required) * param plaintext: 需要签名的数据 Base64-encoded binary data object (Optional)

func NewSignRequestWithoutParam added in v1.13.0

func NewSignRequestWithoutParam() *SignRequest

This constructor has better compatible ability when API parameters changed

func (SignRequest) GetRegionId added in v1.13.0

func (r SignRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*SignRequest) SetKeyId added in v1.13.0

func (r *SignRequest) SetKeyId(keyId string)

param keyId: 密钥ID(Required)

func (*SignRequest) SetPlaintext added in v1.13.0

func (r *SignRequest) SetPlaintext(plaintext string)

param plaintext: 需要签名的数据 Base64-encoded binary data object(Optional)

type SignResponse added in v1.13.0

type SignResponse struct {
	RequestID string             `json:"requestId"`
	Error     core.ErrorResponse `json:"error"`
	Result    SignResult         `json:"result"`
}

type SignResult added in v1.13.0

type SignResult struct {
	Signature string `json:"signature"`
}

type UpdateKeyDescriptionRequest

type UpdateKeyDescriptionRequest struct {
	core.JDCloudRequest

	/* 密钥ID  */
	KeyId string `json:"keyId"`

	/*   */
	KeyCfg *kms.KeyCfg `json:"keyCfg"`
}

func NewUpdateKeyDescriptionRequest

func NewUpdateKeyDescriptionRequest(
	keyId string,
	keyCfg *kms.KeyCfg,
) *UpdateKeyDescriptionRequest

* param keyId: 密钥ID (Required) * param keyCfg: (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewUpdateKeyDescriptionRequestWithAllParams

func NewUpdateKeyDescriptionRequestWithAllParams(
	keyId string,
	keyCfg *kms.KeyCfg,
) *UpdateKeyDescriptionRequest

* param keyId: 密钥ID (Required) * param keyCfg: (Required)

func NewUpdateKeyDescriptionRequestWithoutParam

func NewUpdateKeyDescriptionRequestWithoutParam() *UpdateKeyDescriptionRequest

This constructor has better compatible ability when API parameters changed

func (UpdateKeyDescriptionRequest) GetRegionId

func (r UpdateKeyDescriptionRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*UpdateKeyDescriptionRequest) SetKeyCfg

func (r *UpdateKeyDescriptionRequest) SetKeyCfg(keyCfg *kms.KeyCfg)

param keyCfg: (Required)

func (*UpdateKeyDescriptionRequest) SetKeyId

func (r *UpdateKeyDescriptionRequest) SetKeyId(keyId string)

param keyId: 密钥ID(Required)

type UpdateKeyDescriptionResponse

type UpdateKeyDescriptionResponse struct {
	RequestID string                     `json:"requestId"`
	Error     core.ErrorResponse         `json:"error"`
	Result    UpdateKeyDescriptionResult `json:"result"`
}

type UpdateKeyDescriptionResult

type UpdateKeyDescriptionResult struct {
}

type UpdateSecretRequest

type UpdateSecretRequest struct {
	core.JDCloudRequest

	/* 机密ID  */
	SecretId string `json:"secretId"`

	/*   */
	SecretDescCfg *kms.SecretDescCfg `json:"secretDescCfg"`
}

func NewUpdateSecretRequest

func NewUpdateSecretRequest(
	secretId string,
	secretDescCfg *kms.SecretDescCfg,
) *UpdateSecretRequest

* param secretId: 机密ID (Required) * param secretDescCfg: (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewUpdateSecretRequestWithAllParams

func NewUpdateSecretRequestWithAllParams(
	secretId string,
	secretDescCfg *kms.SecretDescCfg,
) *UpdateSecretRequest

* param secretId: 机密ID (Required) * param secretDescCfg: (Required)

func NewUpdateSecretRequestWithoutParam

func NewUpdateSecretRequestWithoutParam() *UpdateSecretRequest

This constructor has better compatible ability when API parameters changed

func (UpdateSecretRequest) GetRegionId

func (r UpdateSecretRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*UpdateSecretRequest) SetSecretDescCfg

func (r *UpdateSecretRequest) SetSecretDescCfg(secretDescCfg *kms.SecretDescCfg)

param secretDescCfg: (Required)

func (*UpdateSecretRequest) SetSecretId

func (r *UpdateSecretRequest) SetSecretId(secretId string)

param secretId: 机密ID(Required)

type UpdateSecretResponse

type UpdateSecretResponse struct {
	RequestID string             `json:"requestId"`
	Error     core.ErrorResponse `json:"error"`
	Result    UpdateSecretResult `json:"result"`
}

type UpdateSecretResult

type UpdateSecretResult struct {
}

type UpdateSecretVersionRequest

type UpdateSecretVersionRequest struct {
	core.JDCloudRequest

	/* 机密ID  */
	SecretId string `json:"secretId"`

	/* 机密版本  */
	Version string `json:"version"`

	/*   */
	SecretTimeCfg *kms.SecretTimeCfg `json:"secretTimeCfg"`
}

func NewUpdateSecretVersionRequest

func NewUpdateSecretVersionRequest(
	secretId string,
	version string,
	secretTimeCfg *kms.SecretTimeCfg,
) *UpdateSecretVersionRequest

* param secretId: 机密ID (Required) * param version: 机密版本 (Required) * param secretTimeCfg: (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewUpdateSecretVersionRequestWithAllParams

func NewUpdateSecretVersionRequestWithAllParams(
	secretId string,
	version string,
	secretTimeCfg *kms.SecretTimeCfg,
) *UpdateSecretVersionRequest

* param secretId: 机密ID (Required) * param version: 机密版本 (Required) * param secretTimeCfg: (Required)

func NewUpdateSecretVersionRequestWithoutParam

func NewUpdateSecretVersionRequestWithoutParam() *UpdateSecretVersionRequest

This constructor has better compatible ability when API parameters changed

func (UpdateSecretVersionRequest) GetRegionId

func (r UpdateSecretVersionRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*UpdateSecretVersionRequest) SetSecretId

func (r *UpdateSecretVersionRequest) SetSecretId(secretId string)

param secretId: 机密ID(Required)

func (*UpdateSecretVersionRequest) SetSecretTimeCfg

func (r *UpdateSecretVersionRequest) SetSecretTimeCfg(secretTimeCfg *kms.SecretTimeCfg)

param secretTimeCfg: (Required)

func (*UpdateSecretVersionRequest) SetVersion

func (r *UpdateSecretVersionRequest) SetVersion(version string)

param version: 机密版本(Required)

type UpdateSecretVersionResponse

type UpdateSecretVersionResponse struct {
	RequestID string                    `json:"requestId"`
	Error     core.ErrorResponse        `json:"error"`
	Result    UpdateSecretVersionResult `json:"result"`
}

type UpdateSecretVersionResult

type UpdateSecretVersionResult struct {
}

type ValidateRequest added in v1.13.0

type ValidateRequest struct {
	core.JDCloudRequest

	/* 密钥ID  */
	KeyId string `json:"keyId"`

	/* 需要签名的数据 Base64-encoded binary data object (Optional) */
	Plaintext *string `json:"plaintext"`

	/* 签名 (Optional) */
	Signature *string `json:"signature"`
}

func NewValidateRequest added in v1.13.0

func NewValidateRequest(
	keyId string,
) *ValidateRequest

* param keyId: 密钥ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewValidateRequestWithAllParams added in v1.13.0

func NewValidateRequestWithAllParams(
	keyId string,
	plaintext *string,
	signature *string,
) *ValidateRequest

* param keyId: 密钥ID (Required) * param plaintext: 需要签名的数据 Base64-encoded binary data object (Optional) * param signature: 签名 (Optional)

func NewValidateRequestWithoutParam added in v1.13.0

func NewValidateRequestWithoutParam() *ValidateRequest

This constructor has better compatible ability when API parameters changed

func (ValidateRequest) GetRegionId added in v1.13.0

func (r ValidateRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*ValidateRequest) SetKeyId added in v1.13.0

func (r *ValidateRequest) SetKeyId(keyId string)

param keyId: 密钥ID(Required)

func (*ValidateRequest) SetPlaintext added in v1.13.0

func (r *ValidateRequest) SetPlaintext(plaintext string)

param plaintext: 需要签名的数据 Base64-encoded binary data object(Optional)

func (*ValidateRequest) SetSignature added in v1.13.0

func (r *ValidateRequest) SetSignature(signature string)

param signature: 签名(Optional)

type ValidateResponse added in v1.13.0

type ValidateResponse struct {
	RequestID string             `json:"requestId"`
	Error     core.ErrorResponse `json:"error"`
	Result    ValidateResult     `json:"result"`
}

type ValidateResult added in v1.13.0

type ValidateResult struct {
	Validated bool `json:"validated"`
}

Jump to

Keyboard shortcuts

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