operations

package
v0.0.0-...-c4b140d Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2023 License: GPL-3.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 operations API

func (*Client) ContactSourceCleanUp

func (a *Client) ContactSourceCleanUp(params *ContactSourceCleanUpParams, opts ...ClientOption) (*ContactSourceCleanUpOK, error)

ContactSourceCleanUp cleans up job after deleting a contact source

func (*Client) PullContactSource

func (a *Client) PullContactSource(params *PullContactSourceParams, opts ...ClientOption) (*PullContactSourceOK, error)

PullContactSource syncs all contacts from a contact source

func (*Client) PullContacts

func (a *Client) PullContacts(params *PullContactsParams, opts ...ClientOption) (*PullContactsOK, error)

PullContacts publishes pull contact source for contact sources

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 {
	ContactSourceCleanUp(params *ContactSourceCleanUpParams, opts ...ClientOption) (*ContactSourceCleanUpOK, error)

	PullContactSource(params *PullContactSourceParams, opts ...ClientOption) (*PullContactSourceOK, error)

	PullContacts(params *PullContactsParams, opts ...ClientOption) (*PullContactsOK, 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 operations API client.

type ContactSourceCleanUpBadRequest

type ContactSourceCleanUpBadRequest struct {
	Payload *models.JobError
}
ContactSourceCleanUpBadRequest describes a response with status code 400, with default header values.

Error

func NewContactSourceCleanUpBadRequest

func NewContactSourceCleanUpBadRequest() *ContactSourceCleanUpBadRequest

NewContactSourceCleanUpBadRequest creates a ContactSourceCleanUpBadRequest with default headers values

func (*ContactSourceCleanUpBadRequest) Error

func (*ContactSourceCleanUpBadRequest) GetPayload

type ContactSourceCleanUpOK

type ContactSourceCleanUpOK struct {
	Payload *models.JobSuccess
}
ContactSourceCleanUpOK describes a response with status code 200, with default header values.

Triggered

func NewContactSourceCleanUpOK

func NewContactSourceCleanUpOK() *ContactSourceCleanUpOK

NewContactSourceCleanUpOK creates a ContactSourceCleanUpOK with default headers values

func (*ContactSourceCleanUpOK) Error

func (o *ContactSourceCleanUpOK) Error() string

func (*ContactSourceCleanUpOK) GetPayload

func (o *ContactSourceCleanUpOK) GetPayload() *models.JobSuccess

type ContactSourceCleanUpParams

type ContactSourceCleanUpParams struct {

	// Body.
	Body *models.PubsubMessage

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

ContactSourceCleanUpParams contains all the parameters to send to the API endpoint

for the contact source clean up operation.

Typically these are written to a http.Request.

func NewContactSourceCleanUpParams

func NewContactSourceCleanUpParams() *ContactSourceCleanUpParams

NewContactSourceCleanUpParams creates a new ContactSourceCleanUpParams 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 NewContactSourceCleanUpParamsWithContext

func NewContactSourceCleanUpParamsWithContext(ctx context.Context) *ContactSourceCleanUpParams

NewContactSourceCleanUpParamsWithContext creates a new ContactSourceCleanUpParams object with the ability to set a context for a request.

func NewContactSourceCleanUpParamsWithHTTPClient

func NewContactSourceCleanUpParamsWithHTTPClient(client *http.Client) *ContactSourceCleanUpParams

NewContactSourceCleanUpParamsWithHTTPClient creates a new ContactSourceCleanUpParams object with the ability to set a custom HTTPClient for a request.

func NewContactSourceCleanUpParamsWithTimeout

func NewContactSourceCleanUpParamsWithTimeout(timeout time.Duration) *ContactSourceCleanUpParams

NewContactSourceCleanUpParamsWithTimeout creates a new ContactSourceCleanUpParams object with the ability to set a timeout on a request.

func (*ContactSourceCleanUpParams) SetBody

SetBody adds the body to the contact source clean up params

func (*ContactSourceCleanUpParams) SetContext

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

SetContext adds the context to the contact source clean up params

func (*ContactSourceCleanUpParams) SetDefaults

func (o *ContactSourceCleanUpParams) SetDefaults()

SetDefaults hydrates default values in the contact source clean up params (not the query body).

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

func (*ContactSourceCleanUpParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the contact source clean up params

func (*ContactSourceCleanUpParams) SetTimeout

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

SetTimeout adds the timeout to the contact source clean up params

func (*ContactSourceCleanUpParams) WithBody

WithBody adds the body to the contact source clean up params

func (*ContactSourceCleanUpParams) WithContext

WithContext adds the context to the contact source clean up params

func (*ContactSourceCleanUpParams) WithDefaults

WithDefaults hydrates default values in the contact source clean up params (not the query body).

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

func (*ContactSourceCleanUpParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the contact source clean up params

func (*ContactSourceCleanUpParams) WithTimeout

WithTimeout adds the timeout to the contact source clean up params

func (*ContactSourceCleanUpParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ContactSourceCleanUpReader

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

ContactSourceCleanUpReader is a Reader for the ContactSourceCleanUp structure.

func (*ContactSourceCleanUpReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PullContactSourceBadRequest

type PullContactSourceBadRequest struct {
	Payload *models.JobError
}
PullContactSourceBadRequest describes a response with status code 400, with default header values.

Error

func NewPullContactSourceBadRequest

func NewPullContactSourceBadRequest() *PullContactSourceBadRequest

NewPullContactSourceBadRequest creates a PullContactSourceBadRequest with default headers values

func (*PullContactSourceBadRequest) Error

func (*PullContactSourceBadRequest) GetPayload

func (o *PullContactSourceBadRequest) GetPayload() *models.JobError

type PullContactSourceOK

type PullContactSourceOK struct {
	Payload *models.JobSuccess
}
PullContactSourceOK describes a response with status code 200, with default header values.

Triggered

func NewPullContactSourceOK

func NewPullContactSourceOK() *PullContactSourceOK

NewPullContactSourceOK creates a PullContactSourceOK with default headers values

func (*PullContactSourceOK) Error

func (o *PullContactSourceOK) Error() string

func (*PullContactSourceOK) GetPayload

func (o *PullContactSourceOK) GetPayload() *models.JobSuccess

type PullContactSourceParams

type PullContactSourceParams struct {

	// Body.
	Body *models.PubsubMessage

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

PullContactSourceParams contains all the parameters to send to the API endpoint

for the pull contact source operation.

Typically these are written to a http.Request.

func NewPullContactSourceParams

func NewPullContactSourceParams() *PullContactSourceParams

NewPullContactSourceParams creates a new PullContactSourceParams 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 NewPullContactSourceParamsWithContext

func NewPullContactSourceParamsWithContext(ctx context.Context) *PullContactSourceParams

NewPullContactSourceParamsWithContext creates a new PullContactSourceParams object with the ability to set a context for a request.

func NewPullContactSourceParamsWithHTTPClient

func NewPullContactSourceParamsWithHTTPClient(client *http.Client) *PullContactSourceParams

NewPullContactSourceParamsWithHTTPClient creates a new PullContactSourceParams object with the ability to set a custom HTTPClient for a request.

func NewPullContactSourceParamsWithTimeout

func NewPullContactSourceParamsWithTimeout(timeout time.Duration) *PullContactSourceParams

NewPullContactSourceParamsWithTimeout creates a new PullContactSourceParams object with the ability to set a timeout on a request.

func (*PullContactSourceParams) SetBody

func (o *PullContactSourceParams) SetBody(body *models.PubsubMessage)

SetBody adds the body to the pull contact source params

func (*PullContactSourceParams) SetContext

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

SetContext adds the context to the pull contact source params

func (*PullContactSourceParams) SetDefaults

func (o *PullContactSourceParams) SetDefaults()

SetDefaults hydrates default values in the pull contact source params (not the query body).

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

func (*PullContactSourceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the pull contact source params

func (*PullContactSourceParams) SetTimeout

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

SetTimeout adds the timeout to the pull contact source params

func (*PullContactSourceParams) WithBody

WithBody adds the body to the pull contact source params

func (*PullContactSourceParams) WithContext

WithContext adds the context to the pull contact source params

func (*PullContactSourceParams) WithDefaults

WithDefaults hydrates default values in the pull contact source params (not the query body).

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

func (*PullContactSourceParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the pull contact source params

func (*PullContactSourceParams) WithTimeout

WithTimeout adds the timeout to the pull contact source params

func (*PullContactSourceParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PullContactSourceReader

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

PullContactSourceReader is a Reader for the PullContactSource structure.

func (*PullContactSourceReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PullContactsBadRequest

type PullContactsBadRequest struct {
	Payload *models.JobError
}
PullContactsBadRequest describes a response with status code 400, with default header values.

Error

func NewPullContactsBadRequest

func NewPullContactsBadRequest() *PullContactsBadRequest

NewPullContactsBadRequest creates a PullContactsBadRequest with default headers values

func (*PullContactsBadRequest) Error

func (o *PullContactsBadRequest) Error() string

func (*PullContactsBadRequest) GetPayload

func (o *PullContactsBadRequest) GetPayload() *models.JobError

type PullContactsOK

type PullContactsOK struct {
	Payload *models.JobSuccess
}
PullContactsOK describes a response with status code 200, with default header values.

Triggered

func NewPullContactsOK

func NewPullContactsOK() *PullContactsOK

NewPullContactsOK creates a PullContactsOK with default headers values

func (*PullContactsOK) Error

func (o *PullContactsOK) Error() string

func (*PullContactsOK) GetPayload

func (o *PullContactsOK) GetPayload() *models.JobSuccess

type PullContactsParams

type PullContactsParams struct {

	// Body.
	Body *models.PubsubMessage

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

PullContactsParams contains all the parameters to send to the API endpoint

for the pull contacts operation.

Typically these are written to a http.Request.

func NewPullContactsParams

func NewPullContactsParams() *PullContactsParams

NewPullContactsParams creates a new PullContactsParams 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 NewPullContactsParamsWithContext

func NewPullContactsParamsWithContext(ctx context.Context) *PullContactsParams

NewPullContactsParamsWithContext creates a new PullContactsParams object with the ability to set a context for a request.

func NewPullContactsParamsWithHTTPClient

func NewPullContactsParamsWithHTTPClient(client *http.Client) *PullContactsParams

NewPullContactsParamsWithHTTPClient creates a new PullContactsParams object with the ability to set a custom HTTPClient for a request.

func NewPullContactsParamsWithTimeout

func NewPullContactsParamsWithTimeout(timeout time.Duration) *PullContactsParams

NewPullContactsParamsWithTimeout creates a new PullContactsParams object with the ability to set a timeout on a request.

func (*PullContactsParams) SetBody

func (o *PullContactsParams) SetBody(body *models.PubsubMessage)

SetBody adds the body to the pull contacts params

func (*PullContactsParams) SetContext

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

SetContext adds the context to the pull contacts params

func (*PullContactsParams) SetDefaults

func (o *PullContactsParams) SetDefaults()

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

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

func (*PullContactsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the pull contacts params

func (*PullContactsParams) SetTimeout

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

SetTimeout adds the timeout to the pull contacts params

func (*PullContactsParams) WithBody

WithBody adds the body to the pull contacts params

func (*PullContactsParams) WithContext

WithContext adds the context to the pull contacts params

func (*PullContactsParams) WithDefaults

func (o *PullContactsParams) WithDefaults() *PullContactsParams

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

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

func (*PullContactsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the pull contacts params

func (*PullContactsParams) WithTimeout

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

WithTimeout adds the timeout to the pull contacts params

func (*PullContactsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PullContactsReader

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

PullContactsReader is a Reader for the PullContacts structure.

func (*PullContactsReader) ReadResponse

func (o *PullContactsReader) 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