Documentation
¶
Index ¶
- type API
- type AddEventBadRequest
- type AddEventCreated
- type AddEventInternalServerError
- type AddEventParams
- func (o *AddEventParams) SetContext(ctx context.Context)
- func (o *AddEventParams) SetEvent(event *models.Event)
- func (o *AddEventParams) SetHTTPClient(client *http.Client)
- func (o *AddEventParams) SetTimeout(timeout time.Duration)
- func (o *AddEventParams) WithContext(ctx context.Context) *AddEventParams
- func (o *AddEventParams) WithEvent(event *models.Event) *AddEventParams
- func (o *AddEventParams) WithHTTPClient(client *http.Client) *AddEventParams
- func (o *AddEventParams) WithTimeout(timeout time.Duration) *AddEventParams
- func (o *AddEventParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type AddEventReader
- type Client
- func (a *Client) AddEvent(ctx context.Context, params *AddEventParams) (*AddEventCreated, error)
- func (a *Client) GetHistory(ctx context.Context, params *GetHistoryParams) (*GetHistoryOK, error)
- func (a *Client) GetState(ctx context.Context, params *GetStateParams) (*GetStateOK, error)
- func (a *Client) ListStates(ctx context.Context, params *ListStatesParams) (*ListStatesOK, error)
- type GetHistoryInternalServerError
- type GetHistoryNotFound
- type GetHistoryOK
- type GetHistoryParams
- func (o *GetHistoryParams) SetAccount(account string)
- func (o *GetHistoryParams) SetContext(ctx context.Context)
- func (o *GetHistoryParams) SetFrom(from *int64)
- func (o *GetHistoryParams) SetHTTPClient(client *http.Client)
- func (o *GetHistoryParams) SetRegion(region *string)
- func (o *GetHistoryParams) SetResource(resource *string)
- func (o *GetHistoryParams) SetTimeout(timeout time.Duration)
- func (o *GetHistoryParams) SetTo(to *int64)
- func (o *GetHistoryParams) WithAccount(account string) *GetHistoryParams
- func (o *GetHistoryParams) WithContext(ctx context.Context) *GetHistoryParams
- func (o *GetHistoryParams) WithFrom(from *int64) *GetHistoryParams
- func (o *GetHistoryParams) WithHTTPClient(client *http.Client) *GetHistoryParams
- func (o *GetHistoryParams) WithRegion(region *string) *GetHistoryParams
- func (o *GetHistoryParams) WithResource(resource *string) *GetHistoryParams
- func (o *GetHistoryParams) WithTimeout(timeout time.Duration) *GetHistoryParams
- func (o *GetHistoryParams) WithTo(to *int64) *GetHistoryParams
- func (o *GetHistoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetHistoryReader
- type GetStateInternalServerError
- type GetStateNotFound
- type GetStateOK
- type GetStateParams
- func (o *GetStateParams) SetAccount(account string)
- func (o *GetStateParams) SetContext(ctx context.Context)
- func (o *GetStateParams) SetHTTPClient(client *http.Client)
- func (o *GetStateParams) SetTimeout(timeout time.Duration)
- func (o *GetStateParams) WithAccount(account string) *GetStateParams
- func (o *GetStateParams) WithContext(ctx context.Context) *GetStateParams
- func (o *GetStateParams) WithHTTPClient(client *http.Client) *GetStateParams
- func (o *GetStateParams) WithTimeout(timeout time.Duration) *GetStateParams
- func (o *GetStateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetStateReader
- type ListStatesInternalServerError
- type ListStatesOK
- type ListStatesParams
- func (o *ListStatesParams) SetContext(ctx context.Context)
- func (o *ListStatesParams) SetHTTPClient(client *http.Client)
- func (o *ListStatesParams) SetRegion(region *string)
- func (o *ListStatesParams) SetResource(resource *string)
- func (o *ListStatesParams) SetTimeout(timeout time.Duration)
- func (o *ListStatesParams) WithContext(ctx context.Context) *ListStatesParams
- func (o *ListStatesParams) WithHTTPClient(client *http.Client) *ListStatesParams
- func (o *ListStatesParams) WithRegion(region *string) *ListStatesParams
- func (o *ListStatesParams) WithResource(resource *string) *ListStatesParams
- func (o *ListStatesParams) WithTimeout(timeout time.Duration) *ListStatesParams
- func (o *ListStatesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListStatesReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API interface {
/*
AddEvent takes into the system the provided event*/
AddEvent(ctx context.Context, params *AddEventParams) (*AddEventCreated, error)
/*
GetHistory provides the events for the id provided*/
GetHistory(ctx context.Context, params *GetHistoryParams) (*GetHistoryOK, error)
/*
GetState provides the events for the id provided*/
GetState(ctx context.Context, params *GetStateParams) (*GetStateOK, error)
/*
ListStates provides the list of states in not terminated state*/
ListStates(ctx context.Context, params *ListStatesParams) (*ListStatesOK, error)
}
API is the interface of the event management client
type AddEventBadRequest ¶
type AddEventBadRequest struct {
}
AddEventBadRequest handles this case with default header values.
Invalid input, object invalid
func NewAddEventBadRequest ¶
func NewAddEventBadRequest() *AddEventBadRequest
NewAddEventBadRequest creates a AddEventBadRequest with default headers values
func (*AddEventBadRequest) Error ¶
func (o *AddEventBadRequest) Error() string
type AddEventCreated ¶
type AddEventCreated struct {
Payload *models.ItemCreatedResponse
}
AddEventCreated handles this case with default header values.
Item added successfully
func NewAddEventCreated ¶
func NewAddEventCreated() *AddEventCreated
NewAddEventCreated creates a AddEventCreated with default headers values
func (*AddEventCreated) Error ¶
func (o *AddEventCreated) Error() string
func (*AddEventCreated) GetPayload ¶
func (o *AddEventCreated) GetPayload() *models.ItemCreatedResponse
type AddEventInternalServerError ¶
type AddEventInternalServerError struct {
Payload *models.ErrorResponse
}
AddEventInternalServerError handles this case with default header values.
Something unexpected happend, error raised
func NewAddEventInternalServerError ¶
func NewAddEventInternalServerError() *AddEventInternalServerError
NewAddEventInternalServerError creates a AddEventInternalServerError with default headers values
func (*AddEventInternalServerError) Error ¶
func (o *AddEventInternalServerError) Error() string
func (*AddEventInternalServerError) GetPayload ¶
func (o *AddEventInternalServerError) GetPayload() *models.ErrorResponse
type AddEventParams ¶
type AddEventParams struct {
/*Event
Event to be added to the system
*/
Event *models.Event
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
AddEventParams contains all the parameters to send to the API endpoint for the add event operation typically these are written to a http.Request
func NewAddEventParams ¶
func NewAddEventParams() *AddEventParams
NewAddEventParams creates a new AddEventParams object with the default values initialized.
func NewAddEventParamsWithContext ¶
func NewAddEventParamsWithContext(ctx context.Context) *AddEventParams
NewAddEventParamsWithContext creates a new AddEventParams object with the default values initialized, and the ability to set a context for a request
func NewAddEventParamsWithHTTPClient ¶
func NewAddEventParamsWithHTTPClient(client *http.Client) *AddEventParams
NewAddEventParamsWithHTTPClient creates a new AddEventParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewAddEventParamsWithTimeout ¶
func NewAddEventParamsWithTimeout(timeout time.Duration) *AddEventParams
NewAddEventParamsWithTimeout creates a new AddEventParams object with the default values initialized, and the ability to set a timeout on a request
func (*AddEventParams) SetContext ¶
func (o *AddEventParams) SetContext(ctx context.Context)
SetContext adds the context to the add event params
func (*AddEventParams) SetEvent ¶
func (o *AddEventParams) SetEvent(event *models.Event)
SetEvent adds the event to the add event params
func (*AddEventParams) SetHTTPClient ¶
func (o *AddEventParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the add event params
func (*AddEventParams) SetTimeout ¶
func (o *AddEventParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the add event params
func (*AddEventParams) WithContext ¶
func (o *AddEventParams) WithContext(ctx context.Context) *AddEventParams
WithContext adds the context to the add event params
func (*AddEventParams) WithEvent ¶
func (o *AddEventParams) WithEvent(event *models.Event) *AddEventParams
WithEvent adds the event to the add event params
func (*AddEventParams) WithHTTPClient ¶
func (o *AddEventParams) WithHTTPClient(client *http.Client) *AddEventParams
WithHTTPClient adds the HTTPClient to the add event params
func (*AddEventParams) WithTimeout ¶
func (o *AddEventParams) WithTimeout(timeout time.Duration) *AddEventParams
WithTimeout adds the timeout to the add event params
func (*AddEventParams) WriteToRequest ¶
func (o *AddEventParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type AddEventReader ¶
type AddEventReader struct {
// contains filtered or unexported fields
}
AddEventReader is a Reader for the AddEvent structure.
func (*AddEventReader) ReadResponse ¶
func (o *AddEventReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for event management API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry, authInfo runtime.ClientAuthInfoWriter) *Client
New creates a new event management API client.
func (*Client) AddEvent ¶
func (a *Client) AddEvent(ctx context.Context, params *AddEventParams) (*AddEventCreated, error)
AddEvent takes into the system the provided event
func (*Client) GetHistory ¶
func (a *Client) GetHistory(ctx context.Context, params *GetHistoryParams) (*GetHistoryOK, error)
GetHistory provides the events for the id provided
func (*Client) GetState ¶
func (a *Client) GetState(ctx context.Context, params *GetStateParams) (*GetStateOK, error)
GetState provides the events for the id provided
func (*Client) ListStates ¶
func (a *Client) ListStates(ctx context.Context, params *ListStatesParams) (*ListStatesOK, error)
ListStates provides the list of states in not terminated state
type GetHistoryInternalServerError ¶
type GetHistoryInternalServerError struct {
Payload *models.ErrorResponse
}
GetHistoryInternalServerError handles this case with default header values.
Something unexpected happend, error raised
func NewGetHistoryInternalServerError ¶
func NewGetHistoryInternalServerError() *GetHistoryInternalServerError
NewGetHistoryInternalServerError creates a GetHistoryInternalServerError with default headers values
func (*GetHistoryInternalServerError) Error ¶
func (o *GetHistoryInternalServerError) Error() string
func (*GetHistoryInternalServerError) GetPayload ¶
func (o *GetHistoryInternalServerError) GetPayload() *models.ErrorResponse
type GetHistoryNotFound ¶
type GetHistoryNotFound struct {
Payload *models.ErrorResponse
}
GetHistoryNotFound handles this case with default header values.
Item not found in the system
func NewGetHistoryNotFound ¶
func NewGetHistoryNotFound() *GetHistoryNotFound
NewGetHistoryNotFound creates a GetHistoryNotFound with default headers values
func (*GetHistoryNotFound) Error ¶
func (o *GetHistoryNotFound) Error() string
func (*GetHistoryNotFound) GetPayload ¶
func (o *GetHistoryNotFound) GetPayload() *models.ErrorResponse
type GetHistoryOK ¶
GetHistoryOK handles this case with default header values.
Description of a successfully operation
func NewGetHistoryOK ¶
func NewGetHistoryOK() *GetHistoryOK
NewGetHistoryOK creates a GetHistoryOK with default headers values
func (*GetHistoryOK) Error ¶
func (o *GetHistoryOK) Error() string
func (*GetHistoryOK) GetPayload ¶
func (o *GetHistoryOK) GetPayload() []*models.Event
type GetHistoryParams ¶
type GetHistoryParams struct {
/*Account
Id of the account to be checked
*/
Account string
/*From
Datetime from which to get the usage report
*/
From *int64
/*Region
Resource region to filter the usage
*/
Region *string
/*Resource
Resource type to filter the usage
*/
Resource *string
/*To
Datetime until which to get the usage report
*/
To *int64
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetHistoryParams contains all the parameters to send to the API endpoint for the get history operation typically these are written to a http.Request
func NewGetHistoryParams ¶
func NewGetHistoryParams() *GetHistoryParams
NewGetHistoryParams creates a new GetHistoryParams object with the default values initialized.
func NewGetHistoryParamsWithContext ¶
func NewGetHistoryParamsWithContext(ctx context.Context) *GetHistoryParams
NewGetHistoryParamsWithContext creates a new GetHistoryParams object with the default values initialized, and the ability to set a context for a request
func NewGetHistoryParamsWithHTTPClient ¶
func NewGetHistoryParamsWithHTTPClient(client *http.Client) *GetHistoryParams
NewGetHistoryParamsWithHTTPClient creates a new GetHistoryParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetHistoryParamsWithTimeout ¶
func NewGetHistoryParamsWithTimeout(timeout time.Duration) *GetHistoryParams
NewGetHistoryParamsWithTimeout creates a new GetHistoryParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetHistoryParams) SetAccount ¶
func (o *GetHistoryParams) SetAccount(account string)
SetAccount adds the account to the get history params
func (*GetHistoryParams) SetContext ¶
func (o *GetHistoryParams) SetContext(ctx context.Context)
SetContext adds the context to the get history params
func (*GetHistoryParams) SetFrom ¶
func (o *GetHistoryParams) SetFrom(from *int64)
SetFrom adds the from to the get history params
func (*GetHistoryParams) SetHTTPClient ¶
func (o *GetHistoryParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get history params
func (*GetHistoryParams) SetRegion ¶
func (o *GetHistoryParams) SetRegion(region *string)
SetRegion adds the region to the get history params
func (*GetHistoryParams) SetResource ¶
func (o *GetHistoryParams) SetResource(resource *string)
SetResource adds the resource to the get history params
func (*GetHistoryParams) SetTimeout ¶
func (o *GetHistoryParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get history params
func (*GetHistoryParams) SetTo ¶
func (o *GetHistoryParams) SetTo(to *int64)
SetTo adds the to to the get history params
func (*GetHistoryParams) WithAccount ¶
func (o *GetHistoryParams) WithAccount(account string) *GetHistoryParams
WithAccount adds the account to the get history params
func (*GetHistoryParams) WithContext ¶
func (o *GetHistoryParams) WithContext(ctx context.Context) *GetHistoryParams
WithContext adds the context to the get history params
func (*GetHistoryParams) WithFrom ¶
func (o *GetHistoryParams) WithFrom(from *int64) *GetHistoryParams
WithFrom adds the from to the get history params
func (*GetHistoryParams) WithHTTPClient ¶
func (o *GetHistoryParams) WithHTTPClient(client *http.Client) *GetHistoryParams
WithHTTPClient adds the HTTPClient to the get history params
func (*GetHistoryParams) WithRegion ¶
func (o *GetHistoryParams) WithRegion(region *string) *GetHistoryParams
WithRegion adds the region to the get history params
func (*GetHistoryParams) WithResource ¶
func (o *GetHistoryParams) WithResource(resource *string) *GetHistoryParams
WithResource adds the resource to the get history params
func (*GetHistoryParams) WithTimeout ¶
func (o *GetHistoryParams) WithTimeout(timeout time.Duration) *GetHistoryParams
WithTimeout adds the timeout to the get history params
func (*GetHistoryParams) WithTo ¶
func (o *GetHistoryParams) WithTo(to *int64) *GetHistoryParams
WithTo adds the to to the get history params
func (*GetHistoryParams) WriteToRequest ¶
func (o *GetHistoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetHistoryReader ¶
type GetHistoryReader struct {
// contains filtered or unexported fields
}
GetHistoryReader is a Reader for the GetHistory structure.
func (*GetHistoryReader) ReadResponse ¶
func (o *GetHistoryReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetStateInternalServerError ¶
type GetStateInternalServerError struct {
Payload *models.ErrorResponse
}
GetStateInternalServerError handles this case with default header values.
Something unexpected happend, error raised
func NewGetStateInternalServerError ¶
func NewGetStateInternalServerError() *GetStateInternalServerError
NewGetStateInternalServerError creates a GetStateInternalServerError with default headers values
func (*GetStateInternalServerError) Error ¶
func (o *GetStateInternalServerError) Error() string
func (*GetStateInternalServerError) GetPayload ¶
func (o *GetStateInternalServerError) GetPayload() *models.ErrorResponse
type GetStateNotFound ¶
type GetStateNotFound struct {
Payload *models.ErrorResponse
}
GetStateNotFound handles this case with default header values.
Item not found in the system
func NewGetStateNotFound ¶
func NewGetStateNotFound() *GetStateNotFound
NewGetStateNotFound creates a GetStateNotFound with default headers values
func (*GetStateNotFound) Error ¶
func (o *GetStateNotFound) Error() string
func (*GetStateNotFound) GetPayload ¶
func (o *GetStateNotFound) GetPayload() *models.ErrorResponse
type GetStateOK ¶
GetStateOK handles this case with default header values.
Description of a successfully operation
func NewGetStateOK ¶
func NewGetStateOK() *GetStateOK
NewGetStateOK creates a GetStateOK with default headers values
func (*GetStateOK) Error ¶
func (o *GetStateOK) Error() string
func (*GetStateOK) GetPayload ¶
func (o *GetStateOK) GetPayload() []*models.State
type GetStateParams ¶
type GetStateParams struct {
/*Account
Id of the account to be checked
*/
Account string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetStateParams contains all the parameters to send to the API endpoint for the get state operation typically these are written to a http.Request
func NewGetStateParams ¶
func NewGetStateParams() *GetStateParams
NewGetStateParams creates a new GetStateParams object with the default values initialized.
func NewGetStateParamsWithContext ¶
func NewGetStateParamsWithContext(ctx context.Context) *GetStateParams
NewGetStateParamsWithContext creates a new GetStateParams object with the default values initialized, and the ability to set a context for a request
func NewGetStateParamsWithHTTPClient ¶
func NewGetStateParamsWithHTTPClient(client *http.Client) *GetStateParams
NewGetStateParamsWithHTTPClient creates a new GetStateParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetStateParamsWithTimeout ¶
func NewGetStateParamsWithTimeout(timeout time.Duration) *GetStateParams
NewGetStateParamsWithTimeout creates a new GetStateParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetStateParams) SetAccount ¶
func (o *GetStateParams) SetAccount(account string)
SetAccount adds the account to the get state params
func (*GetStateParams) SetContext ¶
func (o *GetStateParams) SetContext(ctx context.Context)
SetContext adds the context to the get state params
func (*GetStateParams) SetHTTPClient ¶
func (o *GetStateParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get state params
func (*GetStateParams) SetTimeout ¶
func (o *GetStateParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get state params
func (*GetStateParams) WithAccount ¶
func (o *GetStateParams) WithAccount(account string) *GetStateParams
WithAccount adds the account to the get state params
func (*GetStateParams) WithContext ¶
func (o *GetStateParams) WithContext(ctx context.Context) *GetStateParams
WithContext adds the context to the get state params
func (*GetStateParams) WithHTTPClient ¶
func (o *GetStateParams) WithHTTPClient(client *http.Client) *GetStateParams
WithHTTPClient adds the HTTPClient to the get state params
func (*GetStateParams) WithTimeout ¶
func (o *GetStateParams) WithTimeout(timeout time.Duration) *GetStateParams
WithTimeout adds the timeout to the get state params
func (*GetStateParams) WriteToRequest ¶
func (o *GetStateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetStateReader ¶
type GetStateReader struct {
// contains filtered or unexported fields
}
GetStateReader is a Reader for the GetState structure.
func (*GetStateReader) ReadResponse ¶
func (o *GetStateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListStatesInternalServerError ¶
type ListStatesInternalServerError struct {
Payload *models.ErrorResponse
}
ListStatesInternalServerError handles this case with default header values.
Something unexpected happend, error raised
func NewListStatesInternalServerError ¶
func NewListStatesInternalServerError() *ListStatesInternalServerError
NewListStatesInternalServerError creates a ListStatesInternalServerError with default headers values
func (*ListStatesInternalServerError) Error ¶
func (o *ListStatesInternalServerError) Error() string
func (*ListStatesInternalServerError) GetPayload ¶
func (o *ListStatesInternalServerError) GetPayload() *models.ErrorResponse
type ListStatesOK ¶
type ListStatesOK struct {
Payload []*models.MinimalState
}
ListStatesOK handles this case with default header values.
Description of a successfully operation
func NewListStatesOK ¶
func NewListStatesOK() *ListStatesOK
NewListStatesOK creates a ListStatesOK with default headers values
func (*ListStatesOK) Error ¶
func (o *ListStatesOK) Error() string
func (*ListStatesOK) GetPayload ¶
func (o *ListStatesOK) GetPayload() []*models.MinimalState
type ListStatesParams ¶
type ListStatesParams struct {
/*Region
Resource region to filter the usage
*/
Region *string
/*Resource
Resource type to filter the usage
*/
Resource *string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
ListStatesParams contains all the parameters to send to the API endpoint for the list states operation typically these are written to a http.Request
func NewListStatesParams ¶
func NewListStatesParams() *ListStatesParams
NewListStatesParams creates a new ListStatesParams object with the default values initialized.
func NewListStatesParamsWithContext ¶
func NewListStatesParamsWithContext(ctx context.Context) *ListStatesParams
NewListStatesParamsWithContext creates a new ListStatesParams object with the default values initialized, and the ability to set a context for a request
func NewListStatesParamsWithHTTPClient ¶
func NewListStatesParamsWithHTTPClient(client *http.Client) *ListStatesParams
NewListStatesParamsWithHTTPClient creates a new ListStatesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewListStatesParamsWithTimeout ¶
func NewListStatesParamsWithTimeout(timeout time.Duration) *ListStatesParams
NewListStatesParamsWithTimeout creates a new ListStatesParams object with the default values initialized, and the ability to set a timeout on a request
func (*ListStatesParams) SetContext ¶
func (o *ListStatesParams) SetContext(ctx context.Context)
SetContext adds the context to the list states params
func (*ListStatesParams) SetHTTPClient ¶
func (o *ListStatesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list states params
func (*ListStatesParams) SetRegion ¶
func (o *ListStatesParams) SetRegion(region *string)
SetRegion adds the region to the list states params
func (*ListStatesParams) SetResource ¶
func (o *ListStatesParams) SetResource(resource *string)
SetResource adds the resource to the list states params
func (*ListStatesParams) SetTimeout ¶
func (o *ListStatesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list states params
func (*ListStatesParams) WithContext ¶
func (o *ListStatesParams) WithContext(ctx context.Context) *ListStatesParams
WithContext adds the context to the list states params
func (*ListStatesParams) WithHTTPClient ¶
func (o *ListStatesParams) WithHTTPClient(client *http.Client) *ListStatesParams
WithHTTPClient adds the HTTPClient to the list states params
func (*ListStatesParams) WithRegion ¶
func (o *ListStatesParams) WithRegion(region *string) *ListStatesParams
WithRegion adds the region to the list states params
func (*ListStatesParams) WithResource ¶
func (o *ListStatesParams) WithResource(resource *string) *ListStatesParams
WithResource adds the resource to the list states params
func (*ListStatesParams) WithTimeout ¶
func (o *ListStatesParams) WithTimeout(timeout time.Duration) *ListStatesParams
WithTimeout adds the timeout to the list states params
func (*ListStatesParams) WriteToRequest ¶
func (o *ListStatesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListStatesReader ¶
type ListStatesReader struct {
// contains filtered or unexported fields
}
ListStatesReader is a Reader for the ListStates structure.
func (*ListStatesReader) ReadResponse ¶
func (o *ListStatesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.