github.com/vmware/go-vmware-nsxt@v0.0.0-20230223012718-d31b8a1ca05e/manager/logical_router.go (about) 1 /* Copyright © 2017 VMware, Inc. All Rights Reserved. 2 SPDX-License-Identifier: BSD-2-Clause 3 4 Generated by: https://github.com/swagger-api/swagger-codegen.git */ 5 6 package manager 7 8 import ( 9 "github.com/vmware/go-vmware-nsxt/common" 10 ) 11 12 type LogicalRouter struct { 13 14 // The server will populate this field when returing the resource. Ignored on PUT and POST. 15 Links []common.ResourceLink `json:"_links,omitempty"` 16 17 Schema string `json:"_schema,omitempty"` 18 19 Self *common.SelfResourceLink `json:"_self,omitempty"` 20 21 // The _revision property describes the current revision of the resource. To prevent clients from overwriting each other's changes, PUT operations must include the current _revision of the resource, which clients should obtain by issuing a GET operation. If the _revision provided in a PUT request is missing or stale, the operation will be rejected. 22 Revision int64 `json:"_revision"` 23 24 // Timestamp of resource creation 25 CreateTime int64 `json:"_create_time,omitempty"` 26 27 // ID of the user who created this resource 28 CreateUser string `json:"_create_user,omitempty"` 29 30 // Timestamp of last modification 31 LastModifiedTime int64 `json:"_last_modified_time,omitempty"` 32 33 // ID of the user who last modified this resource 34 LastModifiedUser string `json:"_last_modified_user,omitempty"` 35 36 // Indicates system owned resource 37 SystemOwned bool `json:"_system_owned,omitempty"` 38 39 // Description of this resource 40 Description string `json:"description,omitempty"` 41 42 // Defaults to ID if not set 43 DisplayName string `json:"display_name,omitempty"` 44 45 // Unique identifier of this resource 46 Id string `json:"id,omitempty"` 47 48 // The type of this resource. 49 ResourceType string `json:"resource_type,omitempty"` 50 51 // Opaque identifiers meaningful to the API user 52 Tags []common.Tag `json:"tags,omitempty"` 53 54 // Contains config properties for tier0 routers 55 AdvancedConfig *LogicalRouterConfig `json:"advanced_config,omitempty"` 56 57 // Used for tier0 routers 58 EdgeClusterId string `json:"edge_cluster_id,omitempty"` 59 60 // This failover mode determines, whether the preferred service router instance for given logical router will preempt the peer. Note - It can be specified if and only if logical router is ACTIVE_STANDBY and NON_PREEMPTIVE mode is supported only for a Tier1 logical router. For Tier0 ACTIVE_STANDBY logical router, failover mode is always PREEMPTIVE, i.e. once the preferred node comes up after a failure, it will preempt the peer causing failover from current active to preferred node. For ACTIVE_ACTIVE logical routers, this field must not be populated. 61 FailoverMode string `json:"failover_mode,omitempty"` 62 63 // List of Firewall sections related to Logical Router. 64 FirewallSections []common.ResourceReference `json:"firewall_sections,omitempty"` 65 66 // High availability mode 67 HighAvailabilityMode string `json:"high_availability_mode,omitempty"` 68 69 // Used for tier0 routers only 70 PreferredEdgeClusterMemberIndex int64 `json:"preferred_edge_cluster_member_index,omitempty"` 71 72 // Type of Logical Router 73 RouterType string `json:"router_type"` 74 }