smartlock_log

package
v0.0.0-...-f9fec28 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 6, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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

Code gets the status code for the smartlock logs resource get get o k response

func (*SmartlockLogsResourceGetGetOK) Error

func (*SmartlockLogsResourceGetGetOK) GetPayload

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

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

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

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

WithAction adds the action to the smartlock logs resource get get params

func (*SmartlockLogsResourceGetGetParams) WithAuthID

WithAuthID adds the authID to the smartlock logs resource get get params

func (*SmartlockLogsResourceGetGetParams) WithContext

WithContext adds the context to the smartlock logs resource get get params

func (*SmartlockLogsResourceGetGetParams) WithDefaults

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

WithFromDate adds the fromDate to the smartlock logs resource get get params

func (*SmartlockLogsResourceGetGetParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the smartlock logs resource get get params

func (*SmartlockLogsResourceGetGetParams) WithID

WithID adds the id to the smartlock logs resource get get params

func (*SmartlockLogsResourceGetGetParams) WithLimit

WithLimit adds the limit to the smartlock logs resource get get params

func (*SmartlockLogsResourceGetGetParams) WithSmartlockID

WithSmartlockID adds the smartlockID to the smartlock logs resource get get params

func (*SmartlockLogsResourceGetGetParams) WithTimeout

WithTimeout adds the timeout to the smartlock logs resource get get params

func (*SmartlockLogsResourceGetGetParams) WithToDate

WithToDate adds the toDate to the smartlock logs resource get get params

func (*SmartlockLogsResourceGetGetParams) WriteToRequest

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

Code gets the status code for the smartlock logs resource get get unauthorized response

func (*SmartlockLogsResourceGetGetUnauthorized) Error

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

IsCode returns true when this smartlock logs resource get get unauthorized response a status code equal to that given

func (*SmartlockLogsResourceGetGetUnauthorized) IsRedirect

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

IsSuccess returns true when this smartlock logs resource get get unauthorized response has a 2xx status code

func (*SmartlockLogsResourceGetGetUnauthorized) 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

Code gets the status code for the smartlocks logs resource get get o k response

func (*SmartlocksLogsResourceGetGetOK) Error

func (*SmartlocksLogsResourceGetGetOK) GetPayload

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

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

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

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

WithAction adds the action to the smartlocks logs resource get get params

func (*SmartlocksLogsResourceGetGetParams) WithContext

WithContext adds the context to the smartlocks logs resource get get params

func (*SmartlocksLogsResourceGetGetParams) WithDefaults

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

WithFromDate adds the fromDate to the smartlocks logs resource get get params

func (*SmartlocksLogsResourceGetGetParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the smartlocks logs resource get get params

func (*SmartlocksLogsResourceGetGetParams) WithID

WithID adds the id to the smartlocks logs resource get get params

func (*SmartlocksLogsResourceGetGetParams) WithLimit

WithLimit adds the limit to the smartlocks logs resource get get params

func (*SmartlocksLogsResourceGetGetParams) WithTimeout

WithTimeout adds the timeout to the smartlocks logs resource get get params

func (*SmartlocksLogsResourceGetGetParams) WithToDate

WithToDate adds the toDate to the smartlocks logs resource get get params

func (*SmartlocksLogsResourceGetGetParams) WriteToRequest

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

Code gets the status code for the smartlocks logs resource get get unauthorized response

func (*SmartlocksLogsResourceGetGetUnauthorized) Error

func (*SmartlocksLogsResourceGetGetUnauthorized) IsClientError

IsClientError returns true when this smartlocks logs resource get get unauthorized response has a 4xx status code

func (*SmartlocksLogsResourceGetGetUnauthorized) IsCode

IsCode returns true when this smartlocks logs resource get get unauthorized response a status code equal to that given

func (*SmartlocksLogsResourceGetGetUnauthorized) IsRedirect

IsRedirect returns true when this smartlocks logs resource get get unauthorized response has a 3xx status code

func (*SmartlocksLogsResourceGetGetUnauthorized) IsServerError

IsServerError returns true when this smartlocks logs resource get get unauthorized response has a 5xx status code

func (*SmartlocksLogsResourceGetGetUnauthorized) IsSuccess

IsSuccess returns true when this smartlocks logs resource get get unauthorized response has a 2xx status code

func (*SmartlocksLogsResourceGetGetUnauthorized) String

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL