From ef1b3f1b85c6c9af2b68482f3ffc2445882d57d0 Mon Sep 17 00:00:00 2001 From: UCloud Date: Tue, 14 Mar 2023 09:53:09 +0800 Subject: [PATCH] sdk: rolling update for 0.21.51 (#376) --- services/ipsecvpn/models.go | 60 +- services/pathx/models.go | 102 +- services/uads/apis.go | 1999 +++++++++++++++++++++++++++++++++++ services/uads/client.go | 22 + services/uads/doc.go | 13 + services/uads/models.go | 381 +++++++ services/ubill/models.go | 32 +- services/ucdn/models.go | 76 +- services/uec/models.go | 48 +- services/uhost/apis.go | 70 +- services/uhost/models.go | 160 +-- services/uk8s/apis.go | 18 +- services/ulb/models.go | 84 +- services/umongodb/models.go | 84 +- services/unet/models.go | 30 +- services/uphost/models.go | 54 +- services/vpc/models.go | 24 +- tests/setup_test.go | 8 +- ucloud/version/version.go | 2 +- 19 files changed, 2844 insertions(+), 423 deletions(-) create mode 100644 services/uads/apis.go create mode 100644 services/uads/client.go create mode 100644 services/uads/doc.go create mode 100644 services/uads/models.go diff --git a/services/ipsecvpn/models.go b/services/ipsecvpn/models.go index 710a6636..e8c9dbc6 100644 --- a/services/ipsecvpn/models.go +++ b/services/ipsecvpn/models.go @@ -80,6 +80,36 @@ type VPNGatewayDataSet struct { VPNGatewayName string } +/* +IPSecData - IPSec参数 +*/ +type IPSecData struct { + + // IPSec通道中使用的认证算法 + IPSecAuthenticationAlgorithm string + + // IPSec通道中使用的加密算法 + IPSecEncryptionAlgorithm string + + // 指定VPN连接的本地子网,用逗号分隔 + IPSecLocalSubnetIds []string + + // 是否开启PFS功能,Disable表示关闭,数字表示DH组 + IPSecPFSDhGroup string + + // 使用的安全协议,ESP或AH + IPSecProtocol string + + // 指定VPN连接的客户网段,用逗号分隔 + IPSecRemoteSubnets []string + + // IPSec中SA的生存时间 + IPSecSALifetime string + + // IPSec中SA的生存时间(以字节计) + IPSecSALifetimeBytes string +} + /* IKEData - IKE信息 */ @@ -113,36 +143,6 @@ type IKEData struct { IKEVersion string } -/* -IPSecData - IPSec参数 -*/ -type IPSecData struct { - - // IPSec通道中使用的认证算法 - IPSecAuthenticationAlgorithm string - - // IPSec通道中使用的加密算法 - IPSecEncryptionAlgorithm string - - // 指定VPN连接的本地子网,用逗号分隔 - IPSecLocalSubnetIds []string - - // 是否开启PFS功能,Disable表示关闭,数字表示DH组 - IPSecPFSDhGroup string - - // 使用的安全协议,ESP或AH - IPSecProtocol string - - // 指定VPN连接的客户网段,用逗号分隔 - IPSecRemoteSubnets []string - - // IPSec中SA的生存时间 - IPSecSALifetime string - - // IPSec中SA的生存时间(以字节计) - IPSecSALifetimeBytes string -} - /* VPNTunnelDataSet - DescribeVPNTunnel信息 */ diff --git a/services/pathx/models.go b/services/pathx/models.go index 225d6e09..e3624e06 100644 --- a/services/pathx/models.go +++ b/services/pathx/models.go @@ -210,18 +210,15 @@ type SrcAreaInfo struct { } /* -ForwardTask - 全球统一接入转发端口任务信息 +AccelerationAreaInfos - 加速大区信息 */ -type ForwardTask struct { - - // 加速端口 - Port int +type AccelerationAreaInfos struct { - // 转发协议,枚举值["TCP","UDP","HTTPHTTP","HTTPSHTTP","HTTPSHTTPS","WSWS","WSSWS","WSSWSS"]。TCP和UDP代表四层转发,其余为七层转发。 - Protocol string + // 加速区code + AccelerationArea string - // 源站服务器监听的端口号 - RSPort int + // 加速节点信息 + AccelerationNodes []SrcAreaInfo } /* @@ -237,15 +234,18 @@ type OutPublicIpInfo struct { } /* -AccelerationAreaInfos - 加速大区信息 +ForwardTask - 全球统一接入转发端口任务信息 */ -type AccelerationAreaInfos struct { +type ForwardTask struct { - // 加速区code - AccelerationArea string + // 加速端口 + Port int - // 加速节点信息 - AccelerationNodes []SrcAreaInfo + // 转发协议,枚举值["TCP","UDP","HTTPHTTP","HTTPSHTTP","HTTPSHTTPS","WSWS","WSSWS","WSSWSS"]。TCP和UDP代表四层转发,其余为七层转发。 + Protocol string + + // 源站服务器监听的端口号 + RSPort int } /* @@ -359,6 +359,42 @@ type AccelerationInfo struct { NodeInfo []NodeDelays } +/* +UGAL7Forwarder - UGA实例 7层转发器信息 +*/ +type UGAL7Forwarder struct { + + // 接入端口 + Port int + + // 转发协议,枚举值["TCP","UDP","HTTPHTTP","HTTPSHTTP","HTTPSHTTPS"]。TCP和UDP代表四层转发,其余为七层转发 + Protocol string + + // RSPort,源站监听端口 + RSPort int + + // 证书ID + SSLId string + + // 证书名称 + SSLName string +} + +/* +UGAL4Forwarder - UGA实例 4层转发器信息 +*/ +type UGAL4Forwarder struct { + + // 接入端口 + Port int + + // 转发协议,枚举值["TCP","UDP","HTTPHTTP","HTTPSHTTP","HTTPSHTTPS"]。TCP和UDP代表四层转发,其余为七层转发 + Protocol string + + // RSPort,源站监听端口 + RSPort int +} + /* UPathSet - uga关联的upath信息 */ @@ -401,42 +437,6 @@ type UGAATask struct { Protocol string } -/* -UGAL4Forwarder - UGA实例 4层转发器信息 -*/ -type UGAL4Forwarder struct { - - // 接入端口 - Port int - - // 转发协议,枚举值["TCP","UDP","HTTPHTTP","HTTPSHTTP","HTTPSHTTPS"]。TCP和UDP代表四层转发,其余为七层转发 - Protocol string - - // RSPort,源站监听端口 - RSPort int -} - -/* -UGAL7Forwarder - UGA实例 7层转发器信息 -*/ -type UGAL7Forwarder struct { - - // 接入端口 - Port int - - // 转发协议,枚举值["TCP","UDP","HTTPHTTP","HTTPSHTTP","HTTPSHTTPS"]。TCP和UDP代表四层转发,其余为七层转发 - Protocol string - - // RSPort,源站监听端口 - RSPort int - - // 证书ID - SSLId string - - // 证书名称 - SSLName string -} - /* UGAAInfo - 全球加速实例信息 */ diff --git a/services/uads/apis.go b/services/uads/apis.go new file mode 100644 index 00000000..472cd1e1 --- /dev/null +++ b/services/uads/apis.go @@ -0,0 +1,1999 @@ +// Code is generated by ucloud-model, DO NOT EDIT IT. + +package uads + +import ( + "github.com/ucloud/ucloud-sdk-go/ucloud/request" + "github.com/ucloud/ucloud-sdk-go/ucloud/response" +) + +// UADS API Schema + +// AddHighProtectGameIPInfoRequest is request schema for AddHighProtectGameIPInfo action +type AddHighProtectGameIPInfoRequest struct { + request.CommonBase + + // 代金券ID + CouponId *string `required:"false"` + + // 套餐线路类型, 如果是BGP的线路, 则为BGP;如果为双线, 则可选TELECOM, UNICOM;如果为海外, 则为INTERNATIONAL; + LineType *string `required:"true"` + + // 备注,默认为空. + Remark *string `required:"false"` + + // 资源Id + ResourceId *string `required:"true"` + + // IP类型,取值范围为:TypeFree, TypeCharge + TypeIP *string `required:"true"` + + // 用户的源站ip + UserIP *string `required:"true"` +} + +// AddHighProtectGameIPInfoResponse is response schema for AddHighProtectGameIPInfo action +type AddHighProtectGameIPInfoResponse struct { + response.CommonBase + + // cname记录 + Cname string + + // 防御IP + DefenceIP string + + // IPId + IPId int + + // 源IP + SrcIP string +} + +// NewAddHighProtectGameIPInfoRequest will create request of AddHighProtectGameIPInfo action. +func (c *UADSClient) NewAddHighProtectGameIPInfoRequest() *AddHighProtectGameIPInfoRequest { + req := &AddHighProtectGameIPInfoRequest{} + + // setup request with client config + c.Client.SetupRequest(req) + + // setup retryable with default retry policy (retry for non-create action and common error) + req.SetRetryable(false) + return req +} + +/* +API: AddHighProtectGameIPInfo + +添加代理ip +*/ +func (c *UADSClient) AddHighProtectGameIPInfo(req *AddHighProtectGameIPInfoRequest) (*AddHighProtectGameIPInfoResponse, error) { + var err error + var res AddHighProtectGameIPInfoResponse + + reqCopier := *req + + err = c.Client.InvokeAction("AddHighProtectGameIPInfo", &reqCopier, &res) + if err != nil { + return &res, err + } + + return &res, nil +} + +// AddNapAllowListDomainRequest is request schema for AddNapAllowListDomain action +type AddNapAllowListDomainRequest struct { + request.CommonBase + + // 域名,N从0开始,多个域名:Domain.0、Domain.1、... + Domain []string `required:"true"` + + // 资源ID + ResourceId *string `required:"true"` +} + +// AddNapAllowListDomainResponse is response schema for AddNapAllowListDomain action +type AddNapAllowListDomainResponse struct { + response.CommonBase + + // 域名配置结果 + Data []DomainConfigResult +} + +// NewAddNapAllowListDomainRequest will create request of AddNapAllowListDomain action. +func (c *UADSClient) NewAddNapAllowListDomainRequest() *AddNapAllowListDomainRequest { + req := &AddNapAllowListDomainRequest{} + + // setup request with client config + c.Client.SetupRequest(req) + + // setup retryable with default retry policy (retry for non-create action and common error) + req.SetRetryable(false) + return req +} + +/* +API: AddNapAllowListDomain + +添加域名允许列表 +*/ +func (c *UADSClient) AddNapAllowListDomain(req *AddNapAllowListDomainRequest) (*AddNapAllowListDomainResponse, error) { + var err error + var res AddNapAllowListDomainResponse + + reqCopier := *req + + err = c.Client.InvokeAction("AddNapAllowListDomain", &reqCopier, &res) + if err != nil { + return &res, err + } + + return &res, nil +} + +// BindNapIPRequest is request schema for BindNapIP action +type BindNapIPRequest struct { + request.CommonBase + + // [公共参数] 项目ID。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + // ProjectId *string `required:"true"` + + // 绑定的资源ID + BindResourceId *string `required:"true"` + + // EIP资源ID + EIPId *string `required:"true"` + + // 高防IP + NapIp *string `required:"true"` + + // 高防资源ID + ResourceId *string `required:"true"` + + // 绑定的资源类型(uhost:云主机,ulb:负载均衡,upm:物理机) + ResourceType *string `required:"true"` +} + +// BindNapIPResponse is response schema for BindNapIP action +type BindNapIPResponse struct { + response.CommonBase + + // 错误信息 + Message string +} + +// NewBindNapIPRequest will create request of BindNapIP action. +func (c *UADSClient) NewBindNapIPRequest() *BindNapIPRequest { + req := &BindNapIPRequest{} + + // setup request with client config + c.Client.SetupRequest(req) + + // setup retryable with default retry policy (retry for non-create action and common error) + req.SetRetryable(true) + return req +} + +/* +API: BindNapIP + +直连高防:将尚未使用的高防EIP绑定到指定的资源 +*/ +func (c *UADSClient) BindNapIP(req *BindNapIPRequest) (*BindNapIPResponse, error) { + var err error + var res BindNapIPResponse + + reqCopier := *req + + err = c.Client.InvokeAction("BindNapIP", &reqCopier, &res) + if err != nil { + return &res, err + } + + return &res, nil +} + +// BuyHighProtectGameServiceRequest is request schema for BuyHighProtectGameService action +type BuyHighProtectGameServiceRequest struct { + request.CommonBase + + // [公共参数] 项目ID。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + // ProjectId *string `required:"true"` + + // 接入模式,默认为:IP;Domain:网站接入、IP:非网站接入 + AccessMode *string `required:"false"` + + // 线路区域, 可取范围{"SouthChina", "EastChina"} + AreaLine *string `required:"true"` + + // 计费方式 ,取值范围 {"Month", "Year", "Dynamic", "Day"};其中华东双线周付使用Day,其他支持的周付使用Dynamic; + ChargeType *string `required:"true"` + + // 代金券ID + CouponId *string `required:"false"` + + // DDoS基础防护值(当购买套餐为多种线路的时候,顺序为,电信,联通,移动...,当为单线的时候只传DefenceDDosBaseFlowArr.0) + DefenceDDosBaseFlowArr []string `required:"false"` + + // DDoS最大防护值(当购买套餐为多种线路的时候,顺序为,电信,联通,移动...;当为单线的时候只传DefenceDDosMaxFlowArr.0) + DefenceDDosMaxFlowArr []string `required:"false"` + + // 防御类型,默认为TypeFixed; 取值范围{"TypeFixed", "TypeDynamic"} + DefenceType *string `required:"false"` + + // 购买的套餐所在机房,取值范围{"Hangzhou2", "Hangzhou", "Xiamen"} + EngineRoom []string `required:"true"` + + // 转发类型,默认为:Proxy;Proxy:代理、Passthrough:透传 + ForwardType *string `required:"false"` + + // 高防服务名称 + HighProtectGameServiceName *string `required:"false"` + + // 'default': 'DUPLET', 取值范围 {"DUPLET", "BGP"} + LineType *string `required:"true"` + + // 计费时长 + Quantity *int `required:"true"` + + // 带宽 + SrcBandwidth *int `required:"true"` + + // 供应商编号 + Vendor *int `required:"false"` +} + +// BuyHighProtectGameServiceResponse is response schema for BuyHighProtectGameService action +type BuyHighProtectGameServiceResponse struct { + response.CommonBase + + // 返回的用户资源信息 + ResourceInfo ResourceInfo +} + +// NewBuyHighProtectGameServiceRequest will create request of BuyHighProtectGameService action. +func (c *UADSClient) NewBuyHighProtectGameServiceRequest() *BuyHighProtectGameServiceRequest { + req := &BuyHighProtectGameServiceRequest{} + + // setup request with client config + c.Client.SetupRequest(req) + + // setup retryable with default retry policy (retry for non-create action and common error) + req.SetRetryable(false) + return req +} + +/* +API: BuyHighProtectGameService + +购买高防服务 +*/ +func (c *UADSClient) BuyHighProtectGameService(req *BuyHighProtectGameServiceRequest) (*BuyHighProtectGameServiceResponse, error) { + var err error + var res BuyHighProtectGameServiceResponse + + reqCopier := *req + + err = c.Client.InvokeAction("BuyHighProtectGameService", &reqCopier, &res) + if err != nil { + return &res, err + } + + return &res, nil +} + +// CreateBGPServiceIPRequest is request schema for CreateBGPServiceIP action +type CreateBGPServiceIPRequest struct { + request.CommonBase + + // 高防IP对应机房(直连高防必须携带) + EIPRegion *string `required:"false"` + + // 备注,默认为空 + Remark *string `required:"false"` + + // 资源id,表示归属在哪个高防服务下 + ResourceId *string `required:"true"` + + // ip的类型, 默认是TypeFree + TypeIP *string `required:"false"` +} + +// CreateBGPServiceIPResponse is response schema for CreateBGPServiceIP action +type CreateBGPServiceIPResponse struct { + response.CommonBase + + // cname记录 + Cname string + + // 分配的BGP高防IP的IP地址 + DefenceIP string + + // 是否热备份开启 + EnableSwitch int + + // IPId + IPId int +} + +// NewCreateBGPServiceIPRequest will create request of CreateBGPServiceIP action. +func (c *UADSClient) NewCreateBGPServiceIPRequest() *CreateBGPServiceIPRequest { + req := &CreateBGPServiceIPRequest{} + + // setup request with client config + c.Client.SetupRequest(req) + + // setup retryable with default retry policy (retry for non-create action and common error) + req.SetRetryable(false) + return req +} + +/* +API: CreateBGPServiceIP + +分配一个BGP IP +*/ +func (c *UADSClient) CreateBGPServiceIP(req *CreateBGPServiceIPRequest) (*CreateBGPServiceIPResponse, error) { + var err error + var res CreateBGPServiceIPResponse + + reqCopier := *req + + err = c.Client.InvokeAction("CreateBGPServiceIP", &reqCopier, &res) + if err != nil { + return &res, err + } + + return &res, nil +} + +// DeleteBGPServiceFwdRuleRequest is request schema for DeleteBGPServiceFwdRule action +type DeleteBGPServiceFwdRuleRequest struct { + request.CommonBase + + // 资源id + ResourceId *string `required:"true"` + + // 需要删除的转发规则ID + RuleIndex *int `required:"true"` +} + +// DeleteBGPServiceFwdRuleResponse is response schema for DeleteBGPServiceFwdRule action +type DeleteBGPServiceFwdRuleResponse struct { + response.CommonBase +} + +// NewDeleteBGPServiceFwdRuleRequest will create request of DeleteBGPServiceFwdRule action. +func (c *UADSClient) NewDeleteBGPServiceFwdRuleRequest() *DeleteBGPServiceFwdRuleRequest { + req := &DeleteBGPServiceFwdRuleRequest{} + + // setup request with client config + c.Client.SetupRequest(req) + + // setup retryable with default retry policy (retry for non-create action and common error) + req.SetRetryable(true) + return req +} + +/* +API: DeleteBGPServiceFwdRule + +删除转发规则 +*/ +func (c *UADSClient) DeleteBGPServiceFwdRule(req *DeleteBGPServiceFwdRuleRequest) (*DeleteBGPServiceFwdRuleResponse, error) { + var err error + var res DeleteBGPServiceFwdRuleResponse + + reqCopier := *req + + err = c.Client.InvokeAction("DeleteBGPServiceFwdRule", &reqCopier, &res) + if err != nil { + return &res, err + } + + return &res, nil +} + +// DeleteBGPServiceIPRequest is request schema for DeleteBGPServiceIP action +type DeleteBGPServiceIPRequest struct { + request.CommonBase + + // [公共参数] 机房(直接模式高防需要传) + // Region *string `required:"false"` + + // 需要删除的高防IP + DefenceIp *string `required:"true"` + + // 资源id + ResourceId *string `required:"true"` +} + +// DeleteBGPServiceIPResponse is response schema for DeleteBGPServiceIP action +type DeleteBGPServiceIPResponse struct { + response.CommonBase +} + +// NewDeleteBGPServiceIPRequest will create request of DeleteBGPServiceIP action. +func (c *UADSClient) NewDeleteBGPServiceIPRequest() *DeleteBGPServiceIPRequest { + req := &DeleteBGPServiceIPRequest{} + + // setup request with client config + c.Client.SetupRequest(req) + + // setup retryable with default retry policy (retry for non-create action and common error) + req.SetRetryable(true) + return req +} + +/* +API: DeleteBGPServiceIP + +删除BGP高防IP +*/ +func (c *UADSClient) DeleteBGPServiceIP(req *DeleteBGPServiceIPRequest) (*DeleteBGPServiceIPResponse, error) { + var err error + var res DeleteBGPServiceIPResponse + + reqCopier := *req + + err = c.Client.InvokeAction("DeleteBGPServiceIP", &reqCopier, &res) + if err != nil { + return &res, err + } + + return &res, nil +} + +// DeleteHighProtectGameIPInfoRequest is request schema for DeleteHighProtectGameIPInfo action +type DeleteHighProtectGameIPInfoRequest struct { + request.CommonBase + + // 要删除的高防ip + DefenceIp *string `required:"true"` + + // 资源ID + ResourceId *string `required:"true"` +} + +// DeleteHighProtectGameIPInfoResponse is response schema for DeleteHighProtectGameIPInfo action +type DeleteHighProtectGameIPInfoResponse struct { + response.CommonBase +} + +// NewDeleteHighProtectGameIPInfoRequest will create request of DeleteHighProtectGameIPInfo action. +func (c *UADSClient) NewDeleteHighProtectGameIPInfoRequest() *DeleteHighProtectGameIPInfoRequest { + req := &DeleteHighProtectGameIPInfoRequest{} + + // setup request with client config + c.Client.SetupRequest(req) + + // setup retryable with default retry policy (retry for non-create action and common error) + req.SetRetryable(true) + return req +} + +/* +API: DeleteHighProtectGameIPInfo + +删除高防IP +*/ +func (c *UADSClient) DeleteHighProtectGameIPInfo(req *DeleteHighProtectGameIPInfoRequest) (*DeleteHighProtectGameIPInfoResponse, error) { + var err error + var res DeleteHighProtectGameIPInfoResponse + + reqCopier := *req + + err = c.Client.InvokeAction("DeleteHighProtectGameIPInfo", &reqCopier, &res) + if err != nil { + return &res, err + } + + return &res, nil +} + +// DeleteHighProtectGameServiceRequest is request schema for DeleteHighProtectGameService action +type DeleteHighProtectGameServiceRequest struct { + request.CommonBase + + // 删除的资源Id + ResourceId *string `required:"true"` +} + +// DeleteHighProtectGameServiceResponse is response schema for DeleteHighProtectGameService action +type DeleteHighProtectGameServiceResponse struct { + response.CommonBase +} + +// NewDeleteHighProtectGameServiceRequest will create request of DeleteHighProtectGameService action. +func (c *UADSClient) NewDeleteHighProtectGameServiceRequest() *DeleteHighProtectGameServiceRequest { + req := &DeleteHighProtectGameServiceRequest{} + + // setup request with client config + c.Client.SetupRequest(req) + + // setup retryable with default retry policy (retry for non-create action and common error) + req.SetRetryable(true) + return req +} + +/* +API: DeleteHighProtectGameService + +删除高防 +*/ +func (c *UADSClient) DeleteHighProtectGameService(req *DeleteHighProtectGameServiceRequest) (*DeleteHighProtectGameServiceResponse, error) { + var err error + var res DeleteHighProtectGameServiceResponse + + reqCopier := *req + + err = c.Client.InvokeAction("DeleteHighProtectGameService", &reqCopier, &res) + if err != nil { + return &res, err + } + + return &res, nil +} + +// DeleteNapAllowListDomainRequest is request schema for DeleteNapAllowListDomain action +type DeleteNapAllowListDomainRequest struct { + request.CommonBase + + // 域名,N从0开始,多个域名:Domain.0、Domain.1、... + Domain []string `required:"true"` + + // 资源ID + ResourceId *string `required:"true"` +} + +// DeleteNapAllowListDomainResponse is response schema for DeleteNapAllowListDomain action +type DeleteNapAllowListDomainResponse struct { + response.CommonBase + + // 域名配置结果 + Data []DomainConfigResult +} + +// NewDeleteNapAllowListDomainRequest will create request of DeleteNapAllowListDomain action. +func (c *UADSClient) NewDeleteNapAllowListDomainRequest() *DeleteNapAllowListDomainRequest { + req := &DeleteNapAllowListDomainRequest{} + + // setup request with client config + c.Client.SetupRequest(req) + + // setup retryable with default retry policy (retry for non-create action and common error) + req.SetRetryable(true) + return req +} + +/* +API: DeleteNapAllowListDomain + +删除域名允许列表 +*/ +func (c *UADSClient) DeleteNapAllowListDomain(req *DeleteNapAllowListDomainRequest) (*DeleteNapAllowListDomainResponse, error) { + var err error + var res DeleteNapAllowListDomainResponse + + reqCopier := *req + + err = c.Client.InvokeAction("DeleteNapAllowListDomain", &reqCopier, &res) + if err != nil { + return &res, err + } + + return &res, nil +} + +// DescribeBuyHighProtectGameIPPriceRequest is request schema for DescribeBuyHighProtectGameIPPrice action +type DescribeBuyHighProtectGameIPPriceRequest struct { + request.CommonBase + + // 付费方式, 枚举值为: Year, 按年付费; Month, 按月付费; Dynamic, 按需付费(需开启权限); Trial + ChargeType *string `required:"true"` + + // 购买数量 + Quantity *int `required:"true"` + + // 资源ID + ResourceId *string `required:"true"` +} + +// DescribeBuyHighProtectGameIPPriceResponse is response schema for DescribeBuyHighProtectGameIPPrice action +type DescribeBuyHighProtectGameIPPriceResponse struct { + response.CommonBase + + // 溢价 + PremiumPrice float64 + + // 单位价格 + UnitPrice float64 +} + +// NewDescribeBuyHighProtectGameIPPriceRequest will create request of DescribeBuyHighProtectGameIPPrice action. +func (c *UADSClient) NewDescribeBuyHighProtectGameIPPriceRequest() *DescribeBuyHighProtectGameIPPriceRequest { + req := &DescribeBuyHighProtectGameIPPriceRequest{} + + // setup request with client config + c.Client.SetupRequest(req) + + // setup retryable with default retry policy (retry for non-create action and common error) + req.SetRetryable(true) + return req +} + +/* +API: DescribeBuyHighProtectGameIPPrice + +获取购买IP的价格 +*/ +func (c *UADSClient) DescribeBuyHighProtectGameIPPrice(req *DescribeBuyHighProtectGameIPPriceRequest) (*DescribeBuyHighProtectGameIPPriceResponse, error) { + var err error + var res DescribeBuyHighProtectGameIPPriceResponse + + reqCopier := *req + + err = c.Client.InvokeAction("DescribeBuyHighProtectGameIPPrice", &reqCopier, &res) + if err != nil { + return &res, err + } + + return &res, nil +} + +// DescribeHighProtectGameIPInfoRequest is request schema for DescribeHighProtectGameIPInfo action +type DescribeHighProtectGameIPInfoRequest struct { + request.CommonBase + + // 返回数据长度,默认为50。 + Limit *int `required:"false"` + + // 列表起始位置偏移量,默认为0。 + Offset *int `required:"false"` + + // 资源短id + ResourceId *string `required:"true"` +} + +// DescribeHighProtectGameIPInfoResponse is response schema for DescribeHighProtectGameIPInfo action +type DescribeHighProtectGameIPInfoResponse struct { + response.CommonBase + + // 可用剩余ip配额数 + AvailableIPQuota int + + // 高防IP信息 + GameIPInfo []GameIpInfoTotal + + // 已经配置的总数 + TotalCount int +} + +// NewDescribeHighProtectGameIPInfoRequest will create request of DescribeHighProtectGameIPInfo action. +func (c *UADSClient) NewDescribeHighProtectGameIPInfoRequest() *DescribeHighProtectGameIPInfoRequest { + req := &DescribeHighProtectGameIPInfoRequest{} + + // setup request with client config + c.Client.SetupRequest(req) + + // setup retryable with default retry policy (retry for non-create action and common error) + req.SetRetryable(true) + return req +} + +/* +API: DescribeHighProtectGameIPInfo + +获取高防IP信息 +*/ +func (c *UADSClient) DescribeHighProtectGameIPInfo(req *DescribeHighProtectGameIPInfoRequest) (*DescribeHighProtectGameIPInfoResponse, error) { + var err error + var res DescribeHighProtectGameIPInfoResponse + + reqCopier := *req + + err = c.Client.InvokeAction("DescribeHighProtectGameIPInfo", &reqCopier, &res) + if err != nil { + return &res, err + } + + return &res, nil +} + +// DescribeNapHistoryStatisticRequest is request schema for DescribeNapHistoryStatistic action +type DescribeNapHistoryStatisticRequest struct { + request.CommonBase + + // 查询粒度。1.分钟粒度 2.小时粒度 3.天粒度 默认为21.分钟粒度,BeginTime开始时间是7天内,EndTime-BeginTime时间跨度最大是1小时2.小时粒度,BeginTime开始时间是30天内,EndTime-BeginTime时间跨度最大是7天3.天粒度,BeginTime开始时间是180天内,EndTime-BeginTime时间跨度最大是90天 + Accuracy *int `required:"false"` + + // 开始时间,Unix时间戳 + BeginTime *int `required:"true"` + + // 结束时间,Unix时间戳 + EndTime *int `required:"true"` + + // 返回数据长度,默认不限制 + Limit *int `required:"false"` + + // 高防IP + NapIP *string `required:"false"` + + // 列表起始位置偏移量,默认为0 + Offset *int `required:"false"` + + // 资源ID + ResourceId *string `required:"true"` +} + +// DescribeNapHistoryStatisticResponse is response schema for DescribeNapHistoryStatistic action +type DescribeNapHistoryStatisticResponse struct { + response.CommonBase + + // 统计数据 + NetStats []NetStats +} + +// NewDescribeNapHistoryStatisticRequest will create request of DescribeNapHistoryStatistic action. +func (c *UADSClient) NewDescribeNapHistoryStatisticRequest() *DescribeNapHistoryStatisticRequest { + req := &DescribeNapHistoryStatisticRequest{} + + // setup request with client config + c.Client.SetupRequest(req) + + // setup retryable with default retry policy (retry for non-create action and common error) + req.SetRetryable(true) + return req +} + +/* +API: DescribeNapHistoryStatistic + +获取高防历史统计 +*/ +func (c *UADSClient) DescribeNapHistoryStatistic(req *DescribeNapHistoryStatisticRequest) (*DescribeNapHistoryStatisticResponse, error) { + var err error + var res DescribeNapHistoryStatisticResponse + + reqCopier := *req + + err = c.Client.InvokeAction("DescribeNapHistoryStatistic", &reqCopier, &res) + if err != nil { + return &res, err + } + + return &res, nil +} + +// DescribeNapRealTimeStatisticRequest is request schema for DescribeNapRealTimeStatistic action +type DescribeNapRealTimeStatisticRequest struct { + request.CommonBase + + // 开始时间,Unix时间戳 + BeginTime *int `required:"true"` + + // 结束时间,Unix时间戳(时间跨度不超过1小时) + EndTime *int `required:"true"` + + // 返回数据长度,默认不限制 + Limit *int `required:"false"` + + // 高防IP + NapIP *string `required:"false"` + + // 列表起始位置偏移量,默认为0 + Offset *int `required:"false"` + + // 资源ID + ResourceId *string `required:"true"` +} + +// DescribeNapRealTimeStatisticResponse is response schema for DescribeNapRealTimeStatistic action +type DescribeNapRealTimeStatisticResponse struct { + response.CommonBase + + // 统计数据 + NetStats []NetStats +} + +// NewDescribeNapRealTimeStatisticRequest will create request of DescribeNapRealTimeStatistic action. +func (c *UADSClient) NewDescribeNapRealTimeStatisticRequest() *DescribeNapRealTimeStatisticRequest { + req := &DescribeNapRealTimeStatisticRequest{} + + // setup request with client config + c.Client.SetupRequest(req) + + // setup retryable with default retry policy (retry for non-create action and common error) + req.SetRetryable(true) + return req +} + +/* +API: DescribeNapRealTimeStatistic + +获取高防实时统计 +*/ +func (c *UADSClient) DescribeNapRealTimeStatistic(req *DescribeNapRealTimeStatisticRequest) (*DescribeNapRealTimeStatisticResponse, error) { + var err error + var res DescribeNapRealTimeStatisticResponse + + reqCopier := *req + + err = c.Client.InvokeAction("DescribeNapRealTimeStatistic", &reqCopier, &res) + if err != nil { + return &res, err + } + + return &res, nil +} + +// DescribeNapServiceInfoRequest is request schema for DescribeNapServiceInfo action +type DescribeNapServiceInfoRequest struct { + request.CommonBase + + // [公共参数] 项目ID。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + // ProjectId *string `required:"false"` + + // 返回数据长度,默认为10 + Limit *int `required:"false"` + + // 高防类型;0:全部、1:内地高防、2:海外高防 + NapType *int `required:"false"` + + // 列表起始位置偏移量,默认为0 + Offset *int `required:"false"` + + // 资源ID + ResourceId *string `required:"false"` +} + +// DescribeNapServiceInfoResponse is response schema for DescribeNapServiceInfo action +type DescribeNapServiceInfoResponse struct { + response.CommonBase + + // 高防服务信息 + ServiceInfo []ServiceInfo + + // 总数 + TotalCount int +} + +// NewDescribeNapServiceInfoRequest will create request of DescribeNapServiceInfo action. +func (c *UADSClient) NewDescribeNapServiceInfoRequest() *DescribeNapServiceInfoRequest { + req := &DescribeNapServiceInfoRequest{} + + // setup request with client config + c.Client.SetupRequest(req) + + // setup retryable with default retry policy (retry for non-create action and common error) + req.SetRetryable(true) + return req +} + +/* +API: DescribeNapServiceInfo + +获取高防服务信息 +*/ +func (c *UADSClient) DescribeNapServiceInfo(req *DescribeNapServiceInfoRequest) (*DescribeNapServiceInfoResponse, error) { + var err error + var res DescribeNapServiceInfoResponse + + reqCopier := *req + + err = c.Client.InvokeAction("DescribeNapServiceInfo", &reqCopier, &res) + if err != nil { + return &res, err + } + + return &res, nil +} + +// DescribePassthroughNapIPRequest is request schema for DescribePassthroughNapIP action +type DescribePassthroughNapIPRequest struct { + request.CommonBase + + // 限制(传EIPs.0时暂时无效) + Limit *int `required:"false"` + + // 高防IP + NapIp *string `required:"false"` + + // 位偏移(传EIPs.0时暂时无效) + Offset *int `required:"false"` + + // 高防资源ID + ResourceId *string `required:"true"` +} + +// DescribePassthroughNapIPResponse is response schema for DescribePassthroughNapIP action +type DescribePassthroughNapIPResponse struct { + response.CommonBase + + // 合法IP配额 + AvailableIPQuota int + + // EIP信息 + IPInfo []IPInfo + + // 错误信息 + Message string + + // IP总个数 + TotalCount int +} + +// NewDescribePassthroughNapIPRequest will create request of DescribePassthroughNapIP action. +func (c *UADSClient) NewDescribePassthroughNapIPRequest() *DescribePassthroughNapIPRequest { + req := &DescribePassthroughNapIPRequest{} + + // setup request with client config + c.Client.SetupRequest(req) + + // setup retryable with default retry policy (retry for non-create action and common error) + req.SetRetryable(true) + return req +} + +/* +API: DescribePassthroughNapIP + +获取直连高防IP信息 +*/ +func (c *UADSClient) DescribePassthroughNapIP(req *DescribePassthroughNapIPRequest) (*DescribePassthroughNapIPResponse, error) { + var err error + var res DescribePassthroughNapIPResponse + + reqCopier := *req + + err = c.Client.InvokeAction("DescribePassthroughNapIP", &reqCopier, &res) + if err != nil { + return &res, err + } + + return &res, nil +} + +// DescribeUpgradeHighProtectGameServicePriceRequest is request schema for DescribeUpgradeHighProtectGameServicePrice action +type DescribeUpgradeHighProtectGameServicePriceRequest struct { + request.CommonBase + + // 区域,华东和华南,EastChina 和SouthChina + AreaLine *string `required:"false"` + + // DDoS弹性防护值 + DefenceDDosBaseFlowArr []string `required:"false"` + + // DDoS基础防护值 + DefenceDDosMaxFlowArr []string `required:"false"` + + // 防御类型,默认为TypeFixed + DefenceType *string `required:"false"` + + // 代表机房,例如Dongguan Hangzhou + EngineRoom []string `required:"false"` + + // 线路 + LineType *string `required:"false"` + + // 资源ID + ResourceId *string `required:"true"` + + // 带宽,默认100M + SrcBandwidth *int `required:"false"` +} + +// DescribeUpgradeHighProtectGameServicePriceResponse is response schema for DescribeUpgradeHighProtectGameServicePrice action +type DescribeUpgradeHighProtectGameServicePriceResponse struct { + response.CommonBase + + // 收费IP配额 + ChargeIPQuota int + + // 免费IP配额 + FreeIPQuota int + + // 价格 + Price int +} + +// NewDescribeUpgradeHighProtectGameServicePriceRequest will create request of DescribeUpgradeHighProtectGameServicePrice action. +func (c *UADSClient) NewDescribeUpgradeHighProtectGameServicePriceRequest() *DescribeUpgradeHighProtectGameServicePriceRequest { + req := &DescribeUpgradeHighProtectGameServicePriceRequest{} + + // setup request with client config + c.Client.SetupRequest(req) + + // setup retryable with default retry policy (retry for non-create action and common error) + req.SetRetryable(true) + return req +} + +/* +API: DescribeUpgradeHighProtectGameServicePrice + +获取高防升降级价格 +*/ +func (c *UADSClient) DescribeUpgradeHighProtectGameServicePrice(req *DescribeUpgradeHighProtectGameServicePriceRequest) (*DescribeUpgradeHighProtectGameServicePriceResponse, error) { + var err error + var res DescribeUpgradeHighProtectGameServicePriceResponse + + reqCopier := *req + + err = c.Client.InvokeAction("DescribeUpgradeHighProtectGameServicePrice", &reqCopier, &res) + if err != nil { + return &res, err + } + + return &res, nil +} + +// GetBGPServiceFwdRuleRequest is request schema for GetBGPServiceFwdRule action +type GetBGPServiceFwdRuleRequest struct { + request.CommonBase + + // 指定需要查询的IP下的规则 + BgpIP *string `required:"false"` + + // 分页显示的条目数,默认值为32 + Limit *int `required:"false"` + + // 分页显示的起始偏移,默认值为0 + Offset *int `required:"false"` + + // 资源id + ResourceId *string `required:"true"` + + // 查询指定的rule_id, 不填写则默认获取所有的转发规则 + RuleIndex *int `required:"false"` +} + +// GetBGPServiceFwdRuleResponse is response schema for GetBGPServiceFwdRule action +type GetBGPServiceFwdRuleResponse struct { + response.CommonBase + + // 负载模式下可添加的规则数量(根据IP查询才返回此参数) + AvailLoad int + + // 非负载模式下可添加的规则数量(根据IP查询才返回此参数) + AvailNonload int + + // 当前配置的规则中是否存在IP规则(根据IP查询才返回此参数) + IpRuleExist bool + + // 满足要求的数据条目 + RuleCnt int + + // 转发规则信息 + RuleInfo []BGPFwdRule +} + +// NewGetBGPServiceFwdRuleRequest will create request of GetBGPServiceFwdRule action. +func (c *UADSClient) NewGetBGPServiceFwdRuleRequest() *GetBGPServiceFwdRuleRequest { + req := &GetBGPServiceFwdRuleRequest{} + + // setup request with client config + c.Client.SetupRequest(req) + + // setup retryable with default retry policy (retry for non-create action and common error) + req.SetRetryable(true) + return req +} + +/* +API: GetBGPServiceFwdRule + +获取转发规则 +*/ +func (c *UADSClient) GetBGPServiceFwdRule(req *GetBGPServiceFwdRuleRequest) (*GetBGPServiceFwdRuleResponse, error) { + var err error + var res GetBGPServiceFwdRuleResponse + + reqCopier := *req + + err = c.Client.InvokeAction("GetBGPServiceFwdRule", &reqCopier, &res) + if err != nil { + return &res, err + } + + return &res, nil +} + +// GetBGPServiceIPRequest is request schema for GetBGPServiceIP action +type GetBGPServiceIPRequest struct { + request.CommonBase + + // BGP高防IP + BgpIP *string `required:"false"` + + // 分页显示的条目数,默认值为32 + Limit *int `required:"false"` + + // 分页显示的起始偏移,默认值为0 + Offset *int `required:"false"` + + // 资源id + ResourceId *string `required:"true"` +} + +// GetBGPServiceIPResponse is response schema for GetBGPServiceIP action +type GetBGPServiceIPResponse struct { + response.CommonBase + + // 套餐可用的ip配额 + AvailableIPQuota int + + // 返回高防IP的相关信息 + GameIPInfo []GameIpInfoTotal + + // 套餐中已经配置的ip数量 + TotalCount int +} + +// NewGetBGPServiceIPRequest will create request of GetBGPServiceIP action. +func (c *UADSClient) NewGetBGPServiceIPRequest() *GetBGPServiceIPRequest { + req := &GetBGPServiceIPRequest{} + + // setup request with client config + c.Client.SetupRequest(req) + + // setup retryable with default retry policy (retry for non-create action and common error) + req.SetRetryable(true) + return req +} + +/* +API: GetBGPServiceIP + +获取BGP高防IP的信息 +*/ +func (c *UADSClient) GetBGPServiceIP(req *GetBGPServiceIPRequest) (*GetBGPServiceIPResponse, error) { + var err error + var res GetBGPServiceIPResponse + + reqCopier := *req + + err = c.Client.InvokeAction("GetBGPServiceIP", &reqCopier, &res) + if err != nil { + return &res, err + } + + return &res, nil +} + +// GetBuyNapServicePriceRequest is request schema for GetBuyNapServicePrice action +type GetBuyNapServicePriceRequest struct { + request.CommonBase + + // 接入模式,Domain:网站接入、IP:非网站接入;默认为:IP + AccessMode *string `required:"false"` + + // 地区线路 + AreaLine *string `required:"true"` + + // 计费方式 + ChargeType *string `required:"true"` + + // DDoS基础防护流量 + DefenceDDosBaseFlowArr []string `required:"true"` + + // DDoS最大防护流量 + DefenceDDosMaxFlowArr []string `required:"true"` + + // 地区 + EngineRoom []string `required:"true"` + + // 线路类型 + LineType *string `required:"true"` + + // 计费时长 + Quantity *string `required:"true"` + + // 带宽 + SrcBandwidth *string `required:"true"` +} + +// GetBuyNapServicePriceResponse is response schema for GetBuyNapServicePrice action +type GetBuyNapServicePriceResponse struct { + response.CommonBase + + // 收费IP配额 + ChargeIPQuota int + + // 免费IP配额 + FreeIPQuota int + + // 错误信息 + Message string + + // 价格 + Price float64 + + // UDP免费IP配额 + UdpFreeIpQuota int +} + +// NewGetBuyNapServicePriceRequest will create request of GetBuyNapServicePrice action. +func (c *UADSClient) NewGetBuyNapServicePriceRequest() *GetBuyNapServicePriceRequest { + req := &GetBuyNapServicePriceRequest{} + + // setup request with client config + c.Client.SetupRequest(req) + + // setup retryable with default retry policy (retry for non-create action and common error) + req.SetRetryable(true) + return req +} + +/* +API: GetBuyNapServicePrice + +获取高防价格 +*/ +func (c *UADSClient) GetBuyNapServicePrice(req *GetBuyNapServicePriceRequest) (*GetBuyNapServicePriceResponse, error) { + var err error + var res GetBuyNapServicePriceResponse + + reqCopier := *req + + err = c.Client.InvokeAction("GetBuyNapServicePrice", &reqCopier, &res) + if err != nil { + return &res, err + } + + return &res, nil +} + +// GetNapAllowListDomainRequest is request schema for GetNapAllowListDomain action +type GetNapAllowListDomainRequest struct { + request.CommonBase + + // 获取指定域名信息 + Domain *string `required:"false"` + + // 域名模糊查找 + DomainLike *string `required:"false"` + + // 返回数据长度,默认为1000 + Limit *int `required:"false"` + + // 列表起始位置偏移量,默认为0 + Offset *int `required:"false"` + + // 资源ID + ResourceId *string `required:"true"` +} + +// GetNapAllowListDomainResponse is response schema for GetNapAllowListDomain action +type GetNapAllowListDomainResponse struct { + response.CommonBase + + // 域名允许列表 + DomainList []BlockAllowDomainEntry + + // 列表总条目数 + TotalCount int +} + +// NewGetNapAllowListDomainRequest will create request of GetNapAllowListDomain action. +func (c *UADSClient) NewGetNapAllowListDomainRequest() *GetNapAllowListDomainRequest { + req := &GetNapAllowListDomainRequest{} + + // setup request with client config + c.Client.SetupRequest(req) + + // setup retryable with default retry policy (retry for non-create action and common error) + req.SetRetryable(true) + return req +} + +/* +API: GetNapAllowListDomain + +获取域名允许列表 +*/ +func (c *UADSClient) GetNapAllowListDomain(req *GetNapAllowListDomainRequest) (*GetNapAllowListDomainResponse, error) { + var err error + var res GetNapAllowListDomainResponse + + reqCopier := *req + + err = c.Client.InvokeAction("GetNapAllowListDomain", &reqCopier, &res) + if err != nil { + return &res, err + } + + return &res, nil +} + +// GetNapServiceConfigRequest is request schema for GetNapServiceConfig action +type GetNapServiceConfigRequest struct { + request.CommonBase + + // 线路区域 + AreaLine *string `required:"false"` + + // 购买的套餐所在机房 + EngineRoom *string `required:"false"` + + // 线路类型 + LineType *string `required:"false"` + + // 高防类型;0:全部、1:内地高防、:2:亚太高防 + NapType *int `required:"false"` +} + +// GetNapServiceConfigResponse is response schema for GetNapServiceConfig action +type GetNapServiceConfigResponse struct { + response.CommonBase + + // 高防服务配置 + NapServiceConfig []NapServiceConfigEntry +} + +// NewGetNapServiceConfigRequest will create request of GetNapServiceConfig action. +func (c *UADSClient) NewGetNapServiceConfigRequest() *GetNapServiceConfigRequest { + req := &GetNapServiceConfigRequest{} + + // setup request with client config + c.Client.SetupRequest(req) + + // setup retryable with default retry policy (retry for non-create action and common error) + req.SetRetryable(true) + return req +} + +/* +API: GetNapServiceConfig + +获取高防服务配置 +*/ +func (c *UADSClient) GetNapServiceConfig(req *GetNapServiceConfigRequest) (*GetNapServiceConfigResponse, error) { + var err error + var res GetNapServiceConfigResponse + + reqCopier := *req + + err = c.Client.InvokeAction("GetNapServiceConfig", &reqCopier, &res) + if err != nil { + return &res, err + } + + return &res, nil +} + +// ModifyHighProtectGameIPInfoRequest is request schema for ModifyHighProtectGameIPInfo action +type ModifyHighProtectGameIPInfoRequest struct { + request.CommonBase + + // 高防ip + DefenceIp *string `required:"true"` + + // 资源Id + ResourceId *string `required:"true"` + + // 源站IP + UserIP *string `required:"true"` +} + +// ModifyHighProtectGameIPInfoResponse is response schema for ModifyHighProtectGameIPInfo action +type ModifyHighProtectGameIPInfoResponse struct { + response.CommonBase +} + +// NewModifyHighProtectGameIPInfoRequest will create request of ModifyHighProtectGameIPInfo action. +func (c *UADSClient) NewModifyHighProtectGameIPInfoRequest() *ModifyHighProtectGameIPInfoRequest { + req := &ModifyHighProtectGameIPInfoRequest{} + + // setup request with client config + c.Client.SetupRequest(req) + + // setup retryable with default retry policy (retry for non-create action and common error) + req.SetRetryable(true) + return req +} + +/* +API: ModifyHighProtectGameIPInfo + +修改高防IP信息 +*/ +func (c *UADSClient) ModifyHighProtectGameIPInfo(req *ModifyHighProtectGameIPInfoRequest) (*ModifyHighProtectGameIPInfoResponse, error) { + var err error + var res ModifyHighProtectGameIPInfoResponse + + reqCopier := *req + + err = c.Client.InvokeAction("ModifyHighProtectGameIPInfo", &reqCopier, &res) + if err != nil { + return &res, err + } + + return &res, nil +} + +// ModifyHighProtectGameServiceRequest is request schema for ModifyHighProtectGameService action +type ModifyHighProtectGameServiceRequest struct { + request.CommonBase + + // 高防名称 + HighProtectGameServiceName *string `required:"false"` + + // 资源Id + ResourceId *string `required:"true"` +} + +// ModifyHighProtectGameServiceResponse is response schema for ModifyHighProtectGameService action +type ModifyHighProtectGameServiceResponse struct { + response.CommonBase +} + +// NewModifyHighProtectGameServiceRequest will create request of ModifyHighProtectGameService action. +func (c *UADSClient) NewModifyHighProtectGameServiceRequest() *ModifyHighProtectGameServiceRequest { + req := &ModifyHighProtectGameServiceRequest{} + + // setup request with client config + c.Client.SetupRequest(req) + + // setup retryable with default retry policy (retry for non-create action and common error) + req.SetRetryable(true) + return req +} + +/* +API: ModifyHighProtectGameService + +修改高防信息 +*/ +func (c *UADSClient) ModifyHighProtectGameService(req *ModifyHighProtectGameServiceRequest) (*ModifyHighProtectGameServiceResponse, error) { + var err error + var res ModifyHighProtectGameServiceResponse + + reqCopier := *req + + err = c.Client.InvokeAction("ModifyHighProtectGameService", &reqCopier, &res) + if err != nil { + return &res, err + } + + return &res, nil +} + +// ModifyNapServiceAutoRenewRequest is request schema for ModifyNapServiceAutoRenew action +type ModifyNapServiceAutoRenewRequest struct { + request.CommonBase + + // 自动续费开关, 0:关闭;1:开启 + AutoRenew *int `required:"true"` + + // 资源Id + ResourceId *string `required:"true"` +} + +// ModifyNapServiceAutoRenewResponse is response schema for ModifyNapServiceAutoRenew action +type ModifyNapServiceAutoRenewResponse struct { + response.CommonBase +} + +// NewModifyNapServiceAutoRenewRequest will create request of ModifyNapServiceAutoRenew action. +func (c *UADSClient) NewModifyNapServiceAutoRenewRequest() *ModifyNapServiceAutoRenewRequest { + req := &ModifyNapServiceAutoRenewRequest{} + + // setup request with client config + c.Client.SetupRequest(req) + + // setup retryable with default retry policy (retry for non-create action and common error) + req.SetRetryable(true) + return req +} + +/* +API: ModifyNapServiceAutoRenew + +修改高防服务自动续费开关 +*/ +func (c *UADSClient) ModifyNapServiceAutoRenew(req *ModifyNapServiceAutoRenewRequest) (*ModifyNapServiceAutoRenewResponse, error) { + var err error + var res ModifyNapServiceAutoRenewResponse + + reqCopier := *req + + err = c.Client.InvokeAction("ModifyNapServiceAutoRenew", &reqCopier, &res) + if err != nil { + return &res, err + } + + return &res, nil +} + +// RenewHighProtectGameServiceRequest is request schema for RenewHighProtectGameService action +type RenewHighProtectGameServiceRequest struct { + request.CommonBase + + // 区域,华东和华南,EastChina 和SouthChina + AreaLine *string `required:"true"` + + // 计费方式 + ChargeType *string `required:"true"` + + // 代金券ID + CouponId *string `required:"false"` + + // DDoS基础防御值 + DefenceDDosBaseFlowArr []string `required:"false"` + + // DDoS弹性防御值 + DefenceDDosMaxFlowArr []string `required:"false"` + + // 防御类型,默认为TypeFixed + DefenceType *string `required:"false"` + + // 代表机房,例如Dongguan Hangzhou + EngineRoom []string `required:"true"` + + // 线路 + LineType *string `required:"true"` + + // 购买数量 + Quantity *int `required:"true"` + + // 资源ID + ResourceId *string `required:"true"` + + // 带宽,默认100M + SrcBandwidth *int `required:"true"` +} + +// RenewHighProtectGameServiceResponse is response schema for RenewHighProtectGameService action +type RenewHighProtectGameServiceResponse struct { + response.CommonBase + + // 资源信息 + ResourceInfo ResourceInfo +} + +// NewRenewHighProtectGameServiceRequest will create request of RenewHighProtectGameService action. +func (c *UADSClient) NewRenewHighProtectGameServiceRequest() *RenewHighProtectGameServiceRequest { + req := &RenewHighProtectGameServiceRequest{} + + // setup request with client config + c.Client.SetupRequest(req) + + // setup retryable with default retry policy (retry for non-create action and common error) + req.SetRetryable(true) + return req +} + +/* +API: RenewHighProtectGameService + +续费高防服务 +*/ +func (c *UADSClient) RenewHighProtectGameService(req *RenewHighProtectGameServiceRequest) (*RenewHighProtectGameServiceResponse, error) { + var err error + var res RenewHighProtectGameServiceResponse + + reqCopier := *req + + err = c.Client.InvokeAction("RenewHighProtectGameService", &reqCopier, &res) + if err != nil { + return &res, err + } + + return &res, nil +} + +// SetNapDomainEntryRemarkRequest is request schema for SetNapDomainEntryRemark action +type SetNapDomainEntryRemarkRequest struct { + request.CommonBase + + // 域名 + Domain *string `required:"true"` + + // 备注,默认为空 + Remark *string `required:"false"` + + // 资源ID + ResourceId *string `required:"true"` +} + +// SetNapDomainEntryRemarkResponse is response schema for SetNapDomainEntryRemark action +type SetNapDomainEntryRemarkResponse struct { + response.CommonBase +} + +// NewSetNapDomainEntryRemarkRequest will create request of SetNapDomainEntryRemark action. +func (c *UADSClient) NewSetNapDomainEntryRemarkRequest() *SetNapDomainEntryRemarkRequest { + req := &SetNapDomainEntryRemarkRequest{} + + // setup request with client config + c.Client.SetupRequest(req) + + // setup retryable with default retry policy (retry for non-create action and common error) + req.SetRetryable(true) + return req +} + +/* +API: SetNapDomainEntryRemark + +设置域名条目备注 +*/ +func (c *UADSClient) SetNapDomainEntryRemark(req *SetNapDomainEntryRemarkRequest) (*SetNapDomainEntryRemarkResponse, error) { + var err error + var res SetNapDomainEntryRemarkResponse + + reqCopier := *req + + err = c.Client.InvokeAction("SetNapDomainEntryRemark", &reqCopier, &res) + if err != nil { + return &res, err + } + + return &res, nil +} + +// SetNapFwdRuleRemarkRequest is request schema for SetNapFwdRuleRemark action +type SetNapFwdRuleRemarkRequest struct { + request.CommonBase + + // 备注,默认为空 + Remark *string `required:"false"` + + // 资源ID + ResourceId *string `required:"true"` + + // 要修改的规则index + RuleIndex *string `required:"true"` +} + +// SetNapFwdRuleRemarkResponse is response schema for SetNapFwdRuleRemark action +type SetNapFwdRuleRemarkResponse struct { + response.CommonBase +} + +// NewSetNapFwdRuleRemarkRequest will create request of SetNapFwdRuleRemark action. +func (c *UADSClient) NewSetNapFwdRuleRemarkRequest() *SetNapFwdRuleRemarkRequest { + req := &SetNapFwdRuleRemarkRequest{} + + // setup request with client config + c.Client.SetupRequest(req) + + // setup retryable with default retry policy (retry for non-create action and common error) + req.SetRetryable(true) + return req +} + +/* +API: SetNapFwdRuleRemark + +设置高防转发规则备注信息 +*/ +func (c *UADSClient) SetNapFwdRuleRemark(req *SetNapFwdRuleRemarkRequest) (*SetNapFwdRuleRemarkResponse, error) { + var err error + var res SetNapFwdRuleRemarkResponse + + reqCopier := *req + + err = c.Client.InvokeAction("SetNapFwdRuleRemark", &reqCopier, &res) + if err != nil { + return &res, err + } + + return &res, nil +} + +// SetNapIpRemarkRequest is request schema for SetNapIpRemark action +type SetNapIpRemarkRequest struct { + request.CommonBase + + // 高防IP + NapIp *string `required:"true"` + + // 备注,默认为空 + Remark *string `required:"false"` + + // 资源ID + ResourceId *string `required:"true"` +} + +// SetNapIpRemarkResponse is response schema for SetNapIpRemark action +type SetNapIpRemarkResponse struct { + response.CommonBase +} + +// NewSetNapIpRemarkRequest will create request of SetNapIpRemark action. +func (c *UADSClient) NewSetNapIpRemarkRequest() *SetNapIpRemarkRequest { + req := &SetNapIpRemarkRequest{} + + // setup request with client config + c.Client.SetupRequest(req) + + // setup retryable with default retry policy (retry for non-create action and common error) + req.SetRetryable(true) + return req +} + +/* +API: SetNapIpRemark + +设置高防IP的备注信息 +*/ +func (c *UADSClient) SetNapIpRemark(req *SetNapIpRemarkRequest) (*SetNapIpRemarkResponse, error) { + var err error + var res SetNapIpRemarkResponse + + reqCopier := *req + + err = c.Client.InvokeAction("SetNapIpRemark", &reqCopier, &res) + if err != nil { + return &res, err + } + + return &res, nil +} + +// UnBindNapIPRequest is request schema for UnBindNapIP action +type UnBindNapIPRequest struct { + request.CommonBase + + // [公共参数] 项目ID。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + // ProjectId *string `required:"true"` + + // 需要解绑的资源ID + BindResourceId *string `required:"true"` + + // 高防EIP资源ID + EIPId *string `required:"true"` + + // 高防Ip + NapIp *string `required:"true"` + + // 高防资源ID + ResourceId *string `required:"true"` + + // 解绑的资源类型(uhost:云主机,ulb:负载均衡,upm:物理机) + ResourceType *string `required:"true"` +} + +// UnBindNapIPResponse is response schema for UnBindNapIP action +type UnBindNapIPResponse struct { + response.CommonBase + + // 错误信息 + Message string +} + +// NewUnBindNapIPRequest will create request of UnBindNapIP action. +func (c *UADSClient) NewUnBindNapIPRequest() *UnBindNapIPRequest { + req := &UnBindNapIPRequest{} + + // setup request with client config + c.Client.SetupRequest(req) + + // setup retryable with default retry policy (retry for non-create action and common error) + req.SetRetryable(true) + return req +} + +/* +API: UnBindNapIP + +直连高防:将高防EIP从资源上解绑 +*/ +func (c *UADSClient) UnBindNapIP(req *UnBindNapIPRequest) (*UnBindNapIPResponse, error) { + var err error + var res UnBindNapIPResponse + + reqCopier := *req + + err = c.Client.InvokeAction("UnBindNapIP", &reqCopier, &res) + if err != nil { + return &res, err + } + + return &res, nil +} + +// UpdateBGPServiceFwdRuleRequest is request schema for UpdateBGPServiceFwdRule action +type UpdateBGPServiceFwdRuleRequest struct { + request.CommonBase + + // 备份源站的IP + BackupIP *string `required:"false"` + + // 备份源站的端口 + BackupPort *int `required:"false"` + + // 备份源站的toa id + BackupToa *int `required:"false"` + + // BGP的IP + BgpIP *string `required:"true"` + + // 默认为0,为IP协议的转发端口,其余的自定义 + BgpIPPort *int `required:"false"` + + // 转发协议的类型包括三种:默认为“IP”,还可以选择为“TCP”或"UDP" + FwdType *string `required:"false"` + + // 转发协议的类型是否为负载均衡的:默认为“No”,还可以选择为“Yes”。负载模式的规则最多添加2条,非负载模式的规则最多添加8条 + LoadBalance *string `required:"false"` + + // 资源id + ResourceId *string `required:"true"` + + // 规则uuid + RuleID *string `required:"true"` + + // 要修改的规则index + RuleIndex *int `required:"true"` + + // 回源地址,可填 IP地址 或 域名 + SourceAddrArr []string `required:"false"` + + // 表示对源站进行检测:默认为0表示关闭,还可以选择为1表示开启 + SourceDetect *int `required:"false"` + + // 回源端口 + SourcePortArr []string `required:"false"` + + // 回源TOA + SourceToaIDArr []string `required:"false"` +} + +// UpdateBGPServiceFwdRuleResponse is response schema for UpdateBGPServiceFwdRule action +type UpdateBGPServiceFwdRuleResponse struct { + response.CommonBase + + // 转发规则的数据库索引 + RuleIndex int +} + +// NewUpdateBGPServiceFwdRuleRequest will create request of UpdateBGPServiceFwdRule action. +func (c *UADSClient) NewUpdateBGPServiceFwdRuleRequest() *UpdateBGPServiceFwdRuleRequest { + req := &UpdateBGPServiceFwdRuleRequest{} + + // setup request with client config + c.Client.SetupRequest(req) + + // setup retryable with default retry policy (retry for non-create action and common error) + req.SetRetryable(true) + return req +} + +/* +API: UpdateBGPServiceFwdRule + +用于修改BGP高防的规则信息 +*/ +func (c *UADSClient) UpdateBGPServiceFwdRule(req *UpdateBGPServiceFwdRuleRequest) (*UpdateBGPServiceFwdRuleResponse, error) { + var err error + var res UpdateBGPServiceFwdRuleResponse + + reqCopier := *req + + err = c.Client.InvokeAction("UpdateBGPServiceFwdRule", &reqCopier, &res) + if err != nil { + return &res, err + } + + return &res, nil +} + +// UpdateNapFwdRuleDomainResolutionRequest is request schema for UpdateNapFwdRuleDomainResolution action +type UpdateNapFwdRuleDomainResolutionRequest struct { + request.CommonBase + + // 资源ID + ResourceId *string `required:"true"` + + // 要修改的规则index + RuleIndex *int `required:"true"` +} + +// UpdateNapFwdRuleDomainResolutionResponse is response schema for UpdateNapFwdRuleDomainResolution action +type UpdateNapFwdRuleDomainResolutionResponse struct { + response.CommonBase +} + +// NewUpdateNapFwdRuleDomainResolutionRequest will create request of UpdateNapFwdRuleDomainResolution action. +func (c *UADSClient) NewUpdateNapFwdRuleDomainResolutionRequest() *UpdateNapFwdRuleDomainResolutionRequest { + req := &UpdateNapFwdRuleDomainResolutionRequest{} + + // setup request with client config + c.Client.SetupRequest(req) + + // setup retryable with default retry policy (retry for non-create action and common error) + req.SetRetryable(true) + return req +} + +/* +API: UpdateNapFwdRuleDomainResolution + +手动触发域名回源转发规则更新 +*/ +func (c *UADSClient) UpdateNapFwdRuleDomainResolution(req *UpdateNapFwdRuleDomainResolutionRequest) (*UpdateNapFwdRuleDomainResolutionResponse, error) { + var err error + var res UpdateNapFwdRuleDomainResolutionResponse + + reqCopier := *req + + err = c.Client.InvokeAction("UpdateNapFwdRuleDomainResolution", &reqCopier, &res) + if err != nil { + return &res, err + } + + return &res, nil +} + +// UpgradeHighProtectGameServiceRequest is request schema for UpgradeHighProtectGameService action +type UpgradeHighProtectGameServiceRequest struct { + request.CommonBase + + // 区域,华东和华南,EastChina 和SouthChina + AreaLine *string `required:"true"` + + // 代金券ID + CouponId *string `required:"false"` + + // DDoS基础防御值 + DefenceDDosBaseFlowArr []string `required:"false"` + + // DDoS弹性防御值 + DefenceDDosMaxFlowArr []string `required:"false"` + + // 防御类型,默认为TypeFixed + DefenceType *string `required:"false"` + + // 机房 + EngineRoom []string `required:"true"` + + // 线路类型 + LineType *string `required:"true"` + + // 资源ID + ResourceId *string `required:"true"` + + // 业务带宽 + SrcBandwidth *int `required:"true"` +} + +// UpgradeHighProtectGameServiceResponse is response schema for UpgradeHighProtectGameService action +type UpgradeHighProtectGameServiceResponse struct { + response.CommonBase + + // 返回资源信息 + ResourceInfo ResourceInfo +} + +// NewUpgradeHighProtectGameServiceRequest will create request of UpgradeHighProtectGameService action. +func (c *UADSClient) NewUpgradeHighProtectGameServiceRequest() *UpgradeHighProtectGameServiceRequest { + req := &UpgradeHighProtectGameServiceRequest{} + + // setup request with client config + c.Client.SetupRequest(req) + + // setup retryable with default retry policy (retry for non-create action and common error) + req.SetRetryable(true) + return req +} + +/* +API: UpgradeHighProtectGameService + +升降级高防服务 +*/ +func (c *UADSClient) UpgradeHighProtectGameService(req *UpgradeHighProtectGameServiceRequest) (*UpgradeHighProtectGameServiceResponse, error) { + var err error + var res UpgradeHighProtectGameServiceResponse + + reqCopier := *req + + err = c.Client.InvokeAction("UpgradeHighProtectGameService", &reqCopier, &res) + if err != nil { + return &res, err + } + + return &res, nil +} diff --git a/services/uads/client.go b/services/uads/client.go new file mode 100644 index 00000000..53358411 --- /dev/null +++ b/services/uads/client.go @@ -0,0 +1,22 @@ +// Code is generated by ucloud-model, DO NOT EDIT IT. + +package uads + +import ( + "github.com/ucloud/ucloud-sdk-go/ucloud" + "github.com/ucloud/ucloud-sdk-go/ucloud/auth" +) + +// UADSClient is the client of UADS +type UADSClient struct { + *ucloud.Client +} + +// NewClient will return a instance of UADSClient +func NewClient(config *ucloud.Config, credential *auth.Credential) *UADSClient { + meta := ucloud.ClientMeta{Product: "UADS"} + client := ucloud.NewClientWithMeta(config, credential, meta) + return &UADSClient{ + client, + } +} diff --git a/services/uads/doc.go b/services/uads/doc.go new file mode 100644 index 00000000..8f1f684b --- /dev/null +++ b/services/uads/doc.go @@ -0,0 +1,13 @@ +// Code is generated by ucloud-model, DO NOT EDIT IT. + +/* +Package uads include resources of ucloud uads product + +See also + + - API: https://docs.ucloud.cn/api/uads-api/index + - Product: https://www.ucloud.cn/site/product/uads.html + +for detail. +*/ +package uads diff --git a/services/uads/models.go b/services/uads/models.go new file mode 100644 index 00000000..7bbdbb10 --- /dev/null +++ b/services/uads/models.go @@ -0,0 +1,381 @@ +// Code is generated by ucloud-model, DO NOT EDIT IT. + +package uads + +/* +DomainConfigResult - 域名配置结果 +*/ +type DomainConfigResult struct { + + // 错误码 + Code int + + // 域名 + Domain string + + // 提示信息 + Message string +} + +/* +ResourceInfo - 资源信息 +*/ +type ResourceInfo struct { + + // 资源id + ResourceId string +} + +/* +GameIpInfoTotal - 高防ip信息统一描述结构 +*/ +type GameIpInfoTotal struct { + + // 高防IP Cname + Cname string + + // 高防IP + DefenceIP string + + // 线路类型 + LineType string + + // 用户mark + Remark string + + // 规则的个数 + RuleCnt int + + // 回源ip列表 + SrcIP []string + + // ip配置状态 + Status string +} + +/* +NetStatEntry - 统计条目 +*/ +type NetStatEntry struct { + + // 流量,单位:Mbits + Bps float64 + + // 包量,单位:pps + Pps int +} + +/* +NetStats - 网络统计 +*/ +type NetStats struct { + + // 丢弃NetStatEntry + Drop NetStatEntry + + // 出向NetStatEntry + Egress NetStatEntry + + // 入向NetStatEntry + Ingress NetStatEntry + + // Unix时间戳 + Time int +} + +/* +ServiceInfo - 高防服务信息 +*/ +type ServiceInfo struct { + + // 接入模式,Domain:网站接入、IP:非网站接入 + AccessMode string + + // 防护机房所在区域 + AreaLine string + + // 是否开启自动续费 + AutoRenew string + + // 付费类型 + ChargeType string + + // 创建时间 + CreateTime int + + // 套餐基础防护组 + DefenceDDosBaseFlowArr []int + + // 套餐最大防护组 + DefenceDDosMaxFlowArr []int + + // 防护状态 + DefenceStatus string + + // 防护类型 + DefenceType string + + // 防护机房名称 + EngineRoom []string + + // 过期时间 + ExpiredTime int + + // 转发类型,Proxy:代理、Passthrough:透传 + ForwardType string + + // 套餐ID + GameId int + + // 线路类型 + LineType string + + // 套餐名称 + Name string + + // 高防类型,1:内地高防、2:亚太高防 + NapType int + + // 项目ID + ProjectId string + + // region id + RegionId int + + // 资源ID + ResourceId string + + // 业务带宽 + SrcBandwidth int + + // 供应商ID + Vendor int +} + +/* +Resouce - 资源信息 +*/ +type Resouce struct { + + // EIP资源ID + EIPId string + + // 资源ID + ResourceId string + + // 资源名 + ResourceName string + + // 资源类型 + ResourceType string + + // 地区 + Zone string +} + +/* +EIPAddrSet - EIP地址信息 +*/ +type EIPAddrSet struct { + + // IP类型:gaofang + EIPType string + + // 弹性IP地址 + IP string + + // 运营商信息, 枚举值为: BGP: BGP; International: 国际. + OperatorName string +} + +/* +IPInfo - 高防IP信息 +*/ +type IPInfo struct { + + // 创建时间 + CreateTime int + + // 高防IP信息 + EIPAddr []EIPAddrSet + + // EIP资源ID + EIPId string + + // EIP Region + EIPRegion string + + // 资源信息 + Resource Resouce + + // 状态 + Status string + + // 业务组 + Tag string +} + +/* +FwdSourceInfoConf - 转发规则,回源信息配置详细结构 +*/ +type FwdSourceInfoConf struct { + + // 源站IP列表 + IPList []string + + // 源站端口 + Port int + + // 源站,兼容IP和域名 + Source string + + // 源站Toa + Toa int +} + +/* +FwdClientProxyInfo - 转发规则,回源代理配置列表 +*/ +type FwdClientProxyInfo struct { + + // 回源IP个数 + Count int + + // 回源IP列表 + IPList []string +} + +/* +FwdSourceInfo - 转发规则,回源配置信息 +*/ +type FwdSourceInfo struct { + + // 回源配置列表 + Conf []FwdSourceInfoConf + + // 回源类型,分 IP 和 Domain + Type string +} + +/* +BGPFwdRule - BGP高防的转发规则信息 +*/ +type BGPFwdRule struct { + + // 备份源站的IP + BackupIP string + + // 备份源站的端口 + BackupPort int + + // 转发规则对应的BGP高防的IP + BgpIP string + + // 默认为0,为IP协议的转发端口,其余的自定义,在0~65535范围内即可,但是同一IP下配置的规则端口不能重复 + BgpIPPort int + + // 【废弃,切为ClientProxyInfo】回源IP个数 + ClientProxyCount int + + // 【废弃,切为ClientProxyInfo】回源IP列表 + ClientProxyIPList string + + // 回源IP结构 + ClientProxyInfo FwdClientProxyInfo + + // 创建时间,unix格式 + CreateTime int + + // 配置的规则的转发类型 + FwdType string + + // 转发协议的类型是否为负载均衡的:默认为“No”,还可以选择为“Yes”。负载模式的规则最多添加2条,非负载模式的规则最多添加8条 + LoadBalance string + + // 备注 + Remark string + + // 转发规则的ID + RuleID string + + // 生成的规则的数据库索引值 + RuleIndex int + + // 表示对源站进行检测:默认为0表示关闭,还可以选择为1表示开启 + SourceDetect int + + // 【废弃,切为SourceInfo】源站IP。非负载模式仅支持1个,负载模式每条规则支持32个.多个源站ip使用","分隔,如"1.1.1.1, 2.2.2.2" + SourceIPInfo string + + // 源站信息结构 + SourceInfo FwdSourceInfo + + // 【废弃,切为SourceInfo】源站端口,多个端口之间使用","分隔 + SourcePort string + + // 规则的状态 + Status string + + // 【废弃,切为SourceInfo】源站TOAID,多个TOAID之间使用","分隔 + ToaID string + + // 更新时间,unix格式 + UpdateTime int +} + +/* +BlockAllowDomainEntry - 阻止/允许域名条目 +*/ +type BlockAllowDomainEntry struct { + + // 创建时间戳,例如:1581991500 + CreateTime int + + // 域名 + Domain string + + // 备注 + Remark string + + // 状态;1:添加中,2:成功,3:删除中,4:失败,5:已删除 + Status int +} + +/* +NapServiceConfigEntry - 高防服务配置条目 +*/ +type NapServiceConfigEntry struct { + + // 线路区域 + AreaLine string + + // 灾备配置 + DR string + + // 按天购买配置 + DayPay string + + // 域名配置 + Domain string + + // 是否可以配置域名回源 + DomainSrc string + + // 按需购买配置 + DynamicPay string + + // 购买的套餐所在机房 + EngineRoom string + + // 线路类型 + LineType string + + // 按月购买配置 + MonthPay string + + // 高防类型,1:内地高防、2:亚太高防 + NapType int + + // 按年购买配置 + YearPay string +} diff --git a/services/ubill/models.go b/services/ubill/models.go index 5a281ea3..19dad2a3 100644 --- a/services/ubill/models.go +++ b/services/ubill/models.go @@ -3,24 +3,24 @@ package ubill /* -ResourceTag - +OrderDetail - */ -type ResourceTag struct { +type OrderDetail struct { // - KeyId string + ProductName string // Value string } /* -OrderDetail - +ResourceTag - */ -type OrderDetail struct { +type ResourceTag struct { // - ProductName string + KeyId string // Value string @@ -120,26 +120,26 @@ type AccountInfo struct { } /* -ItemDetail - 产品配置 +ResourceExtendInfo - 资源标识 */ -type ItemDetail struct { +type ResourceExtendInfo struct { - // 产品小类名称 - ProductName string + // 资源标识健 + KeyId string - // 产品小类规格 + // 资源标识值 Value string } /* -ResourceExtendInfo - 资源标识 +ItemDetail - 产品配置 */ -type ResourceExtendInfo struct { +type ItemDetail struct { - // 资源标识健 - KeyId string + // 产品小类名称 + ProductName string - // 资源标识值 + // 产品小类规格 Value string } diff --git a/services/ucdn/models.go b/services/ucdn/models.go index cc3c41fd..eca1b5e8 100644 --- a/services/ucdn/models.go +++ b/services/ucdn/models.go @@ -548,21 +548,6 @@ type BandwidthTrafficInfo struct { Traffic float64 } -/* -ReferConf - refer配置 -*/ -type ReferConf struct { - - // ReferType为白名单时(删除),NullRefer为0代表不允许NULL refer访问,为1代表允许Null refer访问 - NullRefer int - - // Refer防盗链规则列表,支持正则表达式 - ReferList []string - - // Refer防盗链配置 0白名单,1黑名单 - ReferType int -} - /* CacheKeyInfo - 忽略参数缓存配置 */ @@ -579,30 +564,18 @@ type CacheKeyInfo struct { } /* -AdvancedConf - 域名高级配置 +ReferConf - refer配置 */ -type AdvancedConf struct { - - // http转https回源 true是,false否 - Http2Https bool - - // 客户端响应http头列表 - HttpClientHeader []string - - // 源站http头列表 - HttpOriginHeader []string -} +type ReferConf struct { -/* -AccessControlConf - 访问控制配置参数 -*/ -type AccessControlConf struct { + // ReferType为白名单时(删除),NullRefer为0代表不允许NULL refer访问,为1代表允许Null refer访问 + NullRefer int - // ip黑名单,多个ip,可表示为:IpBlackList.0=1.1.1.1,IpBlackList.1=2.2.2.2 - IpBlackList []string + // Refer防盗链规则列表,支持正则表达式 + ReferList []string - // refer配置 - ReferConf ReferConf + // Refer防盗链配置 0白名单,1黑名单 + ReferType int } /* @@ -641,6 +614,27 @@ type OriginConf struct { OriginProtocol string } +/* +AdvancedConf - 域名高级配置 +*/ +type AdvancedConf struct { + + // http转https回源 true是,false否 + Http2Https bool + + // 客户端响应http头列表 + HttpClientHeader []string + + // 源站http头列表 + HttpOriginHeader []string + + // 是否开启quic + QuicEnable bool + + // 是否开启websocket + WebSocketEnable bool +} + /* CacheAllConfig - 缓存相关的配置 */ @@ -659,6 +653,18 @@ type CacheAllConfig struct { HttpCodeCacheList []CacheConf } +/* +AccessControlConf - 访问控制配置参数 +*/ +type AccessControlConf struct { + + // ip黑名单,多个ip,可表示为:IpBlackList.0=1.1.1.1,IpBlackList.1=2.2.2.2 + IpBlackList []string + + // refer配置 + ReferConf ReferConf +} + /* DomainConfigInfo - 更新域名配置 */ diff --git a/services/uec/models.go b/services/uec/models.go index 62e40da5..83a9dbc1 100644 --- a/services/uec/models.go +++ b/services/uec/models.go @@ -83,18 +83,6 @@ type ResourceInfo struct { State int } -/* -EnvList - 容器环境变量列表 -*/ -type EnvList struct { - - // 环境变量key值 - Key string - - // 环境变量Value值 - Value string -} - /* CfgDictList - 容器配置字典列表 */ @@ -111,21 +99,15 @@ type CfgDictList struct { } /* -StorVolumeInfo - 容器组存储卷信息 +EnvList - 容器环境变量列表 */ -type StorVolumeInfo struct { - - // 容量(单位GB) - DiskSize int - - // 挂载点 - MountPoint string +type EnvList struct { - // 名称 - Name string + // 环境变量key值 + Key string - // 资源id - ResourceId string + // 环境变量Value值 + Value string } /* @@ -191,6 +173,24 @@ type DockerInfo struct { WorkDir string } +/* +StorVolumeInfo - 容器组存储卷信息 +*/ +type StorVolumeInfo struct { + + // 容量(单位GB) + DiskSize int + + // 挂载点 + MountPoint string + + // 名称 + Name string + + // 资源id + ResourceId string +} + /* HolderList - 容器组信息 */ diff --git a/services/uhost/apis.go b/services/uhost/apis.go index e14c0a65..5043a055 100644 --- a/services/uhost/apis.go +++ b/services/uhost/apis.go @@ -195,12 +195,6 @@ func (c *UHostClient) CreateIsolationGroup(req *CreateIsolationGroupRequest) (*C return &res, nil } -/* -UHostDiskCustomBackup is request schema for complex param -*/ -type UHostDiskCustomBackup struct { -} - /* CreateUHostInstanceParamNetworkInterfaceIPv6 is request schema for complex param */ @@ -232,12 +226,39 @@ type CreateUHostInstanceParamNetworkInterfaceEIP struct { } /* -CreateUHostInstanceParamFeatures is request schema for complex param +UHostDiskCustomBackup is request schema for complex param */ -type CreateUHostInstanceParamFeatures struct { +type UHostDiskCustomBackup struct { +} - // 弹性网卡特性。开启了弹性网卡权限位,此特性才生效,默认 false 未开启,true 开启,仅与 NetCapability Normal 兼容。 - UNI *bool `required:"false"` +/* +CreateUHostInstanceParamNetworkInterface is request schema for complex param +*/ +type CreateUHostInstanceParamNetworkInterface struct { + + // 申请并绑定一个教育网EIP。True为申请并绑定,False为不会申请绑定,默认False。当前只支持具有HPC特性的机型。 + CreateCernetIp *bool `required:"false"` + + // + EIP *CreateUHostInstanceParamNetworkInterfaceEIP `required:"false"` +} + +/* +CreateUHostInstanceParamVolumes is request schema for complex param +*/ +type CreateUHostInstanceParamVolumes struct { + + // 【该字段已废弃,请谨慎使用】 + CouponId *string `required:"false" deprecated:"true"` + + // 【该字段已废弃,请谨慎使用】 + IsBoot *string `required:"false" deprecated:"true"` +} + +/* +CreateUHostInstanceParamSecGroupId is request schema for complex param +*/ +type CreateUHostInstanceParamSecGroupId struct { } /* @@ -268,33 +289,12 @@ type UHostDisk struct { } /* -CreateUHostInstanceParamNetworkInterface is request schema for complex param -*/ -type CreateUHostInstanceParamNetworkInterface struct { - - // 申请并绑定一个教育网EIP。True为申请并绑定,False为不会申请绑定,默认False。当前只支持具有HPC特性的机型。 - CreateCernetIp *bool `required:"false"` - - // - EIP *CreateUHostInstanceParamNetworkInterfaceEIP `required:"false"` -} - -/* -CreateUHostInstanceParamSecGroupId is request schema for complex param -*/ -type CreateUHostInstanceParamSecGroupId struct { -} - -/* -CreateUHostInstanceParamVolumes is request schema for complex param +CreateUHostInstanceParamFeatures is request schema for complex param */ -type CreateUHostInstanceParamVolumes struct { - - // 【该字段已废弃,请谨慎使用】 - CouponId *string `required:"false" deprecated:"true"` +type CreateUHostInstanceParamFeatures struct { - // 【该字段已废弃,请谨慎使用】 - IsBoot *string `required:"false" deprecated:"true"` + // 弹性网卡特性。开启了弹性网卡权限位,此特性才生效,默认 false 未开启,true 开启,仅与 NetCapability Normal 兼容。 + UNI *bool `required:"false"` } // CreateUHostInstanceRequest is request schema for CreateUHostInstance action diff --git a/services/uhost/models.go b/services/uhost/models.go index c5e0141f..f79b3280 100644 --- a/services/uhost/models.go +++ b/services/uhost/models.go @@ -27,18 +27,18 @@ type KeyPair struct { } /* -Collection - CPU和内存可支持的规格 +FeatureModes - 可以支持的模式类别 */ -type Collection struct { +type FeatureModes struct { - // CPU规格 - Cpu int + // 这个特性必须是列出来的CPU平台及以上的CPU才支持 + MinimalCpuPlatform []string - // 内存规格 - Memory []int + // 模式|特性名称 + Name string - // CPU和内存规格只能在列出来的CPU平台支持 - MinimalCpuPlatform []string + // 为镜像上支持这个特性的标签。例如DescribeImage返回的字段Features包含HotPlug,说明该镜像支持热升级。 + RelatedToImageFeature []string } /* @@ -78,45 +78,42 @@ type BootDiskInfo struct { } /* -FeatureModes - 可以支持的模式类别 +Collection - CPU和内存可支持的规格 */ -type FeatureModes struct { +type Collection struct { - // 这个特性必须是列出来的CPU平台及以上的CPU才支持 - MinimalCpuPlatform []string + // CPU规格 + Cpu int - // 模式|特性名称 - Name string + // 内存规格 + Memory []int - // 为镜像上支持这个特性的标签。例如DescribeImage返回的字段Features包含HotPlug,说明该镜像支持热升级。 - RelatedToImageFeature []string + // CPU和内存规格只能在列出来的CPU平台支持 + MinimalCpuPlatform []string } /* -CpuPlatforms - CPU平台信息 +Features - 虚机可支持的特性 */ -type CpuPlatforms struct { - - // 返回AMD的CPU平台信息,例如:AMD: ['Amd/Epyc2'] - Amd []string +type Features struct { - // 返回Arm的CPU平台信息,例如:Ampere: ['Ampere/Altra'] - Ampere []string + // 可以提供的模式类别 + Modes []FeatureModes - // 返回Intel的CPU平台信息,例如:Intel: ['Intel/CascadeLake','Intel/CascadelakeR','Intel/IceLake'] - Intel []string + // 可支持的特性名称。目前支持的特性网络增强|NetCapability、热升级|Hotplug + Name string } /* -MachineSizes - GPU、CPU和内存信息 +GraphicsMemory - GPU的显存指标 */ -type MachineSizes struct { +type GraphicsMemory struct { - // CPU和内存可支持的规格 - Collection []Collection + // 交互展示参数,可忽略 + Rate int - // Gpu为GPU可支持的规格即GPU颗数,非GPU机型,Gpu为0 - Gpu int + // 值,单位是GB + Value int } /* @@ -135,39 +132,42 @@ type Disks struct { } /* -Performance - GPU的性能指标 +CpuPlatforms - CPU平台信息 */ -type Performance struct { +type CpuPlatforms struct { - // 交互展示参数,可忽略 - Rate int + // 返回AMD的CPU平台信息,例如:AMD: ['Amd/Epyc2'] + Amd []string - // 值,单位是TFlops - Value float64 + // 返回Arm的CPU平台信息,例如:Ampere: ['Ampere/Altra'] + Ampere []string + + // 返回Intel的CPU平台信息,例如:Intel: ['Intel/CascadeLake','Intel/CascadelakeR','Intel/IceLake'] + Intel []string } /* -GraphicsMemory - GPU的显存指标 +Performance - GPU的性能指标 */ -type GraphicsMemory struct { +type Performance struct { // 交互展示参数,可忽略 Rate int - // 值,单位是GB - Value int + // 值,单位是TFlops + Value float64 } /* -Features - 虚机可支持的特性 +MachineSizes - GPU、CPU和内存信息 */ -type Features struct { +type MachineSizes struct { - // 可以提供的模式类别 - Modes []FeatureModes + // CPU和内存可支持的规格 + Collection []Collection - // 可支持的特性名称。目前支持的特性网络增强|NetCapability、热升级|Hotplug - Name string + // Gpu为GPU可支持的规格即GPU颗数,非GPU机型,Gpu为0 + Gpu int } /* @@ -302,6 +302,39 @@ type UHostKeyPair struct { KeyPairState string } +/* +UHostDiskSet - DescribeUHostInstance +*/ +type UHostDiskSet struct { + + // 备份方案。若开通了数据方舟,则为DATAARK + BackupType string + + // 磁盘ID + DiskId string + + // 磁盘类型。请参考[[api:uhost-api:disk_type|磁盘类型]]。 + DiskType string + + // 磁盘盘符 + Drive string + + // "true": 加密盘 "false":非加密盘 + Encrypted string + + // 是否是系统盘。枚举值:\\ > True,是系统盘 \\ > False,是数据盘(默认)。Disks数组中有且只能有一块盘是系统盘。 + IsBoot string + + // UDisk名字(仅当磁盘是UDisk时返回) + Name string + + // 磁盘大小,单位: GB + Size int + + // 【建议不再使用】磁盘类型。系统盘: Boot,数据盘: Data,网络盘:Udisk + Type string +} + /* UHostIPSet - DescribeUHostInstance */ @@ -341,39 +374,6 @@ type UHostIPSet struct { Weight int } -/* -UHostDiskSet - DescribeUHostInstance -*/ -type UHostDiskSet struct { - - // 备份方案。若开通了数据方舟,则为DATAARK - BackupType string - - // 磁盘ID - DiskId string - - // 磁盘类型。请参考[[api:uhost-api:disk_type|磁盘类型]]。 - DiskType string - - // 磁盘盘符 - Drive string - - // "true": 加密盘 "false":非加密盘 - Encrypted string - - // 是否是系统盘。枚举值:\\ > True,是系统盘 \\ > False,是数据盘(默认)。Disks数组中有且只能有一块盘是系统盘。 - IsBoot string - - // UDisk名字(仅当磁盘是UDisk时返回) - Name string - - // 磁盘大小,单位: GB - Size int - - // 【建议不再使用】磁盘类型。系统盘: Boot,数据盘: Data,网络盘:Udisk - Type string -} - /* UHostInstanceSet - DescribeUHostInstance */ diff --git a/services/uk8s/apis.go b/services/uk8s/apis.go index ed9701f1..0b482e56 100644 --- a/services/uk8s/apis.go +++ b/services/uk8s/apis.go @@ -416,6 +416,15 @@ type CreateUK8SClusterV2ParamKubeProxy struct { Mode *string `required:"false"` } +/* +CreateUK8SClusterV2ParamMaster is request schema for complex param +*/ +type CreateUK8SClusterV2ParamMaster struct { + + // Master节点所属可用区,需要设置 Master.0.Zone、 Master.1.Zone、Master.2.Zone 三个 Master 节点的可用区。 三个节点可部署在不同可用区。参见 [可用区列表](../summary/regionlist.html) + Zone *string `required:"true"` +} + /* CreateUK8SClusterV2ParamNodes is request schema for complex param */ @@ -464,15 +473,6 @@ type CreateUK8SClusterV2ParamNodes struct { Zone *string `required:"true"` } -/* -CreateUK8SClusterV2ParamMaster is request schema for complex param -*/ -type CreateUK8SClusterV2ParamMaster struct { - - // Master节点所属可用区,需要设置 Master.0.Zone、 Master.1.Zone、Master.2.Zone 三个 Master 节点的可用区。 三个节点可部署在不同可用区。参见 [可用区列表](../summary/regionlist.html) - Zone *string `required:"true"` -} - // CreateUK8SClusterV2Request is request schema for CreateUK8SClusterV2 action type CreateUK8SClusterV2Request struct { request.CommonBase diff --git a/services/ulb/models.go b/services/ulb/models.go index 3f2fa04d..53531400 100644 --- a/services/ulb/models.go +++ b/services/ulb/models.go @@ -206,6 +206,27 @@ type PolicyBackendSet struct { SubResourceType string } +/* +BindSecurityPolicy - VServer绑定的安全策略组信息 +*/ +type BindSecurityPolicy struct { + + // 加密套件 + SSLCiphers []string + + // 安全策略组ID + SecurityPolicyId string + + // 安全策略组名称 + SecurityPolicyName string + + // 安全策略类型 0:预定义 1:自定义 + SecurityPolicyType int + + // TLS最低版本 + TLSVersion string +} + /* ULBBackendSet - DescribeULB */ @@ -257,27 +278,6 @@ type ULBBackendSet struct { Weight int } -/* -BindSecurityPolicy - VServer绑定的安全策略组信息 -*/ -type BindSecurityPolicy struct { - - // 加密套件 - SSLCiphers []string - - // 安全策略组ID - SecurityPolicyId string - - // 安全策略组名称 - SecurityPolicyName string - - // 安全策略类型 0:预定义 1:自定义 - SecurityPolicyType int - - // TLS最低版本 - TLSVersion string -} - /* ULBPolicySet - 内容转发详细列表 */ @@ -311,6 +311,27 @@ type ULBPolicySet struct { VServerId string } +/* +ULBIPSet - DescribeULB +*/ +type ULBIPSet struct { + + // 弹性IP的带宽值(暂未对外开放) + Bandwidth int + + // 弹性IP的带宽类型,枚举值:1 表示是共享带宽,0 普通带宽类型(暂未对外开放) + BandwidthType int + + // 弹性IP地址 + EIP string + + // 弹性IP的ID + EIPId string + + // 弹性IP的运营商信息,枚举值为: Bgp:BGP IP International:国际IP + OperatorName string +} + /* FirewallSet - ulb防火墙信息 */ @@ -413,27 +434,6 @@ type LoggerSet struct { TokenName string } -/* -ULBIPSet - DescribeULB -*/ -type ULBIPSet struct { - - // 弹性IP的带宽值(暂未对外开放) - Bandwidth int - - // 弹性IP的带宽类型,枚举值:1 表示是共享带宽,0 普通带宽类型(暂未对外开放) - BandwidthType int - - // 弹性IP地址 - EIP string - - // 弹性IP的ID - EIPId string - - // 弹性IP的运营商信息,枚举值为: Bgp:BGP IP International:国际IP - OperatorName string -} - /* ULBSet - DescribeULB */ diff --git a/services/umongodb/models.go b/services/umongodb/models.go index 5303224f..f56bef67 100644 --- a/services/umongodb/models.go +++ b/services/umongodb/models.go @@ -14,6 +14,48 @@ type DiskInfo struct { DiskSize int } +/* +ReplicaInfo - 副本集群信息 +*/ +type ReplicaInfo struct { + + // 集群ID + ClusterId string + + // 副本集创建时间 + CreateTime int + + // 副本集删除时间 + DeleteTime int + + // 隔离组ID + IsolationGroupId string + + // 机器类型 + MachineType string + + // 机器类型Id + MachineTypeId string + + // 副本集修改时间 + ModifyTime int + + // 副本集下的节点数量 + NodeCount int + + // 副本集下的节点信息 + NodeInfos []NodeInfo + + // 副本集ID + ReplicaId string + + // 副本类型,ConfigRepl或者DataRepl + ReplicaType string + + // 副本集/分片集群状态标记 Initing:初始化中,InitFailed:安装失败,Starting:启动中,StartFailed:启动失败,Running:运行,Stopping:关闭中,Stopped:已关闭, StopFailed:关闭失败,Deleting:删除中,Deleted:已删除,DeleteFailed:删除失败,Restarting:重启中,RestartFailed:重启失败。 + State string +} + /* NodeInfo - 节点信息 */ @@ -62,48 +104,6 @@ type NodeInfo struct { ZoneId int } -/* -ReplicaInfo - 副本集群信息 -*/ -type ReplicaInfo struct { - - // 集群ID - ClusterId string - - // 副本集创建时间 - CreateTime int - - // 副本集删除时间 - DeleteTime int - - // 隔离组ID - IsolationGroupId string - - // 机器类型 - MachineType string - - // 机器类型Id - MachineTypeId string - - // 副本集修改时间 - ModifyTime int - - // 副本集下的节点数量 - NodeCount int - - // 副本集下的节点信息 - NodeInfos []NodeInfo - - // 副本集ID - ReplicaId string - - // 副本类型,ConfigRepl或者DataRepl - ReplicaType string - - // 副本集/分片集群状态标记 Initing:初始化中,InitFailed:安装失败,Starting:启动中,StartFailed:启动失败,Running:运行,Stopping:关闭中,Stopped:已关闭, StopFailed:关闭失败,Deleting:删除中,Deleted:已删除,DeleteFailed:删除失败,Restarting:重启中,RestartFailed:重启失败。 - State string -} - /* ClusterInfo - 集群信息 */ diff --git a/services/unet/models.go b/services/unet/models.go index 7df76c9b..18f23bbe 100644 --- a/services/unet/models.go +++ b/services/unet/models.go @@ -77,21 +77,6 @@ type UnetBandwidthUsageEIPSet struct { EIPId string } -/* -ShareBandwidthSet - DescribeEIP -*/ -type ShareBandwidthSet struct { - - // 共享带宽带宽值 - ShareBandwidth int - - // 共享带宽ID - ShareBandwidthId string - - // 共享带宽的资源名称 - ShareBandwidthName string -} - /* UnetEIPResourceSet - DescribeEIP */ @@ -122,6 +107,21 @@ type UnetEIPResourceSet struct { SubResourceType string } +/* +ShareBandwidthSet - DescribeEIP +*/ +type ShareBandwidthSet struct { + + // 共享带宽带宽值 + ShareBandwidth int + + // 共享带宽ID + ShareBandwidthId string + + // 共享带宽的资源名称 + ShareBandwidthName string +} + /* UnetEIPSet - DescribeEIP */ diff --git a/services/uphost/models.go b/services/uphost/models.go index bbb0cc74..a4fa2f83 100644 --- a/services/uphost/models.go +++ b/services/uphost/models.go @@ -65,6 +65,33 @@ type PHostCloudMachineTypeSet struct { Type string } +/* +PHostIPSet - DescribePHost +*/ +type PHostIPSet struct { + + // IP对应带宽,单位Mb,内网IP不显示带宽信息 + Bandwidth int + + // IP地址, + IPAddr string + + // IP资源ID(内网IP无资源ID)(待废弃) + IPId string + + // MAC地址 + MACAddr string + + // 国际: Internation, BGP: BGP, 内网: Private + OperatorName string + + // 子网ID + SubnetId string + + // VPC ID + VPCId string +} + /* PHostDescDiskSet - DescribePHost(包括传统和裸金属1、裸金属2) */ @@ -95,33 +122,6 @@ type PHostDescDiskSet struct { Type string } -/* -PHostIPSet - DescribePHost -*/ -type PHostIPSet struct { - - // IP对应带宽,单位Mb,内网IP不显示带宽信息 - Bandwidth int - - // IP地址, - IPAddr string - - // IP资源ID(内网IP无资源ID)(待废弃) - IPId string - - // MAC地址 - MACAddr string - - // 国际: Internation, BGP: BGP, 内网: Private - OperatorName string - - // 子网ID - SubnetId string - - // VPC ID - VPCId string -} - /* PHostSet - DescribePHost */ diff --git a/services/vpc/models.go b/services/vpc/models.go index 3ea8def8..a73868b4 100644 --- a/services/vpc/models.go +++ b/services/vpc/models.go @@ -434,18 +434,6 @@ type AclInfo struct { VpcId string } -/* -UNIQuotaInfo - 虚拟网卡内网IP配额使用情况 -*/ -type UNIQuotaInfo struct { - - // 网卡拥有的内网IP数量 - PrivateIpCount int - - // 网卡内网IP配额 - PrivateIpQuota int -} - /* UNIIpInfo - 虚拟网卡内网IP信息 */ @@ -458,6 +446,18 @@ type UNIIpInfo struct { IpType string } +/* +UNIQuotaInfo - 虚拟网卡内网IP配额使用情况 +*/ +type UNIQuotaInfo struct { + + // 网卡拥有的内网IP数量 + PrivateIpCount int + + // 网卡内网IP配额 + PrivateIpQuota int +} + /* NetworkInterface - 虚拟网卡信息 */ diff --git a/tests/setup_test.go b/tests/setup_test.go index 478fb88d..5287b27e 100644 --- a/tests/setup_test.go +++ b/tests/setup_test.go @@ -58,6 +58,7 @@ import ( "github.com/ucloud/ucloud-sdk-go/services/isms" "github.com/ucloud/ucloud-sdk-go/services/stepflow" "github.com/ucloud/ucloud-sdk-go/services/tidb" + "github.com/ucloud/ucloud-sdk-go/services/uads" "github.com/ucloud/ucloud-sdk-go/services/ubox" "github.com/ucloud/ucloud-sdk-go/services/ucdn" "github.com/ucloud/ucloud-sdk-go/services/udts" @@ -66,7 +67,6 @@ import ( "github.com/ucloud/ucloud-sdk-go/services/uk8s" "github.com/ucloud/ucloud-sdk-go/services/umedia" "github.com/ucloud/ucloud-sdk-go/services/unvs" - "github.com/ucloud/ucloud-sdk-go/services/upgsql" ) func TestMain(m *testing.M) { @@ -163,6 +163,9 @@ func testSetup() { spec.AddFixture("TiDB", driver.SetupClientFixture(func() (ucloud.ServiceClient, error) { return tidb.NewClient(&cfg, &credential), nil })) + spec.AddFixture("UADS", driver.SetupClientFixture(func() (ucloud.ServiceClient, error) { + return uads.NewClient(&cfg, &credential), nil + })) spec.AddFixture("UAccount", driver.SetupClientFixture(func() (ucloud.ServiceClient, error) { return uaccount.NewClient(&cfg, &credential), nil })) @@ -220,9 +223,6 @@ func testSetup() { spec.AddFixture("UPHost", driver.SetupClientFixture(func() (ucloud.ServiceClient, error) { return uphost.NewClient(&cfg, &credential), nil })) - spec.AddFixture("UPgSQL", driver.SetupClientFixture(func() (ucloud.ServiceClient, error) { - return upgsql.NewClient(&cfg, &credential), nil - })) spec.AddFixture("VPC", driver.SetupClientFixture(func() (ucloud.ServiceClient, error) { return vpc.NewClient(&cfg, &credential), nil })) diff --git a/ucloud/version/version.go b/ucloud/version/version.go index a68e882f..d6cfca02 100644 --- a/ucloud/version/version.go +++ b/ucloud/version/version.go @@ -1,3 +1,3 @@ package version -const Version = "0.21.50" +const Version = "0.21.51"