packet

package
v2.14.5+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

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 packet API

func (*Client) ListPacketSizes

func (a *Client) ListPacketSizes(params *ListPacketSizesParams, authInfo runtime.ClientAuthInfoWriter) (*ListPacketSizesOK, error)

ListPacketSizes Lists sizes from packet

func (*Client) ListPacketSizesNoCredentials

func (a *Client) ListPacketSizesNoCredentials(params *ListPacketSizesNoCredentialsParams, authInfo runtime.ClientAuthInfoWriter) (*ListPacketSizesNoCredentialsOK, error)

ListPacketSizesNoCredentials Lists sizes from packet

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	ListPacketSizes(params *ListPacketSizesParams, authInfo runtime.ClientAuthInfoWriter) (*ListPacketSizesOK, error)

	ListPacketSizesNoCredentials(params *ListPacketSizesNoCredentialsParams, authInfo runtime.ClientAuthInfoWriter) (*ListPacketSizesNoCredentialsOK, 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 packet API client.

type ListPacketSizesDefault

type ListPacketSizesDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}

ListPacketSizesDefault handles this case with default header values.

errorResponse

func NewListPacketSizesDefault

func NewListPacketSizesDefault(code int) *ListPacketSizesDefault

NewListPacketSizesDefault creates a ListPacketSizesDefault with default headers values

func (*ListPacketSizesDefault) Code

func (o *ListPacketSizesDefault) Code() int

Code gets the status code for the list packet sizes default response

func (*ListPacketSizesDefault) Error

func (o *ListPacketSizesDefault) Error() string

func (*ListPacketSizesDefault) GetPayload

func (o *ListPacketSizesDefault) GetPayload() *models.ErrorResponse

type ListPacketSizesNoCredentialsDefault

type ListPacketSizesNoCredentialsDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}

ListPacketSizesNoCredentialsDefault handles this case with default header values.

errorResponse

func NewListPacketSizesNoCredentialsDefault

func NewListPacketSizesNoCredentialsDefault(code int) *ListPacketSizesNoCredentialsDefault

NewListPacketSizesNoCredentialsDefault creates a ListPacketSizesNoCredentialsDefault with default headers values

func (*ListPacketSizesNoCredentialsDefault) Code

Code gets the status code for the list packet sizes no credentials default response

func (*ListPacketSizesNoCredentialsDefault) Error

func (*ListPacketSizesNoCredentialsDefault) GetPayload

type ListPacketSizesNoCredentialsOK

type ListPacketSizesNoCredentialsOK struct {
	Payload []models.PacketSizeList
}

ListPacketSizesNoCredentialsOK handles this case with default header values.

PacketSizeList

func NewListPacketSizesNoCredentialsOK

func NewListPacketSizesNoCredentialsOK() *ListPacketSizesNoCredentialsOK

NewListPacketSizesNoCredentialsOK creates a ListPacketSizesNoCredentialsOK with default headers values

func (*ListPacketSizesNoCredentialsOK) Error

func (*ListPacketSizesNoCredentialsOK) GetPayload

type ListPacketSizesNoCredentialsParams

type ListPacketSizesNoCredentialsParams struct {

	/*ClusterID*/
	ClusterID string
	/*Dc*/
	DC string
	/*ProjectID*/
	ProjectID string

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

ListPacketSizesNoCredentialsParams contains all the parameters to send to the API endpoint for the list packet sizes no credentials operation typically these are written to a http.Request

func NewListPacketSizesNoCredentialsParams

func NewListPacketSizesNoCredentialsParams() *ListPacketSizesNoCredentialsParams

NewListPacketSizesNoCredentialsParams creates a new ListPacketSizesNoCredentialsParams object with the default values initialized.

func NewListPacketSizesNoCredentialsParamsWithContext

func NewListPacketSizesNoCredentialsParamsWithContext(ctx context.Context) *ListPacketSizesNoCredentialsParams

NewListPacketSizesNoCredentialsParamsWithContext creates a new ListPacketSizesNoCredentialsParams object with the default values initialized, and the ability to set a context for a request

func NewListPacketSizesNoCredentialsParamsWithHTTPClient

func NewListPacketSizesNoCredentialsParamsWithHTTPClient(client *http.Client) *ListPacketSizesNoCredentialsParams

NewListPacketSizesNoCredentialsParamsWithHTTPClient creates a new ListPacketSizesNoCredentialsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewListPacketSizesNoCredentialsParamsWithTimeout

func NewListPacketSizesNoCredentialsParamsWithTimeout(timeout time.Duration) *ListPacketSizesNoCredentialsParams

NewListPacketSizesNoCredentialsParamsWithTimeout creates a new ListPacketSizesNoCredentialsParams object with the default values initialized, and the ability to set a timeout on a request

func (*ListPacketSizesNoCredentialsParams) SetClusterID

func (o *ListPacketSizesNoCredentialsParams) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the list packet sizes no credentials params

func (*ListPacketSizesNoCredentialsParams) SetContext

SetContext adds the context to the list packet sizes no credentials params

func (*ListPacketSizesNoCredentialsParams) SetDC

SetDC adds the dc to the list packet sizes no credentials params

func (*ListPacketSizesNoCredentialsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list packet sizes no credentials params

func (*ListPacketSizesNoCredentialsParams) SetProjectID

func (o *ListPacketSizesNoCredentialsParams) SetProjectID(projectID string)

SetProjectID adds the projectId to the list packet sizes no credentials params

func (*ListPacketSizesNoCredentialsParams) SetTimeout

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

SetTimeout adds the timeout to the list packet sizes no credentials params

func (*ListPacketSizesNoCredentialsParams) WithClusterID

WithClusterID adds the clusterID to the list packet sizes no credentials params

func (*ListPacketSizesNoCredentialsParams) WithContext

WithContext adds the context to the list packet sizes no credentials params

func (*ListPacketSizesNoCredentialsParams) WithDC

WithDC adds the dc to the list packet sizes no credentials params

func (*ListPacketSizesNoCredentialsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the list packet sizes no credentials params

func (*ListPacketSizesNoCredentialsParams) WithProjectID

WithProjectID adds the projectID to the list packet sizes no credentials params

func (*ListPacketSizesNoCredentialsParams) WithTimeout

WithTimeout adds the timeout to the list packet sizes no credentials params

func (*ListPacketSizesNoCredentialsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListPacketSizesNoCredentialsReader

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

ListPacketSizesNoCredentialsReader is a Reader for the ListPacketSizesNoCredentials structure.

func (*ListPacketSizesNoCredentialsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListPacketSizesOK

type ListPacketSizesOK struct {
	Payload []models.PacketSizeList
}

ListPacketSizesOK handles this case with default header values.

PacketSizeList

func NewListPacketSizesOK

func NewListPacketSizesOK() *ListPacketSizesOK

NewListPacketSizesOK creates a ListPacketSizesOK with default headers values

func (*ListPacketSizesOK) Error

func (o *ListPacketSizesOK) Error() string

func (*ListPacketSizesOK) GetPayload

func (o *ListPacketSizesOK) GetPayload() []models.PacketSizeList

type ListPacketSizesParams

type ListPacketSizesParams struct {

	/*APIKey*/
	APIKey *string
	/*Credential*/
	Credential *string
	/*ProjectID*/
	ProjectID *string

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

ListPacketSizesParams contains all the parameters to send to the API endpoint for the list packet sizes operation typically these are written to a http.Request

func NewListPacketSizesParams

func NewListPacketSizesParams() *ListPacketSizesParams

NewListPacketSizesParams creates a new ListPacketSizesParams object with the default values initialized.

func NewListPacketSizesParamsWithContext

func NewListPacketSizesParamsWithContext(ctx context.Context) *ListPacketSizesParams

NewListPacketSizesParamsWithContext creates a new ListPacketSizesParams object with the default values initialized, and the ability to set a context for a request

func NewListPacketSizesParamsWithHTTPClient

func NewListPacketSizesParamsWithHTTPClient(client *http.Client) *ListPacketSizesParams

NewListPacketSizesParamsWithHTTPClient creates a new ListPacketSizesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewListPacketSizesParamsWithTimeout

func NewListPacketSizesParamsWithTimeout(timeout time.Duration) *ListPacketSizesParams

NewListPacketSizesParamsWithTimeout creates a new ListPacketSizesParams object with the default values initialized, and the ability to set a timeout on a request

func (*ListPacketSizesParams) SetAPIKey

func (o *ListPacketSizesParams) SetAPIKey(aPIKey *string)

SetAPIKey adds the apiKey to the list packet sizes params

func (*ListPacketSizesParams) SetContext

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

SetContext adds the context to the list packet sizes params

func (*ListPacketSizesParams) SetCredential

func (o *ListPacketSizesParams) SetCredential(credential *string)

SetCredential adds the credential to the list packet sizes params

func (*ListPacketSizesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list packet sizes params

func (*ListPacketSizesParams) SetProjectID

func (o *ListPacketSizesParams) SetProjectID(projectID *string)

SetProjectID adds the projectId to the list packet sizes params

func (*ListPacketSizesParams) SetTimeout

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

SetTimeout adds the timeout to the list packet sizes params

func (*ListPacketSizesParams) WithAPIKey

func (o *ListPacketSizesParams) WithAPIKey(aPIKey *string) *ListPacketSizesParams

WithAPIKey adds the aPIKey to the list packet sizes params

func (*ListPacketSizesParams) WithContext

WithContext adds the context to the list packet sizes params

func (*ListPacketSizesParams) WithCredential

func (o *ListPacketSizesParams) WithCredential(credential *string) *ListPacketSizesParams

WithCredential adds the credential to the list packet sizes params

func (*ListPacketSizesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list packet sizes params

func (*ListPacketSizesParams) WithProjectID

func (o *ListPacketSizesParams) WithProjectID(projectID *string) *ListPacketSizesParams

WithProjectID adds the projectID to the list packet sizes params

func (*ListPacketSizesParams) WithTimeout

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

WithTimeout adds the timeout to the list packet sizes params

func (*ListPacketSizesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListPacketSizesReader

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

ListPacketSizesReader is a Reader for the ListPacketSizes structure.

func (*ListPacketSizesReader) ReadResponse

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