Documentation ¶
Index ¶
- type Client
- type ClientService
- type GetHistoryBadRequest
- type GetHistoryForbidden
- type GetHistoryGone
- type GetHistoryInternalServerError
- type GetHistoryMethodNotAllowed
- type GetHistoryNotFound
- type GetHistoryNumberOfWeeksBadRequest
- type GetHistoryNumberOfWeeksForbidden
- type GetHistoryNumberOfWeeksGone
- type GetHistoryNumberOfWeeksInternalServerError
- type GetHistoryNumberOfWeeksMethodNotAllowed
- type GetHistoryNumberOfWeeksNotFound
- type GetHistoryNumberOfWeeksOK
- type GetHistoryNumberOfWeeksParams
- func NewGetHistoryNumberOfWeeksParams() *GetHistoryNumberOfWeeksParams
- func NewGetHistoryNumberOfWeeksParamsWithContext(ctx context.Context) *GetHistoryNumberOfWeeksParams
- func NewGetHistoryNumberOfWeeksParamsWithHTTPClient(client *http.Client) *GetHistoryNumberOfWeeksParams
- func NewGetHistoryNumberOfWeeksParamsWithTimeout(timeout time.Duration) *GetHistoryNumberOfWeeksParams
- func (o *GetHistoryNumberOfWeeksParams) SetContext(ctx context.Context)
- func (o *GetHistoryNumberOfWeeksParams) SetHTTPClient(client *http.Client)
- func (o *GetHistoryNumberOfWeeksParams) SetTimeout(timeout time.Duration)
- func (o *GetHistoryNumberOfWeeksParams) WithContext(ctx context.Context) *GetHistoryNumberOfWeeksParams
- func (o *GetHistoryNumberOfWeeksParams) WithHTTPClient(client *http.Client) *GetHistoryNumberOfWeeksParams
- func (o *GetHistoryNumberOfWeeksParams) WithTimeout(timeout time.Duration) *GetHistoryNumberOfWeeksParams
- func (o *GetHistoryNumberOfWeeksParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetHistoryNumberOfWeeksReader
- type GetHistoryNumberOfWeeksServiceUnavailable
- type GetHistoryNumberOfWeeksUnauthorized
- type GetHistoryOK
- type GetHistoryParams
- func (o *GetHistoryParams) SetContext(ctx context.Context)
- func (o *GetHistoryParams) SetHTTPClient(client *http.Client)
- func (o *GetHistoryParams) SetTimeout(timeout time.Duration)
- func (o *GetHistoryParams) WithContext(ctx context.Context) *GetHistoryParams
- func (o *GetHistoryParams) WithHTTPClient(client *http.Client) *GetHistoryParams
- func (o *GetHistoryParams) WithTimeout(timeout time.Duration) *GetHistoryParams
- func (o *GetHistoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetHistoryReader
- type GetHistoryServiceUnavailable
- type GetHistoryUnauthorized
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 history API
func (*Client) GetHistory ¶
func (a *Client) GetHistory(params *GetHistoryParams) (*GetHistoryOK, error)
GetHistory retrieves all history for the past one week note as of 10 3 0 device42 now has a more robust audit log available at api api 1 0 auditlogs
Get History
func (*Client) GetHistoryNumberOfWeeks ¶
func (a *Client) GetHistoryNumberOfWeeks(params *GetHistoryNumberOfWeeksParams) (*GetHistoryNumberOfWeeksOK, error)
GetHistoryNumberOfWeeks retrieves history for specified number of weeks in the past
Get History by # of Weeks
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶
type ClientService interface { GetHistory(params *GetHistoryParams) (*GetHistoryOK, error) GetHistoryNumberOfWeeks(params *GetHistoryNumberOfWeeksParams) (*GetHistoryNumberOfWeeksOK, 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 history API client.
type GetHistoryBadRequest ¶
type GetHistoryBadRequest struct { }
GetHistoryBadRequest handles this case with default header values.
Bad Request (A validation exception has occurred.)
func NewGetHistoryBadRequest ¶
func NewGetHistoryBadRequest() *GetHistoryBadRequest
NewGetHistoryBadRequest creates a GetHistoryBadRequest with default headers values
func (*GetHistoryBadRequest) Error ¶
func (o *GetHistoryBadRequest) Error() string
type GetHistoryForbidden ¶
type GetHistoryForbidden struct { }
GetHistoryForbidden handles this case with default header values.
Forbidden (The resource requested is hidden)
func NewGetHistoryForbidden ¶
func NewGetHistoryForbidden() *GetHistoryForbidden
NewGetHistoryForbidden creates a GetHistoryForbidden with default headers values
func (*GetHistoryForbidden) Error ¶
func (o *GetHistoryForbidden) Error() string
type GetHistoryGone ¶
type GetHistoryGone struct { }
GetHistoryGone handles this case with default header values.
Gone (The resource requested has been removed from our servers)
func NewGetHistoryGone ¶
func NewGetHistoryGone() *GetHistoryGone
NewGetHistoryGone creates a GetHistoryGone with default headers values
func (*GetHistoryGone) Error ¶
func (o *GetHistoryGone) Error() string
type GetHistoryInternalServerError ¶
type GetHistoryInternalServerError struct { }
GetHistoryInternalServerError handles this case with default header values.
Internal Server Error (Some parameter missing or issue with the server. Check with returned “msg” from the call.)
func NewGetHistoryInternalServerError ¶
func NewGetHistoryInternalServerError() *GetHistoryInternalServerError
NewGetHistoryInternalServerError creates a GetHistoryInternalServerError with default headers values
func (*GetHistoryInternalServerError) Error ¶
func (o *GetHistoryInternalServerError) Error() string
type GetHistoryMethodNotAllowed ¶
type GetHistoryMethodNotAllowed struct { }
GetHistoryMethodNotAllowed handles this case with default header values.
Method Not Allowed (You tried to access a resource with an invalid method)
func NewGetHistoryMethodNotAllowed ¶
func NewGetHistoryMethodNotAllowed() *GetHistoryMethodNotAllowed
NewGetHistoryMethodNotAllowed creates a GetHistoryMethodNotAllowed with default headers values
func (*GetHistoryMethodNotAllowed) Error ¶
func (o *GetHistoryMethodNotAllowed) Error() string
type GetHistoryNotFound ¶
type GetHistoryNotFound struct { }
GetHistoryNotFound handles this case with default header values.
Not Found (The specified resource could not be found)
func NewGetHistoryNotFound ¶
func NewGetHistoryNotFound() *GetHistoryNotFound
NewGetHistoryNotFound creates a GetHistoryNotFound with default headers values
func (*GetHistoryNotFound) Error ¶
func (o *GetHistoryNotFound) Error() string
type GetHistoryNumberOfWeeksBadRequest ¶
type GetHistoryNumberOfWeeksBadRequest struct { }
GetHistoryNumberOfWeeksBadRequest handles this case with default header values.
Bad Request (A validation exception has occurred.)
func NewGetHistoryNumberOfWeeksBadRequest ¶
func NewGetHistoryNumberOfWeeksBadRequest() *GetHistoryNumberOfWeeksBadRequest
NewGetHistoryNumberOfWeeksBadRequest creates a GetHistoryNumberOfWeeksBadRequest with default headers values
func (*GetHistoryNumberOfWeeksBadRequest) Error ¶
func (o *GetHistoryNumberOfWeeksBadRequest) Error() string
type GetHistoryNumberOfWeeksForbidden ¶
type GetHistoryNumberOfWeeksForbidden struct { }
GetHistoryNumberOfWeeksForbidden handles this case with default header values.
Forbidden (The resource requested is hidden)
func NewGetHistoryNumberOfWeeksForbidden ¶
func NewGetHistoryNumberOfWeeksForbidden() *GetHistoryNumberOfWeeksForbidden
NewGetHistoryNumberOfWeeksForbidden creates a GetHistoryNumberOfWeeksForbidden with default headers values
func (*GetHistoryNumberOfWeeksForbidden) Error ¶
func (o *GetHistoryNumberOfWeeksForbidden) Error() string
type GetHistoryNumberOfWeeksGone ¶
type GetHistoryNumberOfWeeksGone struct { }
GetHistoryNumberOfWeeksGone handles this case with default header values.
Gone (The resource requested has been removed from our servers)
func NewGetHistoryNumberOfWeeksGone ¶
func NewGetHistoryNumberOfWeeksGone() *GetHistoryNumberOfWeeksGone
NewGetHistoryNumberOfWeeksGone creates a GetHistoryNumberOfWeeksGone with default headers values
func (*GetHistoryNumberOfWeeksGone) Error ¶
func (o *GetHistoryNumberOfWeeksGone) Error() string
type GetHistoryNumberOfWeeksInternalServerError ¶
type GetHistoryNumberOfWeeksInternalServerError struct { }
GetHistoryNumberOfWeeksInternalServerError handles this case with default header values.
Internal Server Error (Some parameter missing or issue with the server. Check with returned “msg” from the call.)
func NewGetHistoryNumberOfWeeksInternalServerError ¶
func NewGetHistoryNumberOfWeeksInternalServerError() *GetHistoryNumberOfWeeksInternalServerError
NewGetHistoryNumberOfWeeksInternalServerError creates a GetHistoryNumberOfWeeksInternalServerError with default headers values
func (*GetHistoryNumberOfWeeksInternalServerError) Error ¶
func (o *GetHistoryNumberOfWeeksInternalServerError) Error() string
type GetHistoryNumberOfWeeksMethodNotAllowed ¶
type GetHistoryNumberOfWeeksMethodNotAllowed struct { }
GetHistoryNumberOfWeeksMethodNotAllowed handles this case with default header values.
Method Not Allowed (You tried to access a resource with an invalid method)
func NewGetHistoryNumberOfWeeksMethodNotAllowed ¶
func NewGetHistoryNumberOfWeeksMethodNotAllowed() *GetHistoryNumberOfWeeksMethodNotAllowed
NewGetHistoryNumberOfWeeksMethodNotAllowed creates a GetHistoryNumberOfWeeksMethodNotAllowed with default headers values
func (*GetHistoryNumberOfWeeksMethodNotAllowed) Error ¶
func (o *GetHistoryNumberOfWeeksMethodNotAllowed) Error() string
type GetHistoryNumberOfWeeksNotFound ¶
type GetHistoryNumberOfWeeksNotFound struct { }
GetHistoryNumberOfWeeksNotFound handles this case with default header values.
Not Found (The specified resource could not be found)
func NewGetHistoryNumberOfWeeksNotFound ¶
func NewGetHistoryNumberOfWeeksNotFound() *GetHistoryNumberOfWeeksNotFound
NewGetHistoryNumberOfWeeksNotFound creates a GetHistoryNumberOfWeeksNotFound with default headers values
func (*GetHistoryNumberOfWeeksNotFound) Error ¶
func (o *GetHistoryNumberOfWeeksNotFound) Error() string
type GetHistoryNumberOfWeeksOK ¶
type GetHistoryNumberOfWeeksOK struct {
Payload []*models.GetHistory
}
GetHistoryNumberOfWeeksOK handles this case with default header values.
The above command returns results like this:
func NewGetHistoryNumberOfWeeksOK ¶
func NewGetHistoryNumberOfWeeksOK() *GetHistoryNumberOfWeeksOK
NewGetHistoryNumberOfWeeksOK creates a GetHistoryNumberOfWeeksOK with default headers values
func (*GetHistoryNumberOfWeeksOK) Error ¶
func (o *GetHistoryNumberOfWeeksOK) Error() string
func (*GetHistoryNumberOfWeeksOK) GetPayload ¶
func (o *GetHistoryNumberOfWeeksOK) GetPayload() []*models.GetHistory
type GetHistoryNumberOfWeeksParams ¶
type GetHistoryNumberOfWeeksParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetHistoryNumberOfWeeksParams contains all the parameters to send to the API endpoint for the get history number of weeks operation typically these are written to a http.Request
func NewGetHistoryNumberOfWeeksParams ¶
func NewGetHistoryNumberOfWeeksParams() *GetHistoryNumberOfWeeksParams
NewGetHistoryNumberOfWeeksParams creates a new GetHistoryNumberOfWeeksParams object with the default values initialized.
func NewGetHistoryNumberOfWeeksParamsWithContext ¶
func NewGetHistoryNumberOfWeeksParamsWithContext(ctx context.Context) *GetHistoryNumberOfWeeksParams
NewGetHistoryNumberOfWeeksParamsWithContext creates a new GetHistoryNumberOfWeeksParams object with the default values initialized, and the ability to set a context for a request
func NewGetHistoryNumberOfWeeksParamsWithHTTPClient ¶
func NewGetHistoryNumberOfWeeksParamsWithHTTPClient(client *http.Client) *GetHistoryNumberOfWeeksParams
NewGetHistoryNumberOfWeeksParamsWithHTTPClient creates a new GetHistoryNumberOfWeeksParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetHistoryNumberOfWeeksParamsWithTimeout ¶
func NewGetHistoryNumberOfWeeksParamsWithTimeout(timeout time.Duration) *GetHistoryNumberOfWeeksParams
NewGetHistoryNumberOfWeeksParamsWithTimeout creates a new GetHistoryNumberOfWeeksParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetHistoryNumberOfWeeksParams) SetContext ¶
func (o *GetHistoryNumberOfWeeksParams) SetContext(ctx context.Context)
SetContext adds the context to the get history number of weeks params
func (*GetHistoryNumberOfWeeksParams) SetHTTPClient ¶
func (o *GetHistoryNumberOfWeeksParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get history number of weeks params
func (*GetHistoryNumberOfWeeksParams) SetTimeout ¶
func (o *GetHistoryNumberOfWeeksParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get history number of weeks params
func (*GetHistoryNumberOfWeeksParams) WithContext ¶
func (o *GetHistoryNumberOfWeeksParams) WithContext(ctx context.Context) *GetHistoryNumberOfWeeksParams
WithContext adds the context to the get history number of weeks params
func (*GetHistoryNumberOfWeeksParams) WithHTTPClient ¶
func (o *GetHistoryNumberOfWeeksParams) WithHTTPClient(client *http.Client) *GetHistoryNumberOfWeeksParams
WithHTTPClient adds the HTTPClient to the get history number of weeks params
func (*GetHistoryNumberOfWeeksParams) WithTimeout ¶
func (o *GetHistoryNumberOfWeeksParams) WithTimeout(timeout time.Duration) *GetHistoryNumberOfWeeksParams
WithTimeout adds the timeout to the get history number of weeks params
func (*GetHistoryNumberOfWeeksParams) WriteToRequest ¶
func (o *GetHistoryNumberOfWeeksParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetHistoryNumberOfWeeksReader ¶
type GetHistoryNumberOfWeeksReader struct {
// contains filtered or unexported fields
}
GetHistoryNumberOfWeeksReader is a Reader for the GetHistoryNumberOfWeeks structure.
func (*GetHistoryNumberOfWeeksReader) ReadResponse ¶
func (o *GetHistoryNumberOfWeeksReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetHistoryNumberOfWeeksServiceUnavailable ¶
type GetHistoryNumberOfWeeksServiceUnavailable struct { }
GetHistoryNumberOfWeeksServiceUnavailable handles this case with default header values.
Service Unavailable (Please check if your Device42 instance is working normally.)
func NewGetHistoryNumberOfWeeksServiceUnavailable ¶
func NewGetHistoryNumberOfWeeksServiceUnavailable() *GetHistoryNumberOfWeeksServiceUnavailable
NewGetHistoryNumberOfWeeksServiceUnavailable creates a GetHistoryNumberOfWeeksServiceUnavailable with default headers values
func (*GetHistoryNumberOfWeeksServiceUnavailable) Error ¶
func (o *GetHistoryNumberOfWeeksServiceUnavailable) Error() string
type GetHistoryNumberOfWeeksUnauthorized ¶
type GetHistoryNumberOfWeeksUnauthorized struct { }
GetHistoryNumberOfWeeksUnauthorized handles this case with default header values.
Unauthorized (Your credentials suck)
func NewGetHistoryNumberOfWeeksUnauthorized ¶
func NewGetHistoryNumberOfWeeksUnauthorized() *GetHistoryNumberOfWeeksUnauthorized
NewGetHistoryNumberOfWeeksUnauthorized creates a GetHistoryNumberOfWeeksUnauthorized with default headers values
func (*GetHistoryNumberOfWeeksUnauthorized) Error ¶
func (o *GetHistoryNumberOfWeeksUnauthorized) Error() string
type GetHistoryOK ¶
type GetHistoryOK struct {
Payload []*models.GetHistory
}
GetHistoryOK handles this case with default header values.
The above command returns results like this:
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.GetHistory
type GetHistoryParams ¶
type GetHistoryParams struct { 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) SetContext ¶
func (o *GetHistoryParams) SetContext(ctx context.Context)
SetContext adds the context 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) SetTimeout ¶
func (o *GetHistoryParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout 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) WithHTTPClient ¶
func (o *GetHistoryParams) WithHTTPClient(client *http.Client) *GetHistoryParams
WithHTTPClient adds the HTTPClient 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) 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 GetHistoryServiceUnavailable ¶
type GetHistoryServiceUnavailable struct { }
GetHistoryServiceUnavailable handles this case with default header values.
Service Unavailable (Please check if your Device42 instance is working normally.)
func NewGetHistoryServiceUnavailable ¶
func NewGetHistoryServiceUnavailable() *GetHistoryServiceUnavailable
NewGetHistoryServiceUnavailable creates a GetHistoryServiceUnavailable with default headers values
func (*GetHistoryServiceUnavailable) Error ¶
func (o *GetHistoryServiceUnavailable) Error() string
type GetHistoryUnauthorized ¶
type GetHistoryUnauthorized struct { }
GetHistoryUnauthorized handles this case with default header values.
Unauthorized (Your credentials suck)
func NewGetHistoryUnauthorized ¶
func NewGetHistoryUnauthorized() *GetHistoryUnauthorized
NewGetHistoryUnauthorized creates a GetHistoryUnauthorized with default headers values
func (*GetHistoryUnauthorized) Error ¶
func (o *GetHistoryUnauthorized) Error() string