Skip to content

Commit 09c11a9

Browse files
authored
Merge pull request #206 from Darkiiiiiice/master
补充接口
2 parents 622baa7 + 52e24fc commit 09c11a9

File tree

10 files changed

+1968
-427
lines changed

10 files changed

+1968
-427
lines changed

service/cluster.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -982,12 +982,12 @@ func (s *ClusterService) ResizeCluster(i *ResizeClusterInput) (*ResizeClusterOut
982982
}
983983

984984
type ResizeClusterInput struct {
985-
Cluster *string `json:"cluster" name:"cluster" location:"params"` // Required
986-
CPU *int `json:"cpu" name:"cpu" location:"params"`
987-
Gpu *int `json:"gpu" name:"gpu" location:"params"`
988-
Memory *int `json:"memory" name:"memory" location:"params"`
989-
NodeRole *string `json:"node_role" name:"node_role" location:"params"`
990-
StorageSize *int `json:"storage_size" name:"storage_size" location:"params"`
985+
Cluster *string `json:"cluster" name:"cluster" location:"params"` // Required
986+
CPU *int `json:"cpu" name:"cpu" location:"params"`
987+
Gpu *int `json:"gpu" name:"gpu" location:"params"`
988+
Memory *int `json:"memory" name:"memory" location:"params"`
989+
NodeRole []*string `json:"node_role" name:"node_role" location:"params"`
990+
StorageSize *int `json:"storage_size" name:"storage_size" location:"params"`
991991
}
992992

993993
func (v *ResizeClusterInput) Validate() error {

service/image.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ type CaptureInstanceOutput struct {
100100

101101
// Documentation URL: https://docs.qingcloud.com/api/image/delete_images.html
102102
func (s *ImageService) DeleteImages(i *DeleteImagesInput) (*DeleteImagesOutput, error) {
103+
time.RFC822
103104
if i == nil {
104105
i = &DeleteImagesInput{}
105106
}

service/instance.go

Lines changed: 710 additions & 15 deletions
Large diffs are not rendered by default.

service/nic.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,11 @@ type ModifyNicAttributesInput struct {
358358
NICName *string `json:"nic_name" name:"nic_name" location:"params"`
359359
PrivateIP *string `json:"private_ip" name:"private_ip" location:"params"`
360360
VxNet *string `json:"vxnet" name:"vxnet" location:"params"`
361+
362+
// enable/disable vxnet aspoof 1/0
363+
EnableAspoof *int `json:"enable_aspoof" name:"enable_aspoof" location:"params"`
364+
// specify the ipv6 address
365+
Ipv6Address *string `json:"ipv6_address" name:"ipv6_address" location:"params"`
361366
}
362367

363368
func (v *ModifyNicAttributesInput) Validate() error {

service/snapshot.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ func (v *CreateSnapshotsInput) Validate() error {
217217
type CreateSnapshotsOutput struct {
218218
Message *string `json:"message" name:"message"`
219219
Action *string `json:"action" name:"action" location:"elements"`
220-
JobID *string `json:"job_id" name:"job_id" location:"elements"`
220+
JobID *[]string `json:"job_id" name:"job_id" location:"elements"`
221221
RetCode *int `json:"ret_code" name:"ret_code" location:"elements"`
222222
Snapshots []*string `json:"snapshots" name:"snapshots" location:"elements"`
223223
}

service/types.go

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3354,3 +3354,58 @@ func (v *VIP) Validate() error {
33543354
// TODO
33553355
return nil
33563356
}
3357+
3358+
type BorderVxnet struct {
3359+
VxnetID *string `json:"vxnet_id"`
3360+
DynIPStart *string `json:"dyn_ip_start"`
3361+
DynIPv6End *string `json:"dyn_ipv6_end"`
3362+
ConsoleID *string `json:"console_id"`
3363+
CreateTime *time.Time `json:"create_time"`
3364+
Owner *string `json:"owner"`
3365+
DhcpServerIP *string `json:"dhcp_server_ip"`
3366+
Features *int `json:"features"`
3367+
ManagerIP *string `json:"manager_ip"`
3368+
BorderID *string `json:"border_id"`
3369+
IPv6Network *string `json:"ipv6_network"`
3370+
VxnetName *string `json:"vxnet_name"`
3371+
BorderPrivateIP *string `json:"border_private_ip"`
3372+
DhcpServerIPv6 *string `json:"dhcp_server_ipv6"`
3373+
RouterID *string `json:"router_id"`
3374+
IPNetwork *string `json:"ip_network"`
3375+
DynIPEnd *string `json:"dyn_ip_end"`
3376+
TransitionStatus *string `json:"transition_status"`
3377+
Controller *string `json:"controller"`
3378+
DomainServers *string `json:"domain_servers"`
3379+
BorderZoneID *string `json:"border_zone_id"`
3380+
DynIPv6Start *string `json:"dyn_ipv6_start"`
3381+
ManagerIPv6 *string `json:"manager_ipv6"`
3382+
VpcRouterID *string `json:"vpc_router_id"`
3383+
VxnetZoneID *string `json:"vxnet_zone_id"`
3384+
RootUserID *string `json:"root_user_id"`
3385+
Mode *int `json:"mode"`
3386+
}
3387+
3388+
func (v *BorderVxnet) Validate() error {
3389+
// TODO
3390+
return nil
3391+
}
3392+
3393+
type VpcBorder struct {
3394+
RouterID *string `json:"router_id"`
3395+
Status *string `json:"status"`
3396+
BorderName *string `json:"border_name"`
3397+
ZoneID *string `json:"zone_id"`
3398+
Tags []*string `json:"tags"`
3399+
VpcBorderID *string `json:"vpc_border_id"`
3400+
BorderType *int `json:"border_type"`
3401+
CreateTime *string `json:"create_time"`
3402+
Owner *string `json:"owner"`
3403+
StatusTime *string `json:"status_time"`
3404+
ResourceProjectInfo []*string `json:"resource_project_info"`
3405+
Description *string `json:"description"`
3406+
}
3407+
3408+
func (v *VpcBorder) Validate() error {
3409+
// TODO
3410+
return nil
3411+
}

0 commit comments

Comments
 (0)