internet_gateways

package
v2.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractInternetGatewaysInto

func ExtractInternetGatewaysInto(r pagination.Page, v interface{}) error

func IDFromName

func IDFromName(client *eclcloud.ServiceClient, name string) (string, error)

func List

func List(c *eclcloud.ServiceClient, opts ListOptsBuilder) pagination.Pager

Types

type CreateOpts

type CreateOpts struct {
	Description       string `json:"description,omitempty"`
	InternetServiceID string `json:"internet_service_id" required:"true"`
	Name              string `json:"name,omitempty"`
	QoSOptionID       string `json:"qos_option_id" required:"true"`
	TenantID          string `json:"tenant_id,omitempty"`
}

func (CreateOpts) ToInternetGatewayCreateMap

func (opts CreateOpts) ToInternetGatewayCreateMap() (map[string]interface{}, error)

type CreateOptsBuilder

type CreateOptsBuilder interface {
	ToInternetGatewayCreateMap() (map[string]interface{}, error)
}

type CreateResult

type CreateResult struct {
	// contains filtered or unexported fields
}

func Create

func Create(c *eclcloud.ServiceClient, opts CreateOptsBuilder) (r CreateResult)

func (CreateResult) Extract

func (r CreateResult) Extract() (*InternetGateway, error)

func (CreateResult) ExtractInto

func (r CreateResult) ExtractInto(v interface{}) error

type DeleteResult

type DeleteResult struct {
	eclcloud.ErrResult
}

func Delete

func Delete(c *eclcloud.ServiceClient, internetGatewayID string) (r DeleteResult)

type GetResult

type GetResult struct {
	// contains filtered or unexported fields
}

func Get

func Get(c *eclcloud.ServiceClient, internetGatewayID string) (r GetResult)

func (GetResult) Extract

func (r GetResult) Extract() (*InternetGateway, error)

func (GetResult) ExtractInto

func (r GetResult) ExtractInto(v interface{}) error

type InternetGateway

type InternetGateway struct {
	ID                string `json:"id"`
	Description       string `json:"description"`
	InternetServiceID string `json:"internet_service_id"`
	Name              string `json:"name"`
	QoSOptionID       string `json:"qos_option_id"`
	Status            string `json:"status"`
	TenantID          string `json:"tenant_id"`
}

func ExtractInternetGateways

func ExtractInternetGateways(r pagination.Page) ([]InternetGateway, error)

type InternetGatewayPage

type InternetGatewayPage struct {
	pagination.LinkedPageBase
}

func (InternetGatewayPage) IsEmpty

func (r InternetGatewayPage) IsEmpty() (bool, error)

func (InternetGatewayPage) NextPageURL

func (r InternetGatewayPage) NextPageURL() (string, error)

type ListOpts

type ListOpts struct {
	Description       string `q:"description"`
	ID                string `q:"id"`
	InternetServiceID string `q:"internet_service_id"`
	Name              string `q:"name"`
	QoSOptionID       string `q:"qos_option_id"`
	Status            string `q:"status"`
	TenantID          string `q:"tenant_id"`
}

func (ListOpts) ToInternetGatewayListQuery

func (opts ListOpts) ToInternetGatewayListQuery() (string, error)

type ListOptsBuilder

type ListOptsBuilder interface {
	ToInternetGatewayListQuery() (string, error)
}

type UpdateOpts

type UpdateOpts struct {
	Description *string `json:"description,omitempty"`
	Name        *string `json:"name,omitempty"`
	QoSOptionID *string `json:"qos_option_id,omitempty"`
}

func (UpdateOpts) ToInternetGatewayUpdateMap

func (opts UpdateOpts) ToInternetGatewayUpdateMap() (map[string]interface{}, error)

type UpdateOptsBuilder

type UpdateOptsBuilder interface {
	ToInternetGatewayUpdateMap() (map[string]interface{}, error)
}

type UpdateResult

type UpdateResult struct {
	// contains filtered or unexported fields
}

func Update

func Update(c *eclcloud.ServiceClient, internetGatewayID string, opts UpdateOptsBuilder) (r UpdateResult)

func (UpdateResult) Extract

func (r UpdateResult) Extract() (*InternetGateway, error)

func (UpdateResult) ExtractInto

func (r UpdateResult) ExtractInto(v interface{}) error

Directories

Path Synopsis
internet_gateways unit tests
internet_gateways unit tests

Jump to

Keyboard shortcuts

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