Documentation
¶
Index ¶
- Constants
- Variables
- type Apis
- type AvailabilityZoneInfo
- type AvailabilityZoneInfoRequest
- type AzInfo
- type DetailRespReturnObj
- type HostInst
- type InstSpecInfo
- type MysqlNodeInfoListRequest
- type ProdHostConfig
- type TagVO
- type TeledbBindEipApi
- type TeledbBindEipRequest
- type TeledbBindEipRequestHeader
- type TeledbBindEipResponse
- type TeledbBoundEipListApi
- type TeledbBoundEipListRequest
- type TeledbBoundEipListRequestHeader
- type TeledbBoundEipListResponse
- type TeledbBoundEipListResponseReturnObj
- type TeledbBoundEipListResponseReturnObjData
- type TeledbCreateAccessWhiteList
- type TeledbCreateAccessWhiteListRequest
- type TeledbCreateAccessWhiteListRequestHeader
- type TeledbCreateAccessWhiteListResponse
- type TeledbCreateApi
- type TeledbCreateRequest
- type TeledbCreateRequestHeader
- type TeledbCreateResponse
- type TeledbDeleteAccessWhiteList
- type TeledbDeleteAccessWhiteListRequest
- type TeledbDeleteAccessWhiteListRequestHeader
- type TeledbDeleteAccessWhiteListResponse
- type TeledbDestroyApi
- type TeledbDestroyRequest
- type TeledbDestroyRequestHeader
- type TeledbDestroyResponse
- type TeledbDestroyResponseReturnObj
- type TeledbDestroyResponseReturnObjData
- type TeledbGetAccessWhiteList
- type TeledbGetAccessWhiteListRequest
- type TeledbGetAccessWhiteListRequestHeader
- type TeledbGetAccessWhiteListResponse
- type TeledbGetAccessWhiteListResponseReturnObj
- type TeledbGetAvailabilityZone
- type TeledbGetAvailabilityZoneRequest
- type TeledbGetAvailabilityZoneRequestHeader
- type TeledbGetAvailabilityZoneResponse
- type TeledbGetAvailabilityZoneResponseReturnObj
- type TeledbGetAvailabilityZoneResponseReturnObjData
- type TeledbGetListApi
- type TeledbGetListHeaders
- type TeledbGetListRequest
- type TeledbGetListResponse
- type TeledbGetListResponseReturnDetailList
- type TeledbGetListResponseReturnObj
- type TeledbMysqlSpecsApi
- type TeledbMysqlSpecsRequest
- type TeledbMysqlSpecsRequestHeader
- type TeledbMysqlSpecsResponse
- type TeledbMysqlSpecsResponseReturnObj
- type TeledbMysqlSpecsResponseReturnObjData
- type TeledbQueryDetailApi
- type TeledbQueryDetailRequest
- type TeledbQueryDetailRequestHeaders
- type TeledbQueryDetailResponse
- type TeledbRefundApi
- type TeledbRefundRequest
- type TeledbRefundRequestHeader
- type TeledbRefundResponse
- type TeledbRefundResponseReturnObj
- type TeledbRefundResponseReturnObjData
- type TeledbRestartApi
- type TeledbRestartRequest
- type TeledbRestartRequestHeader
- type TeledbRestartResponse
- type TeledbStartApi
- type TeledbStartRequest
- type TeledbStartRequestHeader
- type TeledbStartResponse
- type TeledbStopApi
- type TeledbStopRequest
- type TeledbStopRequestHeader
- type TeledbStopResponse
- type TeledbUnbindEipApi
- type TeledbUnbindEipRequest
- type TeledbUnbindEipRequestHeader
- type TeledbUnbindEipResponse
- type TeledbUpdateAccessWhiteList
- type TeledbUpdateAccessWhiteListRequest
- type TeledbUpdateAccessWhiteListRequestHeader
- type TeledbUpdateAccessWhiteListResponse
- type TeledbUpdateInstanceNameApi
- type TeledbUpdateInstanceNameRequest
- type TeledbUpdateInstanceNameRequestHeader
- type TeledbUpdateInstanceNameResponse
- type TeledbUpdateSecurityGroupApi
- type TeledbUpdateSecurityGroupRequest
- type TeledbUpdateSecurityGroupRequestHeader
- type TeledbUpdateSecurityGroupResponse
- type TeledbUpdateWritePortApi
- type TeledbUpdateWritePortRequest
- type TeledbUpdateWritePortRequestHeader
- type TeledbUpdateWritePortResponse
- type TeledbUpgradeApi
- type TeledbUpgradeRequest
- type TeledbUpgradeRequestHeader
- type TeledbUpgradeResponse
- type TeledbUpgradeResponseReturnObj
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 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 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 TeledbBindEipApi ¶
type TeledbBindEipApi struct {
ctyunsdk.CtyunRequestBuilder
// contains filtered or unexported fields
}
func NewTeledbBindEipApi ¶
func NewTeledbBindEipApi(client *ctyunsdk.CtyunClient) *TeledbBindEipApi
func (*TeledbBindEipApi) Do ¶
func (this *TeledbBindEipApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *TeledbBindEipRequest, header *TeledbBindEipRequestHeader) (bindResponse *TeledbBindEipResponse, err error)
type TeledbBindEipRequest ¶
type TeledbBindEipRequestHeader ¶
type TeledbBindEipRequestHeader struct {
ProjectID *string `json:"project_id"`
}
type TeledbBindEipResponse ¶
type TeledbBoundEipListApi ¶
type TeledbBoundEipListApi struct {
ctyunsdk.CtyunRequestBuilder
// contains filtered or unexported fields
}
func NewTeledbBoundEipListApi ¶
func NewTeledbBoundEipListApi(client *ctyunsdk.CtyunClient) *TeledbBoundEipListApi
func (*TeledbBoundEipListApi) Do ¶
func (this *TeledbBoundEipListApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *TeledbBoundEipListRequest, header *TeledbBoundEipListRequestHeader) (bindResponse *TeledbBoundEipListResponse, err error)
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 TeledbCreateAccessWhiteList ¶
type TeledbCreateAccessWhiteList struct {
ctyunsdk.CtyunRequestBuilder
// contains filtered or unexported fields
}
func NewTeledbCreateAccessWhiteList ¶
func NewTeledbCreateAccessWhiteList(client *ctyunsdk.CtyunClient) *TeledbCreateAccessWhiteList
func (*TeledbCreateAccessWhiteList) Do ¶
func (this *TeledbCreateAccessWhiteList) Do(ctx context.Context, credential ctyunsdk.Credential, req *TeledbCreateAccessWhiteListRequest, header *TeledbCreateAccessWhiteListRequestHeader) (bindResponse *TeledbCreateAccessWhiteListResponse, err error)
type TeledbCreateApi ¶
type TeledbCreateApi struct {
ctyunsdk.CtyunRequestBuilder
// contains filtered or unexported fields
}
func NewTeledbCreateApi ¶
func NewTeledbCreateApi(client *ctyunsdk.CtyunClient) *TeledbCreateApi
func (*TeledbCreateApi) Do ¶
func (this *TeledbCreateApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *TeledbCreateRequest, header *TeledbCreateRequestHeader) (*TeledbCreateResponse, ctyunsdk.CtyunRequestError)
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 TeledbDeleteAccessWhiteList ¶
type TeledbDeleteAccessWhiteList struct {
ctyunsdk.CtyunRequestBuilder
// contains filtered or unexported fields
}
func NewTeledbDeleteAccessWhiteList ¶
func NewTeledbDeleteAccessWhiteList(client *ctyunsdk.CtyunClient) *TeledbDeleteAccessWhiteList
func (*TeledbDeleteAccessWhiteList) Do ¶
func (this *TeledbDeleteAccessWhiteList) Do(ctx context.Context, credential ctyunsdk.Credential, req *TeledbDeleteAccessWhiteListRequest, header *TeledbDeleteAccessWhiteListRequestHeader) (bindResponse *TeledbDeleteAccessWhiteListResponse, err error)
type TeledbDestroyApi ¶
type TeledbDestroyApi struct {
ctyunsdk.CtyunRequestBuilder
// contains filtered or unexported fields
}
func NewTeledbDestroyApi ¶
func NewTeledbDestroyApi(client *ctyunsdk.CtyunClient) *TeledbDestroyApi
func (*TeledbDestroyApi) Do ¶
func (this *TeledbDestroyApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *TeledbDestroyRequest, header *TeledbDestroyRequestHeader) (destroyResp *TeledbDestroyResponse, err error)
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 TeledbGetAccessWhiteList ¶
type TeledbGetAccessWhiteList struct {
ctyunsdk.CtyunRequestBuilder
// contains filtered or unexported fields
}
func NewTeledbGetAccessWhiteList ¶
func NewTeledbGetAccessWhiteList(client *ctyunsdk.CtyunClient) *TeledbGetAccessWhiteList
func (*TeledbGetAccessWhiteList) Do ¶
func (this *TeledbGetAccessWhiteList) Do(ctx context.Context, credential ctyunsdk.Credential, req *TeledbGetAccessWhiteListRequest, header *TeledbGetAccessWhiteListRequestHeader) (bindResponse *TeledbGetAccessWhiteListResponse, err error)
type TeledbGetAccessWhiteListRequest ¶
type TeledbGetAccessWhiteListRequest struct {
OuterProdInstID string `json:"outerProdInstId"`
}
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 ¶
func (this *TeledbGetAvailabilityZone) Do(ctx context.Context, credential ctyunsdk.Credential, req *TeledbGetAvailabilityZoneRequest, header *TeledbGetAvailabilityZoneRequestHeader) (bindResponse *TeledbGetAvailabilityZoneResponse, err error)
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 TeledbGetListApi ¶
type TeledbGetListApi struct {
ctyunsdk.CtyunRequestBuilder
// contains filtered or unexported fields
}
func NewTeledbGetListApi ¶
func NewTeledbGetListApi(client *ctyunsdk.CtyunClient) *TeledbGetListApi
func (*TeledbGetListApi) Do ¶
func (this *TeledbGetListApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *TeledbGetListRequest, header *TeledbGetListHeaders) (*TeledbGetListResponse, error)
type TeledbGetListHeaders ¶
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"` // 是否有下一页
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 ¶
func (this *TeledbMysqlSpecsApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *TeledbMysqlSpecsRequest, header *TeledbMysqlSpecsRequestHeader) (specsResponse *TeledbMysqlSpecsResponse, err error)
type TeledbMysqlSpecsRequest ¶
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 ¶
func (this *TeledbQueryDetailApi) Do(ctx context.Context, credentials ctyunsdk.Credential, req *TeledbQueryDetailRequest, headers *TeledbQueryDetailRequestHeaders) (detailResp *TeledbQueryDetailResponse, err error)
type TeledbQueryDetailRequest ¶
type TeledbQueryDetailRequest struct {
OuterProdInstId string `json:"outerProdInstId"` //实例ID,必填
}
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 ¶
func (this *TeledbRefundApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *TeledbRefundRequest, header *TeledbRefundRequestHeader) (refundResp *TeledbRefundResponse, err error)
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 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 TeledbRestartResponse ¶
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 TeledbStartResponse ¶
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 TeledbStopResponse ¶
type TeledbUnbindEipApi ¶
type TeledbUnbindEipApi struct {
ctyunsdk.CtyunRequestBuilder
// contains filtered or unexported fields
}
func NewTeledbUnbindEipApi ¶
func NewTeledbUnbindEipApi(client *ctyunsdk.CtyunClient) *TeledbUnbindEipApi
func (*TeledbUnbindEipApi) Do ¶
func (this *TeledbUnbindEipApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *TeledbUnbindEipRequest, header *TeledbUnbindEipRequestHeader) (unbindResponse *TeledbUnbindEipResponse, err error)
type TeledbUnbindEipRequest ¶
type TeledbUnbindEipRequestHeader ¶
type TeledbUnbindEipRequestHeader struct {
ProjectID *string `json:"project_id,omitempty"`
}
type TeledbUnbindEipResponse ¶
type TeledbUpdateAccessWhiteList ¶
type TeledbUpdateAccessWhiteList struct {
ctyunsdk.CtyunRequestBuilder
// contains filtered or unexported fields
}
func NewTeledbUpdateAccessWhiteList ¶
func NewTeledbUpdateAccessWhiteList(client *ctyunsdk.CtyunClient) *TeledbUpdateAccessWhiteList
func (*TeledbUpdateAccessWhiteList) Do ¶
func (this *TeledbUpdateAccessWhiteList) Do(ctx context.Context, credential ctyunsdk.Credential, req *TeledbUpdateAccessWhiteListRequest, header *TeledbUpdateAccessWhiteListRequestHeader) (bindResponse *TeledbUpdateAccessWhiteListResponse, err error)
type TeledbUpdateInstanceNameApi ¶
type TeledbUpdateInstanceNameApi struct {
ctyunsdk.CtyunRequestBuilder
// contains filtered or unexported fields
}
func NewTeledbUpdateInstanceNameApi ¶
func NewTeledbUpdateInstanceNameApi(client *ctyunsdk.CtyunClient) *TeledbUpdateInstanceNameApi
func (*TeledbUpdateInstanceNameApi) Do ¶
func (this *TeledbUpdateInstanceNameApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *TeledbUpdateInstanceNameRequest, header *TeledbUpdateInstanceNameRequestHeader) (updatedNameResp *TeledbUpdateInstanceNameResponse, err error)
type TeledbUpdateSecurityGroupApi ¶
type TeledbUpdateSecurityGroupApi struct {
ctyunsdk.CtyunRequestBuilder
// contains filtered or unexported fields
}
func NewTeledbUpdateSecurityGroupApi ¶
func NewTeledbUpdateSecurityGroupApi(client *ctyunsdk.CtyunClient) *TeledbUpdateSecurityGroupApi
func (*TeledbUpdateSecurityGroupApi) Do ¶
func (this *TeledbUpdateSecurityGroupApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *TeledbUpdateSecurityGroupRequest, header *TeledbUpdateSecurityGroupRequestHeader) (updateResp *TeledbUpdateSecurityGroupResponse, err error)
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 ¶
func (this *TeledbUpdateWritePortApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *TeledbUpdateWritePortRequest, headers *TeledbUpdateWritePortRequestHeader) (updatedResponse *TeledbUpdateWritePortResponse, err error)
type TeledbUpgradeApi ¶
type TeledbUpgradeApi struct {
ctyunsdk.CtyunRequestBuilder
// contains filtered or unexported fields
}
func NewTeledbUpgradeApi ¶
func NewTeledbUpgradeApi(client *ctyunsdk.CtyunClient) *TeledbUpgradeApi
func (*TeledbUpgradeApi) Do ¶
func (this *TeledbUpgradeApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *TeledbUpgradeRequest, header *TeledbUpgradeRequestHeader) (upgradeResp *TeledbUpgradeResponse, err error)
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
}
Source Files
¶
- apis.go
- const.go
- create_access_white_list.go
- delete_access_white_list.go
- get_access_white_list.go
- get_availability_zone.go
- reset_password.go
- teledb_bind_eip.go
- teledb_bound_eip_list.go
- teledb_create.go
- teledb_destroy.go
- teledb_detail.go
- teledb_list.go
- teledb_mysql_specs.go
- teledb_refund.go
- teledb_restart.go
- teledb_start.go
- teledb_stop.go
- teledb_unbind_eip.go
- teledb_update_name.go
- teledb_update_write_port.go
- teledb_updated_security_group.go
- teledb_upgrade.go
- update_access_white_list.go
Click to show internal directories.
Click to hide internal directories.