network

package
v0.2.22 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2021 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for network API

func (*Client) CreateNetwork

func (a *Client) CreateNetwork(params *CreateNetworkParams, opts ...ClientOption) (*CreateNetworkAccepted, error)

CreateNetwork creates network

Provision a new network based on the passed in constraints. The network should be destroyed after the machine is destroyed to free up resources.

func (*Client) DeleteNetwork

func (a *Client) DeleteNetwork(params *DeleteNetworkParams, opts ...ClientOption) (*DeleteNetworkAccepted, error)

DeleteNetwork deletes a network

Delete a network with a given id

func (*Client) GetMachineNetworkInterface

func (a *Client) GetMachineNetworkInterface(params *GetMachineNetworkInterfaceParams, opts ...ClientOption) (*GetMachineNetworkInterfaceOK, error)

GetMachineNetworkInterface gets machine network interface

Get network interface with a given id for specific machine

func (*Client) GetNetwork

func (a *Client) GetNetwork(params *GetNetworkParams, opts ...ClientOption) (*GetNetworkOK, error)

GetNetwork gets network

Get network with a given id

func (*Client) GetNetworkDomain

func (a *Client) GetNetworkDomain(params *GetNetworkDomainParams, opts ...ClientOption) (*GetNetworkDomainOK, error)

GetNetworkDomain gets network domain

Get network domain with a given id

func (*Client) GetNetworkDomains

func (a *Client) GetNetworkDomains(params *GetNetworkDomainsParams, opts ...ClientOption) (*GetNetworkDomainsOK, error)

GetNetworkDomains gets network domains

Get all network domains.

func (*Client) GetNetworks

func (a *Client) GetNetworks(params *GetNetworksParams, opts ...ClientOption) (*GetNetworksOK, error)

GetNetworks gets networks

Get all networks

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption added in v0.2.20

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService added in v0.2.18

type ClientService interface {
	CreateNetwork(params *CreateNetworkParams, opts ...ClientOption) (*CreateNetworkAccepted, error)

	DeleteNetwork(params *DeleteNetworkParams, opts ...ClientOption) (*DeleteNetworkAccepted, error)

	GetMachineNetworkInterface(params *GetMachineNetworkInterfaceParams, opts ...ClientOption) (*GetMachineNetworkInterfaceOK, error)

	GetNetwork(params *GetNetworkParams, opts ...ClientOption) (*GetNetworkOK, error)

	GetNetworkDomain(params *GetNetworkDomainParams, opts ...ClientOption) (*GetNetworkDomainOK, error)

	GetNetworkDomains(params *GetNetworkDomainsParams, opts ...ClientOption) (*GetNetworkDomainsOK, error)

	GetNetworks(params *GetNetworksParams, opts ...ClientOption) (*GetNetworksOK, 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 network API client.

type CreateNetworkAccepted

type CreateNetworkAccepted struct {
	Payload *models.RequestTracker
}
CreateNetworkAccepted describes a response with status code 202, with default header values.

successful operation

func NewCreateNetworkAccepted

func NewCreateNetworkAccepted() *CreateNetworkAccepted

NewCreateNetworkAccepted creates a CreateNetworkAccepted with default headers values

func (*CreateNetworkAccepted) Error

func (o *CreateNetworkAccepted) Error() string

func (*CreateNetworkAccepted) GetPayload

func (o *CreateNetworkAccepted) GetPayload() *models.RequestTracker

type CreateNetworkBadRequest

type CreateNetworkBadRequest struct {
	Payload *models.Error
}
CreateNetworkBadRequest describes a response with status code 400, with default header values.

Invalid Request - bad data

func NewCreateNetworkBadRequest

func NewCreateNetworkBadRequest() *CreateNetworkBadRequest

NewCreateNetworkBadRequest creates a CreateNetworkBadRequest with default headers values

func (*CreateNetworkBadRequest) Error

func (o *CreateNetworkBadRequest) Error() string

func (*CreateNetworkBadRequest) GetPayload added in v0.2.9

func (o *CreateNetworkBadRequest) GetPayload() *models.Error

type CreateNetworkForbidden

type CreateNetworkForbidden struct {
	Payload *models.ServiceErrorResponse
}
CreateNetworkForbidden describes a response with status code 403, with default header values.

Forbidden

func NewCreateNetworkForbidden

func NewCreateNetworkForbidden() *CreateNetworkForbidden

NewCreateNetworkForbidden creates a CreateNetworkForbidden with default headers values

func (*CreateNetworkForbidden) Error

func (o *CreateNetworkForbidden) Error() string

func (*CreateNetworkForbidden) GetPayload added in v0.2.20

type CreateNetworkParams

type CreateNetworkParams struct {

	/* APIVersion.

	   The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about
	*/
	APIVersion *string

	/* Body.

	   Network Specification instance
	*/
	Body *models.NetworkSpecification

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

CreateNetworkParams contains all the parameters to send to the API endpoint

for the create network operation.

Typically these are written to a http.Request.

func NewCreateNetworkParams

func NewCreateNetworkParams() *CreateNetworkParams

NewCreateNetworkParams creates a new CreateNetworkParams 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 NewCreateNetworkParamsWithContext

func NewCreateNetworkParamsWithContext(ctx context.Context) *CreateNetworkParams

NewCreateNetworkParamsWithContext creates a new CreateNetworkParams object with the ability to set a context for a request.

func NewCreateNetworkParamsWithHTTPClient

func NewCreateNetworkParamsWithHTTPClient(client *http.Client) *CreateNetworkParams

NewCreateNetworkParamsWithHTTPClient creates a new CreateNetworkParams object with the ability to set a custom HTTPClient for a request.

func NewCreateNetworkParamsWithTimeout

func NewCreateNetworkParamsWithTimeout(timeout time.Duration) *CreateNetworkParams

NewCreateNetworkParamsWithTimeout creates a new CreateNetworkParams object with the ability to set a timeout on a request.

func (*CreateNetworkParams) SetAPIVersion

func (o *CreateNetworkParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the create network params

func (*CreateNetworkParams) SetBody

SetBody adds the body to the create network params

func (*CreateNetworkParams) SetContext

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

SetContext adds the context to the create network params

func (*CreateNetworkParams) SetDefaults added in v0.2.20

func (o *CreateNetworkParams) SetDefaults()

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

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

func (*CreateNetworkParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create network params

func (*CreateNetworkParams) SetTimeout

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

SetTimeout adds the timeout to the create network params

func (*CreateNetworkParams) WithAPIVersion

func (o *CreateNetworkParams) WithAPIVersion(aPIVersion *string) *CreateNetworkParams

WithAPIVersion adds the aPIVersion to the create network params

func (*CreateNetworkParams) WithBody

WithBody adds the body to the create network params

func (*CreateNetworkParams) WithContext

WithContext adds the context to the create network params

func (*CreateNetworkParams) WithDefaults added in v0.2.20

func (o *CreateNetworkParams) WithDefaults() *CreateNetworkParams

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

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

func (*CreateNetworkParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create network params

func (*CreateNetworkParams) WithTimeout

func (o *CreateNetworkParams) WithTimeout(timeout time.Duration) *CreateNetworkParams

WithTimeout adds the timeout to the create network params

func (*CreateNetworkParams) WriteToRequest

func (o *CreateNetworkParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type CreateNetworkReader

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

CreateNetworkReader is a Reader for the CreateNetwork structure.

func (*CreateNetworkReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteNetworkAccepted

type DeleteNetworkAccepted struct {
	Payload *models.RequestTracker
}
DeleteNetworkAccepted describes a response with status code 202, with default header values.

successful operation

func NewDeleteNetworkAccepted

func NewDeleteNetworkAccepted() *DeleteNetworkAccepted

NewDeleteNetworkAccepted creates a DeleteNetworkAccepted with default headers values

func (*DeleteNetworkAccepted) Error

func (o *DeleteNetworkAccepted) Error() string

func (*DeleteNetworkAccepted) GetPayload

func (o *DeleteNetworkAccepted) GetPayload() *models.RequestTracker

type DeleteNetworkForbidden

type DeleteNetworkForbidden struct {
	Payload *models.ServiceErrorResponse
}
DeleteNetworkForbidden describes a response with status code 403, with default header values.

Forbidden

func NewDeleteNetworkForbidden

func NewDeleteNetworkForbidden() *DeleteNetworkForbidden

NewDeleteNetworkForbidden creates a DeleteNetworkForbidden with default headers values

func (*DeleteNetworkForbidden) Error

func (o *DeleteNetworkForbidden) Error() string

func (*DeleteNetworkForbidden) GetPayload added in v0.2.20

type DeleteNetworkParams

type DeleteNetworkParams struct {

	/* APIVersion.

	   The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about
	*/
	APIVersion *string

	/* ForceDelete.

	   Controls whether this is a force delete operation. If true, best effort is made for deleting this network. Use with caution as force deleting may cause inconsistencies between the cloud provider and vRA.
	*/
	ForceDelete *bool

	/* ID.

	   The ID of the network.
	*/
	ID string

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

DeleteNetworkParams contains all the parameters to send to the API endpoint

for the delete network operation.

Typically these are written to a http.Request.

func NewDeleteNetworkParams

func NewDeleteNetworkParams() *DeleteNetworkParams

NewDeleteNetworkParams creates a new DeleteNetworkParams 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 NewDeleteNetworkParamsWithContext

func NewDeleteNetworkParamsWithContext(ctx context.Context) *DeleteNetworkParams

NewDeleteNetworkParamsWithContext creates a new DeleteNetworkParams object with the ability to set a context for a request.

func NewDeleteNetworkParamsWithHTTPClient

func NewDeleteNetworkParamsWithHTTPClient(client *http.Client) *DeleteNetworkParams

NewDeleteNetworkParamsWithHTTPClient creates a new DeleteNetworkParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteNetworkParamsWithTimeout

func NewDeleteNetworkParamsWithTimeout(timeout time.Duration) *DeleteNetworkParams

NewDeleteNetworkParamsWithTimeout creates a new DeleteNetworkParams object with the ability to set a timeout on a request.

func (*DeleteNetworkParams) SetAPIVersion

func (o *DeleteNetworkParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the delete network params

func (*DeleteNetworkParams) SetContext

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

SetContext adds the context to the delete network params

func (*DeleteNetworkParams) SetDefaults added in v0.2.20

func (o *DeleteNetworkParams) SetDefaults()

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

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

func (*DeleteNetworkParams) SetForceDelete added in v0.2.8

func (o *DeleteNetworkParams) SetForceDelete(forceDelete *bool)

SetForceDelete adds the forceDelete to the delete network params

func (*DeleteNetworkParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete network params

func (*DeleteNetworkParams) SetID

func (o *DeleteNetworkParams) SetID(id string)

SetID adds the id to the delete network params

func (*DeleteNetworkParams) SetTimeout

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

SetTimeout adds the timeout to the delete network params

func (*DeleteNetworkParams) WithAPIVersion

func (o *DeleteNetworkParams) WithAPIVersion(aPIVersion *string) *DeleteNetworkParams

WithAPIVersion adds the aPIVersion to the delete network params

func (*DeleteNetworkParams) WithContext

WithContext adds the context to the delete network params

func (*DeleteNetworkParams) WithDefaults added in v0.2.20

func (o *DeleteNetworkParams) WithDefaults() *DeleteNetworkParams

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

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

func (*DeleteNetworkParams) WithForceDelete added in v0.2.8

func (o *DeleteNetworkParams) WithForceDelete(forceDelete *bool) *DeleteNetworkParams

WithForceDelete adds the forceDelete to the delete network params

func (*DeleteNetworkParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete network params

func (*DeleteNetworkParams) WithID

WithID adds the id to the delete network params

func (*DeleteNetworkParams) WithTimeout

func (o *DeleteNetworkParams) WithTimeout(timeout time.Duration) *DeleteNetworkParams

WithTimeout adds the timeout to the delete network params

func (*DeleteNetworkParams) WriteToRequest

func (o *DeleteNetworkParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type DeleteNetworkReader

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

DeleteNetworkReader is a Reader for the DeleteNetwork structure.

func (*DeleteNetworkReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetMachineNetworkInterfaceForbidden

type GetMachineNetworkInterfaceForbidden struct {
	Payload *models.ServiceErrorResponse
}
GetMachineNetworkInterfaceForbidden describes a response with status code 403, with default header values.

Forbidden

func NewGetMachineNetworkInterfaceForbidden

func NewGetMachineNetworkInterfaceForbidden() *GetMachineNetworkInterfaceForbidden

NewGetMachineNetworkInterfaceForbidden creates a GetMachineNetworkInterfaceForbidden with default headers values

func (*GetMachineNetworkInterfaceForbidden) Error

func (*GetMachineNetworkInterfaceForbidden) GetPayload added in v0.2.20

type GetMachineNetworkInterfaceNotFound

type GetMachineNetworkInterfaceNotFound struct {
	Payload *models.Error
}
GetMachineNetworkInterfaceNotFound describes a response with status code 404, with default header values.

Not Found

func NewGetMachineNetworkInterfaceNotFound

func NewGetMachineNetworkInterfaceNotFound() *GetMachineNetworkInterfaceNotFound

NewGetMachineNetworkInterfaceNotFound creates a GetMachineNetworkInterfaceNotFound with default headers values

func (*GetMachineNetworkInterfaceNotFound) Error

func (*GetMachineNetworkInterfaceNotFound) GetPayload added in v0.2.9

type GetMachineNetworkInterfaceOK

type GetMachineNetworkInterfaceOK struct {
	Payload *models.NetworkInterface
}
GetMachineNetworkInterfaceOK describes a response with status code 200, with default header values.

successful operation

func NewGetMachineNetworkInterfaceOK

func NewGetMachineNetworkInterfaceOK() *GetMachineNetworkInterfaceOK

NewGetMachineNetworkInterfaceOK creates a GetMachineNetworkInterfaceOK with default headers values

func (*GetMachineNetworkInterfaceOK) Error

func (*GetMachineNetworkInterfaceOK) GetPayload

type GetMachineNetworkInterfaceParams

type GetMachineNetworkInterfaceParams struct {

	/* APIVersion.

	   The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about
	*/
	APIVersion *string

	/* ID.

	   The ID of the machine.
	*/
	ID string

	/* Id1.

	   The ID of the network interface.
	*/
	Id1 string

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

GetMachineNetworkInterfaceParams contains all the parameters to send to the API endpoint

for the get machine network interface operation.

Typically these are written to a http.Request.

func NewGetMachineNetworkInterfaceParams

func NewGetMachineNetworkInterfaceParams() *GetMachineNetworkInterfaceParams

NewGetMachineNetworkInterfaceParams creates a new GetMachineNetworkInterfaceParams 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 NewGetMachineNetworkInterfaceParamsWithContext

func NewGetMachineNetworkInterfaceParamsWithContext(ctx context.Context) *GetMachineNetworkInterfaceParams

NewGetMachineNetworkInterfaceParamsWithContext creates a new GetMachineNetworkInterfaceParams object with the ability to set a context for a request.

func NewGetMachineNetworkInterfaceParamsWithHTTPClient

func NewGetMachineNetworkInterfaceParamsWithHTTPClient(client *http.Client) *GetMachineNetworkInterfaceParams

NewGetMachineNetworkInterfaceParamsWithHTTPClient creates a new GetMachineNetworkInterfaceParams object with the ability to set a custom HTTPClient for a request.

func NewGetMachineNetworkInterfaceParamsWithTimeout

func NewGetMachineNetworkInterfaceParamsWithTimeout(timeout time.Duration) *GetMachineNetworkInterfaceParams

NewGetMachineNetworkInterfaceParamsWithTimeout creates a new GetMachineNetworkInterfaceParams object with the ability to set a timeout on a request.

func (*GetMachineNetworkInterfaceParams) SetAPIVersion

func (o *GetMachineNetworkInterfaceParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the get machine network interface params

func (*GetMachineNetworkInterfaceParams) SetContext

SetContext adds the context to the get machine network interface params

func (*GetMachineNetworkInterfaceParams) SetDefaults added in v0.2.20

func (o *GetMachineNetworkInterfaceParams) SetDefaults()

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

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

func (*GetMachineNetworkInterfaceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get machine network interface params

func (*GetMachineNetworkInterfaceParams) SetID

SetID adds the id to the get machine network interface params

func (*GetMachineNetworkInterfaceParams) SetId1

SetId1 adds the id1 to the get machine network interface params

func (*GetMachineNetworkInterfaceParams) SetTimeout

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

SetTimeout adds the timeout to the get machine network interface params

func (*GetMachineNetworkInterfaceParams) WithAPIVersion

WithAPIVersion adds the aPIVersion to the get machine network interface params

func (*GetMachineNetworkInterfaceParams) WithContext

WithContext adds the context to the get machine network interface params

func (*GetMachineNetworkInterfaceParams) WithDefaults added in v0.2.20

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

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

func (*GetMachineNetworkInterfaceParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get machine network interface params

func (*GetMachineNetworkInterfaceParams) WithID

WithID adds the id to the get machine network interface params

func (*GetMachineNetworkInterfaceParams) WithId1

WithId1 adds the id1 to the get machine network interface params

func (*GetMachineNetworkInterfaceParams) WithTimeout

WithTimeout adds the timeout to the get machine network interface params

func (*GetMachineNetworkInterfaceParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetMachineNetworkInterfaceReader

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

GetMachineNetworkInterfaceReader is a Reader for the GetMachineNetworkInterface structure.

func (*GetMachineNetworkInterfaceReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetNetworkDomainForbidden

type GetNetworkDomainForbidden struct {
	Payload *models.ServiceErrorResponse
}
GetNetworkDomainForbidden describes a response with status code 403, with default header values.

Forbidden

func NewGetNetworkDomainForbidden

func NewGetNetworkDomainForbidden() *GetNetworkDomainForbidden

NewGetNetworkDomainForbidden creates a GetNetworkDomainForbidden with default headers values

func (*GetNetworkDomainForbidden) Error

func (o *GetNetworkDomainForbidden) Error() string

func (*GetNetworkDomainForbidden) GetPayload added in v0.2.20

type GetNetworkDomainNotFound

type GetNetworkDomainNotFound struct {
	Payload *models.Error
}
GetNetworkDomainNotFound describes a response with status code 404, with default header values.

Not Found

func NewGetNetworkDomainNotFound

func NewGetNetworkDomainNotFound() *GetNetworkDomainNotFound

NewGetNetworkDomainNotFound creates a GetNetworkDomainNotFound with default headers values

func (*GetNetworkDomainNotFound) Error

func (o *GetNetworkDomainNotFound) Error() string

func (*GetNetworkDomainNotFound) GetPayload added in v0.2.9

func (o *GetNetworkDomainNotFound) GetPayload() *models.Error

type GetNetworkDomainOK

type GetNetworkDomainOK struct {
	Payload *models.NetworkDomain
}
GetNetworkDomainOK describes a response with status code 200, with default header values.

successful operation

func NewGetNetworkDomainOK

func NewGetNetworkDomainOK() *GetNetworkDomainOK

NewGetNetworkDomainOK creates a GetNetworkDomainOK with default headers values

func (*GetNetworkDomainOK) Error

func (o *GetNetworkDomainOK) Error() string

func (*GetNetworkDomainOK) GetPayload

func (o *GetNetworkDomainOK) GetPayload() *models.NetworkDomain

type GetNetworkDomainParams

type GetNetworkDomainParams struct {

	/* APIVersion.

	   The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about
	*/
	APIVersion *string

	/* ID.

	   The ID of the network domain.
	*/
	ID string

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

GetNetworkDomainParams contains all the parameters to send to the API endpoint

for the get network domain operation.

Typically these are written to a http.Request.

func NewGetNetworkDomainParams

func NewGetNetworkDomainParams() *GetNetworkDomainParams

NewGetNetworkDomainParams creates a new GetNetworkDomainParams 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 NewGetNetworkDomainParamsWithContext

func NewGetNetworkDomainParamsWithContext(ctx context.Context) *GetNetworkDomainParams

NewGetNetworkDomainParamsWithContext creates a new GetNetworkDomainParams object with the ability to set a context for a request.

func NewGetNetworkDomainParamsWithHTTPClient

func NewGetNetworkDomainParamsWithHTTPClient(client *http.Client) *GetNetworkDomainParams

NewGetNetworkDomainParamsWithHTTPClient creates a new GetNetworkDomainParams object with the ability to set a custom HTTPClient for a request.

func NewGetNetworkDomainParamsWithTimeout

func NewGetNetworkDomainParamsWithTimeout(timeout time.Duration) *GetNetworkDomainParams

NewGetNetworkDomainParamsWithTimeout creates a new GetNetworkDomainParams object with the ability to set a timeout on a request.

func (*GetNetworkDomainParams) SetAPIVersion

func (o *GetNetworkDomainParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the get network domain params

func (*GetNetworkDomainParams) SetContext

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

SetContext adds the context to the get network domain params

func (*GetNetworkDomainParams) SetDefaults added in v0.2.20

func (o *GetNetworkDomainParams) SetDefaults()

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

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

func (*GetNetworkDomainParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get network domain params

func (*GetNetworkDomainParams) SetID

func (o *GetNetworkDomainParams) SetID(id string)

SetID adds the id to the get network domain params

func (*GetNetworkDomainParams) SetTimeout

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

SetTimeout adds the timeout to the get network domain params

func (*GetNetworkDomainParams) WithAPIVersion

func (o *GetNetworkDomainParams) WithAPIVersion(aPIVersion *string) *GetNetworkDomainParams

WithAPIVersion adds the aPIVersion to the get network domain params

func (*GetNetworkDomainParams) WithContext

WithContext adds the context to the get network domain params

func (*GetNetworkDomainParams) WithDefaults added in v0.2.20

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

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

func (*GetNetworkDomainParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get network domain params

func (*GetNetworkDomainParams) WithID

WithID adds the id to the get network domain params

func (*GetNetworkDomainParams) WithTimeout

WithTimeout adds the timeout to the get network domain params

func (*GetNetworkDomainParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetNetworkDomainReader

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

GetNetworkDomainReader is a Reader for the GetNetworkDomain structure.

func (*GetNetworkDomainReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetNetworkDomainsForbidden

type GetNetworkDomainsForbidden struct {
	Payload *models.ServiceErrorResponse
}
GetNetworkDomainsForbidden describes a response with status code 403, with default header values.

Forbidden

func NewGetNetworkDomainsForbidden

func NewGetNetworkDomainsForbidden() *GetNetworkDomainsForbidden

NewGetNetworkDomainsForbidden creates a GetNetworkDomainsForbidden with default headers values

func (*GetNetworkDomainsForbidden) Error

func (*GetNetworkDomainsForbidden) GetPayload added in v0.2.20

type GetNetworkDomainsOK

type GetNetworkDomainsOK struct {
	Payload *models.NetworkDomainResult
}
GetNetworkDomainsOK describes a response with status code 200, with default header values.

successful operation

func NewGetNetworkDomainsOK

func NewGetNetworkDomainsOK() *GetNetworkDomainsOK

NewGetNetworkDomainsOK creates a GetNetworkDomainsOK with default headers values

func (*GetNetworkDomainsOK) Error

func (o *GetNetworkDomainsOK) Error() string

func (*GetNetworkDomainsOK) GetPayload

type GetNetworkDomainsParams

type GetNetworkDomainsParams struct {

	/* DollarFilter.

	   Add a filter to return limited results
	*/
	DollarFilter *string

	/* APIVersion.

	   The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about
	*/
	APIVersion *string

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

GetNetworkDomainsParams contains all the parameters to send to the API endpoint

for the get network domains operation.

Typically these are written to a http.Request.

func NewGetNetworkDomainsParams

func NewGetNetworkDomainsParams() *GetNetworkDomainsParams

NewGetNetworkDomainsParams creates a new GetNetworkDomainsParams 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 NewGetNetworkDomainsParamsWithContext

func NewGetNetworkDomainsParamsWithContext(ctx context.Context) *GetNetworkDomainsParams

NewGetNetworkDomainsParamsWithContext creates a new GetNetworkDomainsParams object with the ability to set a context for a request.

func NewGetNetworkDomainsParamsWithHTTPClient

func NewGetNetworkDomainsParamsWithHTTPClient(client *http.Client) *GetNetworkDomainsParams

NewGetNetworkDomainsParamsWithHTTPClient creates a new GetNetworkDomainsParams object with the ability to set a custom HTTPClient for a request.

func NewGetNetworkDomainsParamsWithTimeout

func NewGetNetworkDomainsParamsWithTimeout(timeout time.Duration) *GetNetworkDomainsParams

NewGetNetworkDomainsParamsWithTimeout creates a new GetNetworkDomainsParams object with the ability to set a timeout on a request.

func (*GetNetworkDomainsParams) SetAPIVersion

func (o *GetNetworkDomainsParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the get network domains params

func (*GetNetworkDomainsParams) SetContext

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

SetContext adds the context to the get network domains params

func (*GetNetworkDomainsParams) SetDefaults added in v0.2.20

func (o *GetNetworkDomainsParams) SetDefaults()

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

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

func (*GetNetworkDomainsParams) SetDollarFilter

func (o *GetNetworkDomainsParams) SetDollarFilter(dollarFilter *string)

SetDollarFilter adds the dollarFilter to the get network domains params

func (*GetNetworkDomainsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get network domains params

func (*GetNetworkDomainsParams) SetTimeout

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

SetTimeout adds the timeout to the get network domains params

func (*GetNetworkDomainsParams) WithAPIVersion

func (o *GetNetworkDomainsParams) WithAPIVersion(aPIVersion *string) *GetNetworkDomainsParams

WithAPIVersion adds the aPIVersion to the get network domains params

func (*GetNetworkDomainsParams) WithContext

WithContext adds the context to the get network domains params

func (*GetNetworkDomainsParams) WithDefaults added in v0.2.20

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

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

func (*GetNetworkDomainsParams) WithDollarFilter

func (o *GetNetworkDomainsParams) WithDollarFilter(dollarFilter *string) *GetNetworkDomainsParams

WithDollarFilter adds the dollarFilter to the get network domains params

func (*GetNetworkDomainsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get network domains params

func (*GetNetworkDomainsParams) WithTimeout

WithTimeout adds the timeout to the get network domains params

func (*GetNetworkDomainsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetNetworkDomainsReader

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

GetNetworkDomainsReader is a Reader for the GetNetworkDomains structure.

func (*GetNetworkDomainsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetNetworkForbidden

type GetNetworkForbidden struct {
	Payload *models.ServiceErrorResponse
}
GetNetworkForbidden describes a response with status code 403, with default header values.

Forbidden

func NewGetNetworkForbidden

func NewGetNetworkForbidden() *GetNetworkForbidden

NewGetNetworkForbidden creates a GetNetworkForbidden with default headers values

func (*GetNetworkForbidden) Error

func (o *GetNetworkForbidden) Error() string

func (*GetNetworkForbidden) GetPayload added in v0.2.20

type GetNetworkNotFound

type GetNetworkNotFound struct {
	Payload *models.Error
}
GetNetworkNotFound describes a response with status code 404, with default header values.

Not Found

func NewGetNetworkNotFound

func NewGetNetworkNotFound() *GetNetworkNotFound

NewGetNetworkNotFound creates a GetNetworkNotFound with default headers values

func (*GetNetworkNotFound) Error

func (o *GetNetworkNotFound) Error() string

func (*GetNetworkNotFound) GetPayload added in v0.2.9

func (o *GetNetworkNotFound) GetPayload() *models.Error

type GetNetworkOK

type GetNetworkOK struct {
	Payload *models.Network
}
GetNetworkOK describes a response with status code 200, with default header values.

successful operation

func NewGetNetworkOK

func NewGetNetworkOK() *GetNetworkOK

NewGetNetworkOK creates a GetNetworkOK with default headers values

func (*GetNetworkOK) Error

func (o *GetNetworkOK) Error() string

func (*GetNetworkOK) GetPayload

func (o *GetNetworkOK) GetPayload() *models.Network

type GetNetworkParams

type GetNetworkParams struct {

	/* APIVersion.

	   The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about
	*/
	APIVersion *string

	/* ID.

	   The ID of the network.
	*/
	ID string

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

GetNetworkParams contains all the parameters to send to the API endpoint

for the get network operation.

Typically these are written to a http.Request.

func NewGetNetworkParams

func NewGetNetworkParams() *GetNetworkParams

NewGetNetworkParams creates a new GetNetworkParams 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 NewGetNetworkParamsWithContext

func NewGetNetworkParamsWithContext(ctx context.Context) *GetNetworkParams

NewGetNetworkParamsWithContext creates a new GetNetworkParams object with the ability to set a context for a request.

func NewGetNetworkParamsWithHTTPClient

func NewGetNetworkParamsWithHTTPClient(client *http.Client) *GetNetworkParams

NewGetNetworkParamsWithHTTPClient creates a new GetNetworkParams object with the ability to set a custom HTTPClient for a request.

func NewGetNetworkParamsWithTimeout

func NewGetNetworkParamsWithTimeout(timeout time.Duration) *GetNetworkParams

NewGetNetworkParamsWithTimeout creates a new GetNetworkParams object with the ability to set a timeout on a request.

func (*GetNetworkParams) SetAPIVersion

func (o *GetNetworkParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the get network params

func (*GetNetworkParams) SetContext

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

SetContext adds the context to the get network params

func (*GetNetworkParams) SetDefaults added in v0.2.20

func (o *GetNetworkParams) SetDefaults()

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

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

func (*GetNetworkParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get network params

func (*GetNetworkParams) SetID

func (o *GetNetworkParams) SetID(id string)

SetID adds the id to the get network params

func (*GetNetworkParams) SetTimeout

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

SetTimeout adds the timeout to the get network params

func (*GetNetworkParams) WithAPIVersion

func (o *GetNetworkParams) WithAPIVersion(aPIVersion *string) *GetNetworkParams

WithAPIVersion adds the aPIVersion to the get network params

func (*GetNetworkParams) WithContext

func (o *GetNetworkParams) WithContext(ctx context.Context) *GetNetworkParams

WithContext adds the context to the get network params

func (*GetNetworkParams) WithDefaults added in v0.2.20

func (o *GetNetworkParams) WithDefaults() *GetNetworkParams

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

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

func (*GetNetworkParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get network params

func (*GetNetworkParams) WithID

func (o *GetNetworkParams) WithID(id string) *GetNetworkParams

WithID adds the id to the get network params

func (*GetNetworkParams) WithTimeout

func (o *GetNetworkParams) WithTimeout(timeout time.Duration) *GetNetworkParams

WithTimeout adds the timeout to the get network params

func (*GetNetworkParams) WriteToRequest

func (o *GetNetworkParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetNetworkReader

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

GetNetworkReader is a Reader for the GetNetwork structure.

func (*GetNetworkReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetNetworksForbidden

type GetNetworksForbidden struct {
	Payload *models.ServiceErrorResponse
}
GetNetworksForbidden describes a response with status code 403, with default header values.

Forbidden

func NewGetNetworksForbidden

func NewGetNetworksForbidden() *GetNetworksForbidden

NewGetNetworksForbidden creates a GetNetworksForbidden with default headers values

func (*GetNetworksForbidden) Error

func (o *GetNetworksForbidden) Error() string

func (*GetNetworksForbidden) GetPayload added in v0.2.20

type GetNetworksOK

type GetNetworksOK struct {
	Payload *models.NetworkResult
}
GetNetworksOK describes a response with status code 200, with default header values.

successful operation

func NewGetNetworksOK

func NewGetNetworksOK() *GetNetworksOK

NewGetNetworksOK creates a GetNetworksOK with default headers values

func (*GetNetworksOK) Error

func (o *GetNetworksOK) Error() string

func (*GetNetworksOK) GetPayload

func (o *GetNetworksOK) GetPayload() *models.NetworkResult

type GetNetworksParams

type GetNetworksParams struct {

	/* APIVersion.

	   The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about
	*/
	APIVersion *string

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

GetNetworksParams contains all the parameters to send to the API endpoint

for the get networks operation.

Typically these are written to a http.Request.

func NewGetNetworksParams

func NewGetNetworksParams() *GetNetworksParams

NewGetNetworksParams creates a new GetNetworksParams 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 NewGetNetworksParamsWithContext

func NewGetNetworksParamsWithContext(ctx context.Context) *GetNetworksParams

NewGetNetworksParamsWithContext creates a new GetNetworksParams object with the ability to set a context for a request.

func NewGetNetworksParamsWithHTTPClient

func NewGetNetworksParamsWithHTTPClient(client *http.Client) *GetNetworksParams

NewGetNetworksParamsWithHTTPClient creates a new GetNetworksParams object with the ability to set a custom HTTPClient for a request.

func NewGetNetworksParamsWithTimeout

func NewGetNetworksParamsWithTimeout(timeout time.Duration) *GetNetworksParams

NewGetNetworksParamsWithTimeout creates a new GetNetworksParams object with the ability to set a timeout on a request.

func (*GetNetworksParams) SetAPIVersion

func (o *GetNetworksParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the get networks params

func (*GetNetworksParams) SetContext

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

SetContext adds the context to the get networks params

func (*GetNetworksParams) SetDefaults added in v0.2.20

func (o *GetNetworksParams) SetDefaults()

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

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

func (*GetNetworksParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get networks params

func (*GetNetworksParams) SetTimeout

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

SetTimeout adds the timeout to the get networks params

func (*GetNetworksParams) WithAPIVersion

func (o *GetNetworksParams) WithAPIVersion(aPIVersion *string) *GetNetworksParams

WithAPIVersion adds the aPIVersion to the get networks params

func (*GetNetworksParams) WithContext

func (o *GetNetworksParams) WithContext(ctx context.Context) *GetNetworksParams

WithContext adds the context to the get networks params

func (*GetNetworksParams) WithDefaults added in v0.2.20

func (o *GetNetworksParams) WithDefaults() *GetNetworksParams

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

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

func (*GetNetworksParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get networks params

func (*GetNetworksParams) WithTimeout

func (o *GetNetworksParams) WithTimeout(timeout time.Duration) *GetNetworksParams

WithTimeout adds the timeout to the get networks params

func (*GetNetworksParams) WriteToRequest

func (o *GetNetworksParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetNetworksReader

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

GetNetworksReader is a Reader for the GetNetworks structure.

func (*GetNetworksReader) ReadResponse

func (o *GetNetworksReader) 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