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) SetTransport(transport runtime.ClientTransport)
- 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) 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) 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 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) 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) 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) (*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 ¶
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 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 (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 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 ¶
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) 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) 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 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 ¶
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) 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.