Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ListQuery ¶
type ListQuery struct {
/* 业务线 (Optional) */
AppCode string `json:"appCode"`
/* 产品线 (Optional) */
ServiceCode string `json:"serviceCode"`
/* 资源ID (Optional) */
ResourceId string `json:"resourceId"`
/* 资源名称 (Optional) */
ResourceName string `json:"resourceName"`
/* 地域 (Optional) */
Region string `json:"region"`
/* 资源计费类型(CONFIG-按配置,FLOW-按用量,MONTHLY-包年包月) (Optional) */
BillingType string `json:"billingType"`
/* 资源到期时间 (Optional) */
ExpireTime string `json:"expireTime"`
/* 倒计时 (Optional) */
LastTime int `json:"lastTime"`
/* 开通自动续费状态(UNOPENED-未开通,OPENED-已开通) (Optional) */
AutoRenewStatus string `json:"autoRenewStatus"`
/* 自动续费周期,单位为月 (Optional) */
AutoRenewPeriod string `json:"autoRenewPeriod"`
/* 是否绑定关联资源一并开通自动续费(AUTO_RENEW:关联包年包月资源一并自动续费 UN_AUTO_RENEW:关联包年包月资源不自动续费) (Optional) */
AssociateResource string `json:"associateResource"`
/* 扩展字段,包括数据库类型、资源特殊说明等 (Optional) */
ExtendField string `json:"extendField"`
/* 绑定资源列表 (Optional) */
RelationList []RelationResource `json:"relationList"`
}
type QueryExpiredResourceParam ¶
type QueryExpiredResourceParam struct {
/* 地域:不传时获取全部 */
Region string `json:"region"`
/* 产品线:多个用逗号分隔 */
ServiceCodes string `json:"serviceCodes"`
/* 到期类型:大于0-订单还有几天到期; 等于0-订单已经到期; 小于0-全部 */
ExpireType int `json:"expireType"`
/* 当前页码 (Optional) */
PageIndex int `json:"pageIndex"`
/* 每页条数 (Optional) */
PageSize int `json:"pageSize"`
}
type QueryExpiredResourceResultVo ¶
type QueryExpiredResourceResultVo struct {
/* 资源Id (Optional) */
ResourceId string `json:"resourceId"`
/* 资源名称 (Optional) */
ResourceName string `json:"resourceName"`
/* 产品线 (Optional) */
ServiceCode string `json:"serviceCode"`
/* 业务线 (Optional) */
AppCode string `json:"appCode"`
/* 已过期天数 (Optional) */
ExpiredDays int `json:"expiredDays"`
/* 资源所在区域 (Optional) */
RegionId string `json:"regionId"`
/* 计费类型 (Optional) */
BillingType int `json:"billingType"`
}
type QueryInstanceParam ¶
type QueryInstanceParam struct {
/* 业务线 */
AppCode string `json:"appCode"`
/* 产品线 */
ServiceCode string `json:"serviceCode"`
/* 资源名称 (Optional) */
InstanceName *string `json:"instanceName"`
/* 资源ID (Optional) */
InstanceId *string `json:"instanceId"`
/* 资源续费状态(AUTO-开通自动续费资源,MANUAL-未开通自动续费资源,ALL-全部资源),默认为全部 (Optional) */
RenewStatus *string `json:"renewStatus"`
/* 资源计费类型(CONFIG-按配置,FLOW-按用量,MONTHLY-包年包月),不传显示全部计费类型的资源 (Optional) */
BillingType *string `json:"billingType"`
/* 资源到期类型(EXPIRED-已到期,UNEXPIRED-未到期,ONE-1天内到期,THREE-3天内到期,SEVEN-7天内到期,ALL_TIME-全部),默认为全部 (Optional) */
ExpireType *string `json:"expireType"`
/* 主机绑定的内网IP地址 (Optional) */
IpAddress *string `json:"ipAddress"`
/* 当前页码,不传默认为1 (Optional) */
PageNumber *int `json:"pageNumber"`
/* 每页条数,不传默认为10 (Optional) */
PageSize *int `json:"pageSize"`
}
type RelationResource ¶
type RelationResource struct {
/* 业务线 (Optional) */
AppCode string `json:"appCode"`
/* 产品线 (Optional) */
ServiceCode string `json:"serviceCode"`
/* 资源ID (Optional) */
ResourceId string `json:"resourceId"`
/* 资源名称 (Optional) */
ResourceName string `json:"resourceName"`
/* 地域 (Optional) */
Region string `json:"region"`
/* 资源计费类型(CONFIG-按配置,FLOW-按用量,MONTHLY-包年包月) (Optional) */
BillingType string `json:"billingType"`
/* 资源到期时间 (Optional) */
ExpireTime string `json:"expireTime"`
/* 倒计时 (Optional) */
LastTime int `json:"lastTime"`
/* 开通自动续费状态(UNOPENED-未开通,OPENED-已开通) (Optional) */
AutoRenewStatus string `json:"autoRenewStatus"`
/* 扩展字段,包括数据库类型、资源特殊说明等 (Optional) */
ExtendField string `json:"extendField"`
}
type RenewInstanceParam ¶
type RenewInstanceParam struct {
/* 业务线 */
AppCode string `json:"appCode"`
/* 产品线 */
ServiceCode string `json:"serviceCode"`
/* 续费时长(timeUnit=MONTH时只能传1、2、3、4、5、6、7、8、9,timeUnit=YEAR时只能传1、2、3) */
TimeSpan int `json:"timeSpan"`
/* 时间单位(MONTH-月,YEAR-年) */
TimeUnit string `json:"timeUnit"`
/* 待续费资源ID列表,英文逗号分隔 */
InstanceIds string `json:"instanceIds"`
/* 是否统一到期日续费(YES-是,NO-否),默认为NO (Optional) */
UnifyDate *string `json:"unifyDate"`
/* 是否自动支付,默认为true,外部用户调用时只能传true (Optional) */
AutoPay *bool `json:"autoPay"`
/* 支付成功后的回调地址 (Optional) */
ReturnURL *string `json:"returnURL"`
}
type ResourceMapResult ¶
type ResourceMapResult struct {
/* 产品线 (Optional) */
ServiceCode string `json:"serviceCode"`
/* 该产品线的已过期资源信息 (Optional) */
ResourceList []QueryExpiredResourceResultVo `json:"resourceList"`
/* 该产品线的已过期资源总数 (Optional) */
TotalNumber int `json:"totalNumber"`
/* 该产品线的已过期资源ID信息 (Optional) */
ResourceIdList []string `json:"resourceIdList"`
}
type SetExpiredRenewParam ¶ added in v1.13.0
type SetExpiredRenewParam struct {
/* 业务线-必传 */
AppCode string `json:"appCode"`
/* 产品线-必传 */
ServiceCode string `json:"serviceCode"`
/* 地域-必传 */
Region string `json:"region"`
/* 资源id列表,英文逗号分隔-必传 */
ResourceIds string `json:"resourceIds"`
/* 过期资源续费状态-必传:YES-续费;NO-不续费 */
RenewStatus string `json:"renewStatus"`
/* 绑定资源过期续费状态-必传:YES-续费;NO-不续费 (Optional) */
RelationStatus string `json:"relationStatus"`
}
type SetRenewalParam ¶
type SetRenewalParam struct {
/* 业务线 */
AppCode string `json:"appCode"`
/* 产品线 */
ServiceCode string `json:"serviceCode"`
/* 续费时长 (Optional) */
TimeSpan *int `json:"timeSpan"`
/* 时间单位(MONTH-月,YEAR-年) (Optional) */
TimeUnit *string `json:"timeUnit"`
/* 资源ID列表,英文逗号分隔 */
InstanceIds string `json:"instanceIds"`
/* 自动续费状态(OPEN-开通自动续费,CLOSE-关闭自动续费,MODIFY-修改自动续费) */
AutoRenewStatus string `json:"autoRenewStatus"`
/* 是否绑定关联资源一并开通自动续费(UNBIND:不绑定,BIND:绑定) (Optional) */
AllAutoPay *string `json:"allAutoPay"`
}
Click to show internal directories.
Click to hide internal directories.