packet

package
v2.21.1 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 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, opts ...ClientOption) (*ListPacketSizesOK, error)

ListPacketSizes Lists sizes from packet

func (*Client) ListPacketSizesNoCredentials

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

ListPacketSizesNoCredentials Lists sizes from packet

func (*Client) ListPacketSizesNoCredentialsV2

func (a *Client) ListPacketSizesNoCredentialsV2(params *ListPacketSizesNoCredentialsV2Params, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListPacketSizesNoCredentialsV2OK, error)

ListPacketSizesNoCredentialsV2 Lists sizes from packet

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption added in v2.18.0

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

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

	ListPacketSizesNoCredentials(params *ListPacketSizesNoCredentialsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListPacketSizesNoCredentialsOK, error)

	ListPacketSizesNoCredentialsV2(params *ListPacketSizesNoCredentialsV2Params, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListPacketSizesNoCredentialsV2OK, 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 describes a response with status code -1, 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 describes a response with status code -1, 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 describes a response with status code 200, 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 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 NewListPacketSizesNoCredentialsParamsWithContext

func NewListPacketSizesNoCredentialsParamsWithContext(ctx context.Context) *ListPacketSizesNoCredentialsParams

NewListPacketSizesNoCredentialsParamsWithContext creates a new ListPacketSizesNoCredentialsParams object with 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 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 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) SetDefaults added in v2.18.0

func (o *ListPacketSizesNoCredentialsParams) SetDefaults()

SetDefaults hydrates default values in the list packet sizes no credentials params (not the query body).

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

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) WithDefaults added in v2.18.0

WithDefaults hydrates default values in the list packet sizes no credentials params (not the query body).

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

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 ListPacketSizesNoCredentialsV2Default

type ListPacketSizesNoCredentialsV2Default struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}
ListPacketSizesNoCredentialsV2Default describes a response with status code -1, with default header values.

errorResponse

func NewListPacketSizesNoCredentialsV2Default

func NewListPacketSizesNoCredentialsV2Default(code int) *ListPacketSizesNoCredentialsV2Default

NewListPacketSizesNoCredentialsV2Default creates a ListPacketSizesNoCredentialsV2Default with default headers values

func (*ListPacketSizesNoCredentialsV2Default) Code

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

func (*ListPacketSizesNoCredentialsV2Default) Error

func (*ListPacketSizesNoCredentialsV2Default) GetPayload

type ListPacketSizesNoCredentialsV2OK

type ListPacketSizesNoCredentialsV2OK struct {
	Payload []models.PacketSizeList
}
ListPacketSizesNoCredentialsV2OK describes a response with status code 200, with default header values.

PacketSizeList

func NewListPacketSizesNoCredentialsV2OK

func NewListPacketSizesNoCredentialsV2OK() *ListPacketSizesNoCredentialsV2OK

NewListPacketSizesNoCredentialsV2OK creates a ListPacketSizesNoCredentialsV2OK with default headers values

func (*ListPacketSizesNoCredentialsV2OK) Error

func (*ListPacketSizesNoCredentialsV2OK) GetPayload

type ListPacketSizesNoCredentialsV2Params

type ListPacketSizesNoCredentialsV2Params struct {

	// ClusterID.
	ClusterID string

	// ProjectID.
	ProjectID string

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

ListPacketSizesNoCredentialsV2Params contains all the parameters to send to the API endpoint

for the list packet sizes no credentials v2 operation.

Typically these are written to a http.Request.

func NewListPacketSizesNoCredentialsV2Params

func NewListPacketSizesNoCredentialsV2Params() *ListPacketSizesNoCredentialsV2Params

NewListPacketSizesNoCredentialsV2Params creates a new ListPacketSizesNoCredentialsV2Params 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 NewListPacketSizesNoCredentialsV2ParamsWithContext

func NewListPacketSizesNoCredentialsV2ParamsWithContext(ctx context.Context) *ListPacketSizesNoCredentialsV2Params

NewListPacketSizesNoCredentialsV2ParamsWithContext creates a new ListPacketSizesNoCredentialsV2Params object with the ability to set a context for a request.

func NewListPacketSizesNoCredentialsV2ParamsWithHTTPClient

func NewListPacketSizesNoCredentialsV2ParamsWithHTTPClient(client *http.Client) *ListPacketSizesNoCredentialsV2Params

NewListPacketSizesNoCredentialsV2ParamsWithHTTPClient creates a new ListPacketSizesNoCredentialsV2Params object with the ability to set a custom HTTPClient for a request.

func NewListPacketSizesNoCredentialsV2ParamsWithTimeout

func NewListPacketSizesNoCredentialsV2ParamsWithTimeout(timeout time.Duration) *ListPacketSizesNoCredentialsV2Params

NewListPacketSizesNoCredentialsV2ParamsWithTimeout creates a new ListPacketSizesNoCredentialsV2Params object with the ability to set a timeout on a request.

func (*ListPacketSizesNoCredentialsV2Params) SetClusterID

func (o *ListPacketSizesNoCredentialsV2Params) SetClusterID(clusterID string)

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

func (*ListPacketSizesNoCredentialsV2Params) SetContext

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

func (*ListPacketSizesNoCredentialsV2Params) SetDefaults added in v2.18.0

func (o *ListPacketSizesNoCredentialsV2Params) SetDefaults()

SetDefaults hydrates default values in the list packet sizes no credentials v2 params (not the query body).

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

func (*ListPacketSizesNoCredentialsV2Params) SetHTTPClient

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

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

func (*ListPacketSizesNoCredentialsV2Params) SetProjectID

func (o *ListPacketSizesNoCredentialsV2Params) SetProjectID(projectID string)

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

func (*ListPacketSizesNoCredentialsV2Params) SetTimeout

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

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

func (*ListPacketSizesNoCredentialsV2Params) WithClusterID

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

func (*ListPacketSizesNoCredentialsV2Params) WithContext

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

func (*ListPacketSizesNoCredentialsV2Params) WithDefaults added in v2.18.0

WithDefaults hydrates default values in the list packet sizes no credentials v2 params (not the query body).

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

func (*ListPacketSizesNoCredentialsV2Params) WithHTTPClient

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

func (*ListPacketSizesNoCredentialsV2Params) WithProjectID

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

func (*ListPacketSizesNoCredentialsV2Params) WithTimeout

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

func (*ListPacketSizesNoCredentialsV2Params) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListPacketSizesNoCredentialsV2Reader

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

ListPacketSizesNoCredentialsV2Reader is a Reader for the ListPacketSizesNoCredentialsV2 structure.

func (*ListPacketSizesNoCredentialsV2Reader) ReadResponse

func (o *ListPacketSizesNoCredentialsV2Reader) 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 describes a response with status code 200, 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 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 NewListPacketSizesParamsWithContext

func NewListPacketSizesParamsWithContext(ctx context.Context) *ListPacketSizesParams

NewListPacketSizesParamsWithContext creates a new ListPacketSizesParams object with 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 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 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) SetDefaults added in v2.18.0

func (o *ListPacketSizesParams) SetDefaults()

SetDefaults hydrates default values in the list packet sizes params (not the query body).

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

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) WithDefaults added in v2.18.0

func (o *ListPacketSizesParams) WithDefaults() *ListPacketSizesParams

WithDefaults hydrates default values in the list packet sizes params (not the query body).

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

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