association

package
v0.9.6 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(client *golangsdk.ServiceClient, opts DeleteOpts) (err error)

Types

type Association

type Association struct {
	ID           string `json:"id"`
	RouteTableID string `json:"route_table_id"`
	AttachmentID string `json:"attachment_id"`
	ResourceType string `json:"resource_type"`
	ResourceID   string `json:"resource_id"`
	State        string `json:"state"`
	CreatedAt    string `json:"created_at"`
	UpdatedAt    string `json:"updated_at"`
}

func Create

func Create(client *golangsdk.ServiceClient, opts CreateOpts) (*Association, error)

type CreateOpts

type CreateOpts struct {
	RouterID     string `json:"-" required:"true"`
	RouteTableID string `json:"-" required:"true"`
	AttachmentID string `json:"attachment_id,omitempty"`
}

type DeleteOpts

type DeleteOpts struct {
	RouterID     string `json:"-" required:"true"`
	RouteTableID string `json:"-" required:"true"`
	AttachmentID string `json:"attachment_id,omitempty"`
}

type ListAssociations

type ListAssociations struct {
	Associations []Association `json:"associations"`
	PageInfo     *PageInfo     `json:"page_info"`
	RequestId    string        `json:"request_id"`
}

func List

func List(client *golangsdk.ServiceClient, opts ListOpts) (*ListAssociations, error)

type ListOpts

type ListOpts struct {
	RouterId     string   `json:"-"`
	RouteTableId string   `json:"-"`
	Limit        int      `q:"limit"`
	Marker       string   `q:"marker"`
	AttachmentId []string `q:"attachment_id"`
	ResourceType []string `q:"resource_type"`
	State        []string `q:"state"`
	SortKey      []string `q:"sort_key"`
	SortDir      []string `q:"sort_dir"`
}

type PageInfo

type PageInfo struct {
	NextMarker   string `json:"next_marker"`
	CurrentCount int    `json:"current_count"`
}

Jump to

Keyboard shortcuts

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