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 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 administrative status of the virtual gateway.
AdminStateUp *bool `json:"admin_state_up,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 Create ¶
func Create(c *golangsdk.ServiceClient, opts CreateOpts) (*VirtualGateway, error)
func Get ¶
func Get(c *golangsdk.ServiceClient, id string) (*VirtualGateway, error)
Get retrieves a particular virtual gateway based on its unique ID.
func List ¶
func List(c *golangsdk.ServiceClient, id string) ([]VirtualGateway, error)
List is used to obtain the virtual gateway list
Click to show internal directories.
Click to hide internal directories.