Documentation
¶
Index ¶
- type Client
- func (a *Client) ListPacketSizes(params *ListPacketSizesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListPacketSizesOK, error)
- func (a *Client) ListPacketSizesNoCredentials(params *ListPacketSizesNoCredentialsParams, ...) (*ListPacketSizesNoCredentialsOK, error)
- func (a *Client) ListPacketSizesNoCredentialsV2(params *ListPacketSizesNoCredentialsV2Params, ...) (*ListPacketSizesNoCredentialsV2OK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type ListPacketSizesDefault
- type ListPacketSizesNoCredentialsDefault
- type ListPacketSizesNoCredentialsOK
- type ListPacketSizesNoCredentialsParams
- func NewListPacketSizesNoCredentialsParams() *ListPacketSizesNoCredentialsParams
- func NewListPacketSizesNoCredentialsParamsWithContext(ctx context.Context) *ListPacketSizesNoCredentialsParams
- func NewListPacketSizesNoCredentialsParamsWithHTTPClient(client *http.Client) *ListPacketSizesNoCredentialsParams
- func NewListPacketSizesNoCredentialsParamsWithTimeout(timeout time.Duration) *ListPacketSizesNoCredentialsParams
- func (o *ListPacketSizesNoCredentialsParams) SetClusterID(clusterID string)
- func (o *ListPacketSizesNoCredentialsParams) SetContext(ctx context.Context)
- func (o *ListPacketSizesNoCredentialsParams) SetDC(dc string)
- func (o *ListPacketSizesNoCredentialsParams) SetDefaults()
- func (o *ListPacketSizesNoCredentialsParams) SetHTTPClient(client *http.Client)
- func (o *ListPacketSizesNoCredentialsParams) SetProjectID(projectID string)
- func (o *ListPacketSizesNoCredentialsParams) SetTimeout(timeout time.Duration)
- func (o *ListPacketSizesNoCredentialsParams) WithClusterID(clusterID string) *ListPacketSizesNoCredentialsParams
- func (o *ListPacketSizesNoCredentialsParams) WithContext(ctx context.Context) *ListPacketSizesNoCredentialsParams
- func (o *ListPacketSizesNoCredentialsParams) WithDC(dc string) *ListPacketSizesNoCredentialsParams
- func (o *ListPacketSizesNoCredentialsParams) WithDefaults() *ListPacketSizesNoCredentialsParams
- func (o *ListPacketSizesNoCredentialsParams) WithHTTPClient(client *http.Client) *ListPacketSizesNoCredentialsParams
- func (o *ListPacketSizesNoCredentialsParams) WithProjectID(projectID string) *ListPacketSizesNoCredentialsParams
- func (o *ListPacketSizesNoCredentialsParams) WithTimeout(timeout time.Duration) *ListPacketSizesNoCredentialsParams
- func (o *ListPacketSizesNoCredentialsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListPacketSizesNoCredentialsReader
- type ListPacketSizesNoCredentialsV2Default
- type ListPacketSizesNoCredentialsV2OK
- type ListPacketSizesNoCredentialsV2Params
- func NewListPacketSizesNoCredentialsV2Params() *ListPacketSizesNoCredentialsV2Params
- func NewListPacketSizesNoCredentialsV2ParamsWithContext(ctx context.Context) *ListPacketSizesNoCredentialsV2Params
- func NewListPacketSizesNoCredentialsV2ParamsWithHTTPClient(client *http.Client) *ListPacketSizesNoCredentialsV2Params
- func NewListPacketSizesNoCredentialsV2ParamsWithTimeout(timeout time.Duration) *ListPacketSizesNoCredentialsV2Params
- func (o *ListPacketSizesNoCredentialsV2Params) SetClusterID(clusterID string)
- func (o *ListPacketSizesNoCredentialsV2Params) SetContext(ctx context.Context)
- func (o *ListPacketSizesNoCredentialsV2Params) SetDefaults()
- func (o *ListPacketSizesNoCredentialsV2Params) SetHTTPClient(client *http.Client)
- func (o *ListPacketSizesNoCredentialsV2Params) SetProjectID(projectID string)
- func (o *ListPacketSizesNoCredentialsV2Params) SetTimeout(timeout time.Duration)
- func (o *ListPacketSizesNoCredentialsV2Params) WithClusterID(clusterID string) *ListPacketSizesNoCredentialsV2Params
- func (o *ListPacketSizesNoCredentialsV2Params) WithContext(ctx context.Context) *ListPacketSizesNoCredentialsV2Params
- func (o *ListPacketSizesNoCredentialsV2Params) WithDefaults() *ListPacketSizesNoCredentialsV2Params
- func (o *ListPacketSizesNoCredentialsV2Params) WithHTTPClient(client *http.Client) *ListPacketSizesNoCredentialsV2Params
- func (o *ListPacketSizesNoCredentialsV2Params) WithProjectID(projectID string) *ListPacketSizesNoCredentialsV2Params
- func (o *ListPacketSizesNoCredentialsV2Params) WithTimeout(timeout time.Duration) *ListPacketSizesNoCredentialsV2Params
- func (o *ListPacketSizesNoCredentialsV2Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListPacketSizesNoCredentialsV2Reader
- type ListPacketSizesOK
- type ListPacketSizesParams
- func NewListPacketSizesParams() *ListPacketSizesParams
- func NewListPacketSizesParamsWithContext(ctx context.Context) *ListPacketSizesParams
- func NewListPacketSizesParamsWithHTTPClient(client *http.Client) *ListPacketSizesParams
- func NewListPacketSizesParamsWithTimeout(timeout time.Duration) *ListPacketSizesParams
- func (o *ListPacketSizesParams) SetAPIKey(aPIKey *string)
- func (o *ListPacketSizesParams) SetContext(ctx context.Context)
- func (o *ListPacketSizesParams) SetCredential(credential *string)
- func (o *ListPacketSizesParams) SetDefaults()
- func (o *ListPacketSizesParams) SetHTTPClient(client *http.Client)
- func (o *ListPacketSizesParams) SetProjectID(projectID *string)
- func (o *ListPacketSizesParams) SetTimeout(timeout time.Duration)
- func (o *ListPacketSizesParams) WithAPIKey(aPIKey *string) *ListPacketSizesParams
- func (o *ListPacketSizesParams) WithContext(ctx context.Context) *ListPacketSizesParams
- func (o *ListPacketSizesParams) WithCredential(credential *string) *ListPacketSizesParams
- func (o *ListPacketSizesParams) WithDefaults() *ListPacketSizesParams
- func (o *ListPacketSizesParams) WithHTTPClient(client *http.Client) *ListPacketSizesParams
- func (o *ListPacketSizesParams) WithProjectID(projectID *string) *ListPacketSizesParams
- func (o *ListPacketSizesParams) WithTimeout(timeout time.Duration) *ListPacketSizesParams
- func (o *ListPacketSizesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListPacketSizesReader
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 ¶
func (o *ListPacketSizesNoCredentialsDefault) Code() int
Code gets the status code for the list packet sizes no credentials default response
func (*ListPacketSizesNoCredentialsDefault) Error ¶
func (o *ListPacketSizesNoCredentialsDefault) Error() string
func (*ListPacketSizesNoCredentialsDefault) GetPayload ¶
func (o *ListPacketSizesNoCredentialsDefault) GetPayload() *models.ErrorResponse
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 (o *ListPacketSizesNoCredentialsOK) Error() string
func (*ListPacketSizesNoCredentialsOK) GetPayload ¶
func (o *ListPacketSizesNoCredentialsOK) GetPayload() []models.PacketSizeList
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 ¶
func (o *ListPacketSizesNoCredentialsParams) SetContext(ctx context.Context)
SetContext adds the context to the list packet sizes no credentials params
func (*ListPacketSizesNoCredentialsParams) SetDC ¶
func (o *ListPacketSizesNoCredentialsParams) SetDC(dc string)
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 ¶
func (o *ListPacketSizesNoCredentialsParams) WithClusterID(clusterID string) *ListPacketSizesNoCredentialsParams
WithClusterID adds the clusterID to the list packet sizes no credentials params
func (*ListPacketSizesNoCredentialsParams) WithContext ¶
func (o *ListPacketSizesNoCredentialsParams) WithContext(ctx context.Context) *ListPacketSizesNoCredentialsParams
WithContext adds the context to the list packet sizes no credentials params
func (*ListPacketSizesNoCredentialsParams) WithDC ¶
func (o *ListPacketSizesNoCredentialsParams) WithDC(dc string) *ListPacketSizesNoCredentialsParams
WithDC adds the dc to the list packet sizes no credentials params
func (*ListPacketSizesNoCredentialsParams) WithDefaults ¶ added in v2.18.0
func (o *ListPacketSizesNoCredentialsParams) WithDefaults() *ListPacketSizesNoCredentialsParams
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 ¶
func (o *ListPacketSizesNoCredentialsParams) WithHTTPClient(client *http.Client) *ListPacketSizesNoCredentialsParams
WithHTTPClient adds the HTTPClient to the list packet sizes no credentials params
func (*ListPacketSizesNoCredentialsParams) WithProjectID ¶
func (o *ListPacketSizesNoCredentialsParams) WithProjectID(projectID string) *ListPacketSizesNoCredentialsParams
WithProjectID adds the projectID to the list packet sizes no credentials params
func (*ListPacketSizesNoCredentialsParams) WithTimeout ¶
func (o *ListPacketSizesNoCredentialsParams) WithTimeout(timeout time.Duration) *ListPacketSizesNoCredentialsParams
WithTimeout adds the timeout to the list packet sizes no credentials params
func (*ListPacketSizesNoCredentialsParams) WriteToRequest ¶
func (o *ListPacketSizesNoCredentialsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *ListPacketSizesNoCredentialsV2Default) Code() int
Code gets the status code for the list packet sizes no credentials v2 default response
func (*ListPacketSizesNoCredentialsV2Default) Error ¶
func (o *ListPacketSizesNoCredentialsV2Default) Error() string
func (*ListPacketSizesNoCredentialsV2Default) GetPayload ¶
func (o *ListPacketSizesNoCredentialsV2Default) GetPayload() *models.ErrorResponse
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 (o *ListPacketSizesNoCredentialsV2OK) Error() string
func (*ListPacketSizesNoCredentialsV2OK) GetPayload ¶
func (o *ListPacketSizesNoCredentialsV2OK) GetPayload() []models.PacketSizeList
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 ¶
func (o *ListPacketSizesNoCredentialsV2Params) SetContext(ctx context.Context)
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 ¶
func (o *ListPacketSizesNoCredentialsV2Params) WithClusterID(clusterID string) *ListPacketSizesNoCredentialsV2Params
WithClusterID adds the clusterID to the list packet sizes no credentials v2 params
func (*ListPacketSizesNoCredentialsV2Params) WithContext ¶
func (o *ListPacketSizesNoCredentialsV2Params) WithContext(ctx context.Context) *ListPacketSizesNoCredentialsV2Params
WithContext adds the context to the list packet sizes no credentials v2 params
func (*ListPacketSizesNoCredentialsV2Params) WithDefaults ¶ added in v2.18.0
func (o *ListPacketSizesNoCredentialsV2Params) WithDefaults() *ListPacketSizesNoCredentialsV2Params
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 ¶
func (o *ListPacketSizesNoCredentialsV2Params) WithHTTPClient(client *http.Client) *ListPacketSizesNoCredentialsV2Params
WithHTTPClient adds the HTTPClient to the list packet sizes no credentials v2 params
func (*ListPacketSizesNoCredentialsV2Params) WithProjectID ¶
func (o *ListPacketSizesNoCredentialsV2Params) WithProjectID(projectID string) *ListPacketSizesNoCredentialsV2Params
WithProjectID adds the projectID to the list packet sizes no credentials v2 params
func (*ListPacketSizesNoCredentialsV2Params) WithTimeout ¶
func (o *ListPacketSizesNoCredentialsV2Params) WithTimeout(timeout time.Duration) *ListPacketSizesNoCredentialsV2Params
WithTimeout adds the timeout to the list packet sizes no credentials v2 params
func (*ListPacketSizesNoCredentialsV2Params) WriteToRequest ¶
func (o *ListPacketSizesNoCredentialsV2Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *ListPacketSizesParams) WithContext(ctx context.Context) *ListPacketSizesParams
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.