blob: b74608bde842f40f57ec19ca15250ddc3167bb0d [file] [log] [blame]
Jamie Hannaforda7f671a2014-09-11 10:25:08 +02001package networks
2
3// User-defined options sent to the API when creating or updating a network.
4type NetworkOpts struct {
5 // The administrative state of the network, which is up (true) or down (false).
6 AdminStateUp bool `json:"admin_state_up"`
7 // The network name (optional)
8 Name string `json:"name"`
9 // Indicates whether this network is shared across all tenants. By default,
10 // only administrative users can change this value.
11 Shared bool `json:"shared"`
12 // Admin-only. The UUID of the tenant that will own the network. This tenant
13 // can be different from the tenant that makes the create network request.
14 // However, only administrative users can specify a tenant ID other than their
15 // own. You cannot change this value through authorization policies.
16 TenantID string `json:"tenant_id"`
17}