c_r_m

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for c r m API

func (*Client) GetCrmRoles

func (a *Client) GetCrmRoles(params *GetCrmRolesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCrmRolesOK, error)

GetCrmRoles gets c r m admin users

func (*Client) GetCrmServiceplans

func (a *Client) GetCrmServiceplans(params *GetCrmServiceplansParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCrmServiceplansOK, error)

GetCrmServiceplans gets c r m service plans

func (*Client) PostCrmClients

func (a *Client) PostCrmClients(params *PostCrmClientsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostCrmClientsOK, error)

PostCrmClients creates c r m client

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 {
	GetCrmRoles(params *GetCrmRolesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCrmRolesOK, error)

	GetCrmServiceplans(params *GetCrmServiceplansParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCrmServiceplansOK, error)

	PostCrmClients(params *PostCrmClientsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostCrmClientsOK, 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 c r m API client.

type GetCrmRolesForbidden

type GetCrmRolesForbidden struct {
	Payload *models.Error
}
GetCrmRolesForbidden describes a response with status code 403, with default header values.

Forbidden

func NewGetCrmRolesForbidden

func NewGetCrmRolesForbidden() *GetCrmRolesForbidden

NewGetCrmRolesForbidden creates a GetCrmRolesForbidden with default headers values

func (*GetCrmRolesForbidden) Error

func (o *GetCrmRolesForbidden) Error() string

func (*GetCrmRolesForbidden) GetPayload

func (o *GetCrmRolesForbidden) GetPayload() *models.Error

type GetCrmRolesInternalServerError

type GetCrmRolesInternalServerError struct {
	Payload *models.Error
}
GetCrmRolesInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewGetCrmRolesInternalServerError

func NewGetCrmRolesInternalServerError() *GetCrmRolesInternalServerError

NewGetCrmRolesInternalServerError creates a GetCrmRolesInternalServerError with default headers values

func (*GetCrmRolesInternalServerError) Error

func (*GetCrmRolesInternalServerError) GetPayload

func (o *GetCrmRolesInternalServerError) GetPayload() *models.Error

type GetCrmRolesOK

type GetCrmRolesOK struct {
	Payload models.CrmRoleListSchema
}
GetCrmRolesOK describes a response with status code 200, with default header values.

Successful

func NewGetCrmRolesOK

func NewGetCrmRolesOK() *GetCrmRolesOK

NewGetCrmRolesOK creates a GetCrmRolesOK with default headers values

func (*GetCrmRolesOK) Error

func (o *GetCrmRolesOK) Error() string

func (*GetCrmRolesOK) GetPayload

func (o *GetCrmRolesOK) GetPayload() models.CrmRoleListSchema

type GetCrmRolesParams

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

GetCrmRolesParams contains all the parameters to send to the API endpoint

for the get crm roles operation.

Typically these are written to a http.Request.

func NewGetCrmRolesParams

func NewGetCrmRolesParams() *GetCrmRolesParams

NewGetCrmRolesParams creates a new GetCrmRolesParams 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 NewGetCrmRolesParamsWithContext

func NewGetCrmRolesParamsWithContext(ctx context.Context) *GetCrmRolesParams

NewGetCrmRolesParamsWithContext creates a new GetCrmRolesParams object with the ability to set a context for a request.

func NewGetCrmRolesParamsWithHTTPClient

func NewGetCrmRolesParamsWithHTTPClient(client *http.Client) *GetCrmRolesParams

NewGetCrmRolesParamsWithHTTPClient creates a new GetCrmRolesParams object with the ability to set a custom HTTPClient for a request.

func NewGetCrmRolesParamsWithTimeout

func NewGetCrmRolesParamsWithTimeout(timeout time.Duration) *GetCrmRolesParams

NewGetCrmRolesParamsWithTimeout creates a new GetCrmRolesParams object with the ability to set a timeout on a request.

func (*GetCrmRolesParams) SetContext

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

SetContext adds the context to the get crm roles params

func (*GetCrmRolesParams) SetDefaults

func (o *GetCrmRolesParams) SetDefaults()

SetDefaults hydrates default values in the get crm roles params (not the query body).

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

func (*GetCrmRolesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get crm roles params

func (*GetCrmRolesParams) SetTimeout

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

SetTimeout adds the timeout to the get crm roles params

func (*GetCrmRolesParams) WithContext

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

WithContext adds the context to the get crm roles params

func (*GetCrmRolesParams) WithDefaults

func (o *GetCrmRolesParams) WithDefaults() *GetCrmRolesParams

WithDefaults hydrates default values in the get crm roles params (not the query body).

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

func (*GetCrmRolesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get crm roles params

func (*GetCrmRolesParams) WithTimeout

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

WithTimeout adds the timeout to the get crm roles params

func (*GetCrmRolesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetCrmRolesReader

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

GetCrmRolesReader is a Reader for the GetCrmRoles structure.

func (*GetCrmRolesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetCrmRolesServiceUnavailable

type GetCrmRolesServiceUnavailable struct {
	Payload *models.Error
}
GetCrmRolesServiceUnavailable describes a response with status code 503, with default header values.

Service Unavailable

func NewGetCrmRolesServiceUnavailable

func NewGetCrmRolesServiceUnavailable() *GetCrmRolesServiceUnavailable

NewGetCrmRolesServiceUnavailable creates a GetCrmRolesServiceUnavailable with default headers values

func (*GetCrmRolesServiceUnavailable) Error

func (*GetCrmRolesServiceUnavailable) GetPayload

func (o *GetCrmRolesServiceUnavailable) GetPayload() *models.Error

type GetCrmRolesUnauthorized

type GetCrmRolesUnauthorized struct {
	Payload *models.Error
}
GetCrmRolesUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewGetCrmRolesUnauthorized

func NewGetCrmRolesUnauthorized() *GetCrmRolesUnauthorized

NewGetCrmRolesUnauthorized creates a GetCrmRolesUnauthorized with default headers values

func (*GetCrmRolesUnauthorized) Error

func (o *GetCrmRolesUnauthorized) Error() string

func (*GetCrmRolesUnauthorized) GetPayload

func (o *GetCrmRolesUnauthorized) GetPayload() *models.Error

type GetCrmServiceplansForbidden

type GetCrmServiceplansForbidden struct {
	Payload *models.Error
}
GetCrmServiceplansForbidden describes a response with status code 403, with default header values.

Forbidden

func NewGetCrmServiceplansForbidden

func NewGetCrmServiceplansForbidden() *GetCrmServiceplansForbidden

NewGetCrmServiceplansForbidden creates a GetCrmServiceplansForbidden with default headers values

func (*GetCrmServiceplansForbidden) Error

func (*GetCrmServiceplansForbidden) GetPayload

func (o *GetCrmServiceplansForbidden) GetPayload() *models.Error

type GetCrmServiceplansInternalServerError

type GetCrmServiceplansInternalServerError struct {
	Payload *models.Error
}
GetCrmServiceplansInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewGetCrmServiceplansInternalServerError

func NewGetCrmServiceplansInternalServerError() *GetCrmServiceplansInternalServerError

NewGetCrmServiceplansInternalServerError creates a GetCrmServiceplansInternalServerError with default headers values

func (*GetCrmServiceplansInternalServerError) Error

func (*GetCrmServiceplansInternalServerError) GetPayload

type GetCrmServiceplansOK

type GetCrmServiceplansOK struct {
	Payload models.CrmServicePlanListSchema
}
GetCrmServiceplansOK describes a response with status code 200, with default header values.

Successful

func NewGetCrmServiceplansOK

func NewGetCrmServiceplansOK() *GetCrmServiceplansOK

NewGetCrmServiceplansOK creates a GetCrmServiceplansOK with default headers values

func (*GetCrmServiceplansOK) Error

func (o *GetCrmServiceplansOK) Error() string

func (*GetCrmServiceplansOK) GetPayload

type GetCrmServiceplansParams

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

GetCrmServiceplansParams contains all the parameters to send to the API endpoint

for the get crm serviceplans operation.

Typically these are written to a http.Request.

func NewGetCrmServiceplansParams

func NewGetCrmServiceplansParams() *GetCrmServiceplansParams

NewGetCrmServiceplansParams creates a new GetCrmServiceplansParams 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 NewGetCrmServiceplansParamsWithContext

func NewGetCrmServiceplansParamsWithContext(ctx context.Context) *GetCrmServiceplansParams

NewGetCrmServiceplansParamsWithContext creates a new GetCrmServiceplansParams object with the ability to set a context for a request.

func NewGetCrmServiceplansParamsWithHTTPClient

func NewGetCrmServiceplansParamsWithHTTPClient(client *http.Client) *GetCrmServiceplansParams

NewGetCrmServiceplansParamsWithHTTPClient creates a new GetCrmServiceplansParams object with the ability to set a custom HTTPClient for a request.

func NewGetCrmServiceplansParamsWithTimeout

func NewGetCrmServiceplansParamsWithTimeout(timeout time.Duration) *GetCrmServiceplansParams

NewGetCrmServiceplansParamsWithTimeout creates a new GetCrmServiceplansParams object with the ability to set a timeout on a request.

func (*GetCrmServiceplansParams) SetContext

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

SetContext adds the context to the get crm serviceplans params

func (*GetCrmServiceplansParams) SetDefaults

func (o *GetCrmServiceplansParams) SetDefaults()

SetDefaults hydrates default values in the get crm serviceplans params (not the query body).

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

func (*GetCrmServiceplansParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get crm serviceplans params

func (*GetCrmServiceplansParams) SetTimeout

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

SetTimeout adds the timeout to the get crm serviceplans params

func (*GetCrmServiceplansParams) WithContext

WithContext adds the context to the get crm serviceplans params

func (*GetCrmServiceplansParams) WithDefaults

WithDefaults hydrates default values in the get crm serviceplans params (not the query body).

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

func (*GetCrmServiceplansParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get crm serviceplans params

func (*GetCrmServiceplansParams) WithTimeout

WithTimeout adds the timeout to the get crm serviceplans params

func (*GetCrmServiceplansParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetCrmServiceplansReader

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

GetCrmServiceplansReader is a Reader for the GetCrmServiceplans structure.

func (*GetCrmServiceplansReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetCrmServiceplansServiceUnavailable

type GetCrmServiceplansServiceUnavailable struct {
	Payload *models.Error
}
GetCrmServiceplansServiceUnavailable describes a response with status code 503, with default header values.

Service Unavailable

func NewGetCrmServiceplansServiceUnavailable

func NewGetCrmServiceplansServiceUnavailable() *GetCrmServiceplansServiceUnavailable

NewGetCrmServiceplansServiceUnavailable creates a GetCrmServiceplansServiceUnavailable with default headers values

func (*GetCrmServiceplansServiceUnavailable) Error

func (*GetCrmServiceplansServiceUnavailable) GetPayload

type GetCrmServiceplansUnauthorized

type GetCrmServiceplansUnauthorized struct {
	Payload *models.Error
}
GetCrmServiceplansUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewGetCrmServiceplansUnauthorized

func NewGetCrmServiceplansUnauthorized() *GetCrmServiceplansUnauthorized

NewGetCrmServiceplansUnauthorized creates a GetCrmServiceplansUnauthorized with default headers values

func (*GetCrmServiceplansUnauthorized) Error

func (*GetCrmServiceplansUnauthorized) GetPayload

func (o *GetCrmServiceplansUnauthorized) GetPayload() *models.Error

type PostCrmClientsConflict

type PostCrmClientsConflict struct {
	Payload *models.Error
}
PostCrmClientsConflict describes a response with status code 409, with default header values.

Conflict

func NewPostCrmClientsConflict

func NewPostCrmClientsConflict() *PostCrmClientsConflict

NewPostCrmClientsConflict creates a PostCrmClientsConflict with default headers values

func (*PostCrmClientsConflict) Error

func (o *PostCrmClientsConflict) Error() string

func (*PostCrmClientsConflict) GetPayload

func (o *PostCrmClientsConflict) GetPayload() *models.Error

type PostCrmClientsForbidden

type PostCrmClientsForbidden struct {
	Payload *models.Error
}
PostCrmClientsForbidden describes a response with status code 403, with default header values.

Forbidden

func NewPostCrmClientsForbidden

func NewPostCrmClientsForbidden() *PostCrmClientsForbidden

NewPostCrmClientsForbidden creates a PostCrmClientsForbidden with default headers values

func (*PostCrmClientsForbidden) Error

func (o *PostCrmClientsForbidden) Error() string

func (*PostCrmClientsForbidden) GetPayload

func (o *PostCrmClientsForbidden) GetPayload() *models.Error

type PostCrmClientsInternalServerError

type PostCrmClientsInternalServerError struct {
	Payload *models.Error
}
PostCrmClientsInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewPostCrmClientsInternalServerError

func NewPostCrmClientsInternalServerError() *PostCrmClientsInternalServerError

NewPostCrmClientsInternalServerError creates a PostCrmClientsInternalServerError with default headers values

func (*PostCrmClientsInternalServerError) Error

func (*PostCrmClientsInternalServerError) GetPayload

type PostCrmClientsOK

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

Successful

func NewPostCrmClientsOK

func NewPostCrmClientsOK() *PostCrmClientsOK

NewPostCrmClientsOK creates a PostCrmClientsOK with default headers values

func (*PostCrmClientsOK) Error

func (o *PostCrmClientsOK) Error() string

func (*PostCrmClientsOK) GetPayload

func (o *PostCrmClientsOK) GetPayload() *models.Site

type PostCrmClientsParams

type PostCrmClientsParams struct {

	// Body.
	Body *models.NewClientSchema

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

PostCrmClientsParams contains all the parameters to send to the API endpoint

for the post crm clients operation.

Typically these are written to a http.Request.

func NewPostCrmClientsParams

func NewPostCrmClientsParams() *PostCrmClientsParams

NewPostCrmClientsParams creates a new PostCrmClientsParams 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 NewPostCrmClientsParamsWithContext

func NewPostCrmClientsParamsWithContext(ctx context.Context) *PostCrmClientsParams

NewPostCrmClientsParamsWithContext creates a new PostCrmClientsParams object with the ability to set a context for a request.

func NewPostCrmClientsParamsWithHTTPClient

func NewPostCrmClientsParamsWithHTTPClient(client *http.Client) *PostCrmClientsParams

NewPostCrmClientsParamsWithHTTPClient creates a new PostCrmClientsParams object with the ability to set a custom HTTPClient for a request.

func NewPostCrmClientsParamsWithTimeout

func NewPostCrmClientsParamsWithTimeout(timeout time.Duration) *PostCrmClientsParams

NewPostCrmClientsParamsWithTimeout creates a new PostCrmClientsParams object with the ability to set a timeout on a request.

func (*PostCrmClientsParams) SetBody

func (o *PostCrmClientsParams) SetBody(body *models.NewClientSchema)

SetBody adds the body to the post crm clients params

func (*PostCrmClientsParams) SetContext

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

SetContext adds the context to the post crm clients params

func (*PostCrmClientsParams) SetDefaults

func (o *PostCrmClientsParams) SetDefaults()

SetDefaults hydrates default values in the post crm clients params (not the query body).

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

func (*PostCrmClientsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post crm clients params

func (*PostCrmClientsParams) SetTimeout

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

SetTimeout adds the timeout to the post crm clients params

func (*PostCrmClientsParams) WithBody

WithBody adds the body to the post crm clients params

func (*PostCrmClientsParams) WithContext

WithContext adds the context to the post crm clients params

func (*PostCrmClientsParams) WithDefaults

func (o *PostCrmClientsParams) WithDefaults() *PostCrmClientsParams

WithDefaults hydrates default values in the post crm clients params (not the query body).

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

func (*PostCrmClientsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the post crm clients params

func (*PostCrmClientsParams) WithTimeout

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

WithTimeout adds the timeout to the post crm clients params

func (*PostCrmClientsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PostCrmClientsReader

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

PostCrmClientsReader is a Reader for the PostCrmClients structure.

func (*PostCrmClientsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostCrmClientsServiceUnavailable

type PostCrmClientsServiceUnavailable struct {
	Payload *models.Error
}
PostCrmClientsServiceUnavailable describes a response with status code 503, with default header values.

Service Unavailable

func NewPostCrmClientsServiceUnavailable

func NewPostCrmClientsServiceUnavailable() *PostCrmClientsServiceUnavailable

NewPostCrmClientsServiceUnavailable creates a PostCrmClientsServiceUnavailable with default headers values

func (*PostCrmClientsServiceUnavailable) Error

func (*PostCrmClientsServiceUnavailable) GetPayload

type PostCrmClientsUnauthorized

type PostCrmClientsUnauthorized struct {
	Payload *models.Error
}
PostCrmClientsUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewPostCrmClientsUnauthorized

func NewPostCrmClientsUnauthorized() *PostCrmClientsUnauthorized

NewPostCrmClientsUnauthorized creates a PostCrmClientsUnauthorized with default headers values

func (*PostCrmClientsUnauthorized) Error

func (*PostCrmClientsUnauthorized) GetPayload

func (o *PostCrmClientsUnauthorized) GetPayload() *models.Error

Jump to

Keyboard shortcuts

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