reseller

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2017 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddCreditsBadRequest

type AddCreditsBadRequest struct {
	Payload *models.ErrorModel
}

AddCreditsBadRequest handles this case with default header values.

bad request

func NewAddCreditsBadRequest

func NewAddCreditsBadRequest() *AddCreditsBadRequest

NewAddCreditsBadRequest creates a AddCreditsBadRequest with default headers values

func (*AddCreditsBadRequest) Error

func (o *AddCreditsBadRequest) Error() string

type AddCreditsForbidden

type AddCreditsForbidden struct {
	Payload *models.ErrorModel
}

AddCreditsForbidden handles this case with default header values.

Current account is not a reseller

func NewAddCreditsForbidden

func NewAddCreditsForbidden() *AddCreditsForbidden

NewAddCreditsForbidden creates a AddCreditsForbidden with default headers values

func (*AddCreditsForbidden) Error

func (o *AddCreditsForbidden) Error() string

type AddCreditsNotFound

type AddCreditsNotFound struct {
	Payload *models.ErrorModel
}

AddCreditsNotFound handles this case with default header values.

Child ID not found

func NewAddCreditsNotFound

func NewAddCreditsNotFound() *AddCreditsNotFound

NewAddCreditsNotFound creates a AddCreditsNotFound with default headers values

func (*AddCreditsNotFound) Error

func (o *AddCreditsNotFound) Error() string

type AddCreditsOK

type AddCreditsOK struct {
	Payload *models.RemainingCreditModel
}

AddCreditsOK handles this case with default header values.

Credits added

func NewAddCreditsOK

func NewAddCreditsOK() *AddCreditsOK

NewAddCreditsOK creates a AddCreditsOK with default headers values

func (*AddCreditsOK) Error

func (o *AddCreditsOK) Error() string

type AddCreditsParams

type AddCreditsParams struct {

	/*AddCredits
	  Values to post to add credit to a specific child account

	*/
	AddCredits *models.AddCredits
	/*ChildID
	  id of reseller's child

	*/
	ChildID int64

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

AddCreditsParams contains all the parameters to send to the API endpoint for the add credits operation typically these are written to a http.Request

func NewAddCreditsParams

func NewAddCreditsParams() *AddCreditsParams

NewAddCreditsParams creates a new AddCreditsParams object with the default values initialized.

func NewAddCreditsParamsWithContext

func NewAddCreditsParamsWithContext(ctx context.Context) *AddCreditsParams

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

func NewAddCreditsParamsWithHTTPClient

func NewAddCreditsParamsWithHTTPClient(client *http.Client) *AddCreditsParams

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

func NewAddCreditsParamsWithTimeout

func NewAddCreditsParamsWithTimeout(timeout time.Duration) *AddCreditsParams

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

func (*AddCreditsParams) SetAddCredits

func (o *AddCreditsParams) SetAddCredits(addCredits *models.AddCredits)

SetAddCredits adds the addCredits to the add credits params

func (*AddCreditsParams) SetChildID

func (o *AddCreditsParams) SetChildID(childID int64)

SetChildID adds the childId to the add credits params

func (*AddCreditsParams) SetContext

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

SetContext adds the context to the add credits params

func (*AddCreditsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the add credits params

func (*AddCreditsParams) SetTimeout

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

SetTimeout adds the timeout to the add credits params

func (*AddCreditsParams) WithAddCredits

func (o *AddCreditsParams) WithAddCredits(addCredits *models.AddCredits) *AddCreditsParams

WithAddCredits adds the addCredits to the add credits params

func (*AddCreditsParams) WithChildID

func (o *AddCreditsParams) WithChildID(childID int64) *AddCreditsParams

WithChildID adds the childID to the add credits params

func (*AddCreditsParams) WithContext

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

WithContext adds the context to the add credits params

func (*AddCreditsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the add credits params

func (*AddCreditsParams) WithTimeout

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

WithTimeout adds the timeout to the add credits params

func (*AddCreditsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type AddCreditsReader

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

AddCreditsReader is a Reader for the AddCredits structure.

func (*AddCreditsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AssociateIPToChildBadRequest

type AssociateIPToChildBadRequest struct {
	Payload *models.ErrorModel
}

AssociateIPToChildBadRequest handles this case with default header values.

Dedicated IP is not associated to this child

func NewAssociateIPToChildBadRequest

func NewAssociateIPToChildBadRequest() *AssociateIPToChildBadRequest

NewAssociateIPToChildBadRequest creates a AssociateIPToChildBadRequest with default headers values

func (*AssociateIPToChildBadRequest) Error

type AssociateIPToChildNoContent

type AssociateIPToChildNoContent struct {
}

AssociateIPToChildNoContent handles this case with default header values.

Dedicated IP is associated to the child

func NewAssociateIPToChildNoContent

func NewAssociateIPToChildNoContent() *AssociateIPToChildNoContent

NewAssociateIPToChildNoContent creates a AssociateIPToChildNoContent with default headers values

func (*AssociateIPToChildNoContent) Error

type AssociateIPToChildNotFound

type AssociateIPToChildNotFound struct {
	Payload *models.ErrorModel
}

AssociateIPToChildNotFound handles this case with default header values.

Child ID not found

func NewAssociateIPToChildNotFound

func NewAssociateIPToChildNotFound() *AssociateIPToChildNotFound

NewAssociateIPToChildNotFound creates a AssociateIPToChildNotFound with default headers values

func (*AssociateIPToChildNotFound) Error

type AssociateIPToChildParams

type AssociateIPToChildParams struct {

	/*ChildID
	  id of reseller's child

	*/
	ChildID int64
	/*IPID
	  IP's id

	*/
	IPID *models.ManageIP

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

AssociateIPToChildParams contains all the parameters to send to the API endpoint for the associate Ip to child operation typically these are written to a http.Request

func NewAssociateIPToChildParams

func NewAssociateIPToChildParams() *AssociateIPToChildParams

NewAssociateIPToChildParams creates a new AssociateIPToChildParams object with the default values initialized.

func NewAssociateIPToChildParamsWithContext

func NewAssociateIPToChildParamsWithContext(ctx context.Context) *AssociateIPToChildParams

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

func NewAssociateIPToChildParamsWithHTTPClient

func NewAssociateIPToChildParamsWithHTTPClient(client *http.Client) *AssociateIPToChildParams

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

func NewAssociateIPToChildParamsWithTimeout

func NewAssociateIPToChildParamsWithTimeout(timeout time.Duration) *AssociateIPToChildParams

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

func (*AssociateIPToChildParams) SetChildID

func (o *AssociateIPToChildParams) SetChildID(childID int64)

SetChildID adds the childId to the associate Ip to child params

func (*AssociateIPToChildParams) SetContext

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

SetContext adds the context to the associate Ip to child params

func (*AssociateIPToChildParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the associate Ip to child params

func (*AssociateIPToChildParams) SetIPID

func (o *AssociateIPToChildParams) SetIPID(iPID *models.ManageIP)

SetIPID adds the ipId to the associate Ip to child params

func (*AssociateIPToChildParams) SetTimeout

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

SetTimeout adds the timeout to the associate Ip to child params

func (*AssociateIPToChildParams) WithChildID

func (o *AssociateIPToChildParams) WithChildID(childID int64) *AssociateIPToChildParams

WithChildID adds the childID to the associate Ip to child params

func (*AssociateIPToChildParams) WithContext

WithContext adds the context to the associate Ip to child params

func (*AssociateIPToChildParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the associate Ip to child params

func (*AssociateIPToChildParams) WithIPID

WithIPID adds the iPID to the associate Ip to child params

func (*AssociateIPToChildParams) WithTimeout

WithTimeout adds the timeout to the associate Ip to child params

func (*AssociateIPToChildParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type AssociateIPToChildReader

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

AssociateIPToChildReader is a Reader for the AssociateIPToChild structure.

func (*AssociateIPToChildReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type Client

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

Client for reseller API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new reseller API client.

func (*Client) AddCredits

func (a *Client) AddCredits(params *AddCreditsParams, authInfo runtime.ClientAuthInfoWriter) (*AddCreditsOK, error)

AddCredits adds email and or s m s credits to a specific child account

func (*Client) AssociateIPToChild

AssociateIPToChild associates a dedicated IP to the child

func (*Client) CreateResellerChild

func (a *Client) CreateResellerChild(params *CreateResellerChildParams, authInfo runtime.ClientAuthInfoWriter) (*CreateResellerChildCreated, error)

CreateResellerChild creates a reseller child

func (*Client) DeleteResellerChild

DeleteResellerChild deletes a single reseller child based on the child Id supplied

func (*Client) DissociateIPFromChild

DissociateIPFromChild dissociates a dedicated IP to the child

func (*Client) GetChildInfo

func (a *Client) GetChildInfo(params *GetChildInfoParams, authInfo runtime.ClientAuthInfoWriter) (*GetChildInfoOK, error)

GetChildInfo gets the info about a specific child account

func (*Client) GetResellerChilds

func (a *Client) GetResellerChilds(params *GetResellerChildsParams, authInfo runtime.ClientAuthInfoWriter) (*GetResellerChildsOK, error)

GetResellerChilds gets the list of all reseller s children accounts

func (*Client) RemoveCredits

func (a *Client) RemoveCredits(params *RemoveCreditsParams, authInfo runtime.ClientAuthInfoWriter) (*RemoveCreditsOK, error)

RemoveCredits removes email and or s m s credits from a specific child account

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateResellerChild

UpdateResellerChild updates infos of reseller s child based on the child Id supplied

type CreateResellerChildBadRequest

type CreateResellerChildBadRequest struct {
	Payload *models.ErrorModel
}

CreateResellerChildBadRequest handles this case with default header values.

Bad request

func NewCreateResellerChildBadRequest

func NewCreateResellerChildBadRequest() *CreateResellerChildBadRequest

NewCreateResellerChildBadRequest creates a CreateResellerChildBadRequest with default headers values

func (*CreateResellerChildBadRequest) Error

type CreateResellerChildCreated

type CreateResellerChildCreated struct {
	Payload *models.CreateModel
}

CreateResellerChildCreated handles this case with default header values.

child created

func NewCreateResellerChildCreated

func NewCreateResellerChildCreated() *CreateResellerChildCreated

NewCreateResellerChildCreated creates a CreateResellerChildCreated with default headers values

func (*CreateResellerChildCreated) Error

type CreateResellerChildForbidden

type CreateResellerChildForbidden struct {
	Payload *models.ErrorModel
}

CreateResellerChildForbidden handles this case with default header values.

Current account is not a reseller

func NewCreateResellerChildForbidden

func NewCreateResellerChildForbidden() *CreateResellerChildForbidden

NewCreateResellerChildForbidden creates a CreateResellerChildForbidden with default headers values

func (*CreateResellerChildForbidden) Error

type CreateResellerChildParams

type CreateResellerChildParams struct {

	/*ResellerChild
	  reseller child to add

	*/
	ResellerChild *models.CreateChild

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

CreateResellerChildParams contains all the parameters to send to the API endpoint for the create reseller child operation typically these are written to a http.Request

func NewCreateResellerChildParams

func NewCreateResellerChildParams() *CreateResellerChildParams

NewCreateResellerChildParams creates a new CreateResellerChildParams object with the default values initialized.

func NewCreateResellerChildParamsWithContext

func NewCreateResellerChildParamsWithContext(ctx context.Context) *CreateResellerChildParams

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

func NewCreateResellerChildParamsWithHTTPClient

func NewCreateResellerChildParamsWithHTTPClient(client *http.Client) *CreateResellerChildParams

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

func NewCreateResellerChildParamsWithTimeout

func NewCreateResellerChildParamsWithTimeout(timeout time.Duration) *CreateResellerChildParams

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

func (*CreateResellerChildParams) SetContext

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

SetContext adds the context to the create reseller child params

func (*CreateResellerChildParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create reseller child params

func (*CreateResellerChildParams) SetResellerChild

func (o *CreateResellerChildParams) SetResellerChild(resellerChild *models.CreateChild)

SetResellerChild adds the resellerChild to the create reseller child params

func (*CreateResellerChildParams) SetTimeout

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

SetTimeout adds the timeout to the create reseller child params

func (*CreateResellerChildParams) WithContext

WithContext adds the context to the create reseller child params

func (*CreateResellerChildParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create reseller child params

func (*CreateResellerChildParams) WithResellerChild

func (o *CreateResellerChildParams) WithResellerChild(resellerChild *models.CreateChild) *CreateResellerChildParams

WithResellerChild adds the resellerChild to the create reseller child params

func (*CreateResellerChildParams) WithTimeout

WithTimeout adds the timeout to the create reseller child params

func (*CreateResellerChildParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateResellerChildReader

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

CreateResellerChildReader is a Reader for the CreateResellerChild structure.

func (*CreateResellerChildReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteResellerChildBadRequest

type DeleteResellerChildBadRequest struct {
	Payload *models.ErrorModel
}

DeleteResellerChildBadRequest handles this case with default header values.

bad request

func NewDeleteResellerChildBadRequest

func NewDeleteResellerChildBadRequest() *DeleteResellerChildBadRequest

NewDeleteResellerChildBadRequest creates a DeleteResellerChildBadRequest with default headers values

func (*DeleteResellerChildBadRequest) Error

type DeleteResellerChildForbidden

type DeleteResellerChildForbidden struct {
	Payload *models.ErrorModel
}

DeleteResellerChildForbidden handles this case with default header values.

Current account is not a reseller

func NewDeleteResellerChildForbidden

func NewDeleteResellerChildForbidden() *DeleteResellerChildForbidden

NewDeleteResellerChildForbidden creates a DeleteResellerChildForbidden with default headers values

func (*DeleteResellerChildForbidden) Error

type DeleteResellerChildNoContent

type DeleteResellerChildNoContent struct {
}

DeleteResellerChildNoContent handles this case with default header values.

child deleted

func NewDeleteResellerChildNoContent

func NewDeleteResellerChildNoContent() *DeleteResellerChildNoContent

NewDeleteResellerChildNoContent creates a DeleteResellerChildNoContent with default headers values

func (*DeleteResellerChildNoContent) Error

type DeleteResellerChildNotFound

type DeleteResellerChildNotFound struct {
	Payload *models.ErrorModel
}

DeleteResellerChildNotFound handles this case with default header values.

Child ID not found

func NewDeleteResellerChildNotFound

func NewDeleteResellerChildNotFound() *DeleteResellerChildNotFound

NewDeleteResellerChildNotFound creates a DeleteResellerChildNotFound with default headers values

func (*DeleteResellerChildNotFound) Error

type DeleteResellerChildParams

type DeleteResellerChildParams struct {

	/*ChildID
	  id of reseller's child

	*/
	ChildID int64

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

DeleteResellerChildParams contains all the parameters to send to the API endpoint for the delete reseller child operation typically these are written to a http.Request

func NewDeleteResellerChildParams

func NewDeleteResellerChildParams() *DeleteResellerChildParams

NewDeleteResellerChildParams creates a new DeleteResellerChildParams object with the default values initialized.

func NewDeleteResellerChildParamsWithContext

func NewDeleteResellerChildParamsWithContext(ctx context.Context) *DeleteResellerChildParams

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

func NewDeleteResellerChildParamsWithHTTPClient

func NewDeleteResellerChildParamsWithHTTPClient(client *http.Client) *DeleteResellerChildParams

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

func NewDeleteResellerChildParamsWithTimeout

func NewDeleteResellerChildParamsWithTimeout(timeout time.Duration) *DeleteResellerChildParams

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

func (*DeleteResellerChildParams) SetChildID

func (o *DeleteResellerChildParams) SetChildID(childID int64)

SetChildID adds the childId to the delete reseller child params

func (*DeleteResellerChildParams) SetContext

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

SetContext adds the context to the delete reseller child params

func (*DeleteResellerChildParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete reseller child params

func (*DeleteResellerChildParams) SetTimeout

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

SetTimeout adds the timeout to the delete reseller child params

func (*DeleteResellerChildParams) WithChildID

WithChildID adds the childID to the delete reseller child params

func (*DeleteResellerChildParams) WithContext

WithContext adds the context to the delete reseller child params

func (*DeleteResellerChildParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete reseller child params

func (*DeleteResellerChildParams) WithTimeout

WithTimeout adds the timeout to the delete reseller child params

func (*DeleteResellerChildParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteResellerChildReader

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

DeleteResellerChildReader is a Reader for the DeleteResellerChild structure.

func (*DeleteResellerChildReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DissociateIPFromChildBadRequest

type DissociateIPFromChildBadRequest struct {
	Payload *models.ErrorModel
}

DissociateIPFromChildBadRequest handles this case with default header values.

bad request

func NewDissociateIPFromChildBadRequest

func NewDissociateIPFromChildBadRequest() *DissociateIPFromChildBadRequest

NewDissociateIPFromChildBadRequest creates a DissociateIPFromChildBadRequest with default headers values

func (*DissociateIPFromChildBadRequest) Error

type DissociateIPFromChildNoContent

type DissociateIPFromChildNoContent struct {
}

DissociateIPFromChildNoContent handles this case with default header values.

Dedicated IP is dissociated from the child

func NewDissociateIPFromChildNoContent

func NewDissociateIPFromChildNoContent() *DissociateIPFromChildNoContent

NewDissociateIPFromChildNoContent creates a DissociateIPFromChildNoContent with default headers values

func (*DissociateIPFromChildNoContent) Error

type DissociateIPFromChildNotFound

type DissociateIPFromChildNotFound struct {
	Payload *models.ErrorModel
}

DissociateIPFromChildNotFound handles this case with default header values.

Child ID not found

func NewDissociateIPFromChildNotFound

func NewDissociateIPFromChildNotFound() *DissociateIPFromChildNotFound

NewDissociateIPFromChildNotFound creates a DissociateIPFromChildNotFound with default headers values

func (*DissociateIPFromChildNotFound) Error

type DissociateIPFromChildParams

type DissociateIPFromChildParams struct {

	/*ChildID
	  id of reseller's child

	*/
	ChildID int64
	/*IPID
	  IP's id

	*/
	IPID *models.ManageIP

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

DissociateIPFromChildParams contains all the parameters to send to the API endpoint for the dissociate Ip from child operation typically these are written to a http.Request

func NewDissociateIPFromChildParams

func NewDissociateIPFromChildParams() *DissociateIPFromChildParams

NewDissociateIPFromChildParams creates a new DissociateIPFromChildParams object with the default values initialized.

func NewDissociateIPFromChildParamsWithContext

func NewDissociateIPFromChildParamsWithContext(ctx context.Context) *DissociateIPFromChildParams

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

func NewDissociateIPFromChildParamsWithHTTPClient

func NewDissociateIPFromChildParamsWithHTTPClient(client *http.Client) *DissociateIPFromChildParams

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

func NewDissociateIPFromChildParamsWithTimeout

func NewDissociateIPFromChildParamsWithTimeout(timeout time.Duration) *DissociateIPFromChildParams

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

func (*DissociateIPFromChildParams) SetChildID

func (o *DissociateIPFromChildParams) SetChildID(childID int64)

SetChildID adds the childId to the dissociate Ip from child params

func (*DissociateIPFromChildParams) SetContext

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

SetContext adds the context to the dissociate Ip from child params

func (*DissociateIPFromChildParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the dissociate Ip from child params

func (*DissociateIPFromChildParams) SetIPID

func (o *DissociateIPFromChildParams) SetIPID(iPID *models.ManageIP)

SetIPID adds the ipId to the dissociate Ip from child params

func (*DissociateIPFromChildParams) SetTimeout

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

SetTimeout adds the timeout to the dissociate Ip from child params

func (*DissociateIPFromChildParams) WithChildID

WithChildID adds the childID to the dissociate Ip from child params

func (*DissociateIPFromChildParams) WithContext

WithContext adds the context to the dissociate Ip from child params

func (*DissociateIPFromChildParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the dissociate Ip from child params

func (*DissociateIPFromChildParams) WithIPID

WithIPID adds the iPID to the dissociate Ip from child params

func (*DissociateIPFromChildParams) WithTimeout

WithTimeout adds the timeout to the dissociate Ip from child params

func (*DissociateIPFromChildParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DissociateIPFromChildReader

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

DissociateIPFromChildReader is a Reader for the DissociateIPFromChild structure.

func (*DissociateIPFromChildReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetChildInfoBadRequest

type GetChildInfoBadRequest struct {
	Payload *models.ErrorModel
}

GetChildInfoBadRequest handles this case with default header values.

bad request

func NewGetChildInfoBadRequest

func NewGetChildInfoBadRequest() *GetChildInfoBadRequest

NewGetChildInfoBadRequest creates a GetChildInfoBadRequest with default headers values

func (*GetChildInfoBadRequest) Error

func (o *GetChildInfoBadRequest) Error() string

type GetChildInfoForbidden

type GetChildInfoForbidden struct {
	Payload *models.ErrorModel
}

GetChildInfoForbidden handles this case with default header values.

Current account is not a reseller

func NewGetChildInfoForbidden

func NewGetChildInfoForbidden() *GetChildInfoForbidden

NewGetChildInfoForbidden creates a GetChildInfoForbidden with default headers values

func (*GetChildInfoForbidden) Error

func (o *GetChildInfoForbidden) Error() string

type GetChildInfoNotFound

type GetChildInfoNotFound struct {
	Payload *models.ErrorModel
}

GetChildInfoNotFound handles this case with default header values.

Child ID not found

func NewGetChildInfoNotFound

func NewGetChildInfoNotFound() *GetChildInfoNotFound

NewGetChildInfoNotFound creates a GetChildInfoNotFound with default headers values

func (*GetChildInfoNotFound) Error

func (o *GetChildInfoNotFound) Error() string

type GetChildInfoOK

type GetChildInfoOK struct {
	Payload *models.GetChildInfo
}

GetChildInfoOK handles this case with default header values.

Information for the child

func NewGetChildInfoOK

func NewGetChildInfoOK() *GetChildInfoOK

NewGetChildInfoOK creates a GetChildInfoOK with default headers values

func (*GetChildInfoOK) Error

func (o *GetChildInfoOK) Error() string

type GetChildInfoParams

type GetChildInfoParams struct {

	/*ChildID
	  id of reseller's child

	*/
	ChildID int64

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

GetChildInfoParams contains all the parameters to send to the API endpoint for the get child info operation typically these are written to a http.Request

func NewGetChildInfoParams

func NewGetChildInfoParams() *GetChildInfoParams

NewGetChildInfoParams creates a new GetChildInfoParams object with the default values initialized.

func NewGetChildInfoParamsWithContext

func NewGetChildInfoParamsWithContext(ctx context.Context) *GetChildInfoParams

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

func NewGetChildInfoParamsWithHTTPClient

func NewGetChildInfoParamsWithHTTPClient(client *http.Client) *GetChildInfoParams

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

func NewGetChildInfoParamsWithTimeout

func NewGetChildInfoParamsWithTimeout(timeout time.Duration) *GetChildInfoParams

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

func (*GetChildInfoParams) SetChildID

func (o *GetChildInfoParams) SetChildID(childID int64)

SetChildID adds the childId to the get child info params

func (*GetChildInfoParams) SetContext

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

SetContext adds the context to the get child info params

func (*GetChildInfoParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get child info params

func (*GetChildInfoParams) SetTimeout

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

SetTimeout adds the timeout to the get child info params

func (*GetChildInfoParams) WithChildID

func (o *GetChildInfoParams) WithChildID(childID int64) *GetChildInfoParams

WithChildID adds the childID to the get child info params

func (*GetChildInfoParams) WithContext

WithContext adds the context to the get child info params

func (*GetChildInfoParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get child info params

func (*GetChildInfoParams) WithTimeout

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

WithTimeout adds the timeout to the get child info params

func (*GetChildInfoParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetChildInfoReader

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

GetChildInfoReader is a Reader for the GetChildInfo structure.

func (*GetChildInfoReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetResellerChildsForbidden

type GetResellerChildsForbidden struct {
	Payload *models.ErrorModel
}

GetResellerChildsForbidden handles this case with default header values.

Current account is not a reseller

func NewGetResellerChildsForbidden

func NewGetResellerChildsForbidden() *GetResellerChildsForbidden

NewGetResellerChildsForbidden creates a GetResellerChildsForbidden with default headers values

func (*GetResellerChildsForbidden) Error

type GetResellerChildsOK

type GetResellerChildsOK struct {
	Payload *models.GetChildrenList
}

GetResellerChildsOK handles this case with default header values.

list of children

func NewGetResellerChildsOK

func NewGetResellerChildsOK() *GetResellerChildsOK

NewGetResellerChildsOK creates a GetResellerChildsOK with default headers values

func (*GetResellerChildsOK) Error

func (o *GetResellerChildsOK) Error() string

type GetResellerChildsParams

type GetResellerChildsParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetResellerChildsParams contains all the parameters to send to the API endpoint for the get reseller childs operation typically these are written to a http.Request

func NewGetResellerChildsParams

func NewGetResellerChildsParams() *GetResellerChildsParams

NewGetResellerChildsParams creates a new GetResellerChildsParams object with the default values initialized.

func NewGetResellerChildsParamsWithContext

func NewGetResellerChildsParamsWithContext(ctx context.Context) *GetResellerChildsParams

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

func NewGetResellerChildsParamsWithHTTPClient

func NewGetResellerChildsParamsWithHTTPClient(client *http.Client) *GetResellerChildsParams

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

func NewGetResellerChildsParamsWithTimeout

func NewGetResellerChildsParamsWithTimeout(timeout time.Duration) *GetResellerChildsParams

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

func (*GetResellerChildsParams) SetContext

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

SetContext adds the context to the get reseller childs params

func (*GetResellerChildsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get reseller childs params

func (*GetResellerChildsParams) SetTimeout

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

SetTimeout adds the timeout to the get reseller childs params

func (*GetResellerChildsParams) WithContext

WithContext adds the context to the get reseller childs params

func (*GetResellerChildsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get reseller childs params

func (*GetResellerChildsParams) WithTimeout

WithTimeout adds the timeout to the get reseller childs params

func (*GetResellerChildsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetResellerChildsReader

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

GetResellerChildsReader is a Reader for the GetResellerChilds structure.

func (*GetResellerChildsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RemoveCreditsBadRequest

type RemoveCreditsBadRequest struct {
	Payload *models.ErrorModel
}

RemoveCreditsBadRequest handles this case with default header values.

bad request

func NewRemoveCreditsBadRequest

func NewRemoveCreditsBadRequest() *RemoveCreditsBadRequest

NewRemoveCreditsBadRequest creates a RemoveCreditsBadRequest with default headers values

func (*RemoveCreditsBadRequest) Error

func (o *RemoveCreditsBadRequest) Error() string

type RemoveCreditsForbidden

type RemoveCreditsForbidden struct {
	Payload *models.ErrorModel
}

RemoveCreditsForbidden handles this case with default header values.

Current account is not a reseller

func NewRemoveCreditsForbidden

func NewRemoveCreditsForbidden() *RemoveCreditsForbidden

NewRemoveCreditsForbidden creates a RemoveCreditsForbidden with default headers values

func (*RemoveCreditsForbidden) Error

func (o *RemoveCreditsForbidden) Error() string

type RemoveCreditsNotFound

type RemoveCreditsNotFound struct {
	Payload *models.ErrorModel
}

RemoveCreditsNotFound handles this case with default header values.

Child ID not found

func NewRemoveCreditsNotFound

func NewRemoveCreditsNotFound() *RemoveCreditsNotFound

NewRemoveCreditsNotFound creates a RemoveCreditsNotFound with default headers values

func (*RemoveCreditsNotFound) Error

func (o *RemoveCreditsNotFound) Error() string

type RemoveCreditsOK

type RemoveCreditsOK struct {
	Payload *models.RemainingCreditModel
}

RemoveCreditsOK handles this case with default header values.

Credits removed

func NewRemoveCreditsOK

func NewRemoveCreditsOK() *RemoveCreditsOK

NewRemoveCreditsOK creates a RemoveCreditsOK with default headers values

func (*RemoveCreditsOK) Error

func (o *RemoveCreditsOK) Error() string

type RemoveCreditsParams

type RemoveCreditsParams struct {

	/*ChildID
	  id of reseller's child

	*/
	ChildID int64
	/*RemoveCredits
	  Values to post to remove email or SMS credits from a specific child account

	*/
	RemoveCredits *models.RemoveCredits

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

RemoveCreditsParams contains all the parameters to send to the API endpoint for the remove credits operation typically these are written to a http.Request

func NewRemoveCreditsParams

func NewRemoveCreditsParams() *RemoveCreditsParams

NewRemoveCreditsParams creates a new RemoveCreditsParams object with the default values initialized.

func NewRemoveCreditsParamsWithContext

func NewRemoveCreditsParamsWithContext(ctx context.Context) *RemoveCreditsParams

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

func NewRemoveCreditsParamsWithHTTPClient

func NewRemoveCreditsParamsWithHTTPClient(client *http.Client) *RemoveCreditsParams

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

func NewRemoveCreditsParamsWithTimeout

func NewRemoveCreditsParamsWithTimeout(timeout time.Duration) *RemoveCreditsParams

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

func (*RemoveCreditsParams) SetChildID

func (o *RemoveCreditsParams) SetChildID(childID int64)

SetChildID adds the childId to the remove credits params

func (*RemoveCreditsParams) SetContext

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

SetContext adds the context to the remove credits params

func (*RemoveCreditsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the remove credits params

func (*RemoveCreditsParams) SetRemoveCredits

func (o *RemoveCreditsParams) SetRemoveCredits(removeCredits *models.RemoveCredits)

SetRemoveCredits adds the removeCredits to the remove credits params

func (*RemoveCreditsParams) SetTimeout

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

SetTimeout adds the timeout to the remove credits params

func (*RemoveCreditsParams) WithChildID

func (o *RemoveCreditsParams) WithChildID(childID int64) *RemoveCreditsParams

WithChildID adds the childID to the remove credits params

func (*RemoveCreditsParams) WithContext

WithContext adds the context to the remove credits params

func (*RemoveCreditsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the remove credits params

func (*RemoveCreditsParams) WithRemoveCredits

func (o *RemoveCreditsParams) WithRemoveCredits(removeCredits *models.RemoveCredits) *RemoveCreditsParams

WithRemoveCredits adds the removeCredits to the remove credits params

func (*RemoveCreditsParams) WithTimeout

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

WithTimeout adds the timeout to the remove credits params

func (*RemoveCreditsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type RemoveCreditsReader

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

RemoveCreditsReader is a Reader for the RemoveCredits structure.

func (*RemoveCreditsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateResellerChildBadRequest

type UpdateResellerChildBadRequest struct {
	Payload *models.ErrorModel
}

UpdateResellerChildBadRequest handles this case with default header values.

bad request

func NewUpdateResellerChildBadRequest

func NewUpdateResellerChildBadRequest() *UpdateResellerChildBadRequest

NewUpdateResellerChildBadRequest creates a UpdateResellerChildBadRequest with default headers values

func (*UpdateResellerChildBadRequest) Error

type UpdateResellerChildForbidden

type UpdateResellerChildForbidden struct {
	Payload *models.ErrorModel
}

UpdateResellerChildForbidden handles this case with default header values.

Current account is not a reseller

func NewUpdateResellerChildForbidden

func NewUpdateResellerChildForbidden() *UpdateResellerChildForbidden

NewUpdateResellerChildForbidden creates a UpdateResellerChildForbidden with default headers values

func (*UpdateResellerChildForbidden) Error

type UpdateResellerChildNoContent

type UpdateResellerChildNoContent struct {
}

UpdateResellerChildNoContent handles this case with default header values.

reseller's child updated

func NewUpdateResellerChildNoContent

func NewUpdateResellerChildNoContent() *UpdateResellerChildNoContent

NewUpdateResellerChildNoContent creates a UpdateResellerChildNoContent with default headers values

func (*UpdateResellerChildNoContent) Error

type UpdateResellerChildNotFound

type UpdateResellerChildNotFound struct {
	Payload *models.ErrorModel
}

UpdateResellerChildNotFound handles this case with default header values.

Child ID not found

func NewUpdateResellerChildNotFound

func NewUpdateResellerChildNotFound() *UpdateResellerChildNotFound

NewUpdateResellerChildNotFound creates a UpdateResellerChildNotFound with default headers values

func (*UpdateResellerChildNotFound) Error

type UpdateResellerChildParams

type UpdateResellerChildParams struct {

	/*ChildID
	  id of reseller's child

	*/
	ChildID int64
	/*ResellerChild
	  values to update in child profile

	*/
	ResellerChild *models.UpdateChild

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

UpdateResellerChildParams contains all the parameters to send to the API endpoint for the update reseller child operation typically these are written to a http.Request

func NewUpdateResellerChildParams

func NewUpdateResellerChildParams() *UpdateResellerChildParams

NewUpdateResellerChildParams creates a new UpdateResellerChildParams object with the default values initialized.

func NewUpdateResellerChildParamsWithContext

func NewUpdateResellerChildParamsWithContext(ctx context.Context) *UpdateResellerChildParams

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

func NewUpdateResellerChildParamsWithHTTPClient

func NewUpdateResellerChildParamsWithHTTPClient(client *http.Client) *UpdateResellerChildParams

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

func NewUpdateResellerChildParamsWithTimeout

func NewUpdateResellerChildParamsWithTimeout(timeout time.Duration) *UpdateResellerChildParams

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

func (*UpdateResellerChildParams) SetChildID

func (o *UpdateResellerChildParams) SetChildID(childID int64)

SetChildID adds the childId to the update reseller child params

func (*UpdateResellerChildParams) SetContext

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

SetContext adds the context to the update reseller child params

func (*UpdateResellerChildParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update reseller child params

func (*UpdateResellerChildParams) SetResellerChild

func (o *UpdateResellerChildParams) SetResellerChild(resellerChild *models.UpdateChild)

SetResellerChild adds the resellerChild to the update reseller child params

func (*UpdateResellerChildParams) SetTimeout

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

SetTimeout adds the timeout to the update reseller child params

func (*UpdateResellerChildParams) WithChildID

WithChildID adds the childID to the update reseller child params

func (*UpdateResellerChildParams) WithContext

WithContext adds the context to the update reseller child params

func (*UpdateResellerChildParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update reseller child params

func (*UpdateResellerChildParams) WithResellerChild

func (o *UpdateResellerChildParams) WithResellerChild(resellerChild *models.UpdateChild) *UpdateResellerChildParams

WithResellerChild adds the resellerChild to the update reseller child params

func (*UpdateResellerChildParams) WithTimeout

WithTimeout adds the timeout to the update reseller child params

func (*UpdateResellerChildParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateResellerChildReader

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

UpdateResellerChildReader is a Reader for the UpdateResellerChild structure.

func (*UpdateResellerChildReader) ReadResponse

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