device_content

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2025 License: MIT 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 device content API

func (*Client) EntitiesStatesV1

func (a *Client) EntitiesStatesV1(params *EntitiesStatesV1Params, opts ...ClientOption) (*EntitiesStatesV1OK, error)

EntitiesStatesV1 retrieves the host content state for a number of ids between 1 and 100

func (*Client) QueriesStatesV1

func (a *Client) QueriesStatesV1(params *QueriesStatesV1Params, opts ...ClientOption) (*QueriesStatesV1OK, error)

QueriesStatesV1 queries for the content state of the host

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 is the option for Client methods

type ClientService

type ClientService interface {
	EntitiesStatesV1(params *EntitiesStatesV1Params, opts ...ClientOption) (*EntitiesStatesV1OK, error)

	QueriesStatesV1(params *QueriesStatesV1Params, opts ...ClientOption) (*QueriesStatesV1OK, 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 device content API client.

type EntitiesStatesV1Forbidden

type EntitiesStatesV1Forbidden struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaReplyMetaOnly
}

EntitiesStatesV1Forbidden describes a response with status code 403, with default header values.

Forbidden

func NewEntitiesStatesV1Forbidden

func NewEntitiesStatesV1Forbidden() *EntitiesStatesV1Forbidden

NewEntitiesStatesV1Forbidden creates a EntitiesStatesV1Forbidden with default headers values

func (*EntitiesStatesV1Forbidden) Code

func (o *EntitiesStatesV1Forbidden) Code() int

Code gets the status code for the entities states v1 forbidden response

func (*EntitiesStatesV1Forbidden) Error

func (o *EntitiesStatesV1Forbidden) Error() string

func (*EntitiesStatesV1Forbidden) GetPayload

func (*EntitiesStatesV1Forbidden) IsClientError

func (o *EntitiesStatesV1Forbidden) IsClientError() bool

IsClientError returns true when this entities states v1 forbidden response has a 4xx status code

func (*EntitiesStatesV1Forbidden) IsCode

func (o *EntitiesStatesV1Forbidden) IsCode(code int) bool

IsCode returns true when this entities states v1 forbidden response a status code equal to that given

func (*EntitiesStatesV1Forbidden) IsRedirect

func (o *EntitiesStatesV1Forbidden) IsRedirect() bool

IsRedirect returns true when this entities states v1 forbidden response has a 3xx status code

func (*EntitiesStatesV1Forbidden) IsServerError

func (o *EntitiesStatesV1Forbidden) IsServerError() bool

IsServerError returns true when this entities states v1 forbidden response has a 5xx status code

func (*EntitiesStatesV1Forbidden) IsSuccess

func (o *EntitiesStatesV1Forbidden) IsSuccess() bool

IsSuccess returns true when this entities states v1 forbidden response has a 2xx status code

func (*EntitiesStatesV1Forbidden) String

func (o *EntitiesStatesV1Forbidden) String() string

type EntitiesStatesV1InternalServerError

type EntitiesStatesV1InternalServerError struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaReplyMetaOnly
}

EntitiesStatesV1InternalServerError describes a response with status code 500, with default header values.

Unexpected Error

func NewEntitiesStatesV1InternalServerError

func NewEntitiesStatesV1InternalServerError() *EntitiesStatesV1InternalServerError

NewEntitiesStatesV1InternalServerError creates a EntitiesStatesV1InternalServerError with default headers values

func (*EntitiesStatesV1InternalServerError) Code

Code gets the status code for the entities states v1 internal server error response

func (*EntitiesStatesV1InternalServerError) Error

func (*EntitiesStatesV1InternalServerError) GetPayload

func (*EntitiesStatesV1InternalServerError) IsClientError

func (o *EntitiesStatesV1InternalServerError) IsClientError() bool

IsClientError returns true when this entities states v1 internal server error response has a 4xx status code

func (*EntitiesStatesV1InternalServerError) IsCode

IsCode returns true when this entities states v1 internal server error response a status code equal to that given

func (*EntitiesStatesV1InternalServerError) IsRedirect

func (o *EntitiesStatesV1InternalServerError) IsRedirect() bool

IsRedirect returns true when this entities states v1 internal server error response has a 3xx status code

func (*EntitiesStatesV1InternalServerError) IsServerError

func (o *EntitiesStatesV1InternalServerError) IsServerError() bool

IsServerError returns true when this entities states v1 internal server error response has a 5xx status code

func (*EntitiesStatesV1InternalServerError) IsSuccess

IsSuccess returns true when this entities states v1 internal server error response has a 2xx status code

func (*EntitiesStatesV1InternalServerError) String

type EntitiesStatesV1OK

type EntitiesStatesV1OK struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.DevicecontentapiEntitiesResponseV1
}

EntitiesStatesV1OK describes a response with status code 200, with default header values.

OK

func NewEntitiesStatesV1OK

func NewEntitiesStatesV1OK() *EntitiesStatesV1OK

NewEntitiesStatesV1OK creates a EntitiesStatesV1OK with default headers values

func (*EntitiesStatesV1OK) Code

func (o *EntitiesStatesV1OK) Code() int

Code gets the status code for the entities states v1 o k response

func (*EntitiesStatesV1OK) Error

func (o *EntitiesStatesV1OK) Error() string

func (*EntitiesStatesV1OK) GetPayload

func (*EntitiesStatesV1OK) IsClientError

func (o *EntitiesStatesV1OK) IsClientError() bool

IsClientError returns true when this entities states v1 o k response has a 4xx status code

func (*EntitiesStatesV1OK) IsCode

func (o *EntitiesStatesV1OK) IsCode(code int) bool

IsCode returns true when this entities states v1 o k response a status code equal to that given

func (*EntitiesStatesV1OK) IsRedirect

func (o *EntitiesStatesV1OK) IsRedirect() bool

IsRedirect returns true when this entities states v1 o k response has a 3xx status code

func (*EntitiesStatesV1OK) IsServerError

func (o *EntitiesStatesV1OK) IsServerError() bool

IsServerError returns true when this entities states v1 o k response has a 5xx status code

func (*EntitiesStatesV1OK) IsSuccess

func (o *EntitiesStatesV1OK) IsSuccess() bool

IsSuccess returns true when this entities states v1 o k response has a 2xx status code

func (*EntitiesStatesV1OK) String

func (o *EntitiesStatesV1OK) String() string

type EntitiesStatesV1Params

type EntitiesStatesV1Params struct {

	/* Ids.

	   The ids of the devices to fetch the content state of.
	*/
	Ids []string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

EntitiesStatesV1Params contains all the parameters to send to the API endpoint

for the entities states v1 operation.

Typically these are written to a http.Request.

func NewEntitiesStatesV1Params

func NewEntitiesStatesV1Params() *EntitiesStatesV1Params

NewEntitiesStatesV1Params creates a new EntitiesStatesV1Params 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 NewEntitiesStatesV1ParamsWithContext

func NewEntitiesStatesV1ParamsWithContext(ctx context.Context) *EntitiesStatesV1Params

NewEntitiesStatesV1ParamsWithContext creates a new EntitiesStatesV1Params object with the ability to set a context for a request.

func NewEntitiesStatesV1ParamsWithHTTPClient

func NewEntitiesStatesV1ParamsWithHTTPClient(client *http.Client) *EntitiesStatesV1Params

NewEntitiesStatesV1ParamsWithHTTPClient creates a new EntitiesStatesV1Params object with the ability to set a custom HTTPClient for a request.

func NewEntitiesStatesV1ParamsWithTimeout

func NewEntitiesStatesV1ParamsWithTimeout(timeout time.Duration) *EntitiesStatesV1Params

NewEntitiesStatesV1ParamsWithTimeout creates a new EntitiesStatesV1Params object with the ability to set a timeout on a request.

func (*EntitiesStatesV1Params) SetContext

func (o *EntitiesStatesV1Params) SetContext(ctx context.Context)

SetContext adds the context to the entities states v1 params

func (*EntitiesStatesV1Params) SetDefaults

func (o *EntitiesStatesV1Params) SetDefaults()

SetDefaults hydrates default values in the entities states v1 params (not the query body).

All values with no default are reset to their zero value.

func (*EntitiesStatesV1Params) SetHTTPClient

func (o *EntitiesStatesV1Params) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the entities states v1 params

func (*EntitiesStatesV1Params) SetIds

func (o *EntitiesStatesV1Params) SetIds(ids []string)

SetIds adds the ids to the entities states v1 params

func (*EntitiesStatesV1Params) SetTimeout

func (o *EntitiesStatesV1Params) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the entities states v1 params

func (*EntitiesStatesV1Params) WithContext

WithContext adds the context to the entities states v1 params

func (*EntitiesStatesV1Params) WithDefaults

WithDefaults hydrates default values in the entities states v1 params (not the query body).

All values with no default are reset to their zero value.

func (*EntitiesStatesV1Params) WithHTTPClient

func (o *EntitiesStatesV1Params) WithHTTPClient(client *http.Client) *EntitiesStatesV1Params

WithHTTPClient adds the HTTPClient to the entities states v1 params

func (*EntitiesStatesV1Params) WithIds

WithIds adds the ids to the entities states v1 params

func (*EntitiesStatesV1Params) WithTimeout

WithTimeout adds the timeout to the entities states v1 params

func (*EntitiesStatesV1Params) WriteToRequest

WriteToRequest writes these params to a swagger request

type EntitiesStatesV1Reader

type EntitiesStatesV1Reader struct {
	// contains filtered or unexported fields
}

EntitiesStatesV1Reader is a Reader for the EntitiesStatesV1 structure.

func (*EntitiesStatesV1Reader) ReadResponse

func (o *EntitiesStatesV1Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type EntitiesStatesV1TooManyRequests

type EntitiesStatesV1TooManyRequests struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	/* Too many requests, retry after this time (as milliseconds since epoch)
	 */
	XRateLimitRetryAfter int64

	Payload *models.MsaReplyMetaOnly
}

EntitiesStatesV1TooManyRequests describes a response with status code 429, with default header values.

Too Many Requests

func NewEntitiesStatesV1TooManyRequests

func NewEntitiesStatesV1TooManyRequests() *EntitiesStatesV1TooManyRequests

NewEntitiesStatesV1TooManyRequests creates a EntitiesStatesV1TooManyRequests with default headers values

func (*EntitiesStatesV1TooManyRequests) Code

Code gets the status code for the entities states v1 too many requests response

func (*EntitiesStatesV1TooManyRequests) Error

func (*EntitiesStatesV1TooManyRequests) GetPayload

func (*EntitiesStatesV1TooManyRequests) IsClientError

func (o *EntitiesStatesV1TooManyRequests) IsClientError() bool

IsClientError returns true when this entities states v1 too many requests response has a 4xx status code

func (*EntitiesStatesV1TooManyRequests) IsCode

func (o *EntitiesStatesV1TooManyRequests) IsCode(code int) bool

IsCode returns true when this entities states v1 too many requests response a status code equal to that given

func (*EntitiesStatesV1TooManyRequests) IsRedirect

func (o *EntitiesStatesV1TooManyRequests) IsRedirect() bool

IsRedirect returns true when this entities states v1 too many requests response has a 3xx status code

func (*EntitiesStatesV1TooManyRequests) IsServerError

func (o *EntitiesStatesV1TooManyRequests) IsServerError() bool

IsServerError returns true when this entities states v1 too many requests response has a 5xx status code

func (*EntitiesStatesV1TooManyRequests) IsSuccess

func (o *EntitiesStatesV1TooManyRequests) IsSuccess() bool

IsSuccess returns true when this entities states v1 too many requests response has a 2xx status code

func (*EntitiesStatesV1TooManyRequests) String

type QueriesStatesV1Forbidden

type QueriesStatesV1Forbidden struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaReplyMetaOnly
}

QueriesStatesV1Forbidden describes a response with status code 403, with default header values.

Forbidden

func NewQueriesStatesV1Forbidden

func NewQueriesStatesV1Forbidden() *QueriesStatesV1Forbidden

NewQueriesStatesV1Forbidden creates a QueriesStatesV1Forbidden with default headers values

func (*QueriesStatesV1Forbidden) Code

func (o *QueriesStatesV1Forbidden) Code() int

Code gets the status code for the queries states v1 forbidden response

func (*QueriesStatesV1Forbidden) Error

func (o *QueriesStatesV1Forbidden) Error() string

func (*QueriesStatesV1Forbidden) GetPayload

func (*QueriesStatesV1Forbidden) IsClientError

func (o *QueriesStatesV1Forbidden) IsClientError() bool

IsClientError returns true when this queries states v1 forbidden response has a 4xx status code

func (*QueriesStatesV1Forbidden) IsCode

func (o *QueriesStatesV1Forbidden) IsCode(code int) bool

IsCode returns true when this queries states v1 forbidden response a status code equal to that given

func (*QueriesStatesV1Forbidden) IsRedirect

func (o *QueriesStatesV1Forbidden) IsRedirect() bool

IsRedirect returns true when this queries states v1 forbidden response has a 3xx status code

func (*QueriesStatesV1Forbidden) IsServerError

func (o *QueriesStatesV1Forbidden) IsServerError() bool

IsServerError returns true when this queries states v1 forbidden response has a 5xx status code

func (*QueriesStatesV1Forbidden) IsSuccess

func (o *QueriesStatesV1Forbidden) IsSuccess() bool

IsSuccess returns true when this queries states v1 forbidden response has a 2xx status code

func (*QueriesStatesV1Forbidden) String

func (o *QueriesStatesV1Forbidden) String() string

type QueriesStatesV1InternalServerError

type QueriesStatesV1InternalServerError struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaReplyMetaOnly
}

QueriesStatesV1InternalServerError describes a response with status code 500, with default header values.

Unexpected Error

func NewQueriesStatesV1InternalServerError

func NewQueriesStatesV1InternalServerError() *QueriesStatesV1InternalServerError

NewQueriesStatesV1InternalServerError creates a QueriesStatesV1InternalServerError with default headers values

func (*QueriesStatesV1InternalServerError) Code

Code gets the status code for the queries states v1 internal server error response

func (*QueriesStatesV1InternalServerError) Error

func (*QueriesStatesV1InternalServerError) GetPayload

func (*QueriesStatesV1InternalServerError) IsClientError

func (o *QueriesStatesV1InternalServerError) IsClientError() bool

IsClientError returns true when this queries states v1 internal server error response has a 4xx status code

func (*QueriesStatesV1InternalServerError) IsCode

IsCode returns true when this queries states v1 internal server error response a status code equal to that given

func (*QueriesStatesV1InternalServerError) IsRedirect

func (o *QueriesStatesV1InternalServerError) IsRedirect() bool

IsRedirect returns true when this queries states v1 internal server error response has a 3xx status code

func (*QueriesStatesV1InternalServerError) IsServerError

func (o *QueriesStatesV1InternalServerError) IsServerError() bool

IsServerError returns true when this queries states v1 internal server error response has a 5xx status code

func (*QueriesStatesV1InternalServerError) IsSuccess

IsSuccess returns true when this queries states v1 internal server error response has a 2xx status code

func (*QueriesStatesV1InternalServerError) String

type QueriesStatesV1OK

type QueriesStatesV1OK struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.DevicecontentapiQueryResponseV1
}

QueriesStatesV1OK describes a response with status code 200, with default header values.

OK

func NewQueriesStatesV1OK

func NewQueriesStatesV1OK() *QueriesStatesV1OK

NewQueriesStatesV1OK creates a QueriesStatesV1OK with default headers values

func (*QueriesStatesV1OK) Code

func (o *QueriesStatesV1OK) Code() int

Code gets the status code for the queries states v1 o k response

func (*QueriesStatesV1OK) Error

func (o *QueriesStatesV1OK) Error() string

func (*QueriesStatesV1OK) GetPayload

func (*QueriesStatesV1OK) IsClientError

func (o *QueriesStatesV1OK) IsClientError() bool

IsClientError returns true when this queries states v1 o k response has a 4xx status code

func (*QueriesStatesV1OK) IsCode

func (o *QueriesStatesV1OK) IsCode(code int) bool

IsCode returns true when this queries states v1 o k response a status code equal to that given

func (*QueriesStatesV1OK) IsRedirect

func (o *QueriesStatesV1OK) IsRedirect() bool

IsRedirect returns true when this queries states v1 o k response has a 3xx status code

func (*QueriesStatesV1OK) IsServerError

func (o *QueriesStatesV1OK) IsServerError() bool

IsServerError returns true when this queries states v1 o k response has a 5xx status code

func (*QueriesStatesV1OK) IsSuccess

func (o *QueriesStatesV1OK) IsSuccess() bool

IsSuccess returns true when this queries states v1 o k response has a 2xx status code

func (*QueriesStatesV1OK) String

func (o *QueriesStatesV1OK) String() string

type QueriesStatesV1Params

type QueriesStatesV1Params struct {

	/* Filter.

	   The FQL search filter
	*/
	Filter *string

	/* Limit.

	   The max number of resource ids to return.

	   Default: 100
	*/
	Limit *int64

	/* Offset.

	     The offset token returned from the previous query.
	If none was returned, there are no more pages to the result set.
	*/
	Offset *int64

	/* Sort.

	   What field to sort the results on.

	   Default: "last_seen.desc"
	*/
	Sort *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

QueriesStatesV1Params contains all the parameters to send to the API endpoint

for the queries states v1 operation.

Typically these are written to a http.Request.

func NewQueriesStatesV1Params

func NewQueriesStatesV1Params() *QueriesStatesV1Params

NewQueriesStatesV1Params creates a new QueriesStatesV1Params 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 NewQueriesStatesV1ParamsWithContext

func NewQueriesStatesV1ParamsWithContext(ctx context.Context) *QueriesStatesV1Params

NewQueriesStatesV1ParamsWithContext creates a new QueriesStatesV1Params object with the ability to set a context for a request.

func NewQueriesStatesV1ParamsWithHTTPClient

func NewQueriesStatesV1ParamsWithHTTPClient(client *http.Client) *QueriesStatesV1Params

NewQueriesStatesV1ParamsWithHTTPClient creates a new QueriesStatesV1Params object with the ability to set a custom HTTPClient for a request.

func NewQueriesStatesV1ParamsWithTimeout

func NewQueriesStatesV1ParamsWithTimeout(timeout time.Duration) *QueriesStatesV1Params

NewQueriesStatesV1ParamsWithTimeout creates a new QueriesStatesV1Params object with the ability to set a timeout on a request.

func (*QueriesStatesV1Params) SetContext

func (o *QueriesStatesV1Params) SetContext(ctx context.Context)

SetContext adds the context to the queries states v1 params

func (*QueriesStatesV1Params) SetDefaults

func (o *QueriesStatesV1Params) SetDefaults()

SetDefaults hydrates default values in the queries states v1 params (not the query body).

All values with no default are reset to their zero value.

func (*QueriesStatesV1Params) SetFilter

func (o *QueriesStatesV1Params) SetFilter(filter *string)

SetFilter adds the filter to the queries states v1 params

func (*QueriesStatesV1Params) SetHTTPClient

func (o *QueriesStatesV1Params) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the queries states v1 params

func (*QueriesStatesV1Params) SetLimit

func (o *QueriesStatesV1Params) SetLimit(limit *int64)

SetLimit adds the limit to the queries states v1 params

func (*QueriesStatesV1Params) SetOffset

func (o *QueriesStatesV1Params) SetOffset(offset *int64)

SetOffset adds the offset to the queries states v1 params

func (*QueriesStatesV1Params) SetSort

func (o *QueriesStatesV1Params) SetSort(sort *string)

SetSort adds the sort to the queries states v1 params

func (*QueriesStatesV1Params) SetTimeout

func (o *QueriesStatesV1Params) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the queries states v1 params

func (*QueriesStatesV1Params) WithContext

WithContext adds the context to the queries states v1 params

func (*QueriesStatesV1Params) WithDefaults

func (o *QueriesStatesV1Params) WithDefaults() *QueriesStatesV1Params

WithDefaults hydrates default values in the queries states v1 params (not the query body).

All values with no default are reset to their zero value.

func (*QueriesStatesV1Params) WithFilter

func (o *QueriesStatesV1Params) WithFilter(filter *string) *QueriesStatesV1Params

WithFilter adds the filter to the queries states v1 params

func (*QueriesStatesV1Params) WithHTTPClient

func (o *QueriesStatesV1Params) WithHTTPClient(client *http.Client) *QueriesStatesV1Params

WithHTTPClient adds the HTTPClient to the queries states v1 params

func (*QueriesStatesV1Params) WithLimit

func (o *QueriesStatesV1Params) WithLimit(limit *int64) *QueriesStatesV1Params

WithLimit adds the limit to the queries states v1 params

func (*QueriesStatesV1Params) WithOffset

func (o *QueriesStatesV1Params) WithOffset(offset *int64) *QueriesStatesV1Params

WithOffset adds the offset to the queries states v1 params

func (*QueriesStatesV1Params) WithSort

WithSort adds the sort to the queries states v1 params

func (*QueriesStatesV1Params) WithTimeout

func (o *QueriesStatesV1Params) WithTimeout(timeout time.Duration) *QueriesStatesV1Params

WithTimeout adds the timeout to the queries states v1 params

func (*QueriesStatesV1Params) WriteToRequest

func (o *QueriesStatesV1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type QueriesStatesV1Reader

type QueriesStatesV1Reader struct {
	// contains filtered or unexported fields
}

QueriesStatesV1Reader is a Reader for the QueriesStatesV1 structure.

func (*QueriesStatesV1Reader) ReadResponse

func (o *QueriesStatesV1Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type QueriesStatesV1TooManyRequests

type QueriesStatesV1TooManyRequests struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	/* Too many requests, retry after this time (as milliseconds since epoch)
	 */
	XRateLimitRetryAfter int64

	Payload *models.MsaReplyMetaOnly
}

QueriesStatesV1TooManyRequests describes a response with status code 429, with default header values.

Too Many Requests

func NewQueriesStatesV1TooManyRequests

func NewQueriesStatesV1TooManyRequests() *QueriesStatesV1TooManyRequests

NewQueriesStatesV1TooManyRequests creates a QueriesStatesV1TooManyRequests with default headers values

func (*QueriesStatesV1TooManyRequests) Code

Code gets the status code for the queries states v1 too many requests response

func (*QueriesStatesV1TooManyRequests) Error

func (*QueriesStatesV1TooManyRequests) GetPayload

func (*QueriesStatesV1TooManyRequests) IsClientError

func (o *QueriesStatesV1TooManyRequests) IsClientError() bool

IsClientError returns true when this queries states v1 too many requests response has a 4xx status code

func (*QueriesStatesV1TooManyRequests) IsCode

func (o *QueriesStatesV1TooManyRequests) IsCode(code int) bool

IsCode returns true when this queries states v1 too many requests response a status code equal to that given

func (*QueriesStatesV1TooManyRequests) IsRedirect

func (o *QueriesStatesV1TooManyRequests) IsRedirect() bool

IsRedirect returns true when this queries states v1 too many requests response has a 3xx status code

func (*QueriesStatesV1TooManyRequests) IsServerError

func (o *QueriesStatesV1TooManyRequests) IsServerError() bool

IsServerError returns true when this queries states v1 too many requests response has a 5xx status code

func (*QueriesStatesV1TooManyRequests) IsSuccess

func (o *QueriesStatesV1TooManyRequests) IsSuccess() bool

IsSuccess returns true when this queries states v1 too many requests response has a 2xx status code

func (*QueriesStatesV1TooManyRequests) String

Jump to

Keyboard shortcuts

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