virtual_networks

package
v1.5.7 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2026 License: BSD-3-Clause, MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// CreateVirtualNetworkParamsBodyDataAttributesSiteASH captures enum value "ASH"
	CreateVirtualNetworkParamsBodyDataAttributesSiteASH string = "ASH"

	// CreateVirtualNetworkParamsBodyDataAttributesSiteBGT captures enum value "BGT"
	CreateVirtualNetworkParamsBodyDataAttributesSiteBGT string = "BGT"

	// CreateVirtualNetworkParamsBodyDataAttributesSiteBUE captures enum value "BUE"
	CreateVirtualNetworkParamsBodyDataAttributesSiteBUE string = "BUE"

	// CreateVirtualNetworkParamsBodyDataAttributesSiteCHI captures enum value "CHI"
	CreateVirtualNetworkParamsBodyDataAttributesSiteCHI string = "CHI"

	// CreateVirtualNetworkParamsBodyDataAttributesSiteDAL captures enum value "DAL"
	CreateVirtualNetworkParamsBodyDataAttributesSiteDAL string = "DAL"

	// CreateVirtualNetworkParamsBodyDataAttributesSiteFRA captures enum value "FRA"
	CreateVirtualNetworkParamsBodyDataAttributesSiteFRA string = "FRA"

	// CreateVirtualNetworkParamsBodyDataAttributesSiteLAX captures enum value "LAX"
	CreateVirtualNetworkParamsBodyDataAttributesSiteLAX string = "LAX"

	// CreateVirtualNetworkParamsBodyDataAttributesSiteLON captures enum value "LON"
	CreateVirtualNetworkParamsBodyDataAttributesSiteLON string = "LON"

	// CreateVirtualNetworkParamsBodyDataAttributesSiteMEX captures enum value "MEX"
	CreateVirtualNetworkParamsBodyDataAttributesSiteMEX string = "MEX"

	// CreateVirtualNetworkParamsBodyDataAttributesSiteMEX2 captures enum value "MEX2"
	CreateVirtualNetworkParamsBodyDataAttributesSiteMEX2 string = "MEX2"

	// CreateVirtualNetworkParamsBodyDataAttributesSiteMIA captures enum value "MIA"
	CreateVirtualNetworkParamsBodyDataAttributesSiteMIA string = "MIA"

	// CreateVirtualNetworkParamsBodyDataAttributesSiteMIA2 captures enum value "MIA2"
	CreateVirtualNetworkParamsBodyDataAttributesSiteMIA2 string = "MIA2"

	// CreateVirtualNetworkParamsBodyDataAttributesSiteNYC captures enum value "NYC"
	CreateVirtualNetworkParamsBodyDataAttributesSiteNYC string = "NYC"

	// CreateVirtualNetworkParamsBodyDataAttributesSiteSAN captures enum value "SAN"
	CreateVirtualNetworkParamsBodyDataAttributesSiteSAN string = "SAN"

	// CreateVirtualNetworkParamsBodyDataAttributesSiteSAN2 captures enum value "SAN2"
	CreateVirtualNetworkParamsBodyDataAttributesSiteSAN2 string = "SAN2"

	// CreateVirtualNetworkParamsBodyDataAttributesSiteSAO captures enum value "SAO"
	CreateVirtualNetworkParamsBodyDataAttributesSiteSAO string = "SAO"

	// CreateVirtualNetworkParamsBodyDataAttributesSiteSAO2 captures enum value "SAO2"
	CreateVirtualNetworkParamsBodyDataAttributesSiteSAO2 string = "SAO2"

	// CreateVirtualNetworkParamsBodyDataAttributesSiteSYD captures enum value "SYD"
	CreateVirtualNetworkParamsBodyDataAttributesSiteSYD string = "SYD"

	// CreateVirtualNetworkParamsBodyDataAttributesSiteTYO captures enum value "TYO"
	CreateVirtualNetworkParamsBodyDataAttributesSiteTYO string = "TYO"

	// CreateVirtualNetworkParamsBodyDataAttributesSiteTYO2 captures enum value "TYO2"
	CreateVirtualNetworkParamsBodyDataAttributesSiteTYO2 string = "TYO2"
)
View Source
const (

	// CreateVirtualNetworkParamsBodyDataTypeVirtualNetwork captures enum value "virtual_network"
	CreateVirtualNetworkParamsBodyDataTypeVirtualNetwork string = "virtual_network"
)
View Source
const (

	// UpdateVirtualNetworkParamsBodyDataTypeVirtualNetwork captures enum value "virtual_network"
	UpdateVirtualNetworkParamsBodyDataTypeVirtualNetwork string = "virtual_network"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for virtual networks API

func (*Client) CreateVirtualNetwork

func (a *Client) CreateVirtualNetwork(params *CreateVirtualNetworkParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateVirtualNetworkCreated, error)

CreateVirtualNetwork creates a virtual network

Creates a new Virtual Network.

func (*Client) DestroyVirtualNetwork

func (a *Client) DestroyVirtualNetwork(params *DestroyVirtualNetworkParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DestroyVirtualNetworkNoContent, error)

DestroyVirtualNetwork deletes a virtual network

Delete virtual network

func (*Client) GetVirtualNetwork

func (a *Client) GetVirtualNetwork(params *GetVirtualNetworkParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetVirtualNetworkOK, error)

GetVirtualNetwork retrieves a virtual network

Retrieve a Virtual Network.

func (*Client) GetVirtualNetworks

func (a *Client) GetVirtualNetworks(params *GetVirtualNetworksParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetVirtualNetworksOK, error)

GetVirtualNetworks lists all virtual networks

Lists virtual networks assigned to a project

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) UpdateVirtualNetwork

func (a *Client) UpdateVirtualNetwork(params *UpdateVirtualNetworkParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateVirtualNetworkOK, error)

UpdateVirtualNetwork updates a virtual network

Update a Virtual Network.

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateVirtualNetwork(params *CreateVirtualNetworkParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateVirtualNetworkCreated, error)

	DestroyVirtualNetwork(params *DestroyVirtualNetworkParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DestroyVirtualNetworkNoContent, error)

	GetVirtualNetwork(params *GetVirtualNetworkParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetVirtualNetworkOK, error)

	GetVirtualNetworks(params *GetVirtualNetworksParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetVirtualNetworksOK, error)

	UpdateVirtualNetwork(params *UpdateVirtualNetworkParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateVirtualNetworkOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new virtual networks API client.

type CreateVirtualNetworkBody

type CreateVirtualNetworkBody struct {

	// data
	// Required: true
	Data *CreateVirtualNetworkParamsBodyData `json:"data"`
}

CreateVirtualNetworkBody create virtual network body swagger:model CreateVirtualNetworkBody

func (*CreateVirtualNetworkBody) ContextValidate

func (o *CreateVirtualNetworkBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this create virtual network body based on the context it is used

func (*CreateVirtualNetworkBody) MarshalBinary

func (o *CreateVirtualNetworkBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateVirtualNetworkBody) UnmarshalBinary

func (o *CreateVirtualNetworkBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateVirtualNetworkBody) Validate

func (o *CreateVirtualNetworkBody) Validate(formats strfmt.Registry) error

Validate validates this create virtual network body

type CreateVirtualNetworkCreated

type CreateVirtualNetworkCreated struct {
	Payload *GetVirtualNetworkOKBody
}

CreateVirtualNetworkCreated describes a response with status code 201, with default header values.

Created

func NewCreateVirtualNetworkCreated

func NewCreateVirtualNetworkCreated() *CreateVirtualNetworkCreated

NewCreateVirtualNetworkCreated creates a CreateVirtualNetworkCreated with default headers values

func (*CreateVirtualNetworkCreated) Code

func (o *CreateVirtualNetworkCreated) Code() int

Code gets the status code for the create virtual network created response

func (*CreateVirtualNetworkCreated) Error

func (*CreateVirtualNetworkCreated) GetData

func (*CreateVirtualNetworkCreated) GetPayload

func (*CreateVirtualNetworkCreated) IsClientError

func (o *CreateVirtualNetworkCreated) IsClientError() bool

IsClientError returns true when this create virtual network created response has a 4xx status code

func (*CreateVirtualNetworkCreated) IsCode

func (o *CreateVirtualNetworkCreated) IsCode(code int) bool

IsCode returns true when this create virtual network created response a status code equal to that given

func (*CreateVirtualNetworkCreated) IsRedirect

func (o *CreateVirtualNetworkCreated) IsRedirect() bool

IsRedirect returns true when this create virtual network created response has a 3xx status code

func (*CreateVirtualNetworkCreated) IsServerError

func (o *CreateVirtualNetworkCreated) IsServerError() bool

IsServerError returns true when this create virtual network created response has a 5xx status code

func (*CreateVirtualNetworkCreated) IsSuccess

func (o *CreateVirtualNetworkCreated) IsSuccess() bool

IsSuccess returns true when this create virtual network created response has a 2xx status code

func (*CreateVirtualNetworkCreated) String

func (o *CreateVirtualNetworkCreated) String() string

type CreateVirtualNetworkParams

type CreateVirtualNetworkParams struct {

	// Body.
	Body CreateVirtualNetworkBody

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

CreateVirtualNetworkParams contains all the parameters to send to the API endpoint

for the create virtual network operation.

Typically these are written to a http.Request.

func NewCreateVirtualNetworkParams

func NewCreateVirtualNetworkParams() *CreateVirtualNetworkParams

NewCreateVirtualNetworkParams creates a new CreateVirtualNetworkParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewCreateVirtualNetworkParamsWithContext

func NewCreateVirtualNetworkParamsWithContext(ctx context.Context) *CreateVirtualNetworkParams

NewCreateVirtualNetworkParamsWithContext creates a new CreateVirtualNetworkParams object with the ability to set a context for a request.

func NewCreateVirtualNetworkParamsWithHTTPClient

func NewCreateVirtualNetworkParamsWithHTTPClient(client *http.Client) *CreateVirtualNetworkParams

NewCreateVirtualNetworkParamsWithHTTPClient creates a new CreateVirtualNetworkParams object with the ability to set a custom HTTPClient for a request.

func NewCreateVirtualNetworkParamsWithTimeout

func NewCreateVirtualNetworkParamsWithTimeout(timeout time.Duration) *CreateVirtualNetworkParams

NewCreateVirtualNetworkParamsWithTimeout creates a new CreateVirtualNetworkParams object with the ability to set a timeout on a request.

func (*CreateVirtualNetworkParams) SetBody

SetBody adds the body to the create virtual network params

func (*CreateVirtualNetworkParams) SetContext

func (o *CreateVirtualNetworkParams) SetContext(ctx context.Context)

SetContext adds the context to the create virtual network params

func (*CreateVirtualNetworkParams) SetDefaults

func (o *CreateVirtualNetworkParams) SetDefaults()

SetDefaults hydrates default values in the create virtual network params (not the query body).

All values with no default are reset to their zero value.

func (*CreateVirtualNetworkParams) SetHTTPClient

func (o *CreateVirtualNetworkParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the create virtual network params

func (*CreateVirtualNetworkParams) SetTimeout

func (o *CreateVirtualNetworkParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the create virtual network params

func (*CreateVirtualNetworkParams) WithBody

WithBody adds the body to the create virtual network params

func (*CreateVirtualNetworkParams) WithContext

WithContext adds the context to the create virtual network params

func (*CreateVirtualNetworkParams) WithDefaults

WithDefaults hydrates default values in the create virtual network params (not the query body).

All values with no default are reset to their zero value.

func (*CreateVirtualNetworkParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create virtual network params

func (*CreateVirtualNetworkParams) WithTimeout

WithTimeout adds the timeout to the create virtual network params

func (*CreateVirtualNetworkParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateVirtualNetworkParamsBodyData

type CreateVirtualNetworkParamsBodyData struct {

	// attributes
	// Required: true
	Attributes *CreateVirtualNetworkParamsBodyDataAttributes `json:"attributes"`

	// type
	// Required: true
	// Enum: [virtual_network]
	Type *string `json:"type"`
}

CreateVirtualNetworkParamsBodyData create virtual network params body data swagger:model CreateVirtualNetworkParamsBodyData

func (*CreateVirtualNetworkParamsBodyData) ContextValidate

func (o *CreateVirtualNetworkParamsBodyData) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this create virtual network params body data based on the context it is used

func (*CreateVirtualNetworkParamsBodyData) MarshalBinary

func (o *CreateVirtualNetworkParamsBodyData) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateVirtualNetworkParamsBodyData) UnmarshalBinary

func (o *CreateVirtualNetworkParamsBodyData) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateVirtualNetworkParamsBodyData) Validate

Validate validates this create virtual network params body data

type CreateVirtualNetworkParamsBodyDataAttributes

type CreateVirtualNetworkParamsBodyDataAttributes struct {
	Description string `json:"description"`
	Project     string `json:"project"`
	Site        string `json:"site,omitempty"`
}

CreateVirtualNetworkParamsBodyDataAttributes create virtual network params body data attributes swagger:model CreateVirtualNetworkParamsBodyDataAttributes

func (*CreateVirtualNetworkParamsBodyDataAttributes) ContextValidate

ContextValidate validates this create virtual network params body data attributes based on context it is used

func (*CreateVirtualNetworkParamsBodyDataAttributes) MarshalBinary

MarshalBinary interface implementation

func (*CreateVirtualNetworkParamsBodyDataAttributes) UnmarshalBinary

UnmarshalBinary interface implementation

func (*CreateVirtualNetworkParamsBodyDataAttributes) Validate

Validate validates this create virtual network params body data attributes

type CreateVirtualNetworkReader

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

CreateVirtualNetworkReader is a Reader for the CreateVirtualNetwork structure.

func (*CreateVirtualNetworkReader) ReadResponse

func (o *CreateVirtualNetworkReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type DestroyVirtualNetworkNoContent

type DestroyVirtualNetworkNoContent struct {
}

DestroyVirtualNetworkNoContent describes a response with status code 204, with default header values.

Destroyed

func NewDestroyVirtualNetworkNoContent

func NewDestroyVirtualNetworkNoContent() *DestroyVirtualNetworkNoContent

NewDestroyVirtualNetworkNoContent creates a DestroyVirtualNetworkNoContent with default headers values

func (*DestroyVirtualNetworkNoContent) Code

Code gets the status code for the destroy virtual network no content response

func (*DestroyVirtualNetworkNoContent) Error

func (*DestroyVirtualNetworkNoContent) IsClientError

func (o *DestroyVirtualNetworkNoContent) IsClientError() bool

IsClientError returns true when this destroy virtual network no content response has a 4xx status code

func (*DestroyVirtualNetworkNoContent) IsCode

func (o *DestroyVirtualNetworkNoContent) IsCode(code int) bool

IsCode returns true when this destroy virtual network no content response a status code equal to that given

func (*DestroyVirtualNetworkNoContent) IsRedirect

func (o *DestroyVirtualNetworkNoContent) IsRedirect() bool

IsRedirect returns true when this destroy virtual network no content response has a 3xx status code

func (*DestroyVirtualNetworkNoContent) IsServerError

func (o *DestroyVirtualNetworkNoContent) IsServerError() bool

IsServerError returns true when this destroy virtual network no content response has a 5xx status code

func (*DestroyVirtualNetworkNoContent) IsSuccess

func (o *DestroyVirtualNetworkNoContent) IsSuccess() bool

IsSuccess returns true when this destroy virtual network no content response has a 2xx status code

func (*DestroyVirtualNetworkNoContent) Render

func (o *DestroyVirtualNetworkNoContent) Render()

func (*DestroyVirtualNetworkNoContent) String

type DestroyVirtualNetworkParams

type DestroyVirtualNetworkParams struct {
	ID string `json:"id"`

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DestroyVirtualNetworkParams contains all the parameters to send to the API endpoint

for the destroy virtual network operation.

Typically these are written to a http.Request.

func NewDestroyVirtualNetworkParams

func NewDestroyVirtualNetworkParams() *DestroyVirtualNetworkParams

NewDestroyVirtualNetworkParams creates a new DestroyVirtualNetworkParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewDestroyVirtualNetworkParamsWithContext

func NewDestroyVirtualNetworkParamsWithContext(ctx context.Context) *DestroyVirtualNetworkParams

NewDestroyVirtualNetworkParamsWithContext creates a new DestroyVirtualNetworkParams object with the ability to set a context for a request.

func NewDestroyVirtualNetworkParamsWithHTTPClient

func NewDestroyVirtualNetworkParamsWithHTTPClient(client *http.Client) *DestroyVirtualNetworkParams

NewDestroyVirtualNetworkParamsWithHTTPClient creates a new DestroyVirtualNetworkParams object with the ability to set a custom HTTPClient for a request.

func NewDestroyVirtualNetworkParamsWithTimeout

func NewDestroyVirtualNetworkParamsWithTimeout(timeout time.Duration) *DestroyVirtualNetworkParams

NewDestroyVirtualNetworkParamsWithTimeout creates a new DestroyVirtualNetworkParams object with the ability to set a timeout on a request.

func (*DestroyVirtualNetworkParams) SetContext

func (o *DestroyVirtualNetworkParams) SetContext(ctx context.Context)

SetContext adds the context to the destroy virtual network params

func (*DestroyVirtualNetworkParams) SetDefaults

func (o *DestroyVirtualNetworkParams) SetDefaults()

SetDefaults hydrates default values in the destroy virtual network params (not the query body).

All values with no default are reset to their zero value.

func (*DestroyVirtualNetworkParams) SetHTTPClient

func (o *DestroyVirtualNetworkParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the destroy virtual network params

func (*DestroyVirtualNetworkParams) SetID

func (o *DestroyVirtualNetworkParams) SetID(id string)

SetID adds the id to the destroy virtual network params

func (*DestroyVirtualNetworkParams) SetTimeout

func (o *DestroyVirtualNetworkParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the destroy virtual network params

func (*DestroyVirtualNetworkParams) WithContext

WithContext adds the context to the destroy virtual network params

func (*DestroyVirtualNetworkParams) WithDefaults

WithDefaults hydrates default values in the destroy virtual network params (not the query body).

All values with no default are reset to their zero value.

func (*DestroyVirtualNetworkParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the destroy virtual network params

func (*DestroyVirtualNetworkParams) WithID

WithID adds the id to the destroy virtual network params

func (*DestroyVirtualNetworkParams) WithTimeout

WithTimeout adds the timeout to the destroy virtual network params

func (*DestroyVirtualNetworkParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DestroyVirtualNetworkReader

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

DestroyVirtualNetworkReader is a Reader for the DestroyVirtualNetwork structure.

func (*DestroyVirtualNetworkReader) ReadResponse

func (o *DestroyVirtualNetworkReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetVirtualNetworkOK

type GetVirtualNetworkOK struct {
	Payload *GetVirtualNetworkOKBody
}

GetVirtualNetworkOK describes a response with status code 200, with default header values.

List private networks

func NewGetVirtualNetworkOK

func NewGetVirtualNetworkOK() *GetVirtualNetworkOK

NewGetVirtualNetworkOK creates a GetVirtualNetworkOK with default headers values

func (*GetVirtualNetworkOK) Code

func (o *GetVirtualNetworkOK) Code() int

Code gets the status code for the get virtual network o k response

func (*GetVirtualNetworkOK) Error

func (o *GetVirtualNetworkOK) Error() string

func (*GetVirtualNetworkOK) GetData

func (o *GetVirtualNetworkOK) GetData() []renderer.ResponseData

func (*GetVirtualNetworkOK) GetPayload

func (*GetVirtualNetworkOK) IsClientError

func (o *GetVirtualNetworkOK) IsClientError() bool

IsClientError returns true when this get virtual network o k response has a 4xx status code

func (*GetVirtualNetworkOK) IsCode

func (o *GetVirtualNetworkOK) IsCode(code int) bool

IsCode returns true when this get virtual network o k response a status code equal to that given

func (*GetVirtualNetworkOK) IsRedirect

func (o *GetVirtualNetworkOK) IsRedirect() bool

IsRedirect returns true when this get virtual network o k response has a 3xx status code

func (*GetVirtualNetworkOK) IsServerError

func (o *GetVirtualNetworkOK) IsServerError() bool

IsServerError returns true when this get virtual network o k response has a 5xx status code

func (*GetVirtualNetworkOK) IsSuccess

func (o *GetVirtualNetworkOK) IsSuccess() bool

IsSuccess returns true when this get virtual network o k response has a 2xx status code

func (*GetVirtualNetworkOK) String

func (o *GetVirtualNetworkOK) String() string

type GetVirtualNetworkOKBody

type GetVirtualNetworkOKBody struct {

	// data
	Data *models.VirtualNetwork `json:"data,omitempty"`
}

GetVirtualNetworkOKBody get virtual network o k body swagger:model GetVirtualNetworkOKBody

func (*GetVirtualNetworkOKBody) ContextValidate

func (o *GetVirtualNetworkOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get virtual network o k body based on the context it is used

func (*GetVirtualNetworkOKBody) MarshalBinary

func (o *GetVirtualNetworkOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetVirtualNetworkOKBody) UnmarshalBinary

func (o *GetVirtualNetworkOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetVirtualNetworkOKBody) Validate

func (o *GetVirtualNetworkOKBody) Validate(formats strfmt.Registry) error

Validate validates this get virtual network o k body

type GetVirtualNetworkParams

type GetVirtualNetworkParams struct {
	// ID.
	ID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetVirtualNetworkParams contains all the parameters to send to the API endpoint

for the get virtual network operation.

Typically these are written to a http.Request.

func NewGetVirtualNetworkParams

func NewGetVirtualNetworkParams() *GetVirtualNetworkParams

NewGetVirtualNetworkParams creates a new GetVirtualNetworkParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetVirtualNetworkParamsWithContext

func NewGetVirtualNetworkParamsWithContext(ctx context.Context) *GetVirtualNetworkParams

NewGetVirtualNetworkParamsWithContext creates a new GetVirtualNetworkParams object with the ability to set a context for a request.

func NewGetVirtualNetworkParamsWithHTTPClient

func NewGetVirtualNetworkParamsWithHTTPClient(client *http.Client) *GetVirtualNetworkParams

NewGetVirtualNetworkParamsWithHTTPClient creates a new GetVirtualNetworkParams object with the ability to set a custom HTTPClient for a request.

func NewGetVirtualNetworkParamsWithTimeout

func NewGetVirtualNetworkParamsWithTimeout(timeout time.Duration) *GetVirtualNetworkParams

NewGetVirtualNetworkParamsWithTimeout creates a new GetVirtualNetworkParams object with the ability to set a timeout on a request.

func (*GetVirtualNetworkParams) SetContext

func (o *GetVirtualNetworkParams) SetContext(ctx context.Context)

SetContext adds the context to the get virtual network params

func (*GetVirtualNetworkParams) SetDefaults

func (o *GetVirtualNetworkParams) SetDefaults()

SetDefaults hydrates default values in the get virtual network params (not the query body).

All values with no default are reset to their zero value.

func (*GetVirtualNetworkParams) SetHTTPClient

func (o *GetVirtualNetworkParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get virtual network params

func (*GetVirtualNetworkParams) SetID

func (o *GetVirtualNetworkParams) SetID(id string)

SetID adds the id to the get virtual network params

func (*GetVirtualNetworkParams) SetTimeout

func (o *GetVirtualNetworkParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get virtual network params

func (*GetVirtualNetworkParams) WithContext

WithContext adds the context to the get virtual network params

func (*GetVirtualNetworkParams) WithDefaults

WithDefaults hydrates default values in the get virtual network params (not the query body).

All values with no default are reset to their zero value.

func (*GetVirtualNetworkParams) WithHTTPClient

func (o *GetVirtualNetworkParams) WithHTTPClient(client *http.Client) *GetVirtualNetworkParams

WithHTTPClient adds the HTTPClient to the get virtual network params

func (*GetVirtualNetworkParams) WithID

WithID adds the id to the get virtual network params

func (*GetVirtualNetworkParams) WithTimeout

WithTimeout adds the timeout to the get virtual network params

func (*GetVirtualNetworkParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetVirtualNetworkReader

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

GetVirtualNetworkReader is a Reader for the GetVirtualNetwork structure.

func (*GetVirtualNetworkReader) ReadResponse

func (o *GetVirtualNetworkReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetVirtualNetworksOK

type GetVirtualNetworksOK struct {
	Payload *models.VirtualNetworks
}

GetVirtualNetworksOK describes a response with status code 200, with default header values.

List virtual networks

func NewGetVirtualNetworksOK

func NewGetVirtualNetworksOK() *GetVirtualNetworksOK

NewGetVirtualNetworksOK creates a GetVirtualNetworksOK with default headers values

func (*GetVirtualNetworksOK) Code

func (o *GetVirtualNetworksOK) Code() int

Code gets the status code for the get virtual networks o k response

func (*GetVirtualNetworksOK) Error

func (o *GetVirtualNetworksOK) Error() string

func (*GetVirtualNetworksOK) GetData

func (*GetVirtualNetworksOK) GetPayload

func (o *GetVirtualNetworksOK) GetPayload() *models.VirtualNetworks

func (*GetVirtualNetworksOK) IsClientError

func (o *GetVirtualNetworksOK) IsClientError() bool

IsClientError returns true when this get virtual networks o k response has a 4xx status code

func (*GetVirtualNetworksOK) IsCode

func (o *GetVirtualNetworksOK) IsCode(code int) bool

IsCode returns true when this get virtual networks o k response a status code equal to that given

func (*GetVirtualNetworksOK) IsRedirect

func (o *GetVirtualNetworksOK) IsRedirect() bool

IsRedirect returns true when this get virtual networks o k response has a 3xx status code

func (*GetVirtualNetworksOK) IsServerError

func (o *GetVirtualNetworksOK) IsServerError() bool

IsServerError returns true when this get virtual networks o k response has a 5xx status code

func (*GetVirtualNetworksOK) IsSuccess

func (o *GetVirtualNetworksOK) IsSuccess() bool

IsSuccess returns true when this get virtual networks o k response has a 2xx status code

func (*GetVirtualNetworksOK) String

func (o *GetVirtualNetworksOK) String() string

type GetVirtualNetworksParams

type GetVirtualNetworksParams struct {
	FilterTags *string

	/* FilterLocation.

	   The location slug to filter by
	*/
	FilterLocation *string

	/* FilterProject.

	   The project id or slug to filter by
	*/
	FilterProject *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetVirtualNetworksParams contains all the parameters to send to the API endpoint

for the get virtual networks operation.

Typically these are written to a http.Request.

func NewGetVirtualNetworksParams

func NewGetVirtualNetworksParams() *GetVirtualNetworksParams

NewGetVirtualNetworksParams creates a new GetVirtualNetworksParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetVirtualNetworksParamsWithContext

func NewGetVirtualNetworksParamsWithContext(ctx context.Context) *GetVirtualNetworksParams

NewGetVirtualNetworksParamsWithContext creates a new GetVirtualNetworksParams object with the ability to set a context for a request.

func NewGetVirtualNetworksParamsWithHTTPClient

func NewGetVirtualNetworksParamsWithHTTPClient(client *http.Client) *GetVirtualNetworksParams

NewGetVirtualNetworksParamsWithHTTPClient creates a new GetVirtualNetworksParams object with the ability to set a custom HTTPClient for a request.

func NewGetVirtualNetworksParamsWithTimeout

func NewGetVirtualNetworksParamsWithTimeout(timeout time.Duration) *GetVirtualNetworksParams

NewGetVirtualNetworksParamsWithTimeout creates a new GetVirtualNetworksParams object with the ability to set a timeout on a request.

func (*GetVirtualNetworksParams) SetContext

func (o *GetVirtualNetworksParams) SetContext(ctx context.Context)

SetContext adds the context to the get virtual networks params

func (*GetVirtualNetworksParams) SetDefaults

func (o *GetVirtualNetworksParams) SetDefaults()

SetDefaults hydrates default values in the get virtual networks params (not the query body).

All values with no default are reset to their zero value.

func (*GetVirtualNetworksParams) SetFilterLocation

func (o *GetVirtualNetworksParams) SetFilterLocation(filterLocation *string)

SetFilterLocation adds the filterLocation to the get virtual networks params

func (*GetVirtualNetworksParams) SetFilterProject

func (o *GetVirtualNetworksParams) SetFilterProject(filterProject *string)

SetFilterProject adds the filterProject to the get virtual networks params

func (*GetVirtualNetworksParams) SetFilterTags

func (o *GetVirtualNetworksParams) SetFilterTags(filterTags *string)

func (*GetVirtualNetworksParams) SetHTTPClient

func (o *GetVirtualNetworksParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get virtual networks params

func (*GetVirtualNetworksParams) SetTimeout

func (o *GetVirtualNetworksParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get virtual networks params

func (*GetVirtualNetworksParams) WithContext

WithContext adds the context to the get virtual networks params

func (*GetVirtualNetworksParams) WithDefaults

WithDefaults hydrates default values in the get virtual networks params (not the query body).

All values with no default are reset to their zero value.

func (*GetVirtualNetworksParams) WithFilterLocation

func (o *GetVirtualNetworksParams) WithFilterLocation(filterLocation *string) *GetVirtualNetworksParams

WithFilterLocation adds the filterLocation to the get virtual networks params

func (*GetVirtualNetworksParams) WithFilterProject

func (o *GetVirtualNetworksParams) WithFilterProject(filterProject *string) *GetVirtualNetworksParams

WithFilterProject adds the filterProject to the get virtual networks params

func (*GetVirtualNetworksParams) WithFilterTags

func (o *GetVirtualNetworksParams) WithFilterTags(filterTags *string) *GetVirtualNetworksParams

func (*GetVirtualNetworksParams) WithHTTPClient

func (o *GetVirtualNetworksParams) WithHTTPClient(client *http.Client) *GetVirtualNetworksParams

WithHTTPClient adds the HTTPClient to the get virtual networks params

func (*GetVirtualNetworksParams) WithTimeout

WithTimeout adds the timeout to the get virtual networks params

func (*GetVirtualNetworksParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetVirtualNetworksReader

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

GetVirtualNetworksReader is a Reader for the GetVirtualNetworks structure.

func (*GetVirtualNetworksReader) ReadResponse

func (o *GetVirtualNetworksReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type UpdateVirtualNetworkBody

type UpdateVirtualNetworkBody struct {

	// data
	// Required: true
	Data *UpdateVirtualNetworkParamsBodyData `json:"data"`
}

UpdateVirtualNetworkBody update virtual network body swagger:model UpdateVirtualNetworkBody

func (*UpdateVirtualNetworkBody) ContextValidate

func (o *UpdateVirtualNetworkBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this update virtual network body based on the context it is used

func (*UpdateVirtualNetworkBody) MarshalBinary

func (o *UpdateVirtualNetworkBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateVirtualNetworkBody) UnmarshalBinary

func (o *UpdateVirtualNetworkBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateVirtualNetworkBody) Validate

func (o *UpdateVirtualNetworkBody) Validate(formats strfmt.Registry) error

Validate validates this update virtual network body

type UpdateVirtualNetworkOK

type UpdateVirtualNetworkOK struct {
	Payload *GetVirtualNetworkOKBody
}

UpdateVirtualNetworkOK describes a response with status code 200, with default header values.

Updated

func NewUpdateVirtualNetworkOK

func NewUpdateVirtualNetworkOK() *UpdateVirtualNetworkOK

NewUpdateVirtualNetworkOK creates a UpdateVirtualNetworkOK with default headers values

func (*UpdateVirtualNetworkOK) Code

func (o *UpdateVirtualNetworkOK) Code() int

Code gets the status code for the update virtual network o k response

func (*UpdateVirtualNetworkOK) Error

func (o *UpdateVirtualNetworkOK) Error() string

func (*UpdateVirtualNetworkOK) GetData

func (*UpdateVirtualNetworkOK) GetPayload

func (*UpdateVirtualNetworkOK) IsClientError

func (o *UpdateVirtualNetworkOK) IsClientError() bool

IsClientError returns true when this update virtual network o k response has a 4xx status code

func (*UpdateVirtualNetworkOK) IsCode

func (o *UpdateVirtualNetworkOK) IsCode(code int) bool

IsCode returns true when this update virtual network o k response a status code equal to that given

func (*UpdateVirtualNetworkOK) IsRedirect

func (o *UpdateVirtualNetworkOK) IsRedirect() bool

IsRedirect returns true when this update virtual network o k response has a 3xx status code

func (*UpdateVirtualNetworkOK) IsServerError

func (o *UpdateVirtualNetworkOK) IsServerError() bool

IsServerError returns true when this update virtual network o k response has a 5xx status code

func (*UpdateVirtualNetworkOK) IsSuccess

func (o *UpdateVirtualNetworkOK) IsSuccess() bool

IsSuccess returns true when this update virtual network o k response has a 2xx status code

func (*UpdateVirtualNetworkOK) String

func (o *UpdateVirtualNetworkOK) String() string

type UpdateVirtualNetworkParams

type UpdateVirtualNetworkParams struct {
	Body             UpdateVirtualNetworkBody
	VirtualNetworkID string `json:"id"`

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

UpdateVirtualNetworkParams contains all the parameters to send to the API endpoint

for the update virtual network operation.

Typically these are written to a http.Request.

func NewUpdateVirtualNetworkParams

func NewUpdateVirtualNetworkParams() *UpdateVirtualNetworkParams

NewUpdateVirtualNetworkParams creates a new UpdateVirtualNetworkParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewUpdateVirtualNetworkParamsWithContext

func NewUpdateVirtualNetworkParamsWithContext(ctx context.Context) *UpdateVirtualNetworkParams

NewUpdateVirtualNetworkParamsWithContext creates a new UpdateVirtualNetworkParams object with the ability to set a context for a request.

func NewUpdateVirtualNetworkParamsWithHTTPClient

func NewUpdateVirtualNetworkParamsWithHTTPClient(client *http.Client) *UpdateVirtualNetworkParams

NewUpdateVirtualNetworkParamsWithHTTPClient creates a new UpdateVirtualNetworkParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateVirtualNetworkParamsWithTimeout

func NewUpdateVirtualNetworkParamsWithTimeout(timeout time.Duration) *UpdateVirtualNetworkParams

NewUpdateVirtualNetworkParamsWithTimeout creates a new UpdateVirtualNetworkParams object with the ability to set a timeout on a request.

func (*UpdateVirtualNetworkParams) SetBody

SetBody adds the body to the update virtual network params

func (*UpdateVirtualNetworkParams) SetContext

func (o *UpdateVirtualNetworkParams) SetContext(ctx context.Context)

SetContext adds the context to the update virtual network params

func (*UpdateVirtualNetworkParams) SetDefaults

func (o *UpdateVirtualNetworkParams) SetDefaults()

SetDefaults hydrates default values in the update virtual network params (not the query body).

All values with no default are reset to their zero value.

func (*UpdateVirtualNetworkParams) SetHTTPClient

func (o *UpdateVirtualNetworkParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the update virtual network params

func (*UpdateVirtualNetworkParams) SetTimeout

func (o *UpdateVirtualNetworkParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the update virtual network params

func (*UpdateVirtualNetworkParams) SetVirtualNetworkID

func (o *UpdateVirtualNetworkParams) SetVirtualNetworkID(virtualNetworkID string)

SetVirtualNetworkID adds the virtualNetworkId to the update virtual network params

func (*UpdateVirtualNetworkParams) WithBody

WithBody adds the body to the update virtual network params

func (*UpdateVirtualNetworkParams) WithContext

WithContext adds the context to the update virtual network params

func (*UpdateVirtualNetworkParams) WithDefaults

WithDefaults hydrates default values in the update virtual network params (not the query body).

All values with no default are reset to their zero value.

func (*UpdateVirtualNetworkParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the update virtual network params

func (*UpdateVirtualNetworkParams) WithTimeout

WithTimeout adds the timeout to the update virtual network params

func (*UpdateVirtualNetworkParams) WithVirtualNetworkID

func (o *UpdateVirtualNetworkParams) WithVirtualNetworkID(virtualNetworkID string) *UpdateVirtualNetworkParams

WithVirtualNetworkID adds the virtualNetworkID to the update virtual network params

func (*UpdateVirtualNetworkParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateVirtualNetworkParamsBodyData

type UpdateVirtualNetworkParamsBodyData struct {

	// attributes
	Attributes *UpdateVirtualNetworkParamsBodyDataAttributes `json:"attributes,omitempty"`
	ID         string                                        `json:"id"`
	Type       *string                                       `json:"type"`
}

UpdateVirtualNetworkParamsBodyData update virtual network params body data swagger:model UpdateVirtualNetworkParamsBodyData

func (*UpdateVirtualNetworkParamsBodyData) ContextValidate

func (o *UpdateVirtualNetworkParamsBodyData) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this update virtual network params body data based on the context it is used

func (*UpdateVirtualNetworkParamsBodyData) MarshalBinary

func (o *UpdateVirtualNetworkParamsBodyData) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateVirtualNetworkParamsBodyData) UnmarshalBinary

func (o *UpdateVirtualNetworkParamsBodyData) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateVirtualNetworkParamsBodyData) Validate

Validate validates this update virtual network params body data

type UpdateVirtualNetworkParamsBodyDataAttributes

type UpdateVirtualNetworkParamsBodyDataAttributes struct {
	// description
	Description string `json:"description,omitempty"`

	Tags []string `json:"tags,omitempty"`
}

UpdateVirtualNetworkParamsBodyDataAttributes update virtual network params body data attributes swagger:model UpdateVirtualNetworkParamsBodyDataAttributes

func (*UpdateVirtualNetworkParamsBodyDataAttributes) ContextValidate

ContextValidate validates this update virtual network params body data attributes based on context it is used

func (*UpdateVirtualNetworkParamsBodyDataAttributes) MarshalBinary

MarshalBinary interface implementation

func (*UpdateVirtualNetworkParamsBodyDataAttributes) UnmarshalBinary

UnmarshalBinary interface implementation

func (*UpdateVirtualNetworkParamsBodyDataAttributes) Validate

Validate validates this update virtual network params body data attributes

type UpdateVirtualNetworkReader

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

UpdateVirtualNetworkReader is a Reader for the UpdateVirtualNetwork structure.

func (*UpdateVirtualNetworkReader) ReadResponse

func (o *UpdateVirtualNetworkReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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