models

package
v1.62.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account added in v1.62.0

type Account struct {

	/* 账号名,账号名的具体规则可参见帮助中心文档:[名称及密码限制](../../../documentation/Database-and-Cache-Service/RDS/Introduction/Restrictions/SQLServer-Restrictions.md) (Optional) */
	AccountName string `json:"accountName"`

	/* 账号状态,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md)<br>- **MySQL:不支持,不返回该字段**<br>- **SQL Server:返回该字段** (Optional) */
	AccountStatus string `json:"accountStatus"`

	/* 账号类型,normal:普通,super:高权限<br>- 仅支持SQL Server (Optional) */
	AccountType string `json:"accountType"`

	/* 创建账号时间,格式为:YYYY-MM-DD HH:mm:ss<br>- 仅支持PostgreSQL (Optional) */
	CreateTime string `json:"createTime"`

	/* 修改账号时间,格式为:YYYY-MM-DD HH:mm:ss<br>- 仅支持PostgreSQL (Optional) */
	UpdateTime string `json:"updateTime"`

	/* 账号备注内容<br>- 仅支持PostgreSQL (Optional) */
	Notes string `json:"notes"`

	/* 具有的权限 (Optional) */
	AccountPrivileges []AccountPrivilege `json:"accountPrivileges"`
}

type AccountPrivilege added in v1.62.0

type AccountPrivilege struct {

	/* 数据库名称,具体规则可参见帮助中心文档:[名称及密码限制](../../../documentation/Database-and-Cache-Service/RDS/Introduction/Restrictions/SQLServer-Restrictions.md) (Optional) */
	DbName *string `json:"dbName"`

	/* 账号对数据库所具有的权限,权限的具体定义可以参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) (Optional) */
	Privilege *string `json:"privilege"`
}

type Application added in v1.52.0

type Application struct {

	/* 应用Id (Optional) */
	Id string `json:"id"`

	/* appTypeId (Optional) */
	TypeId int `json:"typeId"`

	/* 所属区域 (Optional) */
	RegionId string `json:"regionId"`

	/* 应用名称 (Optional) */
	Name string `json:"name"`

	/* 应用描述 (Optional) */
	Description string `json:"description"`

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

	/* jdcloudPin (Optional) */
	JdcloudPin string `json:"jdcloudPin"`
}

type BackupSynchronicityAbstract added in v1.62.0

type BackupSynchronicityAbstract struct {

	/* 跨地域备份同步服务ID (Optional) */
	ServiceId string `json:"serviceId"`

	/* 备份同步的目标地域 (Optional) */
	DestRegion string `json:"destRegion"`
}

type Cluster

type Cluster struct {

	/* id (Optional) */
	Id string `json:"id"`

	/* 实例名称 (Optional) */
	Name string `json:"name"`

	/* 数据中心 (Optional) */
	DataCenter string `json:"dataCenter"`

	/* 域名 (Optional) */
	Domain string `json:"domain"`

	/* 端口号 (Optional) */
	ConnectionPort string `json:"connectionPort"`

	/* 数据库引擎 (Optional) */
	DbEngine string `json:"dbEngine"`

	/* 数据库版本 (Optional) */
	DbVersion string `json:"dbVersion"`
}

type DBAccessPrivilege added in v1.62.0

type DBAccessPrivilege struct {

	/* 账号名称 (Optional) */
	AccountName string `json:"accountName"`

	/* 该账号对数据库具有的权限,权限的具体定义可以参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) (Optional) */
	Privilege string `json:"privilege"`
}

type DBInstance added in v1.52.0

type DBInstance struct {

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

	/* 实例名称,具体规则可参见帮助中心文档:[名称及密码限制](../../../documentation/Database-and-Cache-Service/RDS/Introduction/Restrictions/SQLServer-Restrictions.md) (Optional) */
	InstanceName string `json:"instanceName"`

	/* 实例类别,例如主实例,只读实例等,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) (Optional) */
	InstanceType string `json:"instanceType"`

	/* 实例引擎类型,如MySQL或SQL Server等,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) (Optional) */
	Engine string `json:"engine"`

	/* 实例引擎版本,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) (Optional) */
	EngineVersion string `json:"engineVersion"`

	/* 实例规格代码 (Optional) */
	InstanceClass string `json:"instanceClass"`

	/* 磁盘,单位GB (Optional) */
	InstanceStorageGB int `json:"instanceStorageGB"`

	/* CPU核数 (Optional) */
	InstanceCPU int `json:"instanceCPU"`

	/* 内存,单位MB (Optional) */
	InstanceMemoryMB int `json:"instanceMemoryMB"`

	/* 地域ID,参见[地域及可用区对照表](../Enum-Definitions/Regions-AZ.md) (Optional) */
	RegionId string `json:"regionId"`

	/* 可用区ID,第一个为主实例在的可用区,参见[地域及可用区对照表](../Enum-Definitions/Regions-AZ.md) (Optional) */
	AzId []string `json:"azId"`

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

	/* 子网的ID (Optional) */
	SubnetId string `json:"subnetId"`

	/* 实例状态,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) (Optional) */
	InstanceStatus string `json:"instanceStatus"`

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

	/* 实例跨地域备份服务开启相关信息 (Optional) */
	BackupSynchronicity []BackupSynchronicityAbstract `json:"backupSynchronicity"`

	/* 计费配置 (Optional) */
	Charge charge.Charge `json:"charge"`

	/* 标签信息 (Optional) */
	Tags []Tag `json:"tags"`

	/* MySQL只读实例对应的主实例ID (Optional) */
	SourceInstanceId string `json:"sourceInstanceId"`

	/* vpc名称 (Optional) */
	VpcName string `json:"vpcName"`

	/* DMS登陆数据库链接 (Optional) */
	DbUrl string `json:"dbUrl"`
}

type DBInstanceAttribute added in v1.52.0

type DBInstanceAttribute struct {

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

	/* 实例名称,具体规则可参见帮助中心文档:[名称及密码限制](../../../documentation/Database-and-Cache-Service/RDS/Introduction/Restrictions/SQLServer-Restrictions.md) (Optional) */
	InstanceName string `json:"instanceName"`

	/* 实例类型,例如主实例,只读实例等,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) (Optional) */
	InstanceType string `json:"instanceType"`

	/* 实例引擎类型,如MySQL或SQL Server等,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) (Optional) */
	Engine string `json:"engine"`

	/* 实例引擎版本,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) (Optional) */
	EngineVersion string `json:"engineVersion"`

	/* 实例规格代码 (Optional) */
	InstanceClass string `json:"instanceClass"`

	/* 存储类型,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) (Optional) */
	InstanceStorageType string `json:"instanceStorageType"`

	/* 实例数据加密. false:不加密; true:加密 (Optional) */
	StorageEncrypted bool `json:"storageEncrypted"`

	/* 磁盘,单位GB (Optional) */
	InstanceStorageGB int `json:"instanceStorageGB"`

	/* CPU核数 (Optional) */
	InstanceCPU int `json:"instanceCPU"`

	/* 内存大小,单位MB (Optional) */
	InstanceMemoryMB int `json:"instanceMemoryMB"`

	/* 地域ID,参见[地域及可用区对照表](../Enum-Definitions/Regions-AZ.md) (Optional) */
	RegionId string `json:"regionId"`

	/* 可用区ID,第一个为主实例在的可用区,参见[地域及可用区对照表](../Enum-Definitions/Regions-AZ.md) (Optional) */
	AzId []string `json:"azId"`

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

	/* 子网的ID (Optional) */
	SubnetId string `json:"subnetId"`

	/* 参数组的ID<br>- 仅支持MySQL (Optional) */
	ParameterGroupId string `json:"parameterGroupId"`

	/* 参数组的名称<br>- 仅支持MySQL (Optional) */
	ParameterGroupName string `json:"parameterGroupName"`

	/* 参数的状态,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md)<br>- 仅支持MySQL (Optional) */
	ParameterStatus string `json:"parameterStatus"`

	/* 实例内网域名 (Optional) */
	InternalDomainName string `json:"internalDomainName"`

	/* 实例公网域名 (Optional) */
	PublicDomainName string `json:"publicDomainName"`

	/* 应用访问端口 (Optional) */
	InstancePort string `json:"instancePort"`

	/* 访问模式,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md)<br>- 仅支持MySQL (Optional) */
	ConnectionMode string `json:"connectionMode"`

	/* 审计状态,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md)<br>- 仅支持MySQL (Optional) */
	AuditStatus string `json:"auditStatus"`

	/* 实例状态,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) (Optional) */
	InstanceStatus string `json:"instanceStatus"`

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

	/* 计费配置 (Optional) */
	Charge charge.Charge `json:"charge"`

	/* MySQL只读实例对应的主实例ID<br>- 仅支持MySQL (Optional) */
	SourceInstanceId string `json:"sourceInstanceId"`

	/* 只读实例ID列表<br>- 仅支持MySQL (Optional) */
	RoInstanceIds []string `json:"roInstanceIds"`

	/* 高可用集群中主节点的信息<br>- 仅支持SQL Server (Optional) */
	PrimaryNode DBInstanceNode `json:"primaryNode"`

	/* 高可用集群中从节点的信息<br>- 仅支持SQL Server (Optional) */
	SecondaryNode DBInstanceNode `json:"secondaryNode"`

	/* 标签信息 (Optional) */
	Tags []Tag `json:"tags"`

	/* vpc名称 (Optional) */
	VpcName string `json:"vpcName"`
}

type DBInstanceNode added in v1.62.0

type DBInstanceNode struct {

	/* 节点id (Optional) */
	Id string `json:"id"`

	/* 节点名称 (Optional) */
	Name string `json:"name"`

	/* 节点状态 (Optional) */
	Status string `json:"status"`
}

type Database added in v1.62.0

type Database struct {

	/* 数据库名称,具体规则可参见帮助中心文档:[名称及密码限制](../../../documentation/Database-and-Cache-Service/RDS/Introduction/Restrictions/SQLServer-Restrictions.md) (Optional) */
	DbName string `json:"dbName"`

	/* 数据库状态,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md)<br>- **MySQL:不支持,不返回该字段**<br>- **SQL Server:返回该字段** (Optional) */
	DbStatus string `json:"dbStatus"`

	/* 字符集,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) (Optional) */
	CharacterSetName string `json:"characterSetName"`

	/* 数据库创建时间,格式YYYY-MM-DD HH:mm:ss<br>- 仅支持SQL Server (Optional) */
	CreateTime string `json:"createTime"`

	/* 数据库备注<br>- 仅支持MySQL (Optional) */
	Comment string `json:"comment"`

	/* 该数据库相关账户权限列表 (Optional) */
	AccessPrivilege []DBAccessPrivilege `json:"accessPrivilege"`
}

type Instance added in v1.52.0

type Instance struct {

	/* 云主机ID (Optional) */
	InstanceId string `json:"instanceId"`

	/* 云主机名称 (Optional) */
	InstanceName string `json:"instanceName"`

	/* 实例规格 (Optional) */
	InstanceType string `json:"instanceType"`

	/* 主网卡所属VPC的ID (Optional) */
	VpcId string `json:"vpcId"`

	/* 主网卡所属子网的ID (Optional) */
	SubnetId string `json:"subnetId"`

	/* 主网卡主IP地址 (Optional) */
	PrivateIpAddress string `json:"privateIpAddress"`

	/* 主网卡主IP绑定弹性IP的ID (Optional) */
	ElasticIpId string `json:"elasticIpId"`

	/* 主网卡主IP绑定弹性IP的地址 (Optional) */
	ElasticIpAddress string `json:"elasticIpAddress"`

	/* 云主机状态,<a href="http://docs.jdcloud.com/virtual-machines/api/vm_status">参考云主机状态</a> (Optional) */
	Status string `json:"status"`

	/* 云主机描述 (Optional) */
	Description string `json:"description"`

	/* 镜像ID (Optional) */
	ImageId string `json:"imageId"`

	/* 系统盘配置 (Optional) */
	SystemDisk vm.InstanceDiskAttachment `json:"systemDisk"`

	/* 数据盘配置 (Optional) */
	DataDisks []vm.InstanceDiskAttachment `json:"dataDisks"`

	/* 主网卡配置 (Optional) */
	PrimaryNetworkInterface vm.InstanceNetworkInterfaceAttachment `json:"primaryNetworkInterface"`

	/* 辅助网卡配置 (Optional) */
	SecondaryNetworkInterfaces []vm.InstanceNetworkInterfaceAttachment `json:"secondaryNetworkInterfaces"`

	/* 创建时间 (Optional) */
	LaunchTime string `json:"launchTime"`

	/* 云主机所在可用区 (Optional) */
	Az string `json:"az"`

	/* 密钥对名称 (Optional) */
	KeyNames []string `json:"keyNames"`

	/* 计费信息 (Optional) */
	Charge charge.Charge `json:"charge"`

	/* 高可用组,如果创建云主机使用了高可用组,此处可展示高可用组名称 (Optional) */
	Ag vm.Ag `json:"ag"`

	/* 高可用组中的错误域 (Optional) */
	FaultDomain string `json:"faultDomain"`

	/* Tag信息 (Optional) */
	Tags []disk.Tag `json:"tags"`

	/* vpc名称 (Optional) */
	VpcName string `json:"vpcName"`

	/* 子网名称 (Optional) */
	SubnetName string `json:"subnetName"`

	/* 创建主机所用镜像概览 (Optional) */
	ImageOverview VmImageOverview `json:"imageOverview"`
}

type RdsInstance

type RdsInstance struct {

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

	/* 实例名称,具体规则可参见帮助中心文档:[名称及密码限制](../../../documentation/Database-and-Cache-Service/RDS/Introduction/Restrictions/SQLServer-Restrictions.md) (Optional) */
	InstanceName string `json:"instanceName"`

	/* 实例类别,例如主实例,只读实例等,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) (Optional) */
	InstanceType string `json:"instanceType"`

	/* 实例引擎类型,如MySQL或SQL Server等,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) (Optional) */
	Engine string `json:"engine"`

	/* 实例引擎版本,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) (Optional) */
	EngineVersion string `json:"engineVersion"`

	/* 实例规格代码 (Optional) */
	InstanceClass string `json:"instanceClass"`

	/* 磁盘,单位GB (Optional) */
	InstanceStorageGB int `json:"instanceStorageGB"`

	/* CPU核数 (Optional) */
	InstanceCPU int `json:"instanceCPU"`

	/* 内存,单位MB (Optional) */
	InstanceMemoryMB int `json:"instanceMemoryMB"`

	/* 地域ID,参见[地域及可用区对照表](../Enum-Definitions/Regions-AZ.md) (Optional) */
	RegionId string `json:"regionId"`

	/* 可用区ID,第一个为主实例在的可用区,参见[地域及可用区对照表](../Enum-Definitions/Regions-AZ.md) (Optional) */
	AzId []string `json:"azId"`

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

	/* VPC的name (Optional) */
	VpcName string `json:"vpcName"`

	/* 子网的ID (Optional) */
	SubnetId string `json:"subnetId"`

	/* 实例状态,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) (Optional) */
	InstanceStatus string `json:"instanceStatus"`

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

	/* MySQL只读实例对应的主实例ID (Optional) */
	SourceInstanceId string `json:"sourceInstanceId"`
}

type Tag added in v1.62.0

type Tag struct {

	/* 标签键 (Optional) */
	Key string `json:"key"`

	/* 标签值 (Optional) */
	Value string `json:"value"`
}

type UrlApp added in v1.52.0

type UrlApp struct {

	/* url (Optional) */
	Domain string `json:"domain"`

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

	/* pin (Optional) */
	JdcloudPin string `json:"jdcloudPin"`
}

type VmImageOverview

type VmImageOverview struct {

	/* 镜像名称 (Optional) */
	Name string `json:"name"`

	/* 平台信息 (Optional) */
	Platform string `json:"platform"`
}

type Vpc added in v1.52.0

type Vpc struct {

	/* Vpc的Id (Optional) */
	VpcId string `json:"vpcId"`

	/* 如果为空,则不限制网段,如果不为空,10.0.0.0/8、172.16.0.0/12和192.168.0.0/16及它们包含的子网,且子网掩码长度为16-28之间 (Optional) */
	AddressPrefix string `json:"addressPrefix"`

	/* VPC 描述,取值范围:1~120个字符 (Optional) */
	Description string `json:"description"`

	/* 私有网络名称,取值范围:1-60个中文、英文大小写的字母、数字和下划线分隔符 (Optional) */
	VpcName string `json:"vpcName"`

	/* 同一vpc下的acl id 列表 (Optional) */
	AclIds []string `json:"aclIds"`

	/*  (Optional) */
	RouteTableIds []string `json:"routeTableIds"`

	/* 私有网络包含的子网列表 (Optional) */
	Subnets []vpc.Subnet `json:"subnets"`

	/* vpc创建时间 (Optional) */
	CreatedTime string `json:"createdTime"`

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

	/* 版本 (Optional) */
	Version string `json:"version"`

	/* 所属区域 (Optional) */
	RegionId string `json:"regionId"`

	/* 业务类型:1-无界开放 (Optional) */
	TypeId int `json:"typeId"`

	/* 业务类型名称 (Optional) */
	TypeName int `json:"typeName"`

	/* 应用类型 (Optional) */
	AppType string `json:"appType"`

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

	/* appKey (Optional) */
	AppKey string `json:"appKey"`
}

type WhiteList added in v1.62.0

type WhiteList struct {

	/* 白名单名称 (Optional) */
	Name string `json:"name"`

	/* IP或IP段,不同的IP/IP段之间用英文逗号分隔,例如0.0.0.0/0,192.168.0.10 (Optional) */
	Ips string `json:"ips"`
}

type YdResourceDetail added in v1.62.0

type YdResourceDetail struct {

	/* jdcloudPin  */
	Pin string `json:"pin"`

	/* 云鼎 serviceCode  */
	ServiceCode string `json:"serviceCode"`

	/* 云鼎资源 id  */
	InstanceId string `json:"instanceId"`
}

type YdSnapfee added in v1.59.0

type YdSnapfee struct {

	/* 京东云pin (Optional) */
	JdcloudPin string `json:"jdcloudPin"`

	/* 资源id(计费侧) (Optional) */
	ResourceId string `json:"resourceId"`

	/* 云鼎pin (Optional) */
	YdPin string `json:"ydPin"`

	/* 云鼎资源id(产研侧) (Optional) */
	YdResourceId string `json:"ydResourceId"`
}

type YdSnapfeeState added in v1.59.0

type YdSnapfeeState struct {

	/* 云鼎pin (Optional) */
	YdPin string `json:"ydPin"`

	/* 云鼎资源id(产研侧) (Optional) */
	ResourceId string `json:"resourceId"`

	/* 状态 1:正常,3:欠费停服,4:欠费删除,13:到期停服/退款删除,14:到期删除,24:运营删除,34:用户删除 (Optional) */
	State int `json:"state"`
}

type YdUser added in v1.52.0

type YdUser struct {

	/* 云鼎pin (Optional) */
	YdPin string `json:"ydPin"`

	/* 京东云pin (Optional) */
	JdcloudPin string `json:"jdcloudPin"`

	/* 云鼎pin-子账号pin (Optional) */
	YdSubPin string `json:"ydSubPin"`

	/* 京东云pin-子账号pin (Optional) */
	JdcloudSubPin string `json:"jdcloudSubPin"`
}

Jump to

Keyboard shortcuts

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