subscription

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: May 1, 2023 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 subscription API

func (*Client) EventSubscriptionDelete

func (a *Client) EventSubscriptionDelete(params *EventSubscriptionDeleteParams, authInfo runtime.ClientAuthInfoWriter) error

EventSubscriptionDelete bs e t a delete the given subscription

func (*Client) EventSubscriptionGet

func (a *Client) EventSubscriptionGet(params *EventSubscriptionGetParams, authInfo runtime.ClientAuthInfoWriter) (*EventSubscriptionGetOK, error)

EventSubscriptionGet bs e t a get subscription by ID

func (*Client) EventSubscriptionPost

func (a *Client) EventSubscriptionPost(params *EventSubscriptionPostParams, authInfo runtime.ClientAuthInfoWriter) (*EventSubscriptionPostCreated, error)

EventSubscriptionPost bs e t a create a new subscription for current employee token

func (*Client) EventSubscriptionPut

func (a *Client) EventSubscriptionPut(params *EventSubscriptionPutParams, authInfo runtime.ClientAuthInfoWriter) (*EventSubscriptionPutOK, error)

EventSubscriptionPut bs e t a change a current subscription based on id

func (*Client) EventSubscriptionSearch

func (a *Client) EventSubscriptionSearch(params *EventSubscriptionSearchParams, authInfo runtime.ClientAuthInfoWriter) (*EventSubscriptionSearchOK, error)

EventSubscriptionSearch bs e t a find all ongoing subscriptions

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	EventSubscriptionDelete(params *EventSubscriptionDeleteParams, authInfo runtime.ClientAuthInfoWriter) error

	EventSubscriptionGet(params *EventSubscriptionGetParams, authInfo runtime.ClientAuthInfoWriter) (*EventSubscriptionGetOK, error)

	EventSubscriptionPost(params *EventSubscriptionPostParams, authInfo runtime.ClientAuthInfoWriter) (*EventSubscriptionPostCreated, error)

	EventSubscriptionPut(params *EventSubscriptionPutParams, authInfo runtime.ClientAuthInfoWriter) (*EventSubscriptionPutOK, error)

	EventSubscriptionSearch(params *EventSubscriptionSearchParams, authInfo runtime.ClientAuthInfoWriter) (*EventSubscriptionSearchOK, 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 subscription API client.

type EventSubscriptionDeleteDefault

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

EventSubscriptionDeleteDefault handles this case with default header values.

successful operation

func NewEventSubscriptionDeleteDefault

func NewEventSubscriptionDeleteDefault(code int) *EventSubscriptionDeleteDefault

NewEventSubscriptionDeleteDefault creates a EventSubscriptionDeleteDefault with default headers values

func (*EventSubscriptionDeleteDefault) Code

Code gets the status code for the event subscription delete default response

func (*EventSubscriptionDeleteDefault) Error

type EventSubscriptionDeleteParams

type EventSubscriptionDeleteParams struct {

	/*ID
	  Element ID

	*/
	ID int32

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

EventSubscriptionDeleteParams contains all the parameters to send to the API endpoint for the event subscription delete operation typically these are written to a http.Request

func NewEventSubscriptionDeleteParams

func NewEventSubscriptionDeleteParams() *EventSubscriptionDeleteParams

NewEventSubscriptionDeleteParams creates a new EventSubscriptionDeleteParams object with the default values initialized.

func NewEventSubscriptionDeleteParamsWithContext

func NewEventSubscriptionDeleteParamsWithContext(ctx context.Context) *EventSubscriptionDeleteParams

NewEventSubscriptionDeleteParamsWithContext creates a new EventSubscriptionDeleteParams object with the default values initialized, and the ability to set a context for a request

func NewEventSubscriptionDeleteParamsWithHTTPClient

func NewEventSubscriptionDeleteParamsWithHTTPClient(client *http.Client) *EventSubscriptionDeleteParams

NewEventSubscriptionDeleteParamsWithHTTPClient creates a new EventSubscriptionDeleteParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewEventSubscriptionDeleteParamsWithTimeout

func NewEventSubscriptionDeleteParamsWithTimeout(timeout time.Duration) *EventSubscriptionDeleteParams

NewEventSubscriptionDeleteParamsWithTimeout creates a new EventSubscriptionDeleteParams object with the default values initialized, and the ability to set a timeout on a request

func (*EventSubscriptionDeleteParams) SetContext

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

SetContext adds the context to the event subscription delete params

func (*EventSubscriptionDeleteParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the event subscription delete params

func (*EventSubscriptionDeleteParams) SetID

func (o *EventSubscriptionDeleteParams) SetID(id int32)

SetID adds the id to the event subscription delete params

func (*EventSubscriptionDeleteParams) SetTimeout

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

SetTimeout adds the timeout to the event subscription delete params

func (*EventSubscriptionDeleteParams) WithContext

WithContext adds the context to the event subscription delete params

func (*EventSubscriptionDeleteParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the event subscription delete params

func (*EventSubscriptionDeleteParams) WithID

WithID adds the id to the event subscription delete params

func (*EventSubscriptionDeleteParams) WithTimeout

WithTimeout adds the timeout to the event subscription delete params

func (*EventSubscriptionDeleteParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type EventSubscriptionDeleteReader

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

EventSubscriptionDeleteReader is a Reader for the EventSubscriptionDelete structure.

func (*EventSubscriptionDeleteReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type EventSubscriptionGetOK

type EventSubscriptionGetOK struct {
	Payload *models.ResponseWrapperSubscription
}

EventSubscriptionGetOK handles this case with default header values.

successful operation

func NewEventSubscriptionGetOK

func NewEventSubscriptionGetOK() *EventSubscriptionGetOK

NewEventSubscriptionGetOK creates a EventSubscriptionGetOK with default headers values

func (*EventSubscriptionGetOK) Error

func (o *EventSubscriptionGetOK) Error() string

func (*EventSubscriptionGetOK) GetPayload

type EventSubscriptionGetParams

type EventSubscriptionGetParams struct {

	/*Fields
	  Fields filter pattern

	*/
	Fields *string
	/*ID
	  Element ID

	*/
	ID int32

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

EventSubscriptionGetParams contains all the parameters to send to the API endpoint for the event subscription get operation typically these are written to a http.Request

func NewEventSubscriptionGetParams

func NewEventSubscriptionGetParams() *EventSubscriptionGetParams

NewEventSubscriptionGetParams creates a new EventSubscriptionGetParams object with the default values initialized.

func NewEventSubscriptionGetParamsWithContext

func NewEventSubscriptionGetParamsWithContext(ctx context.Context) *EventSubscriptionGetParams

NewEventSubscriptionGetParamsWithContext creates a new EventSubscriptionGetParams object with the default values initialized, and the ability to set a context for a request

func NewEventSubscriptionGetParamsWithHTTPClient

func NewEventSubscriptionGetParamsWithHTTPClient(client *http.Client) *EventSubscriptionGetParams

NewEventSubscriptionGetParamsWithHTTPClient creates a new EventSubscriptionGetParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewEventSubscriptionGetParamsWithTimeout

func NewEventSubscriptionGetParamsWithTimeout(timeout time.Duration) *EventSubscriptionGetParams

NewEventSubscriptionGetParamsWithTimeout creates a new EventSubscriptionGetParams object with the default values initialized, and the ability to set a timeout on a request

func (*EventSubscriptionGetParams) SetContext

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

SetContext adds the context to the event subscription get params

func (*EventSubscriptionGetParams) SetFields

func (o *EventSubscriptionGetParams) SetFields(fields *string)

SetFields adds the fields to the event subscription get params

func (*EventSubscriptionGetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the event subscription get params

func (*EventSubscriptionGetParams) SetID

func (o *EventSubscriptionGetParams) SetID(id int32)

SetID adds the id to the event subscription get params

func (*EventSubscriptionGetParams) SetTimeout

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

SetTimeout adds the timeout to the event subscription get params

func (*EventSubscriptionGetParams) WithContext

WithContext adds the context to the event subscription get params

func (*EventSubscriptionGetParams) WithFields

WithFields adds the fields to the event subscription get params

func (*EventSubscriptionGetParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the event subscription get params

func (*EventSubscriptionGetParams) WithID

WithID adds the id to the event subscription get params

func (*EventSubscriptionGetParams) WithTimeout

WithTimeout adds the timeout to the event subscription get params

func (*EventSubscriptionGetParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type EventSubscriptionGetReader

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

EventSubscriptionGetReader is a Reader for the EventSubscriptionGet structure.

func (*EventSubscriptionGetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type EventSubscriptionPostCreated

type EventSubscriptionPostCreated struct {
	Payload *models.ResponseWrapperSubscription
}

EventSubscriptionPostCreated handles this case with default header values.

successfully created

func NewEventSubscriptionPostCreated

func NewEventSubscriptionPostCreated() *EventSubscriptionPostCreated

NewEventSubscriptionPostCreated creates a EventSubscriptionPostCreated with default headers values

func (*EventSubscriptionPostCreated) Error

func (*EventSubscriptionPostCreated) GetPayload

type EventSubscriptionPostParams

type EventSubscriptionPostParams struct {

	/*Body
	  JSON representing the new object to be created. Should not have ID and version set.

	*/
	Body *models.Subscription

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

EventSubscriptionPostParams contains all the parameters to send to the API endpoint for the event subscription post operation typically these are written to a http.Request

func NewEventSubscriptionPostParams

func NewEventSubscriptionPostParams() *EventSubscriptionPostParams

NewEventSubscriptionPostParams creates a new EventSubscriptionPostParams object with the default values initialized.

func NewEventSubscriptionPostParamsWithContext

func NewEventSubscriptionPostParamsWithContext(ctx context.Context) *EventSubscriptionPostParams

NewEventSubscriptionPostParamsWithContext creates a new EventSubscriptionPostParams object with the default values initialized, and the ability to set a context for a request

func NewEventSubscriptionPostParamsWithHTTPClient

func NewEventSubscriptionPostParamsWithHTTPClient(client *http.Client) *EventSubscriptionPostParams

NewEventSubscriptionPostParamsWithHTTPClient creates a new EventSubscriptionPostParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewEventSubscriptionPostParamsWithTimeout

func NewEventSubscriptionPostParamsWithTimeout(timeout time.Duration) *EventSubscriptionPostParams

NewEventSubscriptionPostParamsWithTimeout creates a new EventSubscriptionPostParams object with the default values initialized, and the ability to set a timeout on a request

func (*EventSubscriptionPostParams) SetBody

SetBody adds the body to the event subscription post params

func (*EventSubscriptionPostParams) SetContext

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

SetContext adds the context to the event subscription post params

func (*EventSubscriptionPostParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the event subscription post params

func (*EventSubscriptionPostParams) SetTimeout

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

SetTimeout adds the timeout to the event subscription post params

func (*EventSubscriptionPostParams) WithBody

WithBody adds the body to the event subscription post params

func (*EventSubscriptionPostParams) WithContext

WithContext adds the context to the event subscription post params

func (*EventSubscriptionPostParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the event subscription post params

func (*EventSubscriptionPostParams) WithTimeout

WithTimeout adds the timeout to the event subscription post params

func (*EventSubscriptionPostParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type EventSubscriptionPostReader

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

EventSubscriptionPostReader is a Reader for the EventSubscriptionPost structure.

func (*EventSubscriptionPostReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type EventSubscriptionPutOK

type EventSubscriptionPutOK struct {
	Payload *models.ResponseWrapperSubscription
}

EventSubscriptionPutOK handles this case with default header values.

successful operation

func NewEventSubscriptionPutOK

func NewEventSubscriptionPutOK() *EventSubscriptionPutOK

NewEventSubscriptionPutOK creates a EventSubscriptionPutOK with default headers values

func (*EventSubscriptionPutOK) Error

func (o *EventSubscriptionPutOK) Error() string

func (*EventSubscriptionPutOK) GetPayload

type EventSubscriptionPutParams

type EventSubscriptionPutParams struct {

	/*Body
	  Partial object describing what should be updated

	*/
	Body *models.Subscription
	/*ID
	  Element ID

	*/
	ID int32

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

EventSubscriptionPutParams contains all the parameters to send to the API endpoint for the event subscription put operation typically these are written to a http.Request

func NewEventSubscriptionPutParams

func NewEventSubscriptionPutParams() *EventSubscriptionPutParams

NewEventSubscriptionPutParams creates a new EventSubscriptionPutParams object with the default values initialized.

func NewEventSubscriptionPutParamsWithContext

func NewEventSubscriptionPutParamsWithContext(ctx context.Context) *EventSubscriptionPutParams

NewEventSubscriptionPutParamsWithContext creates a new EventSubscriptionPutParams object with the default values initialized, and the ability to set a context for a request

func NewEventSubscriptionPutParamsWithHTTPClient

func NewEventSubscriptionPutParamsWithHTTPClient(client *http.Client) *EventSubscriptionPutParams

NewEventSubscriptionPutParamsWithHTTPClient creates a new EventSubscriptionPutParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewEventSubscriptionPutParamsWithTimeout

func NewEventSubscriptionPutParamsWithTimeout(timeout time.Duration) *EventSubscriptionPutParams

NewEventSubscriptionPutParamsWithTimeout creates a new EventSubscriptionPutParams object with the default values initialized, and the ability to set a timeout on a request

func (*EventSubscriptionPutParams) SetBody

SetBody adds the body to the event subscription put params

func (*EventSubscriptionPutParams) SetContext

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

SetContext adds the context to the event subscription put params

func (*EventSubscriptionPutParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the event subscription put params

func (*EventSubscriptionPutParams) SetID

func (o *EventSubscriptionPutParams) SetID(id int32)

SetID adds the id to the event subscription put params

func (*EventSubscriptionPutParams) SetTimeout

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

SetTimeout adds the timeout to the event subscription put params

func (*EventSubscriptionPutParams) WithBody

WithBody adds the body to the event subscription put params

func (*EventSubscriptionPutParams) WithContext

WithContext adds the context to the event subscription put params

func (*EventSubscriptionPutParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the event subscription put params

func (*EventSubscriptionPutParams) WithID

WithID adds the id to the event subscription put params

func (*EventSubscriptionPutParams) WithTimeout

WithTimeout adds the timeout to the event subscription put params

func (*EventSubscriptionPutParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type EventSubscriptionPutReader

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

EventSubscriptionPutReader is a Reader for the EventSubscriptionPut structure.

func (*EventSubscriptionPutReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type EventSubscriptionSearchOK

type EventSubscriptionSearchOK struct {
	Payload *models.ListResponseSubscription
}

EventSubscriptionSearchOK handles this case with default header values.

successful operation

func NewEventSubscriptionSearchOK

func NewEventSubscriptionSearchOK() *EventSubscriptionSearchOK

NewEventSubscriptionSearchOK creates a EventSubscriptionSearchOK with default headers values

func (*EventSubscriptionSearchOK) Error

func (o *EventSubscriptionSearchOK) Error() string

func (*EventSubscriptionSearchOK) GetPayload

type EventSubscriptionSearchParams

type EventSubscriptionSearchParams struct {

	/*Count
	  Number of elements to return

	*/
	Count *int64
	/*Fields
	  Fields filter pattern

	*/
	Fields *string
	/*From
	  From index

	*/
	From *int64
	/*Sorting
	  Sorting pattern

	*/
	Sorting *string

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

EventSubscriptionSearchParams contains all the parameters to send to the API endpoint for the event subscription search operation typically these are written to a http.Request

func NewEventSubscriptionSearchParams

func NewEventSubscriptionSearchParams() *EventSubscriptionSearchParams

NewEventSubscriptionSearchParams creates a new EventSubscriptionSearchParams object with the default values initialized.

func NewEventSubscriptionSearchParamsWithContext

func NewEventSubscriptionSearchParamsWithContext(ctx context.Context) *EventSubscriptionSearchParams

NewEventSubscriptionSearchParamsWithContext creates a new EventSubscriptionSearchParams object with the default values initialized, and the ability to set a context for a request

func NewEventSubscriptionSearchParamsWithHTTPClient

func NewEventSubscriptionSearchParamsWithHTTPClient(client *http.Client) *EventSubscriptionSearchParams

NewEventSubscriptionSearchParamsWithHTTPClient creates a new EventSubscriptionSearchParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewEventSubscriptionSearchParamsWithTimeout

func NewEventSubscriptionSearchParamsWithTimeout(timeout time.Duration) *EventSubscriptionSearchParams

NewEventSubscriptionSearchParamsWithTimeout creates a new EventSubscriptionSearchParams object with the default values initialized, and the ability to set a timeout on a request

func (*EventSubscriptionSearchParams) SetContext

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

SetContext adds the context to the event subscription search params

func (*EventSubscriptionSearchParams) SetCount

func (o *EventSubscriptionSearchParams) SetCount(count *int64)

SetCount adds the count to the event subscription search params

func (*EventSubscriptionSearchParams) SetFields

func (o *EventSubscriptionSearchParams) SetFields(fields *string)

SetFields adds the fields to the event subscription search params

func (*EventSubscriptionSearchParams) SetFrom

func (o *EventSubscriptionSearchParams) SetFrom(from *int64)

SetFrom adds the from to the event subscription search params

func (*EventSubscriptionSearchParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the event subscription search params

func (*EventSubscriptionSearchParams) SetSorting

func (o *EventSubscriptionSearchParams) SetSorting(sorting *string)

SetSorting adds the sorting to the event subscription search params

func (*EventSubscriptionSearchParams) SetTimeout

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

SetTimeout adds the timeout to the event subscription search params

func (*EventSubscriptionSearchParams) WithContext

WithContext adds the context to the event subscription search params

func (*EventSubscriptionSearchParams) WithCount

WithCount adds the count to the event subscription search params

func (*EventSubscriptionSearchParams) WithFields

WithFields adds the fields to the event subscription search params

func (*EventSubscriptionSearchParams) WithFrom

WithFrom adds the from to the event subscription search params

func (*EventSubscriptionSearchParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the event subscription search params

func (*EventSubscriptionSearchParams) WithSorting

WithSorting adds the sorting to the event subscription search params

func (*EventSubscriptionSearchParams) WithTimeout

WithTimeout adds the timeout to the event subscription search params

func (*EventSubscriptionSearchParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type EventSubscriptionSearchReader

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

EventSubscriptionSearchReader is a Reader for the EventSubscriptionSearch structure.

func (*EventSubscriptionSearchReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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