service

package
v0.0.0-...-14d5a85 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 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 service API

func (*Client) ServiceLinkResourcePostPost

func (a *Client) ServiceLinkResourcePostPost(params *ServiceLinkResourcePostPostParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ServiceLinkResourcePostPostOK, error)

ServiceLinkResourcePostPost links a service

func (*Client) ServiceResourceGetGet

func (a *Client) ServiceResourceGetGet(params *ServiceResourceGetGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ServiceResourceGetGetOK, error)

ServiceResourceGetGet gets a service

func (*Client) ServiceSyncResourcePostPost

ServiceSyncResourcePostPost syncs a service

func (*Client) ServiceUnlinkResourcePostPost

ServiceUnlinkResourcePostPost unlinks a service

func (*Client) ServicesResourceGetGet

func (a *Client) ServicesResourceGetGet(params *ServicesResourceGetGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ServicesResourceGetGetOK, error)

ServicesResourceGetGet gets a list of services

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 {
	ServiceLinkResourcePostPost(params *ServiceLinkResourcePostPostParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ServiceLinkResourcePostPostOK, error)

	ServiceResourceGetGet(params *ServiceResourceGetGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ServiceResourceGetGetOK, error)

	ServiceSyncResourcePostPost(params *ServiceSyncResourcePostPostParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ServiceSyncResourcePostPostNoContent, error)

	ServiceUnlinkResourcePostPost(params *ServiceUnlinkResourcePostPostParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ServiceUnlinkResourcePostPostNoContent, error)

	ServicesResourceGetGet(params *ServicesResourceGetGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ServicesResourceGetGetOK, 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 service API client.

type ServiceLinkResourcePostPostBadRequest

type ServiceLinkResourcePostPostBadRequest struct {
}

ServiceLinkResourcePostPostBadRequest describes a response with status code 400, with default header values.

Bad Parameter

func NewServiceLinkResourcePostPostBadRequest

func NewServiceLinkResourcePostPostBadRequest() *ServiceLinkResourcePostPostBadRequest

NewServiceLinkResourcePostPostBadRequest creates a ServiceLinkResourcePostPostBadRequest with default headers values

func (*ServiceLinkResourcePostPostBadRequest) Code

Code gets the status code for the service link resource post post bad request response

func (*ServiceLinkResourcePostPostBadRequest) Error

func (*ServiceLinkResourcePostPostBadRequest) IsClientError

func (o *ServiceLinkResourcePostPostBadRequest) IsClientError() bool

IsClientError returns true when this service link resource post post bad request response has a 4xx status code

func (*ServiceLinkResourcePostPostBadRequest) IsCode

IsCode returns true when this service link resource post post bad request response a status code equal to that given

func (*ServiceLinkResourcePostPostBadRequest) IsRedirect

IsRedirect returns true when this service link resource post post bad request response has a 3xx status code

func (*ServiceLinkResourcePostPostBadRequest) IsServerError

func (o *ServiceLinkResourcePostPostBadRequest) IsServerError() bool

IsServerError returns true when this service link resource post post bad request response has a 5xx status code

func (*ServiceLinkResourcePostPostBadRequest) IsSuccess

IsSuccess returns true when this service link resource post post bad request response has a 2xx status code

func (*ServiceLinkResourcePostPostBadRequest) String

type ServiceLinkResourcePostPostOK

type ServiceLinkResourcePostPostOK struct {
	Payload string
}

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

Ok

func NewServiceLinkResourcePostPostOK

func NewServiceLinkResourcePostPostOK() *ServiceLinkResourcePostPostOK

NewServiceLinkResourcePostPostOK creates a ServiceLinkResourcePostPostOK with default headers values

func (*ServiceLinkResourcePostPostOK) Code

Code gets the status code for the service link resource post post o k response

func (*ServiceLinkResourcePostPostOK) Error

func (*ServiceLinkResourcePostPostOK) GetPayload

func (o *ServiceLinkResourcePostPostOK) GetPayload() string

func (*ServiceLinkResourcePostPostOK) IsClientError

func (o *ServiceLinkResourcePostPostOK) IsClientError() bool

IsClientError returns true when this service link resource post post o k response has a 4xx status code

func (*ServiceLinkResourcePostPostOK) IsCode

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

IsCode returns true when this service link resource post post o k response a status code equal to that given

func (*ServiceLinkResourcePostPostOK) IsRedirect

func (o *ServiceLinkResourcePostPostOK) IsRedirect() bool

IsRedirect returns true when this service link resource post post o k response has a 3xx status code

func (*ServiceLinkResourcePostPostOK) IsServerError

func (o *ServiceLinkResourcePostPostOK) IsServerError() bool

IsServerError returns true when this service link resource post post o k response has a 5xx status code

func (*ServiceLinkResourcePostPostOK) IsSuccess

func (o *ServiceLinkResourcePostPostOK) IsSuccess() bool

IsSuccess returns true when this service link resource post post o k response has a 2xx status code

func (*ServiceLinkResourcePostPostOK) String

type ServiceLinkResourcePostPostParams

type ServiceLinkResourcePostPostParams struct {

	/* ServiceID.

	   The service id
	*/
	ServiceID string

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

ServiceLinkResourcePostPostParams contains all the parameters to send to the API endpoint

for the service link resource post post operation.

Typically these are written to a http.Request.

func NewServiceLinkResourcePostPostParams

func NewServiceLinkResourcePostPostParams() *ServiceLinkResourcePostPostParams

NewServiceLinkResourcePostPostParams creates a new ServiceLinkResourcePostPostParams 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 NewServiceLinkResourcePostPostParamsWithContext

func NewServiceLinkResourcePostPostParamsWithContext(ctx context.Context) *ServiceLinkResourcePostPostParams

NewServiceLinkResourcePostPostParamsWithContext creates a new ServiceLinkResourcePostPostParams object with the ability to set a context for a request.

func NewServiceLinkResourcePostPostParamsWithHTTPClient

func NewServiceLinkResourcePostPostParamsWithHTTPClient(client *http.Client) *ServiceLinkResourcePostPostParams

NewServiceLinkResourcePostPostParamsWithHTTPClient creates a new ServiceLinkResourcePostPostParams object with the ability to set a custom HTTPClient for a request.

func NewServiceLinkResourcePostPostParamsWithTimeout

func NewServiceLinkResourcePostPostParamsWithTimeout(timeout time.Duration) *ServiceLinkResourcePostPostParams

NewServiceLinkResourcePostPostParamsWithTimeout creates a new ServiceLinkResourcePostPostParams object with the ability to set a timeout on a request.

func (*ServiceLinkResourcePostPostParams) SetContext

SetContext adds the context to the service link resource post post params

func (*ServiceLinkResourcePostPostParams) SetDefaults

func (o *ServiceLinkResourcePostPostParams) SetDefaults()

SetDefaults hydrates default values in the service link resource post post params (not the query body).

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

func (*ServiceLinkResourcePostPostParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the service link resource post post params

func (*ServiceLinkResourcePostPostParams) SetServiceID

func (o *ServiceLinkResourcePostPostParams) SetServiceID(serviceID string)

SetServiceID adds the serviceId to the service link resource post post params

func (*ServiceLinkResourcePostPostParams) SetTimeout

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

SetTimeout adds the timeout to the service link resource post post params

func (*ServiceLinkResourcePostPostParams) WithContext

WithContext adds the context to the service link resource post post params

func (*ServiceLinkResourcePostPostParams) WithDefaults

WithDefaults hydrates default values in the service link resource post post params (not the query body).

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

func (*ServiceLinkResourcePostPostParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the service link resource post post params

func (*ServiceLinkResourcePostPostParams) WithServiceID

WithServiceID adds the serviceID to the service link resource post post params

func (*ServiceLinkResourcePostPostParams) WithTimeout

WithTimeout adds the timeout to the service link resource post post params

func (*ServiceLinkResourcePostPostParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ServiceLinkResourcePostPostReader

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

ServiceLinkResourcePostPostReader is a Reader for the ServiceLinkResourcePostPost structure.

func (*ServiceLinkResourcePostPostReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ServiceLinkResourcePostPostUnauthorized

type ServiceLinkResourcePostPostUnauthorized struct {
}

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

Not authorized

func NewServiceLinkResourcePostPostUnauthorized

func NewServiceLinkResourcePostPostUnauthorized() *ServiceLinkResourcePostPostUnauthorized

NewServiceLinkResourcePostPostUnauthorized creates a ServiceLinkResourcePostPostUnauthorized with default headers values

func (*ServiceLinkResourcePostPostUnauthorized) Code

Code gets the status code for the service link resource post post unauthorized response

func (*ServiceLinkResourcePostPostUnauthorized) Error

func (*ServiceLinkResourcePostPostUnauthorized) IsClientError

func (o *ServiceLinkResourcePostPostUnauthorized) IsClientError() bool

IsClientError returns true when this service link resource post post unauthorized response has a 4xx status code

func (*ServiceLinkResourcePostPostUnauthorized) IsCode

IsCode returns true when this service link resource post post unauthorized response a status code equal to that given

func (*ServiceLinkResourcePostPostUnauthorized) IsRedirect

IsRedirect returns true when this service link resource post post unauthorized response has a 3xx status code

func (*ServiceLinkResourcePostPostUnauthorized) IsServerError

func (o *ServiceLinkResourcePostPostUnauthorized) IsServerError() bool

IsServerError returns true when this service link resource post post unauthorized response has a 5xx status code

func (*ServiceLinkResourcePostPostUnauthorized) IsSuccess

IsSuccess returns true when this service link resource post post unauthorized response has a 2xx status code

func (*ServiceLinkResourcePostPostUnauthorized) String

type ServiceResourceGetGetOK

type ServiceResourceGetGetOK struct {
	Payload *models.Service
}

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

successful operation

func NewServiceResourceGetGetOK

func NewServiceResourceGetGetOK() *ServiceResourceGetGetOK

NewServiceResourceGetGetOK creates a ServiceResourceGetGetOK with default headers values

func (*ServiceResourceGetGetOK) Code

func (o *ServiceResourceGetGetOK) Code() int

Code gets the status code for the service resource get get o k response

func (*ServiceResourceGetGetOK) Error

func (o *ServiceResourceGetGetOK) Error() string

func (*ServiceResourceGetGetOK) GetPayload

func (o *ServiceResourceGetGetOK) GetPayload() *models.Service

func (*ServiceResourceGetGetOK) IsClientError

func (o *ServiceResourceGetGetOK) IsClientError() bool

IsClientError returns true when this service resource get get o k response has a 4xx status code

func (*ServiceResourceGetGetOK) IsCode

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

IsCode returns true when this service resource get get o k response a status code equal to that given

func (*ServiceResourceGetGetOK) IsRedirect

func (o *ServiceResourceGetGetOK) IsRedirect() bool

IsRedirect returns true when this service resource get get o k response has a 3xx status code

func (*ServiceResourceGetGetOK) IsServerError

func (o *ServiceResourceGetGetOK) IsServerError() bool

IsServerError returns true when this service resource get get o k response has a 5xx status code

func (*ServiceResourceGetGetOK) IsSuccess

func (o *ServiceResourceGetGetOK) IsSuccess() bool

IsSuccess returns true when this service resource get get o k response has a 2xx status code

func (*ServiceResourceGetGetOK) String

func (o *ServiceResourceGetGetOK) String() string

type ServiceResourceGetGetParams

type ServiceResourceGetGetParams struct {

	/* ServiceID.

	   The service id
	*/
	ServiceID string

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

ServiceResourceGetGetParams contains all the parameters to send to the API endpoint

for the service resource get get operation.

Typically these are written to a http.Request.

func NewServiceResourceGetGetParams

func NewServiceResourceGetGetParams() *ServiceResourceGetGetParams

NewServiceResourceGetGetParams creates a new ServiceResourceGetGetParams 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 NewServiceResourceGetGetParamsWithContext

func NewServiceResourceGetGetParamsWithContext(ctx context.Context) *ServiceResourceGetGetParams

NewServiceResourceGetGetParamsWithContext creates a new ServiceResourceGetGetParams object with the ability to set a context for a request.

func NewServiceResourceGetGetParamsWithHTTPClient

func NewServiceResourceGetGetParamsWithHTTPClient(client *http.Client) *ServiceResourceGetGetParams

NewServiceResourceGetGetParamsWithHTTPClient creates a new ServiceResourceGetGetParams object with the ability to set a custom HTTPClient for a request.

func NewServiceResourceGetGetParamsWithTimeout

func NewServiceResourceGetGetParamsWithTimeout(timeout time.Duration) *ServiceResourceGetGetParams

NewServiceResourceGetGetParamsWithTimeout creates a new ServiceResourceGetGetParams object with the ability to set a timeout on a request.

func (*ServiceResourceGetGetParams) SetContext

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

SetContext adds the context to the service resource get get params

func (*ServiceResourceGetGetParams) SetDefaults

func (o *ServiceResourceGetGetParams) SetDefaults()

SetDefaults hydrates default values in the service resource get get params (not the query body).

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

func (*ServiceResourceGetGetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the service resource get get params

func (*ServiceResourceGetGetParams) SetServiceID

func (o *ServiceResourceGetGetParams) SetServiceID(serviceID string)

SetServiceID adds the serviceId to the service resource get get params

func (*ServiceResourceGetGetParams) SetTimeout

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

SetTimeout adds the timeout to the service resource get get params

func (*ServiceResourceGetGetParams) WithContext

WithContext adds the context to the service resource get get params

func (*ServiceResourceGetGetParams) WithDefaults

WithDefaults hydrates default values in the service resource get get params (not the query body).

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

func (*ServiceResourceGetGetParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the service resource get get params

func (*ServiceResourceGetGetParams) WithServiceID

func (o *ServiceResourceGetGetParams) WithServiceID(serviceID string) *ServiceResourceGetGetParams

WithServiceID adds the serviceID to the service resource get get params

func (*ServiceResourceGetGetParams) WithTimeout

WithTimeout adds the timeout to the service resource get get params

func (*ServiceResourceGetGetParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ServiceResourceGetGetReader

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

ServiceResourceGetGetReader is a Reader for the ServiceResourceGetGet structure.

func (*ServiceResourceGetGetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ServiceResourceGetGetUnauthorized

type ServiceResourceGetGetUnauthorized struct {
}

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

Not authorized

func NewServiceResourceGetGetUnauthorized

func NewServiceResourceGetGetUnauthorized() *ServiceResourceGetGetUnauthorized

NewServiceResourceGetGetUnauthorized creates a ServiceResourceGetGetUnauthorized with default headers values

func (*ServiceResourceGetGetUnauthorized) Code

Code gets the status code for the service resource get get unauthorized response

func (*ServiceResourceGetGetUnauthorized) Error

func (*ServiceResourceGetGetUnauthorized) IsClientError

func (o *ServiceResourceGetGetUnauthorized) IsClientError() bool

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

func (*ServiceResourceGetGetUnauthorized) IsCode

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

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

func (*ServiceResourceGetGetUnauthorized) IsRedirect

func (o *ServiceResourceGetGetUnauthorized) IsRedirect() bool

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

func (*ServiceResourceGetGetUnauthorized) IsServerError

func (o *ServiceResourceGetGetUnauthorized) IsServerError() bool

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

func (*ServiceResourceGetGetUnauthorized) IsSuccess

func (o *ServiceResourceGetGetUnauthorized) IsSuccess() bool

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

func (*ServiceResourceGetGetUnauthorized) String

type ServiceSyncResourcePostPostBadRequest

type ServiceSyncResourcePostPostBadRequest struct {
}

ServiceSyncResourcePostPostBadRequest describes a response with status code 400, with default header values.

Bad Parameter

func NewServiceSyncResourcePostPostBadRequest

func NewServiceSyncResourcePostPostBadRequest() *ServiceSyncResourcePostPostBadRequest

NewServiceSyncResourcePostPostBadRequest creates a ServiceSyncResourcePostPostBadRequest with default headers values

func (*ServiceSyncResourcePostPostBadRequest) Code

Code gets the status code for the service sync resource post post bad request response

func (*ServiceSyncResourcePostPostBadRequest) Error

func (*ServiceSyncResourcePostPostBadRequest) IsClientError

func (o *ServiceSyncResourcePostPostBadRequest) IsClientError() bool

IsClientError returns true when this service sync resource post post bad request response has a 4xx status code

func (*ServiceSyncResourcePostPostBadRequest) IsCode

IsCode returns true when this service sync resource post post bad request response a status code equal to that given

func (*ServiceSyncResourcePostPostBadRequest) IsRedirect

IsRedirect returns true when this service sync resource post post bad request response has a 3xx status code

func (*ServiceSyncResourcePostPostBadRequest) IsServerError

func (o *ServiceSyncResourcePostPostBadRequest) IsServerError() bool

IsServerError returns true when this service sync resource post post bad request response has a 5xx status code

func (*ServiceSyncResourcePostPostBadRequest) IsSuccess

IsSuccess returns true when this service sync resource post post bad request response has a 2xx status code

func (*ServiceSyncResourcePostPostBadRequest) String

type ServiceSyncResourcePostPostNoContent

type ServiceSyncResourcePostPostNoContent struct {
}

ServiceSyncResourcePostPostNoContent describes a response with status code 204, with default header values.

Ok

func NewServiceSyncResourcePostPostNoContent

func NewServiceSyncResourcePostPostNoContent() *ServiceSyncResourcePostPostNoContent

NewServiceSyncResourcePostPostNoContent creates a ServiceSyncResourcePostPostNoContent with default headers values

func (*ServiceSyncResourcePostPostNoContent) Code

Code gets the status code for the service sync resource post post no content response

func (*ServiceSyncResourcePostPostNoContent) Error

func (*ServiceSyncResourcePostPostNoContent) IsClientError

func (o *ServiceSyncResourcePostPostNoContent) IsClientError() bool

IsClientError returns true when this service sync resource post post no content response has a 4xx status code

func (*ServiceSyncResourcePostPostNoContent) IsCode

IsCode returns true when this service sync resource post post no content response a status code equal to that given

func (*ServiceSyncResourcePostPostNoContent) IsRedirect

IsRedirect returns true when this service sync resource post post no content response has a 3xx status code

func (*ServiceSyncResourcePostPostNoContent) IsServerError

func (o *ServiceSyncResourcePostPostNoContent) IsServerError() bool

IsServerError returns true when this service sync resource post post no content response has a 5xx status code

func (*ServiceSyncResourcePostPostNoContent) IsSuccess

IsSuccess returns true when this service sync resource post post no content response has a 2xx status code

func (*ServiceSyncResourcePostPostNoContent) String

type ServiceSyncResourcePostPostParams

type ServiceSyncResourcePostPostParams struct {

	/* ServiceID.

	   The service id
	*/
	ServiceID string

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

ServiceSyncResourcePostPostParams contains all the parameters to send to the API endpoint

for the service sync resource post post operation.

Typically these are written to a http.Request.

func NewServiceSyncResourcePostPostParams

func NewServiceSyncResourcePostPostParams() *ServiceSyncResourcePostPostParams

NewServiceSyncResourcePostPostParams creates a new ServiceSyncResourcePostPostParams 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 NewServiceSyncResourcePostPostParamsWithContext

func NewServiceSyncResourcePostPostParamsWithContext(ctx context.Context) *ServiceSyncResourcePostPostParams

NewServiceSyncResourcePostPostParamsWithContext creates a new ServiceSyncResourcePostPostParams object with the ability to set a context for a request.

func NewServiceSyncResourcePostPostParamsWithHTTPClient

func NewServiceSyncResourcePostPostParamsWithHTTPClient(client *http.Client) *ServiceSyncResourcePostPostParams

NewServiceSyncResourcePostPostParamsWithHTTPClient creates a new ServiceSyncResourcePostPostParams object with the ability to set a custom HTTPClient for a request.

func NewServiceSyncResourcePostPostParamsWithTimeout

func NewServiceSyncResourcePostPostParamsWithTimeout(timeout time.Duration) *ServiceSyncResourcePostPostParams

NewServiceSyncResourcePostPostParamsWithTimeout creates a new ServiceSyncResourcePostPostParams object with the ability to set a timeout on a request.

func (*ServiceSyncResourcePostPostParams) SetContext

SetContext adds the context to the service sync resource post post params

func (*ServiceSyncResourcePostPostParams) SetDefaults

func (o *ServiceSyncResourcePostPostParams) SetDefaults()

SetDefaults hydrates default values in the service sync resource post post params (not the query body).

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

func (*ServiceSyncResourcePostPostParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the service sync resource post post params

func (*ServiceSyncResourcePostPostParams) SetServiceID

func (o *ServiceSyncResourcePostPostParams) SetServiceID(serviceID string)

SetServiceID adds the serviceId to the service sync resource post post params

func (*ServiceSyncResourcePostPostParams) SetTimeout

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

SetTimeout adds the timeout to the service sync resource post post params

func (*ServiceSyncResourcePostPostParams) WithContext

WithContext adds the context to the service sync resource post post params

func (*ServiceSyncResourcePostPostParams) WithDefaults

WithDefaults hydrates default values in the service sync resource post post params (not the query body).

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

func (*ServiceSyncResourcePostPostParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the service sync resource post post params

func (*ServiceSyncResourcePostPostParams) WithServiceID

WithServiceID adds the serviceID to the service sync resource post post params

func (*ServiceSyncResourcePostPostParams) WithTimeout

WithTimeout adds the timeout to the service sync resource post post params

func (*ServiceSyncResourcePostPostParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ServiceSyncResourcePostPostReader

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

ServiceSyncResourcePostPostReader is a Reader for the ServiceSyncResourcePostPost structure.

func (*ServiceSyncResourcePostPostReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ServiceSyncResourcePostPostUnauthorized

type ServiceSyncResourcePostPostUnauthorized struct {
}

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

Not authorized

func NewServiceSyncResourcePostPostUnauthorized

func NewServiceSyncResourcePostPostUnauthorized() *ServiceSyncResourcePostPostUnauthorized

NewServiceSyncResourcePostPostUnauthorized creates a ServiceSyncResourcePostPostUnauthorized with default headers values

func (*ServiceSyncResourcePostPostUnauthorized) Code

Code gets the status code for the service sync resource post post unauthorized response

func (*ServiceSyncResourcePostPostUnauthorized) Error

func (*ServiceSyncResourcePostPostUnauthorized) IsClientError

func (o *ServiceSyncResourcePostPostUnauthorized) IsClientError() bool

IsClientError returns true when this service sync resource post post unauthorized response has a 4xx status code

func (*ServiceSyncResourcePostPostUnauthorized) IsCode

IsCode returns true when this service sync resource post post unauthorized response a status code equal to that given

func (*ServiceSyncResourcePostPostUnauthorized) IsRedirect

IsRedirect returns true when this service sync resource post post unauthorized response has a 3xx status code

func (*ServiceSyncResourcePostPostUnauthorized) IsServerError

func (o *ServiceSyncResourcePostPostUnauthorized) IsServerError() bool

IsServerError returns true when this service sync resource post post unauthorized response has a 5xx status code

func (*ServiceSyncResourcePostPostUnauthorized) IsSuccess

IsSuccess returns true when this service sync resource post post unauthorized response has a 2xx status code

func (*ServiceSyncResourcePostPostUnauthorized) String

type ServiceUnlinkResourcePostPostBadRequest

type ServiceUnlinkResourcePostPostBadRequest struct {
}

ServiceUnlinkResourcePostPostBadRequest describes a response with status code 400, with default header values.

Bad Parameter

func NewServiceUnlinkResourcePostPostBadRequest

func NewServiceUnlinkResourcePostPostBadRequest() *ServiceUnlinkResourcePostPostBadRequest

NewServiceUnlinkResourcePostPostBadRequest creates a ServiceUnlinkResourcePostPostBadRequest with default headers values

func (*ServiceUnlinkResourcePostPostBadRequest) Code

Code gets the status code for the service unlink resource post post bad request response

func (*ServiceUnlinkResourcePostPostBadRequest) Error

func (*ServiceUnlinkResourcePostPostBadRequest) IsClientError

func (o *ServiceUnlinkResourcePostPostBadRequest) IsClientError() bool

IsClientError returns true when this service unlink resource post post bad request response has a 4xx status code

func (*ServiceUnlinkResourcePostPostBadRequest) IsCode

IsCode returns true when this service unlink resource post post bad request response a status code equal to that given

func (*ServiceUnlinkResourcePostPostBadRequest) IsRedirect

IsRedirect returns true when this service unlink resource post post bad request response has a 3xx status code

func (*ServiceUnlinkResourcePostPostBadRequest) IsServerError

func (o *ServiceUnlinkResourcePostPostBadRequest) IsServerError() bool

IsServerError returns true when this service unlink resource post post bad request response has a 5xx status code

func (*ServiceUnlinkResourcePostPostBadRequest) IsSuccess

IsSuccess returns true when this service unlink resource post post bad request response has a 2xx status code

func (*ServiceUnlinkResourcePostPostBadRequest) String

type ServiceUnlinkResourcePostPostNoContent

type ServiceUnlinkResourcePostPostNoContent struct {
}

ServiceUnlinkResourcePostPostNoContent describes a response with status code 204, with default header values.

Ok

func NewServiceUnlinkResourcePostPostNoContent

func NewServiceUnlinkResourcePostPostNoContent() *ServiceUnlinkResourcePostPostNoContent

NewServiceUnlinkResourcePostPostNoContent creates a ServiceUnlinkResourcePostPostNoContent with default headers values

func (*ServiceUnlinkResourcePostPostNoContent) Code

Code gets the status code for the service unlink resource post post no content response

func (*ServiceUnlinkResourcePostPostNoContent) Error

func (*ServiceUnlinkResourcePostPostNoContent) IsClientError

func (o *ServiceUnlinkResourcePostPostNoContent) IsClientError() bool

IsClientError returns true when this service unlink resource post post no content response has a 4xx status code

func (*ServiceUnlinkResourcePostPostNoContent) IsCode

IsCode returns true when this service unlink resource post post no content response a status code equal to that given

func (*ServiceUnlinkResourcePostPostNoContent) IsRedirect

IsRedirect returns true when this service unlink resource post post no content response has a 3xx status code

func (*ServiceUnlinkResourcePostPostNoContent) IsServerError

func (o *ServiceUnlinkResourcePostPostNoContent) IsServerError() bool

IsServerError returns true when this service unlink resource post post no content response has a 5xx status code

func (*ServiceUnlinkResourcePostPostNoContent) IsSuccess

IsSuccess returns true when this service unlink resource post post no content response has a 2xx status code

func (*ServiceUnlinkResourcePostPostNoContent) String

type ServiceUnlinkResourcePostPostParams

type ServiceUnlinkResourcePostPostParams struct {

	/* ServiceID.

	   The service id
	*/
	ServiceID string

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

ServiceUnlinkResourcePostPostParams contains all the parameters to send to the API endpoint

for the service unlink resource post post operation.

Typically these are written to a http.Request.

func NewServiceUnlinkResourcePostPostParams

func NewServiceUnlinkResourcePostPostParams() *ServiceUnlinkResourcePostPostParams

NewServiceUnlinkResourcePostPostParams creates a new ServiceUnlinkResourcePostPostParams 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 NewServiceUnlinkResourcePostPostParamsWithContext

func NewServiceUnlinkResourcePostPostParamsWithContext(ctx context.Context) *ServiceUnlinkResourcePostPostParams

NewServiceUnlinkResourcePostPostParamsWithContext creates a new ServiceUnlinkResourcePostPostParams object with the ability to set a context for a request.

func NewServiceUnlinkResourcePostPostParamsWithHTTPClient

func NewServiceUnlinkResourcePostPostParamsWithHTTPClient(client *http.Client) *ServiceUnlinkResourcePostPostParams

NewServiceUnlinkResourcePostPostParamsWithHTTPClient creates a new ServiceUnlinkResourcePostPostParams object with the ability to set a custom HTTPClient for a request.

func NewServiceUnlinkResourcePostPostParamsWithTimeout

func NewServiceUnlinkResourcePostPostParamsWithTimeout(timeout time.Duration) *ServiceUnlinkResourcePostPostParams

NewServiceUnlinkResourcePostPostParamsWithTimeout creates a new ServiceUnlinkResourcePostPostParams object with the ability to set a timeout on a request.

func (*ServiceUnlinkResourcePostPostParams) SetContext

SetContext adds the context to the service unlink resource post post params

func (*ServiceUnlinkResourcePostPostParams) SetDefaults

func (o *ServiceUnlinkResourcePostPostParams) SetDefaults()

SetDefaults hydrates default values in the service unlink resource post post params (not the query body).

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

func (*ServiceUnlinkResourcePostPostParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the service unlink resource post post params

func (*ServiceUnlinkResourcePostPostParams) SetServiceID

func (o *ServiceUnlinkResourcePostPostParams) SetServiceID(serviceID string)

SetServiceID adds the serviceId to the service unlink resource post post params

func (*ServiceUnlinkResourcePostPostParams) SetTimeout

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

SetTimeout adds the timeout to the service unlink resource post post params

func (*ServiceUnlinkResourcePostPostParams) WithContext

WithContext adds the context to the service unlink resource post post params

func (*ServiceUnlinkResourcePostPostParams) WithDefaults

WithDefaults hydrates default values in the service unlink resource post post params (not the query body).

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

func (*ServiceUnlinkResourcePostPostParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the service unlink resource post post params

func (*ServiceUnlinkResourcePostPostParams) WithServiceID

WithServiceID adds the serviceID to the service unlink resource post post params

func (*ServiceUnlinkResourcePostPostParams) WithTimeout

WithTimeout adds the timeout to the service unlink resource post post params

func (*ServiceUnlinkResourcePostPostParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ServiceUnlinkResourcePostPostReader

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

ServiceUnlinkResourcePostPostReader is a Reader for the ServiceUnlinkResourcePostPost structure.

func (*ServiceUnlinkResourcePostPostReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ServiceUnlinkResourcePostPostUnauthorized

type ServiceUnlinkResourcePostPostUnauthorized struct {
}

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

Not authorized

func NewServiceUnlinkResourcePostPostUnauthorized

func NewServiceUnlinkResourcePostPostUnauthorized() *ServiceUnlinkResourcePostPostUnauthorized

NewServiceUnlinkResourcePostPostUnauthorized creates a ServiceUnlinkResourcePostPostUnauthorized with default headers values

func (*ServiceUnlinkResourcePostPostUnauthorized) Code

Code gets the status code for the service unlink resource post post unauthorized response

func (*ServiceUnlinkResourcePostPostUnauthorized) Error

func (*ServiceUnlinkResourcePostPostUnauthorized) IsClientError

IsClientError returns true when this service unlink resource post post unauthorized response has a 4xx status code

func (*ServiceUnlinkResourcePostPostUnauthorized) IsCode

IsCode returns true when this service unlink resource post post unauthorized response a status code equal to that given

func (*ServiceUnlinkResourcePostPostUnauthorized) IsRedirect

IsRedirect returns true when this service unlink resource post post unauthorized response has a 3xx status code

func (*ServiceUnlinkResourcePostPostUnauthorized) IsServerError

IsServerError returns true when this service unlink resource post post unauthorized response has a 5xx status code

func (*ServiceUnlinkResourcePostPostUnauthorized) IsSuccess

IsSuccess returns true when this service unlink resource post post unauthorized response has a 2xx status code

func (*ServiceUnlinkResourcePostPostUnauthorized) String

type ServicesResourceGetGetOK

type ServicesResourceGetGetOK struct {
	Payload []*models.Service
}

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

successful operation

func NewServicesResourceGetGetOK

func NewServicesResourceGetGetOK() *ServicesResourceGetGetOK

NewServicesResourceGetGetOK creates a ServicesResourceGetGetOK with default headers values

func (*ServicesResourceGetGetOK) Code

func (o *ServicesResourceGetGetOK) Code() int

Code gets the status code for the services resource get get o k response

func (*ServicesResourceGetGetOK) Error

func (o *ServicesResourceGetGetOK) Error() string

func (*ServicesResourceGetGetOK) GetPayload

func (o *ServicesResourceGetGetOK) GetPayload() []*models.Service

func (*ServicesResourceGetGetOK) IsClientError

func (o *ServicesResourceGetGetOK) IsClientError() bool

IsClientError returns true when this services resource get get o k response has a 4xx status code

func (*ServicesResourceGetGetOK) IsCode

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

IsCode returns true when this services resource get get o k response a status code equal to that given

func (*ServicesResourceGetGetOK) IsRedirect

func (o *ServicesResourceGetGetOK) IsRedirect() bool

IsRedirect returns true when this services resource get get o k response has a 3xx status code

func (*ServicesResourceGetGetOK) IsServerError

func (o *ServicesResourceGetGetOK) IsServerError() bool

IsServerError returns true when this services resource get get o k response has a 5xx status code

func (*ServicesResourceGetGetOK) IsSuccess

func (o *ServicesResourceGetGetOK) IsSuccess() bool

IsSuccess returns true when this services resource get get o k response has a 2xx status code

func (*ServicesResourceGetGetOK) String

func (o *ServicesResourceGetGetOK) String() string

type ServicesResourceGetGetParams

type ServicesResourceGetGetParams struct {

	/* ServiceIds.

	   Filter for service IDs (comma-separated eg: airbnb,guesty,smoobu)
	*/
	ServiceIds *string

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

ServicesResourceGetGetParams contains all the parameters to send to the API endpoint

for the services resource get get operation.

Typically these are written to a http.Request.

func NewServicesResourceGetGetParams

func NewServicesResourceGetGetParams() *ServicesResourceGetGetParams

NewServicesResourceGetGetParams creates a new ServicesResourceGetGetParams 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 NewServicesResourceGetGetParamsWithContext

func NewServicesResourceGetGetParamsWithContext(ctx context.Context) *ServicesResourceGetGetParams

NewServicesResourceGetGetParamsWithContext creates a new ServicesResourceGetGetParams object with the ability to set a context for a request.

func NewServicesResourceGetGetParamsWithHTTPClient

func NewServicesResourceGetGetParamsWithHTTPClient(client *http.Client) *ServicesResourceGetGetParams

NewServicesResourceGetGetParamsWithHTTPClient creates a new ServicesResourceGetGetParams object with the ability to set a custom HTTPClient for a request.

func NewServicesResourceGetGetParamsWithTimeout

func NewServicesResourceGetGetParamsWithTimeout(timeout time.Duration) *ServicesResourceGetGetParams

NewServicesResourceGetGetParamsWithTimeout creates a new ServicesResourceGetGetParams object with the ability to set a timeout on a request.

func (*ServicesResourceGetGetParams) SetContext

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

SetContext adds the context to the services resource get get params

func (*ServicesResourceGetGetParams) SetDefaults

func (o *ServicesResourceGetGetParams) SetDefaults()

SetDefaults hydrates default values in the services resource get get params (not the query body).

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

func (*ServicesResourceGetGetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the services resource get get params

func (*ServicesResourceGetGetParams) SetServiceIds

func (o *ServicesResourceGetGetParams) SetServiceIds(serviceIds *string)

SetServiceIds adds the serviceIds to the services resource get get params

func (*ServicesResourceGetGetParams) SetTimeout

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

SetTimeout adds the timeout to the services resource get get params

func (*ServicesResourceGetGetParams) WithContext

WithContext adds the context to the services resource get get params

func (*ServicesResourceGetGetParams) WithDefaults

WithDefaults hydrates default values in the services resource get get params (not the query body).

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

func (*ServicesResourceGetGetParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the services resource get get params

func (*ServicesResourceGetGetParams) WithServiceIds

func (o *ServicesResourceGetGetParams) WithServiceIds(serviceIds *string) *ServicesResourceGetGetParams

WithServiceIds adds the serviceIds to the services resource get get params

func (*ServicesResourceGetGetParams) WithTimeout

WithTimeout adds the timeout to the services resource get get params

func (*ServicesResourceGetGetParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ServicesResourceGetGetReader

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

ServicesResourceGetGetReader is a Reader for the ServicesResourceGetGet structure.

func (*ServicesResourceGetGetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ServicesResourceGetGetUnauthorized

type ServicesResourceGetGetUnauthorized struct {
}

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

Not authorized

func NewServicesResourceGetGetUnauthorized

func NewServicesResourceGetGetUnauthorized() *ServicesResourceGetGetUnauthorized

NewServicesResourceGetGetUnauthorized creates a ServicesResourceGetGetUnauthorized with default headers values

func (*ServicesResourceGetGetUnauthorized) Code

Code gets the status code for the services resource get get unauthorized response

func (*ServicesResourceGetGetUnauthorized) Error

func (*ServicesResourceGetGetUnauthorized) IsClientError

func (o *ServicesResourceGetGetUnauthorized) IsClientError() bool

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

func (*ServicesResourceGetGetUnauthorized) IsCode

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

func (*ServicesResourceGetGetUnauthorized) IsRedirect

func (o *ServicesResourceGetGetUnauthorized) IsRedirect() bool

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

func (*ServicesResourceGetGetUnauthorized) IsServerError

func (o *ServicesResourceGetGetUnauthorized) IsServerError() bool

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

func (*ServicesResourceGetGetUnauthorized) IsSuccess

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

func (*ServicesResourceGetGetUnauthorized) String

Jump to

Keyboard shortcuts

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