Skip to content

Commit

Permalink
sdk: rolling update for 0.22.12 (#411)
Browse files Browse the repository at this point in the history
  • Loading branch information
ucloud-bot authored Jan 25, 2024
1 parent 904d9d2 commit 6f4ffa5
Show file tree
Hide file tree
Showing 6 changed files with 230 additions and 224 deletions.
96 changes: 48 additions & 48 deletions services/ugn/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,54 @@ type InterRegionBandwidth struct {
UGNId string
}

/*
UGN - 云联网信息
*/
type UGN struct {

// 绑定带宽包数量
BwPackageCount int

// 云联网创建时间
CreateTime int

// 云联网名称
Name string

// 关联网络实例数量
NetworkCount int

// 云联网备注
Remark string

// 云联网资源 ID
UGNID string
}

/*
SimpleRoute - 简洁版云联网路由条目
*/
type SimpleRoute struct {

// 目的网段
DstAddr string

// 下一跳网络实例 ID
NextHopID string

// 下一跳网络实例所属地域
NextHopRegion string

// 下一跳网络实例所属地域 id
NextHopRegionID int

// 下一跳网络实例类型
NextHopType string

// 路由优先级
Priority int
}

/*
SimpleNetwork - 简洁版云联网网络实例
*/
Expand Down Expand Up @@ -119,54 +167,6 @@ type SimpleBwPackage struct {
UGNID string
}

/*
UGN - 云联网信息
*/
type UGN struct {

// 绑定带宽包数量
BwPackageCount int

// 云联网创建时间
CreateTime int

// 云联网名称
Name string

// 关联网络实例数量
NetworkCount int

// 云联网备注
Remark string

// 云联网资源 ID
UGNID string
}

/*
SimpleRoute - 简洁版云联网路由条目
*/
type SimpleRoute struct {

// 目的网段
DstAddr string

// 下一跳网络实例 ID
NextHopID string

// 下一跳网络实例所属地域
NextHopRegion string

// 下一跳网络实例所属地域 id
NextHopRegionID int

// 下一跳网络实例类型
NextHopType string

// 路由优先级
Priority int
}

/*
Instance - 云联网实例信息
*/
Expand Down
68 changes: 37 additions & 31 deletions services/uhost/apis.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,18 +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
*/
type CreateUHostInstanceParamNetworkInterfaceIPv6 struct {
}

/*
CreateUHostInstanceParamNetworkInterfaceEIP is request schema for complex param
*/
Expand All @@ -232,9 +220,36 @@ type CreateUHostInstanceParamNetworkInterfaceEIP struct {
}

/*
CreateUHostInstanceParamSecGroupId is request schema for complex param
CreateUHostInstanceParamNetworkInterfaceIPv6 is request schema for complex param
*/
type CreateUHostInstanceParamSecGroupId struct {
type CreateUHostInstanceParamNetworkInterfaceIPv6 struct {
}

/*
UHostDiskCustomBackup is request schema for complex param
*/
type UHostDiskCustomBackup struct {
}

/*
CreateUHostInstanceParamNetworkInterface is request schema for complex param
*/
type CreateUHostInstanceParamNetworkInterface struct {

// 申请并绑定一个教育网EIP。True为申请并绑定,False为不会申请绑定,默认False。当前只支持具有HPC特性的机型。
CreateCernetIp *bool `required:"false"`

//
EIP *CreateUHostInstanceParamNetworkInterfaceEIP `required:"false"`
}

/*
CreateUHostInstanceParamFeatures is request schema for complex param
*/
type CreateUHostInstanceParamFeatures struct {

// 弹性网卡特性。开启了弹性网卡权限位,此特性才生效,默认 false 未开启,true 开启,仅与 NetCapability Normal 兼容。
UNI *bool `required:"false"`
}

/*
Expand Down Expand Up @@ -280,24 +295,9 @@ 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"`
}

/*
CreateUHostInstanceParamFeatures is request schema for complex param
CreateUHostInstanceParamSecGroupId is request schema for complex param
*/
type CreateUHostInstanceParamFeatures struct {

// 弹性网卡特性。开启了弹性网卡权限位,此特性才生效,默认 false 未开启,true 开启,仅与 NetCapability Normal 兼容。
UNI *bool `required:"false"`
type CreateUHostInstanceParamSecGroupId struct {
}

// CreateUHostInstanceRequest is request schema for CreateUHostInstance action
Expand Down Expand Up @@ -1480,6 +1480,9 @@ type GetUHostUpgradePriceRequest struct {
// 【该字段已废弃,请谨慎使用】
DiskSpace *int `required:"false" deprecated:"true"`

// GPU卡核心数。仅GPU机型支持此字段(可选范围与MachineType+GpuType相关)
GPU *int `required:"false"`

// 【该字段已废弃,请谨慎使用】
HostType *string `required:"false" deprecated:"true"`

Expand Down Expand Up @@ -2350,6 +2353,9 @@ type ResizeUHostInstanceRequest struct {
// 【该字段已废弃,请谨慎使用】
DiskSpace *int `required:"false" deprecated:"true"`

// GPU卡核心数。仅GPU机型支持此字段(可选范围与MachineType+GpuType相关)
GPU *int `required:"false"`

// 内存大小。单位:MB。范围 :[1024, 1966080],取值为1024的倍数(可选范围与UHostType相关)。默认值为当前实例的内存大小。
Memory *int `required:"false"`

Expand Down
Loading

0 comments on commit 6f4ffa5

Please sign in to comment.