virtual_gateway

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 6, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(c *golangsdk.ServiceClient, id string) (err error)

func Update

func Update(c *golangsdk.ServiceClient, id string, opts UpdateOpts) (err error)

Update is an operation which modifies the attributes of the specified VirtualGateway.

Types

type CreateOpts

type CreateOpts struct {
	// Specifies the virtual gateway name.
	Name string `json:"name,omitempty"`
	// Provides supplementary information about the virtual gateway.
	Description string `json:"description,omitempty"`
	// Specifies the ID of the VPC to be accessed.
	VpcId string `json:"vpc_id" required:"true"`
	// Specifies the ID of the local endpoint group that records CIDR blocks of the VPC subnets.
	LocalEndpointGroupId string `json:"local_ep_group_id" required:"true"`
	// Specifies the BGP ASN of the virtual gateway.
	BgpAsn int `json:"bgp_asn,omitempty"`
	// Specifies the ID of the physical device used by the virtual gateway.
	DeviceId string `json:"device_id,omitempty"`
	// Specifies the ID of the redundant physical device used by the virtual gateway.
	RedundantDeviceId string `json:"redundant_device_id,omitempty"`
	// Specifies the virtual gateway type. The value can only be default.
	Type string `json:"type"`
	// Specifies the project ID.
	ProjectId string `json:"tenant_id,omitempty"`
	// Specifies the administrative status of the virtual gateway.
	AdminStateUp *bool `json:"admin_state_up,omitempty"`
}

type ListOpts added in v0.9.0

type ListOpts struct {
	// virtual gateway by ID
	Id string `q:"id,omitempty"`
}

type UpdateOpts

type UpdateOpts struct {
	// Provides supplementary information about the virtual gateway.
	Description string `json:"description,omitempty"`
	// Specifies the virtual gateway name.
	Name string `json:"name,omitempty"`
	// Specifies the ID of the local endpoint group that records CIDR blocks of the VPC subnets.
	LocalEndpointGroupId string `json:"local_ep_group_id,omitempty"`
}

UpdateOpts represents options for updating a VirtualGateway.

type VirtualGateway

type VirtualGateway struct {
	ID                 string `json:"id"`
	TenantID           string `json:"tenant_id"`
	Name               string `json:"name"`
	Description        string `json:"description"`
	VPCID              string `json:"vpc_id"`
	LocalEPGroupID     string `json:"local_ep_group_id"`
	DeviceID           string `json:"device_id"`
	RedundantDeviceID  string `json:"redundant_device_id"`
	Type               string `json:"type"`
	IPSecBandwidth     int    `json:"ipsec_bandwidth"`
	Status             string `json:"status"`
	AdminStateUp       bool   `json:"admin_state_up"`
	BGPASN             int    `json:"bgp_asn"`
	RegionID           string `json:"region_id"`
	LocalEPGroupIPv6ID string `json:"local_ep_group_ipv6_id"`
}

func Get

Get retrieves a particular virtual gateway based on its unique ID.

func List

func List(client *golangsdk.ServiceClient, opts ListOpts) ([]VirtualGateway, error)

List is used to obtain the virtual gateway list

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL