Documentation ¶
Index ¶
- type Client
- func (a *Client) ContactSourceCleanUp(params *ContactSourceCleanUpParams, opts ...ClientOption) (*ContactSourceCleanUpOK, error)
- func (a *Client) PullContactSource(params *PullContactSourceParams, opts ...ClientOption) (*PullContactSourceOK, error)
- func (a *Client) PullContacts(params *PullContactsParams, opts ...ClientOption) (*PullContactsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type ContactSourceCleanUpBadRequest
- type ContactSourceCleanUpOK
- type ContactSourceCleanUpParams
- func NewContactSourceCleanUpParams() *ContactSourceCleanUpParams
- func NewContactSourceCleanUpParamsWithContext(ctx context.Context) *ContactSourceCleanUpParams
- func NewContactSourceCleanUpParamsWithHTTPClient(client *http.Client) *ContactSourceCleanUpParams
- func NewContactSourceCleanUpParamsWithTimeout(timeout time.Duration) *ContactSourceCleanUpParams
- func (o *ContactSourceCleanUpParams) SetBody(body *models.PubsubMessage)
- func (o *ContactSourceCleanUpParams) SetContext(ctx context.Context)
- func (o *ContactSourceCleanUpParams) SetDefaults()
- func (o *ContactSourceCleanUpParams) SetHTTPClient(client *http.Client)
- func (o *ContactSourceCleanUpParams) SetTimeout(timeout time.Duration)
- func (o *ContactSourceCleanUpParams) WithBody(body *models.PubsubMessage) *ContactSourceCleanUpParams
- func (o *ContactSourceCleanUpParams) WithContext(ctx context.Context) *ContactSourceCleanUpParams
- func (o *ContactSourceCleanUpParams) WithDefaults() *ContactSourceCleanUpParams
- func (o *ContactSourceCleanUpParams) WithHTTPClient(client *http.Client) *ContactSourceCleanUpParams
- func (o *ContactSourceCleanUpParams) WithTimeout(timeout time.Duration) *ContactSourceCleanUpParams
- func (o *ContactSourceCleanUpParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ContactSourceCleanUpReader
- type PullContactSourceBadRequest
- type PullContactSourceOK
- type PullContactSourceParams
- func NewPullContactSourceParams() *PullContactSourceParams
- func NewPullContactSourceParamsWithContext(ctx context.Context) *PullContactSourceParams
- func NewPullContactSourceParamsWithHTTPClient(client *http.Client) *PullContactSourceParams
- func NewPullContactSourceParamsWithTimeout(timeout time.Duration) *PullContactSourceParams
- func (o *PullContactSourceParams) SetBody(body *models.PubsubMessage)
- func (o *PullContactSourceParams) SetContext(ctx context.Context)
- func (o *PullContactSourceParams) SetDefaults()
- func (o *PullContactSourceParams) SetHTTPClient(client *http.Client)
- func (o *PullContactSourceParams) SetTimeout(timeout time.Duration)
- func (o *PullContactSourceParams) WithBody(body *models.PubsubMessage) *PullContactSourceParams
- func (o *PullContactSourceParams) WithContext(ctx context.Context) *PullContactSourceParams
- func (o *PullContactSourceParams) WithDefaults() *PullContactSourceParams
- func (o *PullContactSourceParams) WithHTTPClient(client *http.Client) *PullContactSourceParams
- func (o *PullContactSourceParams) WithTimeout(timeout time.Duration) *PullContactSourceParams
- func (o *PullContactSourceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PullContactSourceReader
- type PullContactsBadRequest
- type PullContactsOK
- type PullContactsParams
- func (o *PullContactsParams) SetBody(body *models.PubsubMessage)
- func (o *PullContactsParams) SetContext(ctx context.Context)
- func (o *PullContactsParams) SetDefaults()
- func (o *PullContactsParams) SetHTTPClient(client *http.Client)
- func (o *PullContactsParams) SetTimeout(timeout time.Duration)
- func (o *PullContactsParams) WithBody(body *models.PubsubMessage) *PullContactsParams
- func (o *PullContactsParams) WithContext(ctx context.Context) *PullContactsParams
- func (o *PullContactsParams) WithDefaults() *PullContactsParams
- func (o *PullContactsParams) WithHTTPClient(client *http.Client) *PullContactsParams
- func (o *PullContactsParams) WithTimeout(timeout time.Duration) *PullContactsParams
- func (o *PullContactsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PullContactsReader
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 ¶
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 (o *ContactSourceCleanUpBadRequest) Error() string
func (*ContactSourceCleanUpBadRequest) GetPayload ¶
func (o *ContactSourceCleanUpBadRequest) GetPayload() *models.JobError
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 ¶
func (o *ContactSourceCleanUpParams) SetBody(body *models.PubsubMessage)
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 ¶
func (o *ContactSourceCleanUpParams) WithBody(body *models.PubsubMessage) *ContactSourceCleanUpParams
WithBody adds the body to the contact source clean up params
func (*ContactSourceCleanUpParams) WithContext ¶
func (o *ContactSourceCleanUpParams) WithContext(ctx context.Context) *ContactSourceCleanUpParams
WithContext adds the context to the contact source clean up params
func (*ContactSourceCleanUpParams) WithDefaults ¶
func (o *ContactSourceCleanUpParams) WithDefaults() *ContactSourceCleanUpParams
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 ¶
func (o *ContactSourceCleanUpParams) WithHTTPClient(client *http.Client) *ContactSourceCleanUpParams
WithHTTPClient adds the HTTPClient to the contact source clean up params
func (*ContactSourceCleanUpParams) WithTimeout ¶
func (o *ContactSourceCleanUpParams) WithTimeout(timeout time.Duration) *ContactSourceCleanUpParams
WithTimeout adds the timeout to the contact source clean up params
func (*ContactSourceCleanUpParams) WriteToRequest ¶
func (o *ContactSourceCleanUpParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
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 (o *PullContactSourceBadRequest) Error() string
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 ¶
func (o *PullContactSourceParams) WithBody(body *models.PubsubMessage) *PullContactSourceParams
WithBody adds the body to the pull contact source params
func (*PullContactSourceParams) WithContext ¶
func (o *PullContactSourceParams) WithContext(ctx context.Context) *PullContactSourceParams
WithContext adds the context to the pull contact source params
func (*PullContactSourceParams) WithDefaults ¶
func (o *PullContactSourceParams) WithDefaults() *PullContactSourceParams
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 ¶
func (o *PullContactSourceParams) WithTimeout(timeout time.Duration) *PullContactSourceParams
WithTimeout adds the timeout to the pull contact source params
func (*PullContactSourceParams) WriteToRequest ¶
func (o *PullContactSourceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
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 ¶
func (o *PullContactsParams) WithBody(body *models.PubsubMessage) *PullContactsParams
WithBody adds the body to the pull contacts params
func (*PullContactsParams) WithContext ¶
func (o *PullContactsParams) WithContext(ctx context.Context) *PullContactsParams
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.