v20200507

package
v1.0.798 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// 内部错误。
	INTERNALERROR = "InternalError"

	// 参数错误。
	INVALIDPARAMETER = "InvalidParameter"

	// 资源被占用。
	RESOURCEINUSE = "ResourceInUse"

	// 资源不存在。
	RESOURCENOTFOUND = "ResourceNotFound"

	// 未授权操作。
	UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
)
View Source
const APIVersion = "2020-05-07"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	common.Client
}

func NewClient

func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error)

func NewClientWithSecretId

func NewClientWithSecretId(secretId, secretKey, region string) (client *Client, err error)

Deprecated

func (*Client) CopyCryptoColumnPolicy

func (c *Client) CopyCryptoColumnPolicy(request *CopyCryptoColumnPolicyRequest) (response *CopyCryptoColumnPolicyResponse, err error)

CopyCryptoColumnPolicy 同region下 根据用户输入的CasbId,MetaDataId 复制策略到DstCasbId,MetaDataId中。

场景1:

相同CasbId,不同MetadataId 下策略复制

场景2:

不同Casbid,不同MetaDataId 下策略复制

场景3:

相同CasbId,相同MetaDataId 且 DatabaseName不同 策略复制

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
RESOURCEINUSE = "ResourceInUse"
RESOURCENOTFOUND = "ResourceNotFound"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"

func (*Client) CopyCryptoColumnPolicyWithContext

func (c *Client) CopyCryptoColumnPolicyWithContext(ctx context.Context, request *CopyCryptoColumnPolicyRequest) (response *CopyCryptoColumnPolicyResponse, err error)

CopyCryptoColumnPolicy 同region下 根据用户输入的CasbId,MetaDataId 复制策略到DstCasbId,MetaDataId中。

场景1:

相同CasbId,不同MetadataId 下策略复制

场景2:

不同Casbid,不同MetaDataId 下策略复制

场景3:

相同CasbId,相同MetaDataId 且 DatabaseName不同 策略复制

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
RESOURCEINUSE = "ResourceInUse"
RESOURCENOTFOUND = "ResourceNotFound"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"

type CopyCryptoColumnPolicyRequest

type CopyCryptoColumnPolicyRequest struct {
	*tchttp.BaseRequest

	// 实例Id
	CasbId *string `json:"CasbId,omitnil" name:"CasbId"`

	// 元数据id
	MetaDataId *string `json:"MetaDataId,omitnil" name:"MetaDataId"`

	// 目标实例Id 如果和实例Id相同则为同CasbId下的策略复制
	DstCasbId *string `json:"DstCasbId,omitnil" name:"DstCasbId"`

	// 目标实例Id 如果和[元数据id]相同则为同元数据下的策略复制
	DstMetaDataId *string `json:"DstMetaDataId,omitnil" name:"DstMetaDataId"`

	// 筛选来源数据库的表
	SrcTableFilter []*CryptoCopyColumnPolicyTableFilter `json:"SrcTableFilter,omitnil" name:"SrcTableFilter"`

	// 复制同元数据下的策略,需要填写目标数据库名
	DstDatabaseName *string `json:"DstDatabaseName,omitnil" name:"DstDatabaseName"`
}

func NewCopyCryptoColumnPolicyRequest

func NewCopyCryptoColumnPolicyRequest() (request *CopyCryptoColumnPolicyRequest)

func (*CopyCryptoColumnPolicyRequest) FromJsonString

func (r *CopyCryptoColumnPolicyRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CopyCryptoColumnPolicyRequest) ToJsonString

func (r *CopyCryptoColumnPolicyRequest) ToJsonString() string

type CopyCryptoColumnPolicyRequestParams added in v1.0.426

type CopyCryptoColumnPolicyRequestParams struct {
	// 实例Id
	CasbId *string `json:"CasbId,omitnil" name:"CasbId"`

	// 元数据id
	MetaDataId *string `json:"MetaDataId,omitnil" name:"MetaDataId"`

	// 目标实例Id 如果和实例Id相同则为同CasbId下的策略复制
	DstCasbId *string `json:"DstCasbId,omitnil" name:"DstCasbId"`

	// 目标实例Id 如果和[元数据id]相同则为同元数据下的策略复制
	DstMetaDataId *string `json:"DstMetaDataId,omitnil" name:"DstMetaDataId"`

	// 筛选来源数据库的表
	SrcTableFilter []*CryptoCopyColumnPolicyTableFilter `json:"SrcTableFilter,omitnil" name:"SrcTableFilter"`

	// 复制同元数据下的策略,需要填写目标数据库名
	DstDatabaseName *string `json:"DstDatabaseName,omitnil" name:"DstDatabaseName"`
}

Predefined struct for user

type CopyCryptoColumnPolicyResponse

type CopyCryptoColumnPolicyResponse struct {
	*tchttp.BaseResponse
	Response *CopyCryptoColumnPolicyResponseParams `json:"Response"`
}

func NewCopyCryptoColumnPolicyResponse

func NewCopyCryptoColumnPolicyResponse() (response *CopyCryptoColumnPolicyResponse)

func (*CopyCryptoColumnPolicyResponse) FromJsonString

func (r *CopyCryptoColumnPolicyResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CopyCryptoColumnPolicyResponse) ToJsonString

func (r *CopyCryptoColumnPolicyResponse) ToJsonString() string

type CopyCryptoColumnPolicyResponseParams added in v1.0.426

type CopyCryptoColumnPolicyResponseParams struct {
	// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil" name:"RequestId"`
}

Predefined struct for user

type CryptoCopyColumnPolicyTableFilter

type CryptoCopyColumnPolicyTableFilter struct {
	// 数据库名称
	DatabaseName *string `json:"DatabaseName,omitnil" name:"DatabaseName"`

	// 表名称
	TableNameSet []*string `json:"TableNameSet,omitnil" name:"TableNameSet"`
}

Jump to

Keyboard shortcuts

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