Documentation
¶
Index ¶
- type Client
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) SmartlockLogsResourceGetGet(params *SmartlockLogsResourceGetGetParams, ...) (*SmartlockLogsResourceGetGetOK, error)
- func (a *Client) SmartlocksLogsResourceGetGet(params *SmartlocksLogsResourceGetGetParams, ...) (*SmartlocksLogsResourceGetGetOK, error)
- type ClientOption
- type ClientService
- type SmartlockLogsResourceGetGetOK
- func (o *SmartlockLogsResourceGetGetOK) Code() int
- func (o *SmartlockLogsResourceGetGetOK) Error() string
- func (o *SmartlockLogsResourceGetGetOK) GetPayload() []*models.SmartlockLog
- func (o *SmartlockLogsResourceGetGetOK) IsClientError() bool
- func (o *SmartlockLogsResourceGetGetOK) IsCode(code int) bool
- func (o *SmartlockLogsResourceGetGetOK) IsRedirect() bool
- func (o *SmartlockLogsResourceGetGetOK) IsServerError() bool
- func (o *SmartlockLogsResourceGetGetOK) IsSuccess() bool
- func (o *SmartlockLogsResourceGetGetOK) String() string
- type SmartlockLogsResourceGetGetParams
- func NewSmartlockLogsResourceGetGetParams() *SmartlockLogsResourceGetGetParams
- func NewSmartlockLogsResourceGetGetParamsWithContext(ctx context.Context) *SmartlockLogsResourceGetGetParams
- func NewSmartlockLogsResourceGetGetParamsWithHTTPClient(client *http.Client) *SmartlockLogsResourceGetGetParams
- func NewSmartlockLogsResourceGetGetParamsWithTimeout(timeout time.Duration) *SmartlockLogsResourceGetGetParams
- func (o *SmartlockLogsResourceGetGetParams) SetAccountUserID(accountUserID *int64)
- func (o *SmartlockLogsResourceGetGetParams) SetAction(action *int64)
- func (o *SmartlockLogsResourceGetGetParams) SetAuthID(authID *string)
- func (o *SmartlockLogsResourceGetGetParams) SetContext(ctx context.Context)
- func (o *SmartlockLogsResourceGetGetParams) SetDefaults()
- func (o *SmartlockLogsResourceGetGetParams) SetFromDate(fromDate *string)
- func (o *SmartlockLogsResourceGetGetParams) SetHTTPClient(client *http.Client)
- func (o *SmartlockLogsResourceGetGetParams) SetID(id *string)
- func (o *SmartlockLogsResourceGetGetParams) SetLimit(limit *int64)
- func (o *SmartlockLogsResourceGetGetParams) SetSmartlockID(smartlockID int64)
- func (o *SmartlockLogsResourceGetGetParams) SetTimeout(timeout time.Duration)
- func (o *SmartlockLogsResourceGetGetParams) SetToDate(toDate *string)
- func (o *SmartlockLogsResourceGetGetParams) WithAccountUserID(accountUserID *int64) *SmartlockLogsResourceGetGetParams
- func (o *SmartlockLogsResourceGetGetParams) WithAction(action *int64) *SmartlockLogsResourceGetGetParams
- func (o *SmartlockLogsResourceGetGetParams) WithAuthID(authID *string) *SmartlockLogsResourceGetGetParams
- func (o *SmartlockLogsResourceGetGetParams) WithContext(ctx context.Context) *SmartlockLogsResourceGetGetParams
- func (o *SmartlockLogsResourceGetGetParams) WithDefaults() *SmartlockLogsResourceGetGetParams
- func (o *SmartlockLogsResourceGetGetParams) WithFromDate(fromDate *string) *SmartlockLogsResourceGetGetParams
- func (o *SmartlockLogsResourceGetGetParams) WithHTTPClient(client *http.Client) *SmartlockLogsResourceGetGetParams
- func (o *SmartlockLogsResourceGetGetParams) WithID(id *string) *SmartlockLogsResourceGetGetParams
- func (o *SmartlockLogsResourceGetGetParams) WithLimit(limit *int64) *SmartlockLogsResourceGetGetParams
- func (o *SmartlockLogsResourceGetGetParams) WithSmartlockID(smartlockID int64) *SmartlockLogsResourceGetGetParams
- func (o *SmartlockLogsResourceGetGetParams) WithTimeout(timeout time.Duration) *SmartlockLogsResourceGetGetParams
- func (o *SmartlockLogsResourceGetGetParams) WithToDate(toDate *string) *SmartlockLogsResourceGetGetParams
- func (o *SmartlockLogsResourceGetGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SmartlockLogsResourceGetGetReader
- type SmartlockLogsResourceGetGetUnauthorized
- func (o *SmartlockLogsResourceGetGetUnauthorized) Code() int
- func (o *SmartlockLogsResourceGetGetUnauthorized) Error() string
- func (o *SmartlockLogsResourceGetGetUnauthorized) IsClientError() bool
- func (o *SmartlockLogsResourceGetGetUnauthorized) IsCode(code int) bool
- func (o *SmartlockLogsResourceGetGetUnauthorized) IsRedirect() bool
- func (o *SmartlockLogsResourceGetGetUnauthorized) IsServerError() bool
- func (o *SmartlockLogsResourceGetGetUnauthorized) IsSuccess() bool
- func (o *SmartlockLogsResourceGetGetUnauthorized) String() string
- type SmartlocksLogsResourceGetGetOK
- func (o *SmartlocksLogsResourceGetGetOK) Code() int
- func (o *SmartlocksLogsResourceGetGetOK) Error() string
- func (o *SmartlocksLogsResourceGetGetOK) GetPayload() []*models.SmartlockLog
- func (o *SmartlocksLogsResourceGetGetOK) IsClientError() bool
- func (o *SmartlocksLogsResourceGetGetOK) IsCode(code int) bool
- func (o *SmartlocksLogsResourceGetGetOK) IsRedirect() bool
- func (o *SmartlocksLogsResourceGetGetOK) IsServerError() bool
- func (o *SmartlocksLogsResourceGetGetOK) IsSuccess() bool
- func (o *SmartlocksLogsResourceGetGetOK) String() string
- type SmartlocksLogsResourceGetGetParams
- func NewSmartlocksLogsResourceGetGetParams() *SmartlocksLogsResourceGetGetParams
- func NewSmartlocksLogsResourceGetGetParamsWithContext(ctx context.Context) *SmartlocksLogsResourceGetGetParams
- func NewSmartlocksLogsResourceGetGetParamsWithHTTPClient(client *http.Client) *SmartlocksLogsResourceGetGetParams
- func NewSmartlocksLogsResourceGetGetParamsWithTimeout(timeout time.Duration) *SmartlocksLogsResourceGetGetParams
- func (o *SmartlocksLogsResourceGetGetParams) SetAccountUserID(accountUserID *int64)
- func (o *SmartlocksLogsResourceGetGetParams) SetAction(action *int64)
- func (o *SmartlocksLogsResourceGetGetParams) SetContext(ctx context.Context)
- func (o *SmartlocksLogsResourceGetGetParams) SetDefaults()
- func (o *SmartlocksLogsResourceGetGetParams) SetFromDate(fromDate *string)
- func (o *SmartlocksLogsResourceGetGetParams) SetHTTPClient(client *http.Client)
- func (o *SmartlocksLogsResourceGetGetParams) SetID(id *string)
- func (o *SmartlocksLogsResourceGetGetParams) SetLimit(limit *int64)
- func (o *SmartlocksLogsResourceGetGetParams) SetTimeout(timeout time.Duration)
- func (o *SmartlocksLogsResourceGetGetParams) SetToDate(toDate *string)
- func (o *SmartlocksLogsResourceGetGetParams) WithAccountUserID(accountUserID *int64) *SmartlocksLogsResourceGetGetParams
- func (o *SmartlocksLogsResourceGetGetParams) WithAction(action *int64) *SmartlocksLogsResourceGetGetParams
- func (o *SmartlocksLogsResourceGetGetParams) WithContext(ctx context.Context) *SmartlocksLogsResourceGetGetParams
- func (o *SmartlocksLogsResourceGetGetParams) WithDefaults() *SmartlocksLogsResourceGetGetParams
- func (o *SmartlocksLogsResourceGetGetParams) WithFromDate(fromDate *string) *SmartlocksLogsResourceGetGetParams
- func (o *SmartlocksLogsResourceGetGetParams) WithHTTPClient(client *http.Client) *SmartlocksLogsResourceGetGetParams
- func (o *SmartlocksLogsResourceGetGetParams) WithID(id *string) *SmartlocksLogsResourceGetGetParams
- func (o *SmartlocksLogsResourceGetGetParams) WithLimit(limit *int64) *SmartlocksLogsResourceGetGetParams
- func (o *SmartlocksLogsResourceGetGetParams) WithTimeout(timeout time.Duration) *SmartlocksLogsResourceGetGetParams
- func (o *SmartlocksLogsResourceGetGetParams) WithToDate(toDate *string) *SmartlocksLogsResourceGetGetParams
- func (o *SmartlocksLogsResourceGetGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SmartlocksLogsResourceGetGetReader
- type SmartlocksLogsResourceGetGetUnauthorized
- func (o *SmartlocksLogsResourceGetGetUnauthorized) Code() int
- func (o *SmartlocksLogsResourceGetGetUnauthorized) Error() string
- func (o *SmartlocksLogsResourceGetGetUnauthorized) IsClientError() bool
- func (o *SmartlocksLogsResourceGetGetUnauthorized) IsCode(code int) bool
- func (o *SmartlocksLogsResourceGetGetUnauthorized) IsRedirect() bool
- func (o *SmartlocksLogsResourceGetGetUnauthorized) IsServerError() bool
- func (o *SmartlocksLogsResourceGetGetUnauthorized) IsSuccess() bool
- func (o *SmartlocksLogsResourceGetGetUnauthorized) String() string
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 smartlock log API
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) SmartlockLogsResourceGetGet ¶
func (a *Client) SmartlockLogsResourceGetGet(params *SmartlockLogsResourceGetGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SmartlockLogsResourceGetGetOK, error)
SmartlockLogsResourceGetGet gets a list of smartlock logs
func (*Client) SmartlocksLogsResourceGetGet ¶
func (a *Client) SmartlocksLogsResourceGetGet(params *SmartlocksLogsResourceGetGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SmartlocksLogsResourceGetGetOK, error)
SmartlocksLogsResourceGetGet gets a list of smartlock logs for all of your smartlocks
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { SmartlockLogsResourceGetGet(params *SmartlockLogsResourceGetGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SmartlockLogsResourceGetGetOK, error) SmartlocksLogsResourceGetGet(params *SmartlocksLogsResourceGetGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SmartlocksLogsResourceGetGetOK, 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 smartlock log API client.
type SmartlockLogsResourceGetGetOK ¶
type SmartlockLogsResourceGetGetOK struct {
Payload []*models.SmartlockLog
}
SmartlockLogsResourceGetGetOK describes a response with status code 200, with default header values.
successful operation
func NewSmartlockLogsResourceGetGetOK ¶
func NewSmartlockLogsResourceGetGetOK() *SmartlockLogsResourceGetGetOK
NewSmartlockLogsResourceGetGetOK creates a SmartlockLogsResourceGetGetOK with default headers values
func (*SmartlockLogsResourceGetGetOK) Code ¶
func (o *SmartlockLogsResourceGetGetOK) Code() int
Code gets the status code for the smartlock logs resource get get o k response
func (*SmartlockLogsResourceGetGetOK) Error ¶
func (o *SmartlockLogsResourceGetGetOK) Error() string
func (*SmartlockLogsResourceGetGetOK) GetPayload ¶
func (o *SmartlockLogsResourceGetGetOK) GetPayload() []*models.SmartlockLog
func (*SmartlockLogsResourceGetGetOK) IsClientError ¶
func (o *SmartlockLogsResourceGetGetOK) IsClientError() bool
IsClientError returns true when this smartlock logs resource get get o k response has a 4xx status code
func (*SmartlockLogsResourceGetGetOK) IsCode ¶
func (o *SmartlockLogsResourceGetGetOK) IsCode(code int) bool
IsCode returns true when this smartlock logs resource get get o k response a status code equal to that given
func (*SmartlockLogsResourceGetGetOK) IsRedirect ¶
func (o *SmartlockLogsResourceGetGetOK) IsRedirect() bool
IsRedirect returns true when this smartlock logs resource get get o k response has a 3xx status code
func (*SmartlockLogsResourceGetGetOK) IsServerError ¶
func (o *SmartlockLogsResourceGetGetOK) IsServerError() bool
IsServerError returns true when this smartlock logs resource get get o k response has a 5xx status code
func (*SmartlockLogsResourceGetGetOK) IsSuccess ¶
func (o *SmartlockLogsResourceGetGetOK) IsSuccess() bool
IsSuccess returns true when this smartlock logs resource get get o k response has a 2xx status code
func (*SmartlockLogsResourceGetGetOK) String ¶
func (o *SmartlockLogsResourceGetGetOK) String() string
type SmartlockLogsResourceGetGetParams ¶
type SmartlockLogsResourceGetGetParams struct { /* AccountUserID. Filter for account users */ AccountUserID *int64 /* Action. Filter for action */ Action *int64 /* AuthID. Filter for auths */ AuthID *string /* FromDate. Filter for date (RFC3339) */ FromDate *string /* ID. Filter for older logs */ ID *string /* Limit. Amount of logs (max: 50) Default: 20 */ Limit *int64 /* SmartlockID. The smartlock id */ SmartlockID int64 /* ToDate. Filter for date (RFC3339) */ ToDate *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
SmartlockLogsResourceGetGetParams contains all the parameters to send to the API endpoint
for the smartlock logs resource get get operation. Typically these are written to a http.Request.
func NewSmartlockLogsResourceGetGetParams ¶
func NewSmartlockLogsResourceGetGetParams() *SmartlockLogsResourceGetGetParams
NewSmartlockLogsResourceGetGetParams creates a new SmartlockLogsResourceGetGetParams 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 NewSmartlockLogsResourceGetGetParamsWithContext ¶
func NewSmartlockLogsResourceGetGetParamsWithContext(ctx context.Context) *SmartlockLogsResourceGetGetParams
NewSmartlockLogsResourceGetGetParamsWithContext creates a new SmartlockLogsResourceGetGetParams object with the ability to set a context for a request.
func NewSmartlockLogsResourceGetGetParamsWithHTTPClient ¶
func NewSmartlockLogsResourceGetGetParamsWithHTTPClient(client *http.Client) *SmartlockLogsResourceGetGetParams
NewSmartlockLogsResourceGetGetParamsWithHTTPClient creates a new SmartlockLogsResourceGetGetParams object with the ability to set a custom HTTPClient for a request.
func NewSmartlockLogsResourceGetGetParamsWithTimeout ¶
func NewSmartlockLogsResourceGetGetParamsWithTimeout(timeout time.Duration) *SmartlockLogsResourceGetGetParams
NewSmartlockLogsResourceGetGetParamsWithTimeout creates a new SmartlockLogsResourceGetGetParams object with the ability to set a timeout on a request.
func (*SmartlockLogsResourceGetGetParams) SetAccountUserID ¶
func (o *SmartlockLogsResourceGetGetParams) SetAccountUserID(accountUserID *int64)
SetAccountUserID adds the accountUserId to the smartlock logs resource get get params
func (*SmartlockLogsResourceGetGetParams) SetAction ¶
func (o *SmartlockLogsResourceGetGetParams) SetAction(action *int64)
SetAction adds the action to the smartlock logs resource get get params
func (*SmartlockLogsResourceGetGetParams) SetAuthID ¶
func (o *SmartlockLogsResourceGetGetParams) SetAuthID(authID *string)
SetAuthID adds the authId to the smartlock logs resource get get params
func (*SmartlockLogsResourceGetGetParams) SetContext ¶
func (o *SmartlockLogsResourceGetGetParams) SetContext(ctx context.Context)
SetContext adds the context to the smartlock logs resource get get params
func (*SmartlockLogsResourceGetGetParams) SetDefaults ¶
func (o *SmartlockLogsResourceGetGetParams) SetDefaults()
SetDefaults hydrates default values in the smartlock logs resource get get params (not the query body).
All values with no default are reset to their zero value.
func (*SmartlockLogsResourceGetGetParams) SetFromDate ¶
func (o *SmartlockLogsResourceGetGetParams) SetFromDate(fromDate *string)
SetFromDate adds the fromDate to the smartlock logs resource get get params
func (*SmartlockLogsResourceGetGetParams) SetHTTPClient ¶
func (o *SmartlockLogsResourceGetGetParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the smartlock logs resource get get params
func (*SmartlockLogsResourceGetGetParams) SetID ¶
func (o *SmartlockLogsResourceGetGetParams) SetID(id *string)
SetID adds the id to the smartlock logs resource get get params
func (*SmartlockLogsResourceGetGetParams) SetLimit ¶
func (o *SmartlockLogsResourceGetGetParams) SetLimit(limit *int64)
SetLimit adds the limit to the smartlock logs resource get get params
func (*SmartlockLogsResourceGetGetParams) SetSmartlockID ¶
func (o *SmartlockLogsResourceGetGetParams) SetSmartlockID(smartlockID int64)
SetSmartlockID adds the smartlockId to the smartlock logs resource get get params
func (*SmartlockLogsResourceGetGetParams) SetTimeout ¶
func (o *SmartlockLogsResourceGetGetParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the smartlock logs resource get get params
func (*SmartlockLogsResourceGetGetParams) SetToDate ¶
func (o *SmartlockLogsResourceGetGetParams) SetToDate(toDate *string)
SetToDate adds the toDate to the smartlock logs resource get get params
func (*SmartlockLogsResourceGetGetParams) WithAccountUserID ¶
func (o *SmartlockLogsResourceGetGetParams) WithAccountUserID(accountUserID *int64) *SmartlockLogsResourceGetGetParams
WithAccountUserID adds the accountUserID to the smartlock logs resource get get params
func (*SmartlockLogsResourceGetGetParams) WithAction ¶
func (o *SmartlockLogsResourceGetGetParams) WithAction(action *int64) *SmartlockLogsResourceGetGetParams
WithAction adds the action to the smartlock logs resource get get params
func (*SmartlockLogsResourceGetGetParams) WithAuthID ¶
func (o *SmartlockLogsResourceGetGetParams) WithAuthID(authID *string) *SmartlockLogsResourceGetGetParams
WithAuthID adds the authID to the smartlock logs resource get get params
func (*SmartlockLogsResourceGetGetParams) WithContext ¶
func (o *SmartlockLogsResourceGetGetParams) WithContext(ctx context.Context) *SmartlockLogsResourceGetGetParams
WithContext adds the context to the smartlock logs resource get get params
func (*SmartlockLogsResourceGetGetParams) WithDefaults ¶
func (o *SmartlockLogsResourceGetGetParams) WithDefaults() *SmartlockLogsResourceGetGetParams
WithDefaults hydrates default values in the smartlock logs resource get get params (not the query body).
All values with no default are reset to their zero value.
func (*SmartlockLogsResourceGetGetParams) WithFromDate ¶
func (o *SmartlockLogsResourceGetGetParams) WithFromDate(fromDate *string) *SmartlockLogsResourceGetGetParams
WithFromDate adds the fromDate to the smartlock logs resource get get params
func (*SmartlockLogsResourceGetGetParams) WithHTTPClient ¶
func (o *SmartlockLogsResourceGetGetParams) WithHTTPClient(client *http.Client) *SmartlockLogsResourceGetGetParams
WithHTTPClient adds the HTTPClient to the smartlock logs resource get get params
func (*SmartlockLogsResourceGetGetParams) WithID ¶
func (o *SmartlockLogsResourceGetGetParams) WithID(id *string) *SmartlockLogsResourceGetGetParams
WithID adds the id to the smartlock logs resource get get params
func (*SmartlockLogsResourceGetGetParams) WithLimit ¶
func (o *SmartlockLogsResourceGetGetParams) WithLimit(limit *int64) *SmartlockLogsResourceGetGetParams
WithLimit adds the limit to the smartlock logs resource get get params
func (*SmartlockLogsResourceGetGetParams) WithSmartlockID ¶
func (o *SmartlockLogsResourceGetGetParams) WithSmartlockID(smartlockID int64) *SmartlockLogsResourceGetGetParams
WithSmartlockID adds the smartlockID to the smartlock logs resource get get params
func (*SmartlockLogsResourceGetGetParams) WithTimeout ¶
func (o *SmartlockLogsResourceGetGetParams) WithTimeout(timeout time.Duration) *SmartlockLogsResourceGetGetParams
WithTimeout adds the timeout to the smartlock logs resource get get params
func (*SmartlockLogsResourceGetGetParams) WithToDate ¶
func (o *SmartlockLogsResourceGetGetParams) WithToDate(toDate *string) *SmartlockLogsResourceGetGetParams
WithToDate adds the toDate to the smartlock logs resource get get params
func (*SmartlockLogsResourceGetGetParams) WriteToRequest ¶
func (o *SmartlockLogsResourceGetGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type SmartlockLogsResourceGetGetReader ¶
type SmartlockLogsResourceGetGetReader struct {
// contains filtered or unexported fields
}
SmartlockLogsResourceGetGetReader is a Reader for the SmartlockLogsResourceGetGet structure.
func (*SmartlockLogsResourceGetGetReader) ReadResponse ¶
func (o *SmartlockLogsResourceGetGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type SmartlockLogsResourceGetGetUnauthorized ¶
type SmartlockLogsResourceGetGetUnauthorized struct { }
SmartlockLogsResourceGetGetUnauthorized describes a response with status code 401, with default header values.
Not authorized
func NewSmartlockLogsResourceGetGetUnauthorized ¶
func NewSmartlockLogsResourceGetGetUnauthorized() *SmartlockLogsResourceGetGetUnauthorized
NewSmartlockLogsResourceGetGetUnauthorized creates a SmartlockLogsResourceGetGetUnauthorized with default headers values
func (*SmartlockLogsResourceGetGetUnauthorized) Code ¶
func (o *SmartlockLogsResourceGetGetUnauthorized) Code() int
Code gets the status code for the smartlock logs resource get get unauthorized response
func (*SmartlockLogsResourceGetGetUnauthorized) Error ¶
func (o *SmartlockLogsResourceGetGetUnauthorized) Error() string
func (*SmartlockLogsResourceGetGetUnauthorized) IsClientError ¶
func (o *SmartlockLogsResourceGetGetUnauthorized) IsClientError() bool
IsClientError returns true when this smartlock logs resource get get unauthorized response has a 4xx status code
func (*SmartlockLogsResourceGetGetUnauthorized) IsCode ¶
func (o *SmartlockLogsResourceGetGetUnauthorized) IsCode(code int) bool
IsCode returns true when this smartlock logs resource get get unauthorized response a status code equal to that given
func (*SmartlockLogsResourceGetGetUnauthorized) IsRedirect ¶
func (o *SmartlockLogsResourceGetGetUnauthorized) IsRedirect() bool
IsRedirect returns true when this smartlock logs resource get get unauthorized response has a 3xx status code
func (*SmartlockLogsResourceGetGetUnauthorized) IsServerError ¶
func (o *SmartlockLogsResourceGetGetUnauthorized) IsServerError() bool
IsServerError returns true when this smartlock logs resource get get unauthorized response has a 5xx status code
func (*SmartlockLogsResourceGetGetUnauthorized) IsSuccess ¶
func (o *SmartlockLogsResourceGetGetUnauthorized) IsSuccess() bool
IsSuccess returns true when this smartlock logs resource get get unauthorized response has a 2xx status code
func (*SmartlockLogsResourceGetGetUnauthorized) String ¶
func (o *SmartlockLogsResourceGetGetUnauthorized) String() string
type SmartlocksLogsResourceGetGetOK ¶
type SmartlocksLogsResourceGetGetOK struct {
Payload []*models.SmartlockLog
}
SmartlocksLogsResourceGetGetOK describes a response with status code 200, with default header values.
successful operation
func NewSmartlocksLogsResourceGetGetOK ¶
func NewSmartlocksLogsResourceGetGetOK() *SmartlocksLogsResourceGetGetOK
NewSmartlocksLogsResourceGetGetOK creates a SmartlocksLogsResourceGetGetOK with default headers values
func (*SmartlocksLogsResourceGetGetOK) Code ¶
func (o *SmartlocksLogsResourceGetGetOK) Code() int
Code gets the status code for the smartlocks logs resource get get o k response
func (*SmartlocksLogsResourceGetGetOK) Error ¶
func (o *SmartlocksLogsResourceGetGetOK) Error() string
func (*SmartlocksLogsResourceGetGetOK) GetPayload ¶
func (o *SmartlocksLogsResourceGetGetOK) GetPayload() []*models.SmartlockLog
func (*SmartlocksLogsResourceGetGetOK) IsClientError ¶
func (o *SmartlocksLogsResourceGetGetOK) IsClientError() bool
IsClientError returns true when this smartlocks logs resource get get o k response has a 4xx status code
func (*SmartlocksLogsResourceGetGetOK) IsCode ¶
func (o *SmartlocksLogsResourceGetGetOK) IsCode(code int) bool
IsCode returns true when this smartlocks logs resource get get o k response a status code equal to that given
func (*SmartlocksLogsResourceGetGetOK) IsRedirect ¶
func (o *SmartlocksLogsResourceGetGetOK) IsRedirect() bool
IsRedirect returns true when this smartlocks logs resource get get o k response has a 3xx status code
func (*SmartlocksLogsResourceGetGetOK) IsServerError ¶
func (o *SmartlocksLogsResourceGetGetOK) IsServerError() bool
IsServerError returns true when this smartlocks logs resource get get o k response has a 5xx status code
func (*SmartlocksLogsResourceGetGetOK) IsSuccess ¶
func (o *SmartlocksLogsResourceGetGetOK) IsSuccess() bool
IsSuccess returns true when this smartlocks logs resource get get o k response has a 2xx status code
func (*SmartlocksLogsResourceGetGetOK) String ¶
func (o *SmartlocksLogsResourceGetGetOK) String() string
type SmartlocksLogsResourceGetGetParams ¶
type SmartlocksLogsResourceGetGetParams struct { /* AccountUserID. Filter for account users */ AccountUserID *int64 /* Action. Filter for action */ Action *int64 /* FromDate. Filter for date (RFC3339) */ FromDate *string /* ID. Filter for older logs */ ID *string /* Limit. Amount of logs (max: 50) Default: 20 */ Limit *int64 /* ToDate. Filter for date (RFC3339) */ ToDate *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
SmartlocksLogsResourceGetGetParams contains all the parameters to send to the API endpoint
for the smartlocks logs resource get get operation. Typically these are written to a http.Request.
func NewSmartlocksLogsResourceGetGetParams ¶
func NewSmartlocksLogsResourceGetGetParams() *SmartlocksLogsResourceGetGetParams
NewSmartlocksLogsResourceGetGetParams creates a new SmartlocksLogsResourceGetGetParams 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 NewSmartlocksLogsResourceGetGetParamsWithContext ¶
func NewSmartlocksLogsResourceGetGetParamsWithContext(ctx context.Context) *SmartlocksLogsResourceGetGetParams
NewSmartlocksLogsResourceGetGetParamsWithContext creates a new SmartlocksLogsResourceGetGetParams object with the ability to set a context for a request.
func NewSmartlocksLogsResourceGetGetParamsWithHTTPClient ¶
func NewSmartlocksLogsResourceGetGetParamsWithHTTPClient(client *http.Client) *SmartlocksLogsResourceGetGetParams
NewSmartlocksLogsResourceGetGetParamsWithHTTPClient creates a new SmartlocksLogsResourceGetGetParams object with the ability to set a custom HTTPClient for a request.
func NewSmartlocksLogsResourceGetGetParamsWithTimeout ¶
func NewSmartlocksLogsResourceGetGetParamsWithTimeout(timeout time.Duration) *SmartlocksLogsResourceGetGetParams
NewSmartlocksLogsResourceGetGetParamsWithTimeout creates a new SmartlocksLogsResourceGetGetParams object with the ability to set a timeout on a request.
func (*SmartlocksLogsResourceGetGetParams) SetAccountUserID ¶
func (o *SmartlocksLogsResourceGetGetParams) SetAccountUserID(accountUserID *int64)
SetAccountUserID adds the accountUserId to the smartlocks logs resource get get params
func (*SmartlocksLogsResourceGetGetParams) SetAction ¶
func (o *SmartlocksLogsResourceGetGetParams) SetAction(action *int64)
SetAction adds the action to the smartlocks logs resource get get params
func (*SmartlocksLogsResourceGetGetParams) SetContext ¶
func (o *SmartlocksLogsResourceGetGetParams) SetContext(ctx context.Context)
SetContext adds the context to the smartlocks logs resource get get params
func (*SmartlocksLogsResourceGetGetParams) SetDefaults ¶
func (o *SmartlocksLogsResourceGetGetParams) SetDefaults()
SetDefaults hydrates default values in the smartlocks logs resource get get params (not the query body).
All values with no default are reset to their zero value.
func (*SmartlocksLogsResourceGetGetParams) SetFromDate ¶
func (o *SmartlocksLogsResourceGetGetParams) SetFromDate(fromDate *string)
SetFromDate adds the fromDate to the smartlocks logs resource get get params
func (*SmartlocksLogsResourceGetGetParams) SetHTTPClient ¶
func (o *SmartlocksLogsResourceGetGetParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the smartlocks logs resource get get params
func (*SmartlocksLogsResourceGetGetParams) SetID ¶
func (o *SmartlocksLogsResourceGetGetParams) SetID(id *string)
SetID adds the id to the smartlocks logs resource get get params
func (*SmartlocksLogsResourceGetGetParams) SetLimit ¶
func (o *SmartlocksLogsResourceGetGetParams) SetLimit(limit *int64)
SetLimit adds the limit to the smartlocks logs resource get get params
func (*SmartlocksLogsResourceGetGetParams) SetTimeout ¶
func (o *SmartlocksLogsResourceGetGetParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the smartlocks logs resource get get params
func (*SmartlocksLogsResourceGetGetParams) SetToDate ¶
func (o *SmartlocksLogsResourceGetGetParams) SetToDate(toDate *string)
SetToDate adds the toDate to the smartlocks logs resource get get params
func (*SmartlocksLogsResourceGetGetParams) WithAccountUserID ¶
func (o *SmartlocksLogsResourceGetGetParams) WithAccountUserID(accountUserID *int64) *SmartlocksLogsResourceGetGetParams
WithAccountUserID adds the accountUserID to the smartlocks logs resource get get params
func (*SmartlocksLogsResourceGetGetParams) WithAction ¶
func (o *SmartlocksLogsResourceGetGetParams) WithAction(action *int64) *SmartlocksLogsResourceGetGetParams
WithAction adds the action to the smartlocks logs resource get get params
func (*SmartlocksLogsResourceGetGetParams) WithContext ¶
func (o *SmartlocksLogsResourceGetGetParams) WithContext(ctx context.Context) *SmartlocksLogsResourceGetGetParams
WithContext adds the context to the smartlocks logs resource get get params
func (*SmartlocksLogsResourceGetGetParams) WithDefaults ¶
func (o *SmartlocksLogsResourceGetGetParams) WithDefaults() *SmartlocksLogsResourceGetGetParams
WithDefaults hydrates default values in the smartlocks logs resource get get params (not the query body).
All values with no default are reset to their zero value.
func (*SmartlocksLogsResourceGetGetParams) WithFromDate ¶
func (o *SmartlocksLogsResourceGetGetParams) WithFromDate(fromDate *string) *SmartlocksLogsResourceGetGetParams
WithFromDate adds the fromDate to the smartlocks logs resource get get params
func (*SmartlocksLogsResourceGetGetParams) WithHTTPClient ¶
func (o *SmartlocksLogsResourceGetGetParams) WithHTTPClient(client *http.Client) *SmartlocksLogsResourceGetGetParams
WithHTTPClient adds the HTTPClient to the smartlocks logs resource get get params
func (*SmartlocksLogsResourceGetGetParams) WithID ¶
func (o *SmartlocksLogsResourceGetGetParams) WithID(id *string) *SmartlocksLogsResourceGetGetParams
WithID adds the id to the smartlocks logs resource get get params
func (*SmartlocksLogsResourceGetGetParams) WithLimit ¶
func (o *SmartlocksLogsResourceGetGetParams) WithLimit(limit *int64) *SmartlocksLogsResourceGetGetParams
WithLimit adds the limit to the smartlocks logs resource get get params
func (*SmartlocksLogsResourceGetGetParams) WithTimeout ¶
func (o *SmartlocksLogsResourceGetGetParams) WithTimeout(timeout time.Duration) *SmartlocksLogsResourceGetGetParams
WithTimeout adds the timeout to the smartlocks logs resource get get params
func (*SmartlocksLogsResourceGetGetParams) WithToDate ¶
func (o *SmartlocksLogsResourceGetGetParams) WithToDate(toDate *string) *SmartlocksLogsResourceGetGetParams
WithToDate adds the toDate to the smartlocks logs resource get get params
func (*SmartlocksLogsResourceGetGetParams) WriteToRequest ¶
func (o *SmartlocksLogsResourceGetGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type SmartlocksLogsResourceGetGetReader ¶
type SmartlocksLogsResourceGetGetReader struct {
// contains filtered or unexported fields
}
SmartlocksLogsResourceGetGetReader is a Reader for the SmartlocksLogsResourceGetGet structure.
func (*SmartlocksLogsResourceGetGetReader) ReadResponse ¶
func (o *SmartlocksLogsResourceGetGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type SmartlocksLogsResourceGetGetUnauthorized ¶
type SmartlocksLogsResourceGetGetUnauthorized struct { }
SmartlocksLogsResourceGetGetUnauthorized describes a response with status code 401, with default header values.
Not authorized
func NewSmartlocksLogsResourceGetGetUnauthorized ¶
func NewSmartlocksLogsResourceGetGetUnauthorized() *SmartlocksLogsResourceGetGetUnauthorized
NewSmartlocksLogsResourceGetGetUnauthorized creates a SmartlocksLogsResourceGetGetUnauthorized with default headers values
func (*SmartlocksLogsResourceGetGetUnauthorized) Code ¶
func (o *SmartlocksLogsResourceGetGetUnauthorized) Code() int
Code gets the status code for the smartlocks logs resource get get unauthorized response
func (*SmartlocksLogsResourceGetGetUnauthorized) Error ¶
func (o *SmartlocksLogsResourceGetGetUnauthorized) Error() string
func (*SmartlocksLogsResourceGetGetUnauthorized) IsClientError ¶
func (o *SmartlocksLogsResourceGetGetUnauthorized) IsClientError() bool
IsClientError returns true when this smartlocks logs resource get get unauthorized response has a 4xx status code
func (*SmartlocksLogsResourceGetGetUnauthorized) IsCode ¶
func (o *SmartlocksLogsResourceGetGetUnauthorized) IsCode(code int) bool
IsCode returns true when this smartlocks logs resource get get unauthorized response a status code equal to that given
func (*SmartlocksLogsResourceGetGetUnauthorized) IsRedirect ¶
func (o *SmartlocksLogsResourceGetGetUnauthorized) IsRedirect() bool
IsRedirect returns true when this smartlocks logs resource get get unauthorized response has a 3xx status code
func (*SmartlocksLogsResourceGetGetUnauthorized) IsServerError ¶
func (o *SmartlocksLogsResourceGetGetUnauthorized) IsServerError() bool
IsServerError returns true when this smartlocks logs resource get get unauthorized response has a 5xx status code
func (*SmartlocksLogsResourceGetGetUnauthorized) IsSuccess ¶
func (o *SmartlocksLogsResourceGetGetUnauthorized) IsSuccess() bool
IsSuccess returns true when this smartlocks logs resource get get unauthorized response has a 2xx status code
func (*SmartlocksLogsResourceGetGetUnauthorized) String ¶
func (o *SmartlocksLogsResourceGetGetUnauthorized) String() string