git test
This commit is contained in:
52
pkg/cloudapi/locations/models.go
Normal file
52
pkg/cloudapi/locations/models.go
Normal file
@@ -0,0 +1,52 @@
|
||||
package locations
|
||||
|
||||
// Main information about locations
|
||||
type ItemLocation struct {
|
||||
// AuthBroker
|
||||
AuthBroker []string `json:"authBroker"`
|
||||
|
||||
// Grid ID
|
||||
GID uint64 `json:"gid"`
|
||||
|
||||
// ID
|
||||
ID uint64 `json:"id"`
|
||||
|
||||
// GUID
|
||||
GUID uint64 `json:"guid"`
|
||||
|
||||
// Location code
|
||||
LocationCode string `json:"locationCode"`
|
||||
|
||||
// Name
|
||||
Name string `json:"name"`
|
||||
|
||||
// Network Modes
|
||||
NetworkModes []string `json:"network_modes"`
|
||||
|
||||
// Flag
|
||||
Flag string `json:"flag"`
|
||||
|
||||
// Meta
|
||||
Meta []interface{} `json:"_meta"`
|
||||
|
||||
// CKey
|
||||
CKey string `json:"_ckey"`
|
||||
|
||||
// Support of SDN
|
||||
SDNSupport bool `json:"sdn_support"`
|
||||
|
||||
// Is Zero Access enabled
|
||||
ZeroAccessEnabled bool `json:"zeroaccess_enabled"`
|
||||
|
||||
// Is BRO enabled
|
||||
BROEnabled bool `json:"bro_enabled"`
|
||||
}
|
||||
|
||||
// List of locations
|
||||
type ListLocations struct {
|
||||
// Data
|
||||
Data []ItemLocation `json:"data"`
|
||||
|
||||
// Entry count
|
||||
EntryCount uint64 `json:"entryCount"`
|
||||
}
|
||||
Reference in New Issue
Block a user