1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
package schema
import "time"
type PlacementGroup struct {
ID int64 `json:"id"`
Name string `json:"name"`
Labels map[string]string `json:"labels"`
Created time.Time `json:"created"`
Servers []int64 `json:"servers"`
Type string `json:"type"`
}
type PlacementGroupListResponse struct {
PlacementGroups []PlacementGroup `json:"placement_groups"`
}
type PlacementGroupGetResponse struct {
PlacementGroup PlacementGroup `json:"placement_group"`
}
type PlacementGroupCreateRequest struct {
Name string `json:"name"`
Labels *map[string]string `json:"labels,omitempty"`
Type string `json:"type"`
}
type PlacementGroupCreateResponse struct {
PlacementGroup PlacementGroup `json:"placement_group"`
Action *Action `json:"action"`
}
type PlacementGroupUpdateRequest struct {
Name *string `json:"name,omitempty"`
Labels *map[string]string `json:"labels,omitempty"`
}
type PlacementGroupUpdateResponse struct {
PlacementGroup PlacementGroup `json:"placement_group"`
}
|