contact

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for contact API

func (*Client) ContactGet

func (a *Client) ContactGet(params *ContactGetParams, authInfo runtime.ClientAuthInfoWriter) (*ContactGetOK, error)

ContactGet gets contact by ID

func (*Client) ContactPost

func (a *Client) ContactPost(params *ContactPostParams, authInfo runtime.ClientAuthInfoWriter) (*ContactPostCreated, error)

ContactPost creates contact

func (*Client) ContactPut

func (a *Client) ContactPut(params *ContactPutParams, authInfo runtime.ClientAuthInfoWriter) (*ContactPutOK, error)

ContactPut bs e t a update contact

func (*Client) ContactSearch

func (a *Client) ContactSearch(params *ContactSearchParams, authInfo runtime.ClientAuthInfoWriter) (*ContactSearchOK, error)

ContactSearch finds contacts corresponding with sent data

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	ContactGet(params *ContactGetParams, authInfo runtime.ClientAuthInfoWriter) (*ContactGetOK, error)

	ContactPost(params *ContactPostParams, authInfo runtime.ClientAuthInfoWriter) (*ContactPostCreated, error)

	ContactPut(params *ContactPutParams, authInfo runtime.ClientAuthInfoWriter) (*ContactPutOK, error)

	ContactSearch(params *ContactSearchParams, authInfo runtime.ClientAuthInfoWriter) (*ContactSearchOK, 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 contact API client.

type ContactGetOK

type ContactGetOK struct {
	Payload *models.ResponseWrapperContact
}

ContactGetOK handles this case with default header values.

successful operation

func NewContactGetOK

func NewContactGetOK() *ContactGetOK

NewContactGetOK creates a ContactGetOK with default headers values

func (*ContactGetOK) Error

func (o *ContactGetOK) Error() string

func (*ContactGetOK) GetPayload

func (o *ContactGetOK) GetPayload() *models.ResponseWrapperContact

type ContactGetParams

type ContactGetParams struct {

	/*Fields
	  Fields filter pattern

	*/
	Fields *string
	/*ID
	  Element ID

	*/
	ID int32

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

ContactGetParams contains all the parameters to send to the API endpoint for the contact get operation typically these are written to a http.Request

func NewContactGetParams

func NewContactGetParams() *ContactGetParams

NewContactGetParams creates a new ContactGetParams object with the default values initialized.

func NewContactGetParamsWithContext

func NewContactGetParamsWithContext(ctx context.Context) *ContactGetParams

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

func NewContactGetParamsWithHTTPClient

func NewContactGetParamsWithHTTPClient(client *http.Client) *ContactGetParams

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

func NewContactGetParamsWithTimeout

func NewContactGetParamsWithTimeout(timeout time.Duration) *ContactGetParams

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

func (*ContactGetParams) SetContext

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

SetContext adds the context to the contact get params

func (*ContactGetParams) SetFields

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

SetFields adds the fields to the contact get params

func (*ContactGetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the contact get params

func (*ContactGetParams) SetID

func (o *ContactGetParams) SetID(id int32)

SetID adds the id to the contact get params

func (*ContactGetParams) SetTimeout

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

SetTimeout adds the timeout to the contact get params

func (*ContactGetParams) WithContext

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

WithContext adds the context to the contact get params

func (*ContactGetParams) WithFields

func (o *ContactGetParams) WithFields(fields *string) *ContactGetParams

WithFields adds the fields to the contact get params

func (*ContactGetParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the contact get params

func (*ContactGetParams) WithID

func (o *ContactGetParams) WithID(id int32) *ContactGetParams

WithID adds the id to the contact get params

func (*ContactGetParams) WithTimeout

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

WithTimeout adds the timeout to the contact get params

func (*ContactGetParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ContactGetReader

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

ContactGetReader is a Reader for the ContactGet structure.

func (*ContactGetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ContactPostCreated

type ContactPostCreated struct {
	Payload *models.ResponseWrapperContact
}

ContactPostCreated handles this case with default header values.

successfully created

func NewContactPostCreated

func NewContactPostCreated() *ContactPostCreated

NewContactPostCreated creates a ContactPostCreated with default headers values

func (*ContactPostCreated) Error

func (o *ContactPostCreated) Error() string

func (*ContactPostCreated) GetPayload

type ContactPostParams

type ContactPostParams struct {

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

	*/
	Body *models.Contact

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

ContactPostParams contains all the parameters to send to the API endpoint for the contact post operation typically these are written to a http.Request

func NewContactPostParams

func NewContactPostParams() *ContactPostParams

NewContactPostParams creates a new ContactPostParams object with the default values initialized.

func NewContactPostParamsWithContext

func NewContactPostParamsWithContext(ctx context.Context) *ContactPostParams

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

func NewContactPostParamsWithHTTPClient

func NewContactPostParamsWithHTTPClient(client *http.Client) *ContactPostParams

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

func NewContactPostParamsWithTimeout

func NewContactPostParamsWithTimeout(timeout time.Duration) *ContactPostParams

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

func (*ContactPostParams) SetBody

func (o *ContactPostParams) SetBody(body *models.Contact)

SetBody adds the body to the contact post params

func (*ContactPostParams) SetContext

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

SetContext adds the context to the contact post params

func (*ContactPostParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the contact post params

func (*ContactPostParams) SetTimeout

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

SetTimeout adds the timeout to the contact post params

func (*ContactPostParams) WithBody

func (o *ContactPostParams) WithBody(body *models.Contact) *ContactPostParams

WithBody adds the body to the contact post params

func (*ContactPostParams) WithContext

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

WithContext adds the context to the contact post params

func (*ContactPostParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the contact post params

func (*ContactPostParams) WithTimeout

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

WithTimeout adds the timeout to the contact post params

func (*ContactPostParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ContactPostReader

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

ContactPostReader is a Reader for the ContactPost structure.

func (*ContactPostReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ContactPutOK

type ContactPutOK struct {
	Payload *models.ResponseWrapperContact
}

ContactPutOK handles this case with default header values.

successful operation

func NewContactPutOK

func NewContactPutOK() *ContactPutOK

NewContactPutOK creates a ContactPutOK with default headers values

func (*ContactPutOK) Error

func (o *ContactPutOK) Error() string

func (*ContactPutOK) GetPayload

func (o *ContactPutOK) GetPayload() *models.ResponseWrapperContact

type ContactPutParams

type ContactPutParams struct {

	/*Body
	  Partial object describing what should be updated

	*/
	Body *models.Contact
	/*ID
	  Element ID

	*/
	ID int32

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

ContactPutParams contains all the parameters to send to the API endpoint for the contact put operation typically these are written to a http.Request

func NewContactPutParams

func NewContactPutParams() *ContactPutParams

NewContactPutParams creates a new ContactPutParams object with the default values initialized.

func NewContactPutParamsWithContext

func NewContactPutParamsWithContext(ctx context.Context) *ContactPutParams

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

func NewContactPutParamsWithHTTPClient

func NewContactPutParamsWithHTTPClient(client *http.Client) *ContactPutParams

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

func NewContactPutParamsWithTimeout

func NewContactPutParamsWithTimeout(timeout time.Duration) *ContactPutParams

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

func (*ContactPutParams) SetBody

func (o *ContactPutParams) SetBody(body *models.Contact)

SetBody adds the body to the contact put params

func (*ContactPutParams) SetContext

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

SetContext adds the context to the contact put params

func (*ContactPutParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the contact put params

func (*ContactPutParams) SetID

func (o *ContactPutParams) SetID(id int32)

SetID adds the id to the contact put params

func (*ContactPutParams) SetTimeout

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

SetTimeout adds the timeout to the contact put params

func (*ContactPutParams) WithBody

func (o *ContactPutParams) WithBody(body *models.Contact) *ContactPutParams

WithBody adds the body to the contact put params

func (*ContactPutParams) WithContext

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

WithContext adds the context to the contact put params

func (*ContactPutParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the contact put params

func (*ContactPutParams) WithID

func (o *ContactPutParams) WithID(id int32) *ContactPutParams

WithID adds the id to the contact put params

func (*ContactPutParams) WithTimeout

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

WithTimeout adds the timeout to the contact put params

func (*ContactPutParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ContactPutReader

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

ContactPutReader is a Reader for the ContactPut structure.

func (*ContactPutReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ContactSearchOK

type ContactSearchOK struct {
	Payload *models.ListResponseContact
}

ContactSearchOK handles this case with default header values.

successful operation

func NewContactSearchOK

func NewContactSearchOK() *ContactSearchOK

NewContactSearchOK creates a ContactSearchOK with default headers values

func (*ContactSearchOK) Error

func (o *ContactSearchOK) Error() string

func (*ContactSearchOK) GetPayload

func (o *ContactSearchOK) GetPayload() *models.ListResponseContact

type ContactSearchParams

type ContactSearchParams struct {

	/*Count
	  Number of elements to return

	*/
	Count *int64
	/*CustomerID
	  List of IDs

	*/
	CustomerID *string
	/*Email
	  Containing

	*/
	Email *string
	/*Fields
	  Fields filter pattern

	*/
	Fields *string
	/*FirstName
	  Containing

	*/
	FirstName *string
	/*From
	  From index

	*/
	From *int64
	/*ID
	  List of IDs

	*/
	ID *string
	/*LastName
	  Containing

	*/
	LastName *string
	/*Sorting
	  Sorting pattern

	*/
	Sorting *string

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

ContactSearchParams contains all the parameters to send to the API endpoint for the contact search operation typically these are written to a http.Request

func NewContactSearchParams

func NewContactSearchParams() *ContactSearchParams

NewContactSearchParams creates a new ContactSearchParams object with the default values initialized.

func NewContactSearchParamsWithContext

func NewContactSearchParamsWithContext(ctx context.Context) *ContactSearchParams

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

func NewContactSearchParamsWithHTTPClient

func NewContactSearchParamsWithHTTPClient(client *http.Client) *ContactSearchParams

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

func NewContactSearchParamsWithTimeout

func NewContactSearchParamsWithTimeout(timeout time.Duration) *ContactSearchParams

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

func (*ContactSearchParams) SetContext

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

SetContext adds the context to the contact search params

func (*ContactSearchParams) SetCount

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

SetCount adds the count to the contact search params

func (*ContactSearchParams) SetCustomerID

func (o *ContactSearchParams) SetCustomerID(customerID *string)

SetCustomerID adds the customerId to the contact search params

func (*ContactSearchParams) SetEmail

func (o *ContactSearchParams) SetEmail(email *string)

SetEmail adds the email to the contact search params

func (*ContactSearchParams) SetFields

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

SetFields adds the fields to the contact search params

func (*ContactSearchParams) SetFirstName

func (o *ContactSearchParams) SetFirstName(firstName *string)

SetFirstName adds the firstName to the contact search params

func (*ContactSearchParams) SetFrom

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

SetFrom adds the from to the contact search params

func (*ContactSearchParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the contact search params

func (*ContactSearchParams) SetID

func (o *ContactSearchParams) SetID(id *string)

SetID adds the id to the contact search params

func (*ContactSearchParams) SetLastName

func (o *ContactSearchParams) SetLastName(lastName *string)

SetLastName adds the lastName to the contact search params

func (*ContactSearchParams) SetSorting

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

SetSorting adds the sorting to the contact search params

func (*ContactSearchParams) SetTimeout

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

SetTimeout adds the timeout to the contact search params

func (*ContactSearchParams) WithContext

WithContext adds the context to the contact search params

func (*ContactSearchParams) WithCount

func (o *ContactSearchParams) WithCount(count *int64) *ContactSearchParams

WithCount adds the count to the contact search params

func (*ContactSearchParams) WithCustomerID

func (o *ContactSearchParams) WithCustomerID(customerID *string) *ContactSearchParams

WithCustomerID adds the customerID to the contact search params

func (*ContactSearchParams) WithEmail

func (o *ContactSearchParams) WithEmail(email *string) *ContactSearchParams

WithEmail adds the email to the contact search params

func (*ContactSearchParams) WithFields

func (o *ContactSearchParams) WithFields(fields *string) *ContactSearchParams

WithFields adds the fields to the contact search params

func (*ContactSearchParams) WithFirstName

func (o *ContactSearchParams) WithFirstName(firstName *string) *ContactSearchParams

WithFirstName adds the firstName to the contact search params

func (*ContactSearchParams) WithFrom

func (o *ContactSearchParams) WithFrom(from *int64) *ContactSearchParams

WithFrom adds the from to the contact search params

func (*ContactSearchParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the contact search params

func (*ContactSearchParams) WithID

WithID adds the id to the contact search params

func (*ContactSearchParams) WithLastName

func (o *ContactSearchParams) WithLastName(lastName *string) *ContactSearchParams

WithLastName adds the lastName to the contact search params

func (*ContactSearchParams) WithSorting

func (o *ContactSearchParams) WithSorting(sorting *string) *ContactSearchParams

WithSorting adds the sorting to the contact search params

func (*ContactSearchParams) WithTimeout

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

WithTimeout adds the timeout to the contact search params

func (*ContactSearchParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ContactSearchReader

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

ContactSearchReader is a Reader for the ContactSearch structure.

func (*ContactSearchReader) ReadResponse

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