event_streams

package
v0.2.12 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2021 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 event streams API

func (*Client) ListAvailableStreamsOAuth2

func (a *Client) ListAvailableStreamsOAuth2(params *ListAvailableStreamsOAuth2Params, opts ...ClientOption) (*ListAvailableStreamsOAuth2OK, error)

ListAvailableStreamsOAuth2 discovers all event streams in your environment

func (*Client) RefreshActiveStreamSession

func (a *Client) RefreshActiveStreamSession(params *RefreshActiveStreamSessionParams, opts ...ClientOption) (*RefreshActiveStreamSessionOK, error)

RefreshActiveStreamSession refreshes an active event stream use the URL shown in a g e t sensors entities datafeed v2 response

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 {
	ListAvailableStreamsOAuth2(params *ListAvailableStreamsOAuth2Params, opts ...ClientOption) (*ListAvailableStreamsOAuth2OK, error)

	RefreshActiveStreamSession(params *RefreshActiveStreamSessionParams, opts ...ClientOption) (*RefreshActiveStreamSessionOK, 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 event streams API client.

type ListAvailableStreamsOAuth2BadRequest

type ListAvailableStreamsOAuth2BadRequest struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

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

	Payload *models.MainDiscoveryResponseV2
}
ListAvailableStreamsOAuth2BadRequest describes a response with status code 400, with default header values.

Bad Request

func NewListAvailableStreamsOAuth2BadRequest

func NewListAvailableStreamsOAuth2BadRequest() *ListAvailableStreamsOAuth2BadRequest

NewListAvailableStreamsOAuth2BadRequest creates a ListAvailableStreamsOAuth2BadRequest with default headers values

func (*ListAvailableStreamsOAuth2BadRequest) Error

func (*ListAvailableStreamsOAuth2BadRequest) GetPayload

type ListAvailableStreamsOAuth2Default

type ListAvailableStreamsOAuth2Default struct {
	Payload *models.MainDiscoveryResponseV2
	// contains filtered or unexported fields
}
ListAvailableStreamsOAuth2Default describes a response with status code -1, with default header values.

OK

func NewListAvailableStreamsOAuth2Default

func NewListAvailableStreamsOAuth2Default(code int) *ListAvailableStreamsOAuth2Default

NewListAvailableStreamsOAuth2Default creates a ListAvailableStreamsOAuth2Default with default headers values

func (*ListAvailableStreamsOAuth2Default) Code

Code gets the status code for the list available streams o auth2 default response

func (*ListAvailableStreamsOAuth2Default) Error

func (*ListAvailableStreamsOAuth2Default) GetPayload

type ListAvailableStreamsOAuth2Forbidden

type ListAvailableStreamsOAuth2Forbidden struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

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

	Payload *models.MsaReplyMetaOnly
}
ListAvailableStreamsOAuth2Forbidden describes a response with status code 403, with default header values.

Forbidden

func NewListAvailableStreamsOAuth2Forbidden

func NewListAvailableStreamsOAuth2Forbidden() *ListAvailableStreamsOAuth2Forbidden

NewListAvailableStreamsOAuth2Forbidden creates a ListAvailableStreamsOAuth2Forbidden with default headers values

func (*ListAvailableStreamsOAuth2Forbidden) Error

func (*ListAvailableStreamsOAuth2Forbidden) GetPayload

type ListAvailableStreamsOAuth2InternalServerError

type ListAvailableStreamsOAuth2InternalServerError struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

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

	Payload *models.MainDiscoveryResponseV2
}
ListAvailableStreamsOAuth2InternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewListAvailableStreamsOAuth2InternalServerError

func NewListAvailableStreamsOAuth2InternalServerError() *ListAvailableStreamsOAuth2InternalServerError

NewListAvailableStreamsOAuth2InternalServerError creates a ListAvailableStreamsOAuth2InternalServerError with default headers values

func (*ListAvailableStreamsOAuth2InternalServerError) Error

func (*ListAvailableStreamsOAuth2InternalServerError) GetPayload

type ListAvailableStreamsOAuth2OK

type ListAvailableStreamsOAuth2OK struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

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

	Payload *models.MainDiscoveryResponseV2
}
ListAvailableStreamsOAuth2OK describes a response with status code 200, with default header values.

OK

func NewListAvailableStreamsOAuth2OK

func NewListAvailableStreamsOAuth2OK() *ListAvailableStreamsOAuth2OK

NewListAvailableStreamsOAuth2OK creates a ListAvailableStreamsOAuth2OK with default headers values

func (*ListAvailableStreamsOAuth2OK) Error

func (*ListAvailableStreamsOAuth2OK) GetPayload

type ListAvailableStreamsOAuth2Params

type ListAvailableStreamsOAuth2Params struct {

	/* AppID.

	   Label that identifies your connection. Max: 32 alphanumeric characters (a-z, A-Z, 0-9).
	*/
	AppID string

	/* Format.

	   Format for streaming events. Valid values: json, flatjson
	*/
	Format *string

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

ListAvailableStreamsOAuth2Params contains all the parameters to send to the API endpoint

for the list available streams o auth2 operation.

Typically these are written to a http.Request.

func NewListAvailableStreamsOAuth2Params

func NewListAvailableStreamsOAuth2Params() *ListAvailableStreamsOAuth2Params

NewListAvailableStreamsOAuth2Params creates a new ListAvailableStreamsOAuth2Params 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 NewListAvailableStreamsOAuth2ParamsWithContext

func NewListAvailableStreamsOAuth2ParamsWithContext(ctx context.Context) *ListAvailableStreamsOAuth2Params

NewListAvailableStreamsOAuth2ParamsWithContext creates a new ListAvailableStreamsOAuth2Params object with the ability to set a context for a request.

func NewListAvailableStreamsOAuth2ParamsWithHTTPClient

func NewListAvailableStreamsOAuth2ParamsWithHTTPClient(client *http.Client) *ListAvailableStreamsOAuth2Params

NewListAvailableStreamsOAuth2ParamsWithHTTPClient creates a new ListAvailableStreamsOAuth2Params object with the ability to set a custom HTTPClient for a request.

func NewListAvailableStreamsOAuth2ParamsWithTimeout

func NewListAvailableStreamsOAuth2ParamsWithTimeout(timeout time.Duration) *ListAvailableStreamsOAuth2Params

NewListAvailableStreamsOAuth2ParamsWithTimeout creates a new ListAvailableStreamsOAuth2Params object with the ability to set a timeout on a request.

func (*ListAvailableStreamsOAuth2Params) SetAppID

func (o *ListAvailableStreamsOAuth2Params) SetAppID(appID string)

SetAppID adds the appId to the list available streams o auth2 params

func (*ListAvailableStreamsOAuth2Params) SetContext

SetContext adds the context to the list available streams o auth2 params

func (*ListAvailableStreamsOAuth2Params) SetDefaults

func (o *ListAvailableStreamsOAuth2Params) SetDefaults()

SetDefaults hydrates default values in the list available streams o auth2 params (not the query body).

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

func (*ListAvailableStreamsOAuth2Params) SetFormat

func (o *ListAvailableStreamsOAuth2Params) SetFormat(format *string)

SetFormat adds the format to the list available streams o auth2 params

func (*ListAvailableStreamsOAuth2Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list available streams o auth2 params

func (*ListAvailableStreamsOAuth2Params) SetTimeout

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

SetTimeout adds the timeout to the list available streams o auth2 params

func (*ListAvailableStreamsOAuth2Params) WithAppID

WithAppID adds the appID to the list available streams o auth2 params

func (*ListAvailableStreamsOAuth2Params) WithContext

WithContext adds the context to the list available streams o auth2 params

func (*ListAvailableStreamsOAuth2Params) WithDefaults

WithDefaults hydrates default values in the list available streams o auth2 params (not the query body).

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

func (*ListAvailableStreamsOAuth2Params) WithFormat

WithFormat adds the format to the list available streams o auth2 params

func (*ListAvailableStreamsOAuth2Params) WithHTTPClient

WithHTTPClient adds the HTTPClient to the list available streams o auth2 params

func (*ListAvailableStreamsOAuth2Params) WithTimeout

WithTimeout adds the timeout to the list available streams o auth2 params

func (*ListAvailableStreamsOAuth2Params) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListAvailableStreamsOAuth2Reader

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

ListAvailableStreamsOAuth2Reader is a Reader for the ListAvailableStreamsOAuth2 structure.

func (*ListAvailableStreamsOAuth2Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListAvailableStreamsOAuth2TooManyRequests

type ListAvailableStreamsOAuth2TooManyRequests struct {

	/* 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
}
ListAvailableStreamsOAuth2TooManyRequests describes a response with status code 429, with default header values.

Too Many Requests

func NewListAvailableStreamsOAuth2TooManyRequests

func NewListAvailableStreamsOAuth2TooManyRequests() *ListAvailableStreamsOAuth2TooManyRequests

NewListAvailableStreamsOAuth2TooManyRequests creates a ListAvailableStreamsOAuth2TooManyRequests with default headers values

func (*ListAvailableStreamsOAuth2TooManyRequests) Error

func (*ListAvailableStreamsOAuth2TooManyRequests) GetPayload

type RefreshActiveStreamSessionBadRequest

type RefreshActiveStreamSessionBadRequest struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

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

	Payload *models.MsaReplyMetaOnly
}
RefreshActiveStreamSessionBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewRefreshActiveStreamSessionBadRequest

func NewRefreshActiveStreamSessionBadRequest() *RefreshActiveStreamSessionBadRequest

NewRefreshActiveStreamSessionBadRequest creates a RefreshActiveStreamSessionBadRequest with default headers values

func (*RefreshActiveStreamSessionBadRequest) Error

func (*RefreshActiveStreamSessionBadRequest) GetPayload

type RefreshActiveStreamSessionDefault

type RefreshActiveStreamSessionDefault struct {
	Payload *models.MsaReplyMetaOnly
	// contains filtered or unexported fields
}
RefreshActiveStreamSessionDefault describes a response with status code -1, with default header values.

OK

func NewRefreshActiveStreamSessionDefault

func NewRefreshActiveStreamSessionDefault(code int) *RefreshActiveStreamSessionDefault

NewRefreshActiveStreamSessionDefault creates a RefreshActiveStreamSessionDefault with default headers values

func (*RefreshActiveStreamSessionDefault) Code

Code gets the status code for the refresh active stream session default response

func (*RefreshActiveStreamSessionDefault) Error

func (*RefreshActiveStreamSessionDefault) GetPayload

type RefreshActiveStreamSessionForbidden

type RefreshActiveStreamSessionForbidden struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

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

	Payload *models.MsaReplyMetaOnly
}
RefreshActiveStreamSessionForbidden describes a response with status code 403, with default header values.

Forbidden

func NewRefreshActiveStreamSessionForbidden

func NewRefreshActiveStreamSessionForbidden() *RefreshActiveStreamSessionForbidden

NewRefreshActiveStreamSessionForbidden creates a RefreshActiveStreamSessionForbidden with default headers values

func (*RefreshActiveStreamSessionForbidden) Error

func (*RefreshActiveStreamSessionForbidden) GetPayload

type RefreshActiveStreamSessionInternalServerError

type RefreshActiveStreamSessionInternalServerError struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

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

	Payload *models.MsaReplyMetaOnly
}
RefreshActiveStreamSessionInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewRefreshActiveStreamSessionInternalServerError

func NewRefreshActiveStreamSessionInternalServerError() *RefreshActiveStreamSessionInternalServerError

NewRefreshActiveStreamSessionInternalServerError creates a RefreshActiveStreamSessionInternalServerError with default headers values

func (*RefreshActiveStreamSessionInternalServerError) Error

func (*RefreshActiveStreamSessionInternalServerError) GetPayload

type RefreshActiveStreamSessionOK

type RefreshActiveStreamSessionOK struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

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

	Payload *models.MsaReplyMetaOnly
}
RefreshActiveStreamSessionOK describes a response with status code 200, with default header values.

OK

func NewRefreshActiveStreamSessionOK

func NewRefreshActiveStreamSessionOK() *RefreshActiveStreamSessionOK

NewRefreshActiveStreamSessionOK creates a RefreshActiveStreamSessionOK with default headers values

func (*RefreshActiveStreamSessionOK) Error

func (*RefreshActiveStreamSessionOK) GetPayload

type RefreshActiveStreamSessionParams

type RefreshActiveStreamSessionParams struct {

	/* ActionName.

	   Action name. Allowed value is refresh_active_stream_session.
	*/
	ActionName string

	/* AppID.

	   Label that identifies your connection. Max: 32 alphanumeric characters (a-z, A-Z, 0-9).
	*/
	AppID string

	/* Partition.

	   Partition to request data for.
	*/
	Partition int64

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

RefreshActiveStreamSessionParams contains all the parameters to send to the API endpoint

for the refresh active stream session operation.

Typically these are written to a http.Request.

func NewRefreshActiveStreamSessionParams

func NewRefreshActiveStreamSessionParams() *RefreshActiveStreamSessionParams

NewRefreshActiveStreamSessionParams creates a new RefreshActiveStreamSessionParams 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 NewRefreshActiveStreamSessionParamsWithContext

func NewRefreshActiveStreamSessionParamsWithContext(ctx context.Context) *RefreshActiveStreamSessionParams

NewRefreshActiveStreamSessionParamsWithContext creates a new RefreshActiveStreamSessionParams object with the ability to set a context for a request.

func NewRefreshActiveStreamSessionParamsWithHTTPClient

func NewRefreshActiveStreamSessionParamsWithHTTPClient(client *http.Client) *RefreshActiveStreamSessionParams

NewRefreshActiveStreamSessionParamsWithHTTPClient creates a new RefreshActiveStreamSessionParams object with the ability to set a custom HTTPClient for a request.

func NewRefreshActiveStreamSessionParamsWithTimeout

func NewRefreshActiveStreamSessionParamsWithTimeout(timeout time.Duration) *RefreshActiveStreamSessionParams

NewRefreshActiveStreamSessionParamsWithTimeout creates a new RefreshActiveStreamSessionParams object with the ability to set a timeout on a request.

func (*RefreshActiveStreamSessionParams) SetActionName

func (o *RefreshActiveStreamSessionParams) SetActionName(actionName string)

SetActionName adds the actionName to the refresh active stream session params

func (*RefreshActiveStreamSessionParams) SetAppID

func (o *RefreshActiveStreamSessionParams) SetAppID(appID string)

SetAppID adds the appId to the refresh active stream session params

func (*RefreshActiveStreamSessionParams) SetContext

SetContext adds the context to the refresh active stream session params

func (*RefreshActiveStreamSessionParams) SetDefaults

func (o *RefreshActiveStreamSessionParams) SetDefaults()

SetDefaults hydrates default values in the refresh active stream session params (not the query body).

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

func (*RefreshActiveStreamSessionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the refresh active stream session params

func (*RefreshActiveStreamSessionParams) SetPartition

func (o *RefreshActiveStreamSessionParams) SetPartition(partition int64)

SetPartition adds the partition to the refresh active stream session params

func (*RefreshActiveStreamSessionParams) SetTimeout

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

SetTimeout adds the timeout to the refresh active stream session params

func (*RefreshActiveStreamSessionParams) WithActionName

WithActionName adds the actionName to the refresh active stream session params

func (*RefreshActiveStreamSessionParams) WithAppID

WithAppID adds the appID to the refresh active stream session params

func (*RefreshActiveStreamSessionParams) WithContext

WithContext adds the context to the refresh active stream session params

func (*RefreshActiveStreamSessionParams) WithDefaults

WithDefaults hydrates default values in the refresh active stream session params (not the query body).

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

func (*RefreshActiveStreamSessionParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the refresh active stream session params

func (*RefreshActiveStreamSessionParams) WithPartition

WithPartition adds the partition to the refresh active stream session params

func (*RefreshActiveStreamSessionParams) WithTimeout

WithTimeout adds the timeout to the refresh active stream session params

func (*RefreshActiveStreamSessionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type RefreshActiveStreamSessionReader

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

RefreshActiveStreamSessionReader is a Reader for the RefreshActiveStreamSession structure.

func (*RefreshActiveStreamSessionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RefreshActiveStreamSessionTooManyRequests

type RefreshActiveStreamSessionTooManyRequests struct {

	/* 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
}
RefreshActiveStreamSessionTooManyRequests describes a response with status code 429, with default header values.

Too Many Requests

func NewRefreshActiveStreamSessionTooManyRequests

func NewRefreshActiveStreamSessionTooManyRequests() *RefreshActiveStreamSessionTooManyRequests

NewRefreshActiveStreamSessionTooManyRequests creates a RefreshActiveStreamSessionTooManyRequests with default headers values

func (*RefreshActiveStreamSessionTooManyRequests) Error

func (*RefreshActiveStreamSessionTooManyRequests) GetPayload

Jump to

Keyboard shortcuts

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