activity_service

package
v4.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: Apache-2.0 Imports: 10 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 activity service API

func (*Client) SearchSubscriptions

func (a *Client) SearchSubscriptions(params *SearchSubscriptionsParams, opts ...ClientOption) (*SearchSubscriptionsOK, error)

SearchSubscriptions loads subscriptions to other users nodes feeds

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) Stream

func (a *Client) Stream(params *StreamParams, opts ...ClientOption) (*StreamOK, error)

Stream loads the the feeds of the currently logged user

func (*Client) Subscribe

func (a *Client) Subscribe(params *SubscribeParams, opts ...ClientOption) (*SubscribeOK, error)

Subscribe manages subscriptions to other users nodes feeds

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	SearchSubscriptions(params *SearchSubscriptionsParams, opts ...ClientOption) (*SearchSubscriptionsOK, error)

	Stream(params *StreamParams, opts ...ClientOption) (*StreamOK, error)

	Subscribe(params *SubscribeParams, opts ...ClientOption) (*SubscribeOK, 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 activity service API client.

type SearchSubscriptionsForbidden

type SearchSubscriptionsForbidden struct {
	Payload *models.RestError
}

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

User has no permission to access this resource

func NewSearchSubscriptionsForbidden

func NewSearchSubscriptionsForbidden() *SearchSubscriptionsForbidden

NewSearchSubscriptionsForbidden creates a SearchSubscriptionsForbidden with default headers values

func (*SearchSubscriptionsForbidden) Code added in v4.0.1

Code gets the status code for the search subscriptions forbidden response

func (*SearchSubscriptionsForbidden) Error

func (*SearchSubscriptionsForbidden) GetPayload

func (*SearchSubscriptionsForbidden) IsClientError

func (o *SearchSubscriptionsForbidden) IsClientError() bool

IsClientError returns true when this search subscriptions forbidden response has a 4xx status code

func (*SearchSubscriptionsForbidden) IsCode

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

IsCode returns true when this search subscriptions forbidden response a status code equal to that given

func (*SearchSubscriptionsForbidden) IsRedirect

func (o *SearchSubscriptionsForbidden) IsRedirect() bool

IsRedirect returns true when this search subscriptions forbidden response has a 3xx status code

func (*SearchSubscriptionsForbidden) IsServerError

func (o *SearchSubscriptionsForbidden) IsServerError() bool

IsServerError returns true when this search subscriptions forbidden response has a 5xx status code

func (*SearchSubscriptionsForbidden) IsSuccess

func (o *SearchSubscriptionsForbidden) IsSuccess() bool

IsSuccess returns true when this search subscriptions forbidden response has a 2xx status code

func (*SearchSubscriptionsForbidden) String

type SearchSubscriptionsInternalServerError

type SearchSubscriptionsInternalServerError struct {
	Payload *models.RestError
}

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

An internal error occurred in the backend

func NewSearchSubscriptionsInternalServerError

func NewSearchSubscriptionsInternalServerError() *SearchSubscriptionsInternalServerError

NewSearchSubscriptionsInternalServerError creates a SearchSubscriptionsInternalServerError with default headers values

func (*SearchSubscriptionsInternalServerError) Code added in v4.0.1

Code gets the status code for the search subscriptions internal server error response

func (*SearchSubscriptionsInternalServerError) Error

func (*SearchSubscriptionsInternalServerError) GetPayload

func (*SearchSubscriptionsInternalServerError) IsClientError

func (o *SearchSubscriptionsInternalServerError) IsClientError() bool

IsClientError returns true when this search subscriptions internal server error response has a 4xx status code

func (*SearchSubscriptionsInternalServerError) IsCode

IsCode returns true when this search subscriptions internal server error response a status code equal to that given

func (*SearchSubscriptionsInternalServerError) IsRedirect

IsRedirect returns true when this search subscriptions internal server error response has a 3xx status code

func (*SearchSubscriptionsInternalServerError) IsServerError

func (o *SearchSubscriptionsInternalServerError) IsServerError() bool

IsServerError returns true when this search subscriptions internal server error response has a 5xx status code

func (*SearchSubscriptionsInternalServerError) IsSuccess

IsSuccess returns true when this search subscriptions internal server error response has a 2xx status code

func (*SearchSubscriptionsInternalServerError) String

type SearchSubscriptionsNotFound

type SearchSubscriptionsNotFound struct {
	Payload *models.RestError
}

SearchSubscriptionsNotFound describes a response with status code 404, with default header values.

Resource does not exist in the system

func NewSearchSubscriptionsNotFound

func NewSearchSubscriptionsNotFound() *SearchSubscriptionsNotFound

NewSearchSubscriptionsNotFound creates a SearchSubscriptionsNotFound with default headers values

func (*SearchSubscriptionsNotFound) Code added in v4.0.1

func (o *SearchSubscriptionsNotFound) Code() int

Code gets the status code for the search subscriptions not found response

func (*SearchSubscriptionsNotFound) Error

func (*SearchSubscriptionsNotFound) GetPayload

func (o *SearchSubscriptionsNotFound) GetPayload() *models.RestError

func (*SearchSubscriptionsNotFound) IsClientError

func (o *SearchSubscriptionsNotFound) IsClientError() bool

IsClientError returns true when this search subscriptions not found response has a 4xx status code

func (*SearchSubscriptionsNotFound) IsCode

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

IsCode returns true when this search subscriptions not found response a status code equal to that given

func (*SearchSubscriptionsNotFound) IsRedirect

func (o *SearchSubscriptionsNotFound) IsRedirect() bool

IsRedirect returns true when this search subscriptions not found response has a 3xx status code

func (*SearchSubscriptionsNotFound) IsServerError

func (o *SearchSubscriptionsNotFound) IsServerError() bool

IsServerError returns true when this search subscriptions not found response has a 5xx status code

func (*SearchSubscriptionsNotFound) IsSuccess

func (o *SearchSubscriptionsNotFound) IsSuccess() bool

IsSuccess returns true when this search subscriptions not found response has a 2xx status code

func (*SearchSubscriptionsNotFound) String

func (o *SearchSubscriptionsNotFound) String() string

type SearchSubscriptionsOK

type SearchSubscriptionsOK struct {
	Payload *models.RestSubscriptionsCollection
}

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

A successful response.

func NewSearchSubscriptionsOK

func NewSearchSubscriptionsOK() *SearchSubscriptionsOK

NewSearchSubscriptionsOK creates a SearchSubscriptionsOK with default headers values

func (*SearchSubscriptionsOK) Code added in v4.0.1

func (o *SearchSubscriptionsOK) Code() int

Code gets the status code for the search subscriptions o k response

func (*SearchSubscriptionsOK) Error

func (o *SearchSubscriptionsOK) Error() string

func (*SearchSubscriptionsOK) GetPayload

func (*SearchSubscriptionsOK) IsClientError

func (o *SearchSubscriptionsOK) IsClientError() bool

IsClientError returns true when this search subscriptions o k response has a 4xx status code

func (*SearchSubscriptionsOK) IsCode

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

IsCode returns true when this search subscriptions o k response a status code equal to that given

func (*SearchSubscriptionsOK) IsRedirect

func (o *SearchSubscriptionsOK) IsRedirect() bool

IsRedirect returns true when this search subscriptions o k response has a 3xx status code

func (*SearchSubscriptionsOK) IsServerError

func (o *SearchSubscriptionsOK) IsServerError() bool

IsServerError returns true when this search subscriptions o k response has a 5xx status code

func (*SearchSubscriptionsOK) IsSuccess

func (o *SearchSubscriptionsOK) IsSuccess() bool

IsSuccess returns true when this search subscriptions o k response has a 2xx status code

func (*SearchSubscriptionsOK) String

func (o *SearchSubscriptionsOK) String() string

type SearchSubscriptionsParams

type SearchSubscriptionsParams struct {

	// Body.
	Body *models.ActivitySearchSubscriptionsRequest

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

SearchSubscriptionsParams contains all the parameters to send to the API endpoint

for the search subscriptions operation.

Typically these are written to a http.Request.

func NewSearchSubscriptionsParams

func NewSearchSubscriptionsParams() *SearchSubscriptionsParams

NewSearchSubscriptionsParams creates a new SearchSubscriptionsParams 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 NewSearchSubscriptionsParamsWithContext

func NewSearchSubscriptionsParamsWithContext(ctx context.Context) *SearchSubscriptionsParams

NewSearchSubscriptionsParamsWithContext creates a new SearchSubscriptionsParams object with the ability to set a context for a request.

func NewSearchSubscriptionsParamsWithHTTPClient

func NewSearchSubscriptionsParamsWithHTTPClient(client *http.Client) *SearchSubscriptionsParams

NewSearchSubscriptionsParamsWithHTTPClient creates a new SearchSubscriptionsParams object with the ability to set a custom HTTPClient for a request.

func NewSearchSubscriptionsParamsWithTimeout

func NewSearchSubscriptionsParamsWithTimeout(timeout time.Duration) *SearchSubscriptionsParams

NewSearchSubscriptionsParamsWithTimeout creates a new SearchSubscriptionsParams object with the ability to set a timeout on a request.

func (*SearchSubscriptionsParams) SetBody

SetBody adds the body to the search subscriptions params

func (*SearchSubscriptionsParams) SetContext

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

SetContext adds the context to the search subscriptions params

func (*SearchSubscriptionsParams) SetDefaults

func (o *SearchSubscriptionsParams) SetDefaults()

SetDefaults hydrates default values in the search subscriptions params (not the query body).

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

func (*SearchSubscriptionsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the search subscriptions params

func (*SearchSubscriptionsParams) SetTimeout

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

SetTimeout adds the timeout to the search subscriptions params

func (*SearchSubscriptionsParams) WithBody

WithBody adds the body to the search subscriptions params

func (*SearchSubscriptionsParams) WithContext

WithContext adds the context to the search subscriptions params

func (*SearchSubscriptionsParams) WithDefaults

WithDefaults hydrates default values in the search subscriptions params (not the query body).

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

func (*SearchSubscriptionsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the search subscriptions params

func (*SearchSubscriptionsParams) WithTimeout

WithTimeout adds the timeout to the search subscriptions params

func (*SearchSubscriptionsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SearchSubscriptionsReader

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

SearchSubscriptionsReader is a Reader for the SearchSubscriptions structure.

func (*SearchSubscriptionsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SearchSubscriptionsUnauthorized

type SearchSubscriptionsUnauthorized struct {
}

SearchSubscriptionsUnauthorized describes a response with status code 401, with default header values.

User is not authenticated

func NewSearchSubscriptionsUnauthorized

func NewSearchSubscriptionsUnauthorized() *SearchSubscriptionsUnauthorized

NewSearchSubscriptionsUnauthorized creates a SearchSubscriptionsUnauthorized with default headers values

func (*SearchSubscriptionsUnauthorized) Code added in v4.0.1

Code gets the status code for the search subscriptions unauthorized response

func (*SearchSubscriptionsUnauthorized) Error

func (*SearchSubscriptionsUnauthorized) IsClientError

func (o *SearchSubscriptionsUnauthorized) IsClientError() bool

IsClientError returns true when this search subscriptions unauthorized response has a 4xx status code

func (*SearchSubscriptionsUnauthorized) IsCode

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

IsCode returns true when this search subscriptions unauthorized response a status code equal to that given

func (*SearchSubscriptionsUnauthorized) IsRedirect

func (o *SearchSubscriptionsUnauthorized) IsRedirect() bool

IsRedirect returns true when this search subscriptions unauthorized response has a 3xx status code

func (*SearchSubscriptionsUnauthorized) IsServerError

func (o *SearchSubscriptionsUnauthorized) IsServerError() bool

IsServerError returns true when this search subscriptions unauthorized response has a 5xx status code

func (*SearchSubscriptionsUnauthorized) IsSuccess

func (o *SearchSubscriptionsUnauthorized) IsSuccess() bool

IsSuccess returns true when this search subscriptions unauthorized response has a 2xx status code

func (*SearchSubscriptionsUnauthorized) String

type StreamForbidden

type StreamForbidden struct {
	Payload *models.RestError
}

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

User has no permission to access this resource

func NewStreamForbidden

func NewStreamForbidden() *StreamForbidden

NewStreamForbidden creates a StreamForbidden with default headers values

func (*StreamForbidden) Code added in v4.0.1

func (o *StreamForbidden) Code() int

Code gets the status code for the stream forbidden response

func (*StreamForbidden) Error

func (o *StreamForbidden) Error() string

func (*StreamForbidden) GetPayload

func (o *StreamForbidden) GetPayload() *models.RestError

func (*StreamForbidden) IsClientError

func (o *StreamForbidden) IsClientError() bool

IsClientError returns true when this stream forbidden response has a 4xx status code

func (*StreamForbidden) IsCode

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

IsCode returns true when this stream forbidden response a status code equal to that given

func (*StreamForbidden) IsRedirect

func (o *StreamForbidden) IsRedirect() bool

IsRedirect returns true when this stream forbidden response has a 3xx status code

func (*StreamForbidden) IsServerError

func (o *StreamForbidden) IsServerError() bool

IsServerError returns true when this stream forbidden response has a 5xx status code

func (*StreamForbidden) IsSuccess

func (o *StreamForbidden) IsSuccess() bool

IsSuccess returns true when this stream forbidden response has a 2xx status code

func (*StreamForbidden) String

func (o *StreamForbidden) String() string

type StreamInternalServerError

type StreamInternalServerError struct {
	Payload *models.RestError
}

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

An internal error occurred in the backend

func NewStreamInternalServerError

func NewStreamInternalServerError() *StreamInternalServerError

NewStreamInternalServerError creates a StreamInternalServerError with default headers values

func (*StreamInternalServerError) Code added in v4.0.1

func (o *StreamInternalServerError) Code() int

Code gets the status code for the stream internal server error response

func (*StreamInternalServerError) Error

func (o *StreamInternalServerError) Error() string

func (*StreamInternalServerError) GetPayload

func (o *StreamInternalServerError) GetPayload() *models.RestError

func (*StreamInternalServerError) IsClientError

func (o *StreamInternalServerError) IsClientError() bool

IsClientError returns true when this stream internal server error response has a 4xx status code

func (*StreamInternalServerError) IsCode

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

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

func (*StreamInternalServerError) IsRedirect

func (o *StreamInternalServerError) IsRedirect() bool

IsRedirect returns true when this stream internal server error response has a 3xx status code

func (*StreamInternalServerError) IsServerError

func (o *StreamInternalServerError) IsServerError() bool

IsServerError returns true when this stream internal server error response has a 5xx status code

func (*StreamInternalServerError) IsSuccess

func (o *StreamInternalServerError) IsSuccess() bool

IsSuccess returns true when this stream internal server error response has a 2xx status code

func (*StreamInternalServerError) String

func (o *StreamInternalServerError) String() string

type StreamNotFound

type StreamNotFound struct {
	Payload *models.RestError
}

StreamNotFound describes a response with status code 404, with default header values.

Resource does not exist in the system

func NewStreamNotFound

func NewStreamNotFound() *StreamNotFound

NewStreamNotFound creates a StreamNotFound with default headers values

func (*StreamNotFound) Code added in v4.0.1

func (o *StreamNotFound) Code() int

Code gets the status code for the stream not found response

func (*StreamNotFound) Error

func (o *StreamNotFound) Error() string

func (*StreamNotFound) GetPayload

func (o *StreamNotFound) GetPayload() *models.RestError

func (*StreamNotFound) IsClientError

func (o *StreamNotFound) IsClientError() bool

IsClientError returns true when this stream not found response has a 4xx status code

func (*StreamNotFound) IsCode

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

IsCode returns true when this stream not found response a status code equal to that given

func (*StreamNotFound) IsRedirect

func (o *StreamNotFound) IsRedirect() bool

IsRedirect returns true when this stream not found response has a 3xx status code

func (*StreamNotFound) IsServerError

func (o *StreamNotFound) IsServerError() bool

IsServerError returns true when this stream not found response has a 5xx status code

func (*StreamNotFound) IsSuccess

func (o *StreamNotFound) IsSuccess() bool

IsSuccess returns true when this stream not found response has a 2xx status code

func (*StreamNotFound) String

func (o *StreamNotFound) String() string

type StreamOK

type StreamOK struct {
	Payload *models.ActivityObject
}

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

A successful response.

func NewStreamOK

func NewStreamOK() *StreamOK

NewStreamOK creates a StreamOK with default headers values

func (*StreamOK) Code added in v4.0.1

func (o *StreamOK) Code() int

Code gets the status code for the stream o k response

func (*StreamOK) Error

func (o *StreamOK) Error() string

func (*StreamOK) GetPayload

func (o *StreamOK) GetPayload() *models.ActivityObject

func (*StreamOK) IsClientError

func (o *StreamOK) IsClientError() bool

IsClientError returns true when this stream o k response has a 4xx status code

func (*StreamOK) IsCode

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

IsCode returns true when this stream o k response a status code equal to that given

func (*StreamOK) IsRedirect

func (o *StreamOK) IsRedirect() bool

IsRedirect returns true when this stream o k response has a 3xx status code

func (*StreamOK) IsServerError

func (o *StreamOK) IsServerError() bool

IsServerError returns true when this stream o k response has a 5xx status code

func (*StreamOK) IsSuccess

func (o *StreamOK) IsSuccess() bool

IsSuccess returns true when this stream o k response has a 2xx status code

func (*StreamOK) String

func (o *StreamOK) String() string

type StreamParams

type StreamParams struct {

	// Body.
	Body *models.ActivityStreamActivitiesRequest

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

StreamParams contains all the parameters to send to the API endpoint

for the stream operation.

Typically these are written to a http.Request.

func NewStreamParams

func NewStreamParams() *StreamParams

NewStreamParams creates a new StreamParams 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 NewStreamParamsWithContext

func NewStreamParamsWithContext(ctx context.Context) *StreamParams

NewStreamParamsWithContext creates a new StreamParams object with the ability to set a context for a request.

func NewStreamParamsWithHTTPClient

func NewStreamParamsWithHTTPClient(client *http.Client) *StreamParams

NewStreamParamsWithHTTPClient creates a new StreamParams object with the ability to set a custom HTTPClient for a request.

func NewStreamParamsWithTimeout

func NewStreamParamsWithTimeout(timeout time.Duration) *StreamParams

NewStreamParamsWithTimeout creates a new StreamParams object with the ability to set a timeout on a request.

func (*StreamParams) SetBody

SetBody adds the body to the stream params

func (*StreamParams) SetContext

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

SetContext adds the context to the stream params

func (*StreamParams) SetDefaults

func (o *StreamParams) SetDefaults()

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

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

func (*StreamParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the stream params

func (*StreamParams) SetTimeout

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

SetTimeout adds the timeout to the stream params

func (*StreamParams) WithBody

WithBody adds the body to the stream params

func (*StreamParams) WithContext

func (o *StreamParams) WithContext(ctx context.Context) *StreamParams

WithContext adds the context to the stream params

func (*StreamParams) WithDefaults

func (o *StreamParams) WithDefaults() *StreamParams

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

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

func (*StreamParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the stream params

func (*StreamParams) WithTimeout

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

WithTimeout adds the timeout to the stream params

func (*StreamParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type StreamReader

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

StreamReader is a Reader for the Stream structure.

func (*StreamReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type StreamUnauthorized

type StreamUnauthorized struct {
}

StreamUnauthorized describes a response with status code 401, with default header values.

User is not authenticated

func NewStreamUnauthorized

func NewStreamUnauthorized() *StreamUnauthorized

NewStreamUnauthorized creates a StreamUnauthorized with default headers values

func (*StreamUnauthorized) Code added in v4.0.1

func (o *StreamUnauthorized) Code() int

Code gets the status code for the stream unauthorized response

func (*StreamUnauthorized) Error

func (o *StreamUnauthorized) Error() string

func (*StreamUnauthorized) IsClientError

func (o *StreamUnauthorized) IsClientError() bool

IsClientError returns true when this stream unauthorized response has a 4xx status code

func (*StreamUnauthorized) IsCode

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

IsCode returns true when this stream unauthorized response a status code equal to that given

func (*StreamUnauthorized) IsRedirect

func (o *StreamUnauthorized) IsRedirect() bool

IsRedirect returns true when this stream unauthorized response has a 3xx status code

func (*StreamUnauthorized) IsServerError

func (o *StreamUnauthorized) IsServerError() bool

IsServerError returns true when this stream unauthorized response has a 5xx status code

func (*StreamUnauthorized) IsSuccess

func (o *StreamUnauthorized) IsSuccess() bool

IsSuccess returns true when this stream unauthorized response has a 2xx status code

func (*StreamUnauthorized) String

func (o *StreamUnauthorized) String() string

type SubscribeForbidden

type SubscribeForbidden struct {
	Payload *models.RestError
}

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

User has no permission to access this resource

func NewSubscribeForbidden

func NewSubscribeForbidden() *SubscribeForbidden

NewSubscribeForbidden creates a SubscribeForbidden with default headers values

func (*SubscribeForbidden) Code added in v4.0.1

func (o *SubscribeForbidden) Code() int

Code gets the status code for the subscribe forbidden response

func (*SubscribeForbidden) Error

func (o *SubscribeForbidden) Error() string

func (*SubscribeForbidden) GetPayload

func (o *SubscribeForbidden) GetPayload() *models.RestError

func (*SubscribeForbidden) IsClientError

func (o *SubscribeForbidden) IsClientError() bool

IsClientError returns true when this subscribe forbidden response has a 4xx status code

func (*SubscribeForbidden) IsCode

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

IsCode returns true when this subscribe forbidden response a status code equal to that given

func (*SubscribeForbidden) IsRedirect

func (o *SubscribeForbidden) IsRedirect() bool

IsRedirect returns true when this subscribe forbidden response has a 3xx status code

func (*SubscribeForbidden) IsServerError

func (o *SubscribeForbidden) IsServerError() bool

IsServerError returns true when this subscribe forbidden response has a 5xx status code

func (*SubscribeForbidden) IsSuccess

func (o *SubscribeForbidden) IsSuccess() bool

IsSuccess returns true when this subscribe forbidden response has a 2xx status code

func (*SubscribeForbidden) String

func (o *SubscribeForbidden) String() string

type SubscribeInternalServerError

type SubscribeInternalServerError struct {
	Payload *models.RestError
}

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

An internal error occurred in the backend

func NewSubscribeInternalServerError

func NewSubscribeInternalServerError() *SubscribeInternalServerError

NewSubscribeInternalServerError creates a SubscribeInternalServerError with default headers values

func (*SubscribeInternalServerError) Code added in v4.0.1

Code gets the status code for the subscribe internal server error response

func (*SubscribeInternalServerError) Error

func (*SubscribeInternalServerError) GetPayload

func (*SubscribeInternalServerError) IsClientError

func (o *SubscribeInternalServerError) IsClientError() bool

IsClientError returns true when this subscribe internal server error response has a 4xx status code

func (*SubscribeInternalServerError) IsCode

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

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

func (*SubscribeInternalServerError) IsRedirect

func (o *SubscribeInternalServerError) IsRedirect() bool

IsRedirect returns true when this subscribe internal server error response has a 3xx status code

func (*SubscribeInternalServerError) IsServerError

func (o *SubscribeInternalServerError) IsServerError() bool

IsServerError returns true when this subscribe internal server error response has a 5xx status code

func (*SubscribeInternalServerError) IsSuccess

func (o *SubscribeInternalServerError) IsSuccess() bool

IsSuccess returns true when this subscribe internal server error response has a 2xx status code

func (*SubscribeInternalServerError) String

type SubscribeNotFound

type SubscribeNotFound struct {
	Payload *models.RestError
}

SubscribeNotFound describes a response with status code 404, with default header values.

Resource does not exist in the system

func NewSubscribeNotFound

func NewSubscribeNotFound() *SubscribeNotFound

NewSubscribeNotFound creates a SubscribeNotFound with default headers values

func (*SubscribeNotFound) Code added in v4.0.1

func (o *SubscribeNotFound) Code() int

Code gets the status code for the subscribe not found response

func (*SubscribeNotFound) Error

func (o *SubscribeNotFound) Error() string

func (*SubscribeNotFound) GetPayload

func (o *SubscribeNotFound) GetPayload() *models.RestError

func (*SubscribeNotFound) IsClientError

func (o *SubscribeNotFound) IsClientError() bool

IsClientError returns true when this subscribe not found response has a 4xx status code

func (*SubscribeNotFound) IsCode

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

IsCode returns true when this subscribe not found response a status code equal to that given

func (*SubscribeNotFound) IsRedirect

func (o *SubscribeNotFound) IsRedirect() bool

IsRedirect returns true when this subscribe not found response has a 3xx status code

func (*SubscribeNotFound) IsServerError

func (o *SubscribeNotFound) IsServerError() bool

IsServerError returns true when this subscribe not found response has a 5xx status code

func (*SubscribeNotFound) IsSuccess

func (o *SubscribeNotFound) IsSuccess() bool

IsSuccess returns true when this subscribe not found response has a 2xx status code

func (*SubscribeNotFound) String

func (o *SubscribeNotFound) String() string

type SubscribeOK

type SubscribeOK struct {
	Payload *models.ActivitySubscription
}

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

A successful response.

func NewSubscribeOK

func NewSubscribeOK() *SubscribeOK

NewSubscribeOK creates a SubscribeOK with default headers values

func (*SubscribeOK) Code added in v4.0.1

func (o *SubscribeOK) Code() int

Code gets the status code for the subscribe o k response

func (*SubscribeOK) Error

func (o *SubscribeOK) Error() string

func (*SubscribeOK) GetPayload

func (o *SubscribeOK) GetPayload() *models.ActivitySubscription

func (*SubscribeOK) IsClientError

func (o *SubscribeOK) IsClientError() bool

IsClientError returns true when this subscribe o k response has a 4xx status code

func (*SubscribeOK) IsCode

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

IsCode returns true when this subscribe o k response a status code equal to that given

func (*SubscribeOK) IsRedirect

func (o *SubscribeOK) IsRedirect() bool

IsRedirect returns true when this subscribe o k response has a 3xx status code

func (*SubscribeOK) IsServerError

func (o *SubscribeOK) IsServerError() bool

IsServerError returns true when this subscribe o k response has a 5xx status code

func (*SubscribeOK) IsSuccess

func (o *SubscribeOK) IsSuccess() bool

IsSuccess returns true when this subscribe o k response has a 2xx status code

func (*SubscribeOK) String

func (o *SubscribeOK) String() string

type SubscribeParams

type SubscribeParams struct {

	// Body.
	Body *models.ActivitySubscription

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

SubscribeParams contains all the parameters to send to the API endpoint

for the subscribe operation.

Typically these are written to a http.Request.

func NewSubscribeParams

func NewSubscribeParams() *SubscribeParams

NewSubscribeParams creates a new SubscribeParams 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 NewSubscribeParamsWithContext

func NewSubscribeParamsWithContext(ctx context.Context) *SubscribeParams

NewSubscribeParamsWithContext creates a new SubscribeParams object with the ability to set a context for a request.

func NewSubscribeParamsWithHTTPClient

func NewSubscribeParamsWithHTTPClient(client *http.Client) *SubscribeParams

NewSubscribeParamsWithHTTPClient creates a new SubscribeParams object with the ability to set a custom HTTPClient for a request.

func NewSubscribeParamsWithTimeout

func NewSubscribeParamsWithTimeout(timeout time.Duration) *SubscribeParams

NewSubscribeParamsWithTimeout creates a new SubscribeParams object with the ability to set a timeout on a request.

func (*SubscribeParams) SetBody

func (o *SubscribeParams) SetBody(body *models.ActivitySubscription)

SetBody adds the body to the subscribe params

func (*SubscribeParams) SetContext

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

SetContext adds the context to the subscribe params

func (*SubscribeParams) SetDefaults

func (o *SubscribeParams) SetDefaults()

SetDefaults hydrates default values in the subscribe params (not the query body).

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

func (*SubscribeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the subscribe params

func (*SubscribeParams) SetTimeout

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

SetTimeout adds the timeout to the subscribe params

func (*SubscribeParams) WithBody

WithBody adds the body to the subscribe params

func (*SubscribeParams) WithContext

func (o *SubscribeParams) WithContext(ctx context.Context) *SubscribeParams

WithContext adds the context to the subscribe params

func (*SubscribeParams) WithDefaults

func (o *SubscribeParams) WithDefaults() *SubscribeParams

WithDefaults hydrates default values in the subscribe params (not the query body).

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

func (*SubscribeParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the subscribe params

func (*SubscribeParams) WithTimeout

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

WithTimeout adds the timeout to the subscribe params

func (*SubscribeParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type SubscribeReader

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

SubscribeReader is a Reader for the Subscribe structure.

func (*SubscribeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SubscribeUnauthorized

type SubscribeUnauthorized struct {
}

SubscribeUnauthorized describes a response with status code 401, with default header values.

User is not authenticated

func NewSubscribeUnauthorized

func NewSubscribeUnauthorized() *SubscribeUnauthorized

NewSubscribeUnauthorized creates a SubscribeUnauthorized with default headers values

func (*SubscribeUnauthorized) Code added in v4.0.1

func (o *SubscribeUnauthorized) Code() int

Code gets the status code for the subscribe unauthorized response

func (*SubscribeUnauthorized) Error

func (o *SubscribeUnauthorized) Error() string

func (*SubscribeUnauthorized) IsClientError

func (o *SubscribeUnauthorized) IsClientError() bool

IsClientError returns true when this subscribe unauthorized response has a 4xx status code

func (*SubscribeUnauthorized) IsCode

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

IsCode returns true when this subscribe unauthorized response a status code equal to that given

func (*SubscribeUnauthorized) IsRedirect

func (o *SubscribeUnauthorized) IsRedirect() bool

IsRedirect returns true when this subscribe unauthorized response has a 3xx status code

func (*SubscribeUnauthorized) IsServerError

func (o *SubscribeUnauthorized) IsServerError() bool

IsServerError returns true when this subscribe unauthorized response has a 5xx status code

func (*SubscribeUnauthorized) IsSuccess

func (o *SubscribeUnauthorized) IsSuccess() bool

IsSuccess returns true when this subscribe unauthorized response has a 2xx status code

func (*SubscribeUnauthorized) String

func (o *SubscribeUnauthorized) String() string

Jump to

Keyboard shortcuts

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