mysql

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2025 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EndpointNameCtdas = "mysql"
	UrlPordCtdas      = "rds2-global.ctapi.ctyun.cn"
	UrlTestCtdas      = ""
)

Variables

View Source
var EndPointCtdasProd = ctyunsdk.Endpoint{
	EndpointName: EndpointNameCtdas,
	Url:          UrlPordCtdas,
}
View Source
var EndpointCtdasTest = ctyunsdk.Endpoint{
	EndpointName: EndpointNameCtdas,
	Url:          UrlTestCtdas,
}

Functions

This section is empty.

Types

type Apis

type Apis struct {
	TeledbCreateApi             *TeledbCreateApi
	TeledbUpgradeApi            *TeledbUpgradeApi
	TeledbRefundApi             *TeledbRefundApi
	TeledbDestroyApi            *TeledbDestroyApi
	TeledbQueryDetailApi        *TeledbQueryDetailApi
	TeledbGetListApi            *TeledbGetListApi
	TeledbStartApi              *TeledbStartApi
	TeledbStopApi               *TeledbStopApi
	TeledbRestartApi            *TeledbRestartApi
	TeledbUpdateInstanceNameApi *TeledbUpdateInstanceNameApi
	TeledbUpdateWritePortApi    *TeledbUpdateWritePortApi
	TeledbBindEipApi            *TeledbBindEipApi
	TeledbUnbindEipApi          *TeledbUnbindEipApi
	TeledbBoundEipListApi       *TeledbBoundEipListApi
	TeledbMysqlSpecsApi         *TeledbMysqlSpecsApi
	TeledbCreateAccessWhiteList *TeledbCreateAccessWhiteList
	TeledbUpdateAccessWhiteList *TeledbUpdateAccessWhiteList
	TeledbDeleteAccessWhiteList *TeledbDeleteAccessWhiteList
	TeledbGetAccessWhiteList    *TeledbGetAccessWhiteList
	TeledbGetAvailabilityZone   *TeledbGetAvailabilityZone
}

func NewApis

func NewApis(client *ctyunsdk.CtyunClient) *Apis

type AvailabilityZoneInfo

type AvailabilityZoneInfo struct {
	AvailabilityZoneName  string `json:"availabilityZoneName"`  // 可用区名称
	AvailabilityZoneCount int32  `json:"availabilityZoneCount"` // 可用区数量
}

type AvailabilityZoneInfoRequest

type AvailabilityZoneInfoRequest struct {
	AvailabilityZoneName  string `json:"availabilityZoneName"`  // 资源池可用区名称
	AvailabilityZoneCount int32  `json:"availabilityZoneCount"` // 资源池可用区总数
	NodeType              string `json:"nodeType"`              // 表示分布AZ的节点类型,master/slave/readNode
}

type AzInfo

type AzInfo struct {
	ResId  int64  `json:"resId"`
	Role   string `json:"role"`
	AzName string `json:"azName"`
	AzId   string `json:"azId"`
}

type DetailRespReturnObj

type DetailRespReturnObj struct {
	ProdBillType                int32    `json:"prodBillType"`
	ProdType                    int32    `json:"prodType"`
	ProdRunningStatus           int32    `json:"prodRunningStatus"`
	ProdOrderStatus             int32    `json:"prodOrderStatus"`
	Alive                       int32    `json:"alive"`
	Vip                         string   `json:"vip"`
	Vip6                        string   `json:"vip6"`
	WritePort                   string   `json:"writePort"`
	ReadPort                    string   `json:"readPort"`
	CreateTime                  int64    `json:"createTime"`
	ExpireTime                  int64    `json:"expireTime"`
	MachineSpec                 string   `json:"machineSpec"`
	ProdDbEngine                string   `json:"prodDbEngine"`
	DiskTotal                   string   `json:"diskTotal"`
	DiskRated                   int32    `json:"diskRated"`
	DiskType                    string   `json:"diskType"`
	DiskSize                    int32    `json:"diskSize"`
	BackupDiskUsedRated         int32    `json:"backupDiskUsedRated"`
	BackupUsedDiskSize          float32  `json:"backupUsedDiskSize"`
	BackupStoreType             int32    `json:"backupStoreType"`
	ProdInstSetName             string   `json:"prodInstSetName"`
	NetName                     string   `json:"netName"`
	EIP                         string   `json:"eIP"`
	EIPStatus                   int32    `json:"eipStatus"`
	Subnet                      string   `json:"subnet"`
	SSlStatus                   int32    `json:"sslStatus"`
	AzInfoList                  []AzInfo `json:"azInfoList"`
	NewMysqlVersion             string   `json:"newMysqlVersion"`
	SubnetId                    string   `json:"subnetId"`
	OrderId                     int64    `json:"orderId"`
	SecurityGroupId             string   `json:"securityGroupId"`
	TplName                     string   `json:"tplName"`
	AuditLogStatus              int32    `json:"auditLogStatus"`
	SecurityGroup               string   `json:"securityGroup"`
	OuterProdInstId             string   `json:"outerProdInstId"`
	ProdInstId                  int32    `json:"prodInstId"`
	ProdInstFlag                string   `json:"prodInstFlag"`
	DiskUsed                    string   `json:"diskUsed"`
	ParameterGroupUsed          string   `json:"parameterGroupUsed"`
	VpcId                       string   `json:"vpcId"`
	Usezos                      int32    `json:"usezos"`
	ProdInstName                string   `json:"prodInstName"`
	ProdId                      int64    `json:"prodId"`
	Resources                   string   `json:"resources"`
	UserId                      int32    `json:"userId"`
	ProdBillTime                int32    `json:"prodBillTime"`
	TenantId                    string   `json:"tenantId"`
	BackupDiskSize              int32    `json:"backupDiskSize"`
	TplCode                     string   `json:"tplCode"`
	DbMysqlVersion              string   `json:"dbMysqlVersion"`
	ProjectId                   string   `json:"projectId"`
	ProjectName                 string   `json:"projectName"`
	DiskDataUsed                string   `json:"diskDataUsed"`
	PauseEnable                 bool     `json:"pauseEnable"`
	LowerCaseTableNames         int32    `json:"lowerCaseTableNames"`
	InstReleaseProtectionStatus int32    `json:"instReleaseProtectionStatus"`
	MysqlPort                   string   `json:"mysqlPort"`
	DiskLogUsed                 string   `json:"diskLogUsed"`
	DiskDataUsedRated           int32    `json:"diskDataUsedRated"`
	Timezone                    string   `json:"timezone"`
	LastManualBackUp            int32    `json:"lastManualBackUp"`
	HostSeries                  string   `json:"hostSeries"`
	SecurityGroupStatus         int32    `json:"securityGroupStatus"`
	RenewalEnable               bool     `json:"renewalEnable"`
	IsMGR                       int32    `json:"isMGR"`
	DiskLogUsedRated            int32    `json:"diskLogUsedRated"`
}

type HostInst

type HostInst struct {
	HostTypeName          string   `json:"hostTypeName"`
	HostType              string   `json:"hostType"`
	ProdPerformanceSpeces []string `json:"prodPerformanceSpeces"`
	HostDefaultNum        int32    `json:"hostDefaultNum"`
}

type InstSpecInfo

type InstSpecInfo struct {
	SpecId              string   `json:"specId"`              // 废弃
	ProdPerformanceSpec string   `json:"prodPerformanceSpec"` // 规格名称
	AzList              []string `json:"azList"`              // 该规格支持的AZ列表
	SpecName            string   `json:"specName"`            // 主机世代完整名称
	CpuType             string   `json:"cpuType"`             // CPU类型
	Generation          string   `json:"generation"`          // 主机世代缩写
	MinRate             string   `json:"minRate"`             // 带宽下限
	MaxRate             string   `json:"maxRate"`             // 带宽上限
}

type MysqlNodeInfoListRequest

type MysqlNodeInfoListRequest struct {
	NodeType             string                        `json:"nodeType"`             // master:实例规格(单机,一主一备,一主两备), readNode: 高级设置: 只读实例
	InstSpec             string                        `json:"instSpec"`             // 实例规格(默认:通用型=1)
	StorageType          string                        `json:"storageType"`          // 存储类型: SSD=超高IO、SATA=普通IO、SAS=高IO、SSD-genric=通用型SSD、FAST-SSD=极速型SSD
	StorageSpace         int32                         `json:"storageSpace"`         // 存储空间(单位:G,范围100,32768)
	ProdPerformanceSpec  string                        `json:"prodPerformanceSpec"`  // 规格(例: 4C8G)
	Disks                int32                         `json:"disks"`                // 磁盘(默认为1)
	BackupStorageType    string                        `json:"backupStorageType"`    // 存储类型: SSD=超高IO、SATA=普通IO、SAS=高IO、SSD-genric=通用型SSD、FAST-SSD=极速型SSD
	BackupStorageSpace   int32                         `json:"backupStorageSpace"`   // 备份空间大小(类型SATA)
	AvailabilityZoneInfo []AvailabilityZoneInfoRequest `json:"availabilityZoneInfo"` // 可用区信息
}

type ProdHostConfig

type ProdHostConfig struct {
	HostInsts []HostInst `json:"hostInsts"`
}

type TagVO

type TagVO struct {
	Value   *string `json:"value,omitempty"`   // 标签值
	Key     *string `json:"key,omitempty"`     // 标签key
	LabelId *string `json:"labelId,omitempty"` // k-v的唯一标识
}

type TeledbBindEipApi

type TeledbBindEipApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

func NewTeledbBindEipApi

func NewTeledbBindEipApi(client *ctyunsdk.CtyunClient) *TeledbBindEipApi

func (*TeledbBindEipApi) Do

type TeledbBindEipRequest

type TeledbBindEipRequest struct {
	EipID  string `json:"eipId"`
	Eip    string `json:"eip"`
	InstID string `json:"instId"`
}

type TeledbBindEipRequestHeader

type TeledbBindEipRequestHeader struct {
	ProjectID *string `json:"project_id"`
}

type TeledbBindEipResponse

type TeledbBindEipResponse struct {
	StatusCode int32  `json:"statusCode"` // 接口状态码
	Error      string `json:"error"`      // 错误码,失败时返回,成功时为空
	Message    string `json:"message"`    // 描述信息
}

type TeledbBoundEipListApi

type TeledbBoundEipListApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

func NewTeledbBoundEipListApi

func NewTeledbBoundEipListApi(client *ctyunsdk.CtyunClient) *TeledbBoundEipListApi

func (*TeledbBoundEipListApi) Do

type TeledbBoundEipListRequest

type TeledbBoundEipListRequest struct {
	RegionID string  `json:"regionId"`
	EipID    *string `json:"eipId"`
	InstID   *string `json:"instId"`
}

type TeledbBoundEipListRequestHeader

type TeledbBoundEipListRequestHeader struct {
	ProjectID *string `json:"project_id"`
}

type TeledbBoundEipListResponse

type TeledbBoundEipListResponse struct {
	StatusCode int32                                `json:"statusCode"` // 接口状态码
	Error      string                               `json:"error"`      // 错误码,失败时返回,成功时为空
	Message    string                               `json:"message"`    // 描述信息
	ReturnObj  *TeledbBoundEipListResponseReturnObj `json:"returnObj"`
}

type TeledbBoundEipListResponseReturnObj

type TeledbBoundEipListResponseReturnObj struct {
	Data []TeledbBoundEipListResponseReturnObjData `json:"data"`
}

type TeledbBoundEipListResponseReturnObjData

type TeledbBoundEipListResponseReturnObjData struct {
	EipID      string `json:"eip_id"`
	Eip        string `json:"eip"`
	BindStatus int32  `json:"bindStatus"`
	Status     string `json:"status"`
	BandWidth  int32  `json:"bandWidth"`
}

type TeledbCreateAccessWhiteList

type TeledbCreateAccessWhiteList struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

func NewTeledbCreateAccessWhiteList

func NewTeledbCreateAccessWhiteList(client *ctyunsdk.CtyunClient) *TeledbCreateAccessWhiteList

type TeledbCreateAccessWhiteListRequest

type TeledbCreateAccessWhiteListRequest struct {
	OuterProdInstID string   `json:"outerProdInstId"`
	GroupName       string   `json:"groupName"`
	GroupWhiteList  []string `json:"groupWhiteList"`
}

type TeledbCreateAccessWhiteListRequestHeader

type TeledbCreateAccessWhiteListRequestHeader struct {
	ProjectID *string `json:"project-id"`
	InstID    *string `json:"inst-id"`
	RegionID  string  `json:"regionId"`
}

type TeledbCreateAccessWhiteListResponse

type TeledbCreateAccessWhiteListResponse struct {
	StatusCode int32  `json:"statusCode"` // 接口状态码
	Error      string `json:"error"`      // 错误码,失败时返回,成功时为空
	Message    string `json:"message"`    // 描述信息
}

type TeledbCreateApi

type TeledbCreateApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

func NewTeledbCreateApi

func NewTeledbCreateApi(client *ctyunsdk.CtyunClient) *TeledbCreateApi

type TeledbCreateRequest

type TeledbCreateRequest struct {
	BillMode              string                     `json:"billMode"`
	RegionId              string                     `json:"regionId"`
	ProdVersion           string                     `json:"prodVersion"`
	ProdSpecName          string                     `json:"prodSpecName,omitempty"`
	AvailabilityZone      []string                   `json:"availabilityZone,omitempty"`
	VpcId                 string                     `json:"vpcId"`
	HostType              string                     `json:"hostType"`
	SubnetId              string                     `json:"subnetId"`
	SecurityGroupId       string                     `json:"securityGroupId"`
	Name                  string                     `json:"name"`
	Password              string                     `json:"password,omitempty"`
	Period                int32                      `json:"period"`
	Count                 int32                      `json:"count"`
	AutoRenewStatus       int32                      `json:"autoRenewStatus"`
	ProdId                int64                      `json:"prodId"`
	ProdPerformanceSpeces []string                   `json:"prodPerformanceSpeces,omitempty"`
	MysqlNodeInfoList     []MysqlNodeInfoListRequest `json:"mysqlNodeInfoList,omitempty"`
	CpuType               string                     `json:"cpuType"`
	OsType                string                     `json:"osType"`
}

type TeledbCreateRequestHeader

type TeledbCreateRequestHeader struct {
	ProjectID *string `json:"project_id"`
}

type TeledbCreateResponse

type TeledbCreateResponse struct {
	StatusCode int32      `json:"statusCode"`        // 接口状态码
	Error      *string    `json:"error,omitempty"`   // 错误码,失败时返回,成功时为空
	Message    *string    `json:"message,omitempty"` // 描述信息
	ReturnObj  *returnObj `json:"returnObj"`         // 返回对象
}

type TeledbDeleteAccessWhiteList

type TeledbDeleteAccessWhiteList struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

func NewTeledbDeleteAccessWhiteList

func NewTeledbDeleteAccessWhiteList(client *ctyunsdk.CtyunClient) *TeledbDeleteAccessWhiteList

type TeledbDeleteAccessWhiteListRequest

type TeledbDeleteAccessWhiteListRequest struct {
	OuterProdInstID string `json:"outerProdInstId"`
	GroupName       string `json:"groupName"`
}

type TeledbDeleteAccessWhiteListRequestHeader

type TeledbDeleteAccessWhiteListRequestHeader struct {
	ProjectID *string `json:"project-id"`
	InstID    *string `json:"inst-id"`
	RegionID  string  `json:"regionId"`
}

type TeledbDeleteAccessWhiteListResponse

type TeledbDeleteAccessWhiteListResponse struct {
	StatusCode int32  `json:"statusCode"` // 接口状态码
	Error      string `json:"error"`      // 错误码,失败时返回,成功时为空
	Message    string `json:"message"`    // 描述信息
}

type TeledbDestroyApi

type TeledbDestroyApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

func NewTeledbDestroyApi

func NewTeledbDestroyApi(client *ctyunsdk.CtyunClient) *TeledbDestroyApi

func (*TeledbDestroyApi) Do

type TeledbDestroyRequest

type TeledbDestroyRequest struct {
	InstId string `json:"instId"` // 实例ID,必填
}

type TeledbDestroyRequestHeader

type TeledbDestroyRequestHeader struct {
	ProjectID string `json:"projectID"`
}

type TeledbDestroyResponse

type TeledbDestroyResponse struct {
	StatusCode int32                           `json:"statusCode"`      // 接口状态码
	Error      *string                         `json:"error,omitempty"` // 错误码,失败时返回,成功时为空
	Message    string                          `json:"message"`         // 描述信息
	ReturnObj  *TeledbDestroyResponseReturnObj `json:"returnObj"`       // 返回对象,类型为 DataObject
}

type TeledbDestroyResponseReturnObj

type TeledbDestroyResponseReturnObj struct {
	Data *TeledbDestroyResponseReturnObjData `json:"data"`
}

type TeledbDestroyResponseReturnObjData

type TeledbDestroyResponseReturnObjData struct {
	ErrorMessage string  `json:"errorMessage"` // 错误内容
	Submitted    bool    `json:"submitted"`    // 是否成功
	NewOrderId   string  `json:"newOrderId"`   // 订单ID
	NewOrderNo   string  `json:"newOrderNo"`   // 订单号
	TotalPrice   float64 `json:"totalPrice"`   // 总价
}

type TeledbGetAccessWhiteList

type TeledbGetAccessWhiteList struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

func NewTeledbGetAccessWhiteList

func NewTeledbGetAccessWhiteList(client *ctyunsdk.CtyunClient) *TeledbGetAccessWhiteList

func (*TeledbGetAccessWhiteList) Do

type TeledbGetAccessWhiteListRequest

type TeledbGetAccessWhiteListRequest struct {
	OuterProdInstID string `json:"outerProdInstId"`
}

type TeledbGetAccessWhiteListRequestHeader

type TeledbGetAccessWhiteListRequestHeader struct {
	ProjectID *string `json:"project-id"`
	InstID    *string `json:"inst-id"`
	RegionID  string  `json:"regionId"`
}

type TeledbGetAccessWhiteListResponse

type TeledbGetAccessWhiteListResponse struct {
	StatusCode int32                                       `json:"statusCode"` // 接口状态码
	Error      string                                      `json:"error"`      // 错误码,失败时返回,成功时为空
	Message    string                                      `json:"message"`    // 描述信息
	ReturnObj  []TeledbGetAccessWhiteListResponseReturnObj `json:"returnObj"`
}

type TeledbGetAccessWhiteListResponseReturnObj

type TeledbGetAccessWhiteListResponseReturnObj struct {
	GroupName           string   `json:"groupName"`
	GroupWhiteListCount int32    `json:"groupWhiteListCount"`
	OuterProdInstID     string   `json:"outerProdInstId"`
	CreateTime          int64    `json:"createTime"`
	UpdateTime          int64    `json:"updateTime"`
	WhiteList           []string `json:"whiteList"`
	AccessMachineType   string   `json:"accessMachineType"`
	ID                  int64    `json:"id"`
}

type TeledbGetAvailabilityZone

type TeledbGetAvailabilityZone struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

func NewTeledbGetAvailabilityZone

func NewTeledbGetAvailabilityZone(client *ctyunsdk.CtyunClient) *TeledbGetAvailabilityZone

func (*TeledbGetAvailabilityZone) Do

type TeledbGetAvailabilityZoneRequest

type TeledbGetAvailabilityZoneRequest struct {
	RegionId string `json:"regionId"`
}

type TeledbGetAvailabilityZoneRequestHeader

type TeledbGetAvailabilityZoneRequestHeader struct {
	ProjectID *string `json:"project-id"`
}

type TeledbGetAvailabilityZoneResponse

type TeledbGetAvailabilityZoneResponse struct {
	StatusCode int32                                      `json:"statusCode"` // 接口状态码
	Error      string                                     `json:"error"`      // 错误码,失败时返回,成功时为空
	Message    string                                     `json:"message"`    // 描述信息
	ReturnObj  TeledbGetAvailabilityZoneResponseReturnObj `json:"returnObj"`
}

type TeledbGetAvailabilityZoneResponseReturnObj

type TeledbGetAvailabilityZoneResponseReturnObj struct {
	Data []TeledbGetAvailabilityZoneResponseReturnObjData `json:"data"`
}

type TeledbGetAvailabilityZoneResponseReturnObjData

type TeledbGetAvailabilityZoneResponseReturnObjData struct {
	AvailabilityZoneId   string `json:"availabilityZoneId"`
	AvailabilityZoneName string `json:"availabilityZoneName"`
	DisplayName          string `json:"displayName"`
}

type TeledbGetListApi

type TeledbGetListApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

func NewTeledbGetListApi

func NewTeledbGetListApi(client *ctyunsdk.CtyunClient) *TeledbGetListApi

func (*TeledbGetListApi) Do

type TeledbGetListHeaders

type TeledbGetListHeaders struct {
	ProjectID *string `json:"projectId,omitempty"` //项目id
	RegionID  string  `json:"regionId"`            //资源区regionId,比如实例在资源区A,则需要填写A资源区的regionId
}

type TeledbGetListRequest

type TeledbGetListRequest struct {
	PageNow      int32   `json:"pageNow"`                // 当前页
	PageSize     int32   `json:"pageSize"`               // 单页记录条数
	TagVOList    []TagVO `json:"tagVOList,omitempty"`    // 标签列表
	ResDbEngine  *string `json:"resDbEngine,omitempty"`  // 数据库引擎
	ProdInstName *string `json:"prodInstName,omitempty"` // 实例名称
	Vip          *string `json:"vip,omitempty"`          // 连接IP
}

type TeledbGetListResponse

type TeledbGetListResponse struct {
	StatusCode int32                           `json:"statusCode"`        // 返回码
	Message    *string                         `json:"message,omitempty"` // 返回消息
	ReturnObj  *TeledbGetListResponseReturnObj `json:"returnObj"`         // 分页信息
	Error      *string                         `json:"error,omitempty"`   // 错误码(失败时才返回)
}

type TeledbGetListResponseReturnDetailList

type TeledbGetListResponseReturnDetailList struct {
	ProdInstName                string `json:"prodInstName"`
	OuterProdInstId             string `json:"outerProdInstId"`
	ProdBillType                int32  `json:"prodBillType"`
	ProdType                    int32  `json:"prodType"`
	ProdRunningStatus           int32  `json:"prodRunningStatus"`
	ProdOrderStatus             int32  `json:"prodOrderStatus"`
	Alive                       int32  `json:"alive"`
	Vip                         string `json:"vip"`
	Vip6                        string `json:"vip6"`
	WritePort                   string `json:"writePort"`
	ReadPort                    string `json:"readPort"`
	CreateTime                  int64  `json:"createTime"`
	ExpireTime                  int64  `json:"expireTime"`
	MachineSpec                 string `json:"machineSpec"`
	ProdDbEngine                string `json:"prodDbEngine"`
	DiskSize                    int32  `json:"diskSize"`
	NewMysqlVersion             string `json:"newMysqlVersion"`
	DiskType                    string `json:"diskType"`
	BackupDiskUsedRated         int32  `json:"backupDiskUsedRated"`
	NetName                     string `json:"netName"`
	Subnet                      string `json:"subnet"`
	ProdInstFlag                string `json:"prodInstFlag"`
	OrderId                     int64  `json:"orderId"`
	CanOperate                  int32  `json:"canOperate"`
	TplName                     string `json:"tplName"`
	AuditLogStatus              int32  `json:"auditLogStatus"`
	ParameterGroupUsed          string `json:"parameterGroupUsed"`
	VpcId                       string `json:"vpcId"`
	Usezos                      int32  `json:"usezos"`
	ProdInstId                  int64  `json:"prodInstId"`
	DbMysqlVersion              string `json:"dbMysqlVersion"`
	Resources                   string `json:"resources"`
	UserId                      int64  `json:"userId"`
	ProdBillTime                int32  `json:"prodBillTime"`
	TenantId                    string `json:"tenantId"`
	TplCode                     string `json:"tplCode"`
	ProdId                      int64  `json:"prodId"`
	ProdInstSetName             string `json:"prodInstSetName"`
	SecurityGroup               string `json:"securityGroup"`
	ProjectId                   string `json:"projectId"`
	ProjectName                 string `json:"projectName"`
	PauseEnable                 bool   `json:"pauseEnable"`
	InstReleaseProtectionStatus int32  `json:"instReleaseProtectionStatus"`
	LastManualBackUp            int64  `json:"lastManualBackUp"`
	RenewalEnable               bool   `json:"renewalEnable"`
	IsMGR                       int32  `json:"isMGR"`
}

type TeledbGetListResponseReturnObj

type TeledbGetListResponseReturnObj struct {
	PageNum          int32                                   `json:"pageNum"`          // 当前页
	PageSize         int32                                   `json:"pageSize"`         // 每页的数量
	Size             int32                                   `json:"size"`             // 当前页的数量
	StartRow         int32                                   `json:"startRow"`         // 当前页面第一个元素在数据库中的行号
	EndRow           int32                                   `json:"endRow"`           // 当前页面最后一个元素在数据库中的行号
	Total            int32                                   `json:"total"`            // 总记录数
	Pages            int32                                   `json:"pages"`            // 总页数
	FirstPage        int32                                   `json:"firstPage"`        // 第一页
	PrePage          int32                                   `json:"prePage"`          // 前一页
	IsFirstPage      bool                                    `json:"isFirstPage"`      // 是否为第一页
	IsLastPage       bool                                    `json:"isLastPage"`       // 是否为最后一页
	HasPreviousPage  bool                                    `json:"hasPreviousPage"`  // 是否有前一页
	HasNextPage      bool                                    `json:"hasNextPage"`      // 是否有下一页
	NavigatePages    int32                                   `json:"navigatePages"`    // 导航页码数
	NavigatePageNums []int32                                 `json:"navigatepageNums"` // 所有导航页号
	List             []TeledbGetListResponseReturnDetailList `json:"list"`             // 结果集(每页显示的数据)
}

type TeledbMysqlSpecsApi

type TeledbMysqlSpecsApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

func NewTeledbMysqlSpecsApi

func NewTeledbMysqlSpecsApi(client *ctyunsdk.CtyunClient) *TeledbMysqlSpecsApi

func (*TeledbMysqlSpecsApi) Do

type TeledbMysqlSpecsRequest

type TeledbMysqlSpecsRequest struct {
	ProdType     string `json:"prod_type"`
	ProdCode     string `json:"prod_code"`
	RegionID     string `json:"region_id"`
	InstanceType string `json:"instance_type"`
}

type TeledbMysqlSpecsRequestHeader

type TeledbMysqlSpecsRequestHeader struct {
	ProjectID *string `json:"project_id"`
}

type TeledbMysqlSpecsResponse

type TeledbMysqlSpecsResponse struct {
	StatusCode int32                              `json:"statusCode"` // 接口状态码
	Error      string                             `json:"error"`      // 错误码,失败时返回,成功时为空
	Message    string                             `json:"message"`    // 描述信息
	ReturnObj  *TeledbMysqlSpecsResponseReturnObj `json:"returnObj"`
}

type TeledbMysqlSpecsResponseReturnObj

type TeledbMysqlSpecsResponseReturnObj struct {
	Data []TeledbMysqlSpecsResponseReturnObjData `json:"data"`
}

type TeledbMysqlSpecsResponseReturnObjData

type TeledbMysqlSpecsResponseReturnObjData struct {
	ProdId           int64          `json:"prodId"`
	ProdCode         string         `json:"prodCode"`
	ProdSpecName     string         `json:"prodSpecName"`
	ProdSpecDesc     string         `json:"prodSpecDesc"`
	InstanceDesc     string         `json:"instanceDesc"`
	ProdVersion      string         `json:"prodVersion"`
	HostSpec         string         `json:"hostSpec"`
	LvsSpec          string         `json:"lvsSpec"`
	InstSpecInfoList []InstSpecInfo `json:"instSpecInfoList"`
	ProdHostConfig   ProdHostConfig `json:"prodHostConfig"`
}

type TeledbQueryDetailApi

type TeledbQueryDetailApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

func NewTeledbQueryDetailApi

func NewTeledbQueryDetailApi(client *ctyunsdk.CtyunClient) *TeledbQueryDetailApi

func (*TeledbQueryDetailApi) Do

type TeledbQueryDetailRequest

type TeledbQueryDetailRequest struct {
	OuterProdInstId string `json:"outerProdInstId"` //实例ID,必填
}

type TeledbQueryDetailRequestHeaders

type TeledbQueryDetailRequestHeaders struct {
	ProjectID *string `json:"projectId,omitempty"`
	InstID    string  `json:"instanceId"`
	RegionID  string  `json:"regionId"`
}

type TeledbQueryDetailResponse

type TeledbQueryDetailResponse struct {
	StatusCode int32                `json:"statusCode"`
	Message    string               `json:"message"`
	ReturnObj  *DetailRespReturnObj `json:"returnObj"`
	Error      string               `json:"error"`
}

type TeledbRefundApi

type TeledbRefundApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

func NewTeledbRefundApi

func NewTeledbRefundApi(client *ctyunsdk.CtyunClient) *TeledbRefundApi

func (*TeledbRefundApi) Do

type TeledbRefundRequest

type TeledbRefundRequest struct {
	InstId string `json:"instId"` // 实例ID,必填
}

type TeledbRefundRequestHeader

type TeledbRefundRequestHeader struct {
	ProjectID string `json:"projectID"`
}

type TeledbRefundResponse

type TeledbRefundResponse struct {
	StatusCode int32                          `json:"statusCode"`      // 接口状态码
	Error      *string                        `json:"error,omitempty"` // 错误码,失败时返回,成功时为空
	Message    string                         `json:"message"`         // 描述信息
	ReturnObj  *TeledbRefundResponseReturnObj `json:"returnObj"`       // 返回对象,类型为 DataObject
}

type TeledbRefundResponseReturnObj

type TeledbRefundResponseReturnObj struct {
	Data *TeledbRefundResponseReturnObjData `json:"data"`
}

type TeledbRefundResponseReturnObjData

type TeledbRefundResponseReturnObjData struct {
	ErrorMessage string  `json:"errorMessage"` // 错误内容
	Submitted    bool    `json:"submitted"`    // 是否成功
	NewOrderId   string  `json:"newOrderId"`   // 订单ID
	NewOrderNo   string  `json:"newOrderNo"`   // 订单号
	TotalPrice   float64 `json:"totalPrice"`   // 总价
}

type TeledbRestartApi

type TeledbRestartApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

func NewTeledbRestartApi

func NewTeledbRestartApi(client *ctyunsdk.CtyunClient) *TeledbRestartApi

func (*TeledbRestartApi) Do

func (this *TeledbRestartApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *TeledbRestartRequest, header *TeledbRestartRequestHeader) (teledbRestartResp *TeledbRestartResponse, err error)

type TeledbRestartRequest

type TeledbRestartRequest struct {
	OuterProdInstId string `json:"outerProdInstId"`
}

type TeledbRestartRequestHeader

type TeledbRestartRequestHeader struct {
	ProjectID string `json:"projectId"`
	InstID    string `json:"instId"`
	RegionID  string `json:"regionId"`
}

type TeledbRestartResponse

type TeledbRestartResponse struct {
	StatusCode int    `json:"statusCode"` // 返回码
	Message    string `json:"message"`    // 结果信息
	Error      string `json:"error"`      // 错误码,接口失败时返回

}

type TeledbStartApi

type TeledbStartApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

func NewTeledbStartApi

func NewTeledbStartApi(client *ctyunsdk.CtyunClient) *TeledbStartApi

func (*TeledbStartApi) Do

func (this *TeledbStartApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *TeledbStartRequest, header *TeledbStartRequestHeader) (teledbStartResp *TeledbStartResponse, err error)

type TeledbStartRequest

type TeledbStartRequest struct {
	OuterProdInstId string `json:"outerProdInstId"`
}

type TeledbStartRequestHeader

type TeledbStartRequestHeader struct {
	ProjectID string `json:"projectId"`
	InstID    string `json:"instId"`
	RegionID  string `json:"regionId"`
}

type TeledbStartResponse

type TeledbStartResponse struct {
	StatusCode int    `json:"statusCode"` // 返回码
	Message    string `json:"message"`    // 结果信息
	Error      string `json:"error"`      // 错误码,接口失败时返回

}

type TeledbStopApi

type TeledbStopApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

func NewTeledbStopApi

func NewTeledbStopApi(client *ctyunsdk.CtyunClient) *TeledbStopApi

func (*TeledbStopApi) Do

func (this *TeledbStopApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *TeledbStopRequest, header *TeledbStopRequestHeader) (teledbStopResp *TeledbStopResponse, err error)

type TeledbStopRequest

type TeledbStopRequest struct {
	OuterProdInstId string `json:"outerProdInstId"`
}

type TeledbStopRequestHeader

type TeledbStopRequestHeader struct {
	ProjectID string `json:"projectId"`
	InstID    string `json:"instId"`
	RegionID  string `json:"regionId"`
}

type TeledbStopResponse

type TeledbStopResponse struct {
	StatusCode int    `json:"statusCode"` // 返回码
	Message    string `json:"message"`    // 结果信息
	Error      string `json:"error"`      // 错误码,接口失败时返回

}

type TeledbUnbindEipApi

type TeledbUnbindEipApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

func NewTeledbUnbindEipApi

func NewTeledbUnbindEipApi(client *ctyunsdk.CtyunClient) *TeledbUnbindEipApi

func (*TeledbUnbindEipApi) Do

type TeledbUnbindEipRequest

type TeledbUnbindEipRequest struct {
	EipID  string `json:"eipId"`
	Eip    string `json:"eip"`
	InstID string `json:"instId"`
}

type TeledbUnbindEipRequestHeader

type TeledbUnbindEipRequestHeader struct {
	ProjectID *string `json:"project_id,omitempty"`
}

type TeledbUnbindEipResponse

type TeledbUnbindEipResponse struct {
	StatusCode int32  `json:"statusCode"` // 接口状态码
	Error      string `json:"error"`      // 错误码,失败时返回,成功时为空
	Message    string `json:"message"`    // 描述信息
}

type TeledbUpdateAccessWhiteList

type TeledbUpdateAccessWhiteList struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

func NewTeledbUpdateAccessWhiteList

func NewTeledbUpdateAccessWhiteList(client *ctyunsdk.CtyunClient) *TeledbUpdateAccessWhiteList

type TeledbUpdateAccessWhiteListRequest

type TeledbUpdateAccessWhiteListRequest struct {
	OuterProdInstID string   `json:"outerProdInstId"`
	GroupName       string   `json:"groupName"`
	GroupWhiteList  []string `json:"groupWhiteList"`
}

type TeledbUpdateAccessWhiteListRequestHeader

type TeledbUpdateAccessWhiteListRequestHeader struct {
	ProjectID *string `json:"project-id"`
	InstID    *string `json:"inst-id"`
	RegionID  string  `json:"regionId"`
}

type TeledbUpdateAccessWhiteListResponse

type TeledbUpdateAccessWhiteListResponse struct {
	StatusCode int32  `json:"statusCode"` // 接口状态码
	Error      string `json:"error"`      // 错误码,失败时返回,成功时为空
	Message    string `json:"message"`    // 描述信息
}

type TeledbUpdateInstanceNameApi

type TeledbUpdateInstanceNameApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

func NewTeledbUpdateInstanceNameApi

func NewTeledbUpdateInstanceNameApi(client *ctyunsdk.CtyunClient) *TeledbUpdateInstanceNameApi

func (*TeledbUpdateInstanceNameApi) Do

type TeledbUpdateInstanceNameRequest

type TeledbUpdateInstanceNameRequest struct {
	OuterProdInstID     string `json:"outerProdInstId"`
	InstanceDescription string `json:"instanceDescription"`
}

type TeledbUpdateInstanceNameRequestHeader

type TeledbUpdateInstanceNameRequestHeader struct {
	ProjectID *string `json:"projectId,omitempty"`
	InstID    string  `json:"instId"`
	RegionID  string  `json:"regionId"`
}

type TeledbUpdateInstanceNameResponse

type TeledbUpdateInstanceNameResponse struct {
	StatusCode int32  `json:"statusCode"`
	Message    string `json:"message"`
	Error      string `json:"error"`
}

type TeledbUpdateSecurityGroupApi

type TeledbUpdateSecurityGroupApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

func NewTeledbUpdateSecurityGroupApi

func NewTeledbUpdateSecurityGroupApi(client *ctyunsdk.CtyunClient) *TeledbUpdateSecurityGroupApi

func (*TeledbUpdateSecurityGroupApi) Do

type TeledbUpdateSecurityGroupRequest

type TeledbUpdateSecurityGroupRequest struct{}

type TeledbUpdateSecurityGroupRequestHeader

type TeledbUpdateSecurityGroupRequestHeader struct{}

type TeledbUpdateSecurityGroupResponse

type TeledbUpdateSecurityGroupResponse struct{}

type TeledbUpdateWritePortApi

type TeledbUpdateWritePortApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

func NewTeledbUpdateWritePortApi

func NewTeledbUpdateWritePortApi(client *ctyunsdk.CtyunClient) *TeledbUpdateWritePortApi

func (*TeledbUpdateWritePortApi) Do

type TeledbUpdateWritePortRequest

type TeledbUpdateWritePortRequest struct {
	OuterProdInstId string `json:"outerProdInstId"`
	WritePort       string `json:"writePort"`
}

type TeledbUpdateWritePortRequestHeader

type TeledbUpdateWritePortRequestHeader struct {
	ProjectID string `json:"projectId"`
	InstID    string `json:"instId"`
	RegionID  string `json:"regionId"`
}

type TeledbUpdateWritePortResponse

type TeledbUpdateWritePortResponse struct {
	StatusCode int32  `json:"statusCode"`
	Message    string `json:"message"`
	Error      string `json:"error"`
}

type TeledbUpgradeApi

type TeledbUpgradeApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

func NewTeledbUpgradeApi

func NewTeledbUpgradeApi(client *ctyunsdk.CtyunClient) *TeledbUpgradeApi

func (*TeledbUpgradeApi) Do

type TeledbUpgradeRequest

type TeledbUpgradeRequest struct {
	InstId              string                 `json:"instId"`                        // 实例ID,必填
	NodeType            *string                `json:"nodeType,omitempty"`            // 节点类型,主节点或备份节点,非必填
	ProdId              *int64                 `json:"prodId,omitempty"`              // 产品ID,非必填
	DiskVolume          *int32                 `json:"diskVolume,omitempty"`          // 升级到的磁盘容量,单位G,非必填
	ProdPerformanceSpec *string                `json:"prodPerformanceSpec,omitempty"` // 产品规格,非必填
	AzList              []AvailabilityZoneInfo `json:"azList,omitempty"`              // 可用区节点相关信息,非必填
}

type TeledbUpgradeRequestHeader

type TeledbUpgradeRequestHeader struct {
	ProjectID *string `json:"projectID"`
}

type TeledbUpgradeResponse

type TeledbUpgradeResponse struct {
	StatusCode int32                           `json:"statusCode"` // 接口状态码
	Error      string                          `json:"error"`      // 错误码,失败时返回,成功时为空
	Message    string                          `json:"message"`    // 描述信息
	ReturnObj  *TeledbUpgradeResponseReturnObj `json:"returnObj"`  // 返回对象,类型为 DataObject
}

type TeledbUpgradeResponseReturnObj

type TeledbUpgradeResponseReturnObj struct {
	NewOrderId string `json:"newOrderId"` // 订单ID
}

Jump to

Keyboard shortcuts

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