publicips

package
v1.0.19 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2019 License: Apache-2.0 Imports: 1 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(c *gophercloud.ServiceClient, opts CreateOpts) (interface{}, error)

func CreateURL

func CreateURL(c *gophercloud.ServiceClient) string

Types

type Bandwidth

type Bandwidth struct {
	Name       string `json:"name,omitempty"`
	Size       int    `json:"size,omitempty"`
	ID         string `json:"id,omitempty"`
	ShareType  string `json:"share_type" required:"true"`
	ChargeMode string `json:"charge_mode,omitempty"`
}

type CreateOpts

type CreateOpts struct {
	PublicIP    PublicIP    `json:"publicip" required:"true"`
	Bandwidth   Bandwidth   `json:"bandwidth" required:"true"`
	ExtendParam ExtendParam `json:"extendParam,omitempty"`
}

func (CreateOpts) ToPublicIPCreateMap

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

type CreateResult

type CreateResult struct {
	gophercloud.Result
}

type ExtendParam

type ExtendParam struct {
	ChargeMode  string `json:"charge_mode,omitempty"`
	PeriodType  string `json:"period_type,omitempty"`
	PeriodNum   int    `json:"period_num,omitempty"`
	IsAutoRenew string `json:"is_auto_renew,omitempty"`
	IsAutoPay   string `json:"is_auto_pay,omitempty"`
}

type PostPaid

type PostPaid struct {
	ID                string `json:"id"`
	Status            string `json:"status"`
	Type              string `json:"type"`
	PublicIPAddress   string `json:"public_ip_address"`
	PublicIPv6Address string `json:"public_ipv6_address"`
	TenantID          string `json:"tenant_id"`
	CreateTime        string `json:"create_time"`
	BandwidthSize     int    `json:"bandwidth_size"`
	IPVersion         int    `json:"ip_version"`
}

type PrePaid

type PrePaid struct {
	OrderID    string `json:"order_id"`
	PublicipID string `json:"publicip_id"`
}

type PublicIP

type PublicIP struct {
	Type      string `json:"type" required:"true"`
	IPVersion int    `json:"ip_version,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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