Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BgpOptions ¶
type CreateOpts ¶
type CreateOpts struct {
RouterID string `json:"-" required:"true"`
Name string `json:"name" required:"true"`
Description *string `json:"description,omitempty"`
// parameter not supported ☻
// BgpOptions *BgpOptions `json:"bgp_options,omitempty"`
Tags []tags.ResourceTag `json:"tags,omitempty"`
}
type ListRouteTables ¶
type ListRouteTables struct {
RouteTables []RouteTable `json:"route_tables"`
PageInfo *PageInfo `json:"page_info"`
RequestId string `json:"request_id"`
}
func List ¶
func List(client *golangsdk.ServiceClient, opts ListOpts) (*ListRouteTables, error)
type RouteTable ¶
type RouteTable struct {
ID string `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
IsDefaultAssociation bool `json:"is_default_association"`
IsDefaultPropagation bool `json:"is_default_propagation"`
State string `json:"state"`
Tags []tags.ResourceTag `json:"tags"`
BgpOptions *BgpOptions `json:"bgp_options"`
CreatedAt string `json:"created_at"`
UpdatedAt string `json:"updated_at"`
}
func Create ¶
func Create(client *golangsdk.ServiceClient, opts CreateOpts) (*RouteTable, error)
func Get ¶
func Get(client *golangsdk.ServiceClient, erID, routeTableId string) (*RouteTable, error)
func Update ¶
func Update(client *golangsdk.ServiceClient, opts UpdateOpts) (*RouteTable, error)
Click to show internal directories.
Click to hide internal directories.