Skip to content

Commit f5dc045

Browse files
authored
fix(instance): remove and hide unused fields (#1443)
1 parent eee4b9b commit f5dc045

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

api/instance/v1/instance_sdk.go

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -861,14 +861,10 @@ type Bootscript struct {
861861

862862
type CreateIPResponse struct {
863863
IP *IP `json:"ip"`
864-
865-
Location string `json:"Location"`
866864
}
867865

868866
type CreateImageResponse struct {
869867
Image *Image `json:"image"`
870-
871-
Location string `json:"Location"`
872868
}
873869

874870
type CreatePlacementGroupResponse struct {
@@ -899,8 +895,6 @@ type CreateSnapshotResponse struct {
899895

900896
type CreateVolumeResponse struct {
901897
Volume *Volume `json:"volume"`
902-
903-
Location string `json:"Location"`
904898
}
905899

906900
type Dashboard struct {
@@ -1096,10 +1090,12 @@ type ListSecurityGroupRulesResponse struct {
10961090
Rules []*SecurityGroupRule `json:"rules"`
10971091
}
10981092

1093+
// ListSecurityGroupsResponse: list security groups response
10991094
type ListSecurityGroupsResponse struct {
1100-
SecurityGroups []*SecurityGroup `json:"security_groups"`
1101-
1095+
// TotalCount: total number of security groups
11021096
TotalCount uint32 `json:"total_count"`
1097+
// SecurityGroups: list of security groups
1098+
SecurityGroups []*SecurityGroup `json:"security_groups"`
11031099
}
11041100

11051101
type ListServerActionsResponse struct {

0 commit comments

Comments
 (0)