Skip to content

Commit

Permalink
sdk: rolling update for 0.22.24 (#426)
Browse files Browse the repository at this point in the history
  • Loading branch information
ucloud-bot authored Aug 15, 2024
1 parent 2dd4830 commit 265d13c
Show file tree
Hide file tree
Showing 11 changed files with 970 additions and 185 deletions.
633 changes: 633 additions & 0 deletions services/udns/apis.go

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions services/udns/client.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// Code is generated by ucloud-model, DO NOT EDIT IT.

package udns

import (
"github.com/ucloud/ucloud-sdk-go/ucloud"
"github.com/ucloud/ucloud-sdk-go/ucloud/auth"
)

// UDNSClient is the client of UDNS
type UDNSClient struct {
*ucloud.Client
}

// NewClient will return a instance of UDNSClient
func NewClient(config *ucloud.Config, credential *auth.Credential) *UDNSClient {
meta := ucloud.ClientMeta{Product: "UDNS"}
client := ucloud.NewClientWithMeta(config, credential, meta)
return &UDNSClient{
client,
}
}
13 changes: 13 additions & 0 deletions services/udns/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Code is generated by ucloud-model, DO NOT EDIT IT.

/*
Package udns include resources of ucloud udns product
See also
- API: https://docs.ucloud.cn/api/udns-api/index
- Product: https://www.ucloud.cn/site/product/udns.html
for detail.
*/
package udns
102 changes: 102 additions & 0 deletions services/udns/models.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
// Code is generated by ucloud-model, DO NOT EDIT IT.

package udns

/*
ValueSet - RecordInfos
*/
type ValueSet struct {

// 主机记录
Data string

// 是否启用
IsEnabled int

// 权重
Weight int
}

/*
RecordInfo - DescribeUDNSRecord
*/
type RecordInfo struct {

// 主机记录
Name string

// 域名记录资源ID
RecordId string

// 记录备注信息
Remark string

// TTL值,单位为秒
TTL int

// 记录类型
Type string

// 数值组
ValueSet []ValueSet

// 记录策略,标准或随机应答
ValueType string
}

/*
VPCInfo - ZoneInfo
*/
type VPCInfo struct {

// VPC名称
Name string

// VPC地址空间
Network []string

// VPC ID
VPCId string

// VPC所属项目ID
VPCProjectId string

// VPC类型:Normal 公有云 Hybrid 托管云
VPCType string
}

/*
ZoneInfo - DescribeUDNSZone
*/
type ZoneInfo struct {

// 计费类型(Dynamic、Month、Year)
ChargeType string

// 创建时间
CreateTime int

// 域名名称
DNSZoneName string

// 过期时间
ExpireTime int

// 是否开启自动续费(Yes No)
IsAutoRenew string

// 是否支持迭代。枚举值,"enable",支持迭代; "disable",不支持迭代
IsRecursionEnabled string

// 记录相关ID
RecordInfos []string

// 备注
Remark string

// 业务组
Tag string

// 绑定的VPC信息
VPCInfos []VPCInfo
}
108 changes: 54 additions & 54 deletions services/uhost/apis.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,12 @@ 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
*/
Expand Down Expand Up @@ -225,33 +231,6 @@ type CreateUHostInstanceParamNetworkInterfaceEIP struct {
ShareBandwidthId *string `required:"false"`
}

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

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

// 弹性网卡特性。开启了弹性网卡权限位,此特性才生效,默认 false 未开启,true 开启。
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"`
}

/*
UHostDisk is request schema for complex param
*/
Expand Down Expand Up @@ -282,18 +261,6 @@ type UHostDisk struct {
Type *string `required:"true"`
}

/*
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
*/
Expand All @@ -306,6 +273,39 @@ type CreateUHostInstanceParamSecGroupId struct {
Priority *int `required:"false"`
}

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

// 弹性网卡特性。开启了弹性网卡权限位,此特性才生效,默认 false 未开启,true 开启。
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"`
}

// CreateUHostInstanceRequest is request schema for CreateUHostInstance action
type CreateUHostInstanceRequest struct {
request.CommonBase
Expand Down Expand Up @@ -1150,6 +1150,21 @@ func (c *UHostClient) GetAttachedDiskUpgradePrice(req *GetAttachedDiskUpgradePri
return &res, nil
}

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

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

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

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

/*
getUHostInstancePriceParamDisks is request schema for complex param
*/
Expand All @@ -1168,21 +1183,6 @@ type getUHostInstancePriceParamDisks struct {
Type *string `required:"true"`
}

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

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

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

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

// GetUHostInstancePriceRequest is request schema for GetUHostInstancePrice action
type GetUHostInstancePriceRequest struct {
request.CommonBase
Expand Down
Loading

0 comments on commit 265d13c

Please sign in to comment.