models

package
v1.54.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2021 License: Apache-2.0 Imports: 0 Imported by: 10 modules, 9 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppDesc

type AppDesc struct {

	/* 应用的UUID (Optional) */
	AppUuid string `json:"appUuid"`

	/* 应用名称 (Optional) */
	AppName string `json:"appName"`

	/* 应用地址 (Optional) */
	AppAddr string `json:"appAddr"`

	/* 应用上线时间 (Optional) */
	OnlineTime string `json:"onlineTime"`
}

type AppStatistics

type AppStatistics struct {

	/* 应用的UUID (Optional) */
	AppUuid string `json:"appUuid"`

	/* 应用地址 (Optional) */
	AppAddr string `json:"appAddr"`

	/* 加密量 (Optional) */
	EncryptDataCount int `json:"encryptDataCount"`
}

type CategoryDesc

type CategoryDesc struct {

	/* 敏感数据分类ID (Optional) */
	CategoryId int `json:"categoryId"`

	/* 敏感数据分类描述 (Optional) */
	CategoryName string `json:"categoryName"`
}

type CategorySpec

type CategorySpec struct {

	/* 敏感数据分类名称 (Optional) */
	CategoryName *string `json:"categoryName"`
}

type DataSourceDesc

type DataSourceDesc struct {

	/* 数据源ID (Optional) */
	DataSourceId string `json:"dataSourceId"`

	/* 数据源类型: 1->MySQL (Optional) */
	DataSourceType int `json:"dataSourceType"`

	/* 数据源名称 (Optional) */
	DataSourceName string `json:"dataSourceName"`

	/* 数据源地址,域名或IP (Optional) */
	DataSourceAddr string `json:"dataSourceAddr"`

	/* 数据源端口 (Optional) */
	DataSourcePort int `json:"dataSourcePort"`

	/* 数据源数据库名称 (Optional) */
	DataSourceDbName string `json:"dataSourceDbName"`

	/* 区域 (Optional) */
	Region string `json:"region"`

	/* VPC ID (Optional) */
	VpcId string `json:"vpcId"`

	/* Subnet ID (Optional) */
	SubnetId string `json:"subnetId"`

	/* 防护状态: true->已防护,false->未防护 (Optional) */
	ProtectStatus bool `json:"protectStatus"`

	/* KMS 密钥ID (Optional) */
	KmsKeyId string `json:"kmsKeyId"`

	/* 数据密钥密文 (Optional) */
	KeyCipher string `json:"keyCipher"`

	/* 加密算法,AES256/SM4 (Optional) */
	EncryptAlgo string `json:"encryptAlgo"`

	/* 索引算法,SHA256/SM3 (Optional) */
	IndexAlgo string `json:"indexAlgo"`
}

type DataSourceSpec

type DataSourceSpec struct {

	/* 数据源名称  */
	DataSourceName string `json:"dataSourceName"`

	/* 数据源类型: 1->MySQL  */
	DataSourceType int `json:"dataSourceType"`

	/* VPC ID  */
	VpcId string `json:"vpcId"`

	/* Subnet Id  */
	SubnetId string `json:"subnetId"`

	/* 数据源地址  */
	DataSourceAddr string `json:"dataSourceAddr"`

	/* 数据源端口  */
	DataSourcePort int `json:"dataSourcePort"`

	/* 数据源数据库名称  */
	DataSourceDbName string `json:"dataSourceDbName"`

	/* KMS 密钥ID  */
	KmsKeyId string `json:"kmsKeyId"`

	/* 数据密钥密文  */
	KeyCipher string `json:"keyCipher"`

	/* 加密算法,AES256/SM4  */
	EncryptAlgo string `json:"encryptAlgo"`

	/* 索引算法,SHA256/SM3  */
	IndexAlgo string `json:"indexAlgo"`
}

type DataSourceTrendItem

type DataSourceTrendItem struct {

	/* 时间戳 (Optional) */
	TimeStamp int `json:"timeStamp"`

	/* 受保护的数据源数量 (Optional) */
	ProtectDataSourceCount int `json:"protectDataSourceCount"`

	/* 总的数据源数量 (Optional) */
	TotalDataSourceCount int `json:"totalDataSourceCount"`
}

type DataTypeDesc

type DataTypeDesc struct {

	/* 敏感数据类型ID (Optional) */
	TypeId string `json:"typeId"`

	/* 敏感数据类型名称 (Optional) */
	TypeName string `json:"typeName"`

	/* 敏感数据分级标记 (Optional) */
	LevelTag string `json:"levelTag"`
}

type DataTypeSpec

type DataTypeSpec struct {

	/* 敏感数据类型名称 (Optional) */
	TypeName *string `json:"typeName"`

	/* 敏感数据分级ID (Optional) */
	LevelId *int `json:"levelId"`
}

type EncryptTrendItem

type EncryptTrendItem struct {

	/* 时间戳 (Optional) */
	TimeStamp int `json:"timeStamp"`

	/* 加密数据量 (Optional) */
	EncryptDataCount int `json:"encryptDataCount"`
}

type FieldDesc

type FieldDesc struct {

	/* 字段名称 (Optional) */
	FieldName string `json:"fieldName"`

	/* 字段类型,如 varchar (Optional) */
	FieldType int `json:"fieldType"`

	/* 字段长度,如 11 (Optional) */
	FieldLength int `json:"fieldLength"`

	/* 字段属性 (Optional) */
	FieldAttr string `json:"fieldAttr"`

	/* 字段描述 (Optional) */
	FieldComment string `json:"fieldComment"`

	/* 加密字段 (Optional) */
	EncryptField string `json:"encryptField"`

	/* 索引字段 (Optional) */
	IndexField string `json:"indexField"`

	/* 是否保留明文字段 (Optional) */
	KeepPlainText bool `json:"keepPlainText"`

	/* 敏感数据标记 (Optional) */
	FieldTag string `json:"fieldTag"`

	/* 敏感数据等级 (Optional) */
	FieldLevel string `json:"fieldLevel"`
}

type FieldSpec

type FieldSpec struct {

	/* 字段名称  */
	FieldName string `json:"fieldName"`

	/* 加密字段  */
	EncryptField string `json:"encryptField"`

	/* 索引字段  */
	IndexField string `json:"indexField"`

	/* 是否保留明文字段,true:保留明文字段  */
	KeepPlainText bool `json:"keepPlainText"`
}

type FieldTagDesc

type FieldTagDesc struct {

	/* 敏感数据级别 (Optional) */
	LevelTag string `json:"levelTag"`

	/* 敏感数据类型名称 (Optional) */
	TypeName string `json:"typeName"`

	/* 敏感数据类型ID (Optional) */
	TypeId string `json:"typeId"`
}

type FieldTagSpec

type FieldTagSpec struct {

	/* 敏感数据类型ID (Optional) */
	TypeId *string `json:"typeId"`
}

type InstanceDesc

type InstanceDesc struct {

	/* 实例ID (Optional) */
	InstanceId string `json:"instanceId"`

	/* 实例名称 (Optional) */
	InstanceName string `json:"instanceName"`

	/* 实例类型-规格 1->网关版本, 2->插件版本 (Optional) */
	InstanceType int `json:"instanceType"`

	/* 区域 (Optional) */
	InsRegion string `json:"insRegion"`

	/* 可用区 (Optional) */
	InsZone string `json:"insZone"`

	/* 是否为透传模式 (Optional) */
	IsBypass bool `json:"isBypass"`

	/* 实例运行状态: 1->创建中, 2->运行中, 3->欠费停服 (Optional) */
	Status int `json:"status"`

	/* 保护的数据源ID (Optional) */
	DataSourceId string `json:"dataSourceId"`

	/* 创建时间 (Optional) */
	CreateTime string `json:"createTime"`

	/* 更新时间 (Optional) */
	UpdateTime string `json:"updateTime"`

	/* 域名(网关版本) (Optional) */
	Domain string `json:"domain"`

	/* AccessKey (Optional) */
	AccessKey string `json:"accessKey"`

	/* SecretKey (Optional) */
	SecretKey string `json:"secretKey"`
}

type InstanceSpec

type InstanceSpec struct {

	/* 实例名称,长度限制32字节,允许英文字母,数字,下划线,中划线和中文  */
	InstanceName string `json:"instanceName"`

	/* 实例类型-规格 1->网关版本, 2->插件版本  */
	InstanceType int `json:"instanceType"`

	/* 实例副本数量  */
	Replicas int `json:"replicas"`

	/* 数据源ID  */
	DataSourceId string `json:"dataSourceId"`

	/* AccessKey  */
	AccessKey string `json:"accessKey"`

	/* SecretKey  */
	SecretKey string `json:"secretKey"`
}

type KmsSpec

type KmsSpec struct {

	/* KMS 密钥ID  */
	KmsKeyId string `json:"kmsKeyId"`

	/* 数据密钥密文  */
	KeyCipher string `json:"keyCipher"`

	/* 加密算法,AES256/SM4  */
	EncryptAlgo string `json:"encryptAlgo"`

	/* 索引算法,SHA256/SM3  */
	IndexAlgo string `json:"indexAlgo"`
}

type LevelSpec

type LevelSpec struct {

	/* 敏感数据等级
	1. 值越大,敏感等级越高
	2. 最小值为0
	 (Optional) */
	LevelId *int `json:"levelId"`

	/* 敏感数据标签 (Optional) */
	LevelTag *string `json:"levelTag"`

	/* 敏感数据描述 (Optional) */
	LevelDesc *string `json:"levelDesc"`
}

type OrderVo

type OrderVo struct {

	/* 付费类型 NEW - 新购  RESIZE_FORMULA - 变配 (Optional) */
	OrderType string `json:"orderType"`

	/* 需要变配的资源ID(变配必传) (Optional) */
	SourceId string `json:"sourceId"`

	/* 购买时长类型, 新购时必传.
	MONTH: 按月购买
	YEAR: 按年购买
	 (Optional) */
	TimeUnit string `json:"timeUnit"`

	/* 购买时长, 新购时必传.
	timeUnit = MONTH 时, 可取值 1-9
	timeUnit = YEAR 时, 可取值 1-3
	 (Optional) */
	TimeSpan int `json:"timeSpan"`

	/* 打包标识,组合购使用,可以为空 (Optional) */
	TaskId string `json:"taskId"`

	/* OPEN-开通自动续费,CLOSE-关闭自动续费,默认关闭
	开通自动续费时,renewTimeUnit,renewTimeSpan为必选项
	 (Optional) */
	AutoRenew string `json:"autoRenew"`

	/* 自动续费时间单位(MONTH-月,YEAR-年) (Optional) */
	RenewTimeUnit string `json:"renewTimeUnit"`

	/* 自动续费时长
	1. renewTimeUnit=MONTH 时,取值范围 [1,9]
	2. renewTimeUnit=YEAR 时,取值范围 [1,3]
	 (Optional) */
	RenewTimeSpan int `json:"renewTimeSpan"`

	/* 自动支付标识(SDK下单自动付费时设置为true) (Optional) */
	AutoPay bool `json:"autoPay"`
}

type PackageDetail

type PackageDetail struct {

	/* 资源ID (Optional) */
	ResourceId string `json:"resourceId"`

	/* 资源名称 (Optional) */
	ResourceName string `json:"resourceName"`

	/* Remark (Optional) */
	Remark string `json:"remark"`
}

type PackageSpec

type PackageSpec struct {

	/* 套餐类型: 1->标准版, 2->企业版  */
	PkgType int `json:"pkgType"`

	/* 数据源数量  */
	DsCount int `json:"dsCount"`

	/* 订单相关信息  */
	OrderVo OrderVo `json:"orderVo"`
}

Jump to

Keyboard shortcuts

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