transitips

package
v0.0.0-...-63319d1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: MPL-2.0, Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(c *golangsdk.ServiceClient, transitIpId string) error

Delete is a method to remove the specified transit IP using its ID.

Types

type CreateOpts

type CreateOpts struct {
	// The ID of the subnet to which the transit IP belongs.
	SubnetId string `json:"virsubnet_id" required:"true"`
	// The IP address
	IpAddress string `json:"ip_address,omitempty"`
	// The ID of the enterprise project to which the transit IP belongs.
	EnterpriseProjectId string `json:"enterprise_project_id,omitempty"`
	// The key/value pairs to associate with the transit IP.
	Tags []tags.ResourceTag `json:"tags,omitempty"`
}

CreateOpts is the structure used to create a new transit IP.

type TransitIp

type TransitIp struct {
	// The transit IP ID.
	ID string `json:"id"`
	// The project ID to which the transit IP (private NAT) belongs.
	ProjectId string `json:"project_id"`
	// The network interface ID of the transit IP for private NAT.
	NetworkInterfaceId string `json:"network_interface_id"`
	// The IP address of the transit IP.
	IpAddress string `json:"ip_address"`
	// The creation time.
	CreatedAt string `json:"created_at"`
	// The latest update time.
	UpdatedAt string `json:"updated_at"`
	// The ID of the subnet to which the transit IP belongs.
	SubnetId string `json:"virsubnet_id"`
	// The key/value pairs to associate with the transit IP.
	Tags []tags.ResourceTag `json:"tags"`
	// The ID of the private NAT gateway to which the transit IP belongs.
	GatewayId string `json:"gateway_id"`
	// The ID of the enterprise project to which the transit IP belongs.
	EnterpriseProjectId string `json:"enterprise_project_id"`
}

TransitIp is the structure that represents the detail of the transit IP for private NAT.

func Create

func Create(c *golangsdk.ServiceClient, opts CreateOpts) (*TransitIp, error)

Create is a method used to create a new transit IP using given parameters.

func Get

func Get(c *golangsdk.ServiceClient, transitIpId string) (*TransitIp, error)

Get is a method used to obtain the transit IP detail by its ID.

Jump to

Keyboard shortcuts

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