Documentation ¶
Index ¶
- func WithContentTypeApplicationJSON(r *runtime.ClientOperation)
- func WithContentTypeApplicationXML(r *runtime.ClientOperation)
- func WithContentTypeApplicationxWwwFormUrlencoded(r *runtime.ClientOperation)
- type Client
- func (a *Client) ReportCreate(params *ReportCreateParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ReportCreateOK, error)
- func (a *Client) ReportGet(params *ReportGetParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ReportGetOK, error)
- func (a *Client) Reports(params *ReportsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ReportsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type ReportCreateBadRequest
- func (o *ReportCreateBadRequest) Code() int
- func (o *ReportCreateBadRequest) Error() string
- func (o *ReportCreateBadRequest) IsClientError() bool
- func (o *ReportCreateBadRequest) IsCode(code int) bool
- func (o *ReportCreateBadRequest) IsRedirect() bool
- func (o *ReportCreateBadRequest) IsServerError() bool
- func (o *ReportCreateBadRequest) IsSuccess() bool
- func (o *ReportCreateBadRequest) String() string
- type ReportCreateInternalServerError
- func (o *ReportCreateInternalServerError) Code() int
- func (o *ReportCreateInternalServerError) Error() string
- func (o *ReportCreateInternalServerError) IsClientError() bool
- func (o *ReportCreateInternalServerError) IsCode(code int) bool
- func (o *ReportCreateInternalServerError) IsRedirect() bool
- func (o *ReportCreateInternalServerError) IsServerError() bool
- func (o *ReportCreateInternalServerError) IsSuccess() bool
- func (o *ReportCreateInternalServerError) String() string
- type ReportCreateNotAcceptable
- func (o *ReportCreateNotAcceptable) Code() int
- func (o *ReportCreateNotAcceptable) Error() string
- func (o *ReportCreateNotAcceptable) IsClientError() bool
- func (o *ReportCreateNotAcceptable) IsCode(code int) bool
- func (o *ReportCreateNotAcceptable) IsRedirect() bool
- func (o *ReportCreateNotAcceptable) IsServerError() bool
- func (o *ReportCreateNotAcceptable) IsSuccess() bool
- func (o *ReportCreateNotAcceptable) String() string
- type ReportCreateNotFound
- func (o *ReportCreateNotFound) Code() int
- func (o *ReportCreateNotFound) Error() string
- func (o *ReportCreateNotFound) IsClientError() bool
- func (o *ReportCreateNotFound) IsCode(code int) bool
- func (o *ReportCreateNotFound) IsRedirect() bool
- func (o *ReportCreateNotFound) IsServerError() bool
- func (o *ReportCreateNotFound) IsSuccess() bool
- func (o *ReportCreateNotFound) String() string
- type ReportCreateOK
- func (o *ReportCreateOK) Code() int
- func (o *ReportCreateOK) Error() string
- func (o *ReportCreateOK) GetPayload() *models.Report
- func (o *ReportCreateOK) IsClientError() bool
- func (o *ReportCreateOK) IsCode(code int) bool
- func (o *ReportCreateOK) IsRedirect() bool
- func (o *ReportCreateOK) IsServerError() bool
- func (o *ReportCreateOK) IsSuccess() bool
- func (o *ReportCreateOK) String() string
- type ReportCreateParams
- func (o *ReportCreateParams) SetAccountID(accountID string)
- func (o *ReportCreateParams) SetCategory(category *string)
- func (o *ReportCreateParams) SetComment(comment *string)
- func (o *ReportCreateParams) SetContext(ctx context.Context)
- func (o *ReportCreateParams) SetDefaults()
- func (o *ReportCreateParams) SetForward(forward *bool)
- func (o *ReportCreateParams) SetHTTPClient(client *http.Client)
- func (o *ReportCreateParams) SetRuleIDs(ruleIds []string)
- func (o *ReportCreateParams) SetStatusIDs(statusIds []string)
- func (o *ReportCreateParams) SetTimeout(timeout time.Duration)
- func (o *ReportCreateParams) WithAccountID(accountID string) *ReportCreateParams
- func (o *ReportCreateParams) WithCategory(category *string) *ReportCreateParams
- func (o *ReportCreateParams) WithComment(comment *string) *ReportCreateParams
- func (o *ReportCreateParams) WithContext(ctx context.Context) *ReportCreateParams
- func (o *ReportCreateParams) WithDefaults() *ReportCreateParams
- func (o *ReportCreateParams) WithForward(forward *bool) *ReportCreateParams
- func (o *ReportCreateParams) WithHTTPClient(client *http.Client) *ReportCreateParams
- func (o *ReportCreateParams) WithRuleIDs(ruleIds []string) *ReportCreateParams
- func (o *ReportCreateParams) WithStatusIDs(statusIds []string) *ReportCreateParams
- func (o *ReportCreateParams) WithTimeout(timeout time.Duration) *ReportCreateParams
- func (o *ReportCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ReportCreateReader
- type ReportCreateUnauthorized
- func (o *ReportCreateUnauthorized) Code() int
- func (o *ReportCreateUnauthorized) Error() string
- func (o *ReportCreateUnauthorized) IsClientError() bool
- func (o *ReportCreateUnauthorized) IsCode(code int) bool
- func (o *ReportCreateUnauthorized) IsRedirect() bool
- func (o *ReportCreateUnauthorized) IsServerError() bool
- func (o *ReportCreateUnauthorized) IsSuccess() bool
- func (o *ReportCreateUnauthorized) String() string
- type ReportGetBadRequest
- func (o *ReportGetBadRequest) Code() int
- func (o *ReportGetBadRequest) Error() string
- func (o *ReportGetBadRequest) IsClientError() bool
- func (o *ReportGetBadRequest) IsCode(code int) bool
- func (o *ReportGetBadRequest) IsRedirect() bool
- func (o *ReportGetBadRequest) IsServerError() bool
- func (o *ReportGetBadRequest) IsSuccess() bool
- func (o *ReportGetBadRequest) String() string
- type ReportGetInternalServerError
- func (o *ReportGetInternalServerError) Code() int
- func (o *ReportGetInternalServerError) Error() string
- func (o *ReportGetInternalServerError) IsClientError() bool
- func (o *ReportGetInternalServerError) IsCode(code int) bool
- func (o *ReportGetInternalServerError) IsRedirect() bool
- func (o *ReportGetInternalServerError) IsServerError() bool
- func (o *ReportGetInternalServerError) IsSuccess() bool
- func (o *ReportGetInternalServerError) String() string
- type ReportGetNotAcceptable
- func (o *ReportGetNotAcceptable) Code() int
- func (o *ReportGetNotAcceptable) Error() string
- func (o *ReportGetNotAcceptable) IsClientError() bool
- func (o *ReportGetNotAcceptable) IsCode(code int) bool
- func (o *ReportGetNotAcceptable) IsRedirect() bool
- func (o *ReportGetNotAcceptable) IsServerError() bool
- func (o *ReportGetNotAcceptable) IsSuccess() bool
- func (o *ReportGetNotAcceptable) String() string
- type ReportGetNotFound
- func (o *ReportGetNotFound) Code() int
- func (o *ReportGetNotFound) Error() string
- func (o *ReportGetNotFound) IsClientError() bool
- func (o *ReportGetNotFound) IsCode(code int) bool
- func (o *ReportGetNotFound) IsRedirect() bool
- func (o *ReportGetNotFound) IsServerError() bool
- func (o *ReportGetNotFound) IsSuccess() bool
- func (o *ReportGetNotFound) String() string
- type ReportGetOK
- func (o *ReportGetOK) Code() int
- func (o *ReportGetOK) Error() string
- func (o *ReportGetOK) GetPayload() *models.Report
- func (o *ReportGetOK) IsClientError() bool
- func (o *ReportGetOK) IsCode(code int) bool
- func (o *ReportGetOK) IsRedirect() bool
- func (o *ReportGetOK) IsServerError() bool
- func (o *ReportGetOK) IsSuccess() bool
- func (o *ReportGetOK) String() string
- type ReportGetParams
- func (o *ReportGetParams) SetContext(ctx context.Context)
- func (o *ReportGetParams) SetDefaults()
- func (o *ReportGetParams) SetHTTPClient(client *http.Client)
- func (o *ReportGetParams) SetID(id string)
- func (o *ReportGetParams) SetTimeout(timeout time.Duration)
- func (o *ReportGetParams) WithContext(ctx context.Context) *ReportGetParams
- func (o *ReportGetParams) WithDefaults() *ReportGetParams
- func (o *ReportGetParams) WithHTTPClient(client *http.Client) *ReportGetParams
- func (o *ReportGetParams) WithID(id string) *ReportGetParams
- func (o *ReportGetParams) WithTimeout(timeout time.Duration) *ReportGetParams
- func (o *ReportGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ReportGetReader
- type ReportGetUnauthorized
- func (o *ReportGetUnauthorized) Code() int
- func (o *ReportGetUnauthorized) Error() string
- func (o *ReportGetUnauthorized) IsClientError() bool
- func (o *ReportGetUnauthorized) IsCode(code int) bool
- func (o *ReportGetUnauthorized) IsRedirect() bool
- func (o *ReportGetUnauthorized) IsServerError() bool
- func (o *ReportGetUnauthorized) IsSuccess() bool
- func (o *ReportGetUnauthorized) String() string
- type ReportsBadRequest
- func (o *ReportsBadRequest) Code() int
- func (o *ReportsBadRequest) Error() string
- func (o *ReportsBadRequest) IsClientError() bool
- func (o *ReportsBadRequest) IsCode(code int) bool
- func (o *ReportsBadRequest) IsRedirect() bool
- func (o *ReportsBadRequest) IsServerError() bool
- func (o *ReportsBadRequest) IsSuccess() bool
- func (o *ReportsBadRequest) String() string
- type ReportsInternalServerError
- func (o *ReportsInternalServerError) Code() int
- func (o *ReportsInternalServerError) Error() string
- func (o *ReportsInternalServerError) IsClientError() bool
- func (o *ReportsInternalServerError) IsCode(code int) bool
- func (o *ReportsInternalServerError) IsRedirect() bool
- func (o *ReportsInternalServerError) IsServerError() bool
- func (o *ReportsInternalServerError) IsSuccess() bool
- func (o *ReportsInternalServerError) String() string
- type ReportsNotAcceptable
- func (o *ReportsNotAcceptable) Code() int
- func (o *ReportsNotAcceptable) Error() string
- func (o *ReportsNotAcceptable) IsClientError() bool
- func (o *ReportsNotAcceptable) IsCode(code int) bool
- func (o *ReportsNotAcceptable) IsRedirect() bool
- func (o *ReportsNotAcceptable) IsServerError() bool
- func (o *ReportsNotAcceptable) IsSuccess() bool
- func (o *ReportsNotAcceptable) String() string
- type ReportsNotFound
- func (o *ReportsNotFound) Code() int
- func (o *ReportsNotFound) Error() string
- func (o *ReportsNotFound) IsClientError() bool
- func (o *ReportsNotFound) IsCode(code int) bool
- func (o *ReportsNotFound) IsRedirect() bool
- func (o *ReportsNotFound) IsServerError() bool
- func (o *ReportsNotFound) IsSuccess() bool
- func (o *ReportsNotFound) String() string
- type ReportsOK
- func (o *ReportsOK) Code() int
- func (o *ReportsOK) Error() string
- func (o *ReportsOK) GetPayload() []*models.Report
- func (o *ReportsOK) IsClientError() bool
- func (o *ReportsOK) IsCode(code int) bool
- func (o *ReportsOK) IsRedirect() bool
- func (o *ReportsOK) IsServerError() bool
- func (o *ReportsOK) IsSuccess() bool
- func (o *ReportsOK) String() string
- type ReportsParams
- func (o *ReportsParams) SetContext(ctx context.Context)
- func (o *ReportsParams) SetDefaults()
- func (o *ReportsParams) SetHTTPClient(client *http.Client)
- func (o *ReportsParams) SetLimit(limit *int64)
- func (o *ReportsParams) SetMaxID(maxID *string)
- func (o *ReportsParams) SetMinID(minID *string)
- func (o *ReportsParams) SetResolved(resolved *bool)
- func (o *ReportsParams) SetSinceID(sinceID *string)
- func (o *ReportsParams) SetTargetAccountID(targetAccountID *string)
- func (o *ReportsParams) SetTimeout(timeout time.Duration)
- func (o *ReportsParams) WithContext(ctx context.Context) *ReportsParams
- func (o *ReportsParams) WithDefaults() *ReportsParams
- func (o *ReportsParams) WithHTTPClient(client *http.Client) *ReportsParams
- func (o *ReportsParams) WithLimit(limit *int64) *ReportsParams
- func (o *ReportsParams) WithMaxID(maxID *string) *ReportsParams
- func (o *ReportsParams) WithMinID(minID *string) *ReportsParams
- func (o *ReportsParams) WithResolved(resolved *bool) *ReportsParams
- func (o *ReportsParams) WithSinceID(sinceID *string) *ReportsParams
- func (o *ReportsParams) WithTargetAccountID(targetAccountID *string) *ReportsParams
- func (o *ReportsParams) WithTimeout(timeout time.Duration) *ReportsParams
- func (o *ReportsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ReportsReader
- type ReportsUnauthorized
- func (o *ReportsUnauthorized) Code() int
- func (o *ReportsUnauthorized) Error() string
- func (o *ReportsUnauthorized) IsClientError() bool
- func (o *ReportsUnauthorized) IsCode(code int) bool
- func (o *ReportsUnauthorized) IsRedirect() bool
- func (o *ReportsUnauthorized) IsServerError() bool
- func (o *ReportsUnauthorized) IsSuccess() bool
- func (o *ReportsUnauthorized) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithContentTypeApplicationJSON ¶
func WithContentTypeApplicationJSON(r *runtime.ClientOperation)
WithContentTypeApplicationJSON sets the Content-Type header to "application/json".
func WithContentTypeApplicationXML ¶
func WithContentTypeApplicationXML(r *runtime.ClientOperation)
WithContentTypeApplicationXML sets the Content-Type header to "application/xml".
func WithContentTypeApplicationxWwwFormUrlencoded ¶
func WithContentTypeApplicationxWwwFormUrlencoded(r *runtime.ClientOperation)
WithContentTypeApplicationxWwwFormUrlencoded sets the Content-Type header to "application/x-www-form-urlencoded".
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for reports API
func (*Client) ReportCreate ¶
func (a *Client) ReportCreate(params *ReportCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ReportCreateOK, error)
ReportCreate creates a new user report with the given parameters
func (*Client) ReportGet ¶
func (a *Client) ReportGet(params *ReportGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ReportGetOK, error)
ReportGet gets one report with the given id
func (*Client) Reports ¶
func (a *Client) Reports(params *ReportsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ReportsOK, error)
Reports sees reports created by the requesting account The reports will be returned in descending chronological order (newest first), with sequential IDs (bigger = newer).
The next and previous queries can be parsed from the returned Link header.
Example:
``` <https://example.org/api/v1/reports?limit=20&max_id=01FC0SKA48HNSVR6YKZCQGS2V8>; rel="next", <https://example.org/api/v1/reports?limit=20&min_id=01FC0SKW5JK2Q4EVAV2B462YY0>; rel="prev" ````
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption may be used to customize the behavior of Client methods.
func WithContentType ¶
func WithContentType(mime string) ClientOption
WithContentType allows the client to force the Content-Type header to negotiate a specific Consumer from the server.
You may use this option to set arbitrary extensions to your MIME media type.
type ClientService ¶
type ClientService interface { ReportCreate(params *ReportCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ReportCreateOK, error) ReportGet(params *ReportGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ReportGetOK, error) Reports(params *ReportsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ReportsOK, 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 reports API client.
func NewClientWithBasicAuth ¶
func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService
New creates a new reports API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.
func NewClientWithBearerToken ¶
func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService
New creates a new reports API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.
type ReportCreateBadRequest ¶
type ReportCreateBadRequest struct { }
ReportCreateBadRequest describes a response with status code 400, with default header values.
bad request
func NewReportCreateBadRequest ¶
func NewReportCreateBadRequest() *ReportCreateBadRequest
NewReportCreateBadRequest creates a ReportCreateBadRequest with default headers values
func (*ReportCreateBadRequest) Code ¶
func (o *ReportCreateBadRequest) Code() int
Code gets the status code for the report create bad request response
func (*ReportCreateBadRequest) Error ¶
func (o *ReportCreateBadRequest) Error() string
func (*ReportCreateBadRequest) IsClientError ¶
func (o *ReportCreateBadRequest) IsClientError() bool
IsClientError returns true when this report create bad request response has a 4xx status code
func (*ReportCreateBadRequest) IsCode ¶
func (o *ReportCreateBadRequest) IsCode(code int) bool
IsCode returns true when this report create bad request response a status code equal to that given
func (*ReportCreateBadRequest) IsRedirect ¶
func (o *ReportCreateBadRequest) IsRedirect() bool
IsRedirect returns true when this report create bad request response has a 3xx status code
func (*ReportCreateBadRequest) IsServerError ¶
func (o *ReportCreateBadRequest) IsServerError() bool
IsServerError returns true when this report create bad request response has a 5xx status code
func (*ReportCreateBadRequest) IsSuccess ¶
func (o *ReportCreateBadRequest) IsSuccess() bool
IsSuccess returns true when this report create bad request response has a 2xx status code
func (*ReportCreateBadRequest) String ¶
func (o *ReportCreateBadRequest) String() string
type ReportCreateInternalServerError ¶
type ReportCreateInternalServerError struct { }
ReportCreateInternalServerError describes a response with status code 500, with default header values.
internal server error
func NewReportCreateInternalServerError ¶
func NewReportCreateInternalServerError() *ReportCreateInternalServerError
NewReportCreateInternalServerError creates a ReportCreateInternalServerError with default headers values
func (*ReportCreateInternalServerError) Code ¶
func (o *ReportCreateInternalServerError) Code() int
Code gets the status code for the report create internal server error response
func (*ReportCreateInternalServerError) Error ¶
func (o *ReportCreateInternalServerError) Error() string
func (*ReportCreateInternalServerError) IsClientError ¶
func (o *ReportCreateInternalServerError) IsClientError() bool
IsClientError returns true when this report create internal server error response has a 4xx status code
func (*ReportCreateInternalServerError) IsCode ¶
func (o *ReportCreateInternalServerError) IsCode(code int) bool
IsCode returns true when this report create internal server error response a status code equal to that given
func (*ReportCreateInternalServerError) IsRedirect ¶
func (o *ReportCreateInternalServerError) IsRedirect() bool
IsRedirect returns true when this report create internal server error response has a 3xx status code
func (*ReportCreateInternalServerError) IsServerError ¶
func (o *ReportCreateInternalServerError) IsServerError() bool
IsServerError returns true when this report create internal server error response has a 5xx status code
func (*ReportCreateInternalServerError) IsSuccess ¶
func (o *ReportCreateInternalServerError) IsSuccess() bool
IsSuccess returns true when this report create internal server error response has a 2xx status code
func (*ReportCreateInternalServerError) String ¶
func (o *ReportCreateInternalServerError) String() string
type ReportCreateNotAcceptable ¶
type ReportCreateNotAcceptable struct { }
ReportCreateNotAcceptable describes a response with status code 406, with default header values.
not acceptable
func NewReportCreateNotAcceptable ¶
func NewReportCreateNotAcceptable() *ReportCreateNotAcceptable
NewReportCreateNotAcceptable creates a ReportCreateNotAcceptable with default headers values
func (*ReportCreateNotAcceptable) Code ¶
func (o *ReportCreateNotAcceptable) Code() int
Code gets the status code for the report create not acceptable response
func (*ReportCreateNotAcceptable) Error ¶
func (o *ReportCreateNotAcceptable) Error() string
func (*ReportCreateNotAcceptable) IsClientError ¶
func (o *ReportCreateNotAcceptable) IsClientError() bool
IsClientError returns true when this report create not acceptable response has a 4xx status code
func (*ReportCreateNotAcceptable) IsCode ¶
func (o *ReportCreateNotAcceptable) IsCode(code int) bool
IsCode returns true when this report create not acceptable response a status code equal to that given
func (*ReportCreateNotAcceptable) IsRedirect ¶
func (o *ReportCreateNotAcceptable) IsRedirect() bool
IsRedirect returns true when this report create not acceptable response has a 3xx status code
func (*ReportCreateNotAcceptable) IsServerError ¶
func (o *ReportCreateNotAcceptable) IsServerError() bool
IsServerError returns true when this report create not acceptable response has a 5xx status code
func (*ReportCreateNotAcceptable) IsSuccess ¶
func (o *ReportCreateNotAcceptable) IsSuccess() bool
IsSuccess returns true when this report create not acceptable response has a 2xx status code
func (*ReportCreateNotAcceptable) String ¶
func (o *ReportCreateNotAcceptable) String() string
type ReportCreateNotFound ¶
type ReportCreateNotFound struct { }
ReportCreateNotFound describes a response with status code 404, with default header values.
not found
func NewReportCreateNotFound ¶
func NewReportCreateNotFound() *ReportCreateNotFound
NewReportCreateNotFound creates a ReportCreateNotFound with default headers values
func (*ReportCreateNotFound) Code ¶
func (o *ReportCreateNotFound) Code() int
Code gets the status code for the report create not found response
func (*ReportCreateNotFound) Error ¶
func (o *ReportCreateNotFound) Error() string
func (*ReportCreateNotFound) IsClientError ¶
func (o *ReportCreateNotFound) IsClientError() bool
IsClientError returns true when this report create not found response has a 4xx status code
func (*ReportCreateNotFound) IsCode ¶
func (o *ReportCreateNotFound) IsCode(code int) bool
IsCode returns true when this report create not found response a status code equal to that given
func (*ReportCreateNotFound) IsRedirect ¶
func (o *ReportCreateNotFound) IsRedirect() bool
IsRedirect returns true when this report create not found response has a 3xx status code
func (*ReportCreateNotFound) IsServerError ¶
func (o *ReportCreateNotFound) IsServerError() bool
IsServerError returns true when this report create not found response has a 5xx status code
func (*ReportCreateNotFound) IsSuccess ¶
func (o *ReportCreateNotFound) IsSuccess() bool
IsSuccess returns true when this report create not found response has a 2xx status code
func (*ReportCreateNotFound) String ¶
func (o *ReportCreateNotFound) String() string
type ReportCreateOK ¶
ReportCreateOK describes a response with status code 200, with default header values.
The created report.
func NewReportCreateOK ¶
func NewReportCreateOK() *ReportCreateOK
NewReportCreateOK creates a ReportCreateOK with default headers values
func (*ReportCreateOK) Code ¶
func (o *ReportCreateOK) Code() int
Code gets the status code for the report create o k response
func (*ReportCreateOK) Error ¶
func (o *ReportCreateOK) Error() string
func (*ReportCreateOK) GetPayload ¶
func (o *ReportCreateOK) GetPayload() *models.Report
func (*ReportCreateOK) IsClientError ¶
func (o *ReportCreateOK) IsClientError() bool
IsClientError returns true when this report create o k response has a 4xx status code
func (*ReportCreateOK) IsCode ¶
func (o *ReportCreateOK) IsCode(code int) bool
IsCode returns true when this report create o k response a status code equal to that given
func (*ReportCreateOK) IsRedirect ¶
func (o *ReportCreateOK) IsRedirect() bool
IsRedirect returns true when this report create o k response has a 3xx status code
func (*ReportCreateOK) IsServerError ¶
func (o *ReportCreateOK) IsServerError() bool
IsServerError returns true when this report create o k response has a 5xx status code
func (*ReportCreateOK) IsSuccess ¶
func (o *ReportCreateOK) IsSuccess() bool
IsSuccess returns true when this report create o k response has a 2xx status code
func (*ReportCreateOK) String ¶
func (o *ReportCreateOK) String() string
type ReportCreateParams ¶
type ReportCreateParams struct { /* AccountID. ID of the account to report. Sample: 01GPE75FXSH2EGFBF85NXPH3KP */ AccountID string /* Category. Specify if the report is due to spam, violation of enumerated instance rules, or some other reason. Currently only 'other' is supported. Sample: other Default: "other" */ Category *string /* Comment. The reason for the report. Default maximum of 1000 characters. Sample: Anti-Blackness, transphobia. */ Comment *string /* Forward. If the account is remote, should the report be forwarded to the remote admin? Sample: true */ Forward *bool /* RuleIds. IDs of rules on this instance which have been broken according to the reporter. Sample: ["01GPBN5YDY6JKBWE44H7YQBDCQ","01GPBN65PDWSBPWVDD0SQCFFY3"] */ RuleIDs []string /* StatusIds. IDs of statuses to attach to the report to provide additional context. Sample: ["01GPE76N4SBVRZ8K24TW51ZZQ4","01GPE76WN9JZE62EPT3Q9FRRD4"] */ StatusIDs []string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ReportCreateParams contains all the parameters to send to the API endpoint
for the report create operation. Typically these are written to a http.Request.
func NewReportCreateParams ¶
func NewReportCreateParams() *ReportCreateParams
NewReportCreateParams creates a new ReportCreateParams 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 NewReportCreateParamsWithContext ¶
func NewReportCreateParamsWithContext(ctx context.Context) *ReportCreateParams
NewReportCreateParamsWithContext creates a new ReportCreateParams object with the ability to set a context for a request.
func NewReportCreateParamsWithHTTPClient ¶
func NewReportCreateParamsWithHTTPClient(client *http.Client) *ReportCreateParams
NewReportCreateParamsWithHTTPClient creates a new ReportCreateParams object with the ability to set a custom HTTPClient for a request.
func NewReportCreateParamsWithTimeout ¶
func NewReportCreateParamsWithTimeout(timeout time.Duration) *ReportCreateParams
NewReportCreateParamsWithTimeout creates a new ReportCreateParams object with the ability to set a timeout on a request.
func (*ReportCreateParams) SetAccountID ¶
func (o *ReportCreateParams) SetAccountID(accountID string)
SetAccountID adds the accountId to the report create params
func (*ReportCreateParams) SetCategory ¶
func (o *ReportCreateParams) SetCategory(category *string)
SetCategory adds the category to the report create params
func (*ReportCreateParams) SetComment ¶
func (o *ReportCreateParams) SetComment(comment *string)
SetComment adds the comment to the report create params
func (*ReportCreateParams) SetContext ¶
func (o *ReportCreateParams) SetContext(ctx context.Context)
SetContext adds the context to the report create params
func (*ReportCreateParams) SetDefaults ¶
func (o *ReportCreateParams) SetDefaults()
SetDefaults hydrates default values in the report create params (not the query body).
All values with no default are reset to their zero value.
func (*ReportCreateParams) SetForward ¶
func (o *ReportCreateParams) SetForward(forward *bool)
SetForward adds the forward to the report create params
func (*ReportCreateParams) SetHTTPClient ¶
func (o *ReportCreateParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the report create params
func (*ReportCreateParams) SetRuleIDs ¶
func (o *ReportCreateParams) SetRuleIDs(ruleIds []string)
SetRuleIDs adds the ruleIds to the report create params
func (*ReportCreateParams) SetStatusIDs ¶
func (o *ReportCreateParams) SetStatusIDs(statusIds []string)
SetStatusIDs adds the statusIds to the report create params
func (*ReportCreateParams) SetTimeout ¶
func (o *ReportCreateParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the report create params
func (*ReportCreateParams) WithAccountID ¶
func (o *ReportCreateParams) WithAccountID(accountID string) *ReportCreateParams
WithAccountID adds the accountID to the report create params
func (*ReportCreateParams) WithCategory ¶
func (o *ReportCreateParams) WithCategory(category *string) *ReportCreateParams
WithCategory adds the category to the report create params
func (*ReportCreateParams) WithComment ¶
func (o *ReportCreateParams) WithComment(comment *string) *ReportCreateParams
WithComment adds the comment to the report create params
func (*ReportCreateParams) WithContext ¶
func (o *ReportCreateParams) WithContext(ctx context.Context) *ReportCreateParams
WithContext adds the context to the report create params
func (*ReportCreateParams) WithDefaults ¶
func (o *ReportCreateParams) WithDefaults() *ReportCreateParams
WithDefaults hydrates default values in the report create params (not the query body).
All values with no default are reset to their zero value.
func (*ReportCreateParams) WithForward ¶
func (o *ReportCreateParams) WithForward(forward *bool) *ReportCreateParams
WithForward adds the forward to the report create params
func (*ReportCreateParams) WithHTTPClient ¶
func (o *ReportCreateParams) WithHTTPClient(client *http.Client) *ReportCreateParams
WithHTTPClient adds the HTTPClient to the report create params
func (*ReportCreateParams) WithRuleIDs ¶
func (o *ReportCreateParams) WithRuleIDs(ruleIds []string) *ReportCreateParams
WithRuleIDs adds the ruleIds to the report create params
func (*ReportCreateParams) WithStatusIDs ¶
func (o *ReportCreateParams) WithStatusIDs(statusIds []string) *ReportCreateParams
WithStatusIDs adds the statusIds to the report create params
func (*ReportCreateParams) WithTimeout ¶
func (o *ReportCreateParams) WithTimeout(timeout time.Duration) *ReportCreateParams
WithTimeout adds the timeout to the report create params
func (*ReportCreateParams) WriteToRequest ¶
func (o *ReportCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ReportCreateReader ¶
type ReportCreateReader struct {
// contains filtered or unexported fields
}
ReportCreateReader is a Reader for the ReportCreate structure.
func (*ReportCreateReader) ReadResponse ¶
func (o *ReportCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ReportCreateUnauthorized ¶
type ReportCreateUnauthorized struct { }
ReportCreateUnauthorized describes a response with status code 401, with default header values.
unauthorized
func NewReportCreateUnauthorized ¶
func NewReportCreateUnauthorized() *ReportCreateUnauthorized
NewReportCreateUnauthorized creates a ReportCreateUnauthorized with default headers values
func (*ReportCreateUnauthorized) Code ¶
func (o *ReportCreateUnauthorized) Code() int
Code gets the status code for the report create unauthorized response
func (*ReportCreateUnauthorized) Error ¶
func (o *ReportCreateUnauthorized) Error() string
func (*ReportCreateUnauthorized) IsClientError ¶
func (o *ReportCreateUnauthorized) IsClientError() bool
IsClientError returns true when this report create unauthorized response has a 4xx status code
func (*ReportCreateUnauthorized) IsCode ¶
func (o *ReportCreateUnauthorized) IsCode(code int) bool
IsCode returns true when this report create unauthorized response a status code equal to that given
func (*ReportCreateUnauthorized) IsRedirect ¶
func (o *ReportCreateUnauthorized) IsRedirect() bool
IsRedirect returns true when this report create unauthorized response has a 3xx status code
func (*ReportCreateUnauthorized) IsServerError ¶
func (o *ReportCreateUnauthorized) IsServerError() bool
IsServerError returns true when this report create unauthorized response has a 5xx status code
func (*ReportCreateUnauthorized) IsSuccess ¶
func (o *ReportCreateUnauthorized) IsSuccess() bool
IsSuccess returns true when this report create unauthorized response has a 2xx status code
func (*ReportCreateUnauthorized) String ¶
func (o *ReportCreateUnauthorized) String() string
type ReportGetBadRequest ¶
type ReportGetBadRequest struct { }
ReportGetBadRequest describes a response with status code 400, with default header values.
bad request
func NewReportGetBadRequest ¶
func NewReportGetBadRequest() *ReportGetBadRequest
NewReportGetBadRequest creates a ReportGetBadRequest with default headers values
func (*ReportGetBadRequest) Code ¶
func (o *ReportGetBadRequest) Code() int
Code gets the status code for the report get bad request response
func (*ReportGetBadRequest) Error ¶
func (o *ReportGetBadRequest) Error() string
func (*ReportGetBadRequest) IsClientError ¶
func (o *ReportGetBadRequest) IsClientError() bool
IsClientError returns true when this report get bad request response has a 4xx status code
func (*ReportGetBadRequest) IsCode ¶
func (o *ReportGetBadRequest) IsCode(code int) bool
IsCode returns true when this report get bad request response a status code equal to that given
func (*ReportGetBadRequest) IsRedirect ¶
func (o *ReportGetBadRequest) IsRedirect() bool
IsRedirect returns true when this report get bad request response has a 3xx status code
func (*ReportGetBadRequest) IsServerError ¶
func (o *ReportGetBadRequest) IsServerError() bool
IsServerError returns true when this report get bad request response has a 5xx status code
func (*ReportGetBadRequest) IsSuccess ¶
func (o *ReportGetBadRequest) IsSuccess() bool
IsSuccess returns true when this report get bad request response has a 2xx status code
func (*ReportGetBadRequest) String ¶
func (o *ReportGetBadRequest) String() string
type ReportGetInternalServerError ¶
type ReportGetInternalServerError struct { }
ReportGetInternalServerError describes a response with status code 500, with default header values.
internal server error
func NewReportGetInternalServerError ¶
func NewReportGetInternalServerError() *ReportGetInternalServerError
NewReportGetInternalServerError creates a ReportGetInternalServerError with default headers values
func (*ReportGetInternalServerError) Code ¶
func (o *ReportGetInternalServerError) Code() int
Code gets the status code for the report get internal server error response
func (*ReportGetInternalServerError) Error ¶
func (o *ReportGetInternalServerError) Error() string
func (*ReportGetInternalServerError) IsClientError ¶
func (o *ReportGetInternalServerError) IsClientError() bool
IsClientError returns true when this report get internal server error response has a 4xx status code
func (*ReportGetInternalServerError) IsCode ¶
func (o *ReportGetInternalServerError) IsCode(code int) bool
IsCode returns true when this report get internal server error response a status code equal to that given
func (*ReportGetInternalServerError) IsRedirect ¶
func (o *ReportGetInternalServerError) IsRedirect() bool
IsRedirect returns true when this report get internal server error response has a 3xx status code
func (*ReportGetInternalServerError) IsServerError ¶
func (o *ReportGetInternalServerError) IsServerError() bool
IsServerError returns true when this report get internal server error response has a 5xx status code
func (*ReportGetInternalServerError) IsSuccess ¶
func (o *ReportGetInternalServerError) IsSuccess() bool
IsSuccess returns true when this report get internal server error response has a 2xx status code
func (*ReportGetInternalServerError) String ¶
func (o *ReportGetInternalServerError) String() string
type ReportGetNotAcceptable ¶
type ReportGetNotAcceptable struct { }
ReportGetNotAcceptable describes a response with status code 406, with default header values.
not acceptable
func NewReportGetNotAcceptable ¶
func NewReportGetNotAcceptable() *ReportGetNotAcceptable
NewReportGetNotAcceptable creates a ReportGetNotAcceptable with default headers values
func (*ReportGetNotAcceptable) Code ¶
func (o *ReportGetNotAcceptable) Code() int
Code gets the status code for the report get not acceptable response
func (*ReportGetNotAcceptable) Error ¶
func (o *ReportGetNotAcceptable) Error() string
func (*ReportGetNotAcceptable) IsClientError ¶
func (o *ReportGetNotAcceptable) IsClientError() bool
IsClientError returns true when this report get not acceptable response has a 4xx status code
func (*ReportGetNotAcceptable) IsCode ¶
func (o *ReportGetNotAcceptable) IsCode(code int) bool
IsCode returns true when this report get not acceptable response a status code equal to that given
func (*ReportGetNotAcceptable) IsRedirect ¶
func (o *ReportGetNotAcceptable) IsRedirect() bool
IsRedirect returns true when this report get not acceptable response has a 3xx status code
func (*ReportGetNotAcceptable) IsServerError ¶
func (o *ReportGetNotAcceptable) IsServerError() bool
IsServerError returns true when this report get not acceptable response has a 5xx status code
func (*ReportGetNotAcceptable) IsSuccess ¶
func (o *ReportGetNotAcceptable) IsSuccess() bool
IsSuccess returns true when this report get not acceptable response has a 2xx status code
func (*ReportGetNotAcceptable) String ¶
func (o *ReportGetNotAcceptable) String() string
type ReportGetNotFound ¶
type ReportGetNotFound struct { }
ReportGetNotFound describes a response with status code 404, with default header values.
not found
func NewReportGetNotFound ¶
func NewReportGetNotFound() *ReportGetNotFound
NewReportGetNotFound creates a ReportGetNotFound with default headers values
func (*ReportGetNotFound) Code ¶
func (o *ReportGetNotFound) Code() int
Code gets the status code for the report get not found response
func (*ReportGetNotFound) Error ¶
func (o *ReportGetNotFound) Error() string
func (*ReportGetNotFound) IsClientError ¶
func (o *ReportGetNotFound) IsClientError() bool
IsClientError returns true when this report get not found response has a 4xx status code
func (*ReportGetNotFound) IsCode ¶
func (o *ReportGetNotFound) IsCode(code int) bool
IsCode returns true when this report get not found response a status code equal to that given
func (*ReportGetNotFound) IsRedirect ¶
func (o *ReportGetNotFound) IsRedirect() bool
IsRedirect returns true when this report get not found response has a 3xx status code
func (*ReportGetNotFound) IsServerError ¶
func (o *ReportGetNotFound) IsServerError() bool
IsServerError returns true when this report get not found response has a 5xx status code
func (*ReportGetNotFound) IsSuccess ¶
func (o *ReportGetNotFound) IsSuccess() bool
IsSuccess returns true when this report get not found response has a 2xx status code
func (*ReportGetNotFound) String ¶
func (o *ReportGetNotFound) String() string
type ReportGetOK ¶
ReportGetOK describes a response with status code 200, with default header values.
The requested report.
func NewReportGetOK ¶
func NewReportGetOK() *ReportGetOK
NewReportGetOK creates a ReportGetOK with default headers values
func (*ReportGetOK) Code ¶
func (o *ReportGetOK) Code() int
Code gets the status code for the report get o k response
func (*ReportGetOK) Error ¶
func (o *ReportGetOK) Error() string
func (*ReportGetOK) GetPayload ¶
func (o *ReportGetOK) GetPayload() *models.Report
func (*ReportGetOK) IsClientError ¶
func (o *ReportGetOK) IsClientError() bool
IsClientError returns true when this report get o k response has a 4xx status code
func (*ReportGetOK) IsCode ¶
func (o *ReportGetOK) IsCode(code int) bool
IsCode returns true when this report get o k response a status code equal to that given
func (*ReportGetOK) IsRedirect ¶
func (o *ReportGetOK) IsRedirect() bool
IsRedirect returns true when this report get o k response has a 3xx status code
func (*ReportGetOK) IsServerError ¶
func (o *ReportGetOK) IsServerError() bool
IsServerError returns true when this report get o k response has a 5xx status code
func (*ReportGetOK) IsSuccess ¶
func (o *ReportGetOK) IsSuccess() bool
IsSuccess returns true when this report get o k response has a 2xx status code
func (*ReportGetOK) String ¶
func (o *ReportGetOK) String() string
type ReportGetParams ¶
type ReportGetParams struct { /* ID. ID of the report */ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ReportGetParams contains all the parameters to send to the API endpoint
for the report get operation. Typically these are written to a http.Request.
func NewReportGetParams ¶
func NewReportGetParams() *ReportGetParams
NewReportGetParams creates a new ReportGetParams 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 NewReportGetParamsWithContext ¶
func NewReportGetParamsWithContext(ctx context.Context) *ReportGetParams
NewReportGetParamsWithContext creates a new ReportGetParams object with the ability to set a context for a request.
func NewReportGetParamsWithHTTPClient ¶
func NewReportGetParamsWithHTTPClient(client *http.Client) *ReportGetParams
NewReportGetParamsWithHTTPClient creates a new ReportGetParams object with the ability to set a custom HTTPClient for a request.
func NewReportGetParamsWithTimeout ¶
func NewReportGetParamsWithTimeout(timeout time.Duration) *ReportGetParams
NewReportGetParamsWithTimeout creates a new ReportGetParams object with the ability to set a timeout on a request.
func (*ReportGetParams) SetContext ¶
func (o *ReportGetParams) SetContext(ctx context.Context)
SetContext adds the context to the report get params
func (*ReportGetParams) SetDefaults ¶
func (o *ReportGetParams) SetDefaults()
SetDefaults hydrates default values in the report get params (not the query body).
All values with no default are reset to their zero value.
func (*ReportGetParams) SetHTTPClient ¶
func (o *ReportGetParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the report get params
func (*ReportGetParams) SetID ¶
func (o *ReportGetParams) SetID(id string)
SetID adds the id to the report get params
func (*ReportGetParams) SetTimeout ¶
func (o *ReportGetParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the report get params
func (*ReportGetParams) WithContext ¶
func (o *ReportGetParams) WithContext(ctx context.Context) *ReportGetParams
WithContext adds the context to the report get params
func (*ReportGetParams) WithDefaults ¶
func (o *ReportGetParams) WithDefaults() *ReportGetParams
WithDefaults hydrates default values in the report get params (not the query body).
All values with no default are reset to their zero value.
func (*ReportGetParams) WithHTTPClient ¶
func (o *ReportGetParams) WithHTTPClient(client *http.Client) *ReportGetParams
WithHTTPClient adds the HTTPClient to the report get params
func (*ReportGetParams) WithID ¶
func (o *ReportGetParams) WithID(id string) *ReportGetParams
WithID adds the id to the report get params
func (*ReportGetParams) WithTimeout ¶
func (o *ReportGetParams) WithTimeout(timeout time.Duration) *ReportGetParams
WithTimeout adds the timeout to the report get params
func (*ReportGetParams) WriteToRequest ¶
func (o *ReportGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ReportGetReader ¶
type ReportGetReader struct {
// contains filtered or unexported fields
}
ReportGetReader is a Reader for the ReportGet structure.
func (*ReportGetReader) ReadResponse ¶
func (o *ReportGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ReportGetUnauthorized ¶
type ReportGetUnauthorized struct { }
ReportGetUnauthorized describes a response with status code 401, with default header values.
unauthorized
func NewReportGetUnauthorized ¶
func NewReportGetUnauthorized() *ReportGetUnauthorized
NewReportGetUnauthorized creates a ReportGetUnauthorized with default headers values
func (*ReportGetUnauthorized) Code ¶
func (o *ReportGetUnauthorized) Code() int
Code gets the status code for the report get unauthorized response
func (*ReportGetUnauthorized) Error ¶
func (o *ReportGetUnauthorized) Error() string
func (*ReportGetUnauthorized) IsClientError ¶
func (o *ReportGetUnauthorized) IsClientError() bool
IsClientError returns true when this report get unauthorized response has a 4xx status code
func (*ReportGetUnauthorized) IsCode ¶
func (o *ReportGetUnauthorized) IsCode(code int) bool
IsCode returns true when this report get unauthorized response a status code equal to that given
func (*ReportGetUnauthorized) IsRedirect ¶
func (o *ReportGetUnauthorized) IsRedirect() bool
IsRedirect returns true when this report get unauthorized response has a 3xx status code
func (*ReportGetUnauthorized) IsServerError ¶
func (o *ReportGetUnauthorized) IsServerError() bool
IsServerError returns true when this report get unauthorized response has a 5xx status code
func (*ReportGetUnauthorized) IsSuccess ¶
func (o *ReportGetUnauthorized) IsSuccess() bool
IsSuccess returns true when this report get unauthorized response has a 2xx status code
func (*ReportGetUnauthorized) String ¶
func (o *ReportGetUnauthorized) String() string
type ReportsBadRequest ¶
type ReportsBadRequest struct { }
ReportsBadRequest describes a response with status code 400, with default header values.
bad request
func NewReportsBadRequest ¶
func NewReportsBadRequest() *ReportsBadRequest
NewReportsBadRequest creates a ReportsBadRequest with default headers values
func (*ReportsBadRequest) Code ¶
func (o *ReportsBadRequest) Code() int
Code gets the status code for the reports bad request response
func (*ReportsBadRequest) Error ¶
func (o *ReportsBadRequest) Error() string
func (*ReportsBadRequest) IsClientError ¶
func (o *ReportsBadRequest) IsClientError() bool
IsClientError returns true when this reports bad request response has a 4xx status code
func (*ReportsBadRequest) IsCode ¶
func (o *ReportsBadRequest) IsCode(code int) bool
IsCode returns true when this reports bad request response a status code equal to that given
func (*ReportsBadRequest) IsRedirect ¶
func (o *ReportsBadRequest) IsRedirect() bool
IsRedirect returns true when this reports bad request response has a 3xx status code
func (*ReportsBadRequest) IsServerError ¶
func (o *ReportsBadRequest) IsServerError() bool
IsServerError returns true when this reports bad request response has a 5xx status code
func (*ReportsBadRequest) IsSuccess ¶
func (o *ReportsBadRequest) IsSuccess() bool
IsSuccess returns true when this reports bad request response has a 2xx status code
func (*ReportsBadRequest) String ¶
func (o *ReportsBadRequest) String() string
type ReportsInternalServerError ¶
type ReportsInternalServerError struct { }
ReportsInternalServerError describes a response with status code 500, with default header values.
internal server error
func NewReportsInternalServerError ¶
func NewReportsInternalServerError() *ReportsInternalServerError
NewReportsInternalServerError creates a ReportsInternalServerError with default headers values
func (*ReportsInternalServerError) Code ¶
func (o *ReportsInternalServerError) Code() int
Code gets the status code for the reports internal server error response
func (*ReportsInternalServerError) Error ¶
func (o *ReportsInternalServerError) Error() string
func (*ReportsInternalServerError) IsClientError ¶
func (o *ReportsInternalServerError) IsClientError() bool
IsClientError returns true when this reports internal server error response has a 4xx status code
func (*ReportsInternalServerError) IsCode ¶
func (o *ReportsInternalServerError) IsCode(code int) bool
IsCode returns true when this reports internal server error response a status code equal to that given
func (*ReportsInternalServerError) IsRedirect ¶
func (o *ReportsInternalServerError) IsRedirect() bool
IsRedirect returns true when this reports internal server error response has a 3xx status code
func (*ReportsInternalServerError) IsServerError ¶
func (o *ReportsInternalServerError) IsServerError() bool
IsServerError returns true when this reports internal server error response has a 5xx status code
func (*ReportsInternalServerError) IsSuccess ¶
func (o *ReportsInternalServerError) IsSuccess() bool
IsSuccess returns true when this reports internal server error response has a 2xx status code
func (*ReportsInternalServerError) String ¶
func (o *ReportsInternalServerError) String() string
type ReportsNotAcceptable ¶
type ReportsNotAcceptable struct { }
ReportsNotAcceptable describes a response with status code 406, with default header values.
not acceptable
func NewReportsNotAcceptable ¶
func NewReportsNotAcceptable() *ReportsNotAcceptable
NewReportsNotAcceptable creates a ReportsNotAcceptable with default headers values
func (*ReportsNotAcceptable) Code ¶
func (o *ReportsNotAcceptable) Code() int
Code gets the status code for the reports not acceptable response
func (*ReportsNotAcceptable) Error ¶
func (o *ReportsNotAcceptable) Error() string
func (*ReportsNotAcceptable) IsClientError ¶
func (o *ReportsNotAcceptable) IsClientError() bool
IsClientError returns true when this reports not acceptable response has a 4xx status code
func (*ReportsNotAcceptable) IsCode ¶
func (o *ReportsNotAcceptable) IsCode(code int) bool
IsCode returns true when this reports not acceptable response a status code equal to that given
func (*ReportsNotAcceptable) IsRedirect ¶
func (o *ReportsNotAcceptable) IsRedirect() bool
IsRedirect returns true when this reports not acceptable response has a 3xx status code
func (*ReportsNotAcceptable) IsServerError ¶
func (o *ReportsNotAcceptable) IsServerError() bool
IsServerError returns true when this reports not acceptable response has a 5xx status code
func (*ReportsNotAcceptable) IsSuccess ¶
func (o *ReportsNotAcceptable) IsSuccess() bool
IsSuccess returns true when this reports not acceptable response has a 2xx status code
func (*ReportsNotAcceptable) String ¶
func (o *ReportsNotAcceptable) String() string
type ReportsNotFound ¶
type ReportsNotFound struct { }
ReportsNotFound describes a response with status code 404, with default header values.
not found
func NewReportsNotFound ¶
func NewReportsNotFound() *ReportsNotFound
NewReportsNotFound creates a ReportsNotFound with default headers values
func (*ReportsNotFound) Code ¶
func (o *ReportsNotFound) Code() int
Code gets the status code for the reports not found response
func (*ReportsNotFound) Error ¶
func (o *ReportsNotFound) Error() string
func (*ReportsNotFound) IsClientError ¶
func (o *ReportsNotFound) IsClientError() bool
IsClientError returns true when this reports not found response has a 4xx status code
func (*ReportsNotFound) IsCode ¶
func (o *ReportsNotFound) IsCode(code int) bool
IsCode returns true when this reports not found response a status code equal to that given
func (*ReportsNotFound) IsRedirect ¶
func (o *ReportsNotFound) IsRedirect() bool
IsRedirect returns true when this reports not found response has a 3xx status code
func (*ReportsNotFound) IsServerError ¶
func (o *ReportsNotFound) IsServerError() bool
IsServerError returns true when this reports not found response has a 5xx status code
func (*ReportsNotFound) IsSuccess ¶
func (o *ReportsNotFound) IsSuccess() bool
IsSuccess returns true when this reports not found response has a 2xx status code
func (*ReportsNotFound) String ¶
func (o *ReportsNotFound) String() string
type ReportsOK ¶
type ReportsOK struct { /* Links to the next and previous queries. */ Link string Payload []*models.Report }
ReportsOK describes a response with status code 200, with default header values.
Array of reports.
func NewReportsOK ¶
func NewReportsOK() *ReportsOK
NewReportsOK creates a ReportsOK with default headers values
func (*ReportsOK) GetPayload ¶
func (*ReportsOK) IsClientError ¶
IsClientError returns true when this reports o k response has a 4xx status code
func (*ReportsOK) IsCode ¶
IsCode returns true when this reports o k response a status code equal to that given
func (*ReportsOK) IsRedirect ¶
IsRedirect returns true when this reports o k response has a 3xx status code
func (*ReportsOK) IsServerError ¶
IsServerError returns true when this reports o k response has a 5xx status code
type ReportsParams ¶
type ReportsParams struct { /* Limit. Number of reports to return. Default: 20 */ Limit *int64 /* MaxID. Return only reports *OLDER* than the given max ID (for paging downwards). The report with the specified ID will not be included in the response. */ MaxID *string /* MinID. Return only reports immediately *NEWER* than the given min ID (for paging upwards). The report with the specified ID will not be included in the response. */ MinID *string /* Resolved. If set to true, only resolved reports will be returned. If false, only unresolved reports will be returned. If unset, reports will not be filtered on their resolved status. */ Resolved *bool /* SinceID. Return only reports *NEWER* than the given since ID. The report with the specified ID will not be included in the response. */ SinceID *string /* TargetAccountID. Return only reports that target the given account id. */ TargetAccountID *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ReportsParams contains all the parameters to send to the API endpoint
for the reports operation. Typically these are written to a http.Request.
func NewReportsParams ¶
func NewReportsParams() *ReportsParams
NewReportsParams creates a new ReportsParams 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 NewReportsParamsWithContext ¶
func NewReportsParamsWithContext(ctx context.Context) *ReportsParams
NewReportsParamsWithContext creates a new ReportsParams object with the ability to set a context for a request.
func NewReportsParamsWithHTTPClient ¶
func NewReportsParamsWithHTTPClient(client *http.Client) *ReportsParams
NewReportsParamsWithHTTPClient creates a new ReportsParams object with the ability to set a custom HTTPClient for a request.
func NewReportsParamsWithTimeout ¶
func NewReportsParamsWithTimeout(timeout time.Duration) *ReportsParams
NewReportsParamsWithTimeout creates a new ReportsParams object with the ability to set a timeout on a request.
func (*ReportsParams) SetContext ¶
func (o *ReportsParams) SetContext(ctx context.Context)
SetContext adds the context to the reports params
func (*ReportsParams) SetDefaults ¶
func (o *ReportsParams) SetDefaults()
SetDefaults hydrates default values in the reports params (not the query body).
All values with no default are reset to their zero value.
func (*ReportsParams) SetHTTPClient ¶
func (o *ReportsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the reports params
func (*ReportsParams) SetLimit ¶
func (o *ReportsParams) SetLimit(limit *int64)
SetLimit adds the limit to the reports params
func (*ReportsParams) SetMaxID ¶
func (o *ReportsParams) SetMaxID(maxID *string)
SetMaxID adds the maxId to the reports params
func (*ReportsParams) SetMinID ¶
func (o *ReportsParams) SetMinID(minID *string)
SetMinID adds the minId to the reports params
func (*ReportsParams) SetResolved ¶
func (o *ReportsParams) SetResolved(resolved *bool)
SetResolved adds the resolved to the reports params
func (*ReportsParams) SetSinceID ¶
func (o *ReportsParams) SetSinceID(sinceID *string)
SetSinceID adds the sinceId to the reports params
func (*ReportsParams) SetTargetAccountID ¶
func (o *ReportsParams) SetTargetAccountID(targetAccountID *string)
SetTargetAccountID adds the targetAccountId to the reports params
func (*ReportsParams) SetTimeout ¶
func (o *ReportsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the reports params
func (*ReportsParams) WithContext ¶
func (o *ReportsParams) WithContext(ctx context.Context) *ReportsParams
WithContext adds the context to the reports params
func (*ReportsParams) WithDefaults ¶
func (o *ReportsParams) WithDefaults() *ReportsParams
WithDefaults hydrates default values in the reports params (not the query body).
All values with no default are reset to their zero value.
func (*ReportsParams) WithHTTPClient ¶
func (o *ReportsParams) WithHTTPClient(client *http.Client) *ReportsParams
WithHTTPClient adds the HTTPClient to the reports params
func (*ReportsParams) WithLimit ¶
func (o *ReportsParams) WithLimit(limit *int64) *ReportsParams
WithLimit adds the limit to the reports params
func (*ReportsParams) WithMaxID ¶
func (o *ReportsParams) WithMaxID(maxID *string) *ReportsParams
WithMaxID adds the maxID to the reports params
func (*ReportsParams) WithMinID ¶
func (o *ReportsParams) WithMinID(minID *string) *ReportsParams
WithMinID adds the minID to the reports params
func (*ReportsParams) WithResolved ¶
func (o *ReportsParams) WithResolved(resolved *bool) *ReportsParams
WithResolved adds the resolved to the reports params
func (*ReportsParams) WithSinceID ¶
func (o *ReportsParams) WithSinceID(sinceID *string) *ReportsParams
WithSinceID adds the sinceID to the reports params
func (*ReportsParams) WithTargetAccountID ¶
func (o *ReportsParams) WithTargetAccountID(targetAccountID *string) *ReportsParams
WithTargetAccountID adds the targetAccountID to the reports params
func (*ReportsParams) WithTimeout ¶
func (o *ReportsParams) WithTimeout(timeout time.Duration) *ReportsParams
WithTimeout adds the timeout to the reports params
func (*ReportsParams) WriteToRequest ¶
func (o *ReportsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ReportsReader ¶
type ReportsReader struct {
// contains filtered or unexported fields
}
ReportsReader is a Reader for the Reports structure.
func (*ReportsReader) ReadResponse ¶
func (o *ReportsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ReportsUnauthorized ¶
type ReportsUnauthorized struct { }
ReportsUnauthorized describes a response with status code 401, with default header values.
unauthorized
func NewReportsUnauthorized ¶
func NewReportsUnauthorized() *ReportsUnauthorized
NewReportsUnauthorized creates a ReportsUnauthorized with default headers values
func (*ReportsUnauthorized) Code ¶
func (o *ReportsUnauthorized) Code() int
Code gets the status code for the reports unauthorized response
func (*ReportsUnauthorized) Error ¶
func (o *ReportsUnauthorized) Error() string
func (*ReportsUnauthorized) IsClientError ¶
func (o *ReportsUnauthorized) IsClientError() bool
IsClientError returns true when this reports unauthorized response has a 4xx status code
func (*ReportsUnauthorized) IsCode ¶
func (o *ReportsUnauthorized) IsCode(code int) bool
IsCode returns true when this reports unauthorized response a status code equal to that given
func (*ReportsUnauthorized) IsRedirect ¶
func (o *ReportsUnauthorized) IsRedirect() bool
IsRedirect returns true when this reports unauthorized response has a 3xx status code
func (*ReportsUnauthorized) IsServerError ¶
func (o *ReportsUnauthorized) IsServerError() bool
IsServerError returns true when this reports unauthorized response has a 5xx status code
func (*ReportsUnauthorized) IsSuccess ¶
func (o *ReportsUnauthorized) IsSuccess() bool
IsSuccess returns true when this reports unauthorized response has a 2xx status code
func (*ReportsUnauthorized) String ¶
func (o *ReportsUnauthorized) String() string