Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Update ¶
func Update(c *golangsdk.ServiceClient, id string, opts UpdateOpts) (err error)
Update is an operation which modifies the attributes of the specified
Types ¶
type CreateOpts ¶
type CreateOpts struct { TenantID string `json:"tenant_id,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` DirectConnectID string `json:"direct_connect_id" required:"true"` VgwID string `json:"vgw_id" required:"true"` Type string `json:"type" required:"true"` ServiceType string `json:"service_type" required:"true"` VLAN int `json:"vlan" required:"true"` Bandwidth int `json:"bandwidth" required:"true"` LocalGatewayV4IP string `json:"local_gateway_v4_ip" required:"true"` RemoteGatewayV4IP string `json:"remote_gateway_v4_ip" required:"true"` RouteMode string `json:"route_mode" required:"true"` BGPASN int `json:"bgp_asn,omitempty"` BGPMD5 string `json:"bgp_md5,omitempty"` RemoteEPGroupID string `json:"remote_ep_group_id" required:"true"` AdminStateUp bool `json:"admin_state_up,omitempty"` }
type UpdateOpts ¶
type UpdateOpts struct { // Provides supplementary information about the virtual interface. Description string `json:"description,omitempty"` // Specifies the virtual interface name. Name string `json:"name,omitempty"` // Specifies the virtual interface bandwidth. Bandwidth int `json:"bandwidth,omitempty"` // Specifies the ID of the remote endpoint group that records the CIDR blocks used by the on-premises network. RemoteEndpointGroupId string `json:"remote_ep_group_id,omitempty"` }
UpdateOpts represents options for updating a Virtual Interface.
type VirtualInterface ¶
type VirtualInterface struct { ID string `json:"id"` TenantID string `json:"tenant_id"` Name string `json:"name"` Description string `json:"description"` DirectConnectID string `json:"direct_connect_id"` VgwID string `json:"vgw_id"` Type string `json:"type"` ServiceType string `json:"service_type"` VLAN int `json:"vlan"` Bandwidth int `json:"bandwidth"` LocalGatewayV4IP string `json:"local_gateway_v4_ip"` RemoteGatewayV4IP string `json:"remote_gateway_v4_ip"` RouteMode string `json:"route_mode"` BGPASN int `json:"bgp_asn"` BGPMD5 string `json:"bgp_md5"` RemoteEPGroupID string `json:"remote_ep_group_id"` ServiceEPGroupID string `json:"service_ep_group_id"` CreateTime string `json:"create_time"` Status string `json:"status"` AdminStateUp bool `json:"admin_state_up"` AddressFamily string `json:"address_family"` EnableBFD bool `json:"enable_bfd"` HealthCheckSourceIP string `json:"health_check_source_ip"` RateLimit bool `json:"rate_limit"` RouteLimit int `json:"route_limit"` RegionID string `json:"region_id"` EnableNQA bool `json:"enable_nqa"` EnableGRE bool `json:"enable_gre"` LocalGatewayV6IP string `json:"local_gateway_v6_ip"` RemoteGatewayV6IP string `json:"remote_gateway_v6_ip"` LocalGRETunnelIP string `json:"local_gre_tunnel_ip"` RemoteGRETunnelIP string `json:"remote_gre_tunnel_ip"` LagID string `json:"lag_id"` }
func Create ¶
func Create(c *golangsdk.ServiceClient, opts CreateOpts) (*VirtualInterface, error)
func Get ¶
func Get(client *golangsdk.ServiceClient, id string) (*VirtualInterface, error)
Get retrieves a particular virtual gateway based on its unique ID.
func List ¶
func List(client *golangsdk.ServiceClient, opts ListOpts) ([]VirtualInterface, error)
Click to show internal directories.
Click to hide internal directories.