Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateSession(params *CreateSessionParams, authInfo runtime.ClientAuthInfoWriter) (*CreateSessionCreated, error)
- func (a *Client) DeleteSession(params *DeleteSessionParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteSessionOK, error)
- func (a *Client) DetailSession(params *DetailSessionParams, authInfo runtime.ClientAuthInfoWriter) (*DetailSessionOK, error)
- func (a *Client) ListSessions(params *ListSessionsParams, authInfo runtime.ClientAuthInfoWriter) (*ListSessionsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
- type CreateSessionBadRequest
- type CreateSessionCreated
- type CreateSessionParams
- func (o *CreateSessionParams) SetBody(body *rest_model.SessionCreate)
- func (o *CreateSessionParams) SetContext(ctx context.Context)
- func (o *CreateSessionParams) SetHTTPClient(client *http.Client)
- func (o *CreateSessionParams) SetTimeout(timeout time.Duration)
- func (o *CreateSessionParams) WithBody(body *rest_model.SessionCreate) *CreateSessionParams
- func (o *CreateSessionParams) WithContext(ctx context.Context) *CreateSessionParams
- func (o *CreateSessionParams) WithHTTPClient(client *http.Client) *CreateSessionParams
- func (o *CreateSessionParams) WithTimeout(timeout time.Duration) *CreateSessionParams
- func (o *CreateSessionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateSessionReader
- type CreateSessionUnauthorized
- type DeleteSessionBadRequest
- type DeleteSessionConflict
- type DeleteSessionOK
- type DeleteSessionParams
- func (o *DeleteSessionParams) SetContext(ctx context.Context)
- func (o *DeleteSessionParams) SetHTTPClient(client *http.Client)
- func (o *DeleteSessionParams) SetID(id string)
- func (o *DeleteSessionParams) SetTimeout(timeout time.Duration)
- func (o *DeleteSessionParams) WithContext(ctx context.Context) *DeleteSessionParams
- func (o *DeleteSessionParams) WithHTTPClient(client *http.Client) *DeleteSessionParams
- func (o *DeleteSessionParams) WithID(id string) *DeleteSessionParams
- func (o *DeleteSessionParams) WithTimeout(timeout time.Duration) *DeleteSessionParams
- func (o *DeleteSessionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteSessionReader
- type DeleteSessionUnauthorized
- type DetailSessionNotFound
- type DetailSessionOK
- type DetailSessionParams
- func (o *DetailSessionParams) SetContext(ctx context.Context)
- func (o *DetailSessionParams) SetHTTPClient(client *http.Client)
- func (o *DetailSessionParams) SetID(id string)
- func (o *DetailSessionParams) SetTimeout(timeout time.Duration)
- func (o *DetailSessionParams) WithContext(ctx context.Context) *DetailSessionParams
- func (o *DetailSessionParams) WithHTTPClient(client *http.Client) *DetailSessionParams
- func (o *DetailSessionParams) WithID(id string) *DetailSessionParams
- func (o *DetailSessionParams) WithTimeout(timeout time.Duration) *DetailSessionParams
- func (o *DetailSessionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DetailSessionReader
- type DetailSessionUnauthorized
- type ListSessionsOK
- type ListSessionsParams
- func (o *ListSessionsParams) SetContext(ctx context.Context)
- func (o *ListSessionsParams) SetFilter(filter *string)
- func (o *ListSessionsParams) SetHTTPClient(client *http.Client)
- func (o *ListSessionsParams) SetLimit(limit *int64)
- func (o *ListSessionsParams) SetOffset(offset *int64)
- func (o *ListSessionsParams) SetTimeout(timeout time.Duration)
- func (o *ListSessionsParams) WithContext(ctx context.Context) *ListSessionsParams
- func (o *ListSessionsParams) WithFilter(filter *string) *ListSessionsParams
- func (o *ListSessionsParams) WithHTTPClient(client *http.Client) *ListSessionsParams
- func (o *ListSessionsParams) WithLimit(limit *int64) *ListSessionsParams
- func (o *ListSessionsParams) WithOffset(offset *int64) *ListSessionsParams
- func (o *ListSessionsParams) WithTimeout(timeout time.Duration) *ListSessionsParams
- func (o *ListSessionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListSessionsReader
- type ListSessionsUnauthorized
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 session API
func (*Client) CreateSession ¶
func (a *Client) CreateSession(params *CreateSessionParams, authInfo runtime.ClientAuthInfoWriter) (*CreateSessionCreated, error)
CreateSession creates a session resource
Create a session resource. Requires admin access.
func (*Client) DeleteSession ¶
func (a *Client) DeleteSession(params *DeleteSessionParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteSessionOK, error)
DeleteSession deletes a session
Delete a session by id. Requires admin access.
func (*Client) DetailSession ¶
func (a *Client) DetailSession(params *DetailSessionParams, authInfo runtime.ClientAuthInfoWriter) (*DetailSessionOK, error)
DetailSession retrieves a single session
Retrieves a single session by id. Requires admin access.
func (*Client) ListSessions ¶
func (a *Client) ListSessions(params *ListSessionsParams, authInfo runtime.ClientAuthInfoWriter) (*ListSessionsOK, error)
ListSessions lists sessions Retrieves a list of active sessions resources; supports filtering, sorting, and pagination. Requires admin access.
Sessions are tied to an API session and are moved when an API session times out or logs out. Active sessions (i.e. Ziti SDK connected to an edge router) will keep the session and API session marked as active.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶
type ClientService interface { CreateSession(params *CreateSessionParams, authInfo runtime.ClientAuthInfoWriter) (*CreateSessionCreated, error) DeleteSession(params *DeleteSessionParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteSessionOK, error) DetailSession(params *DetailSessionParams, authInfo runtime.ClientAuthInfoWriter) (*DetailSessionOK, error) ListSessions(params *ListSessionsParams, authInfo runtime.ClientAuthInfoWriter) (*ListSessionsOK, 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 session API client.
type CreateSessionBadRequest ¶
type CreateSessionBadRequest struct {
Payload *rest_model.APIErrorEnvelope
}
CreateSessionBadRequest handles this case with default header values.
The supplied request contains invalid fields or could not be parsed (json and non-json bodies). The error's code, message, and cause fields can be inspected for further information
func NewCreateSessionBadRequest ¶
func NewCreateSessionBadRequest() *CreateSessionBadRequest
NewCreateSessionBadRequest creates a CreateSessionBadRequest with default headers values
func (*CreateSessionBadRequest) Error ¶
func (o *CreateSessionBadRequest) Error() string
func (*CreateSessionBadRequest) GetPayload ¶
func (o *CreateSessionBadRequest) GetPayload() *rest_model.APIErrorEnvelope
type CreateSessionCreated ¶ added in v0.17.52
type CreateSessionCreated struct {
Payload *rest_model.SessionCreateEnvelope
}
CreateSessionCreated handles this case with default header values.
The create request was successful and the resource has been added at the following location
func NewCreateSessionCreated ¶ added in v0.17.52
func NewCreateSessionCreated() *CreateSessionCreated
NewCreateSessionCreated creates a CreateSessionCreated with default headers values
func (*CreateSessionCreated) Error ¶ added in v0.17.52
func (o *CreateSessionCreated) Error() string
func (*CreateSessionCreated) GetPayload ¶ added in v0.17.52
func (o *CreateSessionCreated) GetPayload() *rest_model.SessionCreateEnvelope
type CreateSessionParams ¶
type CreateSessionParams struct { /*Body A session to create */ Body *rest_model.SessionCreate Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateSessionParams contains all the parameters to send to the API endpoint for the create session operation typically these are written to a http.Request
func NewCreateSessionParams ¶
func NewCreateSessionParams() *CreateSessionParams
NewCreateSessionParams creates a new CreateSessionParams object with the default values initialized.
func NewCreateSessionParamsWithContext ¶
func NewCreateSessionParamsWithContext(ctx context.Context) *CreateSessionParams
NewCreateSessionParamsWithContext creates a new CreateSessionParams object with the default values initialized, and the ability to set a context for a request
func NewCreateSessionParamsWithHTTPClient ¶
func NewCreateSessionParamsWithHTTPClient(client *http.Client) *CreateSessionParams
NewCreateSessionParamsWithHTTPClient creates a new CreateSessionParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewCreateSessionParamsWithTimeout ¶
func NewCreateSessionParamsWithTimeout(timeout time.Duration) *CreateSessionParams
NewCreateSessionParamsWithTimeout creates a new CreateSessionParams object with the default values initialized, and the ability to set a timeout on a request
func (*CreateSessionParams) SetBody ¶
func (o *CreateSessionParams) SetBody(body *rest_model.SessionCreate)
SetBody adds the body to the create session params
func (*CreateSessionParams) SetContext ¶
func (o *CreateSessionParams) SetContext(ctx context.Context)
SetContext adds the context to the create session params
func (*CreateSessionParams) SetHTTPClient ¶
func (o *CreateSessionParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create session params
func (*CreateSessionParams) SetTimeout ¶
func (o *CreateSessionParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create session params
func (*CreateSessionParams) WithBody ¶
func (o *CreateSessionParams) WithBody(body *rest_model.SessionCreate) *CreateSessionParams
WithBody adds the body to the create session params
func (*CreateSessionParams) WithContext ¶
func (o *CreateSessionParams) WithContext(ctx context.Context) *CreateSessionParams
WithContext adds the context to the create session params
func (*CreateSessionParams) WithHTTPClient ¶
func (o *CreateSessionParams) WithHTTPClient(client *http.Client) *CreateSessionParams
WithHTTPClient adds the HTTPClient to the create session params
func (*CreateSessionParams) WithTimeout ¶
func (o *CreateSessionParams) WithTimeout(timeout time.Duration) *CreateSessionParams
WithTimeout adds the timeout to the create session params
func (*CreateSessionParams) WriteToRequest ¶
func (o *CreateSessionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateSessionReader ¶
type CreateSessionReader struct {
// contains filtered or unexported fields
}
CreateSessionReader is a Reader for the CreateSession structure.
func (*CreateSessionReader) ReadResponse ¶
func (o *CreateSessionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CreateSessionUnauthorized ¶
type CreateSessionUnauthorized struct {
}CreateSessionUnauthorized handles this case with default header values.
The currently supplied session does not have the correct access rights to request this resource
func NewCreateSessionUnauthorized ¶
func NewCreateSessionUnauthorized() *CreateSessionUnauthorized
NewCreateSessionUnauthorized creates a CreateSessionUnauthorized with default headers values
func (*CreateSessionUnauthorized) Error ¶
func (o *CreateSessionUnauthorized) Error() string
func (*CreateSessionUnauthorized) GetPayload ¶
func (o *CreateSessionUnauthorized) GetPayload() *rest_model.APIErrorEnvelope
type DeleteSessionBadRequest ¶
type DeleteSessionBadRequest struct {
Payload *rest_model.APIErrorEnvelope
}
DeleteSessionBadRequest handles this case with default header values.
The supplied request contains invalid fields or could not be parsed (json and non-json bodies). The error's code, message, and cause fields can be inspected for further information
func NewDeleteSessionBadRequest ¶
func NewDeleteSessionBadRequest() *DeleteSessionBadRequest
NewDeleteSessionBadRequest creates a DeleteSessionBadRequest with default headers values
func (*DeleteSessionBadRequest) Error ¶
func (o *DeleteSessionBadRequest) Error() string
func (*DeleteSessionBadRequest) GetPayload ¶
func (o *DeleteSessionBadRequest) GetPayload() *rest_model.APIErrorEnvelope
type DeleteSessionConflict ¶
type DeleteSessionConflict struct {
Payload *rest_model.APIErrorEnvelope
}
DeleteSessionConflict handles this case with default header values.
The resource requested to be removed/altered cannot be as it is referenced by another object.
func NewDeleteSessionConflict ¶
func NewDeleteSessionConflict() *DeleteSessionConflict
NewDeleteSessionConflict creates a DeleteSessionConflict with default headers values
func (*DeleteSessionConflict) Error ¶
func (o *DeleteSessionConflict) Error() string
func (*DeleteSessionConflict) GetPayload ¶
func (o *DeleteSessionConflict) GetPayload() *rest_model.APIErrorEnvelope
type DeleteSessionOK ¶
type DeleteSessionOK struct {
Payload *rest_model.Empty
}
DeleteSessionOK handles this case with default header values.
The delete request was successful and the resource has been removed
func NewDeleteSessionOK ¶
func NewDeleteSessionOK() *DeleteSessionOK
NewDeleteSessionOK creates a DeleteSessionOK with default headers values
func (*DeleteSessionOK) Error ¶
func (o *DeleteSessionOK) Error() string
func (*DeleteSessionOK) GetPayload ¶
func (o *DeleteSessionOK) GetPayload() *rest_model.Empty
type DeleteSessionParams ¶
type DeleteSessionParams struct { /*ID The id of the requested resource */ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteSessionParams contains all the parameters to send to the API endpoint for the delete session operation typically these are written to a http.Request
func NewDeleteSessionParams ¶
func NewDeleteSessionParams() *DeleteSessionParams
NewDeleteSessionParams creates a new DeleteSessionParams object with the default values initialized.
func NewDeleteSessionParamsWithContext ¶
func NewDeleteSessionParamsWithContext(ctx context.Context) *DeleteSessionParams
NewDeleteSessionParamsWithContext creates a new DeleteSessionParams object with the default values initialized, and the ability to set a context for a request
func NewDeleteSessionParamsWithHTTPClient ¶
func NewDeleteSessionParamsWithHTTPClient(client *http.Client) *DeleteSessionParams
NewDeleteSessionParamsWithHTTPClient creates a new DeleteSessionParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDeleteSessionParamsWithTimeout ¶
func NewDeleteSessionParamsWithTimeout(timeout time.Duration) *DeleteSessionParams
NewDeleteSessionParamsWithTimeout creates a new DeleteSessionParams object with the default values initialized, and the ability to set a timeout on a request
func (*DeleteSessionParams) SetContext ¶
func (o *DeleteSessionParams) SetContext(ctx context.Context)
SetContext adds the context to the delete session params
func (*DeleteSessionParams) SetHTTPClient ¶
func (o *DeleteSessionParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete session params
func (*DeleteSessionParams) SetID ¶
func (o *DeleteSessionParams) SetID(id string)
SetID adds the id to the delete session params
func (*DeleteSessionParams) SetTimeout ¶
func (o *DeleteSessionParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete session params
func (*DeleteSessionParams) WithContext ¶
func (o *DeleteSessionParams) WithContext(ctx context.Context) *DeleteSessionParams
WithContext adds the context to the delete session params
func (*DeleteSessionParams) WithHTTPClient ¶
func (o *DeleteSessionParams) WithHTTPClient(client *http.Client) *DeleteSessionParams
WithHTTPClient adds the HTTPClient to the delete session params
func (*DeleteSessionParams) WithID ¶
func (o *DeleteSessionParams) WithID(id string) *DeleteSessionParams
WithID adds the id to the delete session params
func (*DeleteSessionParams) WithTimeout ¶
func (o *DeleteSessionParams) WithTimeout(timeout time.Duration) *DeleteSessionParams
WithTimeout adds the timeout to the delete session params
func (*DeleteSessionParams) WriteToRequest ¶
func (o *DeleteSessionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteSessionReader ¶
type DeleteSessionReader struct {
// contains filtered or unexported fields
}
DeleteSessionReader is a Reader for the DeleteSession structure.
func (*DeleteSessionReader) ReadResponse ¶
func (o *DeleteSessionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteSessionUnauthorized ¶
type DeleteSessionUnauthorized struct {
}DeleteSessionUnauthorized handles this case with default header values.
The currently supplied session does not have the correct access rights to request this resource
func NewDeleteSessionUnauthorized ¶
func NewDeleteSessionUnauthorized() *DeleteSessionUnauthorized
NewDeleteSessionUnauthorized creates a DeleteSessionUnauthorized with default headers values
func (*DeleteSessionUnauthorized) Error ¶
func (o *DeleteSessionUnauthorized) Error() string
func (*DeleteSessionUnauthorized) GetPayload ¶
func (o *DeleteSessionUnauthorized) GetPayload() *rest_model.APIErrorEnvelope
type DetailSessionNotFound ¶
type DetailSessionNotFound struct {
Payload *rest_model.APIErrorEnvelope
}
DetailSessionNotFound handles this case with default header values.
The requested resource does not exist
func NewDetailSessionNotFound ¶
func NewDetailSessionNotFound() *DetailSessionNotFound
NewDetailSessionNotFound creates a DetailSessionNotFound with default headers values
func (*DetailSessionNotFound) Error ¶
func (o *DetailSessionNotFound) Error() string
func (*DetailSessionNotFound) GetPayload ¶
func (o *DetailSessionNotFound) GetPayload() *rest_model.APIErrorEnvelope
type DetailSessionOK ¶
type DetailSessionOK struct {
Payload *rest_model.DetailSessionEnvelope
}
DetailSessionOK handles this case with default header values.
A single session
func NewDetailSessionOK ¶
func NewDetailSessionOK() *DetailSessionOK
NewDetailSessionOK creates a DetailSessionOK with default headers values
func (*DetailSessionOK) Error ¶
func (o *DetailSessionOK) Error() string
func (*DetailSessionOK) GetPayload ¶
func (o *DetailSessionOK) GetPayload() *rest_model.DetailSessionEnvelope
type DetailSessionParams ¶
type DetailSessionParams struct { /*ID The id of the requested resource */ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DetailSessionParams contains all the parameters to send to the API endpoint for the detail session operation typically these are written to a http.Request
func NewDetailSessionParams ¶
func NewDetailSessionParams() *DetailSessionParams
NewDetailSessionParams creates a new DetailSessionParams object with the default values initialized.
func NewDetailSessionParamsWithContext ¶
func NewDetailSessionParamsWithContext(ctx context.Context) *DetailSessionParams
NewDetailSessionParamsWithContext creates a new DetailSessionParams object with the default values initialized, and the ability to set a context for a request
func NewDetailSessionParamsWithHTTPClient ¶
func NewDetailSessionParamsWithHTTPClient(client *http.Client) *DetailSessionParams
NewDetailSessionParamsWithHTTPClient creates a new DetailSessionParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDetailSessionParamsWithTimeout ¶
func NewDetailSessionParamsWithTimeout(timeout time.Duration) *DetailSessionParams
NewDetailSessionParamsWithTimeout creates a new DetailSessionParams object with the default values initialized, and the ability to set a timeout on a request
func (*DetailSessionParams) SetContext ¶
func (o *DetailSessionParams) SetContext(ctx context.Context)
SetContext adds the context to the detail session params
func (*DetailSessionParams) SetHTTPClient ¶
func (o *DetailSessionParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the detail session params
func (*DetailSessionParams) SetID ¶
func (o *DetailSessionParams) SetID(id string)
SetID adds the id to the detail session params
func (*DetailSessionParams) SetTimeout ¶
func (o *DetailSessionParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the detail session params
func (*DetailSessionParams) WithContext ¶
func (o *DetailSessionParams) WithContext(ctx context.Context) *DetailSessionParams
WithContext adds the context to the detail session params
func (*DetailSessionParams) WithHTTPClient ¶
func (o *DetailSessionParams) WithHTTPClient(client *http.Client) *DetailSessionParams
WithHTTPClient adds the HTTPClient to the detail session params
func (*DetailSessionParams) WithID ¶
func (o *DetailSessionParams) WithID(id string) *DetailSessionParams
WithID adds the id to the detail session params
func (*DetailSessionParams) WithTimeout ¶
func (o *DetailSessionParams) WithTimeout(timeout time.Duration) *DetailSessionParams
WithTimeout adds the timeout to the detail session params
func (*DetailSessionParams) WriteToRequest ¶
func (o *DetailSessionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DetailSessionReader ¶
type DetailSessionReader struct {
// contains filtered or unexported fields
}
DetailSessionReader is a Reader for the DetailSession structure.
func (*DetailSessionReader) ReadResponse ¶
func (o *DetailSessionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DetailSessionUnauthorized ¶
type DetailSessionUnauthorized struct {
}DetailSessionUnauthorized handles this case with default header values.
The currently supplied session does not have the correct access rights to request this resource
func NewDetailSessionUnauthorized ¶
func NewDetailSessionUnauthorized() *DetailSessionUnauthorized
NewDetailSessionUnauthorized creates a DetailSessionUnauthorized with default headers values
func (*DetailSessionUnauthorized) Error ¶
func (o *DetailSessionUnauthorized) Error() string
func (*DetailSessionUnauthorized) GetPayload ¶
func (o *DetailSessionUnauthorized) GetPayload() *rest_model.APIErrorEnvelope
type ListSessionsOK ¶
type ListSessionsOK struct {
Payload *rest_model.ListSessionsEnvelope
}
ListSessionsOK handles this case with default header values.
A list of sessions
func NewListSessionsOK ¶
func NewListSessionsOK() *ListSessionsOK
NewListSessionsOK creates a ListSessionsOK with default headers values
func (*ListSessionsOK) Error ¶
func (o *ListSessionsOK) Error() string
func (*ListSessionsOK) GetPayload ¶
func (o *ListSessionsOK) GetPayload() *rest_model.ListSessionsEnvelope
type ListSessionsParams ¶
type ListSessionsParams struct { /*Filter*/ Filter *string /*Limit*/ Limit *int64 /*Offset*/ Offset *int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListSessionsParams contains all the parameters to send to the API endpoint for the list sessions operation typically these are written to a http.Request
func NewListSessionsParams ¶
func NewListSessionsParams() *ListSessionsParams
NewListSessionsParams creates a new ListSessionsParams object with the default values initialized.
func NewListSessionsParamsWithContext ¶
func NewListSessionsParamsWithContext(ctx context.Context) *ListSessionsParams
NewListSessionsParamsWithContext creates a new ListSessionsParams object with the default values initialized, and the ability to set a context for a request
func NewListSessionsParamsWithHTTPClient ¶
func NewListSessionsParamsWithHTTPClient(client *http.Client) *ListSessionsParams
NewListSessionsParamsWithHTTPClient creates a new ListSessionsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewListSessionsParamsWithTimeout ¶
func NewListSessionsParamsWithTimeout(timeout time.Duration) *ListSessionsParams
NewListSessionsParamsWithTimeout creates a new ListSessionsParams object with the default values initialized, and the ability to set a timeout on a request
func (*ListSessionsParams) SetContext ¶
func (o *ListSessionsParams) SetContext(ctx context.Context)
SetContext adds the context to the list sessions params
func (*ListSessionsParams) SetFilter ¶
func (o *ListSessionsParams) SetFilter(filter *string)
SetFilter adds the filter to the list sessions params
func (*ListSessionsParams) SetHTTPClient ¶
func (o *ListSessionsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list sessions params
func (*ListSessionsParams) SetLimit ¶
func (o *ListSessionsParams) SetLimit(limit *int64)
SetLimit adds the limit to the list sessions params
func (*ListSessionsParams) SetOffset ¶
func (o *ListSessionsParams) SetOffset(offset *int64)
SetOffset adds the offset to the list sessions params
func (*ListSessionsParams) SetTimeout ¶
func (o *ListSessionsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list sessions params
func (*ListSessionsParams) WithContext ¶
func (o *ListSessionsParams) WithContext(ctx context.Context) *ListSessionsParams
WithContext adds the context to the list sessions params
func (*ListSessionsParams) WithFilter ¶
func (o *ListSessionsParams) WithFilter(filter *string) *ListSessionsParams
WithFilter adds the filter to the list sessions params
func (*ListSessionsParams) WithHTTPClient ¶
func (o *ListSessionsParams) WithHTTPClient(client *http.Client) *ListSessionsParams
WithHTTPClient adds the HTTPClient to the list sessions params
func (*ListSessionsParams) WithLimit ¶
func (o *ListSessionsParams) WithLimit(limit *int64) *ListSessionsParams
WithLimit adds the limit to the list sessions params
func (*ListSessionsParams) WithOffset ¶
func (o *ListSessionsParams) WithOffset(offset *int64) *ListSessionsParams
WithOffset adds the offset to the list sessions params
func (*ListSessionsParams) WithTimeout ¶
func (o *ListSessionsParams) WithTimeout(timeout time.Duration) *ListSessionsParams
WithTimeout adds the timeout to the list sessions params
func (*ListSessionsParams) WriteToRequest ¶
func (o *ListSessionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListSessionsReader ¶
type ListSessionsReader struct {
// contains filtered or unexported fields
}
ListSessionsReader is a Reader for the ListSessions structure.
func (*ListSessionsReader) ReadResponse ¶
func (o *ListSessionsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListSessionsUnauthorized ¶
type ListSessionsUnauthorized struct {
}ListSessionsUnauthorized handles this case with default header values.
The currently supplied session does not have the correct access rights to request this resource
func NewListSessionsUnauthorized ¶
func NewListSessionsUnauthorized() *ListSessionsUnauthorized
NewListSessionsUnauthorized creates a ListSessionsUnauthorized with default headers values
func (*ListSessionsUnauthorized) Error ¶
func (o *ListSessionsUnauthorized) Error() string
func (*ListSessionsUnauthorized) GetPayload ¶
func (o *ListSessionsUnauthorized) GetPayload() *rest_model.APIErrorEnvelope